-
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.
* fix: klaviyo jobs order * chore: update src/v0/destinations/klaviyo/transform.js
- Loading branch information
1 parent
494df08
commit 26926c4
Showing
3 changed files
with
64 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,43 @@ export const data: RouterTestData[] = [ | |
list_id: 'XUepkK', | ||
subscriptions: [ | ||
{ email: '[email protected]', phone_number: '+12 345 678 900' }, | ||
], | ||
}, | ||
}, | ||
}, | ||
JSON_ARRAY: {}, | ||
XML: {}, | ||
FORM: {}, | ||
}, | ||
files: {}, | ||
}, | ||
], | ||
metadata: [generateMetadata(3)], | ||
batched: true, | ||
statusCode: 200, | ||
destination, | ||
}, | ||
{ | ||
batchedRequest: [ | ||
{ | ||
version: '1', | ||
type: 'REST', | ||
method: 'POST', | ||
endpoint: 'https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs', | ||
headers: { | ||
Authorization: 'Klaviyo-API-Key dummyPrivateApiKey', | ||
'Content-Type': 'application/json', | ||
Accept: 'application/json', | ||
revision: '2023-02-22', | ||
}, | ||
params: {}, | ||
body: { | ||
JSON: { | ||
data: { | ||
type: 'profile-subscription-bulk-create-job', | ||
attributes: { | ||
list_id: 'XUepkK', | ||
subscriptions: [ | ||
{ | ||
email: '[email protected]', | ||
phone_number: '+12 345 578 900', | ||
|
@@ -120,7 +157,7 @@ export const data: RouterTestData[] = [ | |
files: {}, | ||
}, | ||
], | ||
metadata: [generateMetadata(3), generateMetadata(2)], | ||
metadata: [generateMetadata(2)], | ||
batched: true, | ||
statusCode: 200, | ||
destination, | ||
|