-
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.
- Loading branch information
1 parent
1c77b6e
commit ac2bda8
Showing
5 changed files
with
1,777 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
test/integrations/destinations/one_signal/processor/commonConfig.ts
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,47 @@ | ||
export const destination = { | ||
Config: { | ||
appId: 'random-818c-4a28-b98e-6cd8a994eb22', | ||
emailDeviceType: true, | ||
smsDeviceType: true, | ||
eventAsTags: false, | ||
allowedProperties: [ | ||
{ propertyName: 'brand' }, | ||
{ propertyName: 'firstName' }, | ||
{ propertyName: 'price' }, | ||
], | ||
version: 'V2', | ||
}, | ||
}; | ||
|
||
export const endpoint = 'https://api.onesignal.com/apps/random-818c-4a28-b98e-6cd8a994eb22/users'; | ||
|
||
export const headers = { Accept: 'application/json', 'Content-Type': 'application/json' }; | ||
|
||
export const commonTraits = { | ||
brand: 'John Players', | ||
price: '15000', | ||
firstName: 'Test', | ||
userId: 'user@27', | ||
}; | ||
export const commonTags = { | ||
brand: 'John Players', | ||
price: '15000', | ||
firstName: 'Test', | ||
userId: 'user@27', | ||
anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', | ||
}; | ||
|
||
export const commonProperties = { | ||
products: [ | ||
{ | ||
sku: 3, | ||
iso: 'iso', | ||
quantity: 2, | ||
amount: 100, | ||
}, | ||
], | ||
brand: 'John Players', | ||
price: '15000', | ||
firstName: 'Test', | ||
customKey: 'customVal', | ||
}; |
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
Oops, something went wrong.