@segment/action-destinations 3.148.1-optimizely-experimentation.9 → 3.148.1-optimizely-lrucache.13
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/customerio/createUpdateObject/index.js +6 -1
- package/dist/destinations/customerio/createUpdateObject/index.js.map +1 -1
- package/dist/destinations/customerio/createUpdatePerson/index.js +8 -1
- package/dist/destinations/customerio/createUpdatePerson/index.js.map +1 -1
- package/dist/destinations/index.js +1 -1
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/insider/cartViewedEvent/generated-types.d.ts +44 -0
- package/dist/destinations/insider/cartViewedEvent/generated-types.js +3 -0
- package/dist/destinations/insider/cartViewedEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/cartViewedEvent/index.d.ts +5 -0
- package/dist/destinations/insider/cartViewedEvent/index.js +27 -0
- package/dist/destinations/insider/cartViewedEvent/index.js.map +1 -0
- package/dist/destinations/insider/checkoutEvent/generated-types.d.ts +44 -0
- package/dist/destinations/insider/checkoutEvent/generated-types.js +3 -0
- package/dist/destinations/insider/checkoutEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/checkoutEvent/index.d.ts +5 -0
- package/dist/destinations/insider/checkoutEvent/index.js +27 -0
- package/dist/destinations/insider/checkoutEvent/index.js.map +1 -0
- package/dist/destinations/insider/generated-types.d.ts +4 -0
- package/dist/destinations/insider/generated-types.js +3 -0
- package/dist/destinations/insider/generated-types.js.map +1 -0
- package/dist/destinations/insider/index.d.ts +4 -0
- package/dist/destinations/insider/index.js +66 -0
- package/dist/destinations/insider/index.js.map +1 -0
- package/dist/destinations/insider/insider-helpers.d.ts +57 -0
- package/dist/destinations/insider/insider-helpers.js +153 -0
- package/dist/destinations/insider/insider-helpers.js.map +1 -0
- package/dist/destinations/insider/insider-properties.d.ts +13 -0
- package/dist/destinations/insider/insider-properties.js +456 -0
- package/dist/destinations/insider/insider-properties.js.map +1 -0
- package/dist/destinations/insider/orderCompletedEvent/generated-types.d.ts +44 -0
- package/dist/destinations/insider/orderCompletedEvent/generated-types.js +3 -0
- package/dist/destinations/insider/orderCompletedEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/orderCompletedEvent/index.d.ts +5 -0
- package/dist/destinations/insider/orderCompletedEvent/index.js +27 -0
- package/dist/destinations/insider/orderCompletedEvent/index.js.map +1 -0
- package/dist/destinations/insider/productAddedEvent/generated-types.d.ts +41 -0
- package/dist/destinations/insider/productAddedEvent/generated-types.js +3 -0
- package/dist/destinations/insider/productAddedEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/productAddedEvent/index.d.ts +5 -0
- package/dist/destinations/insider/productAddedEvent/index.js +39 -0
- package/dist/destinations/insider/productAddedEvent/index.js.map +1 -0
- package/dist/destinations/insider/productListViewedEvent/generated-types.d.ts +34 -0
- package/dist/destinations/insider/productListViewedEvent/generated-types.js +3 -0
- package/dist/destinations/insider/productListViewedEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/productListViewedEvent/index.d.ts +5 -0
- package/dist/destinations/insider/productListViewedEvent/index.js +26 -0
- package/dist/destinations/insider/productListViewedEvent/index.js.map +1 -0
- package/dist/destinations/insider/productRemovedEvent/generated-types.d.ts +41 -0
- package/dist/destinations/insider/productRemovedEvent/generated-types.js +3 -0
- package/dist/destinations/insider/productRemovedEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/productRemovedEvent/index.d.ts +5 -0
- package/dist/destinations/insider/productRemovedEvent/index.js +39 -0
- package/dist/destinations/insider/productRemovedEvent/index.js.map +1 -0
- package/dist/destinations/insider/productViewedEvent/generated-types.d.ts +41 -0
- package/dist/destinations/insider/productViewedEvent/generated-types.js +3 -0
- package/dist/destinations/insider/productViewedEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/productViewedEvent/index.d.ts +5 -0
- package/dist/destinations/insider/productViewedEvent/index.js +39 -0
- package/dist/destinations/insider/productViewedEvent/index.js.map +1 -0
- package/dist/destinations/insider/trackEvent/generated-types.d.ts +56 -0
- package/dist/destinations/insider/trackEvent/generated-types.js +3 -0
- package/dist/destinations/insider/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/trackEvent/index.d.ts +5 -0
- package/dist/destinations/insider/trackEvent/index.js +28 -0
- package/dist/destinations/insider/trackEvent/index.js.map +1 -0
- package/dist/destinations/insider/updateUserProfile/generated-types.d.ts +19 -0
- package/dist/destinations/insider/updateUserProfile/generated-types.js +3 -0
- package/dist/destinations/insider/updateUserProfile/generated-types.js.map +1 -0
- package/dist/destinations/insider/updateUserProfile/index.d.ts +5 -0
- package/dist/destinations/insider/updateUserProfile/index.js +141 -0
- package/dist/destinations/insider/updateUserProfile/index.js.map +1 -0
- package/dist/destinations/insider/userRegisteredEvent/generated-types.d.ts +28 -0
- package/dist/destinations/insider/userRegisteredEvent/generated-types.js +3 -0
- package/dist/destinations/insider/userRegisteredEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/userRegisteredEvent/index.d.ts +5 -0
- package/dist/destinations/insider/userRegisteredEvent/index.js +25 -0
- package/dist/destinations/insider/userRegisteredEvent/index.js.map +1 -0
- package/dist/destinations/insider-audiences/generated-types.d.ts +4 -0
- package/dist/destinations/insider-audiences/generated-types.js +3 -0
- package/dist/destinations/insider-audiences/generated-types.js.map +1 -0
- package/dist/destinations/insider-audiences/index.d.ts +4 -0
- package/dist/destinations/insider-audiences/index.js +47 -0
- package/dist/destinations/insider-audiences/index.js.map +1 -0
- package/dist/destinations/insider-audiences/insider-helpers.d.ts +6 -0
- package/dist/destinations/insider-audiences/insider-helpers.js +179 -0
- package/dist/destinations/insider-audiences/insider-helpers.js.map +1 -0
- package/dist/destinations/insider-audiences/insiderAudiences/generated-types.d.ts +14 -0
- package/dist/destinations/insider-audiences/insiderAudiences/generated-types.js +3 -0
- package/dist/destinations/insider-audiences/insiderAudiences/generated-types.js.map +1 -0
- package/dist/destinations/insider-audiences/insiderAudiences/index.d.ts +5 -0
- package/dist/destinations/insider-audiences/insiderAudiences/index.js +123 -0
- package/dist/destinations/insider-audiences/insiderAudiences/index.js.map +1 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/generated-types.d.ts +1 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/index.js +10 -3
- package/dist/destinations/optimizely-feature-experimentation-actions/index.js.map +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.d.ts +17 -3
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.js +75 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.js.map +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js +4 -6
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js.map +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/types.d.ts +5 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/utils.d.ts +5 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/utils.js +10 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/utils.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.user_attributes = exports.order_event_parameters = exports.checkout_event_parameters = exports.cart_event_parameters = exports.products = exports.timestamp = exports.event_name = exports.segment_anonymous_id = exports.uuid = exports.phone_number_as_identifier = exports.email_as_identifier = exports.getEventParameteres = void 0;
|
|
4
|
+
const getEventParameteres = (wantedParameters) => {
|
|
5
|
+
const event_parameters = {
|
|
6
|
+
label: 'Event Parameters',
|
|
7
|
+
description: 'Event Parameters store information about an event.',
|
|
8
|
+
type: 'object',
|
|
9
|
+
additionalProperties: true,
|
|
10
|
+
properties: {
|
|
11
|
+
url: {
|
|
12
|
+
label: 'Link Url',
|
|
13
|
+
type: 'string'
|
|
14
|
+
},
|
|
15
|
+
currency: {
|
|
16
|
+
label: 'Currency',
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'Event. Currency used for product pricing, in ISO 4217 format (e.g. USD). Required field for Purchase and Cart Page Events.'
|
|
19
|
+
},
|
|
20
|
+
product_id: {
|
|
21
|
+
label: 'Product Id',
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'The product id associated with the product.'
|
|
24
|
+
},
|
|
25
|
+
taxonomy: {
|
|
26
|
+
label: 'Product Category',
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'Product category being viewed'
|
|
29
|
+
},
|
|
30
|
+
name: {
|
|
31
|
+
label: 'Product Name',
|
|
32
|
+
type: 'string',
|
|
33
|
+
description: 'Name of the product being viewed'
|
|
34
|
+
},
|
|
35
|
+
variant_id: {
|
|
36
|
+
label: 'Variant Id',
|
|
37
|
+
type: 'number',
|
|
38
|
+
description: 'Variant of the product'
|
|
39
|
+
},
|
|
40
|
+
unit_sale_price: {
|
|
41
|
+
label: 'Unit Sale Price',
|
|
42
|
+
type: 'number',
|
|
43
|
+
description: 'Sale Price ($) of the product being viewed. This is a numeric field. e.g. 9.90 for $9.90c.'
|
|
44
|
+
},
|
|
45
|
+
unit_price: {
|
|
46
|
+
label: 'Unit Price',
|
|
47
|
+
type: 'number',
|
|
48
|
+
description: 'Price ($) of the product being viewed. This is a numeric field. e.g. 9.90 for $9.90c.'
|
|
49
|
+
},
|
|
50
|
+
quantity: {
|
|
51
|
+
label: 'Quantity',
|
|
52
|
+
type: 'integer',
|
|
53
|
+
description: 'Quantity of a product'
|
|
54
|
+
},
|
|
55
|
+
product_image_url: {
|
|
56
|
+
label: 'Product Image Url',
|
|
57
|
+
type: 'string'
|
|
58
|
+
},
|
|
59
|
+
event_group_id: {
|
|
60
|
+
label: 'Event Group ID',
|
|
61
|
+
type: 'string',
|
|
62
|
+
description: 'Event group ID. Required field for Purchase and Cart Page Events.'
|
|
63
|
+
},
|
|
64
|
+
referrer: {
|
|
65
|
+
label: 'Referrer',
|
|
66
|
+
type: 'string'
|
|
67
|
+
},
|
|
68
|
+
user_agent: {
|
|
69
|
+
label: 'User Agent',
|
|
70
|
+
type: 'string'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
default: {
|
|
74
|
+
url: {
|
|
75
|
+
'@if': {
|
|
76
|
+
exists: { '@path': '$.properties.url' },
|
|
77
|
+
then: { '@path': '$.properties.url' },
|
|
78
|
+
else: { '@path': '$.context.page.url' }
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
currency: { '@path': '$.properties.currency' },
|
|
82
|
+
product_id: { '@path': '$.properties.product_id' },
|
|
83
|
+
taxonomy: { '@path': '$.properties.category' },
|
|
84
|
+
name: { '@path': '$.properties.name' },
|
|
85
|
+
variant_id: { '@path': '$.properties.variant' },
|
|
86
|
+
unit_sale_price: { '@path': '$.properties.price' },
|
|
87
|
+
unit_price: { '@path': '$.properties.price' },
|
|
88
|
+
quantity: { '@path': '$.properties.quantity' },
|
|
89
|
+
product_image_url: { '@path': '$.properties.image_url' },
|
|
90
|
+
event_group_id: {
|
|
91
|
+
'@if': {
|
|
92
|
+
exists: { '@path': '$.properties.order_id' },
|
|
93
|
+
then: { '@path': '$.properties.order_id' },
|
|
94
|
+
else: { '@path': '$.properties.cart_id' }
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
referrer: {
|
|
98
|
+
'@if': {
|
|
99
|
+
exists: { '@path': '$.properties.referrer' },
|
|
100
|
+
then: { '@path': '$.properties.referrer' },
|
|
101
|
+
else: { '@path': '$.context.page.referrer' }
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
user_agent: { '@path': '$.context.userAgent' }
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
if (!wantedParameters.length) {
|
|
108
|
+
return event_parameters;
|
|
109
|
+
}
|
|
110
|
+
for (const key of Object.keys(event_parameters.properties || {})) {
|
|
111
|
+
if (wantedParameters.indexOf(key) === -1 && event_parameters.properties && event_parameters.default) {
|
|
112
|
+
delete event_parameters.properties[key];
|
|
113
|
+
delete event_parameters.default[key];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return event_parameters;
|
|
117
|
+
};
|
|
118
|
+
exports.getEventParameteres = getEventParameteres;
|
|
119
|
+
exports.email_as_identifier = {
|
|
120
|
+
label: 'Treat Email as Identifier',
|
|
121
|
+
type: 'boolean',
|
|
122
|
+
description: 'If true, Email will be sent as identifier to Insider.',
|
|
123
|
+
default: true
|
|
124
|
+
};
|
|
125
|
+
exports.phone_number_as_identifier = {
|
|
126
|
+
label: 'Treat Phone Number as Identifier',
|
|
127
|
+
type: 'boolean',
|
|
128
|
+
description: 'If true, Phone Number will be sent as identifier to Insider',
|
|
129
|
+
default: true
|
|
130
|
+
};
|
|
131
|
+
exports.uuid = {
|
|
132
|
+
label: 'UUID',
|
|
133
|
+
type: 'string',
|
|
134
|
+
description: "User's unique identifier. The UUID string is used as identifier when sending data to Insider. UUID is required if the Anonymous Id field is empty.",
|
|
135
|
+
default: { '@path': '$.userId' }
|
|
136
|
+
};
|
|
137
|
+
exports.segment_anonymous_id = {
|
|
138
|
+
label: 'Anonymous Id',
|
|
139
|
+
type: 'string',
|
|
140
|
+
description: 'An Anonymous Identifier. The Anonymous Id string is used as identifier when sending data to Insider. Anonymous Id is required if the UUID field is empty.',
|
|
141
|
+
default: { '@path': '$.anonymousId' }
|
|
142
|
+
};
|
|
143
|
+
exports.event_name = {
|
|
144
|
+
label: 'Event Name',
|
|
145
|
+
type: 'string',
|
|
146
|
+
description: 'The event name',
|
|
147
|
+
required: true,
|
|
148
|
+
default: { '@path': '$.event' }
|
|
149
|
+
};
|
|
150
|
+
exports.timestamp = {
|
|
151
|
+
label: 'Timestamp',
|
|
152
|
+
description: 'When the event occurred',
|
|
153
|
+
type: 'datetime',
|
|
154
|
+
required: true,
|
|
155
|
+
default: { '@path': '$.timestamp' }
|
|
156
|
+
};
|
|
157
|
+
exports.products = {
|
|
158
|
+
label: 'Products',
|
|
159
|
+
description: 'Product details for the given event.',
|
|
160
|
+
type: 'object',
|
|
161
|
+
multiple: true,
|
|
162
|
+
additionalProperties: true,
|
|
163
|
+
properties: {
|
|
164
|
+
product_id: {
|
|
165
|
+
label: 'Product ID',
|
|
166
|
+
type: 'string',
|
|
167
|
+
description: 'Product ID'
|
|
168
|
+
},
|
|
169
|
+
taxonomy: {
|
|
170
|
+
label: 'Taxonomy',
|
|
171
|
+
type: 'string',
|
|
172
|
+
description: 'Category'
|
|
173
|
+
},
|
|
174
|
+
name: {
|
|
175
|
+
label: 'Name',
|
|
176
|
+
type: 'string',
|
|
177
|
+
description: 'Name'
|
|
178
|
+
},
|
|
179
|
+
unit_sale_price: {
|
|
180
|
+
label: 'Unit Sale Price',
|
|
181
|
+
type: 'number',
|
|
182
|
+
description: 'Unit price of the product. Required field for Purchase and Cart Page Events.'
|
|
183
|
+
},
|
|
184
|
+
unit_price: {
|
|
185
|
+
label: 'Unit Price',
|
|
186
|
+
type: 'number',
|
|
187
|
+
description: 'Price'
|
|
188
|
+
},
|
|
189
|
+
quantity: {
|
|
190
|
+
label: 'Quantity',
|
|
191
|
+
type: 'integer',
|
|
192
|
+
description: 'Quantity'
|
|
193
|
+
},
|
|
194
|
+
url: {
|
|
195
|
+
label: 'Product Url',
|
|
196
|
+
type: 'string',
|
|
197
|
+
description: 'Product Url'
|
|
198
|
+
},
|
|
199
|
+
product_image_url: {
|
|
200
|
+
label: 'Product Image Url',
|
|
201
|
+
type: 'string',
|
|
202
|
+
description: 'Product Image Url'
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
default: {
|
|
206
|
+
'@arrayPath': [
|
|
207
|
+
'$.properties.products',
|
|
208
|
+
{
|
|
209
|
+
product_id: { '@path': 'product_id' },
|
|
210
|
+
taxonomy: { '@path': 'category' },
|
|
211
|
+
name: { '@path': 'name' },
|
|
212
|
+
variant_id: { '@path': 'variant' },
|
|
213
|
+
unit_sale_price: { '@path': 'price' },
|
|
214
|
+
unit_price: { '@path': 'price' },
|
|
215
|
+
quantity: { '@path': 'quantity' },
|
|
216
|
+
url: { '@path': 'url' },
|
|
217
|
+
product_image_url: { '@path': 'image_url' }
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
exports.cart_event_parameters = {
|
|
223
|
+
label: 'Event Parameters',
|
|
224
|
+
description: 'Event Parameters store information about an event.',
|
|
225
|
+
type: 'object',
|
|
226
|
+
additionalProperties: true,
|
|
227
|
+
properties: {
|
|
228
|
+
currency: {
|
|
229
|
+
label: 'Currency',
|
|
230
|
+
type: 'string',
|
|
231
|
+
description: 'Event. Currency used for product pricing, in ISO 4217 format (e.g. USD). Required field for Purchase and Cart Page Events.'
|
|
232
|
+
},
|
|
233
|
+
event_group_id: {
|
|
234
|
+
label: 'Event Group ID',
|
|
235
|
+
type: 'string',
|
|
236
|
+
description: 'Event group ID. Required field for Purchase and Cart Page Events.'
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
default: {
|
|
240
|
+
currency: { '@path': '$.properties.currency' },
|
|
241
|
+
event_group_id: { '@path': '$.properties.cart_id' }
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
exports.checkout_event_parameters = {
|
|
245
|
+
label: 'Event Parameters',
|
|
246
|
+
description: 'Event Parameters store information about an event.',
|
|
247
|
+
type: 'object',
|
|
248
|
+
additionalProperties: true,
|
|
249
|
+
properties: {
|
|
250
|
+
currency: {
|
|
251
|
+
label: 'Currency',
|
|
252
|
+
type: 'string',
|
|
253
|
+
description: 'Event. Currency used for product pricing, in ISO 4217 format (e.g. USD). Required field for Purchase and Cart Page Events.'
|
|
254
|
+
},
|
|
255
|
+
event_group_id: {
|
|
256
|
+
label: 'Event Group ID',
|
|
257
|
+
type: 'string',
|
|
258
|
+
description: 'Event group ID. Required field for Purchase and Cart Page Events.'
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
default: {
|
|
262
|
+
currency: { '@path': '$.properties.currency' },
|
|
263
|
+
event_group_id: {
|
|
264
|
+
'@if': {
|
|
265
|
+
exists: { '@path': '$.properties.checkout_id' },
|
|
266
|
+
then: { '@path': '$.properties.checkout_id' },
|
|
267
|
+
else: { '@path': '$.properties.order_id' }
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
exports.order_event_parameters = {
|
|
273
|
+
label: 'Event Parameters',
|
|
274
|
+
description: 'Event Parameters store information about an event.',
|
|
275
|
+
type: 'object',
|
|
276
|
+
additionalProperties: true,
|
|
277
|
+
properties: {
|
|
278
|
+
currency: {
|
|
279
|
+
label: 'Currency',
|
|
280
|
+
type: 'string',
|
|
281
|
+
description: 'Event. Currency used for product pricing, in ISO 4217 format (e.g. USD). Required field for Purchase and Cart Page Events.'
|
|
282
|
+
},
|
|
283
|
+
event_group_id: {
|
|
284
|
+
label: 'Event Group ID',
|
|
285
|
+
type: 'string',
|
|
286
|
+
description: 'Event group ID. Required field for Purchase and Cart Page Events.'
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
default: {
|
|
290
|
+
currency: { '@path': '$.properties.currency' },
|
|
291
|
+
event_group_id: { '@path': '$.properties.order_id' }
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
exports.user_attributes = {
|
|
295
|
+
label: 'User Properties',
|
|
296
|
+
description: 'User Properties defines all the details about a user.',
|
|
297
|
+
type: 'object',
|
|
298
|
+
additionalProperties: true,
|
|
299
|
+
properties: {
|
|
300
|
+
email: {
|
|
301
|
+
label: 'Email',
|
|
302
|
+
type: 'string',
|
|
303
|
+
description: 'Email address of a user'
|
|
304
|
+
},
|
|
305
|
+
phone: {
|
|
306
|
+
label: 'Phone Number',
|
|
307
|
+
type: 'string',
|
|
308
|
+
description: "User's phone number in E.164 format (e.g. +6598765432), can be used as an identifier."
|
|
309
|
+
},
|
|
310
|
+
age: {
|
|
311
|
+
label: 'Age',
|
|
312
|
+
type: 'number',
|
|
313
|
+
description: 'Age of a user'
|
|
314
|
+
},
|
|
315
|
+
birthday: {
|
|
316
|
+
label: 'Phone Number',
|
|
317
|
+
type: 'string',
|
|
318
|
+
description: 'User’s birthday'
|
|
319
|
+
},
|
|
320
|
+
name: {
|
|
321
|
+
label: 'User First Name',
|
|
322
|
+
type: 'string',
|
|
323
|
+
description: 'First name of a user'
|
|
324
|
+
},
|
|
325
|
+
gender: {
|
|
326
|
+
label: 'Gender',
|
|
327
|
+
type: 'string',
|
|
328
|
+
description: 'Gender of a user'
|
|
329
|
+
},
|
|
330
|
+
surname: {
|
|
331
|
+
label: 'User Surname',
|
|
332
|
+
type: 'string',
|
|
333
|
+
description: 'Last name of a user'
|
|
334
|
+
},
|
|
335
|
+
app_version: {
|
|
336
|
+
label: 'App Version',
|
|
337
|
+
type: 'string'
|
|
338
|
+
},
|
|
339
|
+
idfa: {
|
|
340
|
+
label: 'IDFA',
|
|
341
|
+
type: 'string',
|
|
342
|
+
description: 'IDFA used for Google and Facebook remarketing'
|
|
343
|
+
},
|
|
344
|
+
model: {
|
|
345
|
+
label: 'Device Model',
|
|
346
|
+
type: 'string'
|
|
347
|
+
},
|
|
348
|
+
last_ip: {
|
|
349
|
+
label: 'Ip Adresses',
|
|
350
|
+
type: 'string'
|
|
351
|
+
},
|
|
352
|
+
city: {
|
|
353
|
+
label: 'City',
|
|
354
|
+
type: 'string'
|
|
355
|
+
},
|
|
356
|
+
country: {
|
|
357
|
+
label: 'Country',
|
|
358
|
+
type: 'string'
|
|
359
|
+
},
|
|
360
|
+
carrier: {
|
|
361
|
+
label: 'Carrier',
|
|
362
|
+
type: 'string'
|
|
363
|
+
},
|
|
364
|
+
os_version: {
|
|
365
|
+
label: 'OS Version',
|
|
366
|
+
type: 'string'
|
|
367
|
+
},
|
|
368
|
+
platform: {
|
|
369
|
+
label: 'OS Name',
|
|
370
|
+
type: 'string'
|
|
371
|
+
},
|
|
372
|
+
timezone: {
|
|
373
|
+
label: 'Timezone',
|
|
374
|
+
type: 'string'
|
|
375
|
+
},
|
|
376
|
+
locale: {
|
|
377
|
+
label: 'Locale',
|
|
378
|
+
type: 'string'
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
default: {
|
|
382
|
+
email: {
|
|
383
|
+
'@if': {
|
|
384
|
+
exists: { '@path': '$.context.traits.email' },
|
|
385
|
+
then: { '@path': '$.context.traits.email' },
|
|
386
|
+
else: { '@path': '$.properties.email' }
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
phone: {
|
|
390
|
+
'@if': {
|
|
391
|
+
exists: { '@path': '$.context.traits.phone' },
|
|
392
|
+
then: { '@path': '$.context.traits.phone' },
|
|
393
|
+
else: { '@path': '$.properties.phone' }
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
age: {
|
|
397
|
+
'@if': {
|
|
398
|
+
exists: { '@path': '$.context.traits.age' },
|
|
399
|
+
then: { '@path': '$.context.traits.age' },
|
|
400
|
+
else: { '@path': '$.properties.age' }
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
birthday: {
|
|
404
|
+
'@if': {
|
|
405
|
+
exists: { '@path': '$.context.traits.birthday' },
|
|
406
|
+
then: { '@path': '$.context.traits.birthday' },
|
|
407
|
+
else: { '@path': '$.properties.birthday' }
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
name: {
|
|
411
|
+
'@if': {
|
|
412
|
+
exists: { '@path': '$.context.traits.first_name' },
|
|
413
|
+
then: { '@path': '$.context.traits.first_name' },
|
|
414
|
+
else: { '@path': '$.properties.first_name' }
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
gender: {
|
|
418
|
+
'@if': {
|
|
419
|
+
exists: { '@path': '$.context.traits.gender' },
|
|
420
|
+
then: { '@path': '$.context.traits.gender' },
|
|
421
|
+
else: { '@path': '$.properties.gender' }
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
surname: {
|
|
425
|
+
'@if': {
|
|
426
|
+
exists: { '@path': '$.context.traits.last_name' },
|
|
427
|
+
then: { '@path': '$.context.traits.last_name' },
|
|
428
|
+
else: { '@path': '$.properties.last_name' }
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
app_version: { '@path': '$.context.app.version' },
|
|
432
|
+
idfa: { '@path': '$.context.device.advertisingId' },
|
|
433
|
+
model: { '@path': '$.context.device.model' },
|
|
434
|
+
last_ip: { '@path': '$.context.ip' },
|
|
435
|
+
city: {
|
|
436
|
+
'@if': {
|
|
437
|
+
exists: { '@path': '$.context.location.city' },
|
|
438
|
+
then: { '@path': '$.context.location.city' },
|
|
439
|
+
else: { '@path': '$.properties.address.city' }
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
country: {
|
|
443
|
+
'@if': {
|
|
444
|
+
exists: { '@path': '$.context.location.country' },
|
|
445
|
+
then: { '@path': '$.context.location.country' },
|
|
446
|
+
else: { '@path': '$.properties.address.country' }
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
carrier: { '@path': '$.context.network.carrier' },
|
|
450
|
+
os_version: { '@path': '$.context.os.version' },
|
|
451
|
+
platform: { '@path': '$.context.os.name' },
|
|
452
|
+
timezone: { '@path': '$.context.timezone' },
|
|
453
|
+
locale: { '@path': '$.context.locale' }
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
//# sourceMappingURL=insider-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insider-properties.js","sourceRoot":"","sources":["../../../src/destinations/insider/insider-properties.ts"],"names":[],"mappings":";;;AAEO,MAAM,mBAAmB,GAAG,CAAC,gBAA0B,EAAc,EAAE;IAC5E,MAAM,gBAAgB,GAAe;QACnC,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,oDAAoD;QACjE,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,IAAI;QAC1B,UAAU,EAAE;YACV,GAAG,EAAE;gBACH,KAAK,EAAE,UAAU;gBACjB,IAAI,EAAE,QAAQ;aACf;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,UAAU;gBACjB,IAAI,EAAE,QAAQ;gB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E,OAAO,EAAE,uBAAuB,EAAE;QACjD,IAAI,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE;QACnD,KAAK,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;QAC5C,OAAO,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;QACpC,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE;gBAC9C,IAAI,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE;gBAC5C,IAAI,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE;aAC/C;SACF;QACD,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE;gBACjD,IAAI,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE;gBAC/C,IAAI,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE;aAClD;SACF;QACD,OAAO,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE;QACjD,UAAU,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;QAC/C,QAAQ,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE;QAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;QAC3C,MAAM,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE;KACxC;CACF,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
email_as_identifier?: boolean;
|
|
3
|
+
phone_number_as_identifier?: boolean;
|
|
4
|
+
uuid?: string;
|
|
5
|
+
segment_anonymous_id?: string;
|
|
6
|
+
timestamp: string | number;
|
|
7
|
+
parameters?: {
|
|
8
|
+
currency?: string;
|
|
9
|
+
event_group_id?: string;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
products?: {
|
|
13
|
+
product_id?: string;
|
|
14
|
+
taxonomy?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
unit_sale_price?: number;
|
|
17
|
+
unit_price?: number;
|
|
18
|
+
quantity?: number;
|
|
19
|
+
url?: string;
|
|
20
|
+
product_image_url?: string;
|
|
21
|
+
[k: string]: unknown;
|
|
22
|
+
}[];
|
|
23
|
+
attributes?: {
|
|
24
|
+
email?: string;
|
|
25
|
+
phone?: string;
|
|
26
|
+
age?: number;
|
|
27
|
+
birthday?: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
gender?: string;
|
|
30
|
+
surname?: string;
|
|
31
|
+
app_version?: string;
|
|
32
|
+
idfa?: string;
|
|
33
|
+
model?: string;
|
|
34
|
+
last_ip?: string;
|
|
35
|
+
city?: string;
|
|
36
|
+
country?: string;
|
|
37
|
+
carrier?: string;
|
|
38
|
+
os_version?: string;
|
|
39
|
+
platform?: string;
|
|
40
|
+
timezone?: string;
|
|
41
|
+
locale?: string;
|
|
42
|
+
[k: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/insider/orderCompletedEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const insider_properties_1 = require("../insider-properties");
|
|
4
|
+
const insider_helpers_1 = require("../insider-helpers");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Order Completed Event',
|
|
7
|
+
description: 'Record Order Completed Event to Insider',
|
|
8
|
+
defaultSubscription: 'type = "track" and event = "Order Completed"',
|
|
9
|
+
fields: {
|
|
10
|
+
email_as_identifier: { ...insider_properties_1.email_as_identifier },
|
|
11
|
+
phone_number_as_identifier: { ...insider_properties_1.phone_number_as_identifier },
|
|
12
|
+
uuid: { ...insider_properties_1.uuid },
|
|
13
|
+
segment_anonymous_id: { ...insider_properties_1.segment_anonymous_id },
|
|
14
|
+
timestamp: { ...insider_properties_1.timestamp },
|
|
15
|
+
parameters: { ...insider_properties_1.order_event_parameters },
|
|
16
|
+
products: { ...insider_properties_1.products },
|
|
17
|
+
attributes: { ...insider_properties_1.user_attributes }
|
|
18
|
+
},
|
|
19
|
+
perform: (request, data) => {
|
|
20
|
+
return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
|
|
21
|
+
method: 'post',
|
|
22
|
+
json: insider_helpers_1.sendTrackEvent(data.payload, 'confirmation_page_view')
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.default = action;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/orderCompletedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAS8B;AAC9B,wDAA8E;AAE9E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,yCAAyC;IACtD,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE,EAAE,GAAG,2CAAsB,EAAE;QACzC,QAAQ,EAAE,EAAE,GAAG,6BAAQ,EAAE;QACzB,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,wBAAwB,CAAC;SAC7D,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
email_as_identifier?: boolean;
|
|
3
|
+
phone_number_as_identifier?: boolean;
|
|
4
|
+
uuid?: string;
|
|
5
|
+
segment_anonymous_id?: string;
|
|
6
|
+
timestamp: string | number;
|
|
7
|
+
parameters?: {
|
|
8
|
+
url?: string;
|
|
9
|
+
currency?: string;
|
|
10
|
+
product_id?: string;
|
|
11
|
+
taxonomy?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
unit_sale_price?: number;
|
|
14
|
+
unit_price?: number;
|
|
15
|
+
quantity?: number;
|
|
16
|
+
product_image_url?: string;
|
|
17
|
+
referrer?: string;
|
|
18
|
+
[k: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
attributes?: {
|
|
21
|
+
email?: string;
|
|
22
|
+
phone?: string;
|
|
23
|
+
age?: number;
|
|
24
|
+
birthday?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
gender?: string;
|
|
27
|
+
surname?: string;
|
|
28
|
+
app_version?: string;
|
|
29
|
+
idfa?: string;
|
|
30
|
+
model?: string;
|
|
31
|
+
last_ip?: string;
|
|
32
|
+
city?: string;
|
|
33
|
+
country?: string;
|
|
34
|
+
carrier?: string;
|
|
35
|
+
os_version?: string;
|
|
36
|
+
platform?: string;
|
|
37
|
+
timezone?: string;
|
|
38
|
+
locale?: string;
|
|
39
|
+
[k: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productAddedEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const insider_properties_1 = require("../insider-properties");
|
|
4
|
+
const insider_helpers_1 = require("../insider-helpers");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Product Added Event',
|
|
7
|
+
description: 'Record Product Added Event to Insider',
|
|
8
|
+
defaultSubscription: 'type = "track" and event = "Product Added"',
|
|
9
|
+
fields: {
|
|
10
|
+
email_as_identifier: { ...insider_properties_1.email_as_identifier },
|
|
11
|
+
phone_number_as_identifier: { ...insider_properties_1.phone_number_as_identifier },
|
|
12
|
+
uuid: { ...insider_properties_1.uuid },
|
|
13
|
+
segment_anonymous_id: { ...insider_properties_1.segment_anonymous_id },
|
|
14
|
+
timestamp: { ...insider_properties_1.timestamp },
|
|
15
|
+
parameters: {
|
|
16
|
+
...insider_properties_1.getEventParameteres([
|
|
17
|
+
'taxonomy',
|
|
18
|
+
'url',
|
|
19
|
+
'currency',
|
|
20
|
+
'unit_price',
|
|
21
|
+
'unit_sale_price',
|
|
22
|
+
'referrer',
|
|
23
|
+
'product_id',
|
|
24
|
+
'name',
|
|
25
|
+
'product_image_url',
|
|
26
|
+
'quantity'
|
|
27
|
+
])
|
|
28
|
+
},
|
|
29
|
+
attributes: { ...insider_properties_1.user_attributes }
|
|
30
|
+
},
|
|
31
|
+
perform: (request, data) => {
|
|
32
|
+
return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
|
|
33
|
+
method: 'post',
|
|
34
|
+
json: insider_helpers_1.sendTrackEvent(data.payload, 'item_added_to_cart')
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.default = action;
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productAddedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAQ8B;AAC9B,wDAA8E;AAE9E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,uCAAuC;IACpD,mBAAmB,EAAE,4CAA4C;IACjE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE;YACV,GAAG,wCAAmB,CAAC;gBACrB,UAAU;gBACV,KAAK;gBACL,UAAU;gBACV,YAAY;gBACZ,iBAAiB;gBACjB,UAAU;gBACV,YAAY;gBACZ,MAAM;gBACN,mBAAmB;gBACnB,UAAU;aACX,CAAC;SACH;QACD,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,oBAAoB,CAAC;SACzD,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|