-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: splitting bloomreach destination into bloomreach and bloomreach…
…_catalog
- Loading branch information
1 parent
eaf169f
commit 8706593
Showing
26 changed files
with
1,113 additions
and
649 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
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
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,31 @@ | ||
export const MAX_PAYLOAD_SIZE = 10000000; | ||
export const MAX_ITEMS = 5000; | ||
|
||
// ref:- https://documentation.bloomreach.com/engagement/reference/bulk-update-catalog-item | ||
export const getCreateBulkCatalogItemEndpoint = ( | ||
apiBaseUrl: string, | ||
projectToken: string, | ||
catalogId: string, | ||
): string => `${apiBaseUrl}/data/v2/projects/${projectToken}/catalogs/${catalogId}/items`; | ||
|
||
// ref:- https://documentation.bloomreach.com/engagement/reference/bulk-partial-update-catalog-item | ||
export const getUpdateBulkCatalogItemEndpoint = ( | ||
apiBaseUrl: string, | ||
projectToken: string, | ||
catalogId: string, | ||
): string => | ||
`${apiBaseUrl}/data/v2/projects/${projectToken}/catalogs/${catalogId}/items/partial-update`; | ||
|
||
// ref:- https://documentation.bloomreach.com/engagement/reference/bulk-delete-catalog-items | ||
export const getDeleteBulkCatalogItemEndpoint = ( | ||
apiBaseUrl: string, | ||
projectToken: string, | ||
catalogId: string, | ||
): string => | ||
`${apiBaseUrl}/data/v2/projects/${projectToken}/catalogs/${catalogId}/items/bulk-delete`; | ||
|
||
export const RecordAction = { | ||
INSERT: 'insert', | ||
UPDATE: 'update', | ||
DELETE: 'delete', | ||
}; |
Oops, something went wrong.