@segment/action-destinations 3.216.0 → 3.217.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/acoustic-s3tc/generated-types.d.ts +5 -5
- package/dist/destinations/acoustic-s3tc/index.js +22 -18
- package/dist/destinations/acoustic-s3tc/index.js.map +1 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/eventprocessing.js +30 -33
- package/dist/destinations/acoustic-s3tc/receiveEvents/eventprocessing.js.map +1 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/index.js +9 -9
- package/dist/destinations/acoustic-s3tc/receiveEvents/index.js.map +1 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/preCheck.js +3 -3
- package/dist/destinations/acoustic-s3tc/receiveEvents/preCheck.js.map +1 -1
- package/dist/destinations/algolia-insights/algolia-insight-api.d.ts +7 -1
- package/dist/destinations/algolia-insights/conversionEvents/generated-types.d.ts +3 -0
- package/dist/destinations/algolia-insights/conversionEvents/index.js +14 -3
- package/dist/destinations/algolia-insights/conversionEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/index.js +12 -2
- package/dist/destinations/algolia-insights/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productAddedEvents/generated-types.d.ts +10 -0
- package/dist/destinations/algolia-insights/productAddedEvents/generated-types.js +3 -0
- package/dist/destinations/algolia-insights/productAddedEvents/generated-types.js.map +1 -0
- package/dist/destinations/algolia-insights/productAddedEvents/index.d.ts +5 -0
- package/dist/destinations/algolia-insights/productAddedEvents/index.js +93 -0
- package/dist/destinations/algolia-insights/productAddedEvents/index.js.map +1 -0
- package/dist/destinations/algolia-insights/productClickedEvents/generated-types.d.ts +3 -0
- package/dist/destinations/algolia-insights/productClickedEvents/index.js +13 -2
- package/dist/destinations/algolia-insights/productClickedEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productListFilteredEvents/generated-types.d.ts +13 -0
- package/dist/destinations/algolia-insights/productListFilteredEvents/generated-types.js +3 -0
- package/dist/destinations/algolia-insights/productListFilteredEvents/generated-types.js.map +1 -0
- package/dist/destinations/algolia-insights/productListFilteredEvents/index.d.ts +5 -0
- package/dist/destinations/algolia-insights/productListFilteredEvents/index.js +101 -0
- package/dist/destinations/algolia-insights/productListFilteredEvents/index.js.map +1 -0
- package/dist/destinations/algolia-insights/productViewedEvents/generated-types.d.ts +3 -0
- package/dist/destinations/algolia-insights/productViewedEvents/index.js +13 -2
- package/dist/destinations/algolia-insights/productViewedEvents/index.js.map +1 -1
- package/dist/destinations/attio/assertRecord/index.js +4 -5
- package/dist/destinations/attio/assertRecord/index.js.map +1 -1
- package/dist/destinations/attio/groupWorkspace/generated-types.d.ts +1 -1
- package/dist/destinations/attio/groupWorkspace/index.js +13 -14
- package/dist/destinations/attio/groupWorkspace/index.js.map +1 -1
- package/dist/destinations/attio/identifyUser/generated-types.d.ts +1 -0
- package/dist/destinations/attio/identifyUser/index.js +17 -8
- package/dist/destinations/attio/identifyUser/index.js.map +1 -1
- package/dist/destinations/devrev/mocks/index.d.ts +3 -0
- package/dist/destinations/devrev/mocks/index.js +4 -1
- package/dist/destinations/devrev/mocks/index.js.map +1 -1
- package/dist/destinations/devrev/streamEvent/generated-types.d.ts +3 -0
- package/dist/destinations/devrev/streamEvent/index.js +41 -2
- package/dist/destinations/devrev/streamEvent/index.js.map +1 -1
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +2 -0
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +1 -1
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +1 -3
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +1 -1
- package/dist/destinations/engage/utils/EngageStats.js +4 -0
- package/dist/destinations/engage/utils/EngageStats.js.map +1 -1
- package/dist/destinations/engage/utils/MessageSendPerformer.js +4 -3
- package/dist/destinations/engage/utils/MessageSendPerformer.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/fb-capi-properties.js +11 -1
- package/dist/destinations/facebook-conversions-api/fb-capi-properties.js.map +1 -1
- package/dist/destinations/index.js +1 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/iterable/trackEvent/index.js.map +1 -1
- package/dist/destinations/iterable/utils.js +1 -1
- package/dist/destinations/iterable/utils.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/sftp.d.ts +4 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/sftp.js +17 -2
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/sftp.js.map +1 -1
- package/dist/destinations/optimizely-advanced-audience-targeting/syncAudience/index.js +1 -1
- package/dist/destinations/optimizely-advanced-audience-targeting/syncAudience/index.js.map +1 -1
- package/dist/destinations/optimizely-data-platform/customEvent/generated-types.d.ts +16 -0
- package/dist/destinations/optimizely-data-platform/customEvent/generated-types.js +3 -0
- package/dist/destinations/optimizely-data-platform/customEvent/generated-types.js.map +1 -0
- package/dist/destinations/optimizely-data-platform/customEvent/index.d.ts +5 -0
- package/dist/destinations/optimizely-data-platform/customEvent/index.js +33 -0
- package/dist/destinations/optimizely-data-platform/customEvent/index.js.map +1 -0
- package/dist/destinations/optimizely-data-platform/emailEvent/generated-types.d.ts +13 -0
- package/dist/destinations/optimizely-data-platform/emailEvent/generated-types.js +3 -0
- package/dist/destinations/optimizely-data-platform/emailEvent/generated-types.js.map +1 -0
- package/dist/destinations/optimizely-data-platform/emailEvent/index.d.ts +5 -0
- package/dist/destinations/optimizely-data-platform/emailEvent/index.js +55 -0
- package/dist/destinations/optimizely-data-platform/emailEvent/index.js.map +1 -0
- package/dist/destinations/optimizely-data-platform/fields.d.ts +8 -0
- package/dist/destinations/optimizely-data-platform/fields.js +148 -0
- package/dist/destinations/optimizely-data-platform/fields.js.map +1 -0
- package/dist/destinations/optimizely-data-platform/generated-types.d.ts +4 -0
- package/dist/destinations/optimizely-data-platform/generated-types.js +3 -0
- package/dist/destinations/optimizely-data-platform/generated-types.js.map +1 -0
- package/dist/destinations/optimizely-data-platform/index.d.ts +4 -0
- package/dist/destinations/optimizely-data-platform/index.js +155 -0
- package/dist/destinations/optimizely-data-platform/index.js.map +1 -0
- package/dist/destinations/optimizely-data-platform/upsertContact/generated-types.d.ts +25 -0
- package/dist/destinations/optimizely-data-platform/upsertContact/generated-types.js +3 -0
- package/dist/destinations/optimizely-data-platform/upsertContact/generated-types.js.map +1 -0
- package/dist/destinations/optimizely-data-platform/upsertContact/index.d.ts +5 -0
- package/dist/destinations/optimizely-data-platform/upsertContact/index.js +134 -0
- package/dist/destinations/optimizely-data-platform/upsertContact/index.js.map +1 -0
- package/dist/destinations/optimizely-data-platform/utils.d.ts +3 -0
- package/dist/destinations/optimizely-data-platform/utils.js +9 -0
- package/dist/destinations/optimizely-data-platform/utils.js.map +1 -0
- package/dist/destinations/segment-profiles/errors.d.ts +10 -10
- package/dist/destinations/segment-profiles/errors.js +11 -11
- package/dist/destinations/segment-profiles/errors.js.map +1 -1
- package/dist/destinations/segment-profiles/segment-properties.d.ts +0 -10
- package/dist/destinations/segment-profiles/segment-properties.js +1 -58
- package/dist/destinations/segment-profiles/segment-properties.js.map +1 -1
- package/dist/destinations/segment-profiles/sendSubscription/index.js +162 -137
- package/dist/destinations/segment-profiles/sendSubscription/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendSubscription/subscription-properties.d.ts +15 -0
- package/dist/destinations/segment-profiles/sendSubscription/subscription-properties.js +85 -0
- package/dist/destinations/segment-profiles/sendSubscription/subscription-properties.js.map +1 -0
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js +40 -1
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js.map +1 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/generated-types.d.ts +6 -0
- package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js +2 -0
- package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js.map +1 -1
- package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +2 -0
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js +81 -12
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -1
- package/dist/destinations/the-trade-desk-crm/index.js +12 -8
- package/dist/destinations/the-trade-desk-crm/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/optimizely-data-platform/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,155 @@
|
|
|
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 customEvent_1 = __importDefault(require("./customEvent"));
|
|
8
|
+
const upsertContact_1 = __importDefault(require("./upsertContact"));
|
|
9
|
+
const emailEvent_1 = __importDefault(require("./emailEvent"));
|
|
10
|
+
const utils_1 = require("./utils");
|
|
11
|
+
const singleProductFields = {
|
|
12
|
+
...actions_core_1.defaultValues(customEvent_1.default.fields),
|
|
13
|
+
products: {
|
|
14
|
+
'@arrayPath': [
|
|
15
|
+
'$.properties',
|
|
16
|
+
{
|
|
17
|
+
product_id: {
|
|
18
|
+
'@path': '$.product_id'
|
|
19
|
+
},
|
|
20
|
+
qty: {
|
|
21
|
+
'@path': '$.quantity'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const destination = {
|
|
28
|
+
name: 'Optimizely Data Platform',
|
|
29
|
+
slug: 'actions-optimizely-data-platform',
|
|
30
|
+
mode: 'cloud',
|
|
31
|
+
description: 'Sync Segment analytics events and user profile data to Optimizely Data Platform',
|
|
32
|
+
authentication: {
|
|
33
|
+
scheme: 'custom',
|
|
34
|
+
fields: {
|
|
35
|
+
apiKey: {
|
|
36
|
+
label: 'Api Key',
|
|
37
|
+
description: 'Api Key used for Optimizely API authorization when sending events',
|
|
38
|
+
type: 'password',
|
|
39
|
+
required: true
|
|
40
|
+
},
|
|
41
|
+
region: {
|
|
42
|
+
label: 'Region',
|
|
43
|
+
description: 'Optimizely Region to sync data to. Default is US',
|
|
44
|
+
type: 'string',
|
|
45
|
+
required: true,
|
|
46
|
+
choices: [
|
|
47
|
+
{ label: 'US', value: 'US' },
|
|
48
|
+
{ label: 'Europe', value: 'EU' },
|
|
49
|
+
{ label: 'Australia', value: 'AU' }
|
|
50
|
+
],
|
|
51
|
+
default: 'US'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
testAuthentication: (request, { settings }) => {
|
|
55
|
+
const host = utils_1.hosts[settings.region];
|
|
56
|
+
return request(`${host}/auth`, {
|
|
57
|
+
method: 'POST'
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
extendRequest({ settings }) {
|
|
62
|
+
return {
|
|
63
|
+
headers: { Authorization: `Bearer ${settings.apiKey}` }
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
presets: [
|
|
67
|
+
{
|
|
68
|
+
name: 'Product Viewed',
|
|
69
|
+
subscribe: 'type = "track" and event = "Product Viewed"',
|
|
70
|
+
partnerAction: 'customEvent',
|
|
71
|
+
mapping: {
|
|
72
|
+
...singleProductFields,
|
|
73
|
+
event_action: 'product_viewed'
|
|
74
|
+
},
|
|
75
|
+
type: 'automatic'
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Product Added',
|
|
79
|
+
subscribe: 'type = "track" and event = "Product Added"',
|
|
80
|
+
partnerAction: 'customEvent',
|
|
81
|
+
mapping: {
|
|
82
|
+
...singleProductFields,
|
|
83
|
+
event_action: 'product_added_to_cart'
|
|
84
|
+
},
|
|
85
|
+
type: 'automatic'
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'Product Removed',
|
|
89
|
+
subscribe: 'type = "track" and event = "Product Removed"',
|
|
90
|
+
partnerAction: 'customEvent',
|
|
91
|
+
mapping: {
|
|
92
|
+
...singleProductFields,
|
|
93
|
+
event_action: 'product_removed_from_cart'
|
|
94
|
+
},
|
|
95
|
+
type: 'automatic'
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'Order Completed',
|
|
99
|
+
subscribe: 'type = "track" and event = "Order Completed"',
|
|
100
|
+
partnerAction: 'customEvent',
|
|
101
|
+
mapping: {
|
|
102
|
+
...actions_core_1.defaultValues(customEvent_1.default.fields),
|
|
103
|
+
event_action: 'purchase_completed'
|
|
104
|
+
},
|
|
105
|
+
type: 'automatic'
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'Email Link Clicked',
|
|
109
|
+
subscribe: 'type = "track" and event = "Email Link Clicked"',
|
|
110
|
+
partnerAction: 'emailEvent',
|
|
111
|
+
mapping: {
|
|
112
|
+
...actions_core_1.defaultValues(emailEvent_1.default.fields),
|
|
113
|
+
event_action: 'email_clicked'
|
|
114
|
+
},
|
|
115
|
+
type: 'automatic'
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'Email Opened',
|
|
119
|
+
subscribe: 'type = "track" and event = "Email Opened"',
|
|
120
|
+
partnerAction: 'emailEvent',
|
|
121
|
+
mapping: {
|
|
122
|
+
...actions_core_1.defaultValues(emailEvent_1.default.fields),
|
|
123
|
+
event_action: 'email_opened'
|
|
124
|
+
},
|
|
125
|
+
type: 'automatic'
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'Unsubscribed',
|
|
129
|
+
subscribe: 'type = "track" and event = "Unsubscribed"',
|
|
130
|
+
partnerAction: 'emailEvent',
|
|
131
|
+
mapping: {
|
|
132
|
+
...actions_core_1.defaultValues(emailEvent_1.default.fields),
|
|
133
|
+
event_action: 'email_unsubscribed'
|
|
134
|
+
},
|
|
135
|
+
type: 'automatic'
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'Email Marked as Spam',
|
|
139
|
+
subscribe: 'type = "track" and event = "Email Marked as Spam"',
|
|
140
|
+
partnerAction: 'emailEvent',
|
|
141
|
+
mapping: {
|
|
142
|
+
...actions_core_1.defaultValues(emailEvent_1.default.fields),
|
|
143
|
+
event_action: 'email_marked_as_spam'
|
|
144
|
+
},
|
|
145
|
+
type: 'automatic'
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
actions: {
|
|
149
|
+
customEvent: customEvent_1.default,
|
|
150
|
+
upsertContact: upsertContact_1.default,
|
|
151
|
+
emailEvent: emailEvent_1.default
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
exports.default = destination;
|
|
155
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/optimizely-data-platform/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAAqD;AAGrD,gEAAuC;AACvC,oEAA2C;AAC3C,8DAAqC;AACrC,mCAA+B;AAE/B,MAAM,mBAAmB,GAAG;IAC1B,GAAG,4BAAa,CAAC,qBAAW,CAAC,MAAM,CAAC;IACpC,QAAQ,EAAE;QACR,YAAY,EAAE;YACZ,cAAc;YACd;gBACE,UAAU,EAAE;oBACV,OAAO,EAAE,cAAc;iBACxB;gBACD,GAAG,EAAE;oBACH,OAAO,EAAE,YAAY;iBACtB;aACF;SACF;KACF;CACF,CAAA;AAED,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,kCAAkC;IACxC,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,iFAAiF;IAC9F,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,mEAAmE;gBAChF,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;YACD,MAAM,EAAE;g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CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
user_identifiers: {
|
|
3
|
+
anonymousId?: string;
|
|
4
|
+
userId?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
optimizely_vuid?: string;
|
|
7
|
+
};
|
|
8
|
+
company?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
firstname?: string;
|
|
12
|
+
lastname?: string;
|
|
13
|
+
gender?: string;
|
|
14
|
+
DOB?: string | number;
|
|
15
|
+
phone?: string;
|
|
16
|
+
age?: number;
|
|
17
|
+
address?: {
|
|
18
|
+
street?: string;
|
|
19
|
+
city?: string;
|
|
20
|
+
state?: string;
|
|
21
|
+
zip?: string;
|
|
22
|
+
country?: string;
|
|
23
|
+
};
|
|
24
|
+
avatar?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/optimizely-data-platform/upsertContact/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const fields_1 = require("../fields");
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Upsert Contact',
|
|
7
|
+
description: 'Send user profile data from Segment to Optimizely Data Platform. Creates or updates a user profile in Optimzely Data Platform',
|
|
8
|
+
defaultSubscription: 'type = "identify"',
|
|
9
|
+
fields: {
|
|
10
|
+
user_identifiers: fields_1.user_identifiers,
|
|
11
|
+
company: {
|
|
12
|
+
label: 'Company Name',
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The name of the company associated with the Contact',
|
|
15
|
+
default: { '@path': '$.traits.company' }
|
|
16
|
+
},
|
|
17
|
+
title: {
|
|
18
|
+
label: 'Title',
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: "The Contact's Title",
|
|
21
|
+
default: { '@path': '$.traits.title' }
|
|
22
|
+
},
|
|
23
|
+
name: {
|
|
24
|
+
label: 'Name',
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: "Contact's full name",
|
|
27
|
+
default: { '@path': '$.traits.name' }
|
|
28
|
+
},
|
|
29
|
+
firstname: {
|
|
30
|
+
label: 'First Name',
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: "Contact's first name",
|
|
33
|
+
default: { '@path': '$.traits.first_name' }
|
|
34
|
+
},
|
|
35
|
+
lastname: {
|
|
36
|
+
label: 'Last Name',
|
|
37
|
+
type: 'string',
|
|
38
|
+
description: "Contact's last name",
|
|
39
|
+
default: { '@path': '$.traits.last_name' }
|
|
40
|
+
},
|
|
41
|
+
gender: {
|
|
42
|
+
label: 'Gender',
|
|
43
|
+
type: 'string',
|
|
44
|
+
description: "Contact's gender",
|
|
45
|
+
default: { '@path': '$.traits.gender' }
|
|
46
|
+
},
|
|
47
|
+
DOB: {
|
|
48
|
+
label: 'Birthday',
|
|
49
|
+
type: 'datetime',
|
|
50
|
+
description: "Contact's birthday. The format should be datetime",
|
|
51
|
+
default: { '@path': '$.traits.birthday' }
|
|
52
|
+
},
|
|
53
|
+
phone: {
|
|
54
|
+
label: 'Phone',
|
|
55
|
+
type: 'string',
|
|
56
|
+
description: "Contact's phone number.",
|
|
57
|
+
default: { '@path': '$.traits.phone' }
|
|
58
|
+
},
|
|
59
|
+
age: {
|
|
60
|
+
label: 'Age',
|
|
61
|
+
type: 'number',
|
|
62
|
+
description: "Contact's age.",
|
|
63
|
+
default: { '@path': '$.traits.age' }
|
|
64
|
+
},
|
|
65
|
+
address: {
|
|
66
|
+
label: 'Address',
|
|
67
|
+
type: 'object',
|
|
68
|
+
description: 'Address details object',
|
|
69
|
+
properties: {
|
|
70
|
+
street: {
|
|
71
|
+
label: 'Street',
|
|
72
|
+
type: 'string',
|
|
73
|
+
description: "The user's street."
|
|
74
|
+
},
|
|
75
|
+
city: {
|
|
76
|
+
label: 'City',
|
|
77
|
+
type: 'string',
|
|
78
|
+
description: "The user's city."
|
|
79
|
+
},
|
|
80
|
+
state: {
|
|
81
|
+
label: 'State',
|
|
82
|
+
type: 'string',
|
|
83
|
+
description: "The user's state or region."
|
|
84
|
+
},
|
|
85
|
+
zip: {
|
|
86
|
+
label: 'Zip code',
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'Zip or postal code'
|
|
89
|
+
},
|
|
90
|
+
country: {
|
|
91
|
+
label: 'Country',
|
|
92
|
+
type: 'string',
|
|
93
|
+
description: "The user's country."
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
default: {
|
|
97
|
+
street: { '@path': '$.traits.address.street' },
|
|
98
|
+
city: { '@path': '$.traits.address.city' },
|
|
99
|
+
state: { '@path': '$.traits.address.state' },
|
|
100
|
+
zip: { '@path': '$.traits.address.postalCode' },
|
|
101
|
+
country: { '@path': '$.traits.address.country' }
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
avatar: {
|
|
105
|
+
label: 'avatar',
|
|
106
|
+
type: 'string',
|
|
107
|
+
description: "The user's avatar image URL.",
|
|
108
|
+
default: { '@path': '$.traits.avatar' }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
perform: (request, { payload, settings }) => {
|
|
112
|
+
const host = utils_1.hosts[settings.region];
|
|
113
|
+
const body = {
|
|
114
|
+
user_identifiers: payload.user_identifiers,
|
|
115
|
+
title: payload.title,
|
|
116
|
+
name: payload.name,
|
|
117
|
+
first_name: payload.firstname,
|
|
118
|
+
last_name: payload.lastname,
|
|
119
|
+
age: payload.age,
|
|
120
|
+
dob: payload.DOB,
|
|
121
|
+
gender: payload.gender,
|
|
122
|
+
phone: payload.phone,
|
|
123
|
+
address: payload.address,
|
|
124
|
+
company: payload.company,
|
|
125
|
+
image_url: payload.avatar
|
|
126
|
+
};
|
|
127
|
+
return request(`${host}/upsert_contact`, {
|
|
128
|
+
method: 'post',
|
|
129
|
+
json: body
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
exports.default = action;
|
|
134
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/optimizely-data-platform/upsertContact/index.ts"],"names":[],"mappings":";;AAGA,sCAA4C;AAC5C,oCAAgC;AAEhC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EACT,+HAA+H;IACjI,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,gBAAgB,EAAE,yBAAgB;QAClC,OAAO,EAAE;YACP,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qDAAqD;YAClE,OAAO,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE;SACzC;QACD,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qBAAqB;YAClC,OAAO,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;SACvC;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qBAAqB;YAClC,OAAO,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;SACtC;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sBAAsB;YACnC,OAAO,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;SAC5C;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qBAAqB;YAClC,OAAO,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;SAC3C;QACD,MAAM,EAAE;YACN,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAA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: true });
|
|
3
|
+
exports.hosts = void 0;
|
|
4
|
+
exports.hosts = {
|
|
5
|
+
US: 'https://function.zaius.app/twilio_segment',
|
|
6
|
+
EU: 'https://function.eu1.ocp.optimizely.com/twilio_segment',
|
|
7
|
+
AU: 'https://function.au1.ocp.optimizely.com/twilio_segment'
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/optimizely-data-platform/utils.ts"],"names":[],"mappings":";;;AAAa,QAAA,KAAK,GAA8B;IAC9C,EAAE,EAAE,2CAA2C;IAC/C,EAAE,EAAE,wDAAwD;IAC5D,EAAE,EAAE,wDAAwD;CAC7D,CAAA"}
|
|
@@ -12,13 +12,13 @@ export declare class SegmentPublicAPIError extends HTTPError {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const MissingUserOrAnonymousIdThrowableError: PayloadValidationError;
|
|
14
14
|
export declare const InvalidEndpointSelectedThrowableError: PayloadValidationError;
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const
|
|
15
|
+
export declare const MissingExternalIdsError: PayloadValidationError;
|
|
16
|
+
export declare const MissingEmailIfEmailSubscriptionIsPresentError: PayloadValidationError;
|
|
17
|
+
export declare const MissingPhoneIfSmsOrWhatsappSubscriptionIsPresentError: PayloadValidationError;
|
|
18
|
+
export declare const MissingSubscriptionStatusesError: PayloadValidationError;
|
|
19
|
+
export declare const MissingEmailSubscriptionIfSubscriptionGroupsIsPresentError: PayloadValidationError;
|
|
20
|
+
export declare const InvalidSubscriptionStatusError: PayloadValidationError;
|
|
21
|
+
export declare const InvalidGroupSubscriptionStatusError: PayloadValidationError;
|
|
22
|
+
export declare const MissingAndroidPushTokenIfAndroidPushSubscriptionIsPresentError: PayloadValidationError;
|
|
23
|
+
export declare const MissingIosPushTokenIfIosPushSubscriptionIsPresentError: PayloadValidationError;
|
|
24
|
+
export declare const InvalidSubsriptionStatusError: PayloadValidationError;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.InvalidSubsriptionStatusError = exports.MissingIosPushTokenIfIosPushSubscriptionIsPresentError = exports.MissingAndroidPushTokenIfAndroidPushSubscriptionIsPresentError = exports.InvalidGroupSubscriptionStatusError = exports.InvalidSubscriptionStatusError = exports.MissingEmailSubscriptionIfSubscriptionGroupsIsPresentError = exports.MissingSubscriptionStatusesError = exports.MissingPhoneIfSmsOrWhatsappSubscriptionIsPresentError = exports.MissingEmailIfEmailSubscriptionIsPresentError = exports.MissingExternalIdsError = exports.InvalidEndpointSelectedThrowableError = exports.MissingUserOrAnonymousIdThrowableError = exports.SegmentPublicAPIError = void 0;
|
|
4
4
|
const actions_core_1 = require("@segment/actions-core");
|
|
5
5
|
class SegmentPublicAPIError extends actions_core_1.HTTPError {
|
|
6
6
|
}
|
|
7
7
|
exports.SegmentPublicAPIError = SegmentPublicAPIError;
|
|
8
8
|
exports.MissingUserOrAnonymousIdThrowableError = new actions_core_1.PayloadValidationError('Either `Anonymous ID` or `User ID` must be defined.');
|
|
9
9
|
exports.InvalidEndpointSelectedThrowableError = new actions_core_1.PayloadValidationError('A valid endpoint must be selected. Please check your Segment settings.');
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
10
|
+
exports.MissingExternalIdsError = new actions_core_1.PayloadValidationError('Either `Email` or `Phone` or `Android_Push_Token` or `Ios_Push_Token` must be defined.');
|
|
11
|
+
exports.MissingEmailIfEmailSubscriptionIsPresentError = new actions_core_1.PayloadValidationError('A valid `Email` must be defined for `Email_Subscription`.');
|
|
12
|
+
exports.MissingPhoneIfSmsOrWhatsappSubscriptionIsPresentError = new actions_core_1.PayloadValidationError('A valid `Phone` must be defined for `Sms_Subscription` or `Whatsapp_Subscription`.');
|
|
13
|
+
exports.MissingSubscriptionStatusesError = new actions_core_1.PayloadValidationError('If any of `Email`, `Phone`, `Android_Push_Token` or `Ios_Push_Token` is present, `Email_Subscription` or `Sms_Subscription` or `Whatsapp_Subscription` or `Ios_Push_Subscription` or `Android_Push_Subscription` must be defined.');
|
|
14
|
+
exports.MissingEmailSubscriptionIfSubscriptionGroupsIsPresentError = new actions_core_1.PayloadValidationError('`Email_Subscription` must be defined if Subscription Groups are present.');
|
|
15
|
+
exports.InvalidSubscriptionStatusError = new actions_core_1.PayloadValidationError('Invalid Subscription Status in `Email_Subscription` or `Sms_Subscription` or `Whatsapp_Subscription` or `Android_Push_Subscription` or `Ios_Push_Subscription`.');
|
|
16
|
+
exports.InvalidGroupSubscriptionStatusError = new actions_core_1.PayloadValidationError('Invalid Subscription Status for subscription groups.');
|
|
17
|
+
exports.MissingAndroidPushTokenIfAndroidPushSubscriptionIsPresentError = new actions_core_1.PayloadValidationError('A valid `Android_Push_Token` must be defined for `Android_Push_Subscription`.');
|
|
18
|
+
exports.MissingIosPushTokenIfIosPushSubscriptionIsPresentError = new actions_core_1.PayloadValidationError('A valid `Ios_Push_Token` must be defined for `Ios_Push_Subscription`.');
|
|
19
|
+
exports.InvalidSubsriptionStatusError = new actions_core_1.PayloadValidationError('Invalid Subscription Status.');
|
|
20
20
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/errors.ts"],"names":[],"mappings":";;;AAAA,wDAAyE;AAEzE,MAAa,qBAAsB,SAAQ,wBAAS;CAUnD;AAVD,sDAUC;AAEY,QAAA,sCAAsC,GAAG,IAAI,qCAAsB,CAC9E,qDAAqD,CACtD,CAAA;AAEY,QAAA,qCAAqC,GAAG,IAAI,qCAAsB,CAC7E,wEAAwE,CACzE,CAAA;AAEY,QAAA,
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/errors.ts"],"names":[],"mappings":";;;AAAA,wDAAyE;AAEzE,MAAa,qBAAsB,SAAQ,wBAAS;CAUnD;AAVD,sDAUC;AAEY,QAAA,sCAAsC,GAAG,IAAI,qCAAsB,CAC9E,qDAAqD,CACtD,CAAA;AAEY,QAAA,qCAAqC,GAAG,IAAI,qCAAsB,CAC7E,wEAAwE,CACzE,CAAA;AAEY,QAAA,uBAAuB,GAAG,IAAI,qCAAsB,CAC/D,wFAAwF,CACzF,CAAA;AAEY,QAAA,6CAA6C,GAAG,IAAI,qCAAsB,CACrF,2DAA2D,CAC5D,CAAA;AAEY,QAAA,qDAAqD,GAAG,IAAI,qCAAsB,CAC7F,oFAAoF,CACrF,CAAA;AAEY,QAAA,gCAAgC,GAAG,IAAI,qCAAsB,CACxE,mOAAmO,CACpO,CAAA;AAEY,QAAA,0DAA0D,GAAG,IAAI,qCAAsB,CAClG,0EAA0E,CAC3E,CAAA;AAEY,QAAA,8BAA8B,GAAG,IAAI,qCAAsB,CACtE,iKAAiK,CAClK,CAAA;AAEY,QAAA,mCAAmC,GAAG,IAAI,qCAAsB,CAC3E,sDAAsD,CACvD,CAAA;AAEY,QAAA,8DAA8D,GAAG,IAAI,qCAAsB,CACtG,+EAA+E,CAChF,CAAA;AAEY,QAAA,sDAAsD,GAAG,IAAI,qCAAsB,CAC9F,uEAAuE,CACxE,CAAA;AAEY,QAAA,6BAA6B,GAAG,IAAI,qCAAsB,CAAC,8BAA8B,CAAC,CAAA"}
|
|
@@ -4,13 +4,3 @@ 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 android_push_token: InputField;
|
|
10
|
-
export declare const ios_push_token: InputField;
|
|
11
|
-
export declare const email_subscription_status: InputField;
|
|
12
|
-
export declare const sms_subscription_status: InputField;
|
|
13
|
-
export declare const whatsapp_subscription_status: InputField;
|
|
14
|
-
export declare const android_push_subscription_status: InputField;
|
|
15
|
-
export declare const ios_push_subscription_status: InputField;
|
|
16
|
-
export declare const subscription_groups: InputField;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
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,61 +30,4 @@ 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.android_push_token = {
|
|
44
|
-
label: 'Android Push Token',
|
|
45
|
-
description: 'Android Push Token of the user',
|
|
46
|
-
type: 'string'
|
|
47
|
-
};
|
|
48
|
-
exports.ios_push_token = {
|
|
49
|
-
label: 'Ios Push Token',
|
|
50
|
-
description: 'Ios Push Token of the user',
|
|
51
|
-
type: 'string'
|
|
52
|
-
};
|
|
53
|
-
exports.email_subscription_status = {
|
|
54
|
-
label: 'Email Subscription Status',
|
|
55
|
-
description: 'Global status of the email subscription. True is subscribed, false is unsubscribed and null|undefined is did-not-subscribe.',
|
|
56
|
-
type: 'string',
|
|
57
|
-
allowNull: true
|
|
58
|
-
};
|
|
59
|
-
exports.sms_subscription_status = {
|
|
60
|
-
label: 'SMS Subscription Status',
|
|
61
|
-
description: 'Global status of the SMS subscription. True is subscribed, false is unsubscribed and null|undefined is did-not-subscribe.',
|
|
62
|
-
type: 'string',
|
|
63
|
-
allowNull: true
|
|
64
|
-
};
|
|
65
|
-
exports.whatsapp_subscription_status = {
|
|
66
|
-
label: 'WhatsApp Subscription Status',
|
|
67
|
-
description: 'Global status of the WhatsApp subscription. True is subscribed, false is unsubscribed and null is did-not-subscribe.',
|
|
68
|
-
type: 'string',
|
|
69
|
-
allowNull: true
|
|
70
|
-
};
|
|
71
|
-
exports.android_push_subscription_status = {
|
|
72
|
-
label: 'Android Push Subscription Status',
|
|
73
|
-
description: 'Global status of the android push subscription. True is subscribed, false is unsubscribed and null is did-not-subscribe.',
|
|
74
|
-
type: 'string',
|
|
75
|
-
allowNull: true
|
|
76
|
-
};
|
|
77
|
-
exports.ios_push_subscription_status = {
|
|
78
|
-
label: 'Ios Push Subscription Status',
|
|
79
|
-
description: 'Global status of the ios push subscription. True is subscribed, false is unsubscribed and null is did-not-subscribe.',
|
|
80
|
-
type: 'string',
|
|
81
|
-
allowNull: true
|
|
82
|
-
};
|
|
83
|
-
exports.subscription_groups = {
|
|
84
|
-
label: 'Subscription Groups',
|
|
85
|
-
description: 'Subscription status for the groups. Object containing group names as keys and statuses as values',
|
|
86
|
-
type: 'object',
|
|
87
|
-
additionalProperties: true,
|
|
88
|
-
defaultObjectUI: 'keyvalue'
|
|
89
|
-
};
|
|
90
33
|
//# 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"}
|