@metarouter/ajs-starter-kit 1.0.81-alpha.1 → 1.0.82-alpha.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.
Files changed (53) hide show
  1. package/.dist/README.md +139 -0
  2. package/.dist/blob/kit.etag.json +1 -1
  3. package/.dist/blob/metadata.json +4 -0
  4. package/.dist/blob/playbook.etag.json +1 -1
  5. package/.dist/blob/playbook.json +9 -5
  6. package/.dist/commission-junction/connection.etag.json +1 -1
  7. package/.dist/commission-junction/connection.json +53 -2
  8. package/.dist/commission-junction/kit.etag.json +1 -1
  9. package/.dist/commission-junction/metadata.json +4 -0
  10. package/.dist/commission-junction/playbook.etag.json +1 -1
  11. package/.dist/commission-junction/playbook.json +167 -33
  12. package/.dist/gcs/kit.etag.json +1 -1
  13. package/.dist/gcs/metadata.json +4 -0
  14. package/.dist/gcs/playbook.etag.json +1 -1
  15. package/.dist/gcs/playbook.json +9 -5
  16. package/.dist/google-pubsub/kit.etag.json +1 -1
  17. package/.dist/google-pubsub/metadata.json +4 -0
  18. package/.dist/google-pubsub/playbook.etag.json +1 -1
  19. package/.dist/google-pubsub/playbook.json +9 -5
  20. package/.dist/kafka/kit.etag.json +1 -1
  21. package/.dist/kafka/metadata.json +4 -0
  22. package/.dist/kafka/playbook.etag.json +1 -1
  23. package/.dist/kafka/playbook.json +9 -5
  24. package/.dist/kinesis/kit.etag.json +1 -1
  25. package/.dist/kinesis/metadata.json +4 -0
  26. package/.dist/kinesis/playbook.etag.json +1 -1
  27. package/.dist/kinesis/playbook.json +9 -5
  28. package/.dist/movable-ink-customer-data/kit.etag.json +1 -1
  29. package/.dist/movable-ink-customer-data/metadata.json +4 -0
  30. package/.dist/movable-ink-customer-data/playbook.etag.json +1 -1
  31. package/.dist/movable-ink-customer-data/playbook.json +89 -1
  32. package/.dist/s3/kit.etag.json +1 -1
  33. package/.dist/s3/metadata.json +4 -0
  34. package/.dist/s3/playbook.etag.json +1 -1
  35. package/.dist/s3/playbook.json +9 -5
  36. package/.dist/snowflake/kit.etag.json +1 -1
  37. package/.dist/snowflake/metadata.json +4 -8
  38. package/.dist/snowflake/playbook.etag.json +1 -1
  39. package/.dist/snowflake/playbook.json +1 -9
  40. package/.dist/treasure-data/connection.etag.json +1 -0
  41. package/.dist/treasure-data/connection.json +42 -0
  42. package/.dist/treasure-data/kit.etag.json +1 -0
  43. package/.dist/treasure-data/metadata.json +20 -0
  44. package/.dist/treasure-data/playbook.etag.json +1 -0
  45. package/.dist/treasure-data/playbook.json +95 -0
  46. package/.dist/zeotap/connection.etag.json +1 -0
  47. package/.dist/zeotap/connection.json +28 -0
  48. package/.dist/zeotap/kit.etag.json +1 -0
  49. package/.dist/zeotap/metadata.json +20 -0
  50. package/.dist/zeotap/playbook.etag.json +1 -0
  51. package/.dist/zeotap/playbook.json +95 -0
  52. package/index.js +24 -0
  53. package/package.json +1 -1
@@ -1,7 +1,11 @@
1
1
  {
2
- "version": "0.1.0",
3
- "default": {},
4
- "modes": [
5
- "identity"
6
- ]
2
+ "version": "0.2.0",
3
+ "global": {
4
+ "expressions": [
5
+ {
6
+ "body": "return input",
7
+ "lang": "lua"
8
+ }
9
+ ]
10
+ }
7
11
  }
@@ -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
  {
@@ -1 +1 @@
1
- "5ba24043e5afd91afafdbae6603d7784"
1
+ "b8700998fced0675b28d6b1fe0c70a17"
@@ -27,6 +27,10 @@
27
27
  {
28
28
  "date": "2023-12-13T00:00:00.000Z",
29
29
  "note": "Marked as stable version: 1.0.0"
30
+ },
31
+ {
32
+ "date": "2024-02-13T00:00:00.000Z",
33
+ "note": "Removed Identity"
30
34
  }
31
35
  ]
32
36
  }
