@segment/action-destinations 3.252.1-staging → 3.253.0
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/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
- package/dist/destinations/braze/index.js.map +1 -1
- package/dist/destinations/chartmogul/common_fields.d.ts +7 -0
- package/dist/destinations/chartmogul/common_fields.js +49 -0
- package/dist/destinations/chartmogul/common_fields.js.map +1 -0
- package/dist/destinations/chartmogul/generated-types.d.ts +3 -0
- package/dist/destinations/chartmogul/generated-types.js.map +1 -0
- package/dist/destinations/chartmogul/index.d.ts +4 -0
- package/dist/destinations/chartmogul/index.js +42 -0
- package/dist/destinations/chartmogul/index.js.map +1 -0
- package/dist/destinations/chartmogul/sendContact/generated-types.d.ts +20 -0
- package/dist/destinations/chartmogul/sendContact/generated-types.js.map +1 -0
- package/dist/destinations/chartmogul/sendContact/index.js +106 -0
- package/dist/destinations/chartmogul/sendContact/index.js.map +1 -0
- package/dist/destinations/chartmogul/sendCustomer/generated-types.d.ts +20 -0
- package/dist/destinations/chartmogul/sendCustomer/generated-types.js.map +1 -0
- package/dist/destinations/chartmogul/sendCustomer/index.js +102 -0
- package/dist/destinations/chartmogul/sendCustomer/index.js.map +1 -0
- package/dist/destinations/customerio/index.js.map +1 -1
- package/dist/destinations/engage/utils/track.d.ts +17 -17
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +20 -2
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
- package/dist/destinations/index.js +4 -1
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/iterable/index.js.map +1 -1
- package/dist/destinations/kafka/utils.js.map +1 -1
- package/dist/destinations/klaviyo/index.js +1 -1
- package/dist/destinations/linkedin-conversions/api/api.test.js +5 -4
- package/dist/destinations/linkedin-conversions/api/api.test.js.map +1 -1
- package/dist/destinations/linkedin-conversions/api/index.d.ts +8 -6
- package/dist/destinations/linkedin-conversions/api/index.js +41 -10
- package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
- package/dist/destinations/linkedin-conversions/constants.d.ts +2 -0
- package/dist/destinations/linkedin-conversions/constants.js +11 -1
- package/dist/destinations/linkedin-conversions/constants.js.map +1 -1
- package/dist/destinations/linkedin-conversions/streamConversion/generated-types.d.ts +2 -2
- package/dist/destinations/linkedin-conversions/streamConversion/index.js +55 -66
- package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
- package/dist/destinations/mantle/config.d.ts +1 -0
- package/dist/destinations/mantle/config.js +5 -0
- package/dist/destinations/mantle/config.js.map +1 -0
- package/dist/destinations/mantle/generated-types.d.ts +4 -0
- package/dist/destinations/{engage/sendgrid/Profile.js → mantle/generated-types.js} +1 -1
- package/dist/destinations/mantle/generated-types.js.map +1 -0
- package/dist/destinations/mantle/identify/generated-types.d.ts +9 -0
- package/dist/destinations/mantle/identify/generated-types.js +3 -0
- package/dist/destinations/mantle/identify/generated-types.js.map +1 -0
- package/dist/destinations/{responsys/asyncMergeProfileListMembers → mantle/identify}/index.d.ts +1 -1
- package/dist/destinations/mantle/identify/index.js +61 -0
- package/dist/destinations/mantle/identify/index.js.map +1 -0
- package/dist/destinations/mantle/index.d.ts +4 -0
- package/dist/destinations/mantle/index.js +50 -0
- package/dist/destinations/mantle/index.js.map +1 -0
- package/dist/destinations/mantle/pushEvent/generated-types.d.ts +9 -0
- package/dist/destinations/mantle/pushEvent/generated-types.js +3 -0
- package/dist/destinations/mantle/pushEvent/generated-types.js.map +1 -0
- package/dist/destinations/mantle/pushEvent/index.d.ts +5 -0
- package/dist/destinations/mantle/pushEvent/index.js +74 -0
- package/dist/destinations/mantle/pushEvent/index.js.map +1 -0
- package/dist/destinations/marketo-static-lists/addToList/generated-types.d.ts +1 -13
- package/dist/destinations/marketo-static-lists/addToList/index.js +2 -69
- package/dist/destinations/marketo-static-lists/addToList/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/constants.d.ts +3 -10
- package/dist/destinations/marketo-static-lists/constants.js +14 -2
- package/dist/destinations/marketo-static-lists/constants.js.map +1 -1
- package/dist/destinations/marketo-static-lists/functions.d.ts +1 -18
- package/dist/destinations/marketo-static-lists/functions.js +1 -87
- package/dist/destinations/marketo-static-lists/functions.js.map +1 -1
- package/dist/destinations/marketo-static-lists/index.js +42 -4
- package/dist/destinations/marketo-static-lists/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/properties.js +2 -1
- package/dist/destinations/marketo-static-lists/properties.js.map +1 -1
- package/dist/destinations/marketo-static-lists/removeFromList/generated-types.d.ts +1 -1
- package/dist/destinations/moloco-rmp/addToCart/index.js.map +1 -1
- package/dist/destinations/moloco-rmp/addToWishlist/index.js +1 -1
- package/dist/destinations/moloco-rmp/addToWishlist/index.js.map +1 -1
- package/dist/destinations/moloco-rmp/common/convert.js +17 -29
- package/dist/destinations/moloco-rmp/common/convert.js.map +1 -1
- package/dist/destinations/moloco-rmp/common/event.js.map +1 -1
- package/dist/destinations/moloco-rmp/common/fields.js +10 -10
- package/dist/destinations/moloco-rmp/common/fields.js.map +1 -1
- package/dist/destinations/moloco-rmp/common/request-client.js.map +1 -1
- package/dist/destinations/moloco-rmp/home/index.js +1 -1
- package/dist/destinations/moloco-rmp/home/index.js.map +1 -1
- package/dist/destinations/moloco-rmp/itemPageView/index.js +1 -1
- package/dist/destinations/moloco-rmp/itemPageView/index.js.map +1 -1
- package/dist/destinations/moloco-rmp/land/index.js +1 -1
- package/dist/destinations/moloco-rmp/land/index.js.map +1 -1
- package/dist/destinations/moloco-rmp/pageView/index.js.map +1 -1
- package/dist/destinations/moloco-rmp/purchase/index.js.map +1 -1
- package/dist/destinations/moloco-rmp/search/index.js.map +1 -1
- package/dist/destinations/responsys/index.js +0 -12
- package/dist/destinations/responsys/index.js.map +1 -1
- package/dist/destinations/responsys/sendAudience/generated-types.d.ts +1 -0
- package/dist/destinations/responsys/sendAudience/index.js +11 -4
- package/dist/destinations/responsys/sendAudience/index.js.map +1 -1
- package/dist/destinations/responsys/sendCustomTraits/generated-types.d.ts +1 -0
- package/dist/destinations/responsys/sendCustomTraits/index.js +11 -4
- package/dist/destinations/responsys/sendCustomTraits/index.js.map +1 -1
- package/dist/destinations/responsys/utils.d.ts +3 -2
- package/dist/destinations/responsys/utils.js +12 -3
- package/dist/destinations/responsys/utils.js.map +1 -1
- package/dist/destinations/ripe/index.js +1 -1
- package/dist/destinations/ripe/index.js.map +1 -1
- package/dist/destinations/schematic/identifyUser/generated-types.d.ts +2 -1
- package/dist/destinations/schematic/identifyUser/index.js +19 -10
- package/dist/destinations/schematic/identifyUser/index.js.map +1 -1
- package/dist/destinations/schematic/trackEvent/generated-types.d.ts +1 -0
- package/dist/destinations/schematic/trackEvent/index.js +14 -5
- package/dist/destinations/schematic/trackEvent/index.js.map +1 -1
- package/dist/destinations/segment-profiles/index.js +1 -3
- package/dist/destinations/segment-profiles/index.js.map +1 -1
- package/dist/destinations/segment-profiles/segment-properties.d.ts +0 -2
- package/dist/destinations/segment-profiles/segment-properties.js +1 -14
- package/dist/destinations/segment-profiles/segment-properties.js.map +1 -1
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +1 -1
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +1 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js +14 -3
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js.map +1 -1
- package/dist/destinations/stackadapt/forwardEvent/index.js +10 -9
- package/dist/destinations/stackadapt/forwardEvent/index.js.map +1 -1
- package/dist/destinations/yotpo/generated-types.d.ts +3 -0
- package/dist/destinations/yotpo/generated-types.js +3 -0
- package/dist/destinations/yotpo/generated-types.js.map +1 -0
- package/dist/destinations/yotpo/index.d.ts +4 -0
- package/dist/destinations/yotpo/index.js +53 -0
- package/dist/destinations/yotpo/index.js.map +1 -0
- package/dist/destinations/yotpo/sendData/generated-types.d.ts +5 -0
- package/dist/destinations/yotpo/sendData/generated-types.js +3 -0
- package/dist/destinations/yotpo/sendData/generated-types.js.map +1 -0
- package/dist/destinations/yotpo/sendData/index.d.ts +5 -0
- package/dist/destinations/yotpo/sendData/index.js +22 -0
- package/dist/destinations/yotpo/sendData/index.js.map +1 -0
- package/package.json +4 -4
- package/dist/destinations/engage/sendgrid/Profile.d.ts +0 -6
- package/dist/destinations/engage/sendgrid/Profile.js.map +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +0 -21
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +0 -174
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +0 -1
- package/dist/destinations/mixpanel/utils.d.ts +0 -13
- package/dist/destinations/mixpanel/utils.js +0 -117
- package/dist/destinations/mixpanel/utils.js.map +0 -1
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +0 -14
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +0 -1
- package/dist/destinations/responsys/asyncMergePetRecords/index.js +0 -113
- package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +0 -1
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +0 -20
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +0 -1
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +0 -174
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +0 -1
- package/dist/destinations/responsys/rsp-operations.d.ts +0 -14
- package/dist/destinations/responsys/rsp-operations.js +0 -33
- package/dist/destinations/responsys/rsp-operations.js.map +0 -1
- package/dist/destinations/responsys/rsp-properties.d.ts +0 -4
- package/dist/destinations/responsys/rsp-properties.js +0 -27
- package/dist/destinations/responsys/rsp-properties.js.map +0 -1
- package/dist/destinations/segment-profiles/sendTrack/generated-types.d.ts +0 -11
- package/dist/destinations/segment-profiles/sendTrack/generated-types.js.map +0 -1
- package/dist/destinations/segment-profiles/sendTrack/index.js +0 -42
- package/dist/destinations/segment-profiles/sendTrack/index.js.map +0 -1
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.d.ts +0 -3
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js +0 -43
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +0 -1
- /package/dist/destinations/{responsys/asyncMergePetRecords → chartmogul}/generated-types.js +0 -0
- /package/dist/destinations/{responsys/asyncMergeProfileListMembers → chartmogul/sendContact}/generated-types.js +0 -0
- /package/dist/destinations/{responsys/asyncMergePetRecords → chartmogul/sendContact}/index.d.ts +0 -0
- /package/dist/destinations/{segment-profiles/sendTrack → chartmogul/sendCustomer}/generated-types.js +0 -0
- /package/dist/destinations/{segment-profiles/sendTrack → chartmogul/sendCustomer}/index.d.ts +0 -0
|
@@ -9,7 +9,7 @@ export declare const dateStringToFuzzyDate: (dateString: string | number) => fal
|
|
|
9
9
|
y: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const augmentFieldsWithConstituentFields: (fields: Record<string, InputField>) => Record<string, InputField>;
|
|
12
|
-
export declare const splitConstituentPayload: (payload: CreateOrUpdateIndividualConstituentPayload) => (Partial<
|
|
12
|
+
export declare const splitConstituentPayload: (payload: CreateOrUpdateIndividualConstituentPayload) => (Partial<Constituent> | Partial<Address> | Partial<OnlinePresence> | Partial<Phone>)[];
|
|
13
13
|
export declare const buildConstituentPayloadFromPayload: (payload: StringIndexedObject) => Partial<CreateOrUpdateIndividualConstituentPayload>;
|
|
14
14
|
export declare const buildGiftDataFromPayload: (constituentId: string, payload: CreateGiftPayload) => Partial<Gift>;
|
|
15
15
|
export declare const buildConstituentActionDataFromPayload: (constituentId: string, payload: CreateConstituentAction) => Partial<ConstituentAction>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/braze/index.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../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DAAgD;SAC5D;QACD;YACE,IAAI,EAAE,gCAAgC;YACtC,aAAa,EAAE,YAAY;YAC3B,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,oBAAU,CAAC,MAAM,CAAC;gBACnC,UAAU,EAAE;oBACV,OAAO,EAAE,cAAc;iBACxB;aACF;YACD,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,6BAA6B;SACzC;KACF;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputField } from '@segment/actions-core/destination-kit/types';
|
|
2
|
+
export declare const message_id: InputField;
|
|
3
|
+
export declare const timestamp: InputField;
|
|
4
|
+
export declare const sent_at: InputField;
|
|
5
|
+
export declare const event_type: InputField;
|
|
6
|
+
export declare const user_id: InputField;
|
|
7
|
+
export declare const anonymous_id: InputField;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.anonymous_id = exports.user_id = exports.event_type = exports.sent_at = exports.timestamp = exports.message_id = void 0;
|
|
4
|
+
exports.message_id = {
|
|
5
|
+
label: 'MessageId',
|
|
6
|
+
description: 'The Segment message id',
|
|
7
|
+
type: 'string',
|
|
8
|
+
required: true,
|
|
9
|
+
default: { '@path': '$.messageId' }
|
|
10
|
+
};
|
|
11
|
+
exports.timestamp = {
|
|
12
|
+
label: 'Event Timestamp',
|
|
13
|
+
description: 'The timestamp at which the event was created',
|
|
14
|
+
type: 'datetime',
|
|
15
|
+
required: true,
|
|
16
|
+
default: { '@path': '$.timestamp' }
|
|
17
|
+
};
|
|
18
|
+
exports.sent_at = {
|
|
19
|
+
label: 'Sent At',
|
|
20
|
+
description: 'When the event was sent',
|
|
21
|
+
type: 'datetime',
|
|
22
|
+
required: true,
|
|
23
|
+
default: { '@path': '$.sentAt' }
|
|
24
|
+
};
|
|
25
|
+
exports.event_type = {
|
|
26
|
+
label: 'Event Type',
|
|
27
|
+
description: 'The type of event',
|
|
28
|
+
type: 'string',
|
|
29
|
+
default: 'Send ...',
|
|
30
|
+
required: true,
|
|
31
|
+
unsafe_hidden: true
|
|
32
|
+
};
|
|
33
|
+
exports.user_id = {
|
|
34
|
+
label: 'User Id',
|
|
35
|
+
description: 'Segment User Id',
|
|
36
|
+
type: 'string',
|
|
37
|
+
readOnly: true,
|
|
38
|
+
required: false,
|
|
39
|
+
default: { '@path': '$.userId' }
|
|
40
|
+
};
|
|
41
|
+
exports.anonymous_id = {
|
|
42
|
+
label: 'Anonymous Id',
|
|
43
|
+
description: 'Segment Anonymous Id',
|
|
44
|
+
type: 'string',
|
|
45
|
+
readOnly: true,
|
|
46
|
+
required: false,
|
|
47
|
+
default: { '@path': '$.anonymousId' }
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=common_fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common_fields.js","sourceRoot":"","sources":["../../../src/destinations/chartmogul/common_fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,wBAAwB;IACrC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;CACpC,CAAA;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,8CAA8C;IAC3D,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;CACpC,CAAA;AAEY,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,yBAAyB;IACtC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;CACjC,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,mBAAmB;IAChC,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;CACpB,CAAA;AAEY,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,iBAAiB;IAC9B,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;CACjC,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,sBAAsB;IACnC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;CACtC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/chartmogul/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
7
|
+
const sendContact_1 = __importDefault(require("./sendContact"));
|
|
8
|
+
const sendCustomer_1 = __importDefault(require("./sendCustomer"));
|
|
9
|
+
const destination = {
|
|
10
|
+
name: 'Chart Mogul',
|
|
11
|
+
slug: 'actions-chartmogul',
|
|
12
|
+
mode: 'cloud',
|
|
13
|
+
description: 'Send Contacts and Customers to ChartMogul.',
|
|
14
|
+
authentication: {
|
|
15
|
+
scheme: 'custom',
|
|
16
|
+
fields: {
|
|
17
|
+
chartmogul_webhook_url: {
|
|
18
|
+
label: 'ChartMogul webhook URL',
|
|
19
|
+
description: 'Copy the webhook URL from ChartMogul and paste it here',
|
|
20
|
+
type: 'string',
|
|
21
|
+
format: 'uri',
|
|
22
|
+
required: true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
testAuthentication: (request, auth) => {
|
|
26
|
+
const targetUrl = auth?.settings?.chartmogul_webhook_url;
|
|
27
|
+
if (!targetUrl || !targetUrl.startsWith('https://')) {
|
|
28
|
+
throw new actions_core_1.InvalidAuthenticationError('Please configure the ChartMogul webhook URL.');
|
|
29
|
+
}
|
|
30
|
+
return request(targetUrl, {
|
|
31
|
+
method: 'post',
|
|
32
|
+
json: {}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
actions: {
|
|
37
|
+
sendContact: sendContact_1.default,
|
|
38
|
+
sendCustomer: sendCustomer_1.default
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
exports.default = destination;
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/chartmogul/index.ts"],"names":[],"mappings":";;;;;AAEA,wDAAkE;AAElE,gEAAuC;AAEvC,kEAAyC;AAEzC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,4CAA4C;IACzD,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,sBAAsB,EAAE;gBACtB,KAAK,EAAE,wBAAwB;gBAC/B,WAAW,EAAE,wDAAwD;gBACrE,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;YACpC,MAAM,SAAS,GAAG,IAAI,EAAE,QAAQ,EAAE,sBAAsB,CAAA;YACxD,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;gBACnD,MAAM,IAAI,yCAA0B,CAAC,8CAA8C,CAAC,CAAA;aACrF;YAED,OAAO,OAAO,CAAC,SAAS,EAAE;gBACxB,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,EAAE;aACT,CAAC,CAAA;QACJ,CAAC;KACF;IAED,OAAO,EAAE;QACP,WAAW,EAAX,qBAAW;QACX,YAAY,EAAZ,sBAAY;KACb;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
type: string;
|
|
3
|
+
message_id: string;
|
|
4
|
+
timestamp: string | number;
|
|
5
|
+
sent_at: string | number;
|
|
6
|
+
user_id?: string;
|
|
7
|
+
anonymous_id?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
first_name?: string;
|
|
10
|
+
last_name?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
phone?: string;
|
|
14
|
+
linked_in?: string;
|
|
15
|
+
twitter?: string;
|
|
16
|
+
company?: {
|
|
17
|
+
id: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/chartmogul/sendContact/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
+
const common_fields_1 = require("../common_fields");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Send Contact',
|
|
7
|
+
description: 'Send a Contact to ChartMogul CRM',
|
|
8
|
+
defaultSubscription: 'type = "identify"',
|
|
9
|
+
fields: {
|
|
10
|
+
type: { ...common_fields_1.event_type, default: 'Send Contact' },
|
|
11
|
+
message_id: common_fields_1.message_id,
|
|
12
|
+
timestamp: common_fields_1.timestamp,
|
|
13
|
+
sent_at: common_fields_1.sent_at,
|
|
14
|
+
user_id: common_fields_1.user_id,
|
|
15
|
+
anonymous_id: common_fields_1.anonymous_id,
|
|
16
|
+
email: {
|
|
17
|
+
label: 'Email',
|
|
18
|
+
description: "The user's email",
|
|
19
|
+
type: 'string',
|
|
20
|
+
format: 'email',
|
|
21
|
+
default: { '@path': '$.traits.email' }
|
|
22
|
+
},
|
|
23
|
+
first_name: {
|
|
24
|
+
label: 'First Name',
|
|
25
|
+
description: `The contact's first name`,
|
|
26
|
+
type: 'string',
|
|
27
|
+
default: { '@path': '$.traits.first_name' }
|
|
28
|
+
},
|
|
29
|
+
last_name: {
|
|
30
|
+
label: 'Last Name',
|
|
31
|
+
description: "The contact's last name",
|
|
32
|
+
type: 'string',
|
|
33
|
+
default: { '@path': '$.traits.last_name' }
|
|
34
|
+
},
|
|
35
|
+
name: {
|
|
36
|
+
label: 'Full Name',
|
|
37
|
+
description: "The contact's full name. It is used if first_name and last_name are not provided.",
|
|
38
|
+
type: 'string',
|
|
39
|
+
default: { '@path': '$.traits.name' }
|
|
40
|
+
},
|
|
41
|
+
title: {
|
|
42
|
+
label: 'Title',
|
|
43
|
+
description: `The contact's job or personal title`,
|
|
44
|
+
type: 'string',
|
|
45
|
+
default: { '@path': '$.traits.title' }
|
|
46
|
+
},
|
|
47
|
+
phone: {
|
|
48
|
+
label: 'Phone Number',
|
|
49
|
+
description: "The contact's phone number",
|
|
50
|
+
type: 'string',
|
|
51
|
+
default: { '@path': '$.traits.phone' }
|
|
52
|
+
},
|
|
53
|
+
linked_in: {
|
|
54
|
+
label: 'LinkedIn',
|
|
55
|
+
description: "The contact's LinkedIn URL",
|
|
56
|
+
type: 'string',
|
|
57
|
+
format: 'uri',
|
|
58
|
+
default: { '@path': '$.traits.linkedIn' }
|
|
59
|
+
},
|
|
60
|
+
twitter: {
|
|
61
|
+
label: 'Twitter (X)',
|
|
62
|
+
description: "The contact's Twitter (X) URL or handle",
|
|
63
|
+
type: 'string',
|
|
64
|
+
default: { '@path': '$.traits.twitter' }
|
|
65
|
+
},
|
|
66
|
+
company: {
|
|
67
|
+
label: 'Company',
|
|
68
|
+
description: "The contact's Company. It creates a Customer in ChartMogul if the company id is present.",
|
|
69
|
+
type: 'object',
|
|
70
|
+
additionalProperties: false,
|
|
71
|
+
defaultObjectUI: 'keyvalue',
|
|
72
|
+
properties: {
|
|
73
|
+
id: {
|
|
74
|
+
label: 'Company Id',
|
|
75
|
+
type: 'string',
|
|
76
|
+
required: true
|
|
77
|
+
},
|
|
78
|
+
name: {
|
|
79
|
+
label: 'Company Name',
|
|
80
|
+
type: 'string'
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
default: {
|
|
84
|
+
id: { '@path': '$.traits.company.id' },
|
|
85
|
+
name: { '@path': '$.traits.company.name' }
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
perform: (request, data) => {
|
|
90
|
+
if (!data.payload.user_id && !data.payload.anonymous_id) {
|
|
91
|
+
throw new actions_core_1.PayloadValidationError(`The user_id and/or anonymous_id must be present.`);
|
|
92
|
+
}
|
|
93
|
+
if (data.payload.company && !data.payload.company.id) {
|
|
94
|
+
delete data.payload.company;
|
|
95
|
+
}
|
|
96
|
+
if (Object.keys(data.payload).length <= 5) {
|
|
97
|
+
throw new actions_core_1.PayloadValidationError('The event contains no information of interest to Chartmogul.');
|
|
98
|
+
}
|
|
99
|
+
return request(data.settings.chartmogul_webhook_url, {
|
|
100
|
+
method: 'post',
|
|
101
|
+
json: data.payload
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
exports.default = action;
|
|
106
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","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SAC5B;QAID,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,IAAI,CAAC,EAAE;YACzC,MAAM,IAAI,qCAAsB,CAAC,8DAA8D,CAAC,CAAA;SACjG;QAED,OAAO,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,sBAAsB,EAAE;YACnD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,CAAC,OAAO;SACnB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
type: string;
|
|
3
|
+
message_id: string;
|
|
4
|
+
timestamp: string | number;
|
|
5
|
+
sent_at: string | number;
|
|
6
|
+
user_id: string;
|
|
7
|
+
group_id: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
website?: string;
|
|
12
|
+
created_at?: string | number;
|
|
13
|
+
address?: {
|
|
14
|
+
street?: string;
|
|
15
|
+
city?: string;
|
|
16
|
+
state?: string;
|
|
17
|
+
postal_code?: string;
|
|
18
|
+
country?: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/chartmogul/sendCustomer/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const common_fields_1 = require("../common_fields");
|
|
4
|
+
const action = {
|
|
5
|
+
title: 'Send Customer',
|
|
6
|
+
description: 'Send a Customer (company) to ChartMogul CRM',
|
|
7
|
+
defaultSubscription: 'type = "group"',
|
|
8
|
+
fields: {
|
|
9
|
+
type: { ...common_fields_1.event_type, default: 'Send Customer' },
|
|
10
|
+
message_id: common_fields_1.message_id,
|
|
11
|
+
timestamp: common_fields_1.timestamp,
|
|
12
|
+
sent_at: common_fields_1.sent_at,
|
|
13
|
+
user_id: { ...common_fields_1.user_id, required: true },
|
|
14
|
+
group_id: {
|
|
15
|
+
label: 'Group Id',
|
|
16
|
+
description: 'Segment Group Id',
|
|
17
|
+
type: 'string',
|
|
18
|
+
required: true,
|
|
19
|
+
default: { '@path': '$.groupId' }
|
|
20
|
+
},
|
|
21
|
+
name: {
|
|
22
|
+
label: 'Name',
|
|
23
|
+
description: "The company's name",
|
|
24
|
+
type: 'string',
|
|
25
|
+
default: { '@path': '$.traits.name' }
|
|
26
|
+
},
|
|
27
|
+
description: {
|
|
28
|
+
label: 'Description',
|
|
29
|
+
description: "The company's name",
|
|
30
|
+
type: 'string',
|
|
31
|
+
default: { '@path': '$.traits.description' }
|
|
32
|
+
},
|
|
33
|
+
email: {
|
|
34
|
+
label: 'Email',
|
|
35
|
+
description: "The company's email",
|
|
36
|
+
type: 'string',
|
|
37
|
+
format: 'email',
|
|
38
|
+
default: { '@path': '$.traits.email' }
|
|
39
|
+
},
|
|
40
|
+
website: {
|
|
41
|
+
label: 'Website',
|
|
42
|
+
description: "The company's website URL",
|
|
43
|
+
type: 'string',
|
|
44
|
+
format: 'uri-reference',
|
|
45
|
+
default: { '@path': '$.traits.website' }
|
|
46
|
+
},
|
|
47
|
+
created_at: {
|
|
48
|
+
label: 'Created at',
|
|
49
|
+
description: 'Date the group’s account was first created',
|
|
50
|
+
type: 'datetime',
|
|
51
|
+
default: { '@path': '$.traits.createdAt' }
|
|
52
|
+
},
|
|
53
|
+
address: {
|
|
54
|
+
label: 'Address',
|
|
55
|
+
type: 'object',
|
|
56
|
+
description: 'The company’s address details',
|
|
57
|
+
defaultObjectUI: 'keyvalue',
|
|
58
|
+
properties: {
|
|
59
|
+
street: {
|
|
60
|
+
label: 'Street',
|
|
61
|
+
type: 'string',
|
|
62
|
+
description: 'The company’s street address'
|
|
63
|
+
},
|
|
64
|
+
city: {
|
|
65
|
+
label: 'City',
|
|
66
|
+
type: 'string',
|
|
67
|
+
description: 'The company’s city'
|
|
68
|
+
},
|
|
69
|
+
state: {
|
|
70
|
+
label: 'State',
|
|
71
|
+
type: 'string',
|
|
72
|
+
description: 'The company’s state or region'
|
|
73
|
+
},
|
|
74
|
+
postal_code: {
|
|
75
|
+
label: 'Postal code',
|
|
76
|
+
type: 'string',
|
|
77
|
+
description: 'The company’s zip or postal code'
|
|
78
|
+
},
|
|
79
|
+
country: {
|
|
80
|
+
label: 'Country',
|
|
81
|
+
type: 'string',
|
|
82
|
+
description: 'The company’s country'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
default: {
|
|
86
|
+
street: { '@path': '$.traits.address.street' },
|
|
87
|
+
city: { '@path': '$.traits.address.city' },
|
|
88
|
+
state: { '@path': '$.traits.address.state' },
|
|
89
|
+
postal_code: { '@path': '$.traits.address.postalCode' },
|
|
90
|
+
country: { '@path': '$.traits.address.country' }
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
perform: (request, data) => {
|
|
95
|
+
return request(data.settings.chartmogul_webhook_url, {
|
|
96
|
+
method: 'post',
|
|
97
|
+
json: data.payload
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
exports.default = action;
|
|
102
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/chartmogul/sendCustomer/index.ts"],"names":[],"mappings":";;AAGA,oDAAsF;AAEtF,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,6CAA6C;IAC1D,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,IAAI,EAAE,EAAE,GAAG,0BAAU,EAAE,OAAO,EAAE,eAAe,EAAE;QACjD,UAAU,EAAV,0BAAU;QACV,SAAS,EAAT,yBAAS;QACT,OAAO,EAAP,uBAA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AAW,EAAE,8BAA8B;iBAC5C;gBACD,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;oBACb,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,oBAAoB;iBAClC;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE,OAAO;oBACd,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,+BAA+B;iBAC7C;gBACD,WAAW,EAAE;oBACX,KAAK,EAAE,aAAa;oBACpB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,kCAAkC;iBAChD;gBACD,OAAO,EAAE;oBACP,KAAK,EAAE,SAAS;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,uBAAuB;iBACrC;aACF;YACD,OAAO,EAAE;gBACP,MAAM,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE;gBAC9C,IAAI,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE;gBAC1C,KAAK,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;gBAC5C,WAAW,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE;gBACvD,OAAO,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE;aACjD;SACF;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,sBAAsB,EAAE;YACnD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,CAAC,OAAO;SACnB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/customerio/index.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/customerio/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAAqD;AACrD,8EAAqD;AACrD,8EAAqD;AACrD,8EAAqD;AAC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EAAE,eAAe;YACrB,SAAS,EAAE,iCAAiC;SAC7C;QACD;YACE,IAAI,EAAE,sCAAsC;YAC5C,aAAa,EAAE,oBAAoB;YACnC,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,4BAAkB,CAAC,MAAM,CAAC;gBAC3C,iBAAiB,EAAE;oBACjB,OAAO,EAAE,UAAU;iBACpB;aACF;YACD,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,gDAAgD;SAC5D;QACD;YACE,IAAI,EAAE,gCAAgC;YACtC,aAAa,EAAE,YAAY;YAC3B,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,oBAAU,CAAC,MAAM,CAAC;gBACnC,IAAI,EAAE;oBACJ,OAAO,EAAE,cAAc;iBACxB;aACF;YACD,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,6BAA6B;SACzC;KACF;IAED,QAAQ,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE;QACrC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;QAE1B,MAAM,GAAG,GAAG,GAAG,wBAAgB,CAAC,QAAQ,CAAC,qBAAqB,MAAM,EAAE,CAAA;QAEtE,OAAO,OAAO,CAAC,GAAG,EAAE;YAClB,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ContextFromDecorator } from './operationTracking';
|
|
2
2
|
export declare const track: ((decoratorArgs?: ({
|
|
3
|
-
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
4
|
-
} & {
|
|
5
3
|
onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
|
|
6
|
-
} & {
|
|
4
|
+
} & import("./operationTracking").OperationLoggerDecoratorArgs & {
|
|
7
5
|
onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
8
6
|
onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
9
|
-
} &
|
|
7
|
+
} & {
|
|
8
|
+
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
9
|
+
} & {
|
|
10
10
|
wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
|
|
11
11
|
}) | undefined) => import("./operationTracking").GenericMethodDecorator<(this: any, ...args: any[]) => any>) & {
|
|
12
12
|
getCurrentOperation(classInstance: any): (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
|
|
@@ -15,13 +15,8 @@ export declare const track: ((decoratorArgs?: ({
|
|
|
15
15
|
}) | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
_contextType: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
tags: string[];
|
|
21
|
-
};
|
|
22
|
-
decoratorArgs?: {
|
|
23
|
-
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
24
|
-
} | undefined;
|
|
18
|
+
start?: number | undefined;
|
|
19
|
+
duration?: number | undefined;
|
|
25
20
|
} & {
|
|
26
21
|
decoratorArgs?: {
|
|
27
22
|
onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
|
|
@@ -30,8 +25,10 @@ export declare const track: ((decoratorArgs?: ({
|
|
|
30
25
|
parent?: (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & any) | undefined;
|
|
31
26
|
sharedContext: {};
|
|
32
27
|
} & {
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
logs: string[];
|
|
29
|
+
logMetadata?: Record<string, unknown> | undefined;
|
|
30
|
+
decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs | undefined;
|
|
31
|
+
sharedContext: import("./operationTracking").OperationLoggerSharedContext;
|
|
35
32
|
} & {
|
|
36
33
|
onFinally: (() => void)[];
|
|
37
34
|
decoratorArgs?: {
|
|
@@ -39,10 +36,13 @@ export declare const track: ((decoratorArgs?: ({
|
|
|
39
36
|
onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
40
37
|
} | undefined;
|
|
41
38
|
} & {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
tags: string[];
|
|
40
|
+
sharedContext: {
|
|
41
|
+
tags: string[];
|
|
42
|
+
};
|
|
43
|
+
decoratorArgs?: {
|
|
44
|
+
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
45
|
+
} | undefined;
|
|
46
46
|
} & {
|
|
47
47
|
decoratorArgs?: {
|
|
48
48
|
wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
|
|
@@ -59,12 +59,30 @@ const action = {
|
|
|
59
59
|
restatement_value: {
|
|
60
60
|
label: 'Restatement Value',
|
|
61
61
|
description: 'The restated conversion value. This is the value of the conversion after restatement. For example, to change the value of a conversion from 100 to 70, an adjusted value of 70 should be reported. Required for RESTATEMENT adjustments.',
|
|
62
|
-
type: 'number'
|
|
62
|
+
type: 'number',
|
|
63
|
+
depends_on: {
|
|
64
|
+
conditions: [
|
|
65
|
+
{
|
|
66
|
+
fieldKey: 'adjustment_type',
|
|
67
|
+
operator: 'is_not',
|
|
68
|
+
value: ['RETRACTION']
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
63
72
|
},
|
|
64
73
|
restatement_currency_code: {
|
|
65
74
|
label: 'Restatement Currency Code',
|
|
66
75
|
description: 'The currency of the restated value. If not provided, then the default currency from the conversion action is used, and if that is not set then the account currency is used. This is the ISO 4217 3-character currency code, e.g. USD or EUR.',
|
|
67
|
-
type: 'string'
|
|
76
|
+
type: 'string',
|
|
77
|
+
depends_on: {
|
|
78
|
+
conditions: [
|
|
79
|
+
{
|
|
80
|
+
fieldKey: 'adjustment_type',
|
|
81
|
+
operator: 'is_not',
|
|
82
|
+
value: ['RETRACTION']
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
68
86
|
},
|
|
69
87
|
email_address: {
|
|
70
88
|
label: 'Email Address',
|
package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.ts"],"names":[],"mappings":";;AAAA,wDAAqH;AACrH,4CAOqB;AAMrB,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,8BAA8B;IACrC,WAAW,EAAE,uDAAuD;IACpE,MAAM,EAAE;QACN,iBAAiB,EAAE;YACjB,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,kEAAkE;YAC/E,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;SACd;QACD,eAAe,EAAE;YACf,KAAK,EAAE,iBAAiB;YACxB,WAAW,EACT,mMAAmM;YACrM,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;gBAC9C,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;gBACtC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;gBAC5C,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;gBAC9C,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;aAC/C;YACD,QAAQ,EAAE,IAAI;SACf;QACD,oBAAoB,EAAE;YACpB,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EACT,iRAAiR;YACnR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EACT,8JAA8J;YAChK,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;oBAC3C,IAAI,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;oBACzC,IAAI,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE;iBAC3C;aACF;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EACT,yHAAyH;YAC3H,IAAI,EAAE,QAAQ;SACf;QACD,oBAAoB,EAAE;YACpB,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EACT,wOAAwO;YAC1O,IAAI,EAAE,QAAQ;SACf;QACD,iBAAiB,EAAE;YACjB,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACT,0OAA0O;YAC5O,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.ts"],"names":[],"mappings":";;AAAA,wDAAqH;AACrH,4CAOqB;AAMrB,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,8BAA8B;IACrC,WAAW,EAAE,uDAAuD;IACpE,MAAM,EAAE;QACN,iBAAiB,EAAE;YACjB,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,kEAAkE;YAC/E,IAAI,EAAE,QAAQ;YACd,QAAQ,EA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B,OAAO,CAAC,UAAU;YAClB,OAAO,CAAC,SAAS;YACjB,OAAO,CAAC,IAAI;YACZ,OAAO,CAAC,KAAK;YACb,OAAO,CAAC,OAAO;YACf,OAAO,CAAC,WAAW;YACnB,OAAO,CAAC,cAAc,CAAA;QAExB,IAAI,mBAAmB,EAAE;YACvB,cAAc,CAAC,eAAe,CAAC,IAAI,CAAC;gBAClC,WAAW,EAAE;oBACX,eAAe,EAAE,gBAAI,CAAC,OAAO,CAAC,UAAU,CAAC;oBACzC,cAAc,EAAE,gBAAI,CAAC,OAAO,CAAC,SAAS,CAAC;oBACvC,mBAAmB,EAAE,gBAAI,CAAC,OAAO,CAAC,cAAc,CAAC;oBACjD,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,WAAW,EAAE,OAAO,CAAC,OAAO;oBAC5B,UAAU,EAAE,OAAO,CAAC,WAAW;iBAChC;aACF,CAAC,CAAA;SACH;QAED,MAAM,QAAQ,GAA2C,MAAM,OAAO,CACpE,oCAAoC,yBAAa,CAAC,QAAQ,EAAE,YAAY,CAAC,cACvE,QAAQ,CAAC,UACX,8BAA8B,EAC9B;YACE,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,iBAAiB,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE;aAC5D;YACD,IAAI,EAAE;gBACJ,qBAAqB,EAAE,CAAC,cAAc,CAAC;gBACvC,cAAc,EAAE,IAAI;aACrB;SACF,CACF,CAAA;QAED,8BAAkB,CAAC,QAAQ,CAAC,CAAA;QAC5B,OAAO,QAAQ,CAAA;IACjB,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -157,10 +157,13 @@ register('65b8e89cd96df17201b04a49', './surveysparrow');
|
|
|
157
157
|
register('65c2465d0d7d550aa8e7e5c6', './avo');
|
|
158
158
|
register('65c36c1e127fb2c8188a414c', './stackadapt');
|
|
159
159
|
register('65cb48feaca9d46bf269ac4a', './accoil-analytics');
|
|
160
|
-
register('6578a19fbd1201d21f035156', './responsys');
|
|
161
160
|
register('65dde5755698cb0dab09b489', './kafka');
|
|
162
161
|
register('65e71d50e1191c6273d1df1d', './kevel-audience');
|
|
163
162
|
register('65f05e455b125cddd886b793', './moloco-rmp');
|
|
163
|
+
register('6578a19fbd1201d21f035156', './responsys');
|
|
164
|
+
register('65f9885371de48a7a3f6b4bf', './yotpo');
|
|
165
|
+
register('65f98869b73d65a27152e088', './mantle');
|
|
166
|
+
register('65f9888628c310646331738a', './chartmogul');
|
|
164
167
|
function register(id, destinationPath) {
|
|
165
168
|
const definition = require(destinationPath).default;
|
|
166
169
|
const resolvedPath = require.resolve(destinationPath);
|