@metarouter/ajs-starter-kit 1.0.136 → 1.0.138

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 (130) hide show
  1. package/.dist/actioniq/kit.etag.json +1 -1
  2. package/.dist/actioniq/metadata.json +4 -0
  3. package/.dist/actioniq/playbook.etag.json +1 -1
  4. package/.dist/actioniq/playbook.json +2 -2
  5. package/.dist/adobe-experience-platform-interact/kit.etag.json +1 -1
  6. package/.dist/adobe-experience-platform-interact/metadata.json +4 -0
  7. package/.dist/adobe-experience-platform-interact/playbook.etag.json +1 -1
  8. package/.dist/adobe-experience-platform-interact/playbook.json +2 -2
  9. package/.dist/amazon-dsp-capi/kit.etag.json +1 -1
  10. package/.dist/amazon-dsp-capi/metadata.json +9 -1
  11. package/.dist/amazon-dsp-capi/playbook.etag.json +1 -1
  12. package/.dist/amazon-dsp-capi/playbook.json +6 -118
  13. package/.dist/blueshift/kit.etag.json +1 -1
  14. package/.dist/blueshift/metadata.json +4 -0
  15. package/.dist/blueshift/playbook.etag.json +1 -1
  16. package/.dist/blueshift/playbook.json +2 -2
  17. package/.dist/button/kit.etag.json +1 -1
  18. package/.dist/button/metadata.json +4 -0
  19. package/.dist/button/playbook.etag.json +1 -1
  20. package/.dist/button/playbook.json +2 -2
  21. package/.dist/clinch/kit.etag.json +1 -1
  22. package/.dist/clinch/metadata.json +4 -0
  23. package/.dist/clinch/playbook.etag.json +1 -1
  24. package/.dist/clinch/playbook.json +2 -2
  25. package/.dist/commission-junction/kit.etag.json +1 -1
  26. package/.dist/commission-junction/metadata.json +4 -0
  27. package/.dist/commission-junction/playbook.etag.json +1 -1
  28. package/.dist/commission-junction/playbook.json +3 -3
  29. package/.dist/criteo/connection.etag.json +1 -1
  30. package/.dist/criteo/connection.json +1 -1
  31. package/.dist/criteo/kit.etag.json +1 -1
  32. package/.dist/criteo/metadata.json +4 -0
  33. package/.dist/criteo/playbook.etag.json +1 -1
  34. package/.dist/criteo/playbook.json +7 -7
  35. package/.dist/facebook-pixel/kit.etag.json +1 -1
  36. package/.dist/facebook-pixel/metadata.json +8 -0
  37. package/.dist/facebook-pixel/playbook.etag.json +1 -1
  38. package/.dist/facebook-pixel/playbook.json +14 -8
  39. package/.dist/google-cm360/kit.etag.json +1 -1
  40. package/.dist/hubspot-event/kit.etag.json +1 -1
  41. package/.dist/hubspot-event/metadata.json +4 -0
  42. package/.dist/hubspot-event/playbook.etag.json +1 -1
  43. package/.dist/hubspot-event/playbook.json +2 -2
  44. package/.dist/linkedin-conversions/connection.etag.json +1 -1
  45. package/.dist/linkedin-conversions/connection.json +1 -1
  46. package/.dist/linkedin-conversions/kit.etag.json +1 -1
  47. package/.dist/linkedin-conversions/metadata.json +8 -0
  48. package/.dist/linkedin-conversions/playbook.etag.json +1 -1
  49. package/.dist/linkedin-conversions/playbook.json +109 -45
  50. package/.dist/magellan-ai/kit.etag.json +1 -1
  51. package/.dist/magellan-ai/metadata.json +4 -0
  52. package/.dist/magellan-ai/playbook.etag.json +1 -1
  53. package/.dist/magellan-ai/playbook.json +2 -2
  54. package/.dist/merkle/kit.etag.json +1 -1
  55. package/.dist/merkle/metadata.json +4 -0
  56. package/.dist/merkle/playbook.etag.json +1 -1
  57. package/.dist/merkle/playbook.json +3 -11
  58. package/.dist/microsoft-ads/kit.etag.json +1 -1
  59. package/.dist/microsoft-ads/metadata.json +4 -0
  60. package/.dist/microsoft-ads/playbook.etag.json +1 -1
  61. package/.dist/microsoft-ads/playbook.json +2 -2
  62. package/.dist/nextdoor-capi/kit.etag.json +1 -1
  63. package/.dist/nextdoor-capi/metadata.json +4 -0
  64. package/.dist/nextdoor-capi/playbook.etag.json +1 -1
  65. package/.dist/nextdoor-capi/playbook.json +11 -11
  66. package/.dist/podscribe/kit.etag.json +1 -1
  67. package/.dist/podscribe/metadata.json +8 -0
  68. package/.dist/podscribe/playbook.etag.json +1 -1
  69. package/.dist/podscribe/playbook.json +3 -3
  70. package/.dist/rakuten-conversions/connection.etag.json +1 -0
  71. package/.dist/rakuten-conversions/connection.json +24 -0
  72. package/.dist/rakuten-conversions/kit.etag.json +1 -0
  73. package/.dist/rakuten-conversions/metadata.json +21 -0
  74. package/.dist/rakuten-conversions/playbook.etag.json +1 -0
  75. package/.dist/rakuten-conversions/playbook.json +279 -0
  76. package/.dist/rasp/kit.etag.json +1 -1
  77. package/.dist/rasp/metadata.json +4 -0
  78. package/.dist/rasp/playbook.etag.json +1 -1
  79. package/.dist/rasp/playbook.json +2 -2
  80. package/.dist/reddit-ads/kit.etag.json +1 -1
  81. package/.dist/reddit-ads/metadata.json +4 -0
  82. package/.dist/reddit-ads/playbook.etag.json +1 -1
  83. package/.dist/reddit-ads/playbook.json +3 -3
  84. package/.dist/ringier-axel-springer-poland/kit.etag.json +1 -1
  85. package/.dist/ringier-axel-springer-poland/metadata.json +4 -0
  86. package/.dist/ringier-axel-springer-poland/playbook.etag.json +1 -1
  87. package/.dist/ringier-axel-springer-poland/playbook.json +2 -2
  88. package/.dist/roku/kit.etag.json +1 -1
  89. package/.dist/roku/metadata.json +4 -0
  90. package/.dist/roku/playbook.etag.json +1 -1
  91. package/.dist/roku/playbook.json +2 -2
  92. package/.dist/rtb-house/kit.etag.json +1 -1
  93. package/.dist/rtb-house/metadata.json +4 -0
  94. package/.dist/rtb-house/playbook.etag.json +1 -1
  95. package/.dist/rtb-house/playbook.json +2 -2
  96. package/.dist/salesforce-cdp/kit.etag.json +1 -1
  97. package/.dist/salesforce-cdp/metadata.json +4 -0
  98. package/.dist/salesforce-cdp/playbook.etag.json +1 -1
  99. package/.dist/salesforce-cdp/playbook.json +2 -2
  100. package/.dist/snapchat-capi/kit.etag.json +1 -1
  101. package/.dist/snapchat-capi/metadata.json +4 -0
  102. package/.dist/snapchat-capi/playbook.etag.json +1 -1
  103. package/.dist/snapchat-capi/playbook.json +10 -10
  104. package/.dist/thetradedesk-conversion-events/kit.etag.json +1 -1
  105. package/.dist/thetradedesk-conversion-events/metadata.json +4 -0
  106. package/.dist/thetradedesk-conversion-events/playbook.etag.json +1 -1
  107. package/.dist/thetradedesk-conversion-events/playbook.json +2 -2
  108. package/.dist/thetradedesk-data-advertiser-firstparty/kit.etag.json +1 -1
  109. package/.dist/thetradedesk-data-advertiser-firstparty/metadata.json +4 -0
  110. package/.dist/thetradedesk-data-advertiser-firstparty/playbook.etag.json +1 -1
  111. package/.dist/thetradedesk-data-advertiser-firstparty/playbook.json +2 -2
  112. package/.dist/tiktok/kit.etag.json +1 -1
  113. package/.dist/tiktok/metadata.json +4 -0
  114. package/.dist/tiktok/playbook.etag.json +1 -1
  115. package/.dist/tiktok/playbook.json +3 -3
  116. package/.dist/ttd-conversions/kit.etag.json +1 -1
  117. package/.dist/ttd-conversions/metadata.json +9 -1
  118. package/.dist/ttd-conversions/playbook.etag.json +1 -1
  119. package/.dist/ttd-conversions/playbook.json +9 -41
  120. package/.dist/twitter-conversions/kit.etag.json +1 -1
  121. package/.dist/twitter-conversions/metadata.json +4 -0
  122. package/.dist/twitter-conversions/playbook.etag.json +1 -1
  123. package/.dist/twitter-conversions/playbook.json +3 -3
  124. package/.dist/x-ads/kit.etag.json +1 -1
  125. package/.dist/x-ads/metadata.json +4 -0
  126. package/.dist/x-ads/playbook.etag.json +1 -1
  127. package/.dist/x-ads/playbook.json +2 -2
  128. package/README.md +60 -56
  129. package/index.js +11 -0
  130. package/package.json +1 -1
