Skip to content

Commit

Permalink
Fix typo on reserved properties
Browse files Browse the repository at this point in the history
  • Loading branch information
argenisf committed Mar 26, 2024
1 parent 78376f0 commit 2e63e67
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions ingestion.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,24 +196,24 @@ func (a *ApiClient) Import(ctx context.Context, events []*Event, options ImportO
}
}

type PeopleReveredProperties string
type PeopleReservedProperties string

const (
//https://docs.mixpanel.com/docs/tracking/how-tos/user-profiles#reserved-properties

PeopleEmailProperty PeopleReveredProperties = "$email"
PeoplePhoneProperty PeopleReveredProperties = "$phone"
PeopleFirstNameProperty PeopleReveredProperties = "$first_name"
PeopleLastNameProperty PeopleReveredProperties = "$last_name"
PeopleNameProperty PeopleReveredProperties = "$name"
PeopleAvatarProperty PeopleReveredProperties = "$avatar"
PeopleCreatedProperty PeopleReveredProperties = "$created"
PeopleCityProperty PeopleReveredProperties = "$city"
PeopleRegionProperty PeopleReveredProperties = "$region"
PeopleCountryCodeProperty PeopleReveredProperties = "$country_code"
PeopleTimezoneProperty PeopleReveredProperties = "$timezone"
PeopleBucketProperty PeopleReveredProperties = "$bucket"
PeopleGeolocationByIpProperty PeopleReveredProperties = "$ip"
PeopleEmailProperty PeopleReservedProperties = "$email"
PeoplePhoneProperty PeopleReservedProperties = "$phone"
PeopleFirstNameProperty PeopleReservedProperties = "$first_name"
PeopleLastNameProperty PeopleReservedProperties = "$last_name"
PeopleNameProperty PeopleReservedProperties = "$name"
PeopleAvatarProperty PeopleReservedProperties = "$avatar"
PeopleCreatedProperty PeopleReservedProperties = "$created"
PeopleCityProperty PeopleReservedProperties = "$city"
PeopleRegionProperty PeopleReservedProperties = "$region"
PeopleCountryCodeProperty PeopleReservedProperties = "$country_code"
PeopleTimezoneProperty PeopleReservedProperties = "$timezone"
PeopleBucketProperty PeopleReservedProperties = "$bucket"
PeopleGeolocationByIpProperty PeopleReservedProperties = "$ip"
)

type PeopleProperties struct {
Expand All @@ -234,7 +234,7 @@ func NewPeopleProperties(distinctID string, properties map[string]any) *PeoplePr
}
}

func (p *PeopleProperties) SetReservedProperty(property PeopleReveredProperties, value any) {
func (p *PeopleProperties) SetReservedProperty(property PeopleReservedProperties, value any) {
p.Properties[string(property)] = value
}

Expand Down

0 comments on commit 2e63e67

Please sign in to comment.