@metarouter/ajs-starter-kit 1.0.32 → 1.0.35
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.
- package/.dist/actioniq/endpoint_schema.etag.json +1 -1
- package/.dist/actioniq/endpoint_schema.json +18 -3
- package/.dist/actioniq/kit.etag.json +1 -1
- package/.dist/actioniq/metadata.json +4 -0
- package/.dist/amplitude/endpoint_schema.etag.json +1 -1
- package/.dist/amplitude/endpoint_schema.json +12 -1
- package/.dist/amplitude/kit.etag.json +1 -1
- package/.dist/amplitude/metadata.json +4 -0
- package/.dist/amplitude/playbook.etag.json +1 -1
- package/.dist/amplitude/playbook.json +769 -89
- package/.dist/blueshift/endpoint_schema.etag.json +1 -1
- package/.dist/blueshift/endpoint_schema.json +7 -2
- package/.dist/blueshift/kit.etag.json +1 -1
- package/.dist/blueshift/metadata.json +4 -0
- package/.dist/braze/endpoint_schema.etag.json +1 -1
- package/.dist/braze/endpoint_schema.json +41 -1
- package/.dist/braze/kit.etag.json +1 -1
- package/.dist/braze/metadata.json +4 -0
- package/.dist/braze/playbook.etag.json +1 -1
- package/.dist/braze/playbook.json +217 -22
- package/.dist/connection-schemas.json +12 -0
- package/.dist/facebook-pixel/endpoint_schema.etag.json +1 -1
- package/.dist/facebook-pixel/endpoint_schema.json +7 -2
- package/.dist/facebook-pixel/kit.etag.json +1 -1
- package/.dist/facebook-pixel/metadata.json +8 -0
- package/.dist/facebook-pixel/playbook.etag.json +1 -1
- package/.dist/facebook-pixel/playbook.json +321 -24
- package/.dist/mixpanel/endpoint_schema.etag.json +1 -0
- package/.dist/mixpanel/endpoint_schema.json +39 -0
- package/.dist/mixpanel/kit.etag.json +1 -0
- package/.dist/mixpanel/metadata.json +19 -0
- package/.dist/mixpanel/playbook.etag.json +1 -0
- package/.dist/mixpanel/playbook.json +71 -0
- package/.dist/roomvo/endpoint_schema.etag.json +1 -1
- package/.dist/roomvo/endpoint_schema.json +5 -0
- package/.dist/roomvo/kit.etag.json +1 -1
- package/.dist/roomvo/metadata.json +4 -0
- package/.dist/roomvo/playbook.etag.json +1 -1
- package/.dist/roomvo/playbook.json +31 -1
- package/index.js +15 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"e413e868ddbc12c84e8b7a74190589c0"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
}
|
|
7
7
|
],
|
|
8
8
|
"default": {
|
|
9
|
-
"endpoint": "https://api.getblueshift.com/api/v1/
|
|
9
|
+
"endpoint": "https://api.getblueshift.com/api/v1/bulkevents",
|
|
10
10
|
"basicAuth": {
|
|
11
11
|
"username": "$$EVENT_API_KEY$$"
|
|
12
12
|
},
|
|
@@ -20,6 +20,11 @@
|
|
|
20
20
|
"value": "application/json"
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
|
-
"method": "POST"
|
|
23
|
+
"method": "POST",
|
|
24
|
+
"batchSize": 100,
|
|
25
|
+
"transform": {
|
|
26
|
+
"lang": "lua",
|
|
27
|
+
"body": "request.body = { events = batch }\nreturn request"
|
|
28
|
+
}
|
|
24
29
|
}
|
|
25
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"359bb0fef87650ca5a3798ae25ed52b3"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"7feebc662575f75b1e5f3585462823c2"
|
|
@@ -19,9 +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
|
-
"method": "POST"
|
|
32
|
+
"method": "POST",
|
|
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
|
+
}
|
|
25
38
|
},
|
|
26
39
|
"eventSpecific": {
|
|
27
40
|
"identify": {
|
|
@@ -36,6 +49,33 @@
|
|
|
36
49
|
"value": "Bearer $$API_KEY$$"
|
|
37
50
|
}
|
|
38
51
|
],
|
|
52
|
+
"method": "POST",
|
|
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
|
+
],
|
|
39
79
|
"method": "POST"
|
|
40
80
|
}
|
|
41
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"568cbdddd6c78331284c927974ec9b52"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"0f7be13c21f4bc9676a200545eaad2ff"
|
|
@@ -21,58 +21,253 @@
|
|
|
21
21
|
},
|
|
22
22
|
"eventSpecific": {
|
|
23
23
|
"identify": {
|
|
24
|
-
"
|
|
24
|
+
"mappings": [
|
|
25
25
|
{
|
|
26
|
-
"
|
|
27
|
-
"
|
|
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
|
-
"
|
|
42
|
+
"mappings": [
|
|
33
43
|
{
|
|
34
|
-
"
|
|
35
|
-
"
|
|
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
|
-
"
|
|
76
|
+
"mappings": [
|
|
41
77
|
{
|
|
42
|
-
"
|
|
43
|
-
"
|
|
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
|
-
"
|
|
110
|
+
"mappings": [
|
|
49
111
|
{
|
|
50
|
-
"
|
|
51
|
-
"
|
|
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
|
-
"
|
|
148
|
+
"mappings": [
|
|
57
149
|
{
|
|
58
|
-
"
|
|
59
|
-
"
|
|
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
|
-
"
|
|
190
|
+
"mappings": [
|
|
65
191
|
{
|
|
66
|
-
"
|
|
67
|
-
"
|
|
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
|
-
"
|
|
232
|
+
"mappings": [
|
|
73
233
|
{
|
|
74
|
-
"
|
|
75
|
-
"
|
|
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
|
|
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
|
-
"
|
|
1
|
+
"ffc6ae809d69bb231effd6f805894565"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"params": [
|
|
3
3
|
{
|
|
4
4
|
"name": "API_VERSION",
|
|
5
|
-
"defaultValue": "
|
|
5
|
+
"defaultValue": "v13.0"
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "PIXEL_ID",
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
],
|
|
16
16
|
"default": {
|
|
17
17
|
"endpoint": "https://graph.facebook.com/$$API_VERSION$$/$$PIXEL_ID$$/events?access_token=$$ACCESS_TOKEN$$",
|
|
18
|
-
"method": "POST"
|
|
18
|
+
"method": "POST",
|
|
19
|
+
"batchSize": 1000,
|
|
20
|
+
"transform": {
|
|
21
|
+
"lang": "lua",
|
|
22
|
+
"body": "request.body = { data = batch }\nreturn request"
|
|
23
|
+
}
|
|
19
24
|
}
|
|
20
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
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
|
-
"
|
|
1
|
+
"2c284d3e6151c498a83db9831c097598"
|