-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): pull release/v1.61.0 into main (#3234)
- Loading branch information
Showing
101 changed files
with
8,120 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { getMappingConfig } from '../../../../v0/util'; | ||
|
||
export const CUSTOMER_COMMAND = 'customers'; | ||
export const CUSTOMER_EVENT_COMMAND = 'customers/events'; | ||
export const MAX_BATCH_SIZE = 50; | ||
|
||
// ref:- https://documentation.bloomreach.com/engagement/reference/batch-commands-2 | ||
export const getBatchEndpoint = (apiBaseUrl: string, projectToken: string): string => | ||
`${apiBaseUrl}/track/v2/projects/${projectToken}/batch`; | ||
|
||
const CONFIG_CATEGORIES = { | ||
CUSTOMER_PROPERTIES_CONFIG: { name: 'BloomreachCustomerPropertiesConfig' }, | ||
}; | ||
const MAPPING_CONFIG = getMappingConfig(CONFIG_CATEGORIES, __dirname); | ||
export const EXCLUSION_FIELDS: string[] = [ | ||
'email', | ||
'firstName', | ||
'firstname', | ||
'first_name', | ||
'lastName', | ||
'lastname', | ||
'last_name', | ||
'name', | ||
'phone', | ||
'city', | ||
'birthday', | ||
'country', | ||
]; | ||
export const CUSTOMER_PROPERTIES_CONFIG = | ||
MAPPING_CONFIG[CONFIG_CATEGORIES.CUSTOMER_PROPERTIES_CONFIG.name]; |
36 changes: 36 additions & 0 deletions
36
src/cdk/v2/destinations/bloomreach/data/BloomreachCustomerPropertiesConfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[ | ||
{ | ||
"destKey": "first_name", | ||
"sourceKeys": "firstName", | ||
"sourceFromGenericMap": true | ||
}, | ||
{ | ||
"destKey": "last_name", | ||
"sourceKeys": "lastName", | ||
"sourceFromGenericMap": true | ||
}, | ||
{ | ||
"destKey": "email", | ||
"sourceKeys": "emailOnly", | ||
"sourceFromGenericMap": true | ||
}, | ||
{ | ||
"destKey": "phone", | ||
"sourceKeys": "phone", | ||
"sourceFromGenericMap": true | ||
}, | ||
{ | ||
"destKey": "city", | ||
"sourceKeys": "city", | ||
"sourceFromGenericMap": true | ||
}, | ||
{ | ||
"destKey": "country", | ||
"sourceKeys": ["traits.address.country", "context.traits.address.country"] | ||
}, | ||
{ | ||
"destKey": "birthday", | ||
"sourceKeys": "birthday", | ||
"sourceFromGenericMap": true | ||
} | ||
] |
Oops, something went wrong.