@walkeros/server-destination-bing 3.4.0-next-1776749829492

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.
@@ -0,0 +1,480 @@
1
+ {
2
+ "$meta": {
3
+ "package": "@walkeros/server-destination-bing",
4
+ "version": "3.4.0-next-1776749829492",
5
+ "type": "destination",
6
+ "platform": [
7
+ "server"
8
+ ],
9
+ "docs": "https://www.walkeros.io/docs/destinations/server/bing",
10
+ "source": "https://github.com/elbwalker/walkerOS/tree/main/packages/server/destinations/bing/src"
11
+ },
12
+ "schemas": {
13
+ "mapping": {
14
+ "$schema": "http://json-schema.org/draft-07/schema#",
15
+ "type": "object",
16
+ "properties": {
17
+ "eventType": {
18
+ "type": "string",
19
+ "enum": [
20
+ "pageLoad",
21
+ "custom"
22
+ ],
23
+ "description": "Override event type: \"pageLoad\" for page views, \"custom\" (default) otherwise"
24
+ }
25
+ },
26
+ "additionalProperties": false
27
+ },
28
+ "settings": {
29
+ "$schema": "http://json-schema.org/draft-07/schema#",
30
+ "type": "object",
31
+ "properties": {
32
+ "accessToken": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "description": "Long-lived Bing UET CAPI access token from Microsoft Advertising"
36
+ },
37
+ "tagId": {
38
+ "type": "string",
39
+ "minLength": 1,
40
+ "description": "Microsoft Advertising UET tag ID"
41
+ },
42
+ "url": {
43
+ "type": "string",
44
+ "format": "uri",
45
+ "description": "Custom Bing UET CAPI base URL (default https://capi.uet.microsoft.com/v1/)"
46
+ },
47
+ "doNotHash": {
48
+ "type": "array",
49
+ "items": {
50
+ "type": "string"
51
+ },
52
+ "description": "User data fields to skip hashing (like ['em', 'ph'])"
53
+ },
54
+ "user_data": {
55
+ "type": "object",
56
+ "propertyNames": {
57
+ "type": "string"
58
+ },
59
+ "additionalProperties": {
60
+ "type": "string"
61
+ },
62
+ "description": "Mapping for user data fields (like { em: 'user.email' })"
63
+ },
64
+ "dataProvider": {
65
+ "type": "string",
66
+ "description": "Identifier of the data source (default \"walkerOS\")"
67
+ },
68
+ "continueOnValidationError": {
69
+ "type": "boolean",
70
+ "description": "When true, Microsoft continues to ingest events despite validation errors"
71
+ }
72
+ },
73
+ "required": [
74
+ "accessToken",
75
+ "tagId"
76
+ ],
77
+ "additionalProperties": false
78
+ }
79
+ },
80
+ "examples": {
81
+ "env": {
82
+ "push": {
83
+ "sendServer": {
84
+ "$code": "async()=>({ok:!0,data:{status:\"OK\",requestId:\"mock-123\"}})"
85
+ }
86
+ },
87
+ "simulation": [
88
+ "sendServer"
89
+ ]
90
+ },
91
+ "step": {
92
+ "addToCart": {
93
+ "in": {
94
+ "name": "product add",
95
+ "data": {
96
+ "id": "SKU-B2",
97
+ "name": "Running Shoes",
98
+ "price": 89.99,
99
+ "color": "blue"
100
+ },
101
+ "context": {
102
+ "shopping": [
103
+ "intent",
104
+ 0
105
+ ]
106
+ },
107
+ "globals": {
108
+ "pagegroup": "shop"
109
+ },
110
+ "custom": {
111
+ "completely": "random"
112
+ },
113
+ "user": {
114
+ "id": "us3r",
115
+ "device": "c00k13",
116
+ "session": "s3ss10n"
117
+ },
118
+ "nested": [
119
+ {
120
+ "entity": "product",
121
+ "data": {
122
+ "id": "SKU-B2",
123
+ "name": "Running Shoes",
124
+ "price": 89.99,
125
+ "quantity": 1
126
+ }
127
+ }
128
+ ],
129
+ "consent": {
130
+ "functional": true
131
+ },
132
+ "id": "1700000903000-gr0up-1",
133
+ "trigger": "click",
134
+ "entity": "product",
135
+ "action": "add",
136
+ "timestamp": 1700000903000,
137
+ "timing": 3.14,
138
+ "group": "gr0up",
139
+ "count": 1,
140
+ "version": {
141
+ "source": "3.4.0-next-1776749829492",
142
+ "tagging": 1
143
+ },
144
+ "source": {
145
+ "type": "server",
146
+ "id": "https://shop.example.com/products/running-shoes",
147
+ "previous_id": ""
148
+ }
149
+ },
150
+ "mapping": {
151
+ "name": "add_to_cart",
152
+ "data": {
153
+ "map": {
154
+ "customData": {
155
+ "map": {
156
+ "value": "data.price",
157
+ "currency": {
158
+ "value": "EUR"
159
+ },
160
+ "items": {
161
+ "loop": [
162
+ "nested",
163
+ {
164
+ "condition": {
165
+ "$code": "e=>f(e)&&\"product\"===e.entity"
166
+ },
167
+ "map": {
168
+ "id": "data.id",
169
+ "name": "data.name",
170
+ "price": "data.price",
171
+ "quantity": {
172
+ "key": "data.quantity",
173
+ "value": 1
174
+ }
175
+ }
176
+ }
177
+ ]
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
183
+ },
184
+ "out": [
185
+ [
186
+ "sendServer",
187
+ "https://capi.uet.microsoft.com/v1/UET-12345/events",
188
+ "{\"data\":[{\"eventType\":\"custom\",\"eventId\":\"1700000903000-gr0up-1\",\"eventTime\":1700000903,\"adStorageConsent\":\"G\",\"userData\":{},\"eventName\":\"add_to_cart\",\"eventSourceUrl\":\"https://shop.example.com/products/running-shoes\",\"customData\":{\"value\":89.99,\"currency\":\"EUR\",\"items\":[{\"id\":\"SKU-B2\",\"name\":\"Running Shoes\",\"price\":89.99,\"quantity\":1}]}}],\"dataProvider\":\"walkerOS\"}",
189
+ {
190
+ "headers": {
191
+ "Authorization": "Bearer s3cr3t",
192
+ "Content-Type": "application/json"
193
+ }
194
+ }
195
+ ]
196
+ ]
197
+ },
198
+ "lead": {
199
+ "in": {
200
+ "name": "form submit",
201
+ "data": {
202
+ "type": "newsletter"
203
+ },
204
+ "context": {
205
+ "dev": [
206
+ "test",
207
+ 1
208
+ ]
209
+ },
210
+ "globals": {
211
+ "lang": "elb"
212
+ },
213
+ "custom": {
214
+ "completely": "random"
215
+ },
216
+ "user": {
217
+ "email": "user@example.com"
218
+ },
219
+ "nested": [
220
+ {
221
+ "entity": "child",
222
+ "data": {
223
+ "is": "subordinated"
224
+ },
225
+ "nested": [],
226
+ "context": {
227
+ "element": [
228
+ "child",
229
+ 0
230
+ ]
231
+ }
232
+ }
233
+ ],
234
+ "consent": {
235
+ "functional": true
236
+ },
237
+ "id": "1700000902000-gr0up-1",
238
+ "trigger": "test",
239
+ "entity": "form",
240
+ "action": "submit",
241
+ "timestamp": 1700000902000,
242
+ "timing": 3.14,
243
+ "group": "gr0up",
244
+ "count": 1,
245
+ "version": {
246
+ "source": "3.4.0-next-1776749829492",
247
+ "tagging": 1
248
+ },
249
+ "source": {
250
+ "type": "server",
251
+ "id": "https://example.com/contact",
252
+ "previous_id": ""
253
+ }
254
+ },
255
+ "mapping": {
256
+ "name": "lead",
257
+ "data": {
258
+ "map": {
259
+ "userData": {
260
+ "map": {
261
+ "em": "user.email"
262
+ }
263
+ }
264
+ }
265
+ }
266
+ },
267
+ "out": [
268
+ [
269
+ "sendServer",
270
+ "https://capi.uet.microsoft.com/v1/UET-12345/events",
271
+ "{\"data\":[{\"eventType\":\"custom\",\"eventId\":\"1700000902000-gr0up-1\",\"eventTime\":1700000902,\"adStorageConsent\":\"G\",\"userData\":{\"em\":\"b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514\"},\"eventName\":\"lead\",\"eventSourceUrl\":\"https://example.com/contact\"}],\"dataProvider\":\"walkerOS\"}",
272
+ {
273
+ "headers": {
274
+ "Authorization": "Bearer s3cr3t",
275
+ "Content-Type": "application/json"
276
+ }
277
+ }
278
+ ]
279
+ ]
280
+ },
281
+ "pageView": {
282
+ "in": {
283
+ "name": "page view",
284
+ "data": {
285
+ "domain": "www.example.com",
286
+ "title": "walkerOS documentation",
287
+ "referrer": "https://www.walkeros.io/",
288
+ "search": "?foo=bar",
289
+ "hash": "#hash",
290
+ "id": "/docs/"
291
+ },
292
+ "context": {
293
+ "dev": [
294
+ "test",
295
+ 1
296
+ ]
297
+ },
298
+ "globals": {
299
+ "pagegroup": "docs"
300
+ },
301
+ "custom": {
302
+ "completely": "random"
303
+ },
304
+ "user": {
305
+ "id": "us3r",
306
+ "device": "c00k13",
307
+ "session": "s3ss10n"
308
+ },
309
+ "nested": [
310
+ {
311
+ "entity": "child",
312
+ "data": {
313
+ "is": "subordinated"
314
+ },
315
+ "nested": [],
316
+ "context": {
317
+ "element": [
318
+ "child",
319
+ 0
320
+ ]
321
+ }
322
+ }
323
+ ],
324
+ "consent": {
325
+ "functional": true
326
+ },
327
+ "id": "1700000901000-gr0up-1",
328
+ "trigger": "load",
329
+ "entity": "page",
330
+ "action": "view",
331
+ "timestamp": 1700000901000,
332
+ "timing": 3.14,
333
+ "group": "gr0up",
334
+ "count": 1,
335
+ "version": {
336
+ "source": "3.4.0-next-1776749829492",
337
+ "tagging": 1
338
+ },
339
+ "source": {
340
+ "type": "server",
341
+ "id": "https://example.com/docs/",
342
+ "previous_id": ""
343
+ }
344
+ },
345
+ "mapping": {
346
+ "settings": {
347
+ "eventType": "pageLoad"
348
+ }
349
+ },
350
+ "out": [
351
+ [
352
+ "sendServer",
353
+ "https://capi.uet.microsoft.com/v1/UET-12345/events",
354
+ "{\"data\":[{\"eventType\":\"pageLoad\",\"eventId\":\"1700000901000-gr0up-1\",\"eventTime\":1700000901,\"adStorageConsent\":\"G\",\"userData\":{},\"eventSourceUrl\":\"https://example.com/docs/\"}],\"dataProvider\":\"walkerOS\"}",
355
+ {
356
+ "headers": {
357
+ "Authorization": "Bearer s3cr3t",
358
+ "Content-Type": "application/json"
359
+ }
360
+ }
361
+ ]
362
+ ]
363
+ },
364
+ "purchase": {
365
+ "in": {
366
+ "name": "order complete",
367
+ "data": {
368
+ "id": "ORD-300",
369
+ "total": 249.99,
370
+ "currency": "EUR"
371
+ },
372
+ "context": {
373
+ "shopping": [
374
+ "complete",
375
+ 0
376
+ ]
377
+ },
378
+ "globals": {
379
+ "pagegroup": "shop"
380
+ },
381
+ "custom": {
382
+ "completely": "random"
383
+ },
384
+ "user": {
385
+ "id": "user-123",
386
+ "device": "device-456"
387
+ },
388
+ "nested": [
389
+ {
390
+ "entity": "product",
391
+ "data": {
392
+ "id": "SKU-A1",
393
+ "name": "Widget Pro",
394
+ "price": 124.99,
395
+ "quantity": 2
396
+ }
397
+ }
398
+ ],
399
+ "consent": {
400
+ "functional": true
401
+ },
402
+ "id": "1700000900000-gr0up-1",
403
+ "trigger": "load",
404
+ "entity": "order",
405
+ "action": "complete",
406
+ "timestamp": 1700000900000,
407
+ "timing": 3.14,
408
+ "group": "gr0up",
409
+ "count": 1,
410
+ "version": {
411
+ "source": "3.4.0-next-1776749829492",
412
+ "tagging": 1
413
+ },
414
+ "source": {
415
+ "type": "server",
416
+ "id": "https://shop.example.com/checkout/complete",
417
+ "previous_id": ""
418
+ }
419
+ },
420
+ "mapping": {
421
+ "name": "purchase",
422
+ "data": {
423
+ "map": {
424
+ "customData": {
425
+ "map": {
426
+ "value": "data.total",
427
+ "currency": {
428
+ "key": "data.currency",
429
+ "value": "EUR"
430
+ },
431
+ "transactionId": "data.id",
432
+ "pageType": {
433
+ "value": "purchase"
434
+ },
435
+ "items": {
436
+ "loop": [
437
+ "nested",
438
+ {
439
+ "condition": {
440
+ "$code": "e=>f(e)&&\"product\"===e.entity"
441
+ },
442
+ "map": {
443
+ "id": "data.id",
444
+ "name": "data.name",
445
+ "price": "data.price",
446
+ "quantity": {
447
+ "key": "data.quantity",
448
+ "value": 1
449
+ }
450
+ }
451
+ }
452
+ ]
453
+ }
454
+ }
455
+ },
456
+ "userData": {
457
+ "map": {
458
+ "externalId": "user.id"
459
+ }
460
+ }
461
+ }
462
+ }
463
+ },
464
+ "out": [
465
+ [
466
+ "sendServer",
467
+ "https://capi.uet.microsoft.com/v1/UET-12345/events",
468
+ "{\"data\":[{\"eventType\":\"custom\",\"eventId\":\"1700000900000-gr0up-1\",\"eventTime\":1700000900,\"adStorageConsent\":\"G\",\"userData\":{\"externalId\":\"user-123\"},\"eventName\":\"purchase\",\"eventSourceUrl\":\"https://shop.example.com/checkout/complete\",\"customData\":{\"value\":249.99,\"currency\":\"EUR\",\"transactionId\":\"ORD-300\",\"pageType\":\"purchase\",\"items\":[{\"id\":\"SKU-A1\",\"name\":\"Widget Pro\",\"price\":124.99,\"quantity\":2}]}}],\"dataProvider\":\"walkerOS\"}",
469
+ {
470
+ "headers": {
471
+ "Authorization": "Bearer s3cr3t",
472
+ "Content-Type": "application/json"
473
+ }
474
+ }
475
+ ]
476
+ ]
477
+ }
478
+ }
479
+ }
480
+ }
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "@walkeros/server-destination-bing",
3
+ "description": "Microsoft Advertising (Bing UET CAPI) server destination for walkerOS",
4
+ "version": "3.4.0-next-1776749829492",
5
+ "license": "MIT",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.mjs",
10
+ "require": "./dist/index.js"
11
+ },
12
+ "./dev": {
13
+ "types": "./dist/dev.d.ts",
14
+ "import": "./dist/dev.mjs",
15
+ "require": "./dist/dev.js"
16
+ },
17
+ "./walkerOS.json": "./dist/walkerOS.json",
18
+ "./examples": {
19
+ "types": "./dist/examples/index.d.ts",
20
+ "import": "./dist/examples/index.mjs",
21
+ "require": "./dist/examples/index.js"
22
+ }
23
+ },
24
+ "files": [
25
+ "dist/**"
26
+ ],
27
+ "scripts": {
28
+ "build": "tsup --silent",
29
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
30
+ "dev": "jest --watchAll --colors",
31
+ "typecheck": "tsc --noEmit",
32
+ "lint": "eslint \"**/*.ts*\"",
33
+ "test": "jest",
34
+ "update": "npx npm-check-updates -u && npm update"
35
+ },
36
+ "dependencies": {
37
+ "@walkeros/core": "3.4.0-next-1776749829492",
38
+ "@walkeros/server-core": "3.4.0-next-1776749829492"
39
+ },
40
+ "devDependencies": {
41
+ "@walkeros/collector": "3.4.0-next-1776749829492"
42
+ },
43
+ "repository": {
44
+ "url": "git+https://github.com/elbwalker/walkerOS.git",
45
+ "directory": "packages/server/destinations/bing"
46
+ },
47
+ "author": "elbwalker <hello@elbwalker.com>",
48
+ "homepage": "https://github.com/elbwalker/walkerOS#readme",
49
+ "bugs": {
50
+ "url": "https://github.com/elbwalker/walkerOS/issues"
51
+ },
52
+ "walkerOS": {
53
+ "type": "destination",
54
+ "platform": [
55
+ "server"
56
+ ],
57
+ "docs": "https://www.walkeros.io/docs/destinations/server/bing"
58
+ },
59
+ "keywords": [
60
+ "walkerOS",
61
+ "walkerOS-destination",
62
+ "destination",
63
+ "server",
64
+ "bing",
65
+ "microsoft",
66
+ "uet",
67
+ "capi",
68
+ "conversions-api",
69
+ "analytics"
70
+ ],
71
+ "funding": [
72
+ {
73
+ "type": "GitHub Sponsors",
74
+ "url": "https://github.com/sponsors/elbwalker"
75
+ }
76
+ ]
77
+ }