@segment/action-destinations 3.226.0 → 3.227.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/apolloio/generated-types.d.ts +3 -0
- package/dist/destinations/{liveramp-audiences/audienceEnteredSFTP.types.js → apolloio/generated-types.js} +1 -1
- package/dist/destinations/apolloio/generated-types.js.map +1 -0
- package/dist/destinations/apolloio/index.d.ts +7 -0
- package/dist/destinations/apolloio/index.js +58 -0
- package/dist/destinations/apolloio/index.js.map +1 -0
- package/dist/destinations/apolloio/track/generated-types.d.ts +25 -0
- package/dist/destinations/apolloio/track/generated-types.js +3 -0
- package/dist/destinations/apolloio/track/generated-types.js.map +1 -0
- package/dist/destinations/apolloio/track/index.d.ts +5 -0
- package/dist/destinations/apolloio/track/index.js +162 -0
- package/dist/destinations/apolloio/track/index.js.map +1 -0
- package/dist/destinations/braze/identifyUser/generated-types.d.ts +1 -0
- package/dist/destinations/braze/identifyUser/index.js +11 -1
- package/dist/destinations/braze/identifyUser/index.js.map +1 -1
- package/dist/destinations/braze-cohorts/index.js +1 -0
- package/dist/destinations/braze-cohorts/index.js.map +1 -1
- package/dist/destinations/display-video-360/constants.d.ts +4 -0
- package/dist/destinations/display-video-360/constants.js +8 -0
- package/dist/destinations/display-video-360/constants.js.map +1 -0
- package/dist/destinations/display-video-360/generated-types.d.ts +3 -0
- package/dist/destinations/display-video-360/index.d.ts +3 -3
- package/dist/destinations/display-video-360/index.js +97 -0
- package/dist/destinations/display-video-360/index.js.map +1 -1
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +11 -1
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
- package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js +6 -0
- package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js.map +1 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.d.ts +1 -0
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +3 -1
- package/dist/destinations/google-enhanced-conversions/functions.js +37 -1
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/types.d.ts +12 -0
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +8 -2
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +8 -2
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +10 -2
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
- package/dist/destinations/index.js +3 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/insider/cartViewedEvent/index.js +6 -0
- package/dist/destinations/insider/cartViewedEvent/index.js.map +1 -1
- package/dist/destinations/insider/checkoutEvent/index.js +6 -0
- package/dist/destinations/insider/checkoutEvent/index.js.map +1 -1
- package/dist/destinations/insider/insider-helpers.d.ts +32 -0
- package/dist/destinations/insider/insider-helpers.js +162 -1
- package/dist/destinations/insider/insider-helpers.js.map +1 -1
- package/dist/destinations/insider/orderCompletedEvent/index.js +6 -0
- package/dist/destinations/insider/orderCompletedEvent/index.js.map +1 -1
- package/dist/destinations/insider/productAddedEvent/index.js +6 -0
- package/dist/destinations/insider/productAddedEvent/index.js.map +1 -1
- package/dist/destinations/insider/productListViewedEvent/index.js +6 -0
- package/dist/destinations/insider/productListViewedEvent/index.js.map +1 -1
- package/dist/destinations/insider/productRemovedEvent/index.js +6 -0
- package/dist/destinations/insider/productRemovedEvent/index.js.map +1 -1
- package/dist/destinations/insider/productViewedEvent/index.js +6 -0
- package/dist/destinations/insider/productViewedEvent/index.js.map +1 -1
- package/dist/destinations/insider/trackEvent/index.js +6 -0
- package/dist/destinations/insider/trackEvent/index.js.map +1 -1
- package/dist/destinations/insider/updateUserProfile/index.js +6 -0
- package/dist/destinations/insider/updateUserProfile/index.js.map +1 -1
- package/dist/destinations/insider/userRegisteredEvent/index.js +6 -0
- package/dist/destinations/insider/userRegisteredEvent/index.js.map +1 -1
- package/dist/destinations/insider-audiences/insider-helpers.js +1 -2
- package/dist/destinations/insider-audiences/insider-helpers.js.map +1 -1
- package/dist/destinations/movable-ink/categoryView/generated-types.d.ts +22 -0
- package/dist/destinations/movable-ink/categoryView/generated-types.js +3 -0
- package/dist/destinations/movable-ink/categoryView/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/categoryView/index.d.ts +5 -0
- package/dist/destinations/movable-ink/categoryView/index.js +43 -0
- package/dist/destinations/movable-ink/categoryView/index.js.map +1 -0
- package/dist/destinations/movable-ink/conversion/generated-types.d.ts +20 -0
- package/dist/destinations/movable-ink/conversion/generated-types.js +3 -0
- package/dist/destinations/movable-ink/conversion/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/conversion/index.d.ts +5 -0
- package/dist/destinations/movable-ink/conversion/index.js +45 -0
- package/dist/destinations/movable-ink/conversion/index.js.map +1 -0
- package/dist/destinations/movable-ink/fields.d.ts +21 -0
- package/dist/destinations/movable-ink/fields.js +236 -0
- package/dist/destinations/movable-ink/fields.js.map +1 -0
- package/dist/destinations/movable-ink/generated-types.d.ts +5 -0
- package/dist/destinations/movable-ink/generated-types.js +3 -0
- package/dist/destinations/movable-ink/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/identify/generated-types.d.ts +7 -0
- package/dist/destinations/movable-ink/identify/generated-types.js +3 -0
- package/dist/destinations/movable-ink/identify/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/identify/index.d.ts +5 -0
- package/dist/destinations/movable-ink/identify/index.js +32 -0
- package/dist/destinations/movable-ink/identify/index.js.map +1 -0
- package/dist/destinations/movable-ink/index.d.ts +4 -0
- package/dist/destinations/movable-ink/index.js +70 -0
- package/dist/destinations/movable-ink/index.js.map +1 -0
- package/dist/destinations/movable-ink/productAdded/generated-types.d.ts +22 -0
- package/dist/destinations/movable-ink/productAdded/generated-types.js +3 -0
- package/dist/destinations/movable-ink/productAdded/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/productAdded/index.d.ts +5 -0
- package/dist/destinations/movable-ink/productAdded/index.js +43 -0
- package/dist/destinations/movable-ink/productAdded/index.js.map +1 -0
- package/dist/destinations/movable-ink/productViewed/generated-types.d.ts +21 -0
- package/dist/destinations/movable-ink/productViewed/generated-types.js +3 -0
- package/dist/destinations/movable-ink/productViewed/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/productViewed/index.d.ts +5 -0
- package/dist/destinations/movable-ink/productViewed/index.js +43 -0
- package/dist/destinations/movable-ink/productViewed/index.js.map +1 -0
- package/dist/destinations/movable-ink/search/generated-types.d.ts +12 -0
- package/dist/destinations/movable-ink/search/generated-types.js +3 -0
- package/dist/destinations/movable-ink/search/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/search/index.d.ts +5 -0
- package/dist/destinations/movable-ink/search/index.js +43 -0
- package/dist/destinations/movable-ink/search/index.js.map +1 -0
- package/dist/destinations/movable-ink/sendCustomEvent/generated-types.d.ts +25 -0
- package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js +3 -0
- package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/sendCustomEvent/index.d.ts +5 -0
- package/dist/destinations/movable-ink/sendCustomEvent/index.js +48 -0
- package/dist/destinations/movable-ink/sendCustomEvent/index.js.map +1 -0
- package/dist/destinations/movable-ink/sendEntireEvent/generated-types.d.ts +11 -0
- package/dist/destinations/movable-ink/sendEntireEvent/generated-types.js +3 -0
- package/dist/destinations/movable-ink/sendEntireEvent/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/sendEntireEvent/index.d.ts +5 -0
- package/dist/destinations/movable-ink/sendEntireEvent/index.js +79 -0
- package/dist/destinations/movable-ink/sendEntireEvent/index.js.map +1 -0
- package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js +1 -1
- package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js.map +1 -1
- package/dist/destinations/the-trade-desk-crm/functions.js +11 -3
- package/dist/destinations/the-trade-desk-crm/functions.js.map +1 -1
- package/dist/destinations/usermotion/generated-types.d.ts +3 -0
- package/dist/destinations/usermotion/generated-types.js +3 -0
- package/dist/destinations/usermotion/generated-types.js.map +1 -0
- package/dist/destinations/usermotion/group/generated-types.d.ts +7 -0
- package/dist/destinations/usermotion/group/generated-types.js +3 -0
- package/dist/destinations/usermotion/group/generated-types.js.map +1 -0
- package/dist/destinations/usermotion/group/index.d.ts +5 -0
- package/dist/destinations/usermotion/group/index.js +48 -0
- package/dist/destinations/usermotion/group/index.js.map +1 -0
- package/dist/destinations/usermotion/identify/generated-types.d.ts +8 -0
- package/dist/destinations/usermotion/identify/generated-types.js +3 -0
- package/dist/destinations/usermotion/identify/generated-types.js.map +1 -0
- package/dist/destinations/usermotion/identify/index.d.ts +5 -0
- package/dist/destinations/usermotion/identify/index.js +57 -0
- package/dist/destinations/usermotion/identify/index.js.map +1 -0
- package/dist/destinations/usermotion/index.d.ts +4 -0
- package/dist/destinations/usermotion/index.js +65 -0
- package/dist/destinations/usermotion/index.js.map +1 -0
- package/dist/destinations/usermotion/track/generated-types.d.ts +9 -0
- package/dist/destinations/usermotion/track/generated-types.js +3 -0
- package/dist/destinations/usermotion/track/generated-types.js.map +1 -0
- package/dist/destinations/usermotion/track/index.d.ts +5 -0
- package/dist/destinations/usermotion/track/index.js +72 -0
- package/dist/destinations/usermotion/track/index.js.map +1 -0
- package/dist/destinations/yahoo-audiences/index.js +25 -11
- package/dist/destinations/yahoo-audiences/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/updateSegment/generated-types.d.ts +1 -2
- package/dist/destinations/yahoo-audiences/updateSegment/index.js +48 -44
- package/dist/destinations/yahoo-audiences/updateSegment/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/utils-rt.d.ts +2 -0
- package/dist/destinations/yahoo-audiences/utils-rt.js +72 -17
- package/dist/destinations/yahoo-audiences/utils-rt.js.map +1 -1
- package/dist/destinations/yahoo-audiences/utils-tax.d.ts +2 -1
- package/dist/destinations/yahoo-audiences/utils-tax.js +7 -1
- package/dist/destinations/yahoo-audiences/utils-tax.js.map +1 -1
- package/package.json +8 -3
- package/dist/destinations/liveramp-audiences/audienceEnteredSFTP.types.d.ts +0 -16
- package/dist/destinations/liveramp-audiences/audienceEnteredSFTP.types.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/destinations/movable-ink/fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAe;IACzC,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,0FAA0F;IACvG,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;CACd,CAAA;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,WAAW;IAClB,WAAW,EACT,+JAA+J;IACjK,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;CACpC,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,8FAA8F;IAC3G,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE;QACP,KAAK,EAAE;YACL,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;YACzC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;YACvC,IAAI,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE;SAC3C;KACF;CACF,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,+BAA+B;IAC5C,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE,OAAO,E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|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/movable-ink/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/identify/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 identify_1 = __importDefault(require("./identify"));
|
|
8
|
+
const search_1 = __importDefault(require("./search"));
|
|
9
|
+
const conversion_1 = __importDefault(require("./conversion"));
|
|
10
|
+
const productViewed_1 = __importDefault(require("./productViewed"));
|
|
11
|
+
const productAdded_1 = __importDefault(require("./productAdded"));
|
|
12
|
+
const categoryView_1 = __importDefault(require("./categoryView"));
|
|
13
|
+
const sendCustomEvent_1 = __importDefault(require("./sendCustomEvent"));
|
|
14
|
+
const sendEntireEvent_1 = __importDefault(require("./sendEntireEvent"));
|
|
15
|
+
const destination = {
|
|
16
|
+
name: 'Movable Ink (Actions)',
|
|
17
|
+
slug: 'actions-movable-ink',
|
|
18
|
+
mode: 'cloud',
|
|
19
|
+
description: 'Send Segment analytics events to Movable Ink',
|
|
20
|
+
authentication: {
|
|
21
|
+
scheme: 'basic',
|
|
22
|
+
fields: {
|
|
23
|
+
username: {
|
|
24
|
+
label: 'Username',
|
|
25
|
+
description: 'Your Movable Ink username',
|
|
26
|
+
type: 'string',
|
|
27
|
+
required: true
|
|
28
|
+
},
|
|
29
|
+
password: {
|
|
30
|
+
label: 'password',
|
|
31
|
+
description: 'Your Movable Ink password.',
|
|
32
|
+
type: 'string',
|
|
33
|
+
required: true
|
|
34
|
+
},
|
|
35
|
+
movable_ink_url: {
|
|
36
|
+
label: 'Movable Ink URL',
|
|
37
|
+
description: 'The Movable Ink URL to send data to. This URL can also be specified at the Action level via the "Movable Ink URL" Action field',
|
|
38
|
+
type: 'string',
|
|
39
|
+
required: false
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
extendRequest({ settings }) {
|
|
44
|
+
return {
|
|
45
|
+
username: settings.username,
|
|
46
|
+
password: settings.password
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
presets: [
|
|
50
|
+
{
|
|
51
|
+
name: 'Send Entire Event',
|
|
52
|
+
partnerAction: 'sendEntireEvent',
|
|
53
|
+
subscribe: 'type = "identify" or type = "track" or type = "page" or type = "screen"',
|
|
54
|
+
mapping: actions_core_1.defaultValues(sendEntireEvent_1.default.fields),
|
|
55
|
+
type: 'automatic'
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
actions: {
|
|
59
|
+
identify: identify_1.default,
|
|
60
|
+
search: search_1.default,
|
|
61
|
+
conversion: conversion_1.default,
|
|
62
|
+
productViewed: productViewed_1.default,
|
|
63
|
+
productAdded: productAdded_1.default,
|
|
64
|
+
categoryView: categoryView_1.default,
|
|
65
|
+
sendCustomEvent: sendCustomEvent_1.default,
|
|
66
|
+
sendEntireEvent: sendEntireEvent_1.default
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
exports.default = destination;
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/movable-ink/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA4E;AAE5E,0DAAiC;AACjC,sDAA6B;AAC7B,8DAAqC;AACrC,oEAA2C;AAE3C,kEAAyC;AAEzC,kEAAyC;AAEzC,wEAA+C;AAE/C,wEAA+C;AAE/C,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,8CAA8C;IAC3D,cAAc,EAAE;QACd,MAAM,EAAE,OAAO;QACf,MAAM,EAAE;YACN,QAAQ,EAAE;gBACR,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,4BAA4B;gBACzC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,eAAe,EAAE;gBACf,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EACT,gIAAgI;gBAClI,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;SACF;KACF;IACD,aAAa,CAAC,EAAE,QAAQ,EAAE;QACxB,OAAO;YACL,QAAQ,EAAE,QAAQ,CAAC,QAAQ;YAC3B,QAAQ,EAAE,QAAQ,CAAC,QAAQ;SAC5B,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,mBAAmB;YACzB,aAAa,EAAE,iBAAiB;YAChC,SAAS,EAAE,yEAAyE;YACpF,OAAO,EAAE,4BAAa,CAAC,yBAAe,CAAC,MAAM,CAAC;YAC9C,IAAI,EAAE,WAAW;SAClB;KACF;IACD,OAAO,EAAE;QACP,QAAQ,EAAR,kBAAQ;QACR,MAAM,EAAN,gBAAM;QACN,UAAU,EAAV,oBAAU;QACV,aAAa,EAAb,uBAAa;QACb,YAAY,EAAZ,sBAAY;QACZ,YAAY,EAAZ,sBAAY;QACZ,eAAe,EAAf,yBAAe;QACf,eAAe,EAAf,yBAAe;KAChB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/productAdded/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/productViewed/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/search/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/sendCustomEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/sendEntireEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,79 @@
|
|
|
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: 'Send Entire Event',
|
|
7
|
+
description: 'Send an entire Segment event to Movable Ink',
|
|
8
|
+
fields: {
|
|
9
|
+
movable_ink_url: fields_1.movable_ink_url,
|
|
10
|
+
method: {
|
|
11
|
+
label: 'Method',
|
|
12
|
+
description: 'HTTP method to use.',
|
|
13
|
+
type: 'string',
|
|
14
|
+
choices: [
|
|
15
|
+
{ label: 'POST', value: 'POST' },
|
|
16
|
+
{ label: 'PUT', value: 'PUT' },
|
|
17
|
+
{ label: 'PATCH', value: 'PATCH' }
|
|
18
|
+
],
|
|
19
|
+
default: 'POST',
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
batch_size: {
|
|
23
|
+
label: 'Batch Size',
|
|
24
|
+
description: 'Maximum number of events to include in each batch. Actual batch sizes may be lower.',
|
|
25
|
+
type: 'number',
|
|
26
|
+
required: false,
|
|
27
|
+
default: 0
|
|
28
|
+
},
|
|
29
|
+
headers: {
|
|
30
|
+
label: 'Headers',
|
|
31
|
+
description: 'HTTP headers to send with each request. Only ASCII characters are supported.',
|
|
32
|
+
type: 'object',
|
|
33
|
+
defaultObjectUI: 'keyvalue:only'
|
|
34
|
+
},
|
|
35
|
+
data: {
|
|
36
|
+
label: 'Data',
|
|
37
|
+
description: 'Payload to deliver to webhook URL (JSON-encoded).',
|
|
38
|
+
type: 'object',
|
|
39
|
+
default: { '@path': '$.' }
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
perform: (request, { settings, payload }) => {
|
|
43
|
+
const url = payload?.movable_ink_url ?? settings?.movable_ink_url;
|
|
44
|
+
if (!url)
|
|
45
|
+
throw new actions_core_1.IntegrationError('"Movable Ink URL" setting or "Movable Ink URL" field must be populated', 'MISSING_DESTINATION_URL', 400);
|
|
46
|
+
try {
|
|
47
|
+
return request(url, {
|
|
48
|
+
method: payload.method,
|
|
49
|
+
headers: payload.headers,
|
|
50
|
+
json: payload.data
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
if (error instanceof TypeError)
|
|
55
|
+
throw new actions_core_1.PayloadValidationError(error.message);
|
|
56
|
+
throw error;
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
performBatch: (request, { settings, payload }) => {
|
|
60
|
+
const url = payload[0]?.movable_ink_url ?? settings?.movable_ink_url;
|
|
61
|
+
if (!url)
|
|
62
|
+
throw new actions_core_1.IntegrationError('"Movable Ink URL" setting or "Movable Ink URL" field must be populated', 'MISSING_DESTINATION_URL', 400);
|
|
63
|
+
const { method, headers } = payload[0];
|
|
64
|
+
try {
|
|
65
|
+
return request(url, {
|
|
66
|
+
method: method,
|
|
67
|
+
headers: headers,
|
|
68
|
+
json: payload.map(({ data }) => data)
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
if (error instanceof TypeError)
|
|
73
|
+
throw new actions_core_1.PayloadValidationError(error.message);
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
exports.default = action;
|
|
79
|
+
//# sourceMappingURL=index.js.map
|