@segment/action-destinations 3.205.2 → 3.205.3-staging.305
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/engage/sendgrid/sendEmail/SendEmailPerformer.js +2 -10
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
- package/dist/destinations/engage/utils/EngageStats.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 +137 -0
- package/dist/destinations/hubspot/upsertContact/index.js.map +1 -1
- package/dist/destinations/linkedin-audiences/updateAudience/index.js +1 -2
- package/dist/destinations/linkedin-audiences/updateAudience/index.js.map +1 -1
- package/dist/destinations/listrak/updateEmailContactProfileFields/index.js.map +1 -1
- package/dist/destinations/m3ter/auth.js.map +1 -1
- package/dist/destinations/m3ter/submitMeasurements/index.js +3 -3
- package/dist/destinations/m3ter/submitMeasurements/index.js.map +1 -1
- 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/playerzero-cloud/identifyUser/index.js +3 -3
- 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 +3 -2
- 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 +8 -6
- package/dist/destinations/salesforce/sf-operations.js +24 -14
- 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 +8 -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 +8 -1
- package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js.map +1 -1
- package/dist/destinations/segment/properties.js +4 -4
- package/dist/destinations/segment/properties.js.map +1 -1
- package/dist/destinations/segment/sendGroup/index.js +5 -1
- package/dist/destinations/segment/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment/sendIdentify/index.js +5 -1
- package/dist/destinations/segment/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment/sendPage/index.js +5 -1
- package/dist/destinations/segment/sendPage/index.js.map +1 -1
- package/dist/destinations/segment/sendScreen/index.js +5 -1
- package/dist/destinations/segment/sendScreen/index.js.map +1 -1
- package/dist/destinations/segment/sendTrack/index.js +5 -1
- package/dist/destinations/segment/sendTrack/index.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 +6 -0
- package/dist/destinations/segment-profiles/segment-properties.js +34 -1
- package/dist/destinations/segment-profiles/segment-properties.js.map +1 -1
- package/dist/destinations/segment-profiles/sendGroup/index.js +5 -1
- package/dist/destinations/segment-profiles/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendIdentify/index.js +7 -3
- package/dist/destinations/segment-profiles/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendSubscription/generated-types.d.ts +16 -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 +117 -0
- package/dist/destinations/segment-profiles/sendSubscription/index.js.map +1 -0
- package/dist/destinations/the-trade-desk-crm/index.js +1 -1
- package/dist/destinations/webhook-audiences/index.js +21 -3
- package/dist/destinations/webhook-audiences/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -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,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,SAAS,EAAT,8BAAS;QACT,WAAW,EAAX,gC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5B;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 }) => {
|
|
31
31
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
32
32
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
33
33
|
}
|
|
@@ -58,6 +58,10 @@ 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']) {
|
|
62
|
+
const payload = { ...trackPayload, type: 'track' };
|
|
63
|
+
return { batch: [payload] };
|
|
64
|
+
}
|
|
61
65
|
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
62
66
|
return request(`${selectedSegmentEndpoint}/track`, {
|
|
63
67
|
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,4BA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AAE,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"}
|
|
@@ -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,9 @@ 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 email_subscription_status: InputField;
|
|
10
|
+
export declare const sms_subscription_status: InputField;
|
|
11
|
+
export declare const whatsapp_subscription_status: InputField;
|
|
12
|
+
export declare const subscriptionGroups: 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.subscriptionGroups = exports.whatsapp_subscription_status = exports.sms_subscription_status = exports.email_subscription_status = 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,37 @@ 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.email_subscription_status = {
|
|
44
|
+
label: 'Email Subscription Status',
|
|
45
|
+
description: 'Global status of the email subscription. True is subscribed, false is unsubscribed and null|undefined is did-not-subscribe.',
|
|
46
|
+
type: 'string'
|
|
47
|
+
};
|
|
48
|
+
exports.sms_subscription_status = {
|
|
49
|
+
label: 'SMS Subscription Status',
|
|
50
|
+
description: 'Global status of the SMS subscription. True is subscribed, false is unsubscribed and null|undefined is did-not-subscribe.',
|
|
51
|
+
type: 'string'
|
|
52
|
+
};
|
|
53
|
+
exports.whatsapp_subscription_status = {
|
|
54
|
+
label: 'WhatsApp Subscription Status',
|
|
55
|
+
description: 'Global status of the WhatsApp subscription. True is subscribed, false is unsubscribed and null|undefined is did-not-subscribe.',
|
|
56
|
+
type: 'string'
|
|
57
|
+
};
|
|
58
|
+
exports.subscriptionGroups = {
|
|
59
|
+
label: 'Subscription Groups',
|
|
60
|
+
description: 'Subscription status for the groups. Object containing group names as keys and statuses as values',
|
|
61
|
+
type: 'object',
|
|
62
|
+
additionalProperties: true,
|
|
63
|
+
unsafe_hidden: true,
|
|
64
|
+
defaultObjectUI: 'keyvalue'
|
|
65
|
+
};
|
|
33
66
|
//# 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,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,QAAA,yBAAyB,GAAe;IACnD,KAAK,EAAE,2BAA2B;IAClC,WAAW,EACT,6HAA6H;IAC/H,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,uBAAuB,GAAe;IACjD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EACT,2HAA2H;IAC7H,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,4BAA4B,GAAe;IACtD,KAAK,EAAE,8BAA8B;IACrC,WAAW,EACT,gIAAgI;IAClI,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,kBAAkB,GAAe;IAC5C,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,kGAAkG;IAC/G,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,IAAI;IAC1B,aAAa,EAAE,IAAI;IACnB,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 }) => {
|
|
19
19
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
20
20
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
21
21
|
}
|
|
@@ -33,6 +33,10 @@ 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']) {
|
|
37
|
+
const payload = { ...groupPayload, type: 'group' };
|
|
38
|
+
return { batch: [payload] };
|
|
39
|
+
}
|
|
36
40
|
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
37
41
|
return request(`${selectedSegmentEndpoint}/group`, {
|
|
38
42
|
method: 'POST',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendGroup/index.ts"],"names":[],"mappings":";;AAG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M,EAAE;gBACN,GAAG,OAAO,EAAE,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,wCAAwC,CAAC,EAAE;YAClE,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 }) => {
|
|
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,14 @@ 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']) {
|
|
37
|
+
const payload = { ...identityPayload, type: 'identify' };
|
|
38
|
+
return { batch: [payload] };
|
|
39
|
+
}
|
|
36
40
|
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
37
41
|
return request(`${selectedSegmentEndpoint}/identify`, {
|
|
38
42
|
method: 'POST',
|
|
39
|
-
json:
|
|
43
|
+
json: identityPayload,
|
|
40
44
|
headers: {
|
|
41
45
|
authorization: helperFunctions_1.generateSegmentAPIAuthHeaders(payload.engage_space)
|
|
42
46
|
}
|
|
@@ -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-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,mBAA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A;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
engage_space: string;
|
|
3
|
+
user_id?: string;
|
|
4
|
+
anonymous_id?: string;
|
|
5
|
+
traits?: {
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
email?: string;
|
|
9
|
+
phone?: string;
|
|
10
|
+
email_subscription_status?: string;
|
|
11
|
+
sms_subscription_status?: string;
|
|
12
|
+
whatsapp_subscription_status?: string;
|
|
13
|
+
subscriptionGroups?: {
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendSubscription/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const segment_properties_1 = require("../segment-properties");
|
|
4
|
+
const errors_1 = require("../errors");
|
|
5
|
+
const helperFunctions_1 = require("../helperFunctions");
|
|
6
|
+
const properties_1 = require("../properties");
|
|
7
|
+
const action = {
|
|
8
|
+
title: 'SendSubscriptions',
|
|
9
|
+
description: 'Send an identify call to Segment’s tracking API. This is used to tie your users to their actions and record traits about them.',
|
|
10
|
+
defaultSubscription: 'type = "identify"',
|
|
11
|
+
fields: {
|
|
12
|
+
engage_space: segment_properties_1.engage_space,
|
|
13
|
+
user_id: segment_properties_1.user_id,
|
|
14
|
+
anonymous_id: segment_properties_1.anonymous_id,
|
|
15
|
+
traits: segment_properties_1.traits,
|
|
16
|
+
email: segment_properties_1.email,
|
|
17
|
+
phone: segment_properties_1.phone,
|
|
18
|
+
email_subscription_status: segment_properties_1.email_subscription_status,
|
|
19
|
+
sms_subscription_status: segment_properties_1.sms_subscription_status,
|
|
20
|
+
whatsapp_subscription_status: segment_properties_1.whatsapp_subscription_status,
|
|
21
|
+
subscriptionGroups: segment_properties_1.subscriptionGroups
|
|
22
|
+
},
|
|
23
|
+
perform: (request, { payload, settings }) => {
|
|
24
|
+
if (!payload.anonymous_id && !payload.user_id) {
|
|
25
|
+
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
26
|
+
}
|
|
27
|
+
const getStatus = (subscriptionStatus) => {
|
|
28
|
+
if (subscriptionStatus === 'true' || subscriptionStatus === 'SUBSCRIBED') {
|
|
29
|
+
return 'SUBSCRIBED';
|
|
30
|
+
}
|
|
31
|
+
if (subscriptionStatus === 'false' || subscriptionStatus === 'UNSUBSCRIBED') {
|
|
32
|
+
return 'UNSUBSCRIBED';
|
|
33
|
+
}
|
|
34
|
+
return 'DID_NOT_SUBSCRIBE';
|
|
35
|
+
};
|
|
36
|
+
const messaging_subscriptions = [];
|
|
37
|
+
if (payload?.email) {
|
|
38
|
+
const emailSubscription = {
|
|
39
|
+
key: payload.email,
|
|
40
|
+
type: 'EMAIL',
|
|
41
|
+
status: getStatus(payload.email_subscription_status)
|
|
42
|
+
};
|
|
43
|
+
console.log('before groupSubscriptions:', JSON.stringify(emailSubscription, null, 2));
|
|
44
|
+
if (payload.subscriptionGroups && typeof payload.subscriptionGroups === 'object') {
|
|
45
|
+
const formattedGroups = Object.entries(payload.subscriptionGroups)
|
|
46
|
+
.filter(([name, status]) => name !== undefined && status !== undefined)
|
|
47
|
+
.map(([name, status]) => ({
|
|
48
|
+
name: String(name),
|
|
49
|
+
status: getStatus(String(status))
|
|
50
|
+
}));
|
|
51
|
+
emailSubscription.groups = formattedGroups;
|
|
52
|
+
}
|
|
53
|
+
messaging_subscriptions.push(emailSubscription);
|
|
54
|
+
}
|
|
55
|
+
if (payload?.phone) {
|
|
56
|
+
if (payload.sms_subscription_status !== undefined) {
|
|
57
|
+
messaging_subscriptions.push({
|
|
58
|
+
key: payload.phone,
|
|
59
|
+
type: 'SMS',
|
|
60
|
+
status: getStatus(payload.sms_subscription_status)
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (payload.whatsapp_subscription_status !== undefined) {
|
|
64
|
+
messaging_subscriptions.push({
|
|
65
|
+
key: payload.phone,
|
|
66
|
+
type: 'WHATSAPP',
|
|
67
|
+
status: getStatus(payload.whatsapp_subscription_status)
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const externalIds = [];
|
|
72
|
+
if (payload?.email) {
|
|
73
|
+
externalIds.push({
|
|
74
|
+
id: payload.email,
|
|
75
|
+
type: 'email',
|
|
76
|
+
collection: 'users',
|
|
77
|
+
encoding: 'none'
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
if (payload?.phone) {
|
|
81
|
+
externalIds.push({
|
|
82
|
+
id: payload.phone,
|
|
83
|
+
type: 'phone',
|
|
84
|
+
collection: 'users',
|
|
85
|
+
encoding: 'none'
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
const subscriptionPayload = {
|
|
89
|
+
userId: payload?.user_id,
|
|
90
|
+
anonymousId: payload?.anonymous_id,
|
|
91
|
+
traits: {
|
|
92
|
+
...payload?.traits
|
|
93
|
+
},
|
|
94
|
+
context: {
|
|
95
|
+
messaging_subscriptions,
|
|
96
|
+
externalIds
|
|
97
|
+
},
|
|
98
|
+
integrations: {
|
|
99
|
+
All: false
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
if (!settings.endpoint || !(settings.endpoint in properties_1.SEGMENT_ENDPOINTS)) {
|
|
103
|
+
throw errors_1.InvalidEndpointSelectedThrowableError;
|
|
104
|
+
}
|
|
105
|
+
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
106
|
+
console.log('payload', JSON.stringify(subscriptionPayload, null, 2));
|
|
107
|
+
return request(`${selectedSegmentEndpoint}/identify`, {
|
|
108
|
+
method: 'POST',
|
|
109
|
+
json: subscriptionPayload,
|
|
110
|
+
headers: {
|
|
111
|
+
authorization: helperFunctions_1.generateSegmentAPIAuthHeaders(payload.engage_space)
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
exports.default = action;
|
|
117
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendSubscription/index.ts"],"names":[],"mappings":";;AAGA,8DAW8B;AAC9B,sCAAyG;AACzG,wDAAkE;AAClE,8CAAiD;AAajD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,gIAAgI;IAClI,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,YAAY,EAAZ,iCAAY;QACZ,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QAEZ,MAAM,EAAN,2BAAM;QACN,KAAK,EAAL,0BAAK;QACL,KAAK,EAAL,0BAAK;QACL,yBAAyB,EAAzB,8CAAyB;QACzB,uBAAuB,EAAvB,4CAAuB;QACvB,4BAA4B,EAA5B,iDAA4B;QAC5B,kBAAkB,EAAlB,uCAAkB;KACnB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAC7C,MAAM,+CAAsC,CAAA;SAC7C;QAED,MAAM,SAAS,GAAG,CAAC,kBAA6C,EAAU,EAAE;YAC1E,IAAI,kBAAkB,KAAK,MAAM,IAAI,kBAAkB,KAAK,YAAY,EAAE;gBACxE,OAAO,YAAY,CAAA;aACpB;YACD,IAAI,kBAAkB,KAAK,OAAO,IAAI,kBAAkB,KAAK,cAAc,EAAE;gBAC3E,OAAO,cAAc,CAAA;aACtB;YACD,OAAO,mBAAmB,CAAA;QAC5B,CAAC,CAAA;QAED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CAAC,CAAC,CAAC,CAAA;QACpE,OAAO,OAAO,CAAC,GAAG,uBAAuB,WAAW,EAAE;YACpD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,mBAAmB;YACzB,OAAO,EAAE;gBACP,aAAa,EAAE,+CAA6B,CAAC,OAAO,CAAC,YAAY,CAAC;aACnE;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const syncAudience_1 = __importDefault(require("./syncAudience"));
|
|
7
7
|
const destination = {
|
|
8
|
-
name: 'The Trade Desk
|
|
8
|
+
name: 'The Trade Desk Crm',
|
|
9
9
|
slug: 'actions-the-trade-desk-crm',
|
|
10
10
|
mode: 'cloud',
|
|
11
11
|
authentication: {
|
|
@@ -45,6 +45,10 @@ const destination = {
|
|
|
45
45
|
full_audience_sync: false
|
|
46
46
|
},
|
|
47
47
|
async getAudience(request, getAudienceInput) {
|
|
48
|
+
const statsClient = getAudienceInput?.statsContext?.statsClient;
|
|
49
|
+
if (statsClient) {
|
|
50
|
+
statsClient.incr('actions-webhook-audiences.getAudience', 1, getAudienceInput.statsContext?.tags);
|
|
51
|
+
}
|
|
48
52
|
const getAudienceUrl = getAudienceInput.settings.getAudienceUrl;
|
|
49
53
|
if (!getAudienceUrl) {
|
|
50
54
|
throw new actions_core_1.IntegrationError('Missing get audience url value', 'MISSING_REQUIRED_FIELD', 400);
|
|
@@ -57,8 +61,14 @@ const destination = {
|
|
|
57
61
|
[externalIdKey]: getAudienceInput.externalId
|
|
58
62
|
}
|
|
59
63
|
});
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
let jsonOutput;
|
|
65
|
+
try {
|
|
66
|
+
jsonOutput = await response.json();
|
|
67
|
+
if (!jsonOutput[externalIdKey]) {
|
|
68
|
+
throw new actions_core_1.IntegrationError(`Missing ${externalIdKey} in response`, 'INVALID_RESPONSE', 400);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
62
72
|
throw new actions_core_1.IntegrationError('Invalid response from get audience request', 'INVALID_RESPONSE', 400);
|
|
63
73
|
}
|
|
64
74
|
return {
|
|
@@ -67,6 +77,10 @@ const destination = {
|
|
|
67
77
|
},
|
|
68
78
|
async createAudience(request, createAudienceInput) {
|
|
69
79
|
const audienceName = createAudienceInput.audienceName;
|
|
80
|
+
const statsClient = createAudienceInput?.statsContext?.statsClient;
|
|
81
|
+
if (statsClient) {
|
|
82
|
+
statsClient.incr('actions-webhook-audiences.createAudience', 1, createAudienceInput.statsContext?.tags);
|
|
83
|
+
}
|
|
70
84
|
if (audienceName?.length == 0) {
|
|
71
85
|
throw new actions_core_1.IntegrationError('Missing audience name value', 'MISSING_REQUIRED_FIELD', 400);
|
|
72
86
|
}
|
|
@@ -105,7 +119,11 @@ const destination = {
|
|
|
105
119
|
actions: {
|
|
106
120
|
send: {
|
|
107
121
|
...send_1.default,
|
|
108
|
-
perform: (request, { payload, settings, audienceSettings }) => {
|
|
122
|
+
perform: (request, { payload, settings, audienceSettings, statsContext }) => {
|
|
123
|
+
const statsClient = statsContext?.statsClient;
|
|
124
|
+
if (statsClient) {
|
|
125
|
+
statsClient.incr('actions-webhook-audiences.send', 1, statsContext?.tags);
|
|
126
|
+
}
|
|
109
127
|
const extras = parseExtraSettingsJson(audienceSettings?.extras);
|
|
110
128
|
return send_1.default.perform(request, {
|
|
111
129
|
audienceSettings,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/webhook-audiences/index.ts"],"names":[],"mappings":";;;;;AAGA,2DAAkC;AAClC,wDAAwD;AACxD,mCAAmC;AACnC,MAAM,aAAa,GAAG,YAAY,CAAA;AAClC,MAAM,eAAe,GAAG,cAAc,CAAA;AAEtC,MAAM,WAAW,GAA8D;IAC7E,IAAI,E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B,CAAC,UAAU;iBAC7C;aACF,CAAC,CAAA;YAEF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/webhook-audiences/index.ts"],"names":[],"mappings":";;;;;AAGA,2DAAkC;AAClC,wDAAwD;AACxD,mCAAmC;AACnC,MAAM,aAAa,GAAG,YAAY,CAAA;AAClC,MAAM,eAAe,GAAG,cAAc,CAAA;AAEtC,MAAM,WAAW,GAA8D;IAC7E,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE,OAAO;IACb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,eAAe;gBACtB,WAAW,EACT,mLAAmL;aACtL;YACD,iBAAiB,EAAE;gBACjB,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,4CAA4C;gBACnD,WAAW,EAAE,qDAAqD,eAAe,kGAAkG,aAAa,IAAI;aACrM;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,yCAAyC;gBAChD,WAAW,EAAE,qDAAqD,aAAa,+FAA+F,aAAa,IAAI;aAChM;SACF;KACF;IACD,cAAc,EAAE;QACd,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,0DAA0D,aAAa,UAAU,eAAe,iBAAiB;YACxH,WAAW,EAAE,yDAAyD,aAAa,UAAU,eAAe,iBAAiB;SAC9H;KACF;IACD,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,kBAAkB,EAAE,KAAK;SAC1B;QACD,KAAK,CAAC,WAAW,CAAC,OAAO,EAAE,gBAAgB;YACzC,MAAM,WAAW,GAAG,gBAAgB,EAAE,YAAY,EAAE,WAAW,CAAA;YAC/D,IAAI,WAAW,EAAE;gBACf,WAAW,CAAC,IAAI,CAAC,uCAAuC,EAA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CAAC,IAAI;gCACT,GAAG,MAAM;6BACV;yBACF,CAAA;oBACH,CAAC,CAAC;oBACF,QAAQ;iBACT,CAAC,CAAA;YACJ,CAAC;SACF;KACF;CACF,CAAA;AAED,MAAM,sBAAsB,GAAG,CAAC,iBAA0B,EAAU,EAAE;IACpE,IAAI,aAAa,GAAG,EAAE,CAAA;IACtB,IAAI,iBAAiB,EAAE;QACrB,IAAI;YACF,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAA;SAC9C;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,IAAI,+BAAgB,CAAC,4BAA4B,EAAE,sBAAsB,EAAE,GAAG,CAAC,CAAA;SACtF;KACF;IACD,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA;AAED,kBAAe,WAAW,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.205.
|
|
4
|
+
"version": "3.205.3-staging.305+b4bac29e",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"__tests__/__helpers__/"
|
|
78
78
|
]
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "b4bac29e98c966d6a597682dade51f5bdf5bd0fb"
|
|
81
81
|
}
|