-
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: convert to string from null in hs
- Loading branch information
1 parent
108cbba
commit 3c28988
Showing
3 changed files
with
103 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -5269,4 +5269,102 @@ export const data = [ | |
}, | ||
}, | ||
}, | ||
{ | ||
name: 'hs', | ||
description: 'Test coversion of null to string values', | ||
feature: 'processor', | ||
module: 'destination', | ||
version: 'v0', | ||
input: { | ||
request: { | ||
body: [ | ||
{ | ||
message: { | ||
description: | ||
'[HS] (newApi): get contact from hs with email (lookupField) having no contacts', | ||
channel: 'web', | ||
context: { | ||
app: { | ||
build: '1.0.0', | ||
name: 'RudderLabs JavaScript SDK', | ||
namespace: 'com.rudderlabs.javascript', | ||
version: '1.0.0', | ||
}, | ||
traits: { | ||
email: '[email protected]', | ||
firstname: null, | ||
gender: '', | ||
lookupField: 'email', | ||
} | ||
}, | ||
type: 'identify', | ||
userId: '12345', | ||
integrations: { | ||
All: true, | ||
} | ||
}, | ||
destination: { | ||
Config: { | ||
authorizationType: 'newPrivateAppApi', | ||
accessToken: 'dummy-access-token', | ||
hubID: 'dummy-hubId', | ||
apiKey: 'dummy-apikey', | ||
apiVersion: 'newApi', | ||
lookupField: 'email', | ||
hubspotEvents: [], | ||
eventFilteringOption: 'disable', | ||
blacklistedEvents: [ | ||
{ | ||
eventName: '', | ||
}, | ||
], | ||
whitelistedEvents: [ | ||
{ | ||
eventName: '', | ||
}, | ||
], | ||
}, | ||
Enabled: true, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
output: { | ||
response: { | ||
status: 200, | ||
body: [ | ||
{ | ||
output: { | ||
version: '1', | ||
type: 'REST', | ||
userId: '', | ||
method: 'POST', | ||
endpoint: 'https://api.hubapi.com/crm/v3/objects/contacts', | ||
headers: { | ||
'Content-Type': 'application/json', | ||
Authorization: 'Bearer dummy-access-token', | ||
}, | ||
params: {}, | ||
operation: 'createContacts', | ||
body: { | ||
JSON: { | ||
properties: { | ||
email: '[email protected]', | ||
firstname: '', | ||
gender: '' | ||
}, | ||
}, | ||
JSON_ARRAY: {}, | ||
XML: {}, | ||
FORM: {}, | ||
}, | ||
files: {}, | ||
}, | ||
statusCode: 200, | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
]; |