@segment/action-destinations 3.270.0 → 3.272.0-staging-bbcb77c81
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/amazon-ads/generated-types.d.ts +3 -0
- package/dist/destinations/amazon-ads/generated-types.js +3 -0
- package/dist/destinations/amazon-ads/generated-types.js.map +1 -0
- package/dist/destinations/amazon-ads/index.d.ts +4 -0
- package/dist/destinations/amazon-ads/index.js +87 -0
- package/dist/destinations/amazon-ads/index.js.map +1 -0
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +2 -0
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.js +3 -0
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.js.map +1 -0
- package/dist/destinations/amazon-ads/syncAudiences/index.d.ts +5 -0
- package/dist/destinations/amazon-ads/syncAudiences/index.js +15 -0
- package/dist/destinations/amazon-ads/syncAudiences/index.js.map +1 -0
- package/dist/destinations/amazon-ads/types.d.ts +22 -0
- package/dist/destinations/amazon-ads/types.js +11 -0
- package/dist/destinations/amazon-ads/types.js.map +1 -0
- package/dist/destinations/amazon-ads/utils.d.ts +31 -0
- package/dist/destinations/amazon-ads/utils.js +18 -0
- package/dist/destinations/amazon-ads/utils.js.map +1 -0
- package/dist/destinations/amazon-amc/index.js +20 -8
- package/dist/destinations/amazon-amc/index.js.map +1 -1
- package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js +1 -1
- package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js.map +1 -1
- package/dist/destinations/contentstack/constants.d.ts +3 -0
- package/dist/destinations/contentstack/constants.js +7 -0
- package/dist/destinations/contentstack/constants.js.map +1 -0
- package/dist/destinations/dynamic-yield-audiences/syncAudience/types.d.ts +22 -0
- package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js +3 -0
- package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js.map +1 -0
- package/dist/destinations/dynamic-yield-audiences/types.d.ts +8 -0
- package/dist/destinations/dynamic-yield-audiences/types.js +12 -0
- package/dist/destinations/dynamic-yield-audiences/types.js.map +1 -0
- package/dist/destinations/engage/twilio/sendMobilePush/PushSender.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +2 -20
- package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +1 -1
- package/dist/destinations/engage/utils/track.d.ts +17 -17
- package/dist/destinations/klaviyo/addProfileToList/generated-types.d.ts +18 -0
- package/dist/destinations/klaviyo/addProfileToList/index.js +10 -3
- package/dist/destinations/klaviyo/addProfileToList/index.js.map +1 -1
- package/dist/destinations/klaviyo/functions.d.ts +2 -2
- package/dist/destinations/klaviyo/functions.js +4 -3
- package/dist/destinations/klaviyo/functions.js.map +1 -1
- package/dist/destinations/klaviyo/orderCompleted/generated-types.d.ts +3 -5
- package/dist/destinations/klaviyo/orderCompleted/index.js +15 -16
- package/dist/destinations/klaviyo/orderCompleted/index.js.map +1 -1
- package/dist/destinations/klaviyo/properties.d.ts +7 -0
- package/dist/destinations/klaviyo/properties.js +92 -2
- package/dist/destinations/klaviyo/properties.js.map +1 -1
- package/dist/destinations/klaviyo/trackEvent/generated-types.d.ts +3 -5
- package/dist/destinations/klaviyo/trackEvent/index.js +15 -16
- package/dist/destinations/klaviyo/trackEvent/index.js.map +1 -1
- package/dist/destinations/klaviyo/types.d.ts +9 -3
- package/dist/destinations/klaviyo/upsertProfile/index.js +2 -1
- package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +14 -0
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js +3 -0
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +1 -0
- package/dist/destinations/responsys/asyncMergePetRecords/index.d.ts +5 -0
- package/dist/destinations/responsys/asyncMergePetRecords/index.js +113 -0
- package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +1 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +20 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js +3 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +1 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.d.ts +5 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +174 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +1 -0
- package/dist/destinations/responsys/rsp-operations.d.ts +14 -0
- package/dist/destinations/responsys/rsp-operations.js +33 -0
- package/dist/destinations/responsys/rsp-operations.js.map +1 -0
- package/dist/destinations/responsys/rsp-properties.d.ts +4 -0
- package/dist/destinations/responsys/rsp-properties.js +27 -0
- package/dist/destinations/responsys/rsp-properties.js.map +1 -0
- package/dist/destinations/responsys-cloud/generated-types.d.ts +20 -0
- package/dist/destinations/responsys-cloud/generated-types.js +3 -0
- package/dist/destinations/responsys-cloud/generated-types.js.map +1 -0
- package/dist/destinations/responsys-cloud/index.d.ts +4 -0
- package/dist/destinations/responsys-cloud/index.js +207 -0
- package/dist/destinations/responsys-cloud/index.js.map +1 -0
- package/dist/destinations/responsys-cloud/sendAudience/generated-types.d.ts +16 -0
- package/dist/destinations/responsys-cloud/sendAudience/generated-types.js +3 -0
- package/dist/destinations/responsys-cloud/sendAudience/generated-types.js.map +1 -0
- package/dist/destinations/responsys-cloud/sendAudience/index.d.ts +5 -0
- package/dist/destinations/responsys-cloud/sendAudience/index.js +109 -0
- package/dist/destinations/responsys-cloud/sendAudience/index.js.map +1 -0
- package/dist/destinations/responsys-cloud/sendCustomTraits/generated-types.d.ts +11 -0
- package/dist/destinations/responsys-cloud/sendCustomTraits/generated-types.js +3 -0
- package/dist/destinations/responsys-cloud/sendCustomTraits/generated-types.js.map +1 -0
- package/dist/destinations/responsys-cloud/sendCustomTraits/index.d.ts +5 -0
- package/dist/destinations/responsys-cloud/sendCustomTraits/index.js +72 -0
- package/dist/destinations/responsys-cloud/sendCustomTraits/index.js.map +1 -0
- package/dist/destinations/responsys-cloud/shared_properties.d.ts +3 -0
- package/dist/destinations/responsys-cloud/shared_properties.js +19 -0
- package/dist/destinations/responsys-cloud/shared_properties.js.map +1 -0
- package/dist/destinations/responsys-cloud/types.d.ts +38 -0
- package/dist/destinations/responsys-cloud/types.js +3 -0
- package/dist/destinations/responsys-cloud/types.js.map +1 -0
- package/dist/destinations/responsys-cloud/upsertListMember/generated-types.d.ts +14 -0
- package/dist/destinations/responsys-cloud/upsertListMember/generated-types.js +3 -0
- package/dist/destinations/responsys-cloud/upsertListMember/generated-types.js.map +1 -0
- package/dist/destinations/responsys-cloud/upsertListMember/index.d.ts +5 -0
- package/dist/destinations/responsys-cloud/upsertListMember/index.js +85 -0
- package/dist/destinations/responsys-cloud/upsertListMember/index.js.map +1 -0
- package/dist/destinations/responsys-cloud/utils.d.ts +20 -0
- package/dist/destinations/responsys-cloud/utils.js +179 -0
- package/dist/destinations/responsys-cloud/utils.js.map +1 -0
- package/dist/destinations/segment/index.js +5 -1
- package/dist/destinations/segment/index.js.map +1 -1
- package/dist/destinations/segment/properties.d.ts +4 -0
- package/dist/destinations/segment/properties.js +14 -1
- package/dist/destinations/segment/properties.js.map +1 -1
- package/dist/destinations/segment/segment-properties.d.ts +1 -0
- package/dist/destinations/segment/segment-properties.js +9 -1
- package/dist/destinations/segment/segment-properties.js.map +1 -1
- package/dist/destinations/segment/sendGroup/generated-types.d.ts +3 -0
- package/dist/destinations/segment/sendGroup/index.js +5 -1
- package/dist/destinations/segment/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment/sendIdentify/generated-types.d.ts +3 -0
- package/dist/destinations/segment/sendIdentify/index.js +5 -1
- package/dist/destinations/segment/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment/sendPage/generated-types.d.ts +3 -0
- package/dist/destinations/segment/sendPage/index.js +5 -1
- package/dist/destinations/segment/sendPage/index.js.map +1 -1
- package/dist/destinations/segment/sendScreen/generated-types.d.ts +3 -0
- package/dist/destinations/segment/sendScreen/index.js +5 -1
- package/dist/destinations/segment/sendScreen/index.js.map +1 -1
- package/dist/destinations/segment/sendTrack/generated-types.d.ts +3 -0
- package/dist/destinations/segment/sendTrack/index.js +5 -1
- package/dist/destinations/segment/sendTrack/index.js.map +1 -1
- package/dist/destinations/segment-profiles/segment-properties.d.ts +1 -0
- package/dist/destinations/segment-profiles/segment-properties.js +9 -1
- package/dist/destinations/segment-profiles/segment-properties.js.map +1 -1
- package/dist/destinations/segment-profiles/sendGroup/generated-types.d.ts +3 -0
- package/dist/destinations/segment-profiles/sendGroup/index.js +8 -2
- package/dist/destinations/segment-profiles/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendIdentify/generated-types.d.ts +3 -0
- package/dist/destinations/segment-profiles/sendIdentify/index.js +6 -2
- package/dist/destinations/segment-profiles/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendSubscription/generated-types.d.ts +3 -0
- package/dist/destinations/segment-profiles/sendSubscription/index.js +6 -2
- package/dist/destinations/segment-profiles/sendSubscription/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendSubscription/subscription-properties.d.ts +1 -0
- package/dist/destinations/segment-profiles/sendSubscription/subscription-properties.js +9 -1
- package/dist/destinations/segment-profiles/sendSubscription/subscription-properties.js.map +1 -1
- package/dist/destinations/segment-profiles/sendTrack/generated-types.d.ts +3 -0
- package/dist/destinations/segment-profiles/sendTrack/index.js +7 -1
- package/dist/destinations/segment-profiles/sendTrack/index.js.map +1 -1
- package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.d.ts +1 -0
- package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js +381 -0
- package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js.map +1 -0
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.d.ts +1 -0
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +581 -0
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +1 -0
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.d.ts +4 -0
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js +97 -0
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js.map +1 -0
- package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +30 -0
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js +316 -0
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +3 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +34 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.d.ts +3 -0
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js +43 -0
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +1 -0
- package/package.json +4 -4
|
@@ -27,7 +27,8 @@ const action = {
|
|
|
27
27
|
properties: segment_properties_1.properties,
|
|
28
28
|
traits: segment_properties_1.traits,
|
|
29
29
|
message_id: segment_properties_1.message_id,
|
|
30
|
-
enable_batching: segment_properties_1.enable_batching
|
|
30
|
+
enable_batching: segment_properties_1.enable_batching,
|
|
31
|
+
consent: segment_properties_1.consent
|
|
31
32
|
},
|
|
32
33
|
perform: (_request, { payload, statsContext }) => {
|
|
33
34
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
@@ -61,6 +62,9 @@ function convertPayload(data) {
|
|
|
61
62
|
},
|
|
62
63
|
app: data?.application,
|
|
63
64
|
campaign: data?.campaign_parameters,
|
|
65
|
+
consent: {
|
|
66
|
+
...data?.consent
|
|
67
|
+
},
|
|
64
68
|
device: data?.device,
|
|
65
69
|
ip: data?.ip_address,
|
|
66
70
|
locale: data?.locale,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendTrack/index.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendTrack/index.ts"],"names":[],"mappings":";;AAGA,8DAuB8B;AAC9B,sCAAkE;AAElE,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;QACV,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,eAAe,EAAf,oCAAe;QACf,OAAO,EAAP,4BAAO;KACR;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE;QAC/C,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAC7C,MAAM,+CAAsC,CAAA;SAC7C;QAED,MAAM,YAAY,GAAW,cAAc,CAAC,OAAO,CAAC,CAAA;QAEpD,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAA;QAC/F,OAAO,EAAE,K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,EAAE,IAAI,EAAE,IAAI;YAChB,MAAM,EAAE,IAAI,EAAE,MAAM;YACpB,SAAS,EAAE,IAAI,EAAE,UAAU;YAC3B,QAAQ,EAAE,IAAI,EAAE,QAAQ;YACxB,OAAO,EAAE,IAAI,EAAE,QAAQ;SACxB;QACD,UAAU,EAAE;YACV,GAAG,IAAI,EAAE,UAAU;SACpB;QACD,IAAI,EAAE,OAAO;KACd,CAAA;AACH,CAAC;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.properties = exports.event_name = exports.message_id = exports.timestamp = exports.engage_space = exports.traits = exports.group_id = exports.anonymous_id = exports.user_id = void 0;
|
|
3
|
+
exports.consent = exports.properties = exports.event_name = exports.message_id = exports.timestamp = 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.',
|
|
@@ -58,4 +58,12 @@ exports.properties = {
|
|
|
58
58
|
defaultObjectUI: 'keyvalue',
|
|
59
59
|
additionalProperties: true
|
|
60
60
|
};
|
|
61
|
+
exports.consent = {
|
|
62
|
+
label: 'Consent',
|
|
63
|
+
description: 'Segment event consent category preferences.',
|
|
64
|
+
type: 'object',
|
|
65
|
+
default: { '@path': '$.context.consent' },
|
|
66
|
+
additionalProperties: true,
|
|
67
|
+
unsafe_hidden: true
|
|
68
|
+
};
|
|
61
69
|
//# 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,E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":"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;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,6BAA6B;IAC1C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE;QACP,OAAO,EAAE,aAAa;KACvB;CACF,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,wBAAwB;IACrC,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;IACnC,aAAa,EAAE,IAAI;CACpB,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,+CAA+C;IAC5D,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,6DAA6D;IAC1E,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,UAAU;IAC3B,oBAAoB,EAAE,IAAI;CAC3B,CAAA;AAEY,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,6CAA6C;IAC1D,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE;IACzC,oBAAoB,EAAE,IAAI;IAC1B,aAAa,EAAE,IAAI;CACpB,CAAA"}
|
|
@@ -13,7 +13,8 @@ const action = {
|
|
|
13
13
|
group_id: { ...segment_properties_1.group_id, required: true },
|
|
14
14
|
traits: segment_properties_1.traits,
|
|
15
15
|
timestamp: segment_properties_1.timestamp,
|
|
16
|
-
message_id: segment_properties_1.message_id
|
|
16
|
+
message_id: segment_properties_1.message_id,
|
|
17
|
+
consent: segment_properties_1.consent
|
|
17
18
|
},
|
|
18
19
|
perform: (_request, { payload, statsContext }) => {
|
|
19
20
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
@@ -31,7 +32,12 @@ const action = {
|
|
|
31
32
|
integrations: {
|
|
32
33
|
All: false
|
|
33
34
|
},
|
|
34
|
-
type: 'group'
|
|
35
|
+
type: 'group',
|
|
36
|
+
context: {
|
|
37
|
+
consent: {
|
|
38
|
+
...payload?.consent
|
|
39
|
+
}
|
|
40
|
+
}
|
|
35
41
|
};
|
|
36
42
|
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, `action:sendGroup`]);
|
|
37
43
|
return { batch: [groupPayload] };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendGroup/index.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendGroup/index.ts"],"names":[],"mappings":";;AAGA,8DAS8B;AAC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
|
@@ -13,7 +13,8 @@ const action = {
|
|
|
13
13
|
group_id: segment_properties_1.group_id,
|
|
14
14
|
traits: segment_properties_1.traits,
|
|
15
15
|
timestamp: segment_properties_1.timestamp,
|
|
16
|
-
message_id: segment_properties_1.message_id
|
|
16
|
+
message_id: segment_properties_1.message_id,
|
|
17
|
+
consent: segment_properties_1.consent
|
|
17
18
|
},
|
|
18
19
|
perform: (_request, { payload, statsContext }) => {
|
|
19
20
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
@@ -31,7 +32,10 @@ const action = {
|
|
|
31
32
|
integrations: {
|
|
32
33
|
All: false
|
|
33
34
|
},
|
|
34
|
-
type: 'identify'
|
|
35
|
+
type: 'identify',
|
|
36
|
+
consent: {
|
|
37
|
+
...payload?.consent
|
|
38
|
+
}
|
|
35
39
|
};
|
|
36
40
|
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, `action:sendIdentify`]);
|
|
37
41
|
return { batch: [identityPayload] };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendIdentify/index.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAS8B;AAC9B,sCAAkE;AAElE,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;QACN,SAAS,EAAT,8BAAS;QACT,UAAU,EAAV,+BAAU;QACV,OAAO,EAAP,4BAAO;KACR;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE;QAC/C,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAC7C,MAAM,+CAAsC,CAAA;SAC7C;QACD,MAAM,eAAe,GAAW;YAC9B,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,EAAE,YAAY;YAClC,OAAO,EAAE,OAAO,EAAE,QAAQ;YAC1B,SAAS,EAAE,OAAO,EAAE,UAAU;YAC9B,MAAM,EAAE;gBACN,GAAG,OAAO,EAAE,MAAM;aACnB;YACD,SAAS,EAAE,OAAO,EAAE,SAAS;YAC7B,YAAY,EAAE;gBAGZ,GAAG,EAAE,KAAK;aACX;YACD,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE;gBACP,GAAG,OAAO,EAAE,OAAO;aACpB;SACF,CAAA;QAED,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAA;QAClG,OAAO,EAAE,KAAK,EAAE,CAAC,eAAe,CAAC,EAAE,CAAA;IACrC,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -177,7 +177,8 @@ const action = {
|
|
|
177
177
|
ios_push_subscription_status: subscription_properties_1.ios_push_subscription_status,
|
|
178
178
|
traits: subscription_properties_1.traits,
|
|
179
179
|
timestamp: segment_properties_1.timestamp,
|
|
180
|
-
message_id: subscription_properties_1.message_id
|
|
180
|
+
message_id: subscription_properties_1.message_id,
|
|
181
|
+
consent: subscription_properties_1.consent
|
|
181
182
|
},
|
|
182
183
|
perform: (_request, { payload, statsContext }) => {
|
|
183
184
|
const statsClient = statsContext?.statsClient;
|
|
@@ -195,7 +196,10 @@ const action = {
|
|
|
195
196
|
context: {
|
|
196
197
|
messaging_subscriptions: messagingSubscriptions,
|
|
197
198
|
externalIds,
|
|
198
|
-
messaging_subscriptions_retl: true
|
|
199
|
+
messaging_subscriptions_retl: true,
|
|
200
|
+
consent: {
|
|
201
|
+
...payload?.consent
|
|
202
|
+
}
|
|
199
203
|
},
|
|
200
204
|
timestamp: payload?.timestamp,
|
|
201
205
|
integrations: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendSubscription/index.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendSubscription/index.ts"],"names":[],"mappings":";;AAGA,uEAiBkC;AAClC,sCASkB;AAClB,8DAAiD;AAQjD,MAAM,wBAAwB,GAA+B;IAC3D,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE;IAClE,EAAE,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,CAAC,EAAE;IACvE,EAAE,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,EAAE;CAC9F,CAAA;AAUD,MAAM,iBAAiB,GAA8B;IACnD;QACE,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,OAAO;QACnB,kBAAkB,EAAE,CAAC,2BAA2B,CAAC;QACjD,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,MAAM,EAAE,IAAI;KACb;IACD;QACE,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,OAAO;QACnB,kBAAkB,EAAE,CAAC,yBAAyB,EAAE,8BAA8B,CAAC;QAC/E,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC;QAC7B,MAAM,EAAE,KAAK;KACd;IACD;QACE,KAAK,EAAE,oBAAoB;QAC3B,UAAU,EAAE,oBAAoB;QAChC,kBAAkB,EAAE,CAAC,kCAAkC,CAAC;QACxD,QAAQ,EAAE,CAAC,cAAc,CA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,EAAE,CAAC,CAAA;QAE/D,MAAM,sBAAsB,GAA4B,4BAA4B,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;QACjG,MAAM,mBAAmB,GAAW;YAClC,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,EAAE,YAAY;YAClC,MAAM,EAAE;gBACN,GAAG,OAAO,EAAE,MAAM;aACnB;YACD,OAAO,EAAE;gBACP,uBAAuB,EAAE,sBAAsB;gBAC/C,WAAW;gBACX,4BAA4B,EAAE,IAAI;gBAClC,OAAO,EAAE;oBACP,GAAG,OAAO,EAAE,OAAO;iBACpB;aACF;YACD,SAAS,EAAE,OAAO,EAAE,SAAS;YAC7B,YAAY,EAAE;gBAGZ,GAAG,EAAE,KAAK;aACX;YACD,SAAS,EAAE,OAAO,EAAE,UAAU;YAC9B,IAAI,EAAE,UAAU;SACjB,CAAA;QAED,WAAW,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,EAAE,IAAI,CAAC,CAAA;QACrC,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,IAAI,CAAC,CAAA;QAC3C,OAAO,EAAE,KAAK,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAA;IACzC,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -14,3 +14,4 @@ export declare const android_push_subscription_status: InputField;
|
|
|
14
14
|
export declare const ios_push_subscription_status: InputField;
|
|
15
15
|
export declare const subscription_groups: InputField;
|
|
16
16
|
export declare const message_id: InputField;
|
|
17
|
+
export declare const consent: InputField;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.message_id = 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.anonymous_id = exports.user_id = void 0;
|
|
3
|
+
exports.consent = exports.message_id = 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.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.',
|
|
@@ -89,4 +89,12 @@ exports.message_id = {
|
|
|
89
89
|
default: { '@path': '$.messageId' },
|
|
90
90
|
unsafe_hidden: true
|
|
91
91
|
};
|
|
92
|
+
exports.consent = {
|
|
93
|
+
label: 'Consent',
|
|
94
|
+
description: 'Segment event consent category preferences.',
|
|
95
|
+
type: 'object',
|
|
96
|
+
default: { '@path': '$.context.consent' },
|
|
97
|
+
additionalProperties: true,
|
|
98
|
+
unsafe_hidden: true
|
|
99
|
+
};
|
|
92
100
|
//# sourceMappingURL=subscription-properties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-properties.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendSubscription/subscription-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,kDAAkD;IAC/D,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EACT,0GAA0G;IAC5G,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;I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EY,QAAA,mBAAmB,GAAe;IAC7C,KAAK,EAAE,2BAA2B;IAClC,WAAW,EACT,0NAA0N;IAC5N,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,IAAI;IAC1B,eAAe,EAAE,UAAU;CAC5B,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,wBAAwB;IACrC,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;IACnC,aAAa,EAAE,IAAI;CACpB,CAAA"}
|
|
1
|
+
{"version":3,"file":"subscription-properties.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendSubscription/subscription-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,kDAAkD;IAC/D,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EACT,0GAA0G;IAC5G,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;AAEY,QAAA,KAAK,GAAe;IAC/B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,mBAAmB;IAChC,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,KAAK,GAAe;IAC/B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,0BAA0B;IACvC,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,Q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AE;IACnC,aAAa,EAAE,IAAI;CACpB,CAAA;AAEY,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,6CAA6C;IAC1D,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE;IACzC,oBAAoB,EAAE,IAAI;IAC1B,aAAa,EAAE,IAAI;CACpB,CAAA"}
|
|
@@ -13,7 +13,8 @@ const action = {
|
|
|
13
13
|
event_name: segment_properties_1.event_name,
|
|
14
14
|
group_id: segment_properties_1.group_id,
|
|
15
15
|
properties: segment_properties_1.properties,
|
|
16
|
-
message_id: segment_properties_1.message_id
|
|
16
|
+
message_id: segment_properties_1.message_id,
|
|
17
|
+
consent: segment_properties_1.consent
|
|
17
18
|
},
|
|
18
19
|
perform: (_, { payload, statsContext }) => {
|
|
19
20
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
@@ -34,6 +35,11 @@ const action = {
|
|
|
34
35
|
properties: {
|
|
35
36
|
...payload?.properties
|
|
36
37
|
},
|
|
38
|
+
context: {
|
|
39
|
+
consent: {
|
|
40
|
+
...payload?.consent
|
|
41
|
+
}
|
|
42
|
+
},
|
|
37
43
|
type: 'track'
|
|
38
44
|
}
|
|
39
45
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendTrack/index.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendTrack/index.ts"],"names":[],"mappings":";;AAGA,8DAU8B;AAC9B,sCAAkE;AAElE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,iGAAiG;IAC9G,MAAM,EAAE;QACN,YAAY,EAAZ,iCAAY;QACZ,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,SAAS,EAAT,8BAAS;QAC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