@metarouter/ajs-starter-kit 1.0.47 → 1.0.49

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.
@@ -0,0 +1 @@
1
+ "752553455725ec32953235c396df9039"
@@ -0,0 +1,54 @@
1
+ {
2
+ "default": {
3
+ "endpoint": "https://$$BASE_URL$$/track/v2/projects/$$PROJECT_TOKEN$$/customers/events",
4
+ "method": "POST",
5
+ "headers": [
6
+ {
7
+ "key": "Content-Type",
8
+ "value": "application/json"
9
+ },
10
+ {
11
+ "key": "Accept-Encoding",
12
+ "value": "application/json"
13
+ },
14
+ {
15
+ "key": "Authorization",
16
+ "value": "Token $$API_TOKEN$$"
17
+ }
18
+ ]
19
+ },
20
+ "eventSpecific": {
21
+ "identify": {
22
+ "endpoint": "https://$$BASE_URL$$/track/v2/projects/$$PROJECT_TOKEN$$/customers",
23
+ "method": "POST",
24
+ "headers": [
25
+ {
26
+ "key": "Content-Type",
27
+ "value": "application/json"
28
+ },
29
+ {
30
+ "key": "Accept-Encoding",
31
+ "value": "application/json"
32
+ },
33
+ {
34
+ "key": "Authorization",
35
+ "value": "Token $$API_TOKEN$$"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ "params": [
41
+ {
42
+ "name": "PROJECT_TOKEN",
43
+ "exampleValue": "my-project-token"
44
+ },
45
+ {
46
+ "name": "API_TOKEN",
47
+ "exampleValue": "my-api-token"
48
+ },
49
+ {
50
+ "name": "BASE_URL",
51
+ "exampleValue": "api.exponea.com"
52
+ }
53
+ ]
54
+ }
@@ -0,0 +1 @@
1
+ "771fc7e90ba57065f67bb20ae2212f21"
@@ -0,0 +1,19 @@
1
+ {
2
+ "isDraft": false,
3
+ "friendlyName": "Bloomreach CDP",
4
+ "description": "Bloomreach Engagement is a multi-purpose AI-driven platform that empowers you to deliver tailored commerce experiences consistently across various channels and use the data to personalize your websites and campaigns.",
5
+ "logo": "https://cdn.metarouter.io/logo.svg",
6
+ "color": "#002840",
7
+ "eventSource": {
8
+ "isAndroidApp": true,
9
+ "isIosApp": true,
10
+ "isWebApp": true
11
+ },
12
+ "inputSchema": "analytics_js",
13
+ "releaseNotes": [
14
+ {
15
+ "date": "2022-10-06T00:00:00.000Z",
16
+ "note": "Bloomreach CDP initial release."
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1 @@
1
+ "6e7f86328abfefe5e848d8683d233c7c"
@@ -0,0 +1,437 @@
1
+ {
2
+ "version": "v0.0.1",
3
+ "global": {
4
+ "mappings": [
5
+ {
6
+ "inputKey": "anonymousId",
7
+ "outputKey": "customer_ids.cookie"
8
+ },
9
+ {
10
+ "inputKey": "userId",
11
+ "outputKey": "customer_ids.customer_id"
12
+ }
13
+ ]
14
+ },
15
+ "eventSpecific": {
16
+ "page": {
17
+ "mappings": [
18
+ {
19
+ "inputKey": "properties",
20
+ "outputKey": "properties"
21
+ },
22
+ {
23
+ "inputKey": "input",
24
+ "outputKey": "timestamp",
25
+ "transforms": [
26
+ {
27
+ "expression": {
28
+ "body": "return MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp) * 1000",
29
+ "lang": "lua"
30
+ }
31
+ }
32
+ ]
33
+ }
34
+ ],
35
+ "enrichments": [
36
+ {
37
+ "staticString": "page",
38
+ "outputKey": "event_type"
39
+ }
40
+ ]
41
+ },
42
+ "identify": {
43
+ "mappings": [
44
+ {
45
+ "outputKey": "properties",
46
+ "inputKey": "traits"
47
+ },
48
+ {
49
+ "inputKey": "input",
50
+ "outputKey": "update_timestamp",
51
+ "transforms": [
52
+ {
53
+ "expression": {
54
+ "body": "return MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp) * 1000",
55
+ "lang": "lua"
56
+ }
57
+ }
58
+ ]
59
+ }
60
+ ]
61
+ },
62
+ "order_completed": {
63
+ "enrichments": [
64
+ {
65
+ "staticString": "purchase",
66
+ "outputKey": "event_type"
67
+ }
68
+ ],
69
+ "mappings": [
70
+ {
71
+ "outputKey": "properties.purchase_id",
72
+ "inputKey": "properties.order_id"
73
+ },
74
+ {
75
+ "outputKey": "properties.product_list",
76
+ "inputKey": "properties.products"
77
+ },
78
+ {
79
+ "inputKey": "input",
80
+ "outputKey": "properties.product_ids",
81
+ "transforms": [
82
+ {
83
+ "expression": {
84
+ "body": "return PLUCK(input.properties.products, \"product_id\")",
85
+ "lang": "lua"
86
+ }
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ "outputKey": "properties.total_price",
92
+ "inputKey": "properties.total"
93
+ },
94
+ {
95
+ "inputKey": "properties.currency",
96
+ "defaultString": "USD",
97
+ "outputKey": "properties.local_currency",
98
+ "transforms": [
99
+ {
100
+ "modifyString": "uppercase"
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "inputKey": "input",
106
+ "outputKey": "properties.total_quantity",
107
+ "transforms": [
108
+ {
109
+ "expression": {
110
+ "body": "return SUM(MAP(input.properties.products, function (p) return p.quantity end))",
111
+ "lang": "lua"
112
+ }
113
+ }
114
+ ]
115
+ },
116
+ {
117
+ "outputKey": "properties.shipping_cost",
118
+ "inputKey": "properties.shipping"
119
+ },
120
+ {
121
+ "outputKey": "properties.tax_value",
122
+ "inputKey": "properties.tax"
123
+ },
124
+ {
125
+ "outputKey": "properties.voucher_code",
126
+ "inputKey": "properties.coupon"
127
+ },
128
+ {
129
+ "outputKey": "properties.location",
130
+ "inputKey": "context.page.url"
131
+ },
132
+ {
133
+ "inputKey": "input",
134
+ "outputKey": "timestamp",
135
+ "transforms": [
136
+ {
137
+ "expression": {
138
+ "body": "return MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp) * 1000",
139
+ "lang": "lua"
140
+ }
141
+ }
142
+ ]
143
+ }
144
+ ]
145
+ },
146
+ "product_added": {
147
+ "enrichments": [
148
+ {
149
+ "staticString": "cart_update",
150
+ "outputKey": "event_type"
151
+ },
152
+ {
153
+ "staticString": "add",
154
+ "outputKey": "properties.action"
155
+ },
156
+ {
157
+ "staticString": "product_added",
158
+ "outputKey": "properties.page_type"
159
+ }
160
+ ],
161
+ "mappings": [
162
+ {
163
+ "inputKey": "properties.product_id",
164
+ "outputKey": "properties.product_id"
165
+ },
166
+ {
167
+ "inputKey": "properties.name",
168
+ "outputKey": "properties.title"
169
+ },
170
+ {
171
+ "inputKey": "properties.brand",
172
+ "outputKey": "properties.brand"
173
+ },
174
+ {
175
+ "inputKey": "properties.price",
176
+ "outputKey": "properties.price"
177
+ },
178
+ {
179
+ "inputKey": "properties.category",
180
+ "outputKey": "properties.category_1"
181
+ },
182
+ {
183
+ "inputKey": "properties.currency",
184
+ "defaultString": "USD",
185
+ "outputKey": "properties.local_currency",
186
+ "transforms": [
187
+ {
188
+ "modifyString": "uppercase"
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "outputKey": "properties.location",
194
+ "inputKey": "context.page.url"
195
+ },
196
+ {
197
+ "inputKey": "input",
198
+ "outputKey": "timestamp",
199
+ "transforms": [
200
+ {
201
+ "expression": {
202
+ "body": "return MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp) * 1000",
203
+ "lang": "lua"
204
+ }
205
+ }
206
+ ]
207
+ }
208
+ ]
209
+ },
210
+ "product_removed": {
211
+ "enrichments": [
212
+ {
213
+ "staticString": "cart_update",
214
+ "outputKey": "event_type"
215
+ },
216
+ {
217
+ "staticString": "remove",
218
+ "outputKey": "properties.action"
219
+ },
220
+ {
221
+ "staticString": "product_removed",
222
+ "outputKey": "properties.page_type"
223
+ }
224
+ ],
225
+ "mappings": [
226
+ {
227
+ "inputKey": "properties.product_id",
228
+ "outputKey": "properties.product_id"
229
+ },
230
+ {
231
+ "inputKey": "properties.name",
232
+ "outputKey": "properties.title"
233
+ },
234
+ {
235
+ "inputKey": "properties.brand",
236
+ "outputKey": "properties.brand"
237
+ },
238
+ {
239
+ "inputKey": "properties.price",
240
+ "outputKey": "properties.price"
241
+ },
242
+ {
243
+ "inputKey": "properties.category",
244
+ "outputKey": "properties.category_1"
245
+ },
246
+ {
247
+ "inputKey": "properties.currency",
248
+ "defaultString": "USD",
249
+ "outputKey": "properties.local_currency",
250
+ "transforms": [
251
+ {
252
+ "modifyString": "uppercase"
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "outputKey": "properties.location",
258
+ "inputKey": "context.page.url"
259
+ },
260
+ {
261
+ "inputKey": "input",
262
+ "outputKey": "timestamp",
263
+ "transforms": [
264
+ {
265
+ "expression": {
266
+ "body": "return MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp) * 1000",
267
+ "lang": "lua"
268
+ }
269
+ }
270
+ ]
271
+ }
272
+ ]
273
+ },
274
+ "checkout_step_completed": {
275
+ "enrichments": [
276
+ {
277
+ "staticString": "checkout",
278
+ "outputKey": "event_type"
279
+ }
280
+ ],
281
+ "mappings": [
282
+ {
283
+ "outputKey": "properties.product_list",
284
+ "inputKey": "properties.products"
285
+ },
286
+ {
287
+ "inputKey": "input",
288
+ "outputKey": "properties.product_ids",
289
+ "transforms": [
290
+ {
291
+ "expression": {
292
+ "body": "return PLUCK(input.properties.products, \"product_id\")",
293
+ "lang": "lua"
294
+ }
295
+ }
296
+ ]
297
+ },
298
+ {
299
+ "outputKey": "properties.total_price",
300
+ "inputKey": "properties.value"
301
+ },
302
+ {
303
+ "inputKey": "properties.currency",
304
+ "defaultString": "USD",
305
+ "outputKey": "properties.local_currency",
306
+ "transforms": [
307
+ {
308
+ "modifyString": "uppercase"
309
+ }
310
+ ]
311
+ },
312
+ {
313
+ "inputKey": "input",
314
+ "outputKey": "properties.total_quantity",
315
+ "transforms": [
316
+ {
317
+ "expression": {
318
+ "body": "return SUM(MAP(input.properties.products, function (p) return p.quantity end))",
319
+ "lang": "lua"
320
+ }
321
+ }
322
+ ]
323
+ },
324
+ {
325
+ "outputKey": "properties.shipping_cost",
326
+ "inputKey": "properties.shipping"
327
+ },
328
+ {
329
+ "outputKey": "properties.tax_value",
330
+ "inputKey": "properties.tax"
331
+ },
332
+ {
333
+ "outputKey": "properties.voucher_code",
334
+ "inputKey": "properties.coupon"
335
+ },
336
+ {
337
+ "outputKey": "properties.location",
338
+ "inputKey": "context.page.url"
339
+ },
340
+ {
341
+ "inputKey": "input",
342
+ "outputKey": "timestamp",
343
+ "transforms": [
344
+ {
345
+ "expression": {
346
+ "body": "return MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp) * 1000",
347
+ "lang": "lua"
348
+ }
349
+ }
350
+ ]
351
+ }
352
+ ]
353
+ },
354
+ "product_viewed": {
355
+ "enrichments": [
356
+ {
357
+ "staticString": "view_item",
358
+ "outputKey": "event_type"
359
+ }
360
+ ],
361
+ "mappings": [
362
+ {
363
+ "inputKey": "properties.product_id",
364
+ "outputKey": "properties.product_id"
365
+ },
366
+ {
367
+ "inputKey": "properties.name",
368
+ "outputKey": "properties.title"
369
+ },
370
+ {
371
+ "inputKey": "properties.brand",
372
+ "outputKey": "properties.brand"
373
+ },
374
+ {
375
+ "inputKey": "properties.price",
376
+ "outputKey": "properties.price"
377
+ },
378
+ {
379
+ "inputKey": "properties.category",
380
+ "outputKey": "properties.category_1"
381
+ },
382
+ {
383
+ "inputKey": "properties.currency",
384
+ "defaultString": "USD",
385
+ "outputKey": "properties.local_currency",
386
+ "transforms": [
387
+ {
388
+ "modifyString": "uppercase"
389
+ }
390
+ ]
391
+ },
392
+ {
393
+ "outputKey": "properties.location",
394
+ "inputKey": "context.page.url"
395
+ },
396
+ {
397
+ "inputKey": "input",
398
+ "outputKey": "timestamp",
399
+ "transforms": [
400
+ {
401
+ "expression": {
402
+ "body": "return MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp) * 1000",
403
+ "lang": "lua"
404
+ }
405
+ }
406
+ ]
407
+ }
408
+ ]
409
+ }
410
+ },
411
+ "default": {
412
+ "mappings": [
413
+ {
414
+ "inputKey": "event",
415
+ "outputKey": "event_type"
416
+ },
417
+ {
418
+ "inputKey": "input",
419
+ "outputKey": "timestamp",
420
+ "transforms": [
421
+ {
422
+ "expression": {
423
+ "body": "return MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp) * 1000",
424
+ "lang": "lua"
425
+ }
426
+ }
427
+ ]
428
+ }
429
+ ],
430
+ "expressions": [
431
+ {
432
+ "body": "local result = input.properties\nresult.location = input.context.page.url\nreturn { properties = result }",
433
+ "lang": "lua"
434
+ }
435
+ ]
436
+ }
437
+ }
@@ -1 +1 @@
1
- "4da0f3e5220f6c90e72061a32408a758"
1
+ "8bdcb243e6ae9dbaf745c6dc6aeba8ea"
@@ -1,5 +1,5 @@
1
1
  {
2
- "isDraft": true,
2
+ "isDraft": false,
3
3
  "friendlyName": "Google BigQuery",
4
4
  "description": "Google's managed server-less enterprise-level data warehouse. Collect structured data and run powerful queries to unlock custom insights with your customer data.",
5
5
  "logo": "https://cdn.metarouter.io/logo.svg",
@@ -14,6 +14,10 @@
14
14
  {
15
15
  "date": "2021-06-24T00:00:00.000Z",
16
16
  "note": "Google BigQuery initial release."
17
+ },
18
+ {
19
+ "date": "2022-10-25T00:00:00.000Z",
20
+ "note": "Add BigQuery to the UI."
17
21
  }
18
22
  ]
19
23
  }
package/index.js CHANGED
@@ -75,6 +75,13 @@ exports.blob = {
75
75
  metadata: require('./.dist/blob/metadata.json')
76
76
  }
77
77
 
78
+ exports.bloomreach = {
79
+ connectionTemplate: connectionSchemas.properties.bloomreach,
80
+ endpointSchema: require('./.dist/bloomreach/connection.json'),
81
+ playbook: require('./.dist/bloomreach/playbook.json'),
82
+ metadata: require('./.dist/bloomreach/metadata.json')
83
+ }
84
+
78
85
  exports.blueshift = {
79
86
  connectionTemplate: connectionSchemas.properties.blueshift,
80
87
  endpointSchema: require('./.dist/blueshift/connection.json'),
@@ -339,6 +346,11 @@ exports.etags = {
339
346
  playbook: require('./.dist/blob/playbook.etag.json'),
340
347
  kit: require('./.dist/blob/kit.etag.json')
341
348
  },
349
+ bloomreach: {
350
+ endpointSchema: require('./.dist/bloomreach/connection.etag.json'),
351
+ playbook: require('./.dist/bloomreach/playbook.etag.json'),
352
+ kit: require('./.dist/bloomreach/kit.etag.json')
353
+ },
342
354
  blueshift: {
343
355
  endpointSchema: require('./.dist/blueshift/connection.etag.json'),
344
356
  playbook: require('./.dist/blueshift/playbook.etag.json'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {