@segment/action-destinations 3.127.2 → 3.127.3-brackets-stuff.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/destinations/braze-cohorts/syncAudiences/index.js +3 -3
- package/dist/destinations/braze-cohorts/syncAudiences/index.js.map +1 -1
- package/dist/destinations/customerio/createUpdateObject/generated-types.d.ts +1 -1
- package/dist/destinations/customerio/createUpdateObject/index.js +5 -5
- package/dist/destinations/customerio/createUpdateObject/index.js.map +1 -1
- package/dist/destinations/customerio/createUpdatePerson/index.js +2 -2
- package/dist/destinations/customerio/createUpdatePerson/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/index.js +1 -1
- package/dist/destinations/google-enhanced-conversions/index.js.map +1 -1
- package/dist/destinations/heap/constants.d.ts +1 -1
- package/dist/destinations/heap/constants.js +2 -2
- package/dist/destinations/heap/constants.js.map +1 -1
- package/dist/destinations/heap/index.js +1 -1
- package/dist/destinations/heap/index.js.map +1 -1
- package/dist/destinations/heap/trackEvent/generated-types.d.ts +4 -2
- package/dist/destinations/heap/trackEvent/index.js +44 -15
- package/dist/destinations/heap/trackEvent/index.js.map +1 -1
- package/dist/destinations/pipedrive/createUpdateActivity/index.js +44 -17
- package/dist/destinations/pipedrive/createUpdateActivity/index.js.map +1 -1
- package/dist/destinations/pipedrive/createUpdateDeal/index.js +35 -11
- package/dist/destinations/pipedrive/createUpdateDeal/index.js.map +1 -1
- package/dist/destinations/pipedrive/createUpdateLead/generated-types.d.ts +3 -8
- package/dist/destinations/pipedrive/createUpdateLead/index.js +54 -27
- package/dist/destinations/pipedrive/createUpdateLead/index.js.map +1 -1
- package/dist/destinations/pipedrive/createUpdateNote/generated-types.d.ts +1 -1
- package/dist/destinations/pipedrive/createUpdateNote/index.js +22 -13
- package/dist/destinations/pipedrive/createUpdateNote/index.js.map +1 -1
- package/dist/destinations/pipedrive/createUpdateOrganization/index.js +8 -2
- package/dist/destinations/pipedrive/createUpdateOrganization/index.js.map +1 -1
- package/dist/destinations/pipedrive/createUpdatePerson/index.js +15 -3
- package/dist/destinations/pipedrive/createUpdatePerson/index.js.map +1 -1
- package/dist/destinations/pipedrive/index.d.ts +1 -1
- package/dist/destinations/pipedrive/index.js +22 -1
- package/dist/destinations/pipedrive/index.js.map +1 -1
- package/dist/destinations/pipedrive/pipedriveApi/leads.d.ts +5 -1
- package/dist/destinations/pipedrive/pipedriveApi/leads.js.map +1 -1
- package/dist/destinations/pipedrive/pipedriveApi/notes.d.ts +1 -1
- package/dist/destinations/pipedrive/pipedriveApi/pipedrive-client.d.ts +2 -1
- package/dist/destinations/pipedrive/pipedriveApi/pipedrive-client.js +7 -1
- package/dist/destinations/pipedrive/pipedriveApi/pipedrive-client.js.map +1 -1
- package/dist/destinations/saleswings/api.d.ts +35 -0
- package/dist/destinations/saleswings/api.js +19 -0
- package/dist/destinations/saleswings/api.js.map +1 -0
- package/dist/destinations/saleswings/common.d.ts +5 -0
- package/dist/destinations/saleswings/common.js +37 -0
- package/dist/destinations/saleswings/common.js.map +1 -0
- package/dist/destinations/saleswings/converter.d.ts +12 -0
- package/dist/destinations/saleswings/converter.js +34 -0
- package/dist/destinations/saleswings/converter.js.map +1 -0
- package/dist/destinations/saleswings/fields.d.ts +12 -0
- package/dist/destinations/saleswings/fields.js +102 -0
- package/dist/destinations/saleswings/fields.js.map +1 -0
- package/dist/destinations/saleswings/generated-types.d.ts +3 -0
- package/dist/destinations/saleswings/generated-types.js +3 -0
- package/dist/destinations/saleswings/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/index.d.ts +4 -0
- package/dist/destinations/saleswings/index.js +67 -0
- package/dist/destinations/saleswings/index.js.map +1 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/generated-types.d.ts +14 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/generated-types.js +3 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/index.d.ts +5 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/index.js +39 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/index.js.map +1 -0
- package/dist/destinations/saleswings/submitPageEvent/generated-types.d.ts +8 -0
- package/dist/destinations/saleswings/submitPageEvent/generated-types.js +3 -0
- package/dist/destinations/saleswings/submitPageEvent/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/submitPageEvent/index.d.ts +5 -0
- package/dist/destinations/saleswings/submitPageEvent/index.js +35 -0
- package/dist/destinations/saleswings/submitPageEvent/index.js.map +1 -0
- package/dist/destinations/saleswings/submitScreenEvent/generated-types.d.ts +14 -0
- package/dist/destinations/saleswings/submitScreenEvent/generated-types.js +3 -0
- package/dist/destinations/saleswings/submitScreenEvent/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/submitScreenEvent/index.d.ts +5 -0
- package/dist/destinations/saleswings/submitScreenEvent/index.js +42 -0
- package/dist/destinations/saleswings/submitScreenEvent/index.js.map +1 -0
- package/dist/destinations/saleswings/submitTrackEvent/generated-types.d.ts +14 -0
- package/dist/destinations/saleswings/submitTrackEvent/generated-types.js +3 -0
- package/dist/destinations/saleswings/submitTrackEvent/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/submitTrackEvent/index.d.ts +5 -0
- package/dist/destinations/saleswings/submitTrackEvent/index.js +42 -0
- package/dist/destinations/saleswings/submitTrackEvent/index.js.map +1 -0
- package/dist/destinations/saleswings/testing.d.ts +10 -0
- package/dist/destinations/saleswings/testing.js +55 -0
- package/dist/destinations/saleswings/testing.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.userAgent = exports.expectedTs = exports.testBatchActionSkippedEvents = exports.testActionWithSkippedEvent = exports.testBatchAction = exports.testAction = exports.settings = void 0;
|
|
7
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
8
|
+
const nock_1 = __importDefault(require("nock"));
|
|
9
|
+
const api_1 = require("./api");
|
|
10
|
+
const index_1 = __importDefault(require("./index"));
|
|
11
|
+
const testDestination = actions_core_1.createTestIntegration(index_1.default);
|
|
12
|
+
exports.settings = { apiKey: 'TEST_API_KEY' };
|
|
13
|
+
const testAction = async (actionName, event) => {
|
|
14
|
+
nock_1.default(api_1.apiBaseUrl).post('/events').reply(200, {});
|
|
15
|
+
const input = { event, settings: exports.settings, useDefaultMappings: true };
|
|
16
|
+
const responses = await testDestination.testAction(actionName, input);
|
|
17
|
+
expect(responses.length).toBe(1);
|
|
18
|
+
const request = responses[0].request;
|
|
19
|
+
expect(request.headers.get('Authorization')).toBe(`Bearer ${exports.settings.apiKey}`);
|
|
20
|
+
const rawBody = await request.text();
|
|
21
|
+
return JSON.parse(rawBody);
|
|
22
|
+
};
|
|
23
|
+
exports.testAction = testAction;
|
|
24
|
+
const testBatchAction = async (actionName, events) => {
|
|
25
|
+
nock_1.default(api_1.apiBaseUrl).post('/events/batches').reply(200, {});
|
|
26
|
+
const input = { events, settings: exports.settings, useDefaultMappings: true };
|
|
27
|
+
const responses = await testDestination.testBatchAction(actionName, input);
|
|
28
|
+
expect(responses.length).toBe(1);
|
|
29
|
+
const request = responses[0].request;
|
|
30
|
+
expect(request.headers.get('Authorization')).toBe(`Bearer ${exports.settings.apiKey}`);
|
|
31
|
+
const rawBody = await request.text();
|
|
32
|
+
return JSON.parse(rawBody);
|
|
33
|
+
};
|
|
34
|
+
exports.testBatchAction = testBatchAction;
|
|
35
|
+
const testActionWithSkippedEvent = async (actionName, event) => {
|
|
36
|
+
const responses = await testDestination.testAction(actionName, { event, settings: exports.settings, useDefaultMappings: true });
|
|
37
|
+
expect(responses.length).toBe(0);
|
|
38
|
+
};
|
|
39
|
+
exports.testActionWithSkippedEvent = testActionWithSkippedEvent;
|
|
40
|
+
const testBatchActionSkippedEvents = async (actionName, events) => {
|
|
41
|
+
const responses = await testDestination.testBatchAction(actionName, { events, settings: exports.settings, useDefaultMappings: true });
|
|
42
|
+
expect(responses.length).toBe(0);
|
|
43
|
+
};
|
|
44
|
+
exports.testBatchActionSkippedEvents = testBatchActionSkippedEvents;
|
|
45
|
+
const expectedTs = (segmentEventTs) => {
|
|
46
|
+
if (segmentEventTs === undefined)
|
|
47
|
+
throw new Error('Unexpected state: test event created without a timestamp');
|
|
48
|
+
else if (typeof segmentEventTs === 'string')
|
|
49
|
+
return Date.parse(segmentEventTs);
|
|
50
|
+
else
|
|
51
|
+
return segmentEventTs.valueOf();
|
|
52
|
+
};
|
|
53
|
+
exports.expectedTs = expectedTs;
|
|
54
|
+
exports.userAgent = '"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1';
|
|
55
|
+
//# sourceMappingURL=testing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../src/destinations/saleswings/testing.ts"],"names":[],"mappings":";;;;;;AAAA,wDAA2E;AAC3E,gDAAuB;AACvB,+BAAkC;AAClC,oDAAiC;AAEjC,MAAM,eAAe,GAAG,oCAAqB,CAAC,eAAW,CAAC,CAAA;AAE7C,QAAA,QAAQ,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA;AAE3C,MAAM,UAAU,GAAG,KAAK,EAAE,UAAkB,EAAE,KAAmB,EAAgB,EAAE;IACxF,cAAI,CAAC,gBAAU,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC,CAAA;IAC/C,MAAM,KAAK,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAR,gBAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAA;IAC3D,MAAM,SAAS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destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.127.
|
|
4
|
+
"version": "3.127.3-brackets-stuff.18+511f78fc",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@amplitude/ua-parser-js": "^0.7.25",
|
|
40
40
|
"@segment/a1-notation": "^2.1.4",
|
|
41
|
-
"@segment/actions-core": "^3.49.
|
|
42
|
-
"@segment/actions-shared": "^1.31.
|
|
41
|
+
"@segment/actions-core": "^3.49.1-brackets-stuff.22+511f78fc",
|
|
42
|
+
"@segment/actions-shared": "^1.31.1-brackets-stuff.22+511f78fc",
|
|
43
43
|
"cheerio": "^1.0.0-rc.10",
|
|
44
44
|
"dayjs": "^1.10.7",
|
|
45
45
|
"escape-goat": "^3",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"lcov"
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "511f78fc62f25623fbe7cab6fb23171146b4e83f"
|
|
69
69
|
}
|