@@ -0,0 +1,279 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "params": [
4
+ {
5
+ "name": "MERCHANT_ID",
6
+ "exampleValue": "my_merchant_id"
7
+ }
8
+ ],
9
+ "global": {
10
+ "enrichments": [
11
+ {
12
+ "staticString": "$$MERCHANT_ID$$",
13
+ "outputKey": "mid"
14
+ }
15
+ ],
16
+ "mappings": [
17
+ {
18
+ "inputKey": "context.providers.rakuten.ranSiteID",
19
+ "outputKey": "tr"
20
+ },
21
+ {
22
+ "inputKey": "context.providers.rakuten.landTimestamp",
23
+ "outputKey": "land"
24
+ },
25
+ {
26
+ "inputKey": "anonymousId",
27
+ "outputKey": "custid"
28
+ },
29
+ {
30
+ "inputKey": "context.device.advertisingId",
31
+ "outputKey": "did"
32
+ },
33
+ {
34
+ "inputKey": "input",
35
+ "outputKey": "date",
36
+ "transforms": [
37
+ {
38
+ "expression": {
39
+ "lang": "lua",
40
+ "body": "local ts = input.timestamp or input.originalTimestamp or input.sentAt\nreturn TO_DATE_TIME(ts, {outputFormat = \"20060102_1504\"})"
41
+ }
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "inputKey": "traits.address.country",
47
+ "outputKey": "shipcountry"
48
+ },
49
+ {
50
+ "inputKey": "input",
51
+ "outputKey": "sitename",
52
+ "transforms": [
53
+ {
54
+ "expression": {
55
+ "lang": "lua",
56
+ "body": "return SPLIT(input.context.page.url, \"?\", 1)[1] or \"\""
57
+ }
58
+ }
59
+ ]
60
+ }
61
+ ]
62
+ },
63
+ "default": {
64
+ "filters": [
65
+ {
66
+ "byEventNames": {
67
+ "action": "allow",
68
+ "events": [
69
+ ""
70
+ ]
71
+ }
72
+ }
73
+ ]
74
+ },
75
+ "eventSpecific": {
76
+ "order_completed": {
77
+ "mappings": [
78
+ {
79
+ "inputKey": "properties.order_id",
80
+ "outputKey": "ord"
81
+ },
82
+ {
83
+ "inputKey": "input",
84
+ "outputKey": "amtlist",
85
+ "transforms": [
86
+ {
87
+ "expression": {
88
+ "lang": "lua",
89
+ "body": "local amounts = JOIN(MAP(input.properties.products, function (p) return TO_ROUNDED_INT(TOTAL_VALUE(p) * 100) end), \"|\")\nif input.properties.discount then amounts = amounts .. \"|\" .. TO_ROUNDED_INT((input.properties.discount) * -1 * 100) end\nreturn amounts"
90
+ }
91
+ }
92
+ ]
93
+ },
94
+ {
95
+ "inputKey": "input",
96
+ "outputKey": "skulist",
97
+ "transforms": [
98
+ {
99
+ "expression": {
100
+ "lang": "lua",
101
+ "body": "local skulist = JOIN(MAP(input.properties.products, function (p) return p.sku or p.product_id or \"\" end), \"|\")\nif input.properties.discount then skulist = skulist .. \"|Discount\" end\nreturn skulist"
102
+ }
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "inputKey": "input",
108
+ "outputKey": "qlist",
109
+ "transforms": [
110
+ {
111
+ "expression": {
112
+ "lang": "lua",
113
+ "body": "local qlist = JOIN(MAP(input.properties.products, function (p) return p.quantity or 1 end), \"|\")\nif input.properties.discount then qlist = qlist .. \"|0\" end\nreturn qlist"
114
+ }
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "inputKey": "properties.currency",
120
+ "outputKey": "cur",
121
+ "transforms": [
122
+ {
123
+ "modifyString": "uppercase"
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "inputKey": "properties.checkout_id",
129
+ "outputKey": "altord"
130
+ },
131
+ {
132
+ "inputKey": "input",
133
+ "outputKey": "brandlist",
134
+ "transforms": [
135
+ {
136
+ "expression": {
137
+ "lang": "lua",
138
+ "body": "local hasOneBrand = false\nlocal brands = JOIN(MAP(input.properties.products, function (p)\n local brand = p.brand or \"\"\n if brand ~= \"\" then hasOneBrand = true end\n return brand\nend), \"|\")\nif hasOneBrand then return brands end"
139
+ }
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "inputKey": "input",
145
+ "outputKey": "catlist",
146
+ "transforms": [
147
+ {
148
+ "expression": {
149
+ "lang": "lua",
150
+ "body": "local hasOneCategory = false\nlocal categories = JOIN(MAP(input.properties.products, function (p)\n local category = p.category or \"\"\n if category ~= \"\" then hasOneCategory = true end\n return category\nend), \"|\")\nif hasOneCategory then return categories end"
151
+ }
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "inputKey": "properties.coupon",
157
+ "outputKey": "coupon"
158
+ },
159
+ {
160
+ "inputKey": "input",
161
+ "outputKey": "couponlist",
162
+ "transforms": [
163
+ {
164
+ "expression": {
165
+ "lang": "lua",
166
+ "body": "local hasOneCoupon = false\nlocal coupons = JOIN(MAP(input.properties.products, function (p)\n local productCoupon = p.coupon or \"\"\n if productCoupon ~= \"\" then hasOneCoupon = true end\n return productCoupon\nend), \"|\")\nif hasOneCoupon then return coupons end"
167
+ }
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "inputKey": "properties.discount",
173
+ "outputKey": "disamt"
174
+ }
175
+ ]
176
+ },
177
+ "order_canceled": {
178
+ "mappings": [
179
+ {
180
+ "inputKey": "properties.order_id",
181
+ "outputKey": "ord"
182
+ },
183
+ {
184
+ "inputKey": "input",
185
+ "outputKey": "amtlist",
186
+ "transforms": [
187
+ {
188
+ "expression": {
189
+ "lang": "lua",
190
+ "body": "local amounts = JOIN(MAP(input.properties.products, function (p) return TO_ROUNDED_INT(TOTAL_VALUE(p) * -1 * 100) end), \"|\")\nif input.properties.discount then amounts = amounts .. \"|\" .. TO_ROUNDED_INT((input.properties.discount) * 100) end\nreturn amounts"
191
+ }
192
+ }
193
+ ]
194
+ },
195
+ {
196
+ "inputKey": "input",
197
+ "outputKey": "skulist",
198
+ "transforms": [
199
+ {
200
+ "expression": {
201
+ "lang": "lua",
202
+ "body": "local skulist = JOIN(MAP(input.properties.products, function (p) return p.sku or p.product_id or \"\" end), \"|\")\nif input.properties.discount then skulist = skulist .. \"|Discount\" end\nreturn skulist"
203
+ }
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "inputKey": "input",
209
+ "outputKey": "qlist",
210
+ "transforms": [
211
+ {
212
+ "expression": {
213
+ "lang": "lua",
214
+ "body": "local qlist = JOIN(MAP(input.properties.products, function (p) return p.quantity or 1 end), \"|\")\nif input.properties.discount then qlist = qlist .. \"|0\" end\nreturn qlist"
215
+ }
216
+ }
217
+ ]
218
+ },
219
+ {
220
+ "inputKey": "properties.currency",
221
+ "outputKey": "cur",
222
+ "transforms": [
223
+ {
224
+ "modifyString": "uppercase"
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ "inputKey": "properties.checkout_id",
230
+ "outputKey": "altord"
231
+ },
232
+ {
233
+ "inputKey": "input",
234
+ "outputKey": "brandlist",
235
+ "transforms": [
236
+ {
237
+ "expression": {
238
+ "lang": "lua",
239
+ "body": "local hasOneBrand = false\nlocal brands = JOIN(MAP(input.properties.products, function (p)\n local brand = p.brand or \"\"\n if brand ~= \"\" then hasOneBrand = true end\n return brand\nend), \"|\")\nif hasOneBrand then return brands end"
240
+ }
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "inputKey": "input",
246
+ "outputKey": "catlist",
247
+ "transforms": [
248
+ {
249
+ "expression": {
250
+ "lang": "lua",
251
+ "body": "local hasOneCategory = false\nlocal categories = JOIN(MAP(input.properties.products, function (p)\n local category = p.category or \"\"\n if category ~= \"\" then hasOneCategory = true end\n return category\nend), \"|\")\nif hasOneCategory then return categories end"
252
+ }
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "inputKey": "properties.coupon",
258
+ "outputKey": "coupon"
259
+ },
260
+ {
261
+ "inputKey": "input",
262
+ "outputKey": "couponlist",
263
+ "transforms": [
264
+ {
265
+ "expression": {
266
+ "lang": "lua",
267
+ "body": "local hasOneCoupon = false\nlocal coupons = JOIN(MAP(input.properties.products, function (p)\n local productCoupon = p.coupon or \"\"\n if productCoupon ~= \"\" then hasOneCoupon = true end\n return productCoupon\nend), \"|\")\nif hasOneCoupon then return coupons end"
268
+ }
269
+ }
270
+ ]
271
+ },
272
+ {
273
+ "inputKey": "properties.discount",
274
+ "outputKey": "disamt"
275
+ }
276
+ ]
277
+ }
278
+ }
279
+ }
@@ -1 +1 @@
1
- "81cc1041a89f0424a26955f13659c92f"
1
+ "3fa37eca26cd74b774d200a2adcfd090"
@@ -16,6 +16,10 @@
16
16
  {
17
17
  "date": "2025-06-25T22:00:00.000Z",
18
18
  "note": "Version: 0.1.0\nBeta Version\nRingier Axel Springer Poland initial release"
19
+ },
20
+ {
21
+ "date": "2025-07-30T00:00:00.000Z",
22
+ "note": "Version: 0.2.0\nReplaced context.traits with traits."
19
23
  }
20
24
  ]
21
25
  }
@@ -1 +1 @@
1
- "1d3d84717c60282fd1734ab78109af18"
1
+ "ff3a1215b491a0f5fb29984cd384049c"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0",
2
+ "version": "0.2.0",
3
3
  "params": [
4
4
  {
5
5
  "name": "PIXEL_ID",
@@ -40,7 +40,7 @@
40
40
  "transforms": [
41
41
  {
42
42
  "expression": {
43
- "body": "local email = input.traits.email or input.context.traits.email\nif email then return TO_MD5_HASH(LOWER(TRIM(email))) end\nreturn",
43
+ "body": "local email = input.traits.email\nif email then return TO_MD5_HASH(LOWER(TRIM(email))) end\nreturn",
44
44
  "lang": "lua"
45
45
  }
46
46
  }
@@ -1 +1 @@
1
- "d032c37330e43150df5172750c23915d"
1
+ "4f40dd659be410892e66d37ac73b94dc"
@@ -36,6 +36,10 @@
36
36
  {
37
37
  "date": "2025-04-09T00:00:00.000Z",
38
38
  "note": "Version: 1.4.0\nAdded mapping for phone number"
39
+ },
40
+ {
41
+ "date": "2025-07-30T00:00:00.000Z",
42
+ "note": "Version: 1.5.0\nReplaced context.traits with traits."
39
43
  }
40
44
  ]
41
45
  }
@@ -1 +1 @@
1
- "628c79a89d559a84d20eaa428a09890f"
1
+ "0437dbbbdabcde1a7f2930cee3fb87e7"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.0",
2
+ "version": "1.5.0",
3
3
  "default": {
4
4
  "filters": [
5
5
  {
@@ -47,7 +47,7 @@
47
47
  "outputKey": "user.user_agent"
48
48
  },
49
49
  {
50
- "inputKey": "context.traits.email",
50
+ "inputKey": "traits.email",
51
51
  "outputKey": "user.email",
52
52
  "transforms": [
53
53
  {
@@ -62,7 +62,7 @@
62
62
  {
63
63
  "expression": {
64
64
  "lang": "lua",
65
- "body": "-- Phone number must start with + sign and country code, E164 format to be exact e.g.: +16505551212\nreturn input.traits.phone or input.context.traits.phone"
65
+ "body": "-- Phone number must start with + sign and country code, E164 format to be exact e.g.: +16505551212\nreturn input.traits.phone"
66
66
  }
67
67
  }
68
68
  ]
@@ -1 +1 @@
1
- "ff112d8fe0affd4d30bdc5daae05cad0"
1
+ "37898eee457b01e0674932e5583b0e94"
@@ -20,6 +20,10 @@
20
20
  {
21
21
  "date": "2025-04-09T22:00:00.000Z",
22
22
  "note": "Version: 1.0.0\nNew header: `X-Forwarded-For`\nParam update: `adp_session` retrieved from new sync field `context.providers.ringierAxelSpringerPoland.adp_session`\nStable release"
23
+ },
24
+ {
25
+ "date": "2025-07-30T00:00:00.000Z",
26
+ "note": "Version: 1.1.0\nReplaced context.traits with traits."
23
27
  }
24
28
  ]
25
29
  }
@@ -1 +1 @@
1
- "21c3fd30f2f8d352300cbc55b7636fcc"
1
+ "8bf5d831080b858bc585d653c34e5abd"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.1.0",
3
3
  "params": [
4
4
  {
5
5
  "name": "PIXEL_ID",
@@ -44,7 +44,7 @@
44
44
  "transforms": [
45
45
  {
46
46
  "expression": {
47
- "body": "local email = input.traits.email or input.context.traits.email\nif email then return TO_MD5_HASH(LOWER(TRIM(email))) end\nreturn",
47
+ "body": "local email = input.traits.email\nif email then return TO_MD5_HASH(LOWER(TRIM(email))) end\nreturn",
48
48
  "lang": "lua"
49
49
  }
50
50
  }
@@ -1 +1 @@
1
- "0ceef093f4277c9d5f4e797087b9fd3e"
1
+ "4a9fdc0b273c9b1f2a7b61844970c425"
@@ -24,6 +24,10 @@
24
24
  {
25
25
  "date": "2024-10-23T00:00:00.000Z",
26
26
  "note": "Version: 1.1.0\nAdded header `Accept-Encoding: application/json`"
27
+ },
28
+ {
29
+ "date": "2025-07-30T00:00:00.000Z",
30
+ "note": "Version: 1.2.0\nReplaced context.traits with traits."
27
31
  }
28
32
  ]
29
33
  }
@@ -1 +1 @@
1
- "7db2db08f05aca138484e7931e7f6a4b"
1
+ "09c6486cd5dcbd22453745d300789d30"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.2.0",
3
3
  "params": [
4
4
  {
5
5
  "name": "PAGE_PIXEL_ID",
@@ -37,7 +37,7 @@
37
37
  "outputKey": "w55c"
38
38
  },
39
39
  {
40
- "inputKey": "context.traits.email",
40
+ "inputKey": "traits.email",
41
41
  "outputKey": "aEM",
42
42
  "transforms": [
43
43
  {
@@ -1 +1 @@
1
- "20f750110c7effc6af725f4f92551304"
1
+ "6b67984c37618faafc718ea3e955fccf"
@@ -24,6 +24,10 @@
24
24
  {
25
25
  "date": "2024-12-11T22:00:00.000Z",
26
26
  "note": "Version: 0.2.1\nUpdated Endpoint URL\nAdded new fields for all events: page URL (`su`) and page referrer (`sr`)\nAdded new events: identify, page, products_searched, product_list_viewed, product_viewed, product_added, product_added_to_wishlist, cart_viewed, checkout_started"
27
+ },
28
+ {
29
+ "date": "2025-07-30T00:00:00.000Z",
30
+ "note": "Version: 0.3.1\nReplaced context.traits with traits."
27
31
  }
28
32
  ]
29
33
  }
@@ -1 +1 @@
1
- "4cd1e59e9ea075dcba3cbf572344b6f0"
1
+ "369a8e8fcf83b3185f8cd0f6a269d070"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.1",
2
+ "version": "0.3.1",
3
3
  "params": [
4
4
  {
5
5
  "name": "PARTNER_KEY",
@@ -81,7 +81,7 @@
81
81
  "transforms": [
82
82
  {
83
83
  "expression": {
84
- "body": "local pii = input.traits.email or input.context.traits.email or input.traits.phone or input.context.traits.phone\nlocal identifyDetails = \"\"\nif (pii) then identifyDetails = TO_SHA256_HASH(LOWER(TRIM(pii))) end\nreturn JOIN({\n 'pr_$$TAGGING_HASH$$',\n 'uid',\n identifyDetails\n}, '_')",
84
+ "body": "local pii = input.traits.email or input.traits.phone\nlocal identifyDetails = \"\"\nif (pii) then identifyDetails = TO_SHA256_HASH(LOWER(TRIM(pii))) end\nreturn JOIN({\n 'pr_$$TAGGING_HASH$$',\n 'uid',\n identifyDetails\n}, '_')",
85
85
  "lang": "lua"
86
86
  }
87
87
  }
@@ -1 +1 @@
1
- "17a6c86047756be95e012a63ad8c2538"
1
+ "862511e37a0afe3511f64201ee3f933a"
@@ -28,6 +28,10 @@
28
28
  {
29
29
  "date": "2024-10-23T00:00:00.000Z",
30
30
  "note": "Version: 1.1.0\nAdded header `Accept-Encoding: application/json`"
31
+ },
32
+ {
33
+ "date": "2025-07-30T00:00:00.000Z",
34
+ "note": "Version: 1.2.0\nReplaced originalTimestamp with timestamp"
31
35
  }
32
36
  ]
33
37
  }
@@ -1 +1 @@
1
- "f9b6348d393062053dbbaf0b925152d0"
1
+ "323d1a2840102c2929a02b75332b9863"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.2.0",
3
3
  "global": {
4
4
  "mappings": [
5
5
  {
@@ -7,7 +7,7 @@
7
7
  "outputKey": "anonymous_id"
8
8
  },
9
9
  {
10
- "inputKey": "originalTimestamp",
10
+ "inputKey": "timestamp",
11
11
  "outputKey": "created"
12
12
  }
13
13
  ]
@@ -1 +1 @@
1
- "3393403f194b73cea91abf6425188c78"
1
+ "17f6cf1babda3230b9a722d2b522b4d4"
@@ -32,6 +32,10 @@
32
32
  {
33
33
  "date": "2024-11-20T00:00:00.000Z",
34
34
  "note": "Version: 1.3.0\nAdded the `_scid` cookie value as `user_data.sc_cookie1`"
35
+ },
36
+ {
37
+ "date": "2025-07-30T00:00:00.000Z",
38
+ "note": "Version: 1.4.0\nReplaced context.traits with traits."
35
39
  }
36
40
  ]
37
41
  }
@@ -1 +1 @@
1
- "1e7079544bc462286e9c65c95cafa5d9"
1
+ "699904894c56195e6565075601c0583e"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.0",
2
+ "version": "1.4.0",
3
3
  "default": {
4
4
  "filters": [
5
5
  {
@@ -77,7 +77,7 @@
77
77
  "transforms": [
78
78
  {
79
79
  "expression": {
80
- "body": "local email = input.traits.email or input.context.traits.email\nif (email) then return TO_SHA256_HASH(LOWER(TRIM(email))) end",
80
+ "body": "local email = input.traits.email\nif (email) then return TO_SHA256_HASH(LOWER(TRIM(email))) end",
81
81
  "lang": "lua"
82
82
  }
83
83
  }
@@ -89,7 +89,7 @@
89
89
  "transforms": [
90
90
  {
91
91
  "expression": {
92
- "body": "local phone = input.traits.phone or input.context.traits.phone\nif (phone) then return TO_SHA256_HASH(TRIM(phone)) end",
92
+ "body": "local phone = input.traits.phone\nif (phone) then return TO_SHA256_HASH(TRIM(phone)) end",
93
93
  "lang": "lua"
94
94
  }
95
95
  }
@@ -101,7 +101,7 @@
101
101
  "transforms": [
102
102
  {
103
103
  "expression": {
104
- "body": "local firstName = input.traits.firstName or input.context.traits.firstName\nif (firstName) then return TO_SHA256_HASH(LOWER(TRIM(firstName))) end",
104
+ "body": "local firstName = input.traits.firstName\nif (firstName) then return TO_SHA256_HASH(LOWER(TRIM(firstName))) end",
105
105
  "lang": "lua"
106
106
  }
107
107
  }
@@ -113,7 +113,7 @@
113
113
  "transforms": [
114
114
  {
115
115
  "expression": {
116
- "body": "local lastName = input.traits.lastName or input.context.traits.lastName\nif (lastName) then return TO_SHA256_HASH(LOWER(TRIM(lastName))) end",
116
+ "body": "local lastName = input.traits.lastName\nif (lastName) then return TO_SHA256_HASH(LOWER(TRIM(lastName))) end",
117
117
  "lang": "lua"
118
118
  }
119
119
  }
@@ -125,7 +125,7 @@
125
125
  "transforms": [
126
126
  {
127
127
  "expression": {
128
- "body": "local gender = input.traits.gender or input.context.traits.gender\nif (gender) then return TO_SHA256_HASH(LOWER(TRIM(gender))) end",
128
+ "body": "local gender = input.traits.gender\nif (gender) then return TO_SHA256_HASH(LOWER(TRIM(gender))) end",
129
129
  "lang": "lua"
130
130
  }
131
131
  }
@@ -137,7 +137,7 @@
137
137
  "transforms": [
138
138
  {
139
139
  "expression": {
140
- "body": "local city = input.traits.address.city or input.context.traits.address.city\nif (city) then return TO_SHA256_HASH(LOWER(city:gsub('%s+',''))) end",
140
+ "body": "local city = input.traits.address.city\nif (city) then return TO_SHA256_HASH(LOWER(city:gsub('%s+',''))) end",
141
141
  "lang": "lua"
142
142
  }
143
143
  }
@@ -149,7 +149,7 @@
149
149
  "transforms": [
150
150
  {
151
151
  "expression": {
152
- "body": "local state = input.traits.address.state or input.context.traits.address.state\nif (state) then return TO_SHA256_HASH(LOWER(TRIM(state))) end",
152
+ "body": "local state = input.traits.address.state\nif (state) then return TO_SHA256_HASH(LOWER(TRIM(state))) end",
153
153
  "lang": "lua"
154
154
  }
155
155
  }
@@ -161,7 +161,7 @@
161
161
  "transforms": [
162
162
  {
163
163
  "expression": {
164
- "body": "local postalCode = input.traits.address.postalCode or input.context.traits.address.postalCode\nif (postalCode) then return TO_SHA256_HASH(TRIM(postalCode)) end",
164
+ "body": "local postalCode = input.traits.address.postalCode\nif (postalCode) then return TO_SHA256_HASH(TRIM(postalCode)) end",
165
165
  "lang": "lua"
166
166
  }
167
167
  }
@@ -173,7 +173,7 @@
173
173
  "transforms": [
174
174
  {
175
175
  "expression": {
176
- "body": "local country = input.traits.address.country or input.context.traits.address.country\nif (country) then return TO_SHA256_HASH(TRIM(country)) end",
176
+ "body": "local country = input.traits.address.country\nif (country) then return TO_SHA256_HASH(TRIM(country)) end",
177
177
  "lang": "lua"
178
178
  }
179
179
  }
@@ -1 +1 @@
1
- "f265b4393893b6b86b70ef45581cc360"
1
+ "87a9a5cf605e7dbe75f61cdcd48ecb2c"
@@ -28,6 +28,10 @@
28
28
  {
29
29
  "date": "2025-05-07T00:00:00.000Z",
30
30
  "note": "Version: 1.2.0\nDeprecated"
31
+ },
32
+ {
33
+ "date": "2025-07-30T00:00:00.000Z",
34
+ "note": "Version: 1.3.0\nReplaced originalTimestamp with timestamp"
31
35
  }
32
36
  ]
33
37
  }
@@ -1 +1 @@
1
- "05f9937398ee12d1575651fb5a9aa185"
1
+ "1ffdca23f2cd3abedd0272422b129dfd"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.0",
2
+ "version": "1.3.0",
3
3
  "params": [
4
4
  {
5
5
  "name": "MERCHANT_ID",
@@ -73,7 +73,7 @@
73
73
  "outputKey": "token"
74
74
  },
75
75
  {
76
- "inputKey": "originalTimestamp",
76
+ "inputKey": "timestamp",
77
77
  "outputKey": "ts_utc"
78
78
  },
79
79
  {
@@ -1 +1 @@
1
- "88c444cd0ee9898c4ce14b7f6e559e96"
1
+ "d067f7025620b8b47754a833976d4330"