@@ -1 +1 @@
1
- "3f0081773506e639693f56929427a536"
1
+ "d9c038d6e831c71a2b4bac5dcbf4b42e"
@@ -1,7 +1,11 @@
1
1
  {
2
- "version": "1.0.0",
3
- "default": {},
4
- "modes": [
5
- "identity"
6
- ]
2
+ "version": "1.1.0",
3
+ "global": {
4
+ "expressions": [
5
+ {
6
+ "body": "return input",
7
+ "lang": "lua"
8
+ }
9
+ ]
10
+ }
7
11
  }
@@ -1 +1 @@
1
- "4622d0d68979ba2f2f44da432e1549e4"
1
+ "814eff5000dc4ff9d79d89b8e52d8587"
@@ -1,10 +1,10 @@
1
1
  {
2
- "isDraft": false,
3
- "isBeta": true,
2
+ "isDraft": true,
3
+ "isBeta": false,
4
4
  "friendlyName": "Snowflake",
5
- "description": "Snowflake is a cloud-based data storage and analytics service that provides rapid, easy-to-work-with access to extensive amounts of data.",
5
+ "description": "Snowflake is a fully-managed service that’s simple to use but can power a near-unlimited number of concurrent workloads.",
6
6
  "logo": "https://cdn.metarouter.io/logo.svg",
7
- "color": "#c6fbff",
7
+ "color": "#29b5e8",
8
8
  "eventSource": {
9
9
  "isAndroidApp": true,
10
10
  "isIosApp": true,
@@ -23,10 +23,6 @@
23
23
  {
24
24
  "date": "2023-12-13T00:00:00.000Z",
25
25
  "note": "Marked as unstable version: 0.1.0"
26
- },
27
- {
28
- "date": "2023-02-07T00:00:00.000Z",
29
- "note": "Marked as beta"
30
26
  }
31
27
  ]
32
28
  }
@@ -1 +1 @@
1
- "2790fcda652871fe5f3d8cbb532b920d"
1
+ "f16c24c256a8b248553c8ae3bd5d5384"
@@ -1,11 +1,3 @@
1
1
  {
2
- "version": "0.1.0",
3
- "default": {
4
- "expressions": [
5
- {
6
- "body": "return input",
7
- "lang": "lua"
8
- }
9
- ]
10
- }
2
+ "version": "0.1.0"
11
3
  }
