@walkeros/server-destination-api 1.0.5 → 1.0.6-next-1771257332985

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 (2) hide show
  1. package/dist/walkerOS.json +95 -0
  2. package/package.json +12 -6
@@ -0,0 +1,95 @@
1
+ {
2
+ "$meta": {
3
+ "package": "@walkeros/server-destination-api",
4
+ "version": "1.0.5",
5
+ "type": "destination",
6
+ "platform": "server"
7
+ },
8
+ "schemas": {
9
+ "settings": {
10
+ "$schema": "http://json-schema.org/draft-07/schema#",
11
+ "type": "object",
12
+ "properties": {
13
+ "url": {
14
+ "type": "string",
15
+ "format": "uri",
16
+ "description": "The API endpoint URL to send events to"
17
+ },
18
+ "headers": {
19
+ "type": "object",
20
+ "propertyNames": {
21
+ "type": "string"
22
+ },
23
+ "additionalProperties": {
24
+ "type": "string"
25
+ },
26
+ "description": "Custom HTTP headers to include with requests"
27
+ },
28
+ "method": {
29
+ "type": "string",
30
+ "description": "HTTP method to use (default: POST)"
31
+ },
32
+ "timeout": {
33
+ "type": "number",
34
+ "exclusiveMinimum": 0,
35
+ "description": "Request timeout in milliseconds (default: 5000)"
36
+ }
37
+ },
38
+ "required": [
39
+ "url"
40
+ ],
41
+ "additionalProperties": false
42
+ }
43
+ },
44
+ "examples": {
45
+ "env": {
46
+ "init": {},
47
+ "standard": {
48
+ "sendServer": {
49
+ "$code": "()=>Promise.resolve({ok:!0})"
50
+ }
51
+ }
52
+ },
53
+ "events": {
54
+ "entity_action": {
55
+ "$code": "function l(){const e=v(\"entity action\");return JSON.stringify(e.data)}"
56
+ }
57
+ },
58
+ "mapping": {
59
+ "config": {
60
+ "entity": {
61
+ "action": {
62
+ "data": "data"
63
+ }
64
+ }
65
+ },
66
+ "entity_action": {
67
+ "data": "data"
68
+ }
69
+ },
70
+ "outputs": {
71
+ "customOptionsPost": {
72
+ "url": "https://api.example.com/events",
73
+ "body": "{\"name\":\"entity action\",\"data\":{\"string\":\"foo\",\"number\":1,\"boolean\":true,\"array\":[0,\"text\",false]},\"context\":{\"dev\":[\"test\",1]},\"globals\":{\"lang\":\"elb\"},\"custom\":{\"completely\":\"random\"},\"user\":{\"id\":\"us3r\",\"device\":\"c00k13\",\"session\":\"s3ss10n\"},\"nested\":[{\"entity\":\"child\",\"data\":{\"is\":\"subordinated\"},\"nested\":[],\"context\":{\"element\":[\"child\",0]}}],\"consent\":{\"functional\":true},\"id\":\"1771200817000-gr0up-1\",\"trigger\":\"test\",\"entity\":\"entity\",\"action\":\"action\",\"timestamp\":1771200817000,\"timing\":3.14,\"group\":\"gr0up\",\"count\":1,\"version\":{\"source\":\"1.3.0\",\"tagging\":1},\"source\":{\"type\":\"web\",\"id\":\"https://localhost:80\",\"previous_id\":\"http://remotehost:9001\"}}",
74
+ "options": {
75
+ "headers": {
76
+ "X-API-Key": "YOUR_API_KEY",
77
+ "Content-Type": "application/json"
78
+ },
79
+ "method": "PUT",
80
+ "timeout": 10000
81
+ }
82
+ },
83
+ "fullEventPost": {
84
+ "url": "https://api.example.com/events",
85
+ "body": "{\"name\":\"entity action\",\"data\":{\"string\":\"foo\",\"number\":1,\"boolean\":true,\"array\":[0,\"text\",false]},\"context\":{\"dev\":[\"test\",1]},\"globals\":{\"lang\":\"elb\"},\"custom\":{\"completely\":\"random\"},\"user\":{\"id\":\"us3r\",\"device\":\"c00k13\",\"session\":\"s3ss10n\"},\"nested\":[{\"entity\":\"child\",\"data\":{\"is\":\"subordinated\"},\"nested\":[],\"context\":{\"element\":[\"child\",0]}}],\"consent\":{\"functional\":true},\"id\":\"1771200817000-gr0up-1\",\"trigger\":\"test\",\"entity\":\"entity\",\"action\":\"action\",\"timestamp\":1771200817000,\"timing\":3.14,\"group\":\"gr0up\",\"count\":1,\"version\":{\"source\":\"1.3.0\",\"tagging\":1},\"source\":{\"type\":\"web\",\"id\":\"https://localhost:80\",\"previous_id\":\"http://remotehost:9001\"}}",
86
+ "options": {}
87
+ },
88
+ "mappedDataPost": {
89
+ "url": "https://api.example.com/events",
90
+ "body": "{\"string\":\"foo\",\"number\":1,\"boolean\":true,\"array\":[0,\"text\",false]}",
91
+ "options": {}
92
+ }
93
+ }
94
+ }
95
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/server-destination-api",
3
3
  "description": "API server destination for walkerOS",
4
- "version": "1.0.5",
4
+ "version": "1.0.6-next-1771257332985",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -30,13 +30,14 @@
30
30
  "build": "tsup --silent",
31
31
  "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
32
32
  "dev": "jest --watchAll --colors",
33
- "lint": "tsc && eslint \"**/*.ts*\"",
33
+ "typecheck": "tsc --noEmit",
34
+ "lint": "eslint \"**/*.ts*\"",
34
35
  "test": "jest",
35
36
  "update": "npx npm-check-updates -u && npm update"
36
37
  },
37
38
  "dependencies": {
38
- "@walkeros/core": "1.3.0",
39
- "@walkeros/server-core": "1.0.5"
39
+ "@walkeros/core": "1.4.0-next-1771257332985",
40
+ "@walkeros/server-core": "1.0.6-next-1771257332985"
40
41
  },
41
42
  "devDependencies": {},
42
43
  "repository": {
@@ -48,12 +49,17 @@
48
49
  "bugs": {
49
50
  "url": "https://github.com/elbwalker/walkerOS/issues"
50
51
  },
52
+ "walkerOS": {
53
+ "type": "destination",
54
+ "platform": "server"
55
+ },
51
56
  "keywords": [
52
- "walker",
53
57
  "walkerOS",
58
+ "walkerOS-destination",
54
59
  "destination",
55
60
  "server",
56
- "api"
61
+ "api",
62
+ "analytics"
57
63
  ],
58
64
  "funding": [
59
65
  {