@metarouter/ajs-starter-kit 1.0.172 → 1.0.174
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/amazon-data-firehose/kit.etag.json +1 -1
- package/.dist/amazon-kinesis/kit.etag.json +1 -1
- package/.dist/bing-ads/kit.etag.json +1 -1
- package/.dist/blueshift/kit.etag.json +1 -1
- package/.dist/convert/kit.etag.json +1 -1
- package/.dist/google-ads/kit.etag.json +1 -1
- package/.dist/google-ads/metadata.json +4 -0
- package/.dist/google-ads/playbook.etag.json +1 -1
- package/.dist/google-ads/playbook.json +8 -3
- package/.dist/google-analytics-4/kit.etag.json +1 -1
- package/.dist/google-analytics-4/metadata.json +4 -0
- package/.dist/google-analytics-4/playbook.etag.json +1 -1
- package/.dist/google-analytics-4/playbook.json +22 -6
- package/.dist/google-analytics-4-collect/kit.etag.json +1 -1
- package/.dist/google-analytics-4-collect/metadata.json +4 -0
- package/.dist/google-analytics-4-collect/playbook.etag.json +1 -1
- package/.dist/google-analytics-4-collect/playbook.json +24 -8
- package/.dist/google-cm360/kit.etag.json +1 -1
- package/.dist/google-cm360/metadata.json +4 -0
- package/.dist/google-cm360/playbook.etag.json +1 -1
- package/.dist/google-cm360/playbook.json +2 -2
- package/.dist/heap/connection.etag.json +1 -1
- package/.dist/heap/connection.json +9 -2
- package/.dist/heap/kit.etag.json +1 -1
- package/.dist/heap/metadata.json +4 -0
- package/.dist/heap/playbook.etag.json +1 -1
- package/.dist/heap/playbook.json +4 -14
- package/.dist/mixpanel/kit.etag.json +1 -1
- package/.dist/nextdoor/kit.etag.json +1 -1
- package/.dist/openai-capi/connection.etag.json +1 -0
- package/.dist/openai-capi/connection.json +35 -0
- package/.dist/openai-capi/kit.etag.json +1 -0
- package/.dist/openai-capi/metadata.json +21 -0
- package/.dist/openai-capi/playbook.etag.json +1 -0
- package/.dist/openai-capi/playbook.json +276 -0
- package/.dist/podscribe/kit.etag.json +1 -1
- package/.dist/podscribe/metadata.json +8 -0
- package/.dist/podscribe/playbook.etag.json +1 -1
- package/.dist/podscribe/playbook.json +16 -4
- package/.dist/rev-jet/kit.etag.json +1 -1
- package/.dist/snowflake/kit.etag.json +1 -1
- package/.dist/teads-capi/connection.etag.json +1 -0
- package/.dist/teads-capi/connection.json +27 -0
- package/.dist/teads-capi/kit.etag.json +1 -0
- package/.dist/teads-capi/metadata.json +21 -0
- package/.dist/teads-capi/playbook.etag.json +1 -0
- package/.dist/teads-capi/playbook.json +403 -0
- package/.dist/wirtualna-polska/kit.etag.json +1 -1
- package/.dist/wirtualna-polska/metadata.json +4 -0
- package/.dist/wirtualna-polska/playbook.etag.json +1 -1
- package/.dist/wirtualna-polska/playbook.json +87 -1
- package/.dist/zeotap/kit.etag.json +1 -1
- package/README.md +20 -13
- package/index.js +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.0",
|
|
3
|
+
"global": {
|
|
4
|
+
"enrichments": [
|
|
5
|
+
{
|
|
6
|
+
"staticString": "web",
|
|
7
|
+
"outputKey": "action_source"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"mappings": [
|
|
11
|
+
{
|
|
12
|
+
"inputKey": "context.providers.openAI.oppref",
|
|
13
|
+
"outputKey": "oppref"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"inputKey": "messageId",
|
|
17
|
+
"outputKey": "id"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"inputKey": "timestamp",
|
|
21
|
+
"outputKey": "timestamp_ms",
|
|
22
|
+
"transforms": [
|
|
23
|
+
{
|
|
24
|
+
"toTimestamp": "inMillis"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"inputKey": "context.page.url",
|
|
30
|
+
"outputKey": "source_url"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"inputKey": "input",
|
|
34
|
+
"outputKey": "user.email_sha256",
|
|
35
|
+
"transforms": [
|
|
36
|
+
{
|
|
37
|
+
"expression": {
|
|
38
|
+
"lang": "lua",
|
|
39
|
+
"body": "local email = input.traits.email\nif (email) then return TO_SHA256_HASH(LOWER(TRIM(email))) end"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"inputKey": "anonymousId",
|
|
46
|
+
"outputKey": "user.external_id_sha256",
|
|
47
|
+
"transforms": [
|
|
48
|
+
{
|
|
49
|
+
"toHash": "sha256"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"inputKey": "input",
|
|
55
|
+
"outputKey": "user.country",
|
|
56
|
+
"transforms": [
|
|
57
|
+
{
|
|
58
|
+
"expression": {
|
|
59
|
+
"lang": "lua",
|
|
60
|
+
"body": "local country = input.traits.address.country\nif (country) then return TO_ISO_COUNTRY(country) end"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"inputKey": "traits.address.city",
|
|
67
|
+
"outputKey": "user.city"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"inputKey": "traits.address.postalCode",
|
|
71
|
+
"outputKey": "user.zip_code"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"inputKey": "context.ip",
|
|
75
|
+
"outputKey": "user.ip_address"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"inputKey": "context.userAgent",
|
|
79
|
+
"outputKey": "user.user_agent"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"default": {
|
|
84
|
+
"filters": [
|
|
85
|
+
{
|
|
86
|
+
"byEventNames": {
|
|
87
|
+
"action": "allow",
|
|
88
|
+
"events": [
|
|
89
|
+
""
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"eventSpecific": {
|
|
96
|
+
"page": {
|
|
97
|
+
"enrichments": [
|
|
98
|
+
{
|
|
99
|
+
"staticString": "page_viewed",
|
|
100
|
+
"outputKey": "type"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"staticString": "contents",
|
|
104
|
+
"outputKey": "data.type"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"mappings": [
|
|
108
|
+
{
|
|
109
|
+
"inputKey": "input",
|
|
110
|
+
"outputKey": "data.contents",
|
|
111
|
+
"transforms": [
|
|
112
|
+
{
|
|
113
|
+
"expression": {
|
|
114
|
+
"lang": "lua",
|
|
115
|
+
"body": "return {{\n content_type = \"page\",\n name = input.properties.title\n}}"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"product_viewed": {
|
|
123
|
+
"enrichments": [
|
|
124
|
+
{
|
|
125
|
+
"staticString": "contents_viewed",
|
|
126
|
+
"outputKey": "type"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"staticString": "contents",
|
|
130
|
+
"outputKey": "data.type"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"mappings": [
|
|
134
|
+
{
|
|
135
|
+
"inputKey": "properties.currency",
|
|
136
|
+
"outputKey": "data.currency",
|
|
137
|
+
"transforms": [
|
|
138
|
+
{
|
|
139
|
+
"modifyString": "uppercase"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"inputKey": "input",
|
|
145
|
+
"outputKey": "data.contents",
|
|
146
|
+
"transforms": [
|
|
147
|
+
{
|
|
148
|
+
"expression": {
|
|
149
|
+
"lang": "lua",
|
|
150
|
+
"body": "return {{\n content_type = \"product\",\n id = input.properties.product_id,\n name = input.properties.name,\n amount = TO_ROUNDED_INT(input.properties.price * 100),\n quantity = input.properties.quantity or 1\n}}"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"product_added": {
|
|
158
|
+
"enrichments": [
|
|
159
|
+
{
|
|
160
|
+
"staticString": "items_added",
|
|
161
|
+
"outputKey": "type"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"staticString": "contents",
|
|
165
|
+
"outputKey": "data.type"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"mappings": [
|
|
169
|
+
{
|
|
170
|
+
"inputKey": "properties.currency",
|
|
171
|
+
"outputKey": "data.currency",
|
|
172
|
+
"defaultString": "USD",
|
|
173
|
+
"transforms": [
|
|
174
|
+
{
|
|
175
|
+
"modifyString": "uppercase"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"inputKey": "input",
|
|
181
|
+
"outputKey": "data.contents",
|
|
182
|
+
"transforms": [
|
|
183
|
+
{
|
|
184
|
+
"expression": {
|
|
185
|
+
"lang": "lua",
|
|
186
|
+
"body": "return {{\n content_type = \"product\",\n id = input.properties.product_id,\n name = input.properties.name,\n amount = TO_ROUNDED_INT(input.properties.price * 100),\n quantity = input.properties.quantity or 1\n}}"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"checkout_started": {
|
|
194
|
+
"enrichments": [
|
|
195
|
+
{
|
|
196
|
+
"staticString": "checkout_started",
|
|
197
|
+
"outputKey": "type"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"staticString": "contents",
|
|
201
|
+
"outputKey": "data.type"
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"mappings": [
|
|
205
|
+
{
|
|
206
|
+
"inputKey": "properties.currency",
|
|
207
|
+
"outputKey": "data.currency",
|
|
208
|
+
"transforms": [
|
|
209
|
+
{
|
|
210
|
+
"modifyString": "uppercase"
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"inputKey": "input",
|
|
216
|
+
"outputKey": "data.contents",
|
|
217
|
+
"transforms": [
|
|
218
|
+
{
|
|
219
|
+
"expression": {
|
|
220
|
+
"lang": "lua",
|
|
221
|
+
"body": "return MAP(input.properties.products, function(p)\n return {\n content_type = \"product\",\n id = p.product_id,\n name = p.name,\n amount = TO_ROUNDED_INT(p.price * 100),\n quantity = p.quantity or 1\n }\nend)"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
"order_completed": {
|
|
229
|
+
"enrichments": [
|
|
230
|
+
{
|
|
231
|
+
"staticString": "order_created",
|
|
232
|
+
"outputKey": "type"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"staticString": "contents",
|
|
236
|
+
"outputKey": "data.type"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"mappings": [
|
|
240
|
+
{
|
|
241
|
+
"inputKey": "properties.currency",
|
|
242
|
+
"outputKey": "data.currency",
|
|
243
|
+
"transforms": [
|
|
244
|
+
{
|
|
245
|
+
"modifyString": "uppercase"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"inputKey": "input",
|
|
251
|
+
"outputKey": "data.amount",
|
|
252
|
+
"transforms": [
|
|
253
|
+
{
|
|
254
|
+
"expression": {
|
|
255
|
+
"lang": "lua",
|
|
256
|
+
"body": "return TO_ROUNDED_INT(TOTAL_VALUE(input.properties.products) * 100)"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"inputKey": "input",
|
|
263
|
+
"outputKey": "data.contents",
|
|
264
|
+
"transforms": [
|
|
265
|
+
{
|
|
266
|
+
"expression": {
|
|
267
|
+
"lang": "lua",
|
|
268
|
+
"body": "return MAP(input.properties.products, function(p)\n return {\n content_type = \"product\",\n id = p.product_id,\n name = p.name,\n amount = TO_ROUNDED_INT(p.price * 100),\n quantity = p.quantity or 1\n }\nend)"
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"6c84ecd30512b6cabc83323d617258da -"
|
|
@@ -32,6 +32,14 @@
|
|
|
32
32
|
{
|
|
33
33
|
"date": "2025-10-15T00:00:00.000Z",
|
|
34
34
|
"note": "Version: 1.2.1\nAdded friendly names to expressions"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"date": "2026-06-03T00:00:00.000Z",
|
|
38
|
+
"note": "Version: 1.2.2\nUpdate source enrichment"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"date": "2026-06-10T00:00:00.000Z",
|
|
42
|
+
"note": "Version: 1.3.0\nAdd ipv4 and ipv6 field mappings with context.ip fallback"
|
|
35
43
|
}
|
|
36
44
|
]
|
|
37
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"ce0a09cf73457206f87bdb2f6f6bdcf5 -"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.3.0",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "ADVERTISER_ID",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"outputKey": "advertiser"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
"staticString": "
|
|
32
|
+
"staticString": "metarouter",
|
|
33
33
|
"outputKey": "source"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
@@ -39,8 +39,20 @@
|
|
|
39
39
|
"outputKey": "user_agent"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
"inputKey": "context.
|
|
43
|
-
"outputKey": "
|
|
42
|
+
"inputKey": "context.ipv4",
|
|
43
|
+
"outputKey": "ipv4"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"inputKey": "input",
|
|
47
|
+
"outputKey": "ip",
|
|
48
|
+
"transforms": [
|
|
49
|
+
{
|
|
50
|
+
"expression": {
|
|
51
|
+
"lang": "lua",
|
|
52
|
+
"body": "return input.context.ipv6 or input.context.ip or input.context.ipv4"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
44
56
|
},
|
|
45
57
|
{
|
|
46
58
|
"inputKey": "input",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"ddb770a867e75edd94e56d9b6128e1dd -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"068f26ec5bbc0655949f9e271650a0ac -"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"27368ddbd6e70ed27b2d8ce149ee4ce9 -"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"params": [
|
|
3
|
+
{
|
|
4
|
+
"name": "CAPI_TOKEN",
|
|
5
|
+
"isSensitive": true,
|
|
6
|
+
"exampleValue": "my-capi-token"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"default": {
|
|
10
|
+
"method": "POST",
|
|
11
|
+
"endpoint": "https://ca.teads.tv/v1/event",
|
|
12
|
+
"headers": [
|
|
13
|
+
{
|
|
14
|
+
"key": "Accept-Encoding",
|
|
15
|
+
"value": "application/json"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"key": "Content-Type",
|
|
19
|
+
"value": "application/json"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "Authorization",
|
|
23
|
+
"value": "Bearer $$CAPI_TOKEN$$"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"1618c9956a060bdafc27723c711b6a7e -"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"isDraft": false,
|
|
3
|
+
"isDeprecated": false,
|
|
4
|
+
"isBeta": true,
|
|
5
|
+
"friendlyName": "Teads CAPI",
|
|
6
|
+
"description": "Teads is a global advertising platform specializing in outstream video and display ads that appear within premium publisher content.",
|
|
7
|
+
"logo": "https://cdn.metarouter.io/teads.png",
|
|
8
|
+
"color": "#3300BF",
|
|
9
|
+
"eventSource": {
|
|
10
|
+
"isAndroidApp": false,
|
|
11
|
+
"isIosApp": false,
|
|
12
|
+
"isWebApp": true
|
|
13
|
+
},
|
|
14
|
+
"inputSchema": "analytics_js",
|
|
15
|
+
"releaseNotes": [
|
|
16
|
+
{
|
|
17
|
+
"date": "2026-06-03T00:00:00.000Z",
|
|
18
|
+
"note": "Version: 0.1.0\nBeta Version\nTeads CAPI initial release"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"20984ae7fe223a107dd1813d2df89157 -"
|