@metarouter/ajs-starter-kit 1.0.53 → 1.0.54

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 (55) hide show
  1. package/.dist/adobe-analytics/connection.etag.json +1 -0
  2. package/.dist/adobe-analytics/connection.json +42 -0
  3. package/.dist/adobe-analytics/kit.etag.json +1 -0
  4. package/.dist/adobe-analytics/metadata.json +20 -0
  5. package/.dist/adobe-analytics/playbook.etag.json +1 -0
  6. package/.dist/adobe-analytics/playbook.json +71 -0
  7. package/.dist/adobe-id/connection.etag.json +1 -0
  8. package/.dist/adobe-id/connection.json +24 -0
  9. package/.dist/adobe-id/kit.etag.json +1 -0
  10. package/.dist/adobe-id/metadata.json +20 -0
  11. package/.dist/adobe-id/playbook.etag.json +1 -0
  12. package/.dist/adobe-id/playbook.json +74 -0
  13. package/.dist/miq-xandr/connection.etag.json +1 -0
  14. package/.dist/miq-xandr/connection.json +12 -0
  15. package/.dist/miq-xandr/kit.etag.json +1 -0
  16. package/.dist/miq-xandr/metadata.json +20 -0
  17. package/.dist/miq-xandr/playbook.etag.json +1 -0
  18. package/.dist/miq-xandr/playbook.json +79 -0
  19. package/.dist/nextdoor/connection.etag.json +1 -0
  20. package/.dist/nextdoor/connection.json +31 -0
  21. package/.dist/nextdoor/kit.etag.json +1 -0
  22. package/.dist/nextdoor/metadata.json +20 -0
  23. package/.dist/nextdoor/playbook.etag.json +1 -0
  24. package/.dist/nextdoor/playbook.json +111 -0
  25. package/.dist/pinterest-capi/connection.etag.json +1 -0
  26. package/.dist/pinterest-capi/connection.json +35 -0
  27. package/.dist/pinterest-capi/kit.etag.json +1 -0
  28. package/.dist/pinterest-capi/metadata.json +20 -0
  29. package/.dist/pinterest-capi/playbook.etag.json +1 -0
  30. package/.dist/pinterest-capi/playbook.json +288 -0
  31. package/.dist/podsights/connection.etag.json +1 -0
  32. package/.dist/podsights/connection.json +6 -0
  33. package/.dist/podsights/kit.etag.json +1 -0
  34. package/.dist/podsights/metadata.json +20 -0
  35. package/.dist/podsights/playbook.etag.json +1 -0
  36. package/.dist/podsights/playbook.json +132 -0
  37. package/.dist/tiktok/connection.etag.json +1 -0
  38. package/.dist/tiktok/connection.json +35 -0
  39. package/.dist/tiktok/kit.etag.json +1 -0
  40. package/.dist/tiktok/metadata.json +20 -0
  41. package/.dist/tiktok/playbook.etag.json +1 -0
  42. package/.dist/tiktok/playbook.json +346 -0
  43. package/.dist/yahoo-enhanced-attribution/connection.etag.json +1 -0
  44. package/.dist/yahoo-enhanced-attribution/connection.json +77 -0
  45. package/.dist/yahoo-enhanced-attribution/kit.etag.json +1 -0
  46. package/.dist/yahoo-enhanced-attribution/metadata.json +20 -0
  47. package/.dist/yahoo-enhanced-attribution/playbook.etag.json +1 -0
  48. package/.dist/yahoo-enhanced-attribution/playbook.json +96 -0
  49. package/.dist/yahoo-offline-conversion/connection.etag.json +1 -0
  50. package/.dist/yahoo-offline-conversion/connection.json +76 -0
  51. package/.dist/yahoo-offline-conversion/kit.etag.json +1 -0
  52. package/.dist/yahoo-offline-conversion/metadata.json +20 -0
  53. package/.dist/yahoo-offline-conversion/playbook.etag.json +1 -0
  54. package/.dist/yahoo-offline-conversion/playbook.json +267 -0
  55. package/package.json +1 -1
