Skip to content
Draft
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export interface Payload {
phone?: string
}
/**
* Contact traits for the profile. At least one trait is required. These fields are dynamically loaded from the selected Memora Store.
* Traits for the profile from all trait groups. At least one trait is required. These fields are dynamically loaded from the selected Memora Store. All traits use the format "TraitGroupName.$.traitName" (e.g., "Contact.$.firstName", "PurchaseHistory.$.lastPurchaseDate").
*/
contact_traits: {
profile_traits: {
[k: string]: unknown
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ describe(`Testing snapshot for ${destinationSlug} destination:`, () => {
contact_identifiers: {
email: 'test@example.com'
},
contact_traits: {
firstName: 'Test'
profile_traits: {
'Contact.$.firstName': 'Test'
}
}

Expand Down Expand Up @@ -83,9 +83,9 @@ describe(`Testing snapshot for ${destinationSlug} destination:`, () => {
contact_identifiers: {
email: 'test@example.com'
},
contact_traits: {
firstName: 'Test',
lastName: 'User'
profile_traits: {
'Contact.$.firstName': 'Test',
'Contact.$.lastName': 'User'
}
}

Expand Down Expand Up @@ -122,8 +122,8 @@ describe(`Testing snapshot for ${destinationSlug} destination:`, () => {
contact_identifiers: {
email: 'test@example.com'
},
contact_traits: {
firstName: 'Test'
profile_traits: {
'Contact.$.firstName': 'Test'
}
}

Expand Down Expand Up @@ -154,7 +154,7 @@ describe(`Testing snapshot for ${destinationSlug} destination:`, () => {
...event.properties,
memora_store: 'test-store-id',
contact_identifiers: {},
contact_traits: {}
profile_traits: {}
}

await expect(
Expand Down
Loading
Loading