@segment/action-destinations 3.219.0-staging.0 → 3.220.0-54bb01e8
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/ambee/subscribeUserToCampaign/index.js +4 -2
- package/dist/destinations/ambee/subscribeUserToCampaign/index.js.map +1 -1
- package/dist/destinations/braze-cohorts/syncAudiences/index.js +6 -3
- package/dist/destinations/braze-cohorts/syncAudiences/index.js.map +1 -1
- package/dist/destinations/cordial/identities-fields.d.ts +1 -1
- package/dist/destinations/cordial/identities-fields.js +5 -3
- package/dist/destinations/cordial/identities-fields.js.map +1 -1
- package/dist/destinations/dynamic-yield-audiences/syncAudience/index.js +10 -5
- package/dist/destinations/dynamic-yield-audiences/syncAudience/index.js.map +1 -1
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +0 -1
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +1 -1
- package/dist/destinations/google-sheets/postSheet/index.js +2 -1
- package/dist/destinations/google-sheets/postSheet/index.js.map +1 -1
- package/dist/destinations/hubspot/upsertContact/index.d.ts +1 -1
- package/dist/destinations/hubspot/upsertContact/index.js +28 -8
- package/dist/destinations/hubspot/upsertContact/index.js.map +1 -1
- package/dist/destinations/index.js +2 -2
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/klaviyo/index.js +5 -9
- package/dist/destinations/klaviyo/index.js.map +1 -1
- package/dist/destinations/klaviyo/upsertProfile/generated-types.d.ts +1 -21
- package/dist/destinations/klaviyo/upsertProfile/index.js +5 -150
- package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
- package/dist/destinations/launchdarkly-audiences/syncAudience/index.js +12 -6
- package/dist/destinations/launchdarkly-audiences/syncAudience/index.js.map +1 -1
- package/dist/destinations/linkedin-audiences/updateAudience/index.js +8 -4
- package/dist/destinations/linkedin-audiences/updateAudience/index.js.map +1 -1
- package/dist/destinations/livelike-cloud/trackEvent/index.js +2 -1
- package/dist/destinations/livelike-cloud/trackEvent/index.js.map +1 -1
- package/dist/destinations/loops/createOrUpdateContact/generated-types.d.ts +1 -1
- package/dist/destinations/loops/createOrUpdateContact/index.js +2 -2
- package/dist/destinations/loops/createOrUpdateContact/index.js.map +1 -1
- package/dist/destinations/optimizely-advanced-audience-targeting/syncAudience/index.js +8 -4
- package/dist/destinations/optimizely-advanced-audience-targeting/syncAudience/index.js.map +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js +2 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js.map +1 -1
- package/dist/destinations/outfunnel/forwardGroupEvent/index.js +10 -5
- package/dist/destinations/outfunnel/forwardGroupEvent/index.js.map +1 -1
- package/dist/destinations/outfunnel/forwardIdentifyEvent/index.js +8 -4
- package/dist/destinations/outfunnel/forwardIdentifyEvent/index.js.map +1 -1
- package/dist/destinations/outfunnel/forwardTrackEvent/index.js +8 -4
- package/dist/destinations/outfunnel/forwardTrackEvent/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 +1 -0
- package/dist/destinations/segment-profiles/sendGroup/index.js +3 -1
- package/dist/destinations/segment-profiles/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendIdentify/generated-types.d.ts +1 -0
- package/dist/destinations/segment-profiles/sendIdentify/index.js +3 -1
- package/dist/destinations/segment-profiles/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendSubscription/generated-types.d.ts +1 -0
- package/dist/destinations/segment-profiles/sendSubscription/index.js +4 -1
- package/dist/destinations/segment-profiles/sendSubscription/index.js.map +1 -1
- package/dist/destinations/the-trade-desk-crm/functions.js +7 -1
- package/dist/destinations/the-trade-desk-crm/functions.js.map +1 -1
- package/dist/destinations/the-trade-desk-crm/index.js +1 -1
- package/dist/destinations/tiktok-audiences/properties.js +8 -4
- package/dist/destinations/tiktok-audiences/properties.js.map +1 -1
- package/dist/destinations/trackey/generated-types.d.ts +3 -0
- package/dist/destinations/trackey/generated-types.js.map +1 -0
- package/dist/destinations/trackey/group.types.d.ts +11 -0
- package/dist/destinations/{yahoo-audiences/createSegment/generated-types.js → trackey/group.types.js} +1 -1
- package/dist/destinations/trackey/group.types.js.map +1 -0
- package/dist/destinations/trackey/identify.types.d.ts +11 -0
- package/dist/destinations/{klaviyo/trackEvent/generated-types.js → trackey/identify.types.js} +1 -1
- package/dist/destinations/trackey/identify.types.js.map +1 -0
- package/dist/destinations/trackey/index.d.ts +4 -0
- package/dist/destinations/trackey/index.js +206 -0
- package/dist/destinations/trackey/index.js.map +1 -0
- package/dist/destinations/trackey/track.types.d.ts +12 -0
- package/dist/destinations/{yahoo-audiences/createCustomerNode/generated-types.js → trackey/track.types.js} +1 -1
- package/dist/destinations/trackey/track.types.js.map +1 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/index.js +6 -3
- package/dist/destinations/twilio-studio/triggerStudioFlow/index.js.map +1 -1
- package/dist/destinations/webhook/send/index.js +3 -1
- package/dist/destinations/webhook/send/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/generated-types.d.ts +2 -4
- package/dist/destinations/yahoo-audiences/index.js +47 -42
- package/dist/destinations/yahoo-audiences/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/types.d.ts +6 -0
- package/dist/destinations/yahoo-audiences/updateSegment/generated-types.d.ts +4 -5
- package/dist/destinations/yahoo-audiences/updateSegment/index.d.ts +2 -2
- package/dist/destinations/yahoo-audiences/updateSegment/index.js +66 -65
- package/dist/destinations/yahoo-audiences/updateSegment/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/utils-rt.d.ts +3 -3
- package/dist/destinations/yahoo-audiences/utils-rt.js +28 -20
- package/dist/destinations/yahoo-audiences/utils-rt.js.map +1 -1
- package/dist/destinations/yahoo-audiences/utils-tax.d.ts +3 -5
- package/dist/destinations/yahoo-audiences/utils-tax.js +28 -17
- package/dist/destinations/yahoo-audiences/utils-tax.js.map +1 -1
- package/package.json +1 -1
- package/dist/destinations/klaviyo/config.d.ts +0 -1
- package/dist/destinations/klaviyo/config.js +0 -5
- package/dist/destinations/klaviyo/config.js.map +0 -1
- package/dist/destinations/klaviyo/orderCompleted/generated-types.d.ts +0 -22
- package/dist/destinations/klaviyo/orderCompleted/generated-types.js.map +0 -1
- package/dist/destinations/klaviyo/orderCompleted/index.d.ts +0 -5
- package/dist/destinations/klaviyo/orderCompleted/index.js +0 -152
- package/dist/destinations/klaviyo/orderCompleted/index.js.map +0 -1
- package/dist/destinations/klaviyo/trackEvent/generated-types.d.ts +0 -16
- package/dist/destinations/klaviyo/trackEvent/generated-types.js.map +0 -1
- package/dist/destinations/klaviyo/trackEvent/index.d.ts +0 -5
- package/dist/destinations/klaviyo/trackEvent/index.js +0 -118
- package/dist/destinations/klaviyo/trackEvent/index.js.map +0 -1
- package/dist/destinations/klaviyo/types.d.ts +0 -61
- package/dist/destinations/klaviyo/types.js +0 -8
- package/dist/destinations/klaviyo/types.js.map +0 -1
- package/dist/destinations/yahoo-audiences/createCustomerNode/generated-types.d.ts +0 -4
- package/dist/destinations/yahoo-audiences/createCustomerNode/generated-types.js.map +0 -1
- package/dist/destinations/yahoo-audiences/createCustomerNode/index.d.ts +0 -5
- package/dist/destinations/yahoo-audiences/createCustomerNode/index.js +0 -33
- package/dist/destinations/yahoo-audiences/createCustomerNode/index.js.map +0 -1
- package/dist/destinations/yahoo-audiences/createSegment/generated-types.d.ts +0 -6
- package/dist/destinations/yahoo-audiences/createSegment/generated-types.js.map +0 -1
- package/dist/destinations/yahoo-audiences/createSegment/index.d.ts +0 -5
- package/dist/destinations/yahoo-audiences/createSegment/index.js +0 -45
- package/dist/destinations/yahoo-audiences/createSegment/index.js.map +0 -1
- package/dist/destinations/yahoo-audiences/utils.d.ts +0 -4
- package/dist/destinations/yahoo-audiences/utils.js +0 -30
- package/dist/destinations/yahoo-audiences/utils.js.map +0 -1
- /package/dist/destinations/{klaviyo/orderCompleted → trackey}/generated-types.js +0 -0
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_tax_1 = require("../utils-tax");
|
|
4
|
-
const utils_tax_2 = require("../utils-tax");
|
|
5
|
-
const action = {
|
|
6
|
-
title: 'Create SEGMENT sub-node in Yahoo taxonomy',
|
|
7
|
-
description: 'Use this action to generate SEGMENT sub-node within CUSTOMER node in Yahoo taxonomy',
|
|
8
|
-
defaultSubscription: 'event = "Audience Entered" and event = "Audience Exited"',
|
|
9
|
-
fields: {
|
|
10
|
-
segment_audience_key: {
|
|
11
|
-
label: 'Audience Key',
|
|
12
|
-
description: 'Provide audience key. This maps to the "Name" of the Segment node in Yahoo taxonomy',
|
|
13
|
-
type: 'string',
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
segment_audience_id: {
|
|
17
|
-
label: 'Audience Id',
|
|
18
|
-
description: 'Provide audience Id (aud_...) from audience URL in Segment Engage. This maps to the "Id" of the Segment node in Yahoo taxonomy',
|
|
19
|
-
type: 'string',
|
|
20
|
-
required: true
|
|
21
|
-
},
|
|
22
|
-
engage_space_id: {
|
|
23
|
-
label: 'Engage Space Id',
|
|
24
|
-
description: 'Provide Engage Space Id found in Unify > Settings > API Access. This maps to the "Id" and "Name" of the top-level Customer node in Yahoo taxonomy and specifies the parent node for your Segment node in Yahoo taxonomy',
|
|
25
|
-
type: 'string',
|
|
26
|
-
required: false
|
|
27
|
-
},
|
|
28
|
-
customer_desc: {
|
|
29
|
-
label: 'Space Description',
|
|
30
|
-
description: 'Provide the description for Segment node in Yahoo taxonomy. This must be less then 1000 characters',
|
|
31
|
-
type: 'string',
|
|
32
|
-
required: false
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
perform: async (request, { payload, settings }) => {
|
|
36
|
-
const tx_creds = {
|
|
37
|
-
tx_client_key: settings.taxonomy_client_key,
|
|
38
|
-
tx_client_secret: settings.taxonomy_client_secret
|
|
39
|
-
};
|
|
40
|
-
const body_form_data = utils_tax_1.gen_segment_subtaxonomy_payload(payload);
|
|
41
|
-
return await utils_tax_2.update_taxonomy(String(payload.engage_space_id), tx_creds, request, body_form_data);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.default = action;
|
|
45
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yahoo-audiences/createSegment/index.ts"],"names":[],"mappings":";;AAIA,4CAA8D;AAC9D,4CAA8C;AAG9C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,2CAA2C;IAClD,WAAW,EAAE,qFAAqF;IAClG,mBAAmB,EAAE,0DAA0D;IAE/E,MAAM,EAAE;QACN,oBAAoB,EAAE;YACpB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,qFAAqF;YAClG,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,mBAAmB,EAAE;YACnB,KAAK,EAAE,aAAa;YACpB,WAAW,EACT,gIAAgI;YAClI,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,eAAe,EAAE;YACf,KAAK,EAAE,iBAAiB;YACxB,WAAW,EACT,yNAAyN;YAC3N,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;QACD,aAAa,EAAE;YACb,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,oGAAoG;YACjH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAChD,MAAM,QAAQ,GAAG;YACf,aAAa,EAAE,QAAQ,CAAC,mBAAmB;YAC3C,gBAAgB,EAAE,QAAQ,CAAC,sBAAsB;SAClD,CAAA;QAED,MAAM,cAAc,GAAG,2CAA+B,CAAC,OAAO,CAAC,CAAA;QAC/D,OAAO,MAAM,2BAAe,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,CAAC,CAAA;IAClG,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { RequestClient } from '@segment/actions-core';
|
|
2
|
-
import { CredsObj } from './types';
|
|
3
|
-
export declare function gen_random_id(length: number): string;
|
|
4
|
-
export declare function update_taxonomy(engage_space_id: string, tx_creds: CredsObj, request: RequestClient, body_form_data: string): Promise<any>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.update_taxonomy = exports.gen_random_id = void 0;
|
|
4
|
-
const utils_tax_1 = require("./utils-tax");
|
|
5
|
-
function gen_random_id(length) {
|
|
6
|
-
const pattern = 'abcdefghijklmnopqrstuvwxyz123456789';
|
|
7
|
-
const result = [];
|
|
8
|
-
for (let i = 0; i < length; i++) {
|
|
9
|
-
result.push(pattern[Math.floor(Math.random() * pattern.length)]);
|
|
10
|
-
}
|
|
11
|
-
return result.join('');
|
|
12
|
-
}
|
|
13
|
-
exports.gen_random_id = gen_random_id;
|
|
14
|
-
async function update_taxonomy(engage_space_id, tx_creds, request, body_form_data) {
|
|
15
|
-
const tx_client_secret = tx_creds.tx_client_key;
|
|
16
|
-
const tx_client_key = tx_creds.tx_client_secret;
|
|
17
|
-
const url = `https://datax.yahooapis.com/v1/taxonomy/append${engage_space_id.length > 0 ? '/' + engage_space_id : ''}`;
|
|
18
|
-
const oauth1_auth_string = utils_tax_1.gen_oauth1_signature(tx_client_key, tx_client_secret, 'PUT', url);
|
|
19
|
-
const add_segment_node = await request(url, {
|
|
20
|
-
method: 'PUT',
|
|
21
|
-
body: body_form_data,
|
|
22
|
-
headers: {
|
|
23
|
-
Authorization: oauth1_auth_string,
|
|
24
|
-
'Content-Type': 'multipart/form-data; boundary=SEGMENT-DATA'
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
return await add_segment_node.json();
|
|
28
|
-
}
|
|
29
|
-
exports.update_taxonomy = update_taxonomy;
|
|
30
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/yahoo-audiences/utils.ts"],"names":[],"mappings":";;;AAEA,2CAAkD;AAQlD,SAAgB,aAAa,CAAC,MAAc;IAC1C,MAAM,OAAO,GAAG,qCAAqC,CAAA;IACrD,MAAM,MAAM,GAAG,EAAE,CAAA;IACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAC/B,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;KACjE;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxB,CAAC;AAPD,sCAOC;AAEM,KAAK,UAAU,eAAe,CACnC,eAAuB,EACvB,QAAkB,EAClB,OAAsB,EACtB,cAAsB;IAEtB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAA;IAC/C,MAAM,aAAa,GAAG,QAAQ,CAAC,gBAAgB,CAAA;IAC/C,MAAM,GAAG,GAAG,iDAAiD,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;IACtH,MAAM,kBAAkB,GAAG,gCAAoB,CAAC,aAAa,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAAG,CAAC,CAAA;IAE5F,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,GAAG,EAAE;QAC1C,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACP,aAAa,EAAE,kBAAkB;YACjC,cAAc,EAAE,4CAA4C;SAC7D;KACF,CAAC,CAAA;IAEF,OAAO,MAAM,gBAAgB,CAAC,IAAI,EAAE,CAAA;AACtC,CAAC;AArBD,0CAqBC"}
|
|
File without changes
|