@@ -0,0 +1 @@
1
+ "892703683c92f11203edf88fa577b3d4"
@@ -0,0 +1,42 @@
1
+ {
2
+ "params": [
3
+ {
4
+ "name": "ENDPOINT",
5
+ "isOptional": false,
6
+ "exampleValue": "my-endpoint"
7
+ },
8
+ {
9
+ "name": "API_KEY",
10
+ "isOptional": false,
11
+ "exampleValue": "my-api-key"
12
+ },
13
+ {
14
+ "name": "DATABASE_ID",
15
+ "isOptional": false,
16
+ "exampleValue": "my-database-id"
17
+ },
18
+ {
19
+ "name": "TABLE_ID",
20
+ "isOptional": false,
21
+ "exampleValue": "my-ingestion-id"
22
+ }
23
+ ],
24
+ "default": {
25
+ "endpoint": "$$ENDPOINT$$/$$DATABASE_ID$$/$$TABLE_ID$$",
26
+ "method": "POST",
27
+ "headers": [
28
+ {
29
+ "key": "Content-Type",
30
+ "value": "application/vnd.treasuredata.v1.single+json"
31
+ },
32
+ {
33
+ "key": "Accept-Encoding",
34
+ "value": "application/json"
35
+ },
36
+ {
37
+ "key": "Authorization",
38
+ "value": "TD1 $$API_KEY$$"
39
+ }
40
+ ]
41
+ }
42
+ }
@@ -0,0 +1 @@
1
+ "2d57b3ceaeb3567381f3690ebf634f0c"
@@ -0,0 +1,20 @@
1
+ {
2
+ "isDraft": false,
3
+ "isBeta": true,
4
+ "friendlyName": "Treasure Data",
5
+ "description": "Treasure Data is a customer data platform (CDP) that unifies offline and online customer touchpoints.",
6
+ "logo": "https://cdn.metarouter.io/logo.svg",
7
+ "color": "#",
8
+ "eventSource": {
9
+ "isAndroidApp": true,
10
+ "isIosApp": true,
11
+ "isWebApp": true
12
+ },
13
+ "inputSchema": "analytics_js",
14
+ "releaseNotes": [
15
+ {
16
+ "date": "2024-02-21T00:00:00.000Z",
17
+ "note": "Initial release; beta."
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1 @@
1
+ "b41b6a6abf842c24f13a67478667c4f9"
@@ -0,0 +1,95 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "global": {
4
+ "mappings": [
5
+ {
6
+ "inputKey": "messageId",
7
+ "outputKey": "id"
8
+ },
9
+ {
10
+ "inputKey": "userId",
11
+ "outputKey": "user_id"
12
+ },
13
+ {
14
+ "inputKey": "previousId",
15
+ "outputKey": "previous_id"
16
+ },
17
+ {
18
+ "inputKey": "anonymousId",
19
+ "outputKey": "anonymous_id"
20
+ },
21
+ {
22
+ "inputKey": "originalTimestamp",
23
+ "outputKey": "original_timestamp"
24
+ },
25
+ {
26
+ "inputKey": "receivedAt",
27
+ "outputKey": "received_at"
28
+ },
29
+ {
30
+ "inputKey": "sentAt",
31
+ "outputKey": "sent_at"
32
+ },
33
+ {
34
+ "inputKey": "timestamp",
35
+ "outputKey": "timestamp"
36
+ },
37
+ {
38
+ "inputKey": "integrations",
39
+ "outputKey": "integrations",
40
+ "transforms": [
41
+ {
42
+ "toScalar": "string"
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ "inputKey": "type",
48
+ "outputKey": "type"
49
+ },
50
+ {
51
+ "inputKey": "event",
52
+ "outputKey": "event"
53
+ },
54
+ {
55
+ "inputKey": "name",
56
+ "outputKey": "name"
57
+ },
58
+ {
59
+ "inputKey": "category",
60
+ "outputKey": "category"
61
+ },
62
+ {
63
+ "inputKey": "properties.title",
64
+ "outputKey": "_titleHash",
65
+ "transforms": [
66
+ {
67
+ "toHash": "md5"
68
+ }
69
+ ]
70
+ }
71
+ ],
72
+ "spreadings": [
73
+ {
74
+ "flatten": {
75
+ "depth": 5,
76
+ "prefix": "context",
77
+ "separator": "_"
78
+ },
79
+ "inputKey": "context"
80
+ },
81
+ {
82
+ "flatten": {
83
+ "separator": "_"
84
+ },
85
+ "inputKey": "traits"
86
+ },
87
+ {
88
+ "flatten": {
89
+ "separator": "_"
90
+ },
91
+ "inputKey": "properties"
92
+ }
93
+ ]
94
+ }
95
+ }
@@ -0,0 +1 @@
1
+ "fd019ec7efa4110a98aabedf76c9b45b"
@@ -0,0 +1,28 @@
1
+ {
2
+ "params": [
3
+ {
4
+ "name": "ENDPOINT",
5
+ "isOptional": false,
6
+ "exampleValue": "my-endpoint"
7
+ },
8
+ {
9
+ "name": "API_KEY",
10
+ "isOptional": false,
11
+ "exampleValue": "my-api-key"
12
+ }
13
+ ],
14
+ "default": {
15
+ "endpoint": "$$ENDPOINT$$",
16
+ "method": "POST",
17
+ "headers": [
18
+ {
19
+ "key": "Content-Type",
20
+ "value": "application/json"
21
+ },
22
+ {
23
+ "key": "Authorization",
24
+ "value": "Basic $$API_KEY$$"
25
+ }
26
+ ]
27
+ }
28
+ }
@@ -0,0 +1 @@
1
+ "ffe8b69fced0b5fe21e99f7f3dd2688d"
@@ -0,0 +1,20 @@
1
+ {
2
+ "isDraft": false,
3
+ "isBeta": true,
4
+ "friendlyName": "Zeotap",
5
+ "description": "Zeotap is a secure Customer Data Platform that allows clients the ability to unify customer data now and in the cookieless future.",
6
+ "logo": "https://cdn.metarouter.io/logo.svg",
7
+ "color": "#",
8
+ "eventSource": {
9
+ "isAndroidApp": true,
10
+ "isIosApp": true,
11
+ "isWebApp": true
12
+ },
13
+ "inputSchema": "analytics_js",
14
+ "releaseNotes": [
15
+ {
16
+ "date": "2024-02-21T00:00:00.000Z",
17
+ "note": "Initial release; beta."
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1 @@
1
+ "b41b6a6abf842c24f13a67478667c4f9"
@@ -0,0 +1,95 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "global": {
4
+ "mappings": [
5
+ {
6
+ "inputKey": "messageId",
7
+ "outputKey": "id"
8
+ },
9
+ {
10
+ "inputKey": "userId",
11
+ "outputKey": "user_id"
12
+ },
13
+ {
14
+ "inputKey": "previousId",
15
+ "outputKey": "previous_id"
16
+ },
17
+ {
18
+ "inputKey": "anonymousId",
19
+ "outputKey": "anonymous_id"
20
+ },
21
+ {
22
+ "inputKey": "originalTimestamp",
23
+ "outputKey": "original_timestamp"
24
+ },
25
+ {
26
+ "inputKey": "receivedAt",
27
+ "outputKey": "received_at"
28
+ },
29
+ {
30
+ "inputKey": "sentAt",
31
+ "outputKey": "sent_at"
32
+ },
33
+ {
34
+ "inputKey": "timestamp",
35
+ "outputKey": "timestamp"
36
+ },
37
+ {
38
+ "inputKey": "integrations",
39
+ "outputKey": "integrations",
40
+ "transforms": [
41
+ {
42
+ "toScalar": "string"
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ "inputKey": "type",
48
+ "outputKey": "type"
49
+ },
50
+ {
51
+ "inputKey": "event",
52
+ "outputKey": "event"
53
+ },
54
+ {
55
+ "inputKey": "name",
56
+ "outputKey": "name"
57
+ },
58
+ {
59
+ "inputKey": "category",
60
+ "outputKey": "category"
61
+ },
62
+ {
63
+ "inputKey": "properties.title",
64
+ "outputKey": "_titleHash",
65
+ "transforms": [
66
+ {
67
+ "toHash": "md5"
68
+ }
69
+ ]
70
+ }
71
+ ],
72
+ "spreadings": [
73
+ {
74
+ "flatten": {
75
+ "depth": 5,
76
+ "prefix": "context",
77
+ "separator": "_"
78
+ },
79
+ "inputKey": "context"
80
+ },
81
+ {
82
+ "flatten": {
83
+ "separator": "_"
84
+ },
85
+ "inputKey": "traits"
86
+ },
87
+ {
88
+ "flatten": {
89
+ "separator": "_"
90
+ },
91
+ "inputKey": "properties"
92
+ }
93
+ ]
94
+ }
95
+ }
package/index.js CHANGED
@@ -388,6 +388,13 @@ exports.tiktok = {
388
388
  metadata: require('./.dist/tiktok/metadata.json')
389
389
  }
390
390
 
391
+ exports['treasure-data'] = {
392
+ connectionTemplate: connectionSchemas.properties.treasureData,
393
+ endpointSchema: require('./.dist/treasure-data/connection.json'),
394
+ playbook: require('./.dist/treasure-data/playbook.json'),
395
+ metadata: require('./.dist/treasure-data/metadata.json')
396
+ }
397
+
391
398
  exports['twitter-conversions'] = {
392
399
  connectionTemplate: connectionSchemas.properties.twitterConversions,
393
400
  endpointSchema: require('./.dist/twitter-conversions/connection.json'),
@@ -430,6 +437,13 @@ exports['yahoo-offline-conversion'] = {
430
437
  metadata: require('./.dist/yahoo-offline-conversion/metadata.json')
431
438
  }
432
439
 
440
+ exports['zeotap'] = {
441
+ connectionTemplate: connectionSchemas.properties.zeotap,
442
+ endpointSchema: require('./.dist/zeotap/connection.json'),
443
+ playbook: require('./.dist/zeotap/playbook.json'),
444
+ metadata: require('./.dist/zeotap/metadata.json')
445
+ }
446
+
433
447
  exports.etags = {
434
448
  actioniq: {
435
449
  endpointSchema: require('./.dist/actioniq/connection.etag.json'),
@@ -706,6 +720,11 @@ exports.etags = {
706
720
  playbook: require('./.dist/tiktok/playbook.etag.json'),
707
721
  kit: require('./.dist/tiktok/kit.etag.json')
708
722
  },
723
+ 'treasure-data': {
724
+ endpointSchema: require('./.dist/treasure-data/connection.etag.json'),
725
+ playbook: require('./.dist/treasure-data/playbook.etag.json'),
726
+ kit: require('./.dist/treasure-data/kit.etag.json')
727
+ },
709
728
  'twitter-conversions': {
710
729
  endpointSchema: require('./.dist/twitter-conversions/connection.etag.json'),
711
730
  playbook: require('./.dist/twitter-conversions/playbook.etag.json'),
@@ -736,4 +755,9 @@ exports.etags = {
736
755
  playbook: require('./.dist/yahoo-offline-conversion/playbook.etag.json'),
737
756
  kit: require('./.dist/yahoo-offline-conversion/kit.etag.json')
738
757
  },
758
+ 'zeotap': {
759
+ endpointSchema: require('./.dist/zeotap/connection.etag.json'),
760
+ playbook: require('./.dist/zeotap/playbook.etag.json'),
761
+ kit: require('./.dist/zeotap/kit.etag.json')
762
+ },
739
763
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.81-alpha.1",
3
+ "version": "1.0.82-alpha.1",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {