@segment/action-destinations 3.264.0 → 3.264.1-startconn-3468.1
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 +9 -0
- package/dist/destinations/amazon-ads/index.d.ts +2 -2
- package/dist/destinations/amazon-ads/index.js +180 -3
- package/dist/destinations/amazon-ads/index.js.map +1 -1
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +11 -0
- package/dist/destinations/amazon-ads/syncAudiences/index.js +235 -7
- package/dist/destinations/amazon-ads/syncAudiences/index.js.map +1 -1
- package/dist/destinations/amazon-ads/types.d.ts +25 -0
- package/dist/destinations/amazon-ads/utils.d.ts +25 -0
- package/dist/destinations/amazon-ads/utils.js +8 -0
- package/dist/destinations/amazon-ads/utils.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
- package/dist/destinations/chartmogul/index.js +1 -1
- package/dist/destinations/chartmogul/index.js.map +1 -1
- package/dist/destinations/dynamic-yield-audiences/constants.d.ts +1 -5
- package/dist/destinations/dynamic-yield-audiences/constants.js +2 -6
- package/dist/destinations/dynamic-yield-audiences/constants.js.map +1 -1
- package/dist/destinations/dynamic-yield-audiences/generated-types.d.ts +2 -4
- package/dist/destinations/dynamic-yield-audiences/helpers.d.ts +3 -2
- package/dist/destinations/dynamic-yield-audiences/helpers.js +7 -21
- package/dist/destinations/dynamic-yield-audiences/helpers.js.map +1 -1
- package/dist/destinations/dynamic-yield-audiences/index.d.ts +3 -3
- package/dist/destinations/dynamic-yield-audiences/index.js +27 -86
- package/dist/destinations/dynamic-yield-audiences/index.js.map +1 -1
- package/dist/destinations/dynamic-yield-audiences/syncAudience/generated-types.d.ts +4 -9
- package/dist/destinations/dynamic-yield-audiences/syncAudience/index.d.ts +3 -3
- package/dist/destinations/dynamic-yield-audiences/syncAudience/index.js +39 -109
- package/dist/destinations/dynamic-yield-audiences/syncAudience/index.js.map +1 -1
- 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/sendgrid/Profile.d.ts +6 -0
- package/dist/destinations/engage/sendgrid/Profile.js +3 -0
- package/dist/destinations/engage/sendgrid/Profile.js.map +1 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +21 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +174 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +1 -2
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
- package/dist/destinations/engage/utils/track.d.ts +17 -17
- package/dist/destinations/gameball/index.js +1 -1
- package/dist/destinations/gameball/index.js.map +1 -1
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js +2 -2
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js.map +1 -1
- package/dist/destinations/index.js +0 -1
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/kameleoon/group/generated-types.d.ts +0 -1
- package/dist/destinations/kameleoon/group/index.js +0 -9
- package/dist/destinations/kameleoon/group/index.js.map +1 -1
- package/dist/destinations/kameleoon/identify/generated-types.d.ts +0 -1
- package/dist/destinations/kameleoon/identify/index.js +0 -9
- package/dist/destinations/kameleoon/identify/index.js.map +1 -1
- package/dist/destinations/kameleoon/page/generated-types.d.ts +0 -1
- package/dist/destinations/kameleoon/page/index.js +0 -9
- package/dist/destinations/kameleoon/page/index.js.map +1 -1
- package/dist/destinations/klaviyo/functions.d.ts +1 -5
- package/dist/destinations/klaviyo/functions.js +1 -102
- package/dist/destinations/klaviyo/functions.js.map +1 -1
- package/dist/destinations/klaviyo/index.js +1 -7
- package/dist/destinations/klaviyo/index.js.map +1 -1
- package/dist/destinations/klaviyo/orderCompleted/generated-types.d.ts +4 -1
- package/dist/destinations/klaviyo/orderCompleted/index.js +15 -6
- package/dist/destinations/klaviyo/orderCompleted/index.js.map +1 -1
- package/dist/destinations/klaviyo/trackEvent/index.js +0 -1
- package/dist/destinations/klaviyo/trackEvent/index.js.map +1 -1
- package/dist/destinations/klaviyo/types.d.ts +1 -68
- package/dist/destinations/koala/identify/index.js +1 -6
- package/dist/destinations/koala/identify/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js +2 -2
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js +2 -2
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/addToList/index.js +3 -17
- package/dist/destinations/marketo-static-lists/addToList/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/functions.d.ts +8 -0
- package/dist/destinations/marketo-static-lists/functions.js +6 -4
- package/dist/destinations/marketo-static-lists/functions.js.map +1 -1
- package/dist/destinations/mixpanel/utils.d.ts +13 -0
- package/dist/destinations/mixpanel/utils.js +117 -0
- package/dist/destinations/mixpanel/utils.js.map +1 -0
- package/dist/destinations/moloco-rmp/common/convert.js +29 -17
- package/dist/destinations/moloco-rmp/common/convert.js.map +1 -1
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +14 -0
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +1 -0
- package/dist/destinations/{klaviyo/unsubscribeProfile → responsys/asyncMergePetRecords}/index.d.ts +1 -1
- 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.map +1 -0
- package/dist/destinations/{klaviyo/subscribeProfile → responsys/asyncMergeProfileListMembers}/index.d.ts +1 -1
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +174 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +1 -0
- package/dist/destinations/responsys/index.js +2 -6
- package/dist/destinations/responsys/index.js.map +1 -1
- 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/sendAudience/generated-types.d.ts +1 -1
- package/dist/destinations/responsys/sendAudience/index.js +4 -14
- package/dist/destinations/responsys/sendAudience/index.js.map +1 -1
- package/dist/destinations/responsys/sendCustomTraits/generated-types.d.ts +1 -1
- package/dist/destinations/responsys/sendCustomTraits/index.js +4 -14
- package/dist/destinations/responsys/sendCustomTraits/index.js.map +1 -1
- package/dist/destinations/responsys/utils.d.ts +2 -2
- package/dist/destinations/responsys/utils.js +5 -21
- package/dist/destinations/responsys/utils.js.map +1 -1
- package/dist/destinations/segment/segment-properties.d.ts +0 -1
- package/dist/destinations/segment/segment-properties.js +1 -8
- package/dist/destinations/segment/segment-properties.js.map +1 -1
- package/dist/destinations/segment/sendGroup/generated-types.d.ts +0 -1
- package/dist/destinations/segment/sendGroup/index.js +0 -2
- package/dist/destinations/segment/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment/sendIdentify/generated-types.d.ts +0 -1
- package/dist/destinations/segment/sendIdentify/index.js +0 -2
- package/dist/destinations/segment/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment/sendPage/generated-types.d.ts +0 -1
- package/dist/destinations/segment/sendPage/index.js +0 -2
- package/dist/destinations/segment/sendPage/index.js.map +1 -1
- package/dist/destinations/segment/sendScreen/generated-types.d.ts +0 -1
- package/dist/destinations/segment/sendScreen/index.js +0 -2
- package/dist/destinations/segment/sendScreen/index.js.map +1 -1
- package/dist/destinations/segment/sendTrack/generated-types.d.ts +0 -1
- package/dist/destinations/segment/sendTrack/index.js +0 -2
- package/dist/destinations/segment/sendTrack/index.js.map +1 -1
- package/dist/destinations/segment-profiles/segment-properties.d.ts +0 -1
- package/dist/destinations/segment-profiles/segment-properties.js +1 -8
- package/dist/destinations/segment-profiles/segment-properties.js.map +1 -1
- package/dist/destinations/segment-profiles/sendGroup/generated-types.d.ts +0 -1
- package/dist/destinations/segment-profiles/sendGroup/index.js +1 -3
- package/dist/destinations/segment-profiles/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendIdentify/generated-types.d.ts +0 -1
- package/dist/destinations/segment-profiles/sendIdentify/index.js +1 -3
- package/dist/destinations/segment-profiles/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendSubscription/generated-types.d.ts +0 -1
- package/dist/destinations/segment-profiles/sendSubscription/index.js +1 -3
- package/dist/destinations/segment-profiles/sendSubscription/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendSubscription/subscription-properties.d.ts +0 -1
- package/dist/destinations/segment-profiles/sendSubscription/subscription-properties.js +1 -8
- package/dist/destinations/segment-profiles/sendSubscription/subscription-properties.js.map +1 -1
- package/dist/destinations/segment-profiles/sendTrack/generated-types.d.ts +0 -1
- package/dist/destinations/segment-profiles/sendTrack/index.js +1 -3
- 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/index.js +75 -163
- package/dist/destinations/tiktok-conversions/index.js.map +1 -1
- 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-conversions/reportWebEvent/generated-types.d.ts +4 -12
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.d.ts +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +233 -5
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
- 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/dist/destinations/xtremepush/identify/index.js +2 -2
- package/dist/destinations/xtremepush/identify/index.js.map +1 -1
- package/dist/destinations/xtremepush/index.js.map +1 -1
- package/dist/destinations/xtremepush/track/index.js +2 -2
- package/dist/destinations/xtremepush/track/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/destinations/klaviyo/subscribeProfile/generated-types.d.ts +0 -8
- package/dist/destinations/klaviyo/subscribeProfile/generated-types.js.map +0 -1
- package/dist/destinations/klaviyo/subscribeProfile/index.js +0 -137
- package/dist/destinations/klaviyo/subscribeProfile/index.js.map +0 -1
- package/dist/destinations/klaviyo/unsubscribeProfile/generated-types.d.ts +0 -6
- package/dist/destinations/klaviyo/unsubscribeProfile/generated-types.js.map +0 -1
- package/dist/destinations/klaviyo/unsubscribeProfile/index.js +0 -118
- package/dist/destinations/klaviyo/unsubscribeProfile/index.js.map +0 -1
- /package/dist/destinations/{klaviyo/subscribeProfile → responsys/asyncMergePetRecords}/generated-types.js +0 -0
- /package/dist/destinations/{klaviyo/unsubscribeProfile → responsys/asyncMergeProfileListMembers}/generated-types.js +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatPhones = exports.formatUserIds = exports.formatEmails = void 0;
|
|
4
|
+
const crypto_1 = require("crypto");
|
|
5
|
+
const formatEmails = (email_addresses) => {
|
|
6
|
+
const result = [];
|
|
7
|
+
if (email_addresses) {
|
|
8
|
+
email_addresses.forEach((email) => {
|
|
9
|
+
result.push(hashAndEncode(email.toLowerCase()));
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return result;
|
|
13
|
+
};
|
|
14
|
+
exports.formatEmails = formatEmails;
|
|
15
|
+
function formatUserIds(userIds) {
|
|
16
|
+
const result = [];
|
|
17
|
+
if (userIds) {
|
|
18
|
+
userIds.forEach((userId) => {
|
|
19
|
+
result.push(hashAndEncode(userId.toLowerCase()));
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
exports.formatUserIds = formatUserIds;
|
|
25
|
+
const formatPhones = (phone_numbers) => {
|
|
26
|
+
const result = [];
|
|
27
|
+
if (!phone_numbers)
|
|
28
|
+
return result;
|
|
29
|
+
phone_numbers.forEach((phone) => {
|
|
30
|
+
const validatedPhone = phone.match(/[0-9]{0,14}/g);
|
|
31
|
+
if (validatedPhone === null) {
|
|
32
|
+
throw new Error(`${phone} is not a valid E.164 phone number.`);
|
|
33
|
+
}
|
|
34
|
+
const formattedPhone = `+${phone.replace(/[^0-9]/g, '')}`;
|
|
35
|
+
result.push(hashAndEncode(formattedPhone.substring(0, 15)));
|
|
36
|
+
});
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
exports.formatPhones = formatPhones;
|
|
40
|
+
function hashAndEncode(property) {
|
|
41
|
+
return crypto_1.createHash('sha256').update(property).digest('hex');
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=formatter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatter.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAK5B,MAAM,YAAY,GAAG,CAAC,eAAqC,EAAY,EAAE;IAC9E,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,IAAI,eAAe,EAAE;QACnB,eAAe,CAAC,OAAO,CAAC,CAAC,KAAa,EAAE,EAAE;YACxC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAA;QACjD,CAAC,CAAC,CAAA;KACH;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AARY,QAAA,YAAY,gBAQxB;AAOD,SAAgB,aAAa,CAAC,OAA6B;IACzD,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,OAAO,CAAC,CAAC,MAAc,EAAE,EAAE;YACjC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAA;QAClD,CAAC,CAAC,CAAA;KACH;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AARD,sCAQC;AAOM,MAAM,YAAY,GAAG,CAAC,aAAmC,EAAY,EAAE;IAC5E,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,IAAI,CAAC,aAAa;QAAE,OAAO,MAAM,CAAA;IAEjC,aAAa,CAAC,OAAO,CAAC,CAAC,KAAa,EAAE,EAAE;QACtC,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;QAClD,IAAI,cAAc,KAAK,IAAI,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,qCAAqC,CAAC,CAAA;SAC/D;QAED,MAAM,cAAc,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAA;QAEzD,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;IAC7D,CAAC,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AAhBY,QAAA,YAAY,gBAgBxB;AAED,SAAS,aAAa,CAAC,QAAgB;IACrC,OAAO,mBAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAC5D,CAAC"}
|
|
@@ -21,12 +21,12 @@ const action = {
|
|
|
21
21
|
userId: {
|
|
22
22
|
label: 'User ID',
|
|
23
23
|
type: 'string',
|
|
24
|
-
required: false
|
|
24
|
+
required: false
|
|
25
25
|
},
|
|
26
26
|
anonymousId: {
|
|
27
27
|
label: 'Anonymous ID',
|
|
28
28
|
type: 'string',
|
|
29
|
-
required: false
|
|
29
|
+
required: false
|
|
30
30
|
},
|
|
31
31
|
phone: {
|
|
32
32
|
label: 'Phone',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/xtremepush/identify/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,sCAAsC;IACnD,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;YAC9B,QAAQ,EAAE,IAAI;SACf;QACD,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,QAAQ;YACd,eAAe,EAAE,UAAU;YAC3B,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,KAAK,EAAE,SAAS;oBAChB,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;iBAChB;gBACD,WAAW,EAAE;oBACX,KAAK,EAAE,cAAc;oBACrB,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;iBAChB;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE,OAAO;oBACd,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;iBAChB;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE,OAAO;oBACd,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE,OAAO;oBACf,QAAQ,EAAE,KAAK;iBAChB;aACF;YACD,OAAO,EAAE;gBACP,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;gBAC/B,WAAW,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;gBACzC,KAAK,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;gBACpC,KAAK,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;aACrC;SACF;QACD,MAAM,EAAE;YACN,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/xtremepush/identify/index.ts"],"names":[],"mappings":";;AA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U;YACzB,OAAO,EAAE,4BAAa,CAAC,kBAAQ,CAAC,MAAM,CAAC;YACvC,IAAI,EAAE,WAAW;SAClB;KACF;IACD,OAAO,EAAE;QACP,QAAQ,EAAR,kBAAQ;QACR,KAAK,EAAL,eAAK;KACN;IACD,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACjD,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAA;QAElF,OAAO,OAAO,CAAC,IAAI,GAAG,iCAAiC,EAAE;YACvD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -21,12 +21,12 @@ const action = {
|
|
|
21
21
|
userId: {
|
|
22
22
|
label: 'User ID',
|
|
23
23
|
type: 'string',
|
|
24
|
-
required: false
|
|
24
|
+
required: false
|
|
25
25
|
},
|
|
26
26
|
anonymousId: {
|
|
27
27
|
label: 'Anonymous ID',
|
|
28
28
|
type: 'string',
|
|
29
|
-
required: false
|
|
29
|
+
required: false
|
|
30
30
|
},
|
|
31
31
|
phone: {
|
|
32
32
|
label: 'Phone',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/xtremepush/track/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,qCAAqC;IAClD,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EA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AAED,kBAAe,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/action-destinations",
|
|
3
3
|
"description": "Destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.264.
|
|
4
|
+
"version": "3.264.1-startconn-3468.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@bufbuild/protobuf": "^1.4.2",
|
|
44
44
|
"@bufbuild/protoc-gen-es": "^1.4.2",
|
|
45
45
|
"@segment/a1-notation": "^2.1.4",
|
|
46
|
-
"@segment/actions-core": "^3.
|
|
47
|
-
"@segment/actions-shared": "^1.
|
|
46
|
+
"@segment/actions-core": "^3.107.0",
|
|
47
|
+
"@segment/actions-shared": "^1.88.0",
|
|
48
48
|
"@types/node": "^18.11.15",
|
|
49
49
|
"ajv-formats": "^2.1.1",
|
|
50
50
|
"aws4": "^1.12.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"__tests__/__helpers__/"
|
|
87
87
|
]
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "9c04e12c4a0e81f6b68dca0a297fb2c0209d2431"
|
|
90
90
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/klaviyo/subscribeProfile/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const functions_1 = require("../functions");
|
|
4
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
5
|
-
const functions_2 = require("../functions");
|
|
6
|
-
const config_1 = require("../config");
|
|
7
|
-
const action = {
|
|
8
|
-
title: 'Subscribe Profile',
|
|
9
|
-
description: 'Subscribe Klaviyo profiles to Email marketing, SMS marketing, or both.',
|
|
10
|
-
defaultSubscription: 'type = "track" and event = "User Subscribed"',
|
|
11
|
-
fields: {
|
|
12
|
-
email: {
|
|
13
|
-
label: 'Email',
|
|
14
|
-
description: `The email address to subscribe. If provided, the associated profile will be subscribed to Email marketing.`,
|
|
15
|
-
type: 'string',
|
|
16
|
-
format: 'email',
|
|
17
|
-
default: {
|
|
18
|
-
'@if': {
|
|
19
|
-
exists: { '@path': '$.traits.email' },
|
|
20
|
-
then: { '@path': '$.traits.email' },
|
|
21
|
-
else: { '@path': '$.context.traits.email' }
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
phone_number: {
|
|
26
|
-
label: 'Phone Number',
|
|
27
|
-
description: `The phone number to subscribe. This must be in E.164 format. If provided, the associated profile will be subscribed to SMS marketing.`,
|
|
28
|
-
type: 'string',
|
|
29
|
-
default: {
|
|
30
|
-
'@if': {
|
|
31
|
-
exists: { '@path': '$.traits.phone' },
|
|
32
|
-
then: { '@path': '$.traits.phone' },
|
|
33
|
-
else: { '@path': '$.context.traits.phone' }
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
list_id: {
|
|
38
|
-
label: 'List Id',
|
|
39
|
-
description: `The Klaviyo list to add the newly subscribed profiles to. If no List Id is present, the opt-in process used to subscribe the profile depends on the account's default opt-in settings.`,
|
|
40
|
-
type: 'string',
|
|
41
|
-
dynamic: true
|
|
42
|
-
},
|
|
43
|
-
custom_source: {
|
|
44
|
-
label: 'Custom Source ($source)',
|
|
45
|
-
description: 'A custom method or source to detail source of consent preferences (e.g., "Marketing Event"). The default is set to -59, as this is [the $source value associated with Segment](https://help.klaviyo.com/hc/en-us/articles/1260804673530#h_01HDKHG9AM4BSSM009BM6XBF1H).',
|
|
46
|
-
type: 'string',
|
|
47
|
-
default: -59
|
|
48
|
-
},
|
|
49
|
-
consented_at: {
|
|
50
|
-
label: 'Consented At',
|
|
51
|
-
description: `The timestamp of when the profile's consent was gathered.`,
|
|
52
|
-
type: 'datetime',
|
|
53
|
-
default: {
|
|
54
|
-
'@path': '$.timestamp'
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
enable_batching: {
|
|
58
|
-
type: 'boolean',
|
|
59
|
-
label: 'Batch Data to Klaviyo',
|
|
60
|
-
description: 'When enabled, the action will use the Klaviyo batch API.'
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
dynamicFields: {
|
|
64
|
-
list_id: async (request) => {
|
|
65
|
-
return functions_1.getListIdDynamicData(request);
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
perform: async (request, { payload }) => {
|
|
69
|
-
const { email, phone_number, consented_at, list_id, custom_source } = payload;
|
|
70
|
-
if (!email && !phone_number) {
|
|
71
|
-
throw new actions_core_1.PayloadValidationError('Phone Number or Email is required.');
|
|
72
|
-
}
|
|
73
|
-
const profileToSubscribe = functions_2.formatSubscribeProfile(email, phone_number, consented_at);
|
|
74
|
-
const subData = functions_2.formatSubscribeRequestBody(profileToSubscribe, list_id, custom_source);
|
|
75
|
-
return await request(`${config_1.API_URL}/profile-subscription-bulk-create-jobs/`, {
|
|
76
|
-
method: 'POST',
|
|
77
|
-
headers: {
|
|
78
|
-
revision: '2024-02-15'
|
|
79
|
-
},
|
|
80
|
-
json: subData
|
|
81
|
-
});
|
|
82
|
-
},
|
|
83
|
-
performBatch: async (request, { payload }) => {
|
|
84
|
-
const filteredPayload = payload.filter((profile) => profile.email || profile.phone_number);
|
|
85
|
-
if (filteredPayload.length === 0) {
|
|
86
|
-
throw new actions_core_1.PayloadValidationError('Phone Number or Email is required.');
|
|
87
|
-
}
|
|
88
|
-
const sortedProfilesObject = sortBatches(filteredPayload);
|
|
89
|
-
const batches = Object.keys(sortedProfilesObject);
|
|
90
|
-
if (batches.length > 9) {
|
|
91
|
-
throw new actions_core_1.PayloadValidationError('Exceeded maximum allowed batches due to unique list_id and custom_source pairings');
|
|
92
|
-
}
|
|
93
|
-
const requests = [];
|
|
94
|
-
batches.forEach((key) => {
|
|
95
|
-
const { list_id, custom_source, profiles } = sortedProfilesObject[key];
|
|
96
|
-
for (let i = 0; i < profiles.length; i += 100) {
|
|
97
|
-
const profilesSubset = profiles.slice(i, i + 100);
|
|
98
|
-
const subData = functions_2.formatSubscribeRequestBody(profilesSubset, list_id, custom_source);
|
|
99
|
-
const response = request(`${config_1.API_URL}/profile-subscription-bulk-create-jobs/`, {
|
|
100
|
-
method: 'POST',
|
|
101
|
-
headers: {
|
|
102
|
-
revision: '2024-02-15'
|
|
103
|
-
},
|
|
104
|
-
json: subData
|
|
105
|
-
});
|
|
106
|
-
requests.push(response);
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
return await Promise.all(requests);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
exports.default = action;
|
|
113
|
-
function sortBatches(batchPayload) {
|
|
114
|
-
const output = {};
|
|
115
|
-
batchPayload.forEach((payload) => {
|
|
116
|
-
const { email, phone_number, custom_source, consented_at, list_id } = payload;
|
|
117
|
-
const listId = list_id || 'noListId';
|
|
118
|
-
const customSource = custom_source || 'noCustomSource';
|
|
119
|
-
const key = `${listId}${customSource}`;
|
|
120
|
-
if (!output[key]) {
|
|
121
|
-
const batch = {
|
|
122
|
-
profiles: []
|
|
123
|
-
};
|
|
124
|
-
if (list_id !== undefined) {
|
|
125
|
-
batch.list_id = list_id;
|
|
126
|
-
}
|
|
127
|
-
if (custom_source !== undefined) {
|
|
128
|
-
batch.custom_source = custom_source;
|
|
129
|
-
}
|
|
130
|
-
output[key] = batch;
|
|
131
|
-
}
|
|
132
|
-
const profileToSubscribe = functions_2.formatSubscribeProfile(email, phone_number, consented_at);
|
|
133
|
-
output[key].profiles.push(profileToSubscribe);
|
|
134
|
-
});
|
|
135
|
-
return output;
|
|
136
|
-
}
|
|
137
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/klaviyo/subscribeProfile/index.ts"],"names":[],"mappings":";;AAGA,4CAAmD;AAEnD,wDAA8D;AAC9D,4CAAiF;AAEjF,sCAAmC;AAEnC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,wEAAwE;IACrF,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,4GAA4G;YACzH,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,OAAO;YACf,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;oBACrC,IAAI,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;oBACnC,IAAI,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;iBAC5C;aACF;SACF;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,uIAAuI;YACpJ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;oBACrC,IAAI,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;oBACnC,IAAI,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;iBAC5C;aACF;SACF;QACD,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,wLAAwL;YACrM,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,IAAI;SACd;QACD,aAAa,EAAE;YACb,KAAK,EAAE,yBAAyB;YAChC,WAAW,EACT,wQAAwQ;YAC1Q,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,EAAE;SACb;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,2DAA2D;YACxE,IAAI,EAAE,UAAU;YAChB,OAAO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Y,EAAE,OAAO,EAAE,GAAG,OAAO,CAAA;QAE7E,MAAM,MAAM,GAAG,OAAO,IAAI,UAAU,CAAA;QACpC,MAAM,YAAY,GAAG,aAAa,IAAI,gBAAgB,CAAA;QAGtD,MAAM,GAAG,GAAG,GAAG,MAAM,GAAG,YAAY,EAAE,CAAA;QAGtC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;YAChB,MAAM,KAAK,GAA+E;gBACxF,QAAQ,EAAE,EAAE;aACb,CAAA;YAED,IAAI,OAAO,KAAK,SAAS,EAAE;gBACzB,KAAK,CAAC,OAAO,GAAG,OAAO,CAAA;aACxB;YAED,IAAI,aAAa,KAAK,SAAS,EAAE;gBAC/B,KAAK,CAAC,aAAa,GAAG,aAAa,CAAA;aACpC;YAED,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;SACpB;QAGD,MAAM,kBAAkB,GAAG,kCAAsB,CAAC,KAAK,EAAE,YAAY,EAAE,YAAY,CAAC,CAAA;QAGpF,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;IAC/C,CAAC,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/klaviyo/unsubscribeProfile/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const functions_1 = require("../functions");
|
|
4
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
5
|
-
const functions_2 = require("../functions");
|
|
6
|
-
const config_1 = require("../config");
|
|
7
|
-
const action = {
|
|
8
|
-
title: 'Unsubscribe Profile',
|
|
9
|
-
defaultSubscription: 'type = "track" and event = "User Unsubscribed"',
|
|
10
|
-
description: 'Unsubscribe Klaviyo profiles from Email marketing, SMS marketing, or both.',
|
|
11
|
-
fields: {
|
|
12
|
-
email: {
|
|
13
|
-
label: 'Email',
|
|
14
|
-
description: `The email address to unsubscribe. If provided, the associated profile will be unsubscribed to Email marketing.`,
|
|
15
|
-
type: 'string',
|
|
16
|
-
format: 'email',
|
|
17
|
-
default: {
|
|
18
|
-
'@if': {
|
|
19
|
-
exists: { '@path': '$.traits.email' },
|
|
20
|
-
then: { '@path': '$.traits.email' },
|
|
21
|
-
else: { '@path': '$.context.traits.email' }
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
phone_number: {
|
|
26
|
-
label: 'Phone Number',
|
|
27
|
-
description: `The phone number to unsubscribe. This must be in E.164 format. If provided, the associated profile will be unsubscribed to SMS marketing.`,
|
|
28
|
-
type: 'string',
|
|
29
|
-
default: {
|
|
30
|
-
'@if': {
|
|
31
|
-
exists: { '@path': '$.traits.phone' },
|
|
32
|
-
then: { '@path': '$.traits.phone' },
|
|
33
|
-
else: { '@path': '$.context.traits.phone' }
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
list_id: {
|
|
38
|
-
label: 'List Id',
|
|
39
|
-
description: `The Klaviyo list to remove the subscribed profiles from. If no list id is provided, the profile will be unsubscribed from all channels.`,
|
|
40
|
-
type: 'string',
|
|
41
|
-
dynamic: true
|
|
42
|
-
},
|
|
43
|
-
enable_batching: {
|
|
44
|
-
type: 'boolean',
|
|
45
|
-
label: 'Batch Data to Klaviyo',
|
|
46
|
-
description: 'When enabled, the action will use the Klaviyo batch API.'
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
dynamicFields: {
|
|
50
|
-
list_id: async (request) => {
|
|
51
|
-
return functions_1.getListIdDynamicData(request);
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
perform: async (request, { payload }) => {
|
|
55
|
-
const { email, phone_number, list_id } = payload;
|
|
56
|
-
if (!email && !phone_number) {
|
|
57
|
-
throw new actions_core_1.PayloadValidationError('Phone Number or Email is required.');
|
|
58
|
-
}
|
|
59
|
-
const profileToUnSubscribe = functions_2.formatUnsubscribeProfile(email, phone_number);
|
|
60
|
-
const unSubData = functions_2.formatUnsubscribeRequestBody(profileToUnSubscribe, list_id);
|
|
61
|
-
return await request(`${config_1.API_URL}/profile-subscription-bulk-delete-jobs`, {
|
|
62
|
-
method: 'POST',
|
|
63
|
-
headers: {
|
|
64
|
-
revision: '2024-02-15'
|
|
65
|
-
},
|
|
66
|
-
json: unSubData
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
performBatch: async (request, { payload }) => {
|
|
70
|
-
const filteredPayload = payload.filter((profile) => profile.email || profile.phone_number);
|
|
71
|
-
if (payload.length === 0) {
|
|
72
|
-
throw new actions_core_1.PayloadValidationError('Phone Number or Email is required.');
|
|
73
|
-
}
|
|
74
|
-
const sortedProfilesObject = sortBatches(filteredPayload);
|
|
75
|
-
const batches = Object.keys(sortedProfilesObject);
|
|
76
|
-
if (batches.length > 9) {
|
|
77
|
-
throw new actions_core_1.PayloadValidationError('Exceeded maximum allowed batches due to too many unique list_ids');
|
|
78
|
-
}
|
|
79
|
-
const requests = [];
|
|
80
|
-
batches.forEach((key) => {
|
|
81
|
-
const { list_id, profiles } = sortedProfilesObject[key];
|
|
82
|
-
for (let i = 0; i < profiles.length; i += 100) {
|
|
83
|
-
const profilesSubset = profiles.slice(i, i + 100);
|
|
84
|
-
const unSubData = functions_2.formatUnsubscribeRequestBody(profilesSubset, list_id);
|
|
85
|
-
const response = request(`${config_1.API_URL}/profile-subscription-bulk-delete-jobs`, {
|
|
86
|
-
method: 'POST',
|
|
87
|
-
headers: {
|
|
88
|
-
revision: '2024-02-15'
|
|
89
|
-
},
|
|
90
|
-
json: unSubData
|
|
91
|
-
});
|
|
92
|
-
requests.push(response);
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
return await Promise.all(requests);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
exports.default = action;
|
|
99
|
-
function sortBatches(batchPayload) {
|
|
100
|
-
const output = {};
|
|
101
|
-
batchPayload.forEach((payload) => {
|
|
102
|
-
const { email, phone_number, list_id } = payload;
|
|
103
|
-
const key = list_id || 'noListId';
|
|
104
|
-
if (!output[key]) {
|
|
105
|
-
const batch = {
|
|
106
|
-
profiles: []
|
|
107
|
-
};
|
|
108
|
-
if (list_id !== undefined) {
|
|
109
|
-
batch.list_id = list_id;
|
|
110
|
-
}
|
|
111
|
-
output[key] = batch;
|
|
112
|
-
}
|
|
113
|
-
const profileToUnSubscribe = functions_2.formatUnsubscribeProfile(email, phone_number);
|
|
114
|
-
output[key].profiles.push(profileToUnSubscribe);
|
|
115
|
-
});
|
|
116
|
-
return output;
|
|
117
|
-
}
|
|
118
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/klaviyo/unsubscribeProfile/index.ts"],"names":[],"mappings":";;AAGA,4CAAmD;AACnD,wDAA8D;AAC9D,4CAAqF;AAErF,sCAAmC;AAEnC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,mBAAmB,EAAE,gDAAgD;IACrE,WAAW,EAAE,4EAA4E;IACzF,MAAM,EAAE;QACN,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,gHAAgH;YAC7H,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,OAAO;YACf,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;oBACrC,IAAI,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;oBACnC,IAAI,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;iBAC5C;aACF;SACF;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,2IAA2I;YACxJ,IAAI,EAAE,QAAQ;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