Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Braze regions server #2762

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all 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
@@ -47,9 +47,11 @@ const destination: DestinationDefinition<Settings> = {
{ 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
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"email_click_tracking_disabled": false,
"email_open_tracking_disabled": false,
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@

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) {

Check failure on line 51 in packages/destination-actions/src/destinations/braze/utils.ts

GitHub Actions / Lint (18.x)

This assertion is unnecessary since it does not change the type of the expression
return cleaned
}


Unchanged files with check annotations Beta

async parentMethod(...args: any[]) {
return {
iAm: 'parent',
child: await this.childMethod(...args)

Check warning on line 59 in packages/actions-shared/src/engage/__tests__/OperationTracker.test.ts

GitHub Actions / Lint (18.x)

Unsafe spread of an `any` array type
}
}
async childMethod(...args: any[]) {
return {
iAm: 'child',
testMethod: await this.testMethod(...args)

Check warning on line 67 in packages/actions-shared/src/engage/__tests__/OperationTracker.test.ts

GitHub Actions / Lint (18.x)

Unsafe spread of an `any` array type
}
}
}
parentMethod(...args: any[]) {
return {
iAm: 'parent',
child: this.childMethod(...args)

Check warning on line 78 in packages/actions-shared/src/engage/__tests__/OperationTracker.test.ts

GitHub Actions / Lint (18.x)

Unsafe spread of an `any` array type
}
}
childMethod(...args: any[]) {
return {
iAm: 'child',
testMethod: this.testMethod(...args)

Check warning on line 86 in packages/actions-shared/src/engage/__tests__/OperationTracker.test.ts

GitHub Actions / Lint (18.x)

Unsafe spread of an `any` array type
}
}
}
result: 'success'
}
}
const TestClass = createTestClass(decoratorArgs, testMethod, isAsync)

Check warning on line 137 in packages/actions-shared/src/engage/__tests__/OperationTracker.test.ts

GitHub Actions / Lint (18.x)

Unsafe argument of type `any` assigned to a parameter of type `(OperationLoggerDecoratorArgs & { shouldStats?: ((args: OperationStatsEventArgs) => boolean | void) | undefined; } & { ...; } & { ...; }) | undefined`

Check warning on line 137 in packages/actions-shared/src/engage/__tests__/OperationTracker.test.ts

GitHub Actions / Lint (18.x)

Unsafe argument of type `any` assigned to a parameter of type `boolean`
const instance = new TestClass()
if (throwError) {
await expect(async () => await instance.testMethod()).rejects.toThrow('my custom error')
methodToRun?: 'testMethod' | 'parentMethod' | 'childMethod'
methodArgs?: TParams
}) {
const MyTestClass = createTestClass(args.decoratorArgs, args.testMethodImpl, isAsync)

Check warning on line 169 in packages/actions-shared/src/engage/__tests__/OperationTracker.test.ts

GitHub Actions / Lint (18.x)

Unsafe argument of type `any` assigned to a parameter of type `boolean`
const classInstance = new MyTestClass()
const testMethodMock = classInstance.testMethodImpl
try {
})
test('try and finally. decoratorArgs undefined', async () => {
const TestClass = createTestClass(undefined, testMethod, isAsync)

Check warning on line 337 in packages/actions-shared/src/engage/__tests__/OperationTracker.test.ts

GitHub Actions / Lint (18.x)

Unsafe argument of type `any` assigned to a parameter of type `boolean`
const testInstance = new TestClass()
try {
await testInstance.testMethod()
})
test('try and finally. shouldStats:only on try', async () => {
const TestClass = createTestClass({ shouldStats: (st) => st.event == 'try' }, testMethod, isAsync)

Check warning on line 365 in packages/actions-shared/src/engage/__tests__/OperationTracker.test.ts

GitHub Actions / Lint (18.x)

Unsafe argument of type `any` assigned to a parameter of type `boolean`
const testInstance = new TestClass()
try {
await testInstance.testMethod()
if (_throwError) throw new MyCustomError('My custom error')
}
const TestClass = createTestClass({}, methodImpl, isAsync)

Check warning on line 393 in packages/actions-shared/src/engage/__tests__/OperationTracker.test.ts

GitHub Actions / Lint (18.x)

Unsafe argument of type `any` assigned to a parameter of type `boolean`
const testInstance = new TestClass()
try {
await testInstance.testMethod()