@walkeros/destination-demo 4.7.2 → 4.8.0-next-1791496487198
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/CHANGELOG.md +13 -0
- package/README.md +3 -3
- package/dist/dev.d.mts +7 -3
- package/dist/dev.d.ts +7 -3
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/walkerOS.json +6 -145
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @walkeros/destination-demo
|
|
2
2
|
|
|
3
|
+
## 4.8.0-next-1791496487198
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5593d7b: The demo destination's step examples now show the call it really
|
|
8
|
+
makes: one `log` call with the `[demo]` prefix and the event as indented JSON,
|
|
9
|
+
instead of the event object. The package's docs link now points to the
|
|
10
|
+
destinations overview instead of a page that does not exist.
|
|
11
|
+
- Updated dependencies [7132619]
|
|
12
|
+
- Updated dependencies [5593d7b]
|
|
13
|
+
- Updated dependencies [421233d]
|
|
14
|
+
- @walkeros/core@4.8.0-next-1791496487198
|
|
15
|
+
|
|
3
16
|
## 4.7.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -25,13 +25,13 @@ npm install @walkeros/destination-demo
|
|
|
25
25
|
import { startFlow } from '@walkeros/collector';
|
|
26
26
|
import { destinationDemo } from '@walkeros/destination-demo';
|
|
27
27
|
|
|
28
|
-
const {
|
|
28
|
+
const { elb } = await startFlow({
|
|
29
29
|
destinations: {
|
|
30
|
-
demo: destinationDemo,
|
|
30
|
+
demo: { code: destinationDemo },
|
|
31
31
|
},
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
await
|
|
34
|
+
await elb('page view', { title: 'Home' });
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
## Documentation
|
package/dist/dev.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
2
|
import { z } from '@walkeros/core/dev';
|
|
3
|
-
import { Destination, Flow } from '@walkeros/core';
|
|
3
|
+
import { Destination, Flow, WalkerOS } from '@walkeros/core';
|
|
4
4
|
|
|
5
5
|
declare const SettingsSchema: z.ZodObject<{
|
|
6
6
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -42,8 +42,12 @@ declare namespace env {
|
|
|
42
42
|
export { env_init as init, env_push as push, env_simulation as simulation };
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
/** A step example whose input is a full walkerOS event. */
|
|
46
|
+
type EventStepExample = Flow.StepExample & {
|
|
47
|
+
in: WalkerOS.Event;
|
|
48
|
+
};
|
|
49
|
+
declare const pageView: EventStepExample;
|
|
50
|
+
declare const orderComplete: EventStepExample;
|
|
47
51
|
|
|
48
52
|
declare const step_orderComplete: typeof orderComplete;
|
|
49
53
|
declare const step_pageView: typeof pageView;
|
package/dist/dev.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
2
|
import { z } from '@walkeros/core/dev';
|
|
3
|
-
import { Destination, Flow } from '@walkeros/core';
|
|
3
|
+
import { Destination, Flow, WalkerOS } from '@walkeros/core';
|
|
4
4
|
|
|
5
5
|
declare const SettingsSchema: z.ZodObject<{
|
|
6
6
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -42,8 +42,12 @@ declare namespace env {
|
|
|
42
42
|
export { env_init as init, env_push as push, env_simulation as simulation };
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
/** A step example whose input is a full walkerOS event. */
|
|
46
|
+
type EventStepExample = Flow.StepExample & {
|
|
47
|
+
in: WalkerOS.Event;
|
|
48
|
+
};
|
|
49
|
+
declare const pageView: EventStepExample;
|
|
50
|
+
declare const orderComplete: EventStepExample;
|
|
47
51
|
|
|
48
52
|
declare const step_orderComplete: typeof orderComplete;
|
|
49
53
|
declare const step_pageView: typeof pageView;
|
package/dist/dev.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a=(e,o)=>{for(var r in o)t(e,r,{get:o[r],enumerable:!0})},n={};a(n,{examples:()=>
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a=(e,o)=>{for(var r in o)t(e,r,{get:o[r],enumerable:!0})},n={};a(n,{examples:()=>u,schemas:()=>l}),module.exports=(e=n,((e,a,n,l)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let s of r(a))i.call(e,s)||s===n||t(e,s,{get:()=>a[s],enumerable:!(l=o(a,s))||l.enumerable});return e})(t({},"__esModule",{value:!0}),e));var l={};a(l,{MappingSchema:()=>c,SettingsSchema:()=>g,mapping:()=>m,settings:()=>d});var s=require("@walkeros/core/dev"),p=require("@walkeros/core/dev"),g=p.z.object({name:p.z.string().optional().describe("Display name used in log output prefix"),values:p.z.array(p.z.string()).optional().describe('Dot-notation paths to extract from event (e.g. "data.title"). If omitted, logs full event')}),c=require("@walkeros/core/dev").z.object({}),d=(0,s.zodToSchema)(g),m=(0,s.zodToSchema)(c),u={};a(u,{env:()=>v,step:()=>h});var v={};a(v,{init:()=>f,push:()=>b,simulation:()=>y});var f={log:void 0},b={log:Object.assign(()=>{},{})},y=["call:log"],h={};a(h,{orderComplete:()=>S,pageView:()=>j});var w=require("@walkeros/core"),O=(0,w.getEvent)("page view",{timestamp:1700000900}),j={title:"Page view",description:"A page view is logged by the demo destination as a developer reference for destination lifecycle.",in:O,mapping:{},out:[["log",`[demo] ${JSON.stringify(O,null,2)}`]]},z=(0,w.getEvent)("order complete",{timestamp:1700000901}),S={title:"Order complete",description:"An order complete event is logged by the demo destination showing the full event payload.",in:z,mapping:{},out:[["log",`[demo] ${JSON.stringify(z,null,2)}`]]};//# sourceMappingURL=dev.js.map
|
package/dist/dev.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/dev.ts","../src/schemas/index.ts","../src/schemas/settings.ts","../src/schemas/mapping.ts","../src/examples/index.ts","../src/examples/env.ts","../src/examples/step.ts"],"sourcesContent":["export * as schemas from './schemas';\nexport * as examples from './examples';\n","import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\nimport { MappingSchema } from './mapping';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport { MappingSchema, type Mapping } from './mapping';\n\n// JSON Schema\nexport const settings = zodToSchema(SettingsSchema);\nexport const mapping = zodToSchema(MappingSchema);\n","import { z } from '@walkeros/core/dev';\n\nexport const SettingsSchema = z.object({\n name: z\n .string()\n .optional()\n .describe('Display name used in log output prefix'),\n values: z\n .array(z.string())\n .optional()\n .describe(\n 'Dot-notation paths to extract from event (e.g. \"data.title\"). If omitted, logs full event',\n ),\n});\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","import { z } from '@walkeros/core/dev';\n\nexport const MappingSchema = z.object({});\n\nexport type Mapping = z.infer<typeof MappingSchema>;\n","export * as env from './env';\nexport * as step from './step';\n","import type { Env } from '../types';\n\n/**\n * Example environment configurations for destination demo\n */\n\nconst noop = () => {};\n\nexport const init: Env | undefined = {\n log: undefined,\n};\n\nexport const push: Env = {\n log: Object.assign(noop, {}) as Env['log'],\n};\n\n/**\n * Simulation tracking paths\n */\nexport const simulation = ['call:log'];\n","import type { Flow } from '@walkeros/core';\nimport { getEvent } from '@walkeros/core';\n\nexport const pageView:
|
|
1
|
+
{"version":3,"sources":["../src/dev.ts","../src/schemas/index.ts","../src/schemas/settings.ts","../src/schemas/mapping.ts","../src/examples/index.ts","../src/examples/env.ts","../src/examples/step.ts"],"sourcesContent":["export * as schemas from './schemas';\nexport * as examples from './examples';\n","import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\nimport { MappingSchema } from './mapping';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport { MappingSchema, type Mapping } from './mapping';\n\n// JSON Schema\nexport const settings = zodToSchema(SettingsSchema);\nexport const mapping = zodToSchema(MappingSchema);\n","import { z } from '@walkeros/core/dev';\n\nexport const SettingsSchema = z.object({\n name: z\n .string()\n .optional()\n .describe('Display name used in log output prefix'),\n values: z\n .array(z.string())\n .optional()\n .describe(\n 'Dot-notation paths to extract from event (e.g. \"data.title\"). If omitted, logs full event',\n ),\n});\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","import { z } from '@walkeros/core/dev';\n\nexport const MappingSchema = z.object({});\n\nexport type Mapping = z.infer<typeof MappingSchema>;\n","export * as env from './env';\nexport * as step from './step';\n","import type { Env } from '../types';\n\n/**\n * Example environment configurations for destination demo\n */\n\nconst noop = () => {};\n\nexport const init: Env | undefined = {\n log: undefined,\n};\n\nexport const push: Env = {\n log: Object.assign(noop, {}) as Env['log'],\n};\n\n/**\n * Simulation tracking paths\n */\nexport const simulation = ['call:log'];\n","import type { Flow, WalkerOS } from '@walkeros/core';\nimport { getEvent } from '@walkeros/core';\n\n/** A step example whose input is a full walkerOS event. */\ntype EventStepExample = Flow.StepExample & { in: WalkerOS.Event };\n\nconst pageViewEvent = getEvent('page view', { timestamp: 1700000900 });\n\nexport const pageView: EventStepExample = {\n title: 'Page view',\n description:\n 'A page view is logged by the demo destination as a developer reference for destination lifecycle.',\n in: pageViewEvent,\n mapping: {},\n out: [['log', `[demo] ${JSON.stringify(pageViewEvent, null, 2)}`]],\n};\n\nconst orderCompleteEvent = getEvent('order complete', {\n timestamp: 1700000901,\n});\n\nexport const orderComplete: EventStepExample = {\n title: 'Order complete',\n description:\n 'An order complete event is logged by the demo destination showing the full event payload.',\n in: orderCompleteEvent,\n mapping: {},\n out: [['log', `[demo] ${JSON.stringify(orderCompleteEvent, null, 2)}`]],\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,cAA4B;;;ACA5B,iBAAkB;AAEX,IAAM,iBAAiB,aAAE,OAAO;AAAA,EACrC,MAAM,aACH,OAAO,EACP,SAAS,EACT,SAAS,wCAAwC;AAAA,EACpD,QAAQ,aACL,MAAM,aAAE,OAAO,CAAC,EAChB,SAAS,EACT;AAAA,IACC;AAAA,EACF;AACJ,CAAC;;;ACbD,IAAAC,cAAkB;AAEX,IAAM,gBAAgB,cAAE,OAAO,CAAC,CAAC;;;AFMjC,IAAM,eAAW,yBAAY,cAAc;AAC3C,IAAM,cAAU,yBAAY,aAAa;;;AGThD;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,IAAM,OAAO,MAAM;AAAC;AAEb,IAAM,OAAwB;AAAA,EACnC,KAAK;AACP;AAEO,IAAM,OAAY;AAAA,EACvB,KAAK,OAAO,OAAO,MAAM,CAAC,CAAC;AAC7B;AAKO,IAAM,aAAa,CAAC,UAAU;;;ACnBrC;AAAA;AAAA;AAAA;AAAA;AACA,kBAAyB;AAKzB,IAAM,oBAAgB,sBAAS,aAAa,EAAE,WAAW,WAAW,CAAC;AAE9D,IAAM,WAA6B;AAAA,EACxC,OAAO;AAAA,EACP,aACE;AAAA,EACF,IAAI;AAAA,EACJ,SAAS,CAAC;AAAA,EACV,KAAK,CAAC,CAAC,OAAO,UAAU,KAAK,UAAU,eAAe,MAAM,CAAC,CAAC,EAAE,CAAC;AACnE;AAEA,IAAM,yBAAqB,sBAAS,kBAAkB;AAAA,EACpD,WAAW;AACb,CAAC;AAEM,IAAM,gBAAkC;AAAA,EAC7C,OAAO;AAAA,EACP,aACE;AAAA,EACF,IAAI;AAAA,EACJ,SAAS,CAAC;AAAA,EACV,KAAK,CAAC,CAAC,OAAO,UAAU,KAAK,UAAU,oBAAoB,MAAM,CAAC,CAAC,EAAE,CAAC;AACxE;","names":["import_dev","import_dev"]}
|
package/dist/dev.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=(t,o)=>{for(var i in o)e(t,i,{get:o[i],enumerable:!0})},o={};t(o,{MappingSchema:()=>
|
|
1
|
+
var e=Object.defineProperty,t=(t,o)=>{for(var i in o)e(t,i,{get:o[i],enumerable:!0})},o={};t(o,{MappingSchema:()=>l,SettingsSchema:()=>a,mapping:()=>p,settings:()=>s});import{zodToSchema as i}from"@walkeros/core/dev";import{z as r}from"@walkeros/core/dev";var a=r.object({name:r.string().optional().describe("Display name used in log output prefix"),values:r.array(r.string()).optional().describe('Dot-notation paths to extract from event (e.g. "data.title"). If omitted, logs full event')});import{z as n}from"@walkeros/core/dev";var l=n.object({}),s=i(a),p=i(l),m={};t(m,{env:()=>g,step:()=>f});var g={};t(g,{init:()=>d,push:()=>c,simulation:()=>v});var d={log:void 0},c={log:Object.assign(()=>{},{})},v=["call:log"],f={};t(f,{orderComplete:()=>y,pageView:()=>h});import{getEvent as u}from"@walkeros/core";var b=u("page view",{timestamp:1700000900}),h={title:"Page view",description:"A page view is logged by the demo destination as a developer reference for destination lifecycle.",in:b,mapping:{},out:[["log",`[demo] ${JSON.stringify(b,null,2)}`]]},w=u("order complete",{timestamp:1700000901}),y={title:"Order complete",description:"An order complete event is logged by the demo destination showing the full event payload.",in:w,mapping:{},out:[["log",`[demo] ${JSON.stringify(w,null,2)}`]]};export{m as examples,o as schemas};//# sourceMappingURL=dev.mjs.map
|
package/dist/dev.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schemas/index.ts","../src/schemas/settings.ts","../src/schemas/mapping.ts","../src/examples/index.ts","../src/examples/env.ts","../src/examples/step.ts"],"sourcesContent":["import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\nimport { MappingSchema } from './mapping';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport { MappingSchema, type Mapping } from './mapping';\n\n// JSON Schema\nexport const settings = zodToSchema(SettingsSchema);\nexport const mapping = zodToSchema(MappingSchema);\n","import { z } from '@walkeros/core/dev';\n\nexport const SettingsSchema = z.object({\n name: z\n .string()\n .optional()\n .describe('Display name used in log output prefix'),\n values: z\n .array(z.string())\n .optional()\n .describe(\n 'Dot-notation paths to extract from event (e.g. \"data.title\"). If omitted, logs full event',\n ),\n});\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","import { z } from '@walkeros/core/dev';\n\nexport const MappingSchema = z.object({});\n\nexport type Mapping = z.infer<typeof MappingSchema>;\n","export * as env from './env';\nexport * as step from './step';\n","import type { Env } from '../types';\n\n/**\n * Example environment configurations for destination demo\n */\n\nconst noop = () => {};\n\nexport const init: Env | undefined = {\n log: undefined,\n};\n\nexport const push: Env = {\n log: Object.assign(noop, {}) as Env['log'],\n};\n\n/**\n * Simulation tracking paths\n */\nexport const simulation = ['call:log'];\n","import type { Flow } from '@walkeros/core';\nimport { getEvent } from '@walkeros/core';\n\nexport const pageView:
|
|
1
|
+
{"version":3,"sources":["../src/schemas/index.ts","../src/schemas/settings.ts","../src/schemas/mapping.ts","../src/examples/index.ts","../src/examples/env.ts","../src/examples/step.ts"],"sourcesContent":["import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\nimport { MappingSchema } from './mapping';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport { MappingSchema, type Mapping } from './mapping';\n\n// JSON Schema\nexport const settings = zodToSchema(SettingsSchema);\nexport const mapping = zodToSchema(MappingSchema);\n","import { z } from '@walkeros/core/dev';\n\nexport const SettingsSchema = z.object({\n name: z\n .string()\n .optional()\n .describe('Display name used in log output prefix'),\n values: z\n .array(z.string())\n .optional()\n .describe(\n 'Dot-notation paths to extract from event (e.g. \"data.title\"). If omitted, logs full event',\n ),\n});\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","import { z } from '@walkeros/core/dev';\n\nexport const MappingSchema = z.object({});\n\nexport type Mapping = z.infer<typeof MappingSchema>;\n","export * as env from './env';\nexport * as step from './step';\n","import type { Env } from '../types';\n\n/**\n * Example environment configurations for destination demo\n */\n\nconst noop = () => {};\n\nexport const init: Env | undefined = {\n log: undefined,\n};\n\nexport const push: Env = {\n log: Object.assign(noop, {}) as Env['log'],\n};\n\n/**\n * Simulation tracking paths\n */\nexport const simulation = ['call:log'];\n","import type { Flow, WalkerOS } from '@walkeros/core';\nimport { getEvent } from '@walkeros/core';\n\n/** A step example whose input is a full walkerOS event. */\ntype EventStepExample = Flow.StepExample & { in: WalkerOS.Event };\n\nconst pageViewEvent = getEvent('page view', { timestamp: 1700000900 });\n\nexport const pageView: EventStepExample = {\n title: 'Page view',\n description:\n 'A page view is logged by the demo destination as a developer reference for destination lifecycle.',\n in: pageViewEvent,\n mapping: {},\n out: [['log', `[demo] ${JSON.stringify(pageViewEvent, null, 2)}`]],\n};\n\nconst orderCompleteEvent = getEvent('order complete', {\n timestamp: 1700000901,\n});\n\nexport const orderComplete: EventStepExample = {\n title: 'Order complete',\n description:\n 'An order complete event is logged by the demo destination showing the full event payload.',\n in: orderCompleteEvent,\n mapping: {},\n out: [['log', `[demo] ${JSON.stringify(orderCompleteEvent, null, 2)}`]],\n};\n"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAS,mBAAmB;;;ACA5B,SAAS,SAAS;AAEX,IAAM,iBAAiB,EAAE,OAAO;AAAA,EACrC,MAAM,EACH,OAAO,EACP,SAAS,EACT,SAAS,wCAAwC;AAAA,EACpD,QAAQ,EACL,MAAM,EAAE,OAAO,CAAC,EAChB,SAAS,EACT;AAAA,IACC;AAAA,EACF;AACJ,CAAC;;;ACbD,SAAS,KAAAA,UAAS;AAEX,IAAM,gBAAgBA,GAAE,OAAO,CAAC,CAAC;;;AFMjC,IAAM,WAAW,YAAY,cAAc;AAC3C,IAAM,UAAU,YAAY,aAAa;;;AGThD;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,IAAM,OAAO,MAAM;AAAC;AAEb,IAAM,OAAwB;AAAA,EACnC,KAAK;AACP;AAEO,IAAM,OAAY;AAAA,EACvB,KAAK,OAAO,OAAO,MAAM,CAAC,CAAC;AAC7B;AAKO,IAAM,aAAa,CAAC,UAAU;;;ACnBrC;AAAA;AAAA;AAAA;AAAA;AACA,SAAS,gBAAgB;AAKzB,IAAM,gBAAgB,SAAS,aAAa,EAAE,WAAW,WAAW,CAAC;AAE9D,IAAM,WAA6B;AAAA,EACxC,OAAO;AAAA,EACP,aACE;AAAA,EACF,IAAI;AAAA,EACJ,SAAS,CAAC;AAAA,EACV,KAAK,CAAC,CAAC,OAAO,UAAU,KAAK,UAAU,eAAe,MAAM,CAAC,CAAC,EAAE,CAAC;AACnE;AAEA,IAAM,qBAAqB,SAAS,kBAAkB;AAAA,EACpD,WAAW;AACb,CAAC;AAEM,IAAM,gBAAkC;AAAA,EAC7C,OAAO;AAAA,EACP,aACE;AAAA,EACF,IAAI;AAAA,EACJ,SAAS,CAAC;AAAA,EACV,KAAK,CAAC,CAAC,OAAO,UAAU,KAAK,UAAU,oBAAoB,MAAM,CAAC,CAAC,EAAE,CAAC;AACxE;","names":["z"]}
|
package/dist/walkerOS.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/destination-demo",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.8.0-next-1791496487198",
|
|
5
5
|
"type": "destination",
|
|
6
6
|
"platform": [
|
|
7
7
|
"web",
|
|
8
8
|
"server"
|
|
9
9
|
],
|
|
10
10
|
"exports": {},
|
|
11
|
-
"docs": "https://www.walkeros.io/docs/destinations
|
|
11
|
+
"docs": "https://www.walkeros.io/docs/destinations",
|
|
12
12
|
"source": "https://github.com/elbwalker/walkerOS/tree/main/packages/destinations/demo/src"
|
|
13
13
|
},
|
|
14
14
|
"schemas": {
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"consent": {
|
|
131
131
|
"functional": true
|
|
132
132
|
},
|
|
133
|
-
"id": "
|
|
133
|
+
"id": "e29a50119b66d35a",
|
|
134
134
|
"trigger": "load",
|
|
135
135
|
"entity": "order",
|
|
136
136
|
"action": "complete",
|
|
@@ -147,96 +147,7 @@
|
|
|
147
147
|
"out": [
|
|
148
148
|
[
|
|
149
149
|
"log",
|
|
150
|
-
{
|
|
151
|
-
"name": "order complete",
|
|
152
|
-
"data": {
|
|
153
|
-
"id": "0rd3r1d",
|
|
154
|
-
"currency": "EUR",
|
|
155
|
-
"shipping": 5.22,
|
|
156
|
-
"taxes": 73.76,
|
|
157
|
-
"total": 555
|
|
158
|
-
},
|
|
159
|
-
"context": {
|
|
160
|
-
"shopping": [
|
|
161
|
-
"complete",
|
|
162
|
-
0
|
|
163
|
-
]
|
|
164
|
-
},
|
|
165
|
-
"globals": {
|
|
166
|
-
"pagegroup": "shop"
|
|
167
|
-
},
|
|
168
|
-
"custom": {
|
|
169
|
-
"completely": "random"
|
|
170
|
-
},
|
|
171
|
-
"user": {
|
|
172
|
-
"id": "us3r",
|
|
173
|
-
"device": "c00k13",
|
|
174
|
-
"session": "s3ss10n"
|
|
175
|
-
},
|
|
176
|
-
"nested": [
|
|
177
|
-
{
|
|
178
|
-
"entity": "product",
|
|
179
|
-
"data": {
|
|
180
|
-
"id": "ers",
|
|
181
|
-
"name": "Everyday Ruck Snack",
|
|
182
|
-
"color": "black",
|
|
183
|
-
"size": "l",
|
|
184
|
-
"price": 420
|
|
185
|
-
},
|
|
186
|
-
"context": {
|
|
187
|
-
"shopping": [
|
|
188
|
-
"complete",
|
|
189
|
-
0
|
|
190
|
-
]
|
|
191
|
-
},
|
|
192
|
-
"nested": []
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"entity": "product",
|
|
196
|
-
"data": {
|
|
197
|
-
"id": "cc",
|
|
198
|
-
"name": "Cool Cap",
|
|
199
|
-
"size": "one size",
|
|
200
|
-
"price": 42
|
|
201
|
-
},
|
|
202
|
-
"context": {
|
|
203
|
-
"shopping": [
|
|
204
|
-
"complete",
|
|
205
|
-
0
|
|
206
|
-
]
|
|
207
|
-
},
|
|
208
|
-
"nested": []
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"entity": "gift",
|
|
212
|
-
"data": {
|
|
213
|
-
"name": "Surprise"
|
|
214
|
-
},
|
|
215
|
-
"context": {
|
|
216
|
-
"shopping": [
|
|
217
|
-
"complete",
|
|
218
|
-
0
|
|
219
|
-
]
|
|
220
|
-
},
|
|
221
|
-
"nested": []
|
|
222
|
-
}
|
|
223
|
-
],
|
|
224
|
-
"consent": {
|
|
225
|
-
"functional": true
|
|
226
|
-
},
|
|
227
|
-
"id": "bc950d19892d9815",
|
|
228
|
-
"trigger": "load",
|
|
229
|
-
"entity": "order",
|
|
230
|
-
"action": "complete",
|
|
231
|
-
"timestamp": 1700000901,
|
|
232
|
-
"timing": 3.14,
|
|
233
|
-
"source": {
|
|
234
|
-
"count": 1,
|
|
235
|
-
"trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
|
|
236
|
-
"type": "collector",
|
|
237
|
-
"schema": "4"
|
|
238
|
-
}
|
|
239
|
-
}
|
|
150
|
+
"[demo] {\n \"name\": \"order complete\",\n \"data\": {\n \"id\": \"0rd3r1d\",\n \"currency\": \"EUR\",\n \"shipping\": 5.22,\n \"taxes\": 73.76,\n \"total\": 555\n },\n \"context\": {\n \"shopping\": [\n \"complete\",\n 0\n ]\n },\n \"globals\": {\n \"pagegroup\": \"shop\"\n },\n \"custom\": {\n \"completely\": \"random\"\n },\n \"user\": {\n \"id\": \"us3r\",\n \"device\": \"c00k13\",\n \"session\": \"s3ss10n\"\n },\n \"nested\": [\n {\n \"entity\": \"product\",\n \"data\": {\n \"id\": \"ers\",\n \"name\": \"Everyday Ruck Snack\",\n \"color\": \"black\",\n \"size\": \"l\",\n \"price\": 420\n },\n \"context\": {\n \"shopping\": [\n \"complete\",\n 0\n ]\n },\n \"nested\": []\n },\n {\n \"entity\": \"product\",\n \"data\": {\n \"id\": \"cc\",\n \"name\": \"Cool Cap\",\n \"size\": \"one size\",\n \"price\": 42\n },\n \"context\": {\n \"shopping\": [\n \"complete\",\n 0\n ]\n },\n \"nested\": []\n },\n {\n \"entity\": \"gift\",\n \"data\": {\n \"name\": \"Surprise\"\n },\n \"context\": {\n \"shopping\": [\n \"complete\",\n 0\n ]\n },\n \"nested\": []\n }\n ],\n \"consent\": {\n \"functional\": true\n },\n \"id\": \"e29a50119b66d35a\",\n \"trigger\": \"load\",\n \"entity\": \"order\",\n \"action\": \"complete\",\n \"timestamp\": 1700000901,\n \"timing\": 3.14,\n \"source\": {\n \"count\": 1,\n \"trace\": \"0a1b2c3d4e5f60718293a4b5c6d7e8f9\",\n \"type\": \"collector\",\n \"schema\": \"4\"\n }\n}"
|
|
240
151
|
]
|
|
241
152
|
]
|
|
242
153
|
},
|
|
@@ -281,7 +192,7 @@
|
|
|
281
192
|
"consent": {
|
|
282
193
|
"functional": true
|
|
283
194
|
},
|
|
284
|
-
"id": "
|
|
195
|
+
"id": "4dad53280ff7dad1",
|
|
285
196
|
"trigger": "load",
|
|
286
197
|
"entity": "page",
|
|
287
198
|
"action": "view",
|
|
@@ -298,57 +209,7 @@
|
|
|
298
209
|
"out": [
|
|
299
210
|
[
|
|
300
211
|
"log",
|
|
301
|
-
{
|
|
302
|
-
"name": "page view",
|
|
303
|
-
"data": {
|
|
304
|
-
"domain": "www.example.com",
|
|
305
|
-
"title": "walkerOS documentation",
|
|
306
|
-
"referrer": "https://www.walkeros.io/",
|
|
307
|
-
"search": "?foo=bar",
|
|
308
|
-
"hash": "#hash",
|
|
309
|
-
"id": "/docs/"
|
|
310
|
-
},
|
|
311
|
-
"context": {
|
|
312
|
-
"dev": [
|
|
313
|
-
"test",
|
|
314
|
-
1
|
|
315
|
-
]
|
|
316
|
-
},
|
|
317
|
-
"globals": {
|
|
318
|
-
"pagegroup": "docs"
|
|
319
|
-
},
|
|
320
|
-
"custom": {
|
|
321
|
-
"completely": "random"
|
|
322
|
-
},
|
|
323
|
-
"user": {
|
|
324
|
-
"id": "us3r",
|
|
325
|
-
"device": "c00k13",
|
|
326
|
-
"session": "s3ss10n"
|
|
327
|
-
},
|
|
328
|
-
"nested": [
|
|
329
|
-
{
|
|
330
|
-
"entity": "child",
|
|
331
|
-
"data": {
|
|
332
|
-
"is": "subordinated"
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
],
|
|
336
|
-
"consent": {
|
|
337
|
-
"functional": true
|
|
338
|
-
},
|
|
339
|
-
"id": "f6792bb0233faf41",
|
|
340
|
-
"trigger": "load",
|
|
341
|
-
"entity": "page",
|
|
342
|
-
"action": "view",
|
|
343
|
-
"timestamp": 1700000900,
|
|
344
|
-
"timing": 3.14,
|
|
345
|
-
"source": {
|
|
346
|
-
"count": 1,
|
|
347
|
-
"trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
|
|
348
|
-
"type": "collector",
|
|
349
|
-
"schema": "4"
|
|
350
|
-
}
|
|
351
|
-
}
|
|
212
|
+
"[demo] {\n \"name\": \"page view\",\n \"data\": {\n \"domain\": \"www.example.com\",\n \"title\": \"walkerOS documentation\",\n \"referrer\": \"https://www.walkeros.io/\",\n \"search\": \"?foo=bar\",\n \"hash\": \"#hash\",\n \"id\": \"/docs/\"\n },\n \"context\": {\n \"dev\": [\n \"test\",\n 1\n ]\n },\n \"globals\": {\n \"pagegroup\": \"docs\"\n },\n \"custom\": {\n \"completely\": \"random\"\n },\n \"user\": {\n \"id\": \"us3r\",\n \"device\": \"c00k13\",\n \"session\": \"s3ss10n\"\n },\n \"nested\": [\n {\n \"entity\": \"child\",\n \"data\": {\n \"is\": \"subordinated\"\n }\n }\n ],\n \"consent\": {\n \"functional\": true\n },\n \"id\": \"4dad53280ff7dad1\",\n \"trigger\": \"load\",\n \"entity\": \"page\",\n \"action\": \"view\",\n \"timestamp\": 1700000900,\n \"timing\": 3.14,\n \"source\": {\n \"count\": 1,\n \"trace\": \"0a1b2c3d4e5f60718293a4b5c6d7e8f9\",\n \"type\": \"collector\",\n \"schema\": \"4\"\n }\n}"
|
|
352
213
|
]
|
|
353
214
|
]
|
|
354
215
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/destination-demo",
|
|
3
3
|
"description": "Demo destination for walkerOS - logs events to console",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.8.0-next-1791496487198",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"web",
|
|
13
13
|
"server"
|
|
14
14
|
],
|
|
15
|
-
"docs": "https://www.walkeros.io/docs/destinations
|
|
15
|
+
"docs": "https://www.walkeros.io/docs/destinations"
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"test": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@walkeros/core": "4.
|
|
43
|
+
"@walkeros/core": "4.8.0-next-1791496487198"
|
|
44
44
|
},
|
|
45
45
|
"repository": {
|
|
46
46
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|