@segment/action-destinations 3.332.1-staging.7 → 3.332.2-staging.0
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/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
- package/dist/destinations/klaviyo/addProfileToList/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/addProfileToList/index.js +2 -1
- package/dist/destinations/klaviyo/addProfileToList/index.js.map +1 -1
- package/dist/destinations/klaviyo/functions.js +1 -1
- package/dist/destinations/klaviyo/functions.js.map +1 -1
- package/dist/destinations/klaviyo/properties.d.ts +1 -0
- package/dist/destinations/klaviyo/properties.js +9 -1
- package/dist/destinations/klaviyo/properties.js.map +1 -1
- package/dist/destinations/klaviyo/upsertProfile/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/upsertProfile/index.js +4 -2
- package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.d.ts +0 -1
- package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js +0 -184
- package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js.map +0 -1
- package/dist/destinations/engage/sendgrid/Profile.d.ts +0 -6
- package/dist/destinations/engage/sendgrid/Profile.js +0 -3
- package/dist/destinations/engage/sendgrid/Profile.js.map +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +0 -21
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +0 -174
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +0 -1
- package/dist/destinations/klaviyo/removeProfileToList/generated-types.d.ts +0 -4
- package/dist/destinations/klaviyo/removeProfileToList/generated-types.js +0 -3
- package/dist/destinations/klaviyo/removeProfileToList/generated-types.js.map +0 -1
- package/dist/destinations/klaviyo/removeProfileToList/index.d.ts +0 -5
- package/dist/destinations/klaviyo/removeProfileToList/index.js +0 -43
- package/dist/destinations/klaviyo/removeProfileToList/index.js.map +0 -1
- package/dist/destinations/mixpanel/utils.d.ts +0 -13
- package/dist/destinations/mixpanel/utils.js +0 -117
- package/dist/destinations/mixpanel/utils.js.map +0 -1
- package/dist/destinations/movable-ink/categoryView/generated-types.d.ts +0 -22
- package/dist/destinations/movable-ink/categoryView/generated-types.js +0 -3
- package/dist/destinations/movable-ink/categoryView/generated-types.js.map +0 -1
- package/dist/destinations/movable-ink/categoryView/index.d.ts +0 -5
- package/dist/destinations/movable-ink/categoryView/index.js +0 -43
- package/dist/destinations/movable-ink/categoryView/index.js.map +0 -1
- package/dist/destinations/movable-ink/conversion/generated-types.d.ts +0 -20
- package/dist/destinations/movable-ink/conversion/generated-types.js +0 -3
- package/dist/destinations/movable-ink/conversion/generated-types.js.map +0 -1
- package/dist/destinations/movable-ink/conversion/index.d.ts +0 -5
- package/dist/destinations/movable-ink/conversion/index.js +0 -45
- package/dist/destinations/movable-ink/conversion/index.js.map +0 -1
- package/dist/destinations/movable-ink/fields.d.ts +0 -21
- package/dist/destinations/movable-ink/fields.js +0 -236
- package/dist/destinations/movable-ink/fields.js.map +0 -1
- package/dist/destinations/movable-ink/identify/generated-types.d.ts +0 -7
- package/dist/destinations/movable-ink/identify/generated-types.js +0 -3
- package/dist/destinations/movable-ink/identify/generated-types.js.map +0 -1
- package/dist/destinations/movable-ink/identify/index.d.ts +0 -5
- package/dist/destinations/movable-ink/identify/index.js +0 -32
- package/dist/destinations/movable-ink/identify/index.js.map +0 -1
- package/dist/destinations/movable-ink/productAdded/generated-types.d.ts +0 -22
- package/dist/destinations/movable-ink/productAdded/generated-types.js +0 -3
- package/dist/destinations/movable-ink/productAdded/generated-types.js.map +0 -1
- package/dist/destinations/movable-ink/productAdded/index.d.ts +0 -5
- package/dist/destinations/movable-ink/productAdded/index.js +0 -43
- package/dist/destinations/movable-ink/productAdded/index.js.map +0 -1
- package/dist/destinations/movable-ink/productViewed/generated-types.d.ts +0 -21
- package/dist/destinations/movable-ink/productViewed/generated-types.js +0 -3
- package/dist/destinations/movable-ink/productViewed/generated-types.js.map +0 -1
- package/dist/destinations/movable-ink/productViewed/index.d.ts +0 -5
- package/dist/destinations/movable-ink/productViewed/index.js +0 -43
- package/dist/destinations/movable-ink/productViewed/index.js.map +0 -1
- package/dist/destinations/movable-ink/search/generated-types.d.ts +0 -12
- package/dist/destinations/movable-ink/search/generated-types.js +0 -3
- package/dist/destinations/movable-ink/search/generated-types.js.map +0 -1
- package/dist/destinations/movable-ink/search/index.d.ts +0 -5
- package/dist/destinations/movable-ink/search/index.js +0 -43
- package/dist/destinations/movable-ink/search/index.js.map +0 -1
- package/dist/destinations/movable-ink/sendCustomEvent/generated-types.d.ts +0 -25
- package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js +0 -3
- package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js.map +0 -1
- package/dist/destinations/movable-ink/sendCustomEvent/index.d.ts +0 -5
- package/dist/destinations/movable-ink/sendCustomEvent/index.js +0 -48
- package/dist/destinations/movable-ink/sendCustomEvent/index.js.map +0 -1
- package/dist/destinations/trackey/group.types.d.ts +0 -11
- package/dist/destinations/trackey/group.types.js +0 -3
- package/dist/destinations/trackey/group.types.js.map +0 -1
- package/dist/destinations/trackey/identify.types.d.ts +0 -11
- package/dist/destinations/trackey/identify.types.js +0 -3
- package/dist/destinations/trackey/identify.types.js.map +0 -1
- package/dist/destinations/trackey/track.types.d.ts +0 -12
- package/dist/destinations/trackey/track.types.js +0 -3
- package/dist/destinations/trackey/track.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 +0 -3
- 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 +0 -3
- 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
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
-
const fields_1 = require("../fields");
|
|
5
|
-
const action = {
|
|
6
|
-
title: 'Identify',
|
|
7
|
-
description: 'Send an Identify event to Movable Ink, to assocate a userId with an anonymousId',
|
|
8
|
-
defaultSubscription: 'type = "identify"',
|
|
9
|
-
fields: {
|
|
10
|
-
movable_ink_url: fields_1.movable_ink_url,
|
|
11
|
-
user_id: fields_1.user_id,
|
|
12
|
-
anonymous_id: fields_1.anonymous_id,
|
|
13
|
-
timestamp: fields_1.timestamp,
|
|
14
|
-
timezone: fields_1.timezone
|
|
15
|
-
},
|
|
16
|
-
perform: (request, { settings, payload }) => {
|
|
17
|
-
const url = payload?.movable_ink_url ?? settings?.movable_ink_url;
|
|
18
|
-
if (!url)
|
|
19
|
-
throw new actions_core_1.IntegrationError('"Movable Ink URL" setting or "Movable Ink URL" field must be populated', 'MISSING_DESTINATION_URL', 400);
|
|
20
|
-
return request(url, {
|
|
21
|
-
method: 'POST',
|
|
22
|
-
json: {
|
|
23
|
-
user_id: payload.user_id,
|
|
24
|
-
anonymous_id: payload.anonymous_id,
|
|
25
|
-
timestamp: payload.timestamp,
|
|
26
|
-
timezone: payload.timezone
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports.default = action;
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/identify/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAG1E,sCAAuF;AAEvF,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,iFAAiF;IAC9F,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,eAAe,EAAf,wBAAe;QACf,OAAO,EAAP,gBAAO;QACP,YAAY,EAAZ,qBAAY;QACZ,SAAS,EAAT,kBAAS;QACT,QAAQ,EAAR,iBAAQ;KACT;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAE,eAAe,CAAA;QACjE,IAAI,CAAC,GAAG;YACN,MAAM,IAAI,+BAAgB,CACxB,wEAAwE,EACxE,yBAAyB,EACzB,GAAG,CACJ,CAAA;QAEH,OAAO,OAAO,CAAC,GAAG,EAAE;YAClB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;aAC3B;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
movable_ink_url?: string;
|
|
3
|
-
user_id?: string;
|
|
4
|
-
anonymous_id?: string;
|
|
5
|
-
timestamp: string | number;
|
|
6
|
-
timezone?: string;
|
|
7
|
-
product_with_quantity: {
|
|
8
|
-
id: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
price?: number;
|
|
11
|
-
url?: string;
|
|
12
|
-
quantity?: number;
|
|
13
|
-
[k: string]: unknown;
|
|
14
|
-
};
|
|
15
|
-
categories_required_false?: {
|
|
16
|
-
id: string;
|
|
17
|
-
url?: string;
|
|
18
|
-
}[];
|
|
19
|
-
meta?: {
|
|
20
|
-
[k: string]: unknown;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/productAdded/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
7
|
-
const fields_1 = require("../fields");
|
|
8
|
-
const omit_1 = __importDefault(require("lodash/omit"));
|
|
9
|
-
const action = {
|
|
10
|
-
title: 'Product Added',
|
|
11
|
-
description: 'Send a "Cart Add" event to Movable Ink',
|
|
12
|
-
defaultSubscription: 'type = "track" and event = "Product Added"',
|
|
13
|
-
fields: {
|
|
14
|
-
movable_ink_url: fields_1.movable_ink_url,
|
|
15
|
-
user_id: fields_1.user_id,
|
|
16
|
-
anonymous_id: fields_1.anonymous_id,
|
|
17
|
-
timestamp: fields_1.timestamp,
|
|
18
|
-
timezone: fields_1.timezone,
|
|
19
|
-
product_with_quantity: fields_1.product_with_quantity,
|
|
20
|
-
categories_required_false: fields_1.categories_required_false,
|
|
21
|
-
meta: fields_1.meta
|
|
22
|
-
},
|
|
23
|
-
perform: (request, { settings, payload }) => {
|
|
24
|
-
const url = payload?.movable_ink_url ?? settings?.movable_ink_url;
|
|
25
|
-
if (!url)
|
|
26
|
-
throw new actions_core_1.IntegrationError('"Movable Ink URL" setting or "Movable Ink URL" field must be populated', 'MISSING_DESTINATION_URL', 400);
|
|
27
|
-
return request(url, {
|
|
28
|
-
method: 'POST',
|
|
29
|
-
json: {
|
|
30
|
-
event_name: 'Cart Add',
|
|
31
|
-
user_id: payload.user_id,
|
|
32
|
-
anonymous_id: payload.anonymous_id,
|
|
33
|
-
timestamp: payload.timestamp,
|
|
34
|
-
timezone: payload.timezone,
|
|
35
|
-
product: payload.product_with_quantity,
|
|
36
|
-
categories: payload.categories_required_false,
|
|
37
|
-
metadata: { ...omit_1.default(payload.meta, ['product', 'categories']) }
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
exports.default = action;
|
|
43
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/productAdded/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,sCASkB;AAClB,uDAA8B;AAE9B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,wCAAwC;IACrD,mBAAmB,EAAE,4CAA4C;IACjE,MAAM,EAAE;QACN,eAAe,EAAf,wBAAe;QACf,OAAO,EAAP,gBAAO;QACP,YAAY,EAAZ,qBAAY;QACZ,SAAS,EAAT,kBAAS;QACT,QAAQ,EAAR,iBAAQ;QACR,qBAAqB,EAArB,8BAAqB;QACrB,yBAAyB,EAAzB,kCAAyB;QACzB,IAAI,EAAJ,aAAI;KACL;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAE,eAAe,CAAA;QACjE,IAAI,CAAC,GAAG;YACN,MAAM,IAAI,+BAAgB,CACxB,wEAAwE,EACxE,yBAAyB,EACzB,GAAG,CACJ,CAAA;QAEH,OAAO,OAAO,CAAC,GAAG,EAAE;YAClB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,UAAU,EAAE,UAAU;gBACtB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,OAAO,EAAE,OAAO,CAAC,qBAAqB;gBACtC,UAAU,EAAE,OAAO,CAAC,yBAAyB;gBAC7C,QAAQ,EAAE,EAAE,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,EAAE;aAC/D;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
movable_ink_url?: string;
|
|
3
|
-
user_id?: string;
|
|
4
|
-
anonymous_id?: string;
|
|
5
|
-
timestamp: string | number;
|
|
6
|
-
timezone?: string;
|
|
7
|
-
product: {
|
|
8
|
-
id: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
price?: number;
|
|
11
|
-
url?: string;
|
|
12
|
-
[k: string]: unknown;
|
|
13
|
-
};
|
|
14
|
-
categories_required_false?: {
|
|
15
|
-
id: string;
|
|
16
|
-
url?: string;
|
|
17
|
-
}[];
|
|
18
|
-
meta?: {
|
|
19
|
-
[k: string]: unknown;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/productViewed/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
7
|
-
const fields_1 = require("../fields");
|
|
8
|
-
const omit_1 = __importDefault(require("lodash/omit"));
|
|
9
|
-
const action = {
|
|
10
|
-
title: 'Product Viewed',
|
|
11
|
-
description: 'Send a "Product Viewed" event to Movable Ink',
|
|
12
|
-
defaultSubscription: 'type = "track" and event = "Product Viewed"',
|
|
13
|
-
fields: {
|
|
14
|
-
movable_ink_url: fields_1.movable_ink_url,
|
|
15
|
-
user_id: fields_1.user_id,
|
|
16
|
-
anonymous_id: fields_1.anonymous_id,
|
|
17
|
-
timestamp: fields_1.timestamp,
|
|
18
|
-
timezone: fields_1.timezone,
|
|
19
|
-
product: fields_1.product,
|
|
20
|
-
categories_required_false: fields_1.categories_required_false,
|
|
21
|
-
meta: fields_1.meta
|
|
22
|
-
},
|
|
23
|
-
perform: (request, { settings, payload }) => {
|
|
24
|
-
const url = payload?.movable_ink_url ?? settings?.movable_ink_url;
|
|
25
|
-
if (!url)
|
|
26
|
-
throw new actions_core_1.IntegrationError('"Movable Ink URL" setting or "Movable Ink URL" field must be populated', 'MISSING_DESTINATION_URL', 400);
|
|
27
|
-
return request(url, {
|
|
28
|
-
method: 'POST',
|
|
29
|
-
json: {
|
|
30
|
-
event_name: 'Product Viewed',
|
|
31
|
-
user_id: payload.user_id,
|
|
32
|
-
anonymous_id: payload.anonymous_id,
|
|
33
|
-
timestamp: payload.timestamp,
|
|
34
|
-
timezone: payload.timezone,
|
|
35
|
-
product: payload.product,
|
|
36
|
-
categories: payload.categories_required_false,
|
|
37
|
-
metadata: { ...omit_1.default(payload.meta, ['product', 'categories']) }
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
exports.default = action;
|
|
43
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/productViewed/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,sCASkB;AAClB,uDAA8B;AAE9B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,8CAA8C;IAC3D,mBAAmB,EAAE,6CAA6C;IAClE,MAAM,EAAE;QACN,eAAe,EAAf,wBAAe;QACf,OAAO,EAAP,gBAAO;QACP,YAAY,EAAZ,qBAAY;QACZ,SAAS,EAAT,kBAAS;QACT,QAAQ,EAAR,iBAAQ;QACR,OAAO,EAAP,gBAAO;QACP,yBAAyB,EAAzB,kCAAyB;QACzB,IAAI,EAAJ,aAAI;KACL;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAE,eAAe,CAAA;QACjE,IAAI,CAAC,GAAG;YACN,MAAM,IAAI,+BAAgB,CACxB,wEAAwE,EACxE,yBAAyB,EACzB,GAAG,CACJ,CAAA;QAEH,OAAO,OAAO,CAAC,GAAG,EAAE;YAClB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,UAAU,EAAE,gBAAgB;gBAC5B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,UAAU,EAAE,OAAO,CAAC,yBAAyB;gBAC7C,QAAQ,EAAE,EAAE,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,EAAE;aAC/D;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/search/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
7
|
-
const fields_1 = require("../fields");
|
|
8
|
-
const omit_1 = __importDefault(require("lodash/omit"));
|
|
9
|
-
const action = {
|
|
10
|
-
title: 'Search',
|
|
11
|
-
description: 'Send a "Search" event to Movable Ink',
|
|
12
|
-
defaultSubscription: 'type = "track" and event = "Products Searched"',
|
|
13
|
-
fields: {
|
|
14
|
-
movable_ink_url: fields_1.movable_ink_url,
|
|
15
|
-
user_id: fields_1.user_id,
|
|
16
|
-
anonymous_id: fields_1.anonymous_id,
|
|
17
|
-
timestamp: fields_1.timestamp,
|
|
18
|
-
timezone: fields_1.timezone,
|
|
19
|
-
query: fields_1.query,
|
|
20
|
-
query_url: fields_1.query_url,
|
|
21
|
-
meta: fields_1.meta
|
|
22
|
-
},
|
|
23
|
-
perform: (request, { settings, payload }) => {
|
|
24
|
-
const url = payload?.movable_ink_url ?? settings?.movable_ink_url;
|
|
25
|
-
if (!url)
|
|
26
|
-
throw new actions_core_1.IntegrationError('"Movable Ink URL" setting or "Movable Ink URL" field must be populated', 'MISSING_DESTINATION_URL', 400);
|
|
27
|
-
return request(url, {
|
|
28
|
-
method: 'POST',
|
|
29
|
-
json: {
|
|
30
|
-
event_name: 'Search',
|
|
31
|
-
user_id: payload.user_id,
|
|
32
|
-
anonymous_id: payload.anonymous_id,
|
|
33
|
-
timestamp: payload.timestamp,
|
|
34
|
-
timezone: payload.timezone,
|
|
35
|
-
query: payload.query,
|
|
36
|
-
url: payload.query_url,
|
|
37
|
-
metadata: { ...omit_1.default(payload.meta, ['query', 'url']) }
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
exports.default = action;
|
|
43
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/search/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,sCAA+G;AAC/G,uDAA8B;AAE9B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,sCAAsC;IACnD,mBAAmB,EAAE,gDAAgD;IACrE,MAAM,EAAE;QACN,eAAe,EAAf,wBAAe;QACf,OAAO,EAAP,gBAAO;QACP,YAAY,EAAZ,qBAAY;QACZ,SAAS,EAAT,kBAAS;QACT,QAAQ,EAAR,iBAAQ;QACR,KAAK,EAAL,cAAK;QACL,SAAS,EAAT,kBAAS;QACT,IAAI,EAAJ,aAAI;KACL;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAE,eAAe,CAAA;QACjE,IAAI,CAAC,GAAG;YACN,MAAM,IAAI,+BAAgB,CACxB,wEAAwE,EACxE,yBAAyB,EACzB,GAAG,CACJ,CAAA;QAEH,OAAO,OAAO,CAAC,GAAG,EAAE;YAClB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,UAAU,EAAE,QAAQ;gBACpB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,GAAG,EAAE,OAAO,CAAC,SAAS;gBACtB,QAAQ,EAAE,EAAE,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,EAAE;aACtD;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
movable_ink_url?: string;
|
|
3
|
-
event_name: string;
|
|
4
|
-
user_id?: string;
|
|
5
|
-
anonymous_id?: string;
|
|
6
|
-
timestamp: string | number;
|
|
7
|
-
timezone?: string;
|
|
8
|
-
products_required_false?: {
|
|
9
|
-
id: string;
|
|
10
|
-
title?: string;
|
|
11
|
-
price?: number;
|
|
12
|
-
url?: string;
|
|
13
|
-
quantity?: number;
|
|
14
|
-
[k: string]: unknown;
|
|
15
|
-
}[];
|
|
16
|
-
categories_required_false?: {
|
|
17
|
-
id: string;
|
|
18
|
-
url?: string;
|
|
19
|
-
}[];
|
|
20
|
-
order_id_required_false?: string;
|
|
21
|
-
revenue_required_false?: number;
|
|
22
|
-
meta?: {
|
|
23
|
-
[k: string]: unknown;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/sendCustomEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
7
|
-
const fields_1 = require("../fields");
|
|
8
|
-
const omit_1 = __importDefault(require("lodash/omit"));
|
|
9
|
-
const action = {
|
|
10
|
-
title: 'Send Custom Event',
|
|
11
|
-
description: 'Send a Custom Segment event to Movable Ink',
|
|
12
|
-
defaultSubscription: 'type = "track"',
|
|
13
|
-
fields: {
|
|
14
|
-
movable_ink_url: fields_1.movable_ink_url,
|
|
15
|
-
event_name: fields_1.event_name,
|
|
16
|
-
user_id: fields_1.user_id,
|
|
17
|
-
anonymous_id: fields_1.anonymous_id,
|
|
18
|
-
timestamp: fields_1.timestamp,
|
|
19
|
-
timezone: fields_1.timezone,
|
|
20
|
-
products_required_false: fields_1.products_required_false,
|
|
21
|
-
categories_required_false: fields_1.categories_required_false,
|
|
22
|
-
order_id_required_false: fields_1.order_id_required_false,
|
|
23
|
-
revenue_required_false: fields_1.revenue_required_false,
|
|
24
|
-
meta: fields_1.meta
|
|
25
|
-
},
|
|
26
|
-
perform: (request, { settings, payload }) => {
|
|
27
|
-
const url = payload?.movable_ink_url ?? settings?.movable_ink_url;
|
|
28
|
-
if (!url)
|
|
29
|
-
throw new actions_core_1.IntegrationError('"Movable Ink URL" setting or "Movable Ink URL" field must be populated', 'MISSING_DESTINATION_URL', 400);
|
|
30
|
-
return request(url, {
|
|
31
|
-
method: 'POST',
|
|
32
|
-
json: {
|
|
33
|
-
event_name: payload.event_name,
|
|
34
|
-
user_id: payload.user_id,
|
|
35
|
-
anonymous_id: payload.anonymous_id,
|
|
36
|
-
timestamp: payload.timestamp,
|
|
37
|
-
timezone: payload.timezone,
|
|
38
|
-
products: payload.products_required_false,
|
|
39
|
-
categories: payload.categories_required_false,
|
|
40
|
-
order_id: payload.order_id_required_false,
|
|
41
|
-
revenue: payload.revenue_required_false,
|
|
42
|
-
metadata: { ...omit_1.default(payload.meta, ['products', 'categories', 'order_id', 'revenue']) }
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
exports.default = action;
|
|
48
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/sendCustomEvent/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,sCAYkB;AAClB,uDAA8B;AAE9B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,4CAA4C;IACzD,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,eAAe,EAAf,wBAAe;QACf,UAAU,EAAV,mBAAU;QACV,OAAO,EAAP,gBAAO;QACP,YAAY,EAAZ,qBAAY;QACZ,SAAS,EAAT,kBAAS;QACT,QAAQ,EAAR,iBAAQ;QACR,uBAAuB,EAAvB,gCAAuB;QACvB,yBAAyB,EAAzB,kCAAyB;QACzB,uBAAuB,EAAvB,gCAAuB;QACvB,sBAAsB,EAAtB,+BAAsB;QACtB,IAAI,EAAJ,aAAI;KACL;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAE,eAAe,CAAA;QACjE,IAAI,CAAC,GAAG;YACN,MAAM,IAAI,+BAAgB,CACxB,wEAAwE,EACxE,yBAAyB,EACzB,GAAG,CACJ,CAAA;QAEH,OAAO,OAAO,CAAC,GAAG,EAAE;YAClB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,QAAQ,EAAE,OAAO,CAAC,uBAAuB;gBACzC,UAAU,EAAE,OAAO,CAAC,yBAAyB;gBAC7C,QAAQ,EAAE,OAAO,CAAC,uBAAuB;gBACzC,OAAO,EAAE,OAAO,CAAC,sBAAsB;gBACvC,QAAQ,EAAE,EAAE,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,EAAE;aACvF;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"group.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/group.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"identify.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/identify.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"track.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/track.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/yahoo-audiences/createCustomerNode/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,33 +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 top-level CUSTOMER node in Yahoo taxonomy',
|
|
7
|
-
defaultSubscription: 'event = "Audience Entered" and event = "Audience Exited"',
|
|
8
|
-
description: '',
|
|
9
|
-
fields: {
|
|
10
|
-
engage_space_id: {
|
|
11
|
-
label: 'Engage Space Id',
|
|
12
|
-
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',
|
|
13
|
-
type: 'string',
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
customer_desc: {
|
|
17
|
-
label: 'Customer Description',
|
|
18
|
-
description: 'Provide a description for the Customer node in Yahoo taxonomy. This must be less then 1000 characters',
|
|
19
|
-
type: 'string',
|
|
20
|
-
required: false
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
perform: async (request, { settings, payload }) => {
|
|
24
|
-
const tx_creds = {
|
|
25
|
-
tx_client_key: settings.taxonomy_client_key,
|
|
26
|
-
tx_client_secret: settings.taxonomy_client_secret
|
|
27
|
-
};
|
|
28
|
-
const taxonomy_payload = utils_tax_1.gen_customer_taxonomy_payload(settings, payload);
|
|
29
|
-
return await utils_tax_2.update_taxonomy('', tx_creds, request, taxonomy_payload);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
exports.default = action;
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yahoo-audiences/createCustomerNode/index.ts"],"names":[],"mappings":";;AAGA,4CAA4D;AAC5D,4CAA8C;AAE9C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kDAAkD;IACzD,mBAAmB,EAAE,0DAA0D;IAC/E,WAAW,EAAE,EAAE;IACf,MAAM,EAAE;QACN,eAAe,EAAE;YACf,KAAK,EAAE,iBAAiB;YACxB,WAAW,EACT,mJAAmJ;YACrJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,aAAa,EAAE;YACb,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EACT,uGAAuG;YACzG,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,MAAM,QAAQ,GAAG;YACf,aAAa,EAAE,QAAQ,CAAC,mBAAmB;YAC3C,gBAAgB,EAAE,QAAQ,CAAC,sBAAsB;SAClD,CAAA;QACD,MAAM,gBAAgB,GAAG,yCAA6B,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;QACzE,OAAO,MAAM,2BAAe,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAA;IACvE,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/yahoo-audiences/createSegment/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -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
|