@segment/action-destinations 3.205.2 → 3.205.3-dynamic-settings.56
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/absmartly/attribute.d.ts +5 -0
- package/dist/destinations/absmartly/attribute.js +3 -0
- package/dist/destinations/absmartly/attribute.js.map +1 -0
- package/dist/destinations/absmartly/event.d.ts +20 -0
- package/dist/destinations/absmartly/event.js +51 -0
- package/dist/destinations/absmartly/event.js.map +1 -0
- package/dist/destinations/absmartly/exposure.d.ts +9 -0
- package/dist/destinations/absmartly/exposure.js +59 -0
- package/dist/destinations/absmartly/exposure.js.map +1 -0
- package/dist/destinations/absmartly/generated-types.d.ts +5 -0
- package/dist/destinations/absmartly/generated-types.js +3 -0
- package/dist/destinations/absmartly/generated-types.js.map +1 -0
- package/dist/destinations/absmartly/goal.d.ts +17 -0
- package/dist/destinations/absmartly/goal.js +80 -0
- package/dist/destinations/absmartly/goal.js.map +1 -0
- package/dist/destinations/absmartly/index.d.ts +4 -0
- package/dist/destinations/absmartly/index.js +101 -0
- package/dist/destinations/absmartly/index.js.map +1 -0
- package/dist/destinations/absmartly/timestamp.d.ts +3 -0
- package/dist/destinations/absmartly/timestamp.js +20 -0
- package/dist/destinations/absmartly/timestamp.js.map +1 -0
- package/dist/destinations/absmartly/trackExposure/generated-types.d.ts +8 -0
- package/dist/destinations/absmartly/trackExposure/generated-types.js +3 -0
- package/dist/destinations/absmartly/trackExposure/generated-types.js.map +1 -0
- package/dist/destinations/absmartly/trackExposure/index.d.ts +5 -0
- package/dist/destinations/absmartly/trackExposure/index.js +15 -0
- package/dist/destinations/absmartly/trackExposure/index.js.map +1 -0
- package/dist/destinations/absmartly/trackGoal/generated-types.d.ts +13 -0
- package/dist/destinations/absmartly/trackGoal/generated-types.js +3 -0
- package/dist/destinations/absmartly/trackGoal/generated-types.js.map +1 -0
- package/dist/destinations/absmartly/trackGoal/index.d.ts +5 -0
- package/dist/destinations/absmartly/trackGoal/index.js +15 -0
- package/dist/destinations/absmartly/trackGoal/index.js.map +1 -0
- package/dist/destinations/absmartly/unit.d.ts +8 -0
- package/dist/destinations/absmartly/unit.js +16 -0
- package/dist/destinations/absmartly/unit.js.map +1 -0
- package/dist/destinations/airship/setAttributes/generated-types.d.ts +3 -3
- package/dist/destinations/airship/setAttributes/index.js +3 -3
- package/dist/destinations/airship/setAttributes/index.js.map +1 -1
- package/dist/destinations/airship/utilities.js +3 -0
- package/dist/destinations/airship/utilities.js.map +1 -1
- package/dist/destinations/attio/assertRecord/generated-types.d.ts +0 -1
- package/dist/destinations/attio/assertRecord/index.js +5 -11
- package/dist/destinations/attio/assertRecord/index.js.map +1 -1
- package/dist/destinations/attio/groupWorkspace/index.js +7 -7
- package/dist/destinations/attio/groupWorkspace/index.js.map +1 -1
- package/dist/destinations/attio/identifyUser/generated-types.d.ts +0 -1
- package/dist/destinations/attio/identifyUser/index.js +8 -13
- package/dist/destinations/attio/identifyUser/index.js.map +1 -1
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +9 -5
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
- package/dist/destinations/facebook-custom-audiences/index.js +14 -1
- package/dist/destinations/facebook-custom-audiences/index.js.map +1 -1
- package/dist/destinations/hubspot/index.js +1 -0
- package/dist/destinations/hubspot/index.js.map +1 -1
- package/dist/destinations/hubspot/upsertContact/generated-types.d.ts +1 -0
- package/dist/destinations/hubspot/upsertContact/index.d.ts +22 -0
- package/dist/destinations/hubspot/upsertContact/index.js +136 -0
- package/dist/destinations/hubspot/upsertContact/index.js.map +1 -1
- package/dist/destinations/index.js +1 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/klaviyo/generated-types.d.ts +3 -0
- package/dist/destinations/klaviyo/generated-types.js +3 -0
- package/dist/destinations/klaviyo/generated-types.js.map +1 -0
- package/dist/destinations/klaviyo/index.d.ts +4 -0
- package/dist/destinations/klaviyo/index.js +54 -0
- package/dist/destinations/klaviyo/index.js.map +1 -0
- package/dist/destinations/launchdarkly-audiences/syncAudience/generated-types.d.ts +1 -0
- package/dist/destinations/launchdarkly-audiences/syncAudience/index.js +7 -0
- package/dist/destinations/launchdarkly-audiences/syncAudience/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js +41 -12
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js +43 -15
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/sftp.js +21 -6
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/sftp.js.map +1 -1
- package/dist/destinations/liveramp-audiences/awsClient.d.ts +21 -0
- package/dist/destinations/liveramp-audiences/awsClient.js +88 -0
- package/dist/destinations/liveramp-audiences/awsClient.js.map +1 -0
- package/dist/destinations/liveramp-audiences/operations.d.ts +23 -3
- package/dist/destinations/liveramp-audiences/operations.js +1 -1
- package/dist/destinations/liveramp-audiences/operations.js.map +1 -1
- package/dist/destinations/liveramp-audiences/properties.d.ts +5 -0
- package/dist/destinations/liveramp-audiences/properties.js +9 -0
- package/dist/destinations/liveramp-audiences/properties.js.map +1 -0
- package/dist/destinations/mixpanel/mixpanel-types.d.ts +5 -0
- package/dist/destinations/mixpanel/trackEvent/functions.js +6 -1
- package/dist/destinations/mixpanel/trackEvent/functions.js.map +1 -1
- package/dist/destinations/optimizely-advanced-audience-targeting/syncAudience/index.js +4 -3
- package/dist/destinations/optimizely-advanced-audience-targeting/syncAudience/index.js.map +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/index.js +3 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/index.js.map +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.js +3 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.js.map +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js +3 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js.map +1 -1
- package/dist/destinations/salesforce/account/generated-types.d.ts +1 -0
- package/dist/destinations/salesforce/account/index.js +1 -0
- package/dist/destinations/salesforce/account/index.js.map +1 -1
- package/dist/destinations/salesforce/cases/generated-types.d.ts +1 -0
- package/dist/destinations/salesforce/cases/index.js +1 -0
- package/dist/destinations/salesforce/cases/index.js.map +1 -1
- package/dist/destinations/salesforce/contact/generated-types.d.ts +1 -0
- package/dist/destinations/salesforce/contact/index.js +1 -0
- package/dist/destinations/salesforce/contact/index.js.map +1 -1
- package/dist/destinations/salesforce/customObject/generated-types.d.ts +1 -0
- package/dist/destinations/salesforce/customObject/index.js +1 -0
- package/dist/destinations/salesforce/customObject/index.js.map +1 -1
- package/dist/destinations/salesforce/lead/generated-types.d.ts +1 -0
- package/dist/destinations/salesforce/lead/index.js +1 -0
- package/dist/destinations/salesforce/lead/index.js.map +1 -1
- package/dist/destinations/salesforce/opportunity/generated-types.d.ts +1 -0
- package/dist/destinations/salesforce/opportunity/index.js +1 -0
- package/dist/destinations/salesforce/opportunity/index.js.map +1 -1
- package/dist/destinations/salesforce/sf-operations.d.ts +7 -6
- package/dist/destinations/salesforce/sf-operations.js +15 -8
- package/dist/destinations/salesforce/sf-operations.js.map +1 -1
- package/dist/destinations/salesforce/sf-properties.d.ts +1 -0
- package/dist/destinations/salesforce/sf-properties.js +9 -1
- package/dist/destinations/salesforce/sf-properties.js.map +1 -1
- package/dist/destinations/salesforce/sf-utils.js +8 -10
- package/dist/destinations/salesforce/sf-utils.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/generated-types.d.ts +1 -0
- package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.js +2 -1
- package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/dataExtension/generated-types.d.ts +1 -0
- package/dist/destinations/salesforce-marketing-cloud/dataExtension/index.js +2 -1
- package/dist/destinations/salesforce-marketing-cloud/dataExtension/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.d.ts +1 -0
- package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js +9 -1
- package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js.map +1 -1
- package/dist/destinations/segment/sendGroup/index.js +6 -1
- package/dist/destinations/segment/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment/sendIdentify/index.js +6 -1
- package/dist/destinations/segment/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment/sendPage/index.js +6 -1
- package/dist/destinations/segment/sendPage/index.js.map +1 -1
- package/dist/destinations/segment/sendScreen/index.js +6 -1
- package/dist/destinations/segment/sendScreen/index.js.map +1 -1
- package/dist/destinations/segment/sendTrack/index.js +6 -1
- package/dist/destinations/segment/sendTrack/index.js.map +1 -1
- package/dist/destinations/segment-profiles/errors.d.ts +10 -0
- package/dist/destinations/segment-profiles/errors.js +11 -1
- package/dist/destinations/segment-profiles/errors.js.map +1 -1
- package/dist/destinations/segment-profiles/index.js +3 -1
- package/dist/destinations/segment-profiles/index.js.map +1 -1
- package/dist/destinations/segment-profiles/segment-properties.d.ts +10 -0
- package/dist/destinations/segment-profiles/segment-properties.js +58 -1
- package/dist/destinations/segment-profiles/segment-properties.js.map +1 -1
- package/dist/destinations/segment-profiles/sendGroup/index.js +6 -1
- package/dist/destinations/segment-profiles/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendIdentify/index.js +8 -3
- package/dist/destinations/segment-profiles/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendSubscription/generated-types.d.ts +20 -0
- package/dist/destinations/segment-profiles/sendSubscription/generated-types.js +3 -0
- package/dist/destinations/segment-profiles/sendSubscription/generated-types.js.map +1 -0
- package/dist/destinations/segment-profiles/sendSubscription/index.d.ts +5 -0
- package/dist/destinations/segment-profiles/sendSubscription/index.js +199 -0
- package/dist/destinations/segment-profiles/sendSubscription/index.js.map +1 -0
- package/dist/destinations/tiktok-audiences/addToAudience/index.js +11 -4
- package/dist/destinations/tiktok-audiences/addToAudience/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/addUser/index.js +11 -4
- package/dist/destinations/tiktok-audiences/addUser/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/constants.d.ts +1 -0
- package/dist/destinations/tiktok-audiences/constants.js +2 -1
- package/dist/destinations/tiktok-audiences/constants.js.map +1 -1
- package/dist/destinations/tiktok-audiences/createAudience/index.js +1 -1
- package/dist/destinations/tiktok-audiences/createAudience/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/generated-types.d.ts +2 -2
- package/dist/destinations/tiktok-audiences/index.js +10 -9
- package/dist/destinations/tiktok-audiences/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/removeFromAudience/index.js +11 -4
- package/dist/destinations/tiktok-audiences/removeFromAudience/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/removeUser/index.js +11 -4
- package/dist/destinations/tiktok-audiences/removeUser/index.js.map +1 -1
- package/dist/destinations/usermaven/vars.js +7 -1
- package/dist/destinations/usermaven/vars.js.map +1 -1
- package/dist/destinations/webhook-audiences/index.js +8 -2
- package/dist/destinations/webhook-audiences/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -10,7 +10,8 @@ const action = {
|
|
|
10
10
|
id: sfmc_properties_1.id,
|
|
11
11
|
keys: { ...sfmc_properties_1.keys, required: true },
|
|
12
12
|
values: sfmc_properties_1.values_dataExtensionFields,
|
|
13
|
-
enable_batching: sfmc_properties_1.enable_batching
|
|
13
|
+
enable_batching: sfmc_properties_1.enable_batching,
|
|
14
|
+
batch_size: sfmc_properties_1.batch_size
|
|
14
15
|
},
|
|
15
16
|
perform: async (request, { settings, payload }) => {
|
|
16
17
|
return sfmc_operations_1.upsertRows(request, settings.subdomain, [payload]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/dataExtension/index.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/dataExtension/index.ts"],"names":[],"mappings":";;AAGA,wDAA2G;AAC3G,wDAA+C;AAE/C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,8BAA8B;IACrC,WAAW,EAAE,sFAAsF;IACnG,MAAM,EAAE;QACN,GAAG,EAAE,qBAAG;QACR,EAAE,EAAE,oBAAE;QACN,IAAI,EAAE,EAAE,GAAG,sBAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;QACjC,MAAM,EAAE,4CAA0B;QAClC,eAAe,EAAE,iCAAe;QAChC,UAAU,EAAE,4BAAU;KACvB;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,OAAO,4BAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAC3D,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACrD,OAAO,4BAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IACzD,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.enable_batching = exports.eventData = exports.eventDefinitionKey = exports.values_dataExtensionFields = exports.values_contactFields = exports.keys = exports.id = exports.key = exports.contactKeyAPIEvent = exports.contactKey = void 0;
|
|
3
|
+
exports.batch_size = exports.enable_batching = exports.eventData = exports.eventDefinitionKey = exports.values_dataExtensionFields = exports.values_contactFields = exports.keys = exports.id = exports.key = exports.contactKeyAPIEvent = exports.contactKey = void 0;
|
|
4
4
|
exports.contactKey = {
|
|
5
5
|
label: 'Contact Key',
|
|
6
6
|
description: 'The unique identifier that you assign to a contact. This will be used to create a contact if one does not already exist with this Contact Key.',
|
|
@@ -64,4 +64,12 @@ exports.enable_batching = {
|
|
|
64
64
|
type: 'boolean',
|
|
65
65
|
default: false
|
|
66
66
|
};
|
|
67
|
+
exports.batch_size = {
|
|
68
|
+
label: 'Batch Size',
|
|
69
|
+
description: 'Maximum number of events to include in each batch. Actual batch sizes may be lower.',
|
|
70
|
+
type: 'number',
|
|
71
|
+
required: false,
|
|
72
|
+
unsafe_hidden: true,
|
|
73
|
+
default: 5000
|
|
74
|
+
};
|
|
67
75
|
//# sourceMappingURL=sfmc-properties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sfmc-properties.js","sourceRoot":"","sources":["../../../src/destinations/salesforce-marketing-cloud/sfmc-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,aAAa;IACpB,WAAW,EACT,gJAAgJ;IAClJ,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;CACjC,CAAA;AAEY,QAAA,kBAAkB,GAAe;IAC5C,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,kEAAkE;IAC/E,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;IAChC,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,GAAG,GAAe;IAC7B,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EACT,mMAAmM;IACrM,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,EAAE,GAAe;IAC5B,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,gLAAgL;IAClL,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,IAAI,GAAe;IAC9B,KAAK,EAAE,6BAA6B;IACpC,WAAW,EACT,sVAAsV;IACxV,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,eAAe,EAAE,eAAe;IAChC,oBAAoB,EAAE,IAAI;CAC3B,CAAA;AAEY,QAAA,oBAAoB,GAAe;IAC9C,KAAK,EAAE,gBAAgB;IACvB,WAAW,EACT,iWAAiW;IACnW,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,eAAe;IAChC,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,0BAA0B,GAAe;IACpD,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,iXAAiX;IACnX,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,eAAe;IAChC,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,kBAAkB,GAAe;IAC5C,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EACT,wHAAwH;IAC1H,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,YAAY;IACnB,WAAW,EACT,6SAA6S;IAC/S,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,eAAe;CACjC,CAAA;AAEY,QAAA,eAAe,GAAe;IACzC,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EAAE,qEAAqE;IAClF,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,KAAK;CACf,CAAA"}
|
|
1
|
+
{"version":3,"file":"sfmc-properties.js","sourceRoot":"","sources":["../../../src/destinations/salesforce-marketing-cloud/sfmc-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,aAAa;IACpB,WAAW,EACT,gJAAgJ;IAClJ,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;CACjC,CAAA;AAEY,QAAA,kBAAkB,GAAe;IAC5C,KAAK,EAAE,aAAa;IACpB,WAAW,E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I,EAAE,SAAS;IACf,OAAO,EAAE,KAAK;CACf,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,qFAAqF;IAClG,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,aAAa,EAAE,IAAI;IACnB,OAAO,EAAE,IAAI;CACd,CAAA"}
|
|
@@ -26,7 +26,7 @@ const action = {
|
|
|
26
26
|
timezone: segment_properties_1.timezone,
|
|
27
27
|
traits: segment_properties_1.traits
|
|
28
28
|
},
|
|
29
|
-
perform: (request, { payload, settings }) => {
|
|
29
|
+
perform: (request, { payload, settings, features, statsContext }) => {
|
|
30
30
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
31
31
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
32
32
|
}
|
|
@@ -56,6 +56,11 @@ const action = {
|
|
|
56
56
|
if (!settings.endpoint || !(settings.endpoint in properties_1.SEGMENT_ENDPOINTS)) {
|
|
57
57
|
throw errors_1.InvalidEndpointSelectedThrowableError;
|
|
58
58
|
}
|
|
59
|
+
if (features && features['actions-segment-tapi-internal-enabled']) {
|
|
60
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendGroup']);
|
|
61
|
+
const payload = { ...groupPayload, type: 'group' };
|
|
62
|
+
return { batch: [payload] };
|
|
63
|
+
}
|
|
59
64
|
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
60
65
|
return request(`${selectedSegmentEndpoint}/group`, {
|
|
61
66
|
method: 'POST',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendGroup/index.ts"],"names":[],"mappings":";;AAGA,8DAkB8B;AAC9B,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,wGAAwG;IACrH,mBA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AAE;YACjE,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAA;YAC/F,MAAM,OAAO,GAAG,EAAE,GAAG,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;YAClD,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,CAAA;SAC5B;QAED,MAAM,uBAAuB,GAAG,8BAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAA;QACxE,OAAO,OAAO,CAAC,GAAG,uBAAuB,QAAQ,EAAE;YACjD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,YAAY;SACnB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -26,7 +26,7 @@ const action = {
|
|
|
26
26
|
group_id: segment_properties_1.group_id,
|
|
27
27
|
traits: segment_properties_1.traits
|
|
28
28
|
},
|
|
29
|
-
perform: (request, { payload, settings }) => {
|
|
29
|
+
perform: (request, { payload, settings, features, statsContext }) => {
|
|
30
30
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
31
31
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
32
32
|
}
|
|
@@ -56,6 +56,11 @@ const action = {
|
|
|
56
56
|
if (!settings.endpoint || !(settings.endpoint in properties_1.SEGMENT_ENDPOINTS)) {
|
|
57
57
|
throw errors_1.InvalidEndpointSelectedThrowableError;
|
|
58
58
|
}
|
|
59
|
+
if (features && features['actions-segment-tapi-internal-enabled']) {
|
|
60
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendIdentify']);
|
|
61
|
+
const payload = { ...identifyPayload, type: 'identify' };
|
|
62
|
+
return { batch: [payload] };
|
|
63
|
+
}
|
|
59
64
|
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
60
65
|
return request(`${selectedSegmentEndpoint}/identify`, {
|
|
61
66
|
method: 'POST',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAkB8B;AAC9B,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,gIAAgI;IAClI,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,SAAS,EAAT,8BAAS;QACT,WAAW,EAAX,gCAAW;QACX,mBAAmB,EAAnB,wCAAmB;QACnB,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,MAAM,EAAN,2BAAM;QACN,QAAQ,EAAR,6BAAQ;QACR,OAAO,EAAP,4BAAO;QACP,gBAAgB,EAAhB,qCAAgB;QAChB,IAAI,EAAJ,yBAAI;QACJ,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,QAAQ,EAAR,6BAAQ;QACR,QAAQ,EAAR,6BAAQ;QACR,MAAM,EAAN,2BAAM;KACP;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAkB8B;AAC9B,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,gIAAgI;IAClI,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,SAAS,EAAT,8BAAS;QACT,WAAW,EAAX,gCAAW;QACX,mBAAmB,EAA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MAAM;aACnB;SACF,CAAA;QAGD,IAAI,CAAC,QAAQ,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,IAAI,8BAAiB,CAAC,EAAE;YACnE,MAAM,8CAAqC,CAAA;SAC5C;QAGD,IAAI,QAAQ,IAAI,QAAQ,CAAC,uCAAuC,CAAC,EAAE;YACjE,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAA;YAClG,MAAM,OAAO,GAAG,EAAE,GAAG,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;YACxD,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,CAAA;SAC5B;QAED,MAAM,uBAAuB,GAAG,8BAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAA;QAExE,OAAO,OAAO,CAAC,GAAG,uBAAuB,WAAW,EAAE;YACpD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,eAAe;SACtB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -28,7 +28,7 @@ const action = {
|
|
|
28
28
|
group_id: segment_properties_1.group_id,
|
|
29
29
|
properties: segment_properties_1.properties
|
|
30
30
|
},
|
|
31
|
-
perform: (request, { payload, settings }) => {
|
|
31
|
+
perform: (request, { payload, settings, features, statsContext }) => {
|
|
32
32
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
33
33
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
34
34
|
}
|
|
@@ -66,6 +66,11 @@ const action = {
|
|
|
66
66
|
if (!settings.endpoint || !(settings.endpoint in properties_1.SEGMENT_ENDPOINTS)) {
|
|
67
67
|
throw errors_1.InvalidEndpointSelectedThrowableError;
|
|
68
68
|
}
|
|
69
|
+
if (features && features['actions-segment-tapi-internal-enabled']) {
|
|
70
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendPage']);
|
|
71
|
+
const payload = { ...pagePayload, type: 'page' };
|
|
72
|
+
return { batch: [payload] };
|
|
73
|
+
}
|
|
69
74
|
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
70
75
|
return request(`${selectedSegmentEndpoint}/page`, {
|
|
71
76
|
method: 'POST',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendPage/index.ts"],"names":[],"mappings":";;AAGA,8DAoB8B;AAC9B,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,uFAAuF;IACpG,mBAAmB,EAAE,eAAe;IACpC,MAAM,EAAE;QACN,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,SAAS,EAAT,8BAAS;QACT,SAAS,EAAT,8BAAS;QACT,aAAa,EAAb,kCAAa;QACb,WAAW,EAAX,gCAAW;QACX,mBAAmB,EAAnB,wCAAmB;QACnB,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,MAAM,EAAN,2BAAM;QACN,QAAQ,EAAR,6BAAQ;QACR,OAAO,EAAP,4BAAO;QACP,gBAAgB,EAAhB,qCAAgB;QAChB,IAAI,EAAJ,yBAAI;QACJ,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,QAAQ,EAAR,6BAAQ;QACR,QAAQ,EAAR,6BAAQ;QACR,UAAU,EAAV,+BAAU;KACX;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendPage/index.ts"],"names":[],"mappings":";;AAGA,8DAoB8B;AAC9B,8CAAiD;AACjD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CAAA;QACxE,OAAO,OAAO,CAAC,GAAG,uBAAuB,OAAO,EAAE;YAChD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,WAAW;SAClB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -27,7 +27,7 @@ const action = {
|
|
|
27
27
|
group_id: segment_properties_1.group_id,
|
|
28
28
|
properties: segment_properties_1.properties
|
|
29
29
|
},
|
|
30
|
-
perform: (request, { payload, settings }) => {
|
|
30
|
+
perform: (request, { payload, settings, features, statsContext }) => {
|
|
31
31
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
32
32
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
33
33
|
}
|
|
@@ -58,6 +58,11 @@ const action = {
|
|
|
58
58
|
if (!settings.endpoint || !(settings.endpoint in properties_1.SEGMENT_ENDPOINTS)) {
|
|
59
59
|
throw errors_1.InvalidEndpointSelectedThrowableError;
|
|
60
60
|
}
|
|
61
|
+
if (features && features['actions-segment-tapi-internal-enabled']) {
|
|
62
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendScreen']);
|
|
63
|
+
const payload = { ...screenPayload, type: 'screen' };
|
|
64
|
+
return { batch: [payload] };
|
|
65
|
+
}
|
|
61
66
|
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
62
67
|
return request(`${selectedSegmentEndpoint}/screen`, {
|
|
63
68
|
method: 'POST',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendScreen/index.ts"],"names":[],"mappings":";;AAGA,8DAmB8B;AAC9B,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,8FAA8F;IAC3G,mBAAmB,EAAE,iBAAiB;IACtC,MAAM,EAAE;QACN,OAAO,EAAP,4BA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AC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAA;YAChG,MAAM,OAAO,GAAG,EAAE,GAAG,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;YACpD,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,CAAA;SAC5B;QAED,MAAM,uBAAuB,GAAG,8BAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAA;QAExE,OAAO,OAAO,CAAC,GAAG,uBAAuB,SAAS,EAAE;YAClD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,aAAa;SACpB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -27,7 +27,7 @@ const action = {
|
|
|
27
27
|
group_id: segment_properties_1.group_id,
|
|
28
28
|
properties: segment_properties_1.properties
|
|
29
29
|
},
|
|
30
|
-
perform: (request, { payload, settings }) => {
|
|
30
|
+
perform: (request, { payload, settings, features, statsContext }) => {
|
|
31
31
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
32
32
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
33
33
|
}
|
|
@@ -58,6 +58,11 @@ const action = {
|
|
|
58
58
|
if (!settings.endpoint || !(settings.endpoint in properties_1.SEGMENT_ENDPOINTS)) {
|
|
59
59
|
throw errors_1.InvalidEndpointSelectedThrowableError;
|
|
60
60
|
}
|
|
61
|
+
if (features && features['actions-segment-tapi-internal-enabled']) {
|
|
62
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendTrack']);
|
|
63
|
+
const payload = { ...trackPayload, type: 'track' };
|
|
64
|
+
return { batch: [payload] };
|
|
65
|
+
}
|
|
61
66
|
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
62
67
|
return request(`${selectedSegmentEndpoint}/track`, {
|
|
63
68
|
method: 'POST',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendTrack/index.ts"],"names":[],"mappings":";;AAGA,8DAmB8B;AAC9B,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,iGAAiG;IAC9G,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,SAAS,EAAT,8BAAS;QACT,UAAU,EAAV,+BAAU;QACV,WAAW,EAAX,gCAAW;QACX,mBAAmB,EAAnB,wCAAmB;QACnB,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,MAAM,EAAN,2BAAM;QACN,QAAQ,EAAR,6BAAQ;QACR,OAAO,EAAP,4BAAO;QACP,gBAAgB,EAAhB,qCAAgB;QAChB,IAAI,EAAJ,yBAAI;QACJ,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,QAAQ,EAAR,6BAAQ;QACR,QAAQ,EAAR,6BAAQ;QACR,UAAU,EAAV,+BAAU;KACX;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendTrack/index.ts"],"names":[],"mappings":";;AAGA,8DAmB8B;AAC9B,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,iGAAiG;IAC9G,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,SAAS,EAAT,8BAAS;QACT,UAAU,EAAV,+BAAU;QACV,WAAW,EAAX,gCAAW;QACX,mBAAmB,EAAnB,wCAAmB;QACnB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ACV,GAAG,OAAO,EAAE,UAAU;aACvB;SACF,CAAA;QAGD,IAAI,CAAC,QAAQ,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,IAAI,8BAAiB,CAAC,EAAE;YACnE,MAAM,8CAAqC,CAAA;SAC5C;QAGD,IAAI,QAAQ,IAAI,QAAQ,CAAC,uCAAuC,CAAC,EAAE;YACjE,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAA;YAC/F,MAAM,OAAO,GAAG,EAAE,GAAG,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;YAClD,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,CAAA;SAC5B;QAED,MAAM,uBAAuB,GAAG,8BAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAA;QACxE,OAAO,OAAO,CAAC,GAAG,uBAAuB,QAAQ,EAAE;YACjD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,YAAY;SACnB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -12,3 +12,13 @@ export declare class SegmentPublicAPIError extends HTTPError {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const MissingUserOrAnonymousIdThrowableError: PayloadValidationError;
|
|
14
14
|
export declare const InvalidEndpointSelectedThrowableError: PayloadValidationError;
|
|
15
|
+
export declare const MissingExternalIdsThrowableError: PayloadValidationError;
|
|
16
|
+
export declare const MissingEmailIfEmailSubscriptionIsPresentThrowableError: PayloadValidationError;
|
|
17
|
+
export declare const MissingPhoneIfSmsOrWhatsappSubscriptionIsPresentThrowableError: PayloadValidationError;
|
|
18
|
+
export declare const MissingSubscriptionStatusesThrowableError: PayloadValidationError;
|
|
19
|
+
export declare const MissingEmailSubscriptionIfSubscriptionGroupsIsPresentThrowableError: PayloadValidationError;
|
|
20
|
+
export declare const InvalidSubscriptionStatusThrowableError: PayloadValidationError;
|
|
21
|
+
export declare const InvalidGroupSubscriptionStatusThrowableError: PayloadValidationError;
|
|
22
|
+
export declare const MissingAndroidPushTokenIfAndroidPushSubscriptionIsPresentThrowableError: PayloadValidationError;
|
|
23
|
+
export declare const MissingIosPushTokenIfIosPushSubscriptionIsPresentThrowableError: PayloadValidationError;
|
|
24
|
+
export declare const InvalidSubsriptionStatusThrowableError: PayloadValidationError;
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvalidEndpointSelectedThrowableError = exports.MissingUserOrAnonymousIdThrowableError = exports.SegmentPublicAPIError = void 0;
|
|
3
|
+
exports.InvalidSubsriptionStatusThrowableError = exports.MissingIosPushTokenIfIosPushSubscriptionIsPresentThrowableError = exports.MissingAndroidPushTokenIfAndroidPushSubscriptionIsPresentThrowableError = exports.InvalidGroupSubscriptionStatusThrowableError = exports.InvalidSubscriptionStatusThrowableError = exports.MissingEmailSubscriptionIfSubscriptionGroupsIsPresentThrowableError = exports.MissingSubscriptionStatusesThrowableError = exports.MissingPhoneIfSmsOrWhatsappSubscriptionIsPresentThrowableError = exports.MissingEmailIfEmailSubscriptionIsPresentThrowableError = exports.MissingExternalIdsThrowableError = exports.InvalidEndpointSelectedThrowableError = exports.MissingUserOrAnonymousIdThrowableError = exports.SegmentPublicAPIError = void 0;
|
|
4
4
|
const actions_core_1 = require("@segment/actions-core");
|
|
5
5
|
class SegmentPublicAPIError extends actions_core_1.HTTPError {
|
|
6
6
|
}
|
|
7
7
|
exports.SegmentPublicAPIError = SegmentPublicAPIError;
|
|
8
8
|
exports.MissingUserOrAnonymousIdThrowableError = new actions_core_1.PayloadValidationError('Either `Anonymous ID` or `User ID` must be defined.');
|
|
9
9
|
exports.InvalidEndpointSelectedThrowableError = new actions_core_1.PayloadValidationError('A valid endpoint must be selected. Please check your Segment settings.');
|
|
10
|
+
exports.MissingExternalIdsThrowableError = new actions_core_1.PayloadValidationError('Either `Email` or `Phone` or `Android_Push_Token` or `Ios_Push_Token` must be defined.');
|
|
11
|
+
exports.MissingEmailIfEmailSubscriptionIsPresentThrowableError = new actions_core_1.PayloadValidationError('A valid `Email` must be defined for `Email_Subscription`.');
|
|
12
|
+
exports.MissingPhoneIfSmsOrWhatsappSubscriptionIsPresentThrowableError = new actions_core_1.PayloadValidationError('A valid `Phone` must be defined for `Sms_Subscription` or `Whatsapp_Subscription`.');
|
|
13
|
+
exports.MissingSubscriptionStatusesThrowableError = new actions_core_1.PayloadValidationError('If any of `Email`, `Phone`, `Android_Push_Token` or `Ios_Push_Token` is present, `Email_Subscription` or `Sms_Subscription` or `Whatsapp_Subscription` or `Ios_Push_Subscription` or `Android_Push_Subscription` must be defined.');
|
|
14
|
+
exports.MissingEmailSubscriptionIfSubscriptionGroupsIsPresentThrowableError = new actions_core_1.PayloadValidationError('`Email_Subscription` must be defined if Subscription Groups are present.');
|
|
15
|
+
exports.InvalidSubscriptionStatusThrowableError = new actions_core_1.PayloadValidationError('Invalid Subscription Status in `Email_Subscription` or `Sms_Subscription` or `Whatsapp_Subscription` or `Android_Push_Subscription` or `Ios_Push_Subscription`.');
|
|
16
|
+
exports.InvalidGroupSubscriptionStatusThrowableError = new actions_core_1.PayloadValidationError('Invalid Subscription Status for subscription groups.');
|
|
17
|
+
exports.MissingAndroidPushTokenIfAndroidPushSubscriptionIsPresentThrowableError = new actions_core_1.PayloadValidationError('A valid `Android_Push_Token` must be defined for `Android_Push_Subscription`.');
|
|
18
|
+
exports.MissingIosPushTokenIfIosPushSubscriptionIsPresentThrowableError = new actions_core_1.PayloadValidationError('A valid `Ios_Push_Token` must be defined for `Ios_Push_Subscription`.');
|
|
19
|
+
exports.InvalidSubsriptionStatusThrowableError = new actions_core_1.PayloadValidationError('Invalid Subscription Status.');
|
|
10
20
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/errors.ts"],"names":[],"mappings":";;;AAAA,wDAAyE;AAEzE,MAAa,qBAAsB,SAAQ,wBAAS;CAUnD;AAVD,sDAUC;AAEY,QAAA,sCAAsC,GAAG,IAAI,qCAAsB,CAC9E,qDAAqD,CACtD,CAAA;AAEY,QAAA,qCAAqC,GAAG,IAAI,qCAAsB,CAC7E,wEAAwE,CACzE,CAAA"}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/errors.ts"],"names":[],"mappings":";;;AAAA,wDAAyE;AAEzE,MAAa,qBAAsB,SAAQ,wBAAS;CAUnD;AAVD,sDAUC;AAEY,QAAA,sCAAsC,GAAG,IAAI,qCAAsB,CAC9E,qDAAqD,CACtD,CAAA;AAEY,QAAA,qCAAqC,GAAG,IAAI,qCAAsB,CAC7E,wEAAwE,CACzE,CAAA;AAEY,QAAA,gCAAgC,GAAG,IAAI,qCAAsB,CACxE,wFAAwF,CACzF,CAAA;AAEY,QAAA,sDAAsD,GAAG,IAAI,qCAAsB,CAC9F,2DAA2D,CAC5D,CAAA;AAEY,QAAA,8DAA8D,GAAG,IAAI,qCAAsB,CACtG,oFAAoF,CACrF,CAAA;AAEY,QAAA,yCAAyC,GAAG,IAAI,qCAAsB,CACjF,mOAAmO,CACpO,CAAA;AAEY,QAAA,mEAAmE,GAAG,IAAI,qCAAsB,CAC3G,0EAA0E,CAC3E,CAAA;AAEY,QAAA,uCAAuC,GAAG,IAAI,qCAAsB,CAC/E,iKAAiK,CAClK,CAAA;AAEY,QAAA,4CAA4C,GAAG,IAAI,qCAAsB,CACpF,sDAAsD,CACvD,CAAA;AAEY,QAAA,uEAAuE,GAAG,IAAI,qCAAsB,CAC/G,+EAA+E,CAChF,CAAA;AAEY,QAAA,+DAA+D,GAAG,IAAI,qCAAsB,CACvG,uEAAuE,CACxE,CAAA;AAEY,QAAA,sCAAsC,GAAG,IAAI,qCAAsB,CAAC,8BAA8B,CAAC,CAAA"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const properties_1 = require("./properties");
|
|
7
7
|
const sendGroup_1 = __importDefault(require("./sendGroup"));
|
|
8
8
|
const sendIdentify_1 = __importDefault(require("./sendIdentify"));
|
|
9
|
+
const sendSubscription_1 = __importDefault(require("./sendSubscription"));
|
|
9
10
|
const destination = {
|
|
10
11
|
name: 'Segment Profiles',
|
|
11
12
|
slug: 'actions-segment-profiles',
|
|
@@ -29,7 +30,8 @@ const destination = {
|
|
|
29
30
|
},
|
|
30
31
|
actions: {
|
|
31
32
|
sendGroup: sendGroup_1.default,
|
|
32
|
-
sendIdentify: sendIdentify_1.default
|
|
33
|
+
sendIdentify: sendIdentify_1.default,
|
|
34
|
+
sendSubscription: sendSubscription_1.default
|
|
33
35
|
}
|
|
34
36
|
};
|
|
35
37
|
exports.default = destination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/index.ts"],"names":[],"mappings":";;;;;AAEA,6CAA0E;AAE1E,4DAAmC;AAEnC,kEAAyC;AAEzC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,OAAO;IACb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,QAAQ,EAAE;gBACR,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,+BAA+B;gBAC5C,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,8BAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;oBACpD,KAAK,EAAE,8BAAiB,CAAC,GAAG,CAAC,CAAC,KAAK;oBACnC,KAAK,EAAE,GAAG;iBACX,CAAC,CAAC;gBACH,OAAO,EAAE,qCAAwB;gBACjC,QAAQ,EAAE,IAAI;aACf;SACF;KACF;IACD,OAAO,EAAE;QACP,SAAS,EAAT,mBAAS;QACT,YAAY,EAAZ,sBAAY;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/index.ts"],"names":[],"mappings":";;;;;AAEA,6CAA0E;AAE1E,4DAAmC;AAEnC,kEAAyC;AAEzC,0EAAiD;AAEjD,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,OAAO;IACb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,QAAQ,EAAE;gBACR,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,+BAA+B;gBAC5C,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,8BAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;oBACpD,KAAK,EAAE,8BAAiB,CAAC,GAAG,CAAC,CAAC,KAAK;oBACnC,KAAK,EAAE,GAAG;iBACX,CAAC,CAAC;gBACH,OAAO,EAAE,qCAAwB;gBACjC,QAAQ,EAAE,IAAI;aACf;SACF;KACF;IACD,OAAO,EAAE;QACP,SAAS,EAAT,mBAAS;QACT,YAAY,EAAZ,sBAAY;QACZ,gBAAgB,EAAhB,0BAAgB;KACjB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -4,3 +4,13 @@ export declare const anonymous_id: InputField;
|
|
|
4
4
|
export declare const group_id: InputField;
|
|
5
5
|
export declare const traits: InputField;
|
|
6
6
|
export declare const engage_space: InputField;
|
|
7
|
+
export declare const email: InputField;
|
|
8
|
+
export declare const phone: InputField;
|
|
9
|
+
export declare const android_push_token: InputField;
|
|
10
|
+
export declare const ios_push_token: InputField;
|
|
11
|
+
export declare const email_subscription_status: InputField;
|
|
12
|
+
export declare const sms_subscription_status: InputField;
|
|
13
|
+
export declare const whatsapp_subscription_status: InputField;
|
|
14
|
+
export declare const android_push_subscription_status: InputField;
|
|
15
|
+
export declare const ios_push_subscription_status: InputField;
|
|
16
|
+
export declare const subscription_groups: InputField;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.engage_space = exports.traits = exports.group_id = exports.anonymous_id = exports.user_id = void 0;
|
|
3
|
+
exports.subscription_groups = exports.ios_push_subscription_status = exports.android_push_subscription_status = exports.whatsapp_subscription_status = exports.sms_subscription_status = exports.email_subscription_status = exports.ios_push_token = exports.android_push_token = exports.phone = exports.email = exports.engage_space = exports.traits = exports.group_id = exports.anonymous_id = exports.user_id = void 0;
|
|
4
4
|
exports.user_id = {
|
|
5
5
|
label: 'User ID',
|
|
6
6
|
description: 'Unique identifier for the user in your database. A userId or an anonymousId is required.',
|
|
@@ -30,4 +30,61 @@ exports.engage_space = {
|
|
|
30
30
|
required: true,
|
|
31
31
|
dynamic: true
|
|
32
32
|
};
|
|
33
|
+
exports.email = {
|
|
34
|
+
label: 'Email',
|
|
35
|
+
description: 'Email of the user',
|
|
36
|
+
type: 'string'
|
|
37
|
+
};
|
|
38
|
+
exports.phone = {
|
|
39
|
+
label: 'Phone',
|
|
40
|
+
description: 'Phone number of the user',
|
|
41
|
+
type: 'string'
|
|
42
|
+
};
|
|
43
|
+
exports.android_push_token = {
|
|
44
|
+
label: 'Android Push Token',
|
|
45
|
+
description: 'Android Push Token of the user',
|
|
46
|
+
type: 'string'
|
|
47
|
+
};
|
|
48
|
+
exports.ios_push_token = {
|
|
49
|
+
label: 'Ios Push Token',
|
|
50
|
+
description: 'Ios Push Token of the user',
|
|
51
|
+
type: 'string'
|
|
52
|
+
};
|
|
53
|
+
exports.email_subscription_status = {
|
|
54
|
+
label: 'Email Subscription Status',
|
|
55
|
+
description: 'Global status of the email subscription. True is subscribed, false is unsubscribed and null|undefined is did-not-subscribe.',
|
|
56
|
+
type: 'string',
|
|
57
|
+
allowNull: true
|
|
58
|
+
};
|
|
59
|
+
exports.sms_subscription_status = {
|
|
60
|
+
label: 'SMS Subscription Status',
|
|
61
|
+
description: 'Global status of the SMS subscription. True is subscribed, false is unsubscribed and null|undefined is did-not-subscribe.',
|
|
62
|
+
type: 'string',
|
|
63
|
+
allowNull: true
|
|
64
|
+
};
|
|
65
|
+
exports.whatsapp_subscription_status = {
|
|
66
|
+
label: 'WhatsApp Subscription Status',
|
|
67
|
+
description: 'Global status of the WhatsApp subscription. True is subscribed, false is unsubscribed and null is did-not-subscribe.',
|
|
68
|
+
type: 'string',
|
|
69
|
+
allowNull: true
|
|
70
|
+
};
|
|
71
|
+
exports.android_push_subscription_status = {
|
|
72
|
+
label: 'Android Push Subscription Status',
|
|
73
|
+
description: 'Global status of the android push subscription. True is subscribed, false is unsubscribed and null is did-not-subscribe.',
|
|
74
|
+
type: 'string',
|
|
75
|
+
allowNull: true
|
|
76
|
+
};
|
|
77
|
+
exports.ios_push_subscription_status = {
|
|
78
|
+
label: 'Ios Push Subscription Status',
|
|
79
|
+
description: 'Global status of the ios push subscription. True is subscribed, false is unsubscribed and null is did-not-subscribe.',
|
|
80
|
+
type: 'string',
|
|
81
|
+
allowNull: true
|
|
82
|
+
};
|
|
83
|
+
exports.subscription_groups = {
|
|
84
|
+
label: 'Subscription Groups',
|
|
85
|
+
description: 'Subscription status for the groups. Object containing group names as keys and statuses as values',
|
|
86
|
+
type: 'object',
|
|
87
|
+
additionalProperties: true,
|
|
88
|
+
defaultObjectUI: 'keyvalue'
|
|
89
|
+
};
|
|
33
90
|
//# sourceMappingURL=segment-properties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment-properties.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/segment-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,0FAA0F;IACvG,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EACT,kJAAkJ;IACpJ,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,oDAAoD;IACjE,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,MAAM,GAAe;IAChC,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,0EAA0E;IACvF,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,UAAU;IAC3B,oBAAoB,EAAE,IAAI;CAC3B,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,sSAAsS;IACxS,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,IAAI;CACd,CAAA"}
|
|
1
|
+
{"version":3,"file":"segment-properties.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/segment-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,0FAA0F;IACvG,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EACT,kJAAkJ;IACpJ,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,oDAAoD;IACjE,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,MAAM,GAAe;IAChC,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,0EAA0E;IACvF,IAAI,EAAE,QAAQ;IACd,eAAe,EA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BAA4B,GAAe;IACtD,KAAK,EAAE,8BAA8B;IACrC,WAAW,EACT,sHAAsH;IACxH,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,IAAI;CAChB,CAAA;AAEY,QAAA,mBAAmB,GAAe;IAC7C,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,kGAAkG;IAC/G,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,IAAI;IAC1B,eAAe,EAAE,UAAU;CAC5B,CAAA"}
|
|
@@ -15,7 +15,7 @@ const action = {
|
|
|
15
15
|
group_id: { ...segment_properties_1.group_id, required: true },
|
|
16
16
|
traits: segment_properties_1.traits
|
|
17
17
|
},
|
|
18
|
-
perform: (request, { payload, settings }) => {
|
|
18
|
+
perform: (request, { payload, settings, features, statsContext }) => {
|
|
19
19
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
20
20
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
21
21
|
}
|
|
@@ -33,6 +33,11 @@ const action = {
|
|
|
33
33
|
if (!settings.endpoint || !(settings.endpoint in properties_1.SEGMENT_ENDPOINTS)) {
|
|
34
34
|
throw errors_1.InvalidEndpointSelectedThrowableError;
|
|
35
35
|
}
|
|
36
|
+
if (features && features['actions-segment-profiles-tapi-internal-enabled']) {
|
|
37
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, `action:sendGroup`]);
|
|
38
|
+
const payload = { ...groupPayload, type: 'group' };
|
|
39
|
+
return { batch: [payload] };
|
|
40
|
+
}
|
|
36
41
|
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
37
42
|
return request(`${selectedSegmentEndpoint}/group`, {
|
|
38
43
|
method: 'POST',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendGroup/index.ts"],"names":[],"mappings":";;AAGA,8DAA6F;AAC7F,wDAAkE;AAClE,8CAAiD;AAC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,MAAM;aACnB;YACD,YAAY,EAAE;gBAGZ,GAAG,EAAE,KAAK;aACX;SACF,CAAA;QAGD,IAAI,CAAC,QAAQ,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,IAAI,8BAAiB,CAAC,EAAE;YACnE,MAAM,8CAAqC,CAAA;SAC5C;QAED,IAAI,QAAQ,IAAI,QAAQ,CAAC,gDAAgD,CAAC,EAAE;YAC1E,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAA;YAC/F,MAAM,OAAO,GAAG,EAAE,GAAG,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;YAClD,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,CAAA;SAC5B;QAED,MAAM,uBAAuB,GAAG,8BAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAA;QACxE,OAAO,OAAO,CAAC,GAAG,uBAAuB,QAAQ,EAAE;YACjD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE;gBACP,aAAa,EAAE,+CAA6B,CAAC,OAAO,CAAC,YAAY,CAAC;aACnE;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -15,11 +15,11 @@ const action = {
|
|
|
15
15
|
group_id: segment_properties_1.group_id,
|
|
16
16
|
traits: segment_properties_1.traits
|
|
17
17
|
},
|
|
18
|
-
perform: (request, { payload, settings }) => {
|
|
18
|
+
perform: (request, { payload, settings, features, statsContext }) => {
|
|
19
19
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
20
20
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const identityPayload = {
|
|
23
23
|
userId: payload?.user_id,
|
|
24
24
|
anonymousId: payload?.anonymous_id,
|
|
25
25
|
groupId: payload?.group_id,
|
|
@@ -33,10 +33,15 @@ const action = {
|
|
|
33
33
|
if (!settings.endpoint || !(settings.endpoint in properties_1.SEGMENT_ENDPOINTS)) {
|
|
34
34
|
throw errors_1.InvalidEndpointSelectedThrowableError;
|
|
35
35
|
}
|
|
36
|
+
if (features && features['actions-segment-profiles-tapi-internal-enabled']) {
|
|
37
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, `action:sendIdentify`]);
|
|
38
|
+
const payload = { ...identityPayload, type: 'identify' };
|
|
39
|
+
return { batch: [payload] };
|
|
40
|
+
}
|
|
36
41
|
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
37
42
|
return request(`${selectedSegmentEndpoint}/identify`, {
|
|
38
43
|
method: 'POST',
|
|
39
|
-
json:
|
|
44
|
+
json: identityPayload,
|
|
40
45
|
headers: {
|
|
41
46
|
authorization: helperFunctions_1.generateSegmentAPIAuthHeaders(payload.engage_space)
|
|
42
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAA6F;AAC7F,wDAAkE;AAClE,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,gIAAgI;IAClI,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,YAAY,EAAZ,iCAAY;QACZ,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,QAAQ,EAAR,6BAAQ;QACR,MAAM,EAAN,2BAAM;KACP;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-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K,EAAE,CAAC,OAAO,CAAC,EAAE,CAAA;SAC5B;QAED,MAAM,uBAAuB,GAAG,8BAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAA;QACxE,OAAO,OAAO,CAAC,GAAG,uBAAuB,WAAW,EAAE;YACpD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,eAAe;YACrB,OAAO,EAAE;gBACP,aAAa,EAAE,+CAA6B,CAAC,OAAO,CAAC,YAAY,CAAC;aACnE;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
engage_space: string;
|
|
3
|
+
user_id?: string;
|
|
4
|
+
anonymous_id?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
email_subscription_status?: string | null;
|
|
7
|
+
subscription_groups?: {
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
phone?: string;
|
|
11
|
+
sms_subscription_status?: string | null;
|
|
12
|
+
whatsapp_subscription_status?: string | null;
|
|
13
|
+
android_push_token?: string;
|
|
14
|
+
android_push_subscription_status?: string | null;
|
|
15
|
+
ios_push_token?: string;
|
|
16
|
+
ios_push_subscription_status?: string | null;
|
|
17
|
+
traits?: {
|
|
18
|
+
[k: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendSubscription/generated-types.ts"],"names":[],"mappings":""}
|