From 759ea89b81fdb6322fef18d1bbd240a53f46afaf Mon Sep 17 00:00:00 2001 From: david Date: Mon, 24 Feb 2025 17:19:44 -0700 Subject: [PATCH 1/2] Braze regions --- packages/destination-actions/src/destinations/braze/index.ts | 4 +++- .../__tests__/__snapshots__/snapshot.test.ts.snap | 2 +- packages/destination-actions/src/destinations/braze/utils.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/destination-actions/src/destinations/braze/index.ts b/packages/destination-actions/src/destinations/braze/index.ts index 1afe50ae73..bec1d3e948 100644 --- a/packages/destination-actions/src/destinations/braze/index.ts +++ b/packages/destination-actions/src/destinations/braze/index.ts @@ -47,9 +47,11 @@ const destination: DestinationDefinition = { { label: 'US-07 (https://dashboard-07.braze.com)', value: 'https://rest.iad-07.braze.com' }, { label: 'US-08 (https://dashboard-08.braze.com)', value: 'https://rest.iad-08.braze.com' }, { label: 'US-09 (https://dashboard-09.braze.com)', value: 'https://rest.iad-09.braze.com' }, + { label: 'US-10 (https://dashboard-10.braze.com)', value: 'https://rest.iad-10.braze.com' }, { label: 'EU-01 (https://dashboard-01.braze.eu)', value: 'https://rest.fra-01.braze.eu' }, { label: 'EU-02 (https://dashboard-02.braze.eu)', value: 'https://rest.fra-02.braze.eu' }, - { label: 'AU-01 (https://dashboard.au-01.braze.com)', value: 'https://rest.au-01.braze.com' } + { label: 'AU-01 (https://dashboard.au-01.braze.com)', value: 'https://rest.au-01.braze.com' }, + { label: 'ID-01 (https://dashboard.id-01.braze.com)', value: 'https://rest.id-01.braze.com' } ], default: 'https://rest.iad-01.braze.com', required: true diff --git a/packages/destination-actions/src/destinations/braze/updateUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap b/packages/destination-actions/src/destinations/braze/updateUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap index d191892fc2..c7c117631d 100644 --- a/packages/destination-actions/src/destinations/braze/updateUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap +++ b/packages/destination-actions/src/destinations/braze/updateUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap @@ -13,7 +13,7 @@ Object { }, "date_of_first_session": "2021-02-01T00:00:00.000Z", "date_of_last_session": "2021-02-01T00:00:00.000Z", - "dob": "2021-02-01", + "dob": "2021-01-31", "email": "wifot@vuri.cl", "email_click_tracking_disabled": false, "email_open_tracking_disabled": false, diff --git a/packages/destination-actions/src/destinations/braze/utils.ts b/packages/destination-actions/src/destinations/braze/utils.ts index 0a9869051c..97a69a3d92 100644 --- a/packages/destination-actions/src/destinations/braze/utils.ts +++ b/packages/destination-actions/src/destinations/braze/utils.ts @@ -48,7 +48,7 @@ function removeEmpty(obj: unknown) { const cleaned = removeUndefined(obj) // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - if (typeof cleaned === 'object' && Object.keys(cleaned).length > 0) { + if (typeof cleaned === 'object' && Object.keys(cleaned!).length > 0) { return cleaned } From 94b4196e4a718a7441f482d141ee8666d0506354 Mon Sep 17 00:00:00 2001 From: davidbielik Date: Thu, 1 May 2025 09:57:50 -0600 Subject: [PATCH 2/2] Update packages/destination-actions/src/destinations/braze/updateUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap --- .../__tests__/__snapshots__/snapshot.test.ts.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/destination-actions/src/destinations/braze/updateUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap b/packages/destination-actions/src/destinations/braze/updateUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap index c7c117631d..d191892fc2 100644 --- a/packages/destination-actions/src/destinations/braze/updateUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap +++ b/packages/destination-actions/src/destinations/braze/updateUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap @@ -13,7 +13,7 @@ Object { }, "date_of_first_session": "2021-02-01T00:00:00.000Z", "date_of_last_session": "2021-02-01T00:00:00.000Z", - "dob": "2021-01-31", + "dob": "2021-02-01", "email": "wifot@vuri.cl", "email_click_tracking_disabled": false, "email_open_tracking_disabled": false,