@@ -0,0 +1,346 @@
1
+ {
2
+ "version": "v0.0.1",
3
+ "default": {
4
+ "filters": [
5
+ {
6
+ "byEventNames": {
7
+ "action": "allow",
8
+ "events": [
9
+ ""
10
+ ]
11
+ }
12
+ }
13
+ ]
14
+ },
15
+ "global": {
16
+ "enrichments": [
17
+ {
18
+ "outputKey": "type",
19
+ "staticString": "track"
20
+ }
21
+ ],
22
+ "mappings": [
23
+ {
24
+ "inputKey": "input",
25
+ "outputKey": "event_id",
26
+ "transforms": [
27
+ {
28
+ "expression": {
29
+ "body": "return TO_SHA256_HASH(input.anonymousId) .. \"_\" .. input.messageId",
30
+ "lang": "lua"
31
+ }
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "inputKey": "timestamp",
37
+ "outputKey": "timestamp"
38
+ },
39
+ {
40
+ "inputKey": "context.providers.tiktok.ttclid",
41
+ "outputKey": "context.ad.callback"
42
+ },
43
+ {
44
+ "inputKey": "input",
45
+ "outputKey": "context.page.url",
46
+ "transforms": [
47
+ {
48
+ "expression": {
49
+ "body": "return SPLIT(input.context.page.url, \"?\", 1)[1] or \"\"",
50
+ "lang": "lua"
51
+ }
52
+ }
53
+ ]
54
+ },
55
+ {
56
+ "inputKey": "context.page.referrer",
57
+ "outputKey": "context.page.referrer"
58
+ },
59
+ {
60
+ "inputKey": "context.providers.tiktok.ttp",
61
+ "outputKey": "context.user.ttp"
62
+ },
63
+ {
64
+ "inputKey": "anonymousId",
65
+ "outputKey": "context.user.external_id",
66
+ "transforms": [
67
+ {
68
+ "toHash": "sha256"
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ "inputKey": "context.traits.email",
74
+ "outputKey": "context.user.email",
75
+ "transforms": [
76
+ {
77
+ "toHash": "sha256"
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "inputKey": "context.traits.phone",
83
+ "outputKey": "context.user.phone_number",
84
+ "transforms": [
85
+ {
86
+ "toHash": "sha256"
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ "inputKey": "context.ip",
92
+ "outputKey": "context.ip"
93
+ },
94
+ {
95
+ "inputKey": "context.userAgent",
96
+ "outputKey": "context.user_agent"
97
+ }
98
+ ]
99
+ },
100
+ "eventSpecific": {
101
+ "page": {
102
+ "enrichments": [
103
+ {
104
+ "outputKey": "event",
105
+ "staticString": "ViewContent"
106
+ },
107
+ {
108
+ "outputKey": "properties.description",
109
+ "staticString": "page"
110
+ }
111
+ ]
112
+ },
113
+ "products_searched": {
114
+ "enrichments": [
115
+ {
116
+ "outputKey": "event",
117
+ "staticString": "Search"
118
+ }
119
+ ],
120
+ "mappings": [
121
+ {
122
+ "inputKey": "properties.query",
123
+ "outputKey": "properties.query"
124
+ }
125
+ ]
126
+ },
127
+ "product_list_viewed": {
128
+ "enrichments": [
129
+ {
130
+ "outputKey": "event",
131
+ "staticString": "ViewContent"
132
+ },
133
+ {
134
+ "outputKey": "properties.description",
135
+ "staticString": "product list viewed"
136
+ }
137
+ ],
138
+ "mappings": [
139
+ {
140
+ "inputKey": "properties.currency",
141
+ "outputKey": "properties.currency",
142
+ "defaultString": "USD",
143
+ "transforms": [
144
+ {
145
+ "modifyString": "uppercase"
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "inputKey": "input",
151
+ "outputKey": "properties.value",
152
+ "transforms": [
153
+ {
154
+ "expression": {
155
+ "lang": "lua",
156
+ "body": "return SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))"
157
+ }
158
+ }
159
+ ]
160
+ },
161
+ {
162
+ "inputKey": "input",
163
+ "outputKey": "properties.contents",
164
+ "transforms": [
165
+ {
166
+ "expression": {
167
+ "body": "local contents=MAP(input.properties.products,\n function (p)\n return {\n content_id=p.product_id,\n content_name=p.name,\n content_category=p.category,\n price=p.price,\n quantity=p.quantity,\n content_type=\"product\"\n }\n end\n)\nreturn contents",
168
+ "lang": "lua"
169
+ }
170
+ }
171
+ ]
172
+ }
173
+ ]
174
+ },
175
+ "product_viewed": {
176
+ "enrichments": [
177
+ {
178
+ "outputKey": "event",
179
+ "staticString": "ViewContent"
180
+ },
181
+ {
182
+ "outputKey": "properties.description",
183
+ "staticString": "product viewed"
184
+ }
185
+ ],
186
+ "mappings": [
187
+ {
188
+ "inputKey": "properties.price",
189
+ "outputKey": "properties.value"
190
+ },
191
+ {
192
+ "inputKey": "input",
193
+ "outputKey": "properties.contents",
194
+ "transforms": [
195
+ {
196
+ "expression": {
197
+ "body": "return {{\n content_id=input.properties.product_id,\n content_name=input.properties.name,\n content_category=input.properties.category,\n price=input.properties.price,\n quantity=input.properties.quantity,\n content_type=\"product\"\n}}",
198
+ "lang": "lua"
199
+ }
200
+ }
201
+ ]
202
+ }
203
+ ]
204
+ },
205
+ "product_added": {
206
+ "enrichments": [
207
+ {
208
+ "outputKey": "event",
209
+ "staticString": "AddToCart"
210
+ }
211
+ ],
212
+ "mappings": [
213
+ {
214
+ "inputKey": "properties.currency",
215
+ "outputKey": "properties.currency",
216
+ "defaultString": "USD",
217
+ "transforms": [
218
+ {
219
+ "modifyString": "uppercase"
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "inputKey": "input",
225
+ "outputKey": "properties.value",
226
+ "transforms": [
227
+ {
228
+ "expression": {
229
+ "lang": "lua",
230
+ "body": "return input.properties.price * (input.properties.quantity or 1)"
231
+ }
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "inputKey": "input",
237
+ "outputKey": "properties.contents",
238
+ "transforms": [
239
+ {
240
+ "expression": {
241
+ "body": "return {{\n content_id=input.properties.product_id,\n content_name=input.properties.name,\n content_category=input.properties.category,\n price=input.properties.price,\n quantity=input.properties.quantity,\n content_type=\"product\"\n}}",
242
+ "lang": "lua"
243
+ }
244
+ }
245
+ ]
246
+ }
247
+ ]
248
+ },
249
+ "cart_viewed": {
250
+ "enrichments": [
251
+ {
252
+ "outputKey": "event",
253
+ "staticString": "InitiateCheckout"
254
+ }
255
+ ],
256
+ "mappings": [
257
+ {
258
+ "inputKey": "properties.currency",
259
+ "outputKey": "properties.currency",
260
+ "defaultString": "USD",
261
+ "transforms": [
262
+ {
263
+ "modifyString": "uppercase"
264
+ }
265
+ ]
266
+ },
267
+ {
268
+ "inputKey": "input",
269
+ "outputKey": "properties.value",
270
+ "transforms": [
271
+ {
272
+ "expression": {
273
+ "lang": "lua",
274
+ "body": "return SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))"
275
+ }
276
+ }
277
+ ]
278
+ },
279
+ {
280
+ "inputKey": "input",
281
+ "outputKey": "properties.contents",
282
+ "transforms": [
283
+ {
284
+ "expression": {
285
+ "body": "local contents=MAP(input.properties.products,\n function (p)\n return {\n content_id=p.product_id,\n content_name=p.name,\n content_category=p.category,\n price=p.price,\n quantity=p.quantity,\n content_type=\"product\"\n }\n end\n)\nreturn contents",
286
+ "lang": "lua"
287
+ }
288
+ }
289
+ ]
290
+ }
291
+ ]
292
+ },
293
+ "order_completed": {
294
+ "enrichments": [
295
+ {
296
+ "outputKey": "event",
297
+ "staticString": "CompletePayment"
298
+ }
299
+ ],
300
+ "mappings": [
301
+ {
302
+ "inputKey": "properties.currency",
303
+ "outputKey": "properties.currency",
304
+ "defaultString": "USD",
305
+ "transforms": [
306
+ {
307
+ "modifyString": "uppercase"
308
+ }
309
+ ]
310
+ },
311
+ {
312
+ "inputKey": "input",
313
+ "outputKey": "properties.value",
314
+ "transforms": [
315
+ {
316
+ "expression": {
317
+ "lang": "lua",
318
+ "body": "return SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))"
319
+ }
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "inputKey": "input",
325
+ "outputKey": "properties.contents",
326
+ "transforms": [
327
+ {
328
+ "expression": {
329
+ "body": "local contents=MAP(input.properties.products,\n function (p)\n return {\n content_id=p.product_id,\n content_name=p.name,\n content_category=p.category,\n price=p.price,\n quantity=p.quantity,\n content_type=\"product\"\n }\n end\n)\nreturn contents",
330
+ "lang": "lua"
331
+ }
332
+ }
333
+ ]
334
+ }
335
+ ]
336
+ },
337
+ "signed_up": {
338
+ "enrichments": [
339
+ {
340
+ "outputKey": "event",
341
+ "staticString": "CompleteRegistration"
342
+ }
343
+ ]
344
+ }
345
+ }
346
+ }
@@ -0,0 +1 @@
1
+ "c9e493deb6288a79a67e6b0152df0011"
@@ -0,0 +1,77 @@
1
+ {
2
+ "params": [
3
+ {
4
+ "name": "OAUTH2_REQUEST_URL",
5
+ "exampleValue": "oauth2-request-url"
6
+ },
7
+ {
8
+ "name": "CLIENT_ID",
9
+ "exampleValue": "client-id"
10
+ },
11
+ {
12
+ "name": "CLIENT_SECRET",
13
+ "exampleValue": "client-secret"
14
+ }
15
+ ],
16
+ "default": {
17
+ "endpoint": "https://aaca.yahooinc.com",
18
+ "headers": [
19
+ {
20
+ "key": "Content-Type",
21
+ "value": "application/x-www-form-urlencoded"
22
+ }
23
+ ],
24
+ "method": "GET",
25
+ "oauth2Auth": {
26
+ "jwt": {
27
+ "claims": [
28
+ {
29
+ "key": "aud",
30
+ "value": "$$OAUTH2_REQUEST_URL$$?realm=aaca"
31
+ },
32
+ {
33
+ "key": "sub",
34
+ "value": "$$CLIENT_ID$$"
35
+ },
36
+ {
37
+ "key": "iss",
38
+ "value": "$$CLIENT_ID$$"
39
+ }
40
+ ],
41
+ "hsSigningSecret": "$$CLIENT_SECRET$$",
42
+ "requestKey": "client_assertion",
43
+ "signingMethod": "SIGNING_METHOD_HS256"
44
+ },
45
+ "request": {
46
+ "body": [
47
+ {
48
+ "key": "grant_type",
49
+ "value": "client_credentials"
50
+ },
51
+ {
52
+ "key": "client_assertion_type",
53
+ "value": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
54
+ },
55
+ {
56
+ "key": "scope",
57
+ "value": "upload"
58
+ },
59
+ {
60
+ "key": "realm",
61
+ "value": "aaca"
62
+ }
63
+ ],
64
+ "contentType": "application/x-www-form-urlencoded",
65
+ "headers": [
66
+ {
67
+ "key": "Accept",
68
+ "value": "application/json"
69
+ }
70
+ ],
71
+ "method": "POST",
72
+ "url": "$$OAUTH2_REQUEST_URL$$"
73
+ },
74
+ "responseAccessTokenKey": "access_token"
75
+ }
76
+ }
77
+ }
@@ -0,0 +1 @@
1
+ "d41d8cd98f00b204e9800998ecf8427e"
@@ -0,0 +1,20 @@
1
+ {
2
+ "isDraft": false,
3
+ "isBeta": true,
4
+ "friendlyName": "Yahoo Enhanced Attribution",
5
+ "description": "Yahoo Enhanced Attribution works by leveraging a click ID to count post-click conversions, using a privacy-friendly mechanism that doesn’t require or depend on a 3rd-party cookie.",
6
+ "logo": "https://cdn.metarouter.io/logo.svg",
7
+ "color": "#FA1200",
8
+ "eventSource": {
9
+ "isAndroidApp": true,
10
+ "isIosApp": true,
11
+ "isWebApp": true
12
+ },
13
+ "inputSchema": "analytics_js",
14
+ "releaseNotes": [
15
+ {
16
+ "date": "2023-03-07T00:00:00.000Z",
17
+ "note": "Yahoo Offline Conversion initial release."
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1 @@
1
+ "84470235e1da66761acb6cff9a260cfc"
@@ -0,0 +1,96 @@
1
+ {
2
+ "version": "v0.0.1",
3
+ "params": [
4
+ {
5
+ "name": "PIXEL_ID",
6
+ "exampleValue": "pixel-id"
7
+ },
8
+ {
9
+ "name": "PARTNER_ID",
10
+ "exampleValue": "partner-id"
11
+ }
12
+ ],
13
+ "default": {
14
+ "filters": [
15
+ {
16
+ "byEventNames": {
17
+ "action": "allow",
18
+ "events": [
19
+ ""
20
+ ]
21
+ }
22
+ }
23
+ ]
24
+ },
25
+ "global": {
26
+ "enrichments": [
27
+ {
28
+ "outputKey": "yp",
29
+ "staticString": "$$PIXEL_ID$$"
30
+ },
31
+ {
32
+ "outputKey": "dp",
33
+ "staticString": "$$PARTNER_ID$$"
34
+ }
35
+ ],
36
+ "filters": [
37
+ {
38
+ "byConditions": {
39
+ "action": "allow",
40
+ "when": {
41
+ "inputPathExists": {
42
+ "inputPath": "context.providers.yahooMedia.vmcid"
43
+ }
44
+ }
45
+ }
46
+ }
47
+ ],
48
+ "mappings": [
49
+ {
50
+ "inputKey": "context.providers.yahooMedia.vmcid",
51
+ "outputKey": "vmcid"
52
+ },
53
+ {
54
+ "inputKey": "context.providers.yahooMedia.yahoo_id",
55
+ "outputKey": "uuid"
56
+ },
57
+ {
58
+ "inputKey": "messageId",
59
+ "outputKey": "id"
60
+ },
61
+ {
62
+ "inputKey": "timestamp",
63
+ "outputKey": "et",
64
+ "transforms": [
65
+ {
66
+ "toTimestamp": "inMillis"
67
+ }
68
+ ]
69
+ }
70
+ ]
71
+ },
72
+ "eventSpecific": {
73
+ "order_completed": {
74
+ "enrichments": [
75
+ {
76
+ "outputKey": "ec",
77
+ "staticString": "Ecommerce"
78
+ },
79
+ {
80
+ "outputKey": "ea",
81
+ "staticString": "Purchase"
82
+ },
83
+ {
84
+ "outputKey": "gc",
85
+ "staticString": "USD"
86
+ }
87
+ ],
88
+ "mappings": [
89
+ {
90
+ "inputKey": "properties.revenue",
91
+ "outputKey": "gv"
92
+ }
93
+ ]
94
+ }
95
+ }
96
+ }
@@ -0,0 +1 @@
1
+ "bef5eae26954b3589ae356a45bb8b349"
@@ -0,0 +1,76 @@
1
+ {
2
+ "params": [
3
+ {
4
+ "name": "OAUTH2_REQUEST_URL",
5
+ "exampleValue": "oauth2-request-url"
6
+ },
7
+ {
8
+ "name": "CLIENT_ID",
9
+ "exampleValue": "client-id"
10
+ },
11
+ {
12
+ "name": "CLIENT_SECRET",
13
+ "exampleValue": "client-secret"
14
+ },
15
+ {
16
+ "name": "PIXEL_ID",
17
+ "exampleValue": "pixel-id"
18
+ }
19
+ ],
20
+ "default": {
21
+ "batchSize": 1,
22
+ "endpoint": "https://dataxonline.yahoo.com/v1/pixels/$$PIXEL_ID$$/events",
23
+ "method": "POST",
24
+ "oauth2Auth": {
25
+ "jwt": {
26
+ "claims": [
27
+ {
28
+ "key": "aud",
29
+ "value": "$$OAUTH2_REQUEST_URL$$?realm=dataxonline"
30
+ },
31
+ {
32
+ "key": "sub",
33
+ "value": "$$CLIENT_ID$$"
34
+ },
35
+ {
36
+ "key": "iss",
37
+ "value": "$$CLIENT_ID$$"
38
+ }
39
+ ],
40
+ "hsSigningSecret": "$$CLIENT_SECRET$$",
41
+ "requestKey": "client_assertion",
42
+ "signingMethod": "SIGNING_METHOD_HS256"
43
+ },
44
+ "request": {
45
+ "body": [
46
+ {
47
+ "key": "grant_type",
48
+ "value": "client_credentials"
49
+ },
50
+ {
51
+ "key": "client_assertion_type",
52
+ "value": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
53
+ },
54
+ {
55
+ "key": "scope",
56
+ "value": "pixel-event"
57
+ },
58
+ {
59
+ "key": "realm",
60
+ "value": "dataxonline"
61
+ }
62
+ ],
63
+ "contentType": "application/x-www-form-urlencoded",
64
+ "headers": [
65
+ {
66
+ "key": "Accept",
67
+ "value": "application/json"
68
+ }
69
+ ],
70
+ "method": "POST",
71
+ "url": "$$OAUTH2_REQUEST_URL$$"
72
+ },
73
+ "responseAccessTokenKey": "access_token"
74
+ }
75
+ }
76
+ }
@@ -0,0 +1 @@
1
+ "d41d8cd98f00b204e9800998ecf8427e"
@@ -0,0 +1,20 @@
1
+ {
2
+ "isDraft": false,
3
+ "isBeta": true,
4
+ "friendlyName": "Yahoo Offline Conversion",
5
+ "description": "Create and manage offline tracking pixels that measure the impact of your digital ad spend on driving visits to your stores or stores where your products are sold.",
6
+ "logo": "https://cdn.metarouter.io/logo.svg",
7
+ "color": "#FA1200",
8
+ "eventSource": {
9
+ "isAndroidApp": true,
10
+ "isIosApp": true,
11
+ "isWebApp": true
12
+ },
13
+ "inputSchema": "analytics_js",
14
+ "releaseNotes": [
15
+ {
16
+ "date": "2023-03-07T00:00:00.000Z",
17
+ "note": "Yahoo Offline Conversion initial release."
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1 @@
1
+ "d4cc56bf5bd9ce5c3053aa6a8d4a295e"