@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,288 @@
1
+ {
2
+ "version": "v0.0.1",
3
+ "global": {
4
+ "enrichments": [
5
+ {
6
+ "outputKey": "partner_name",
7
+ "staticString": "MetaRouter"
8
+ },
9
+ {
10
+ "outputKey": "custom_data.opt_out_type",
11
+ "staticString": "LDP"
12
+ }
13
+ ],
14
+ "mappings": [
15
+ {
16
+ "inputKey": "input",
17
+ "outputKey": "action_source",
18
+ "transforms": [
19
+ {
20
+ "expression": {
21
+ "body": "if input.context.app.name or input.context.device.type or input.context.os.name then\n if input.context.device.manufacturer and input.context.device.manufacturer == 'Apple' then\n return 'app_ios'\n end\n return 'app_android'\nend\nreturn 'web'",
22
+ "lang": "lua"
23
+ }
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ "inputKey": "input",
29
+ "outputKey": "event_time",
30
+ "transforms": [
31
+ {
32
+ "expression": {
33
+ "lang": "lua",
34
+ "body": "local date = input.originalTimestamp or input.sentAt\nreturn SECONDS_SINCE_EPOCH_FROM_RFC3999(TO_DATE_TIME(date, { inputFormat = \"2006-01-02T15:04:05Z07:00\" }))"
35
+ }
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "inputKey": "messageId",
41
+ "outputKey": "event_id"
42
+ },
43
+ {
44
+ "inputKey": "context.page.url",
45
+ "outputKey": "event_source_url"
46
+ },
47
+ {
48
+ "inputKey": "input",
49
+ "outputKey": "user_data.em",
50
+ "transforms": [
51
+ {
52
+ "expression": {
53
+ "lang": "lua",
54
+ "body": "return { TO_SHA256_HASH(LOWER(TRIM(input.traits.email))) }"
55
+ }
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "inputKey": "context.ip",
61
+ "outputKey": "user_data.client_ip_address"
62
+ },
63
+ {
64
+ "inputKey": "context.userAgent",
65
+ "outputKey": "user_data.client_user_agent"
66
+ },
67
+ {
68
+ "inputKey": "input",
69
+ "outputKey": "user_data.ct",
70
+ "transforms": [
71
+ {
72
+ "expression": {
73
+ "lang": "lua",
74
+ "body": "return { TO_SHA256_HASH(input.traits.city) }"
75
+ }
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ "inputKey": "input",
81
+ "outputKey": "user_data.st",
82
+ "transforms": [
83
+ {
84
+ "expression": {
85
+ "lang": "lua",
86
+ "body": "return { TO_SHA256_HASH(input.traits.state) }"
87
+ }
88
+ }
89
+ ]
90
+ },
91
+ {
92
+ "inputKey": "input",
93
+ "outputKey": "user_data.zp",
94
+ "transforms": [
95
+ {
96
+ "expression": {
97
+ "lang": "lua",
98
+ "body": "return { TO_SHA256_HASH(input.traits.zipcode) }"
99
+ }
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "inputKey": "input",
105
+ "outputKey": "user_data.country",
106
+ "transforms": [
107
+ {
108
+ "expression": {
109
+ "lang": "lua",
110
+ "body": "return { TO_SHA256_HASH(input.traits.country) }"
111
+ }
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "inputKey": "input",
117
+ "outputKey": "user_data.external_id",
118
+ "transforms": [
119
+ {
120
+ "expression": {
121
+ "lang": "lua",
122
+ "body": "return { TO_SHA256_HASH(input.anonymousId) }"
123
+ }
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "inputKey": "context.providers.pinterestCAPI.epik",
129
+ "outputKey": "user_data.click_id"
130
+ }
131
+ ]
132
+ },
133
+ "eventSpecific": {
134
+ "page": {
135
+ "enrichments": [
136
+ {
137
+ "outputKey": "event_name",
138
+ "staticString": "page_visit"
139
+ }
140
+ ]
141
+ },
142
+ "products_searched": {
143
+ "enrichments": [
144
+ {
145
+ "outputKey": "event_name",
146
+ "staticString": "search"
147
+ }
148
+ ],
149
+ "mappings": [
150
+ {
151
+ "inputKey": "properties.query",
152
+ "outputKey": "custom_data.search_string"
153
+ }
154
+ ]
155
+ },
156
+ "product_added": {
157
+ "enrichments": [
158
+ {
159
+ "outputKey": "event_name",
160
+ "staticString": "add_to_cart"
161
+ }
162
+ ],
163
+ "mappings": [
164
+ {
165
+ "inputKey": "properties.currency",
166
+ "outputKey": "custom_data.currency",
167
+ "defaultString": "USD",
168
+ "transforms": [
169
+ {
170
+ "modifyString": "uppercase"
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ "inputKey": "input",
176
+ "outputKey": "custom_data.value",
177
+ "transforms": [
178
+ {
179
+ "expression": {
180
+ "lang": "lua",
181
+ "body": "return input.properties.price * (input.properties.quantity or 1)"
182
+ }
183
+ }
184
+ ]
185
+ },
186
+ {
187
+ "inputKey": "input",
188
+ "outputKey": "custom_data.content_ids",
189
+ "transforms": [
190
+ {
191
+ "expression": {
192
+ "body": "return {{ input.properties.product_id }}",
193
+ "lang": "lua"
194
+ }
195
+ }
196
+ ]
197
+ },
198
+ {
199
+ "inputKey": "input",
200
+ "outputKey": "custom_data.contents",
201
+ "transforms": [
202
+ {
203
+ "expression": {
204
+ "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}}",
205
+ "lang": "lua"
206
+ }
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "inputKey": "properties.quantity",
212
+ "outputKey": "custom_data.num_items"
213
+ }
214
+ ]
215
+ },
216
+ "order_completed": {
217
+ "enrichments": [
218
+ {
219
+ "outputKey": "event_name",
220
+ "staticString": "checkout"
221
+ }
222
+ ],
223
+ "mappings": [
224
+ {
225
+ "inputKey": "properties.currency",
226
+ "outputKey": "custom_data.currency",
227
+ "transforms": [
228
+ {
229
+ "modifyString": "uppercase"
230
+ }
231
+ ]
232
+ },
233
+ {
234
+ "inputKey": "input",
235
+ "outputKey": "custom_data.value",
236
+ "transforms": [
237
+ {
238
+ "expression": {
239
+ "lang": "lua",
240
+ "body": "return SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))"
241
+ }
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "inputKey": "input",
247
+ "outputKey": "custom_data.content_ids",
248
+ "transforms": [
249
+ {
250
+ "expression": {
251
+ "body": "return MAP(input.properties.products, function (p) return p.product_id end )",
252
+ "lang": "lua"
253
+ }
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "inputKey": "input",
259
+ "outputKey": "custom_data.contents",
260
+ "transforms": [
261
+ {
262
+ "expression": {
263
+ "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",
264
+ "lang": "lua"
265
+ }
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ "inputKey": "input",
271
+ "outputKey": "custom_data.num_items",
272
+ "transforms": [
273
+ {
274
+ "expression": {
275
+ "lang": "lua",
276
+ "body": "return SUM(MAP(input.properties.products, function (p) return p.quantity or 1 end))"
277
+ }
278
+ }
279
+ ]
280
+ },
281
+ {
282
+ "inputKey": "properties.order_id",
283
+ "outputKey": "custom_data.order_id"
284
+ }
285
+ ]
286
+ }
287
+ }
288
+ }
@@ -0,0 +1 @@
1
+ "929d2a5ebd090a614299ad199cc76865"
@@ -0,0 +1,6 @@
1
+ {
2
+ "default": {
3
+ "endpoint": "https://metarouter.pdst.io/",
4
+ "method": "POST"
5
+ }
6
+ }
@@ -0,0 +1 @@
1
+ "d41d8cd98f00b204e9800998ecf8427e"
@@ -0,0 +1,20 @@
1
+ {
2
+ "isDraft": false,
3
+ "isBeta": true,
4
+ "friendlyName": "Podsights",
5
+ "description": "Brands and agencies use Podsights to validate and scale their podcast advertising.",
6
+ "logo": "https://cdn.metarouter.io/logo.svg",
7
+ "color": "#687FFF",
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": "Podsights initial release."
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1 @@
1
+ "b053c0dcbf9210ddf6a6849ba9776f94"
@@ -0,0 +1,132 @@
1
+ {
2
+ "version": "v0.0.1",
3
+ "params": [
4
+ {
5
+ "name": "KEY",
6
+ "defaultValue": "key"
7
+ }
8
+ ],
9
+ "default": {
10
+ "filters": [
11
+ {
12
+ "byEventNames": {
13
+ "action": "allow",
14
+ "events": [
15
+ ""
16
+ ]
17
+ }
18
+ }
19
+ ]
20
+ },
21
+ "global": {
22
+ "enrichments": [
23
+ {
24
+ "outputKey": "podsights_key",
25
+ "staticString": "$$KEY$$"
26
+ }
27
+ ],
28
+ "filters": [
29
+ {
30
+ "byEventNames": {
31
+ "action": "allow",
32
+ "events": [
33
+ "page",
34
+ "order_completed"
35
+ ]
36
+ }
37
+ }
38
+ ],
39
+ "mappings": [
40
+ {
41
+ "inputKey": "messageId",
42
+ "outputKey": "messageId"
43
+ },
44
+ {
45
+ "inputKey": "userId",
46
+ "outputKey": "userId"
47
+ },
48
+ {
49
+ "inputKey": "previousId",
50
+ "outputKey": "previousId"
51
+ },
52
+ {
53
+ "inputKey": "anonymousId",
54
+ "outputKey": "anonymousId"
55
+ },
56
+ {
57
+ "inputKey": "originalTimestamp",
58
+ "outputKey": "originalTimestamp"
59
+ },
60
+ {
61
+ "inputKey": "receivedAt",
62
+ "outputKey": "receivedAt"
63
+ },
64
+ {
65
+ "inputKey": "sentAt",
66
+ "outputKey": "sentAt"
67
+ },
68
+ {
69
+ "inputKey": "timestamp",
70
+ "outputKey": "timestamp"
71
+ },
72
+ {
73
+ "inputKey": "type",
74
+ "outputKey": "type"
75
+ },
76
+ {
77
+ "inputKey": "context.page",
78
+ "outputKey": "context.page"
79
+ },
80
+ {
81
+ "inputKey": "context.library",
82
+ "outputKey": "context.library"
83
+ },
84
+ {
85
+ "inputKey": "context.userAgent",
86
+ "outputKey": "context.userAgent"
87
+ },
88
+ {
89
+ "inputKey": "context.ip",
90
+ "outputKey": "context.ip"
91
+ }
92
+ ]
93
+ },
94
+ "eventSpecific": {
95
+ "page": {
96
+ "mappings": [
97
+ {
98
+ "inputKey": "name",
99
+ "outputKey": "name"
100
+ },
101
+ {
102
+ "inputKey": "category",
103
+ "outputKey": "category"
104
+ },
105
+ {
106
+ "inputKey": "properties",
107
+ "outputKey": "properties"
108
+ }
109
+ ]
110
+ },
111
+ "order_completed": {
112
+ "mappings": [
113
+ {
114
+ "inputKey": "event",
115
+ "outputKey": "event"
116
+ },
117
+ {
118
+ "inputKey": "input",
119
+ "outputKey": "properties",
120
+ "transforms": [
121
+ {
122
+ "expression": {
123
+ "lang": "lua",
124
+ "body": "local props = {}\nfor key, value in pairs(input.properties) do\n if key == \"products\" then\n local prods = {}\n for index, val in ipairs(input.properties.products) do\n local productIndex = \"products_\" .. tostring(index-1)\n props[productIndex] = val\n end\n else\n props[key] = tostring(value)\n end\nend\nreturn props"
125
+ }
126
+ }
127
+ ]
128
+ }
129
+ ]
130
+ }
131
+ }
132
+ }
@@ -0,0 +1 @@
1
+ "427935bb2b8cafe9b2ec4e659f901d72"
@@ -0,0 +1,35 @@
1
+ {
2
+ "params": [
3
+ {
4
+ "name": "API_VERSION",
5
+ "defaultValue": "v1.2"
6
+ },
7
+ {
8
+ "name": "API_KEY",
9
+ "exampleValue": "api-key"
10
+ },
11
+ {
12
+ "name": "PIXEL_ID",
13
+ "exampleValue": "pixel-id"
14
+ }
15
+ ],
16
+ "default": {
17
+ "endpoint": "https://business-api.tiktok.com/open_api/$$API_VERSION$$/pixel/batch/",
18
+ "method": "POST",
19
+ "headers": [
20
+ {
21
+ "key": "Content-Type",
22
+ "value": "application/json"
23
+ },
24
+ {
25
+ "key": "Access-Token",
26
+ "value": "$$API_KEY$$"
27
+ }
28
+ ],
29
+ "batchSize": 500,
30
+ "transform": {
31
+ "lang": "lua",
32
+ "body": "request.body = { batch = batch, pixel_code = '$$PIXEL_ID$$' }\nreturn request"
33
+ }
34
+ }
35
+ }
@@ -0,0 +1 @@
1
+ "d41d8cd98f00b204e9800998ecf8427e"
@@ -0,0 +1,20 @@
1
+ {
2
+ "isDraft": false,
3
+ "isBeta": true,
4
+ "friendlyName": "TikTok",
5
+ "description": "Powerful self-service advertising platform makes it easy for businesses of all sizes to create and manage their own TikTok campaigns.",
6
+ "logo": "https://cdn.metarouter.io/logo.svg",
7
+ "color": "#FF2C55",
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": "TikTok initial release."
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1 @@
1
+ "8511587535480ec6d83fb8227f61103a"