@metarouter/ajs-starter-kit 1.0.80 → 1.0.81

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.
@@ -1 +1 @@
1
- "336af703682abd0abed08e879d1da392"
1
+ "e9270d14fcb8a03044e65cbd0d2de54b"
@@ -15,6 +15,10 @@
15
15
  {
16
16
  "date": "2024-02-07T00:00:00.000Z",
17
17
  "note": "Movable Ink - Customer Data initial release."
18
+ },
19
+ {
20
+ "date": "2024-02-12T00:00:00.000Z",
21
+ "note": "New event implementation: `product_removed`."
18
22
  }
19
23
  ]
20
24
  }
@@ -1 +1 @@
1
- "6eec9986ab61724920bac87ac9dc1c6f"
1
+ "0fbed9651430f53c3059086dfe14bab3"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0",
2
+ "version": "0.2.0",
3
3
  "default": {
4
4
  "filters": [
5
5
  {
@@ -330,6 +330,94 @@
330
330
  }
331
331
  ]
332
332
  },
333
+ "product_removed": {
334
+ "mappings": [
335
+ {
336
+ "inputKey": "properties.cart_id",
337
+ "outputKey": "properties.cart_id",
338
+ "transforms": [
339
+ {
340
+ "substring": {
341
+ "start": 0,
342
+ "end": 256
343
+ }
344
+ }
345
+ ]
346
+ },
347
+ {
348
+ "inputKey": "properties",
349
+ "outputKey": "properties.product_id",
350
+ "transforms": [
351
+ {
352
+ "expression": {
353
+ "lang": "lua",
354
+ "body": "return SUBSTRING(input.properties.product_id, 0, 256) or SUBSTRING(input.properties.sku, 0, 256)"
355
+ }
356
+ }
357
+ ]
358
+ },
359
+ {
360
+ "inputKey": "properties.sku",
361
+ "outputKey": "properties.sku",
362
+ "transforms": [
363
+ {
364
+ "substring": {
365
+ "start": 0,
366
+ "end": 256
367
+ }
368
+ }
369
+ ]
370
+ },
371
+ {
372
+ "inputKey": "properties.category",
373
+ "outputKey": "properties.category",
374
+ "transforms": [
375
+ {
376
+ "substring": {
377
+ "start": 0,
378
+ "end": 256
379
+ }
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "inputKey": "properties.currency",
385
+ "outputKey": "properties.currency"
386
+ },
387
+ {
388
+ "inputKey": "properties.name",
389
+ "outputKey": "properties.name",
390
+ "transforms": [
391
+ {
392
+ "substring": {
393
+ "start": 0,
394
+ "end": 256
395
+ }
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ "inputKey": "properties.price",
401
+ "outputKey": "properties.price"
402
+ },
403
+ {
404
+ "inputKey": "properties.quantity",
405
+ "outputKey": "properties.quantity"
406
+ },
407
+ {
408
+ "inputKey": "properties.url",
409
+ "outputKey": "properties.url",
410
+ "transforms": [
411
+ {
412
+ "substring": {
413
+ "start": 0,
414
+ "end": 256
415
+ }
416
+ }
417
+ ]
418
+ }
419
+ ]
420
+ },
333
421
  "cart_viewed": {
334
422
  "mappings": [
335
423
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {