@metarouter/ajs-starter-kit 1.0.31 → 1.0.34

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 (104) hide show
  1. package/.dist/actioniq/endpoint_schema.etag.json +1 -1
  2. package/.dist/actioniq/endpoint_schema.json +15 -3
  3. package/.dist/actioniq/kit.etag.json +1 -1
  4. package/.dist/actioniq/metadata.json +4 -0
  5. package/.dist/acuity-ads/endpoint_schema.etag.json +1 -1
  6. package/.dist/acuity-ads/endpoint_schema.json +1 -2
  7. package/.dist/acuity-ads/kit.etag.json +1 -1
  8. package/.dist/adobe/endpoint_schema.etag.json +1 -1
  9. package/.dist/adobe/endpoint_schema.json +1 -2
  10. package/.dist/adobe/kit.etag.json +1 -1
  11. package/.dist/amnet/endpoint_schema.etag.json +1 -1
  12. package/.dist/amnet/endpoint_schema.json +1 -2
  13. package/.dist/amnet/kit.etag.json +1 -1
  14. package/.dist/amobee/endpoint_schema.etag.json +1 -1
  15. package/.dist/amobee/endpoint_schema.json +1 -2
  16. package/.dist/amobee/kit.etag.json +1 -1
  17. package/.dist/amplitude/endpoint_schema.etag.json +1 -1
  18. package/.dist/amplitude/endpoint_schema.json +13 -4
  19. package/.dist/amplitude/kit.etag.json +1 -1
  20. package/.dist/amplitude/metadata.json +4 -0
  21. package/.dist/amplitude/playbook.etag.json +1 -1
  22. package/.dist/amplitude/playbook.json +769 -89
  23. package/.dist/apps-flyer-android/endpoint_schema.etag.json +1 -1
  24. package/.dist/apps-flyer-android/endpoint_schema.json +0 -1
  25. package/.dist/apps-flyer-android/kit.etag.json +1 -1
  26. package/.dist/apps-flyer-ios/endpoint_schema.etag.json +1 -1
  27. package/.dist/apps-flyer-ios/endpoint_schema.json +0 -1
  28. package/.dist/apps-flyer-ios/kit.etag.json +1 -1
  29. package/.dist/bing-ads/endpoint_schema.etag.json +1 -1
  30. package/.dist/bing-ads/endpoint_schema.json +1 -2
  31. package/.dist/bing-ads/kit.etag.json +1 -1
  32. package/.dist/blueshift/endpoint_schema.etag.json +1 -1
  33. package/.dist/blueshift/endpoint_schema.json +6 -2
  34. package/.dist/blueshift/kit.etag.json +1 -1
  35. package/.dist/blueshift/metadata.json +4 -0
  36. package/.dist/braze/endpoint_schema.etag.json +1 -1
  37. package/.dist/braze/endpoint_schema.json +40 -2
  38. package/.dist/braze/kit.etag.json +1 -1
  39. package/.dist/braze/metadata.json +4 -0
  40. package/.dist/braze/playbook.etag.json +1 -1
  41. package/.dist/braze/playbook.json +217 -22
  42. package/.dist/connection-schemas.json +12 -0
  43. package/.dist/criteo/endpoint_schema.etag.json +1 -1
  44. package/.dist/criteo/endpoint_schema.json +1 -2
  45. package/.dist/criteo/kit.etag.json +1 -1
  46. package/.dist/facebook-pixel/endpoint_schema.etag.json +1 -1
  47. package/.dist/facebook-pixel/endpoint_schema.json +6 -2
  48. package/.dist/facebook-pixel/kit.etag.json +1 -1
  49. package/.dist/facebook-pixel/metadata.json +8 -0
  50. package/.dist/facebook-pixel/playbook.etag.json +1 -1
  51. package/.dist/facebook-pixel/playbook.json +321 -24
  52. package/.dist/google-ad-words/endpoint_schema.etag.json +1 -1
  53. package/.dist/google-ad-words/endpoint_schema.json +1 -2
  54. package/.dist/google-ad-words/kit.etag.json +1 -1
  55. package/.dist/google-analytics/endpoint_schema.etag.json +1 -1
  56. package/.dist/google-analytics/endpoint_schema.json +1 -2
  57. package/.dist/google-analytics/kit.etag.json +1 -1
  58. package/.dist/google-double-click/endpoint_schema.etag.json +1 -1
  59. package/.dist/google-double-click/endpoint_schema.json +1 -2
  60. package/.dist/google-double-click/kit.etag.json +1 -1
  61. package/.dist/impact-radius/endpoint_schema.etag.json +1 -1
  62. package/.dist/impact-radius/endpoint_schema.json +2 -4
  63. package/.dist/impact-radius/kit.etag.json +1 -1
  64. package/.dist/in-market/endpoint_schema.etag.json +1 -1
  65. package/.dist/in-market/endpoint_schema.json +0 -1
  66. package/.dist/in-market/kit.etag.json +1 -1
  67. package/.dist/lytics/endpoint_schema.etag.json +1 -1
  68. package/.dist/lytics/endpoint_schema.json +1 -2
  69. package/.dist/lytics/kit.etag.json +1 -1
  70. package/.dist/media-math/endpoint_schema.etag.json +1 -1
  71. package/.dist/media-math/endpoint_schema.json +1 -2
  72. package/.dist/media-math/kit.etag.json +1 -1
  73. package/.dist/merkle/endpoint_schema.etag.json +1 -1
  74. package/.dist/merkle/endpoint_schema.json +1 -2
  75. package/.dist/merkle/kit.etag.json +1 -1
  76. package/.dist/movable-ink/endpoint_schema.etag.json +1 -1
  77. package/.dist/movable-ink/endpoint_schema.json +1 -2
  78. package/.dist/movable-ink/kit.etag.json +1 -1
  79. package/.dist/pinterest/endpoint_schema.etag.json +1 -1
  80. package/.dist/pinterest/endpoint_schema.json +1 -2
  81. package/.dist/pinterest/kit.etag.json +1 -1
  82. package/.dist/rev-jet/endpoint_schema.etag.json +1 -1
  83. package/.dist/rev-jet/endpoint_schema.json +1 -2
  84. package/.dist/rev-jet/kit.etag.json +1 -1
  85. package/.dist/roomvo/endpoint_schema.etag.json +1 -1
  86. package/.dist/roomvo/endpoint_schema.json +5 -1
  87. package/.dist/roomvo/kit.etag.json +1 -1
  88. package/.dist/roomvo/metadata.json +4 -0
  89. package/.dist/roomvo/playbook.etag.json +1 -1
  90. package/.dist/roomvo/playbook.json +31 -1
  91. package/.dist/snapchat/endpoint_schema.etag.json +1 -1
  92. package/.dist/snapchat/endpoint_schema.json +1 -2
  93. package/.dist/snapchat/kit.etag.json +1 -1
  94. package/.dist/snowflake/endpoint_schema.etag.json +1 -1
  95. package/.dist/snowflake/endpoint_schema.json +1 -2
  96. package/.dist/snowflake/kit.etag.json +1 -1
  97. package/.dist/verizon-media/endpoint_schema.etag.json +1 -1
  98. package/.dist/verizon-media/endpoint_schema.json +0 -1
  99. package/.dist/verizon-media/kit.etag.json +1 -1
  100. package/.dist/xandr/endpoint_schema.etag.json +1 -1
  101. package/.dist/xandr/endpoint_schema.json +1 -2
  102. package/.dist/xandr/kit.etag.json +1 -1
  103. package/index.js +7 -4
  104. package/package.json +1 -1
@@ -1 +1 @@
1
- "9055856e3a38a8ec5b34e7065aab3fe3"
1
+ "f394685bc814f0e316a88b78ac13996a"
@@ -12,7 +12,6 @@
12
12
  "default": {
13
13
  "endpoint": "https://api2.appsflyer.com/inappevent/$$BUNDLE_ID$$",
14
14
  "method": "POST",
15
- "timeout": "30s",
16
15
  "headers": [
17
16
  {
18
17
  "key": "Content-Type",
@@ -1 +1 @@
1
- "1e1b97defa1e96dff28faf815cb63660"
1
+ "368edd84ddc9b3f15ff81d2e6243a76e"
@@ -1 +1 @@
1
- "e0d51411aebacaed66de0a5f13db4bde"
1
+ "bb350063b312a9a7be3ff17c148a38b8"
@@ -12,7 +12,6 @@
12
12
  "default": {
13
13
  "endpoint": "https://api2.appsflyer.com/inappevent/$$APP_ID$$",
14
14
  "method": "POST",
15
- "timeout": "30s",
16
15
  "headers": [
17
16
  {
18
17
  "key": "Content-Type",
@@ -1 +1 @@
1
- "ae67623f709291a8d740979d82177cf6"
1
+ "86dfbf689a137a56f818a62211686a2d"
@@ -1 +1 @@
1
- "1b964e5e86a73330755b172dbb6c25df"
1
+ "0d9fac87fe41d46e4380040b60eb3f8c"
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "default": {
3
3
  "endpoint": "https://g.msn.com/uets2s/0",
4
- "method": "GET",
5
- "timeout": "30s"
4
+ "method": "GET"
6
5
  }
7
6
  }
@@ -1 +1 @@
1
- "418c668a669c5938f2e6bbb3cb4f27e8"
1
+ "66d57d208dcb111deda5a64486804c13"
@@ -1 +1 @@
1
- "71bd3079c532a9c7d0b98195b058a2d2"
1
+ "e413e868ddbc12c84e8b7a74190589c0"
@@ -6,7 +6,7 @@
6
6
  }
7
7
  ],
8
8
  "default": {
9
- "endpoint": "https://api.getblueshift.com/api/v1/event",
9
+ "endpoint": "https://api.getblueshift.com/api/v1/bulkevents",
10
10
  "basicAuth": {
11
11
  "username": "$$EVENT_API_KEY$$"
12
12
  },
@@ -21,6 +21,10 @@
21
21
  }
22
22
  ],
23
23
  "method": "POST",
24
- "timeout": "30s"
24
+ "batchSize": 100,
25
+ "transform": {
26
+ "lang": "lua",
27
+ "body": "request.body = { events = batch }\nreturn request"
28
+ }
25
29
  }
26
30
  }
@@ -1 +1 @@
1
- "de6197328b95123718adb8a026afd3e1"
1
+ "359bb0fef87650ca5a3798ae25ed52b3"
@@ -18,6 +18,10 @@
18
18
  {
19
19
  "date": "2021-06-28T00:00:00.000Z",
20
20
  "note": "Setting isDraft to false"
21
+ },
22
+ {
23
+ "date": "2021-11-26T00:00:00.000Z",
24
+ "note": "uses batch endpoint"
21
25
  }
22
26
  ]
23
27
  }
@@ -1 +1 @@
1
- "179cef51dcbe86757d9a0476df228088"
1
+ "7feebc662575f75b1e5f3585462823c2"
@@ -19,10 +19,22 @@
19
19
  {
20
20
  "key": "Authorization",
21
21
  "value": "Bearer $$API_KEY$$"
22
+ },
23
+ {
24
+ "key": "X-Braze-Bulk",
25
+ "value": "true"
26
+ },
27
+ {
28
+ "key": "Accept-Encoding",
29
+ "value": "application/json"
22
30
  }
23
31
  ],
24
32
  "method": "POST",
25
- "timeout": "30s"
33
+ "batchSize": 75,
34
+ "transform": {
35
+ "lang": "lua",
36
+ "body": "local attributes = MAP(batch, function(event) return event.attributes end)\nlocal events = MAP(batch, function(event) return event.events end)\n\nrequest.body = { attributes = attributes, events = events }\nreturn request"
37
+ }
26
38
  },
27
39
  "eventSpecific": {
28
40
  "identify": {
@@ -38,7 +50,33 @@
38
50
  }
39
51
  ],
40
52
  "method": "POST",
41
- "timeout": "30s"
53
+ "batchSize": 50,
54
+ "transform": {
55
+ "lang": "lua",
56
+ "body": "request.body = { aliases_to_identify = batch }\nreturn request"
57
+ }
58
+ },
59
+ "order_completed": {
60
+ "endpoint": "https://$$INSTANCE_URL$$/users/track",
61
+ "headers": [
62
+ {
63
+ "key": "Content-Type",
64
+ "value": "application/json"
65
+ },
66
+ {
67
+ "key": "Authorization",
68
+ "value": "Bearer $$API_KEY$$"
69
+ },
70
+ {
71
+ "key": "X-Braze-Bulk",
72
+ "value": "true"
73
+ },
74
+ {
75
+ "key": "Accept-Encoding",
76
+ "value": "application/json"
77
+ }
78
+ ],
79
+ "method": "POST"
42
80
  }
43
81
  }
44
82
  }
@@ -1 +1 @@
1
- "eb269ebdc3ca45057c53b77a9148a5bc"
1
+ "568cbdddd6c78331284c927974ec9b52"
@@ -18,6 +18,10 @@
18
18
  {
19
19
  "date": "2021-06-28T00:00:00.000Z",
20
20
  "note": "Setting isDraft to false"
21
+ },
22
+ {
23
+ "date": "2021-11-23T00:00:00.000Z",
24
+ "note": "uses batch endpoint"
21
25
  }
22
26
  ]
23
27
  }
@@ -1 +1 @@
1
- "34130917de87161e6fd3d589633d0450"
1
+ "0f7be13c21f4bc9676a200545eaad2ff"
@@ -21,58 +21,253 @@
21
21
  },
22
22
  "eventSpecific": {
23
23
  "identify": {
24
- "expressions": [
24
+ "mappings": [
25
25
  {
26
- "lang": "lua",
27
- "body": "return {\n aliases_to_identify = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n }\n }}\n}"
26
+ "inputKey": "userId",
27
+ "outputKey": "external_id"
28
+ },
29
+ {
30
+ "inputKey": "anonymousId",
31
+ "outputKey": "user_alias.alias_name"
32
+ }
33
+ ],
34
+ "enrichments": [
35
+ {
36
+ "staticString": "anonymous_id",
37
+ "outputKey": "user_alias.alias_label"
28
38
  }
29
39
  ]
30
40
  },
31
41
  "page": {
32
- "expressions": [
42
+ "mappings": [
33
43
  {
34
- "lang": "lua",
35
- "body": "return {\n attributes = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n }\n }},\n events = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n },\n name = 'page',\n time = TO_DATE_TIME(input.timestamp, {outputFormat = \"2006-01-02T15:04:05Z\"}),\n properties = input.properties\n }}\n}"
44
+ "inputKey": "userId",
45
+ "outputKey": "attributes.external_id"
46
+ },
47
+ {
48
+ "inputKey": "userId",
49
+ "outputKey": "events.external_id"
50
+ },
51
+ {
52
+ "inputKey": "timestamp",
53
+ "outputKey": "events.time",
54
+ "transforms": [
55
+ {
56
+ "toDateTime": {
57
+ "inputFormat": "2006-01-02T15:04:05Z07:00",
58
+ "outputFormat": "2006-01-02T15:04:05Z07:00"
59
+ }
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "inputKey": "properties",
65
+ "outputKey": "events.properties"
66
+ }
67
+ ],
68
+ "enrichments": [
69
+ {
70
+ "staticString": "page",
71
+ "outputKey": "events.name"
36
72
  }
37
73
  ]
38
74
  },
39
75
  "products_searched": {
40
- "expressions": [
76
+ "mappings": [
41
77
  {
42
- "lang": "lua",
43
- "body": "return {\n attributes = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n }\n }},\n events = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n },\n name = 'products_searched',\n time = TO_DATE_TIME(input.timestamp, {outputFormat = \"2006-01-02T15:04:05Z\"}),\n properties = input.properties\n }}\n}"
78
+ "inputKey": "userId",
79
+ "outputKey": "attributes.external_id"
80
+ },
81
+ {
82
+ "inputKey": "userId",
83
+ "outputKey": "events.external_id"
84
+ },
85
+ {
86
+ "inputKey": "timestamp",
87
+ "outputKey": "events.time",
88
+ "transforms": [
89
+ {
90
+ "toDateTime": {
91
+ "inputFormat": "2006-01-02T15:04:05Z07:00",
92
+ "outputFormat": "2006-01-02T15:04:05Z07:00"
93
+ }
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ "inputKey": "properties",
99
+ "outputKey": "events.properties"
100
+ }
101
+ ],
102
+ "enrichments": [
103
+ {
104
+ "staticString": "products_searched",
105
+ "outputKey": "events.name"
44
106
  }
45
107
  ]
46
108
  },
47
109
  "product_list_viewed": {
48
- "expressions": [
110
+ "mappings": [
49
111
  {
50
- "lang": "lua",
51
- "body": "return {\n attributes = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n }\n }},\n events = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n },\n name = 'product_list_viewed',\n time = TO_DATE_TIME(input.timestamp, {outputFormat = \"2006-01-02T15:04:05Z\"}),\n properties = {\n category = input.properties.category,\n list_id = input.properties.list_id,\n }\n }}\n}"
112
+ "inputKey": "userId",
113
+ "outputKey": "attributes.external_id"
114
+ },
115
+ {
116
+ "inputKey": "userId",
117
+ "outputKey": "events.external_id"
118
+ },
119
+ {
120
+ "inputKey": "timestamp",
121
+ "outputKey": "events.time",
122
+ "transforms": [
123
+ {
124
+ "toDateTime": {
125
+ "inputFormat": "2006-01-02T15:04:05Z07:00",
126
+ "outputFormat": "2006-01-02T15:04:05Z07:00"
127
+ }
128
+ }
129
+ ]
130
+ },
131
+ {
132
+ "inputKey": "properties.category",
133
+ "outputKey": "events.properties.category"
134
+ },
135
+ {
136
+ "inputKey": "properties.list_id",
137
+ "outputKey": "events.properties.list_id"
138
+ }
139
+ ],
140
+ "enrichments": [
141
+ {
142
+ "staticString": "product_list_viewed",
143
+ "outputKey": "events.name"
52
144
  }
53
145
  ]
54
146
  },
55
147
  "product_viewed": {
56
- "expressions": [
148
+ "mappings": [
57
149
  {
58
- "lang": "lua",
59
- "body": "function upperCaseCurrency (properties)\n properties.currency = UPPER(properties.currency)\n\treturn properties\nend\n\nreturn {\n attributes = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n }\n }},\n events = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n },\n name = 'product_viewed',\n time = TO_DATE_TIME(input.timestamp, {outputFormat = \"2006-01-02T15:04:05Z\"}),\n properties = upperCaseCurrency(input.properties)\n }}\n}"
150
+ "inputKey": "userId",
151
+ "outputKey": "attributes.external_id"
152
+ },
153
+ {
154
+ "inputKey": "userId",
155
+ "outputKey": "events.external_id"
156
+ },
157
+ {
158
+ "inputKey": "timestamp",
159
+ "outputKey": "events.time",
160
+ "transforms": [
161
+ {
162
+ "toDateTime": {
163
+ "inputFormat": "2006-01-02T15:04:05Z07:00",
164
+ "outputFormat": "2006-01-02T15:04:05Z07:00"
165
+ }
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ "inputKey": "input",
171
+ "outputKey": "events.properties",
172
+ "transforms": [
173
+ {
174
+ "expression": {
175
+ "lang": "lua",
176
+ "body": "function upperCaseCurrency (properties)\n properties.currency = UPPER(properties.currency)\n return properties\nend\n\nreturn upperCaseCurrency(input.properties)"
177
+ }
178
+ }
179
+ ]
180
+ }
181
+ ],
182
+ "enrichments": [
183
+ {
184
+ "staticString": "product_viewed",
185
+ "outputKey": "events.name"
60
186
  }
61
187
  ]
62
188
  },
63
189
  "product_added": {
64
- "expressions": [
190
+ "mappings": [
65
191
  {
66
- "lang": "lua",
67
- "body": "function upperCaseCurrency (properties)\n properties.currency = UPPER(properties.currency)\n\treturn properties\nend\n\nreturn {\n attributes = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n }\n }},\n events = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n },\n name = 'product_added',\n time = TO_DATE_TIME(input.timestamp, {outputFormat = \"2006-01-02T15:04:05Z\"}),\n properties = upperCaseCurrency(input.properties)\n }}\n}"
192
+ "inputKey": "userId",
193
+ "outputKey": "attributes.external_id"
194
+ },
195
+ {
196
+ "inputKey": "userId",
197
+ "outputKey": "events.external_id"
198
+ },
199
+ {
200
+ "inputKey": "timestamp",
201
+ "outputKey": "events.time",
202
+ "transforms": [
203
+ {
204
+ "toDateTime": {
205
+ "inputFormat": "2006-01-02T15:04:05Z07:00",
206
+ "outputFormat": "2006-01-02T15:04:05Z07:00"
207
+ }
208
+ }
209
+ ]
210
+ },
211
+ {
212
+ "inputKey": "input",
213
+ "outputKey": "events.properties",
214
+ "transforms": [
215
+ {
216
+ "expression": {
217
+ "lang": "lua",
218
+ "body": "function upperCaseCurrency (properties)\n properties.currency = UPPER(properties.currency)\n return properties\nend\n\nreturn upperCaseCurrency(input.properties)"
219
+ }
220
+ }
221
+ ]
222
+ }
223
+ ],
224
+ "enrichments": [
225
+ {
226
+ "staticString": "product_added",
227
+ "outputKey": "events.name"
68
228
  }
69
229
  ]
70
230
  },
71
231
  "cart_viewed": {
72
- "expressions": [
232
+ "mappings": [
73
233
  {
74
- "lang": "lua",
75
- "body": "return {\n attributes = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n }\n }},\n events = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n },\n name = 'cart_viewed',\n time = TO_DATE_TIME(input.timestamp, {outputFormat = \"2006-01-02T15:04:05Z\"}),\n properties = {\n cart_id = input.properties.cart_id,\n currency = UPPER(input.properties.currency),\n }\n }}\n}"
234
+ "inputKey": "userId",
235
+ "outputKey": "attributes.external_id"
236
+ },
237
+ {
238
+ "inputKey": "userId",
239
+ "outputKey": "events.external_id"
240
+ },
241
+ {
242
+ "inputKey": "timestamp",
243
+ "outputKey": "events.time",
244
+ "transforms": [
245
+ {
246
+ "toDateTime": {
247
+ "inputFormat": "2006-01-02T15:04:05Z07:00",
248
+ "outputFormat": "2006-01-02T15:04:05Z07:00"
249
+ }
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ "inputKey": "properties.cart_id",
255
+ "outputKey": "events.properties.cart_id"
256
+ },
257
+ {
258
+ "inputKey": "properties.currency",
259
+ "outputKey": "events.properties.currency",
260
+ "transforms": [
261
+ {
262
+ "modifyString": "uppercase"
263
+ }
264
+ ]
265
+ }
266
+ ],
267
+ "enrichments": [
268
+ {
269
+ "staticString": "cart_viewed",
270
+ "outputKey": "events.name"
76
271
  }
77
272
  ]
78
273
  },
@@ -80,7 +275,7 @@
80
275
  "expressions": [
81
276
  {
82
277
  "lang": "lua",
83
- "body": "local currency = UPPER(input.properties.currency)\nlocal products = MAP(\n input.properties.products,\n function (p)\n return {\n external_id=input.userId,\n user_alias={\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n },\n product_id=p.product_id,\n currency=currency,\n price=TO_FLOAT(p.price),\n quantity=TO_FLOAT(p.quantity) or 1,\n time = TO_DATE_TIME(input.timestamp, {outputFormat = \"2006-01-02T15:04:05Z\"}),\n properties = {\n name = p.name,\n category = p.category,\n sku = p.sku,\n image_url = p.image_url,\n url = p.url,\n }\n }\n end\n )\n\nreturn {\n attributes = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n }\n }},\n events = {{\n external_id = input.userId,\n user_alias = {\n alias_name = input.anonymousId,\n alias_label = 'anonymous_id',\n },\n name = 'order_completed',\n time = TO_DATE_TIME(input.timestamp, {outputFormat = \"2006-01-02T15:04:05Z\"}),\n properties = {\n checkout_id = input.properties.checkout_id,\n revenue = input.properties.revenue,\n total = input.properties.total,\n coupon = input.properties.coupon,\n shipping = input.properties.shipping,\n affiliation = input.properties.affiliation,\n discount = input.properties.discount,\n currency = currency,\n tax = input.properties.tax,\n order_id = input.properties.order_id,\n }\n }},\n purchases = products,\n}"
278
+ "body": "local currency = UPPER(input.properties.currency)\nlocal products = MAP(\n input.properties.products,\n function (p)\n return {\n external_id=input.userId,\n product_id=p.product_id,\n currency=currency,\n price=TO_FLOAT(p.price),\n quantity=TO_FLOAT(p.quantity) or 1,\n time = TO_DATE_TIME(input.timestamp, {outputFormat = \"2006-01-02T15:04:05Z\"}),\n properties = {\n name = p.name,\n category = p.category,\n sku = p.sku,\n image_url = p.image_url,\n url = p.url,\n }\n }\n end\n )\n\nreturn {\n attributes = {{\n external_id = input.userId,\n }},\n events = {{\n external_id = input.userId,\n name = 'order_completed',\n time = TO_DATE_TIME(input.timestamp, {outputFormat = \"2006-01-02T15:04:05Z\"}),\n properties = {\n checkout_id = input.properties.checkout_id,\n revenue = input.properties.revenue,\n total = input.properties.total,\n coupon = input.properties.coupon,\n shipping = input.properties.shipping,\n affiliation = input.properties.affiliation,\n discount = input.properties.discount,\n currency = currency,\n tax = input.properties.tax,\n order_id = input.properties.order_id,\n }\n }},\n purchases = products,\n}"
84
279
  }
85
280
  ]
86
281
  }
@@ -170,6 +170,18 @@
170
170
  "brokers": {
171
171
  "type": "string"
172
172
  },
173
+ "saslPlain": {
174
+ "type": "object",
175
+ "properties": {
176
+ "password": {
177
+ "type": "string"
178
+ },
179
+ "username": {
180
+ "type": "string"
181
+ }
182
+ },
183
+ "additionalProperties": false
184
+ },
173
185
  "tls": {
174
186
  "type": "boolean"
175
187
  },
@@ -1 +1 @@
1
- "ec68f7343c19ff937fd946981fbe9ca6"
1
+ "0c471d1504392504e2bfca3a657124c9"
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "default": {
3
3
  "endpoint": "http://widget.criteo.com/m/event?version=s2s_v0",
4
- "method": "POST",
5
- "timeout": "30s"
4
+ "method": "POST"
6
5
  }
7
6
  }
@@ -1 +1 @@
1
- "f7b1db5c287c9d8390b13ef48d1d92e7"
1
+ "4d4d2a5e779487bcbbeda31115889d78"
@@ -1 +1 @@
1
- "0e132f311fea25142d255666d41fe5cd"
1
+ "ffc6ae809d69bb231effd6f805894565"
@@ -2,7 +2,7 @@
2
2
  "params": [
3
3
  {
4
4
  "name": "API_VERSION",
5
- "defaultValue": "v11.0"
5
+ "defaultValue": "v13.0"
6
6
  },
7
7
  {
8
8
  "name": "PIXEL_ID",
@@ -16,6 +16,10 @@
16
16
  "default": {
17
17
  "endpoint": "https://graph.facebook.com/$$API_VERSION$$/$$PIXEL_ID$$/events?access_token=$$ACCESS_TOKEN$$",
18
18
  "method": "POST",
19
- "timeout": "30s"
19
+ "batchSize": 1000,
20
+ "transform": {
21
+ "lang": "lua",
22
+ "body": "request.body = { data = batch }\nreturn request"
23
+ }
20
24
  }
21
25
  }
@@ -1 +1 @@
1
- "b0659634b8c5191bcb9609b992d7d339"
1
+ "bc571a996baa33a0232799ddf3db03db"
@@ -22,6 +22,14 @@
22
22
  {
23
23
  "date": "2021-09-16T00:00:00.000Z",
24
24
  "note": "Update the default API version: v11.0"
25
+ },
26
+ {
27
+ "date": "2021-11-19T00:00:00.000Z",
28
+ "note": "uses batch endpoint"
29
+ },
30
+ {
31
+ "date": "2022-02-18T00:00:00.000Z",
32
+ "note": "updated from v12.0 to v13.0"
25
33
  }
26
34
  ]
27
35
  }
@@ -1 +1 @@
1
- "8ef9a19a0c34ef8c6c99ca04a0a3a867"
1
+ "2c284d3e6151c498a83db9831c097598"