@walkeros/destination-demo 2.0.0 → 2.1.0
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/dev.d.mts +60 -0
- package/dist/dev.d.ts +60 -0
- package/dist/dev.js +1 -0
- package/dist/dev.js.map +1 -0
- package/dist/dev.mjs +1 -0
- package/dist/dev.mjs.map +1 -0
- package/dist/index.d.mts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/walkerOS.json +370 -0
- package/package.json +11 -3
package/dist/dev.d.mts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
|
+
import { z } from '@walkeros/core/dev';
|
|
3
|
+
import { Destination, Flow } from '@walkeros/core';
|
|
4
|
+
|
|
5
|
+
declare const SettingsSchema: z.ZodObject<{
|
|
6
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type Settings = z.infer<typeof SettingsSchema>;
|
|
10
|
+
|
|
11
|
+
declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
|
|
12
|
+
type Mapping = z.infer<typeof MappingSchema>;
|
|
13
|
+
|
|
14
|
+
declare const settings: _walkeros_core_dev.JSONSchema;
|
|
15
|
+
declare const mapping: _walkeros_core_dev.JSONSchema;
|
|
16
|
+
|
|
17
|
+
type index$1_Mapping = Mapping;
|
|
18
|
+
declare const index$1_MappingSchema: typeof MappingSchema;
|
|
19
|
+
type index$1_Settings = Settings;
|
|
20
|
+
declare const index$1_SettingsSchema: typeof SettingsSchema;
|
|
21
|
+
declare const index$1_mapping: typeof mapping;
|
|
22
|
+
declare const index$1_settings: typeof settings;
|
|
23
|
+
declare namespace index$1 {
|
|
24
|
+
export { type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_mapping as mapping, index$1_settings as settings };
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface Env extends Destination.BaseEnv {
|
|
28
|
+
log?: (msg: string) => void;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare const init: Env | undefined;
|
|
32
|
+
declare const push: Env;
|
|
33
|
+
/**
|
|
34
|
+
* Simulation tracking paths
|
|
35
|
+
*/
|
|
36
|
+
declare const simulation: string[];
|
|
37
|
+
|
|
38
|
+
declare const env_init: typeof init;
|
|
39
|
+
declare const env_push: typeof push;
|
|
40
|
+
declare const env_simulation: typeof simulation;
|
|
41
|
+
declare namespace env {
|
|
42
|
+
export { env_init as init, env_push as push, env_simulation as simulation };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare const pageView: Flow.StepExample;
|
|
46
|
+
declare const orderComplete: Flow.StepExample;
|
|
47
|
+
|
|
48
|
+
declare const step_orderComplete: typeof orderComplete;
|
|
49
|
+
declare const step_pageView: typeof pageView;
|
|
50
|
+
declare namespace step {
|
|
51
|
+
export { step_orderComplete as orderComplete, step_pageView as pageView };
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare const index_env: typeof env;
|
|
55
|
+
declare const index_step: typeof step;
|
|
56
|
+
declare namespace index {
|
|
57
|
+
export { index_env as env, index_step as step };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { index as examples, index$1 as schemas };
|
package/dist/dev.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
|
+
import { z } from '@walkeros/core/dev';
|
|
3
|
+
import { Destination, Flow } from '@walkeros/core';
|
|
4
|
+
|
|
5
|
+
declare const SettingsSchema: z.ZodObject<{
|
|
6
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type Settings = z.infer<typeof SettingsSchema>;
|
|
10
|
+
|
|
11
|
+
declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
|
|
12
|
+
type Mapping = z.infer<typeof MappingSchema>;
|
|
13
|
+
|
|
14
|
+
declare const settings: _walkeros_core_dev.JSONSchema;
|
|
15
|
+
declare const mapping: _walkeros_core_dev.JSONSchema;
|
|
16
|
+
|
|
17
|
+
type index$1_Mapping = Mapping;
|
|
18
|
+
declare const index$1_MappingSchema: typeof MappingSchema;
|
|
19
|
+
type index$1_Settings = Settings;
|
|
20
|
+
declare const index$1_SettingsSchema: typeof SettingsSchema;
|
|
21
|
+
declare const index$1_mapping: typeof mapping;
|
|
22
|
+
declare const index$1_settings: typeof settings;
|
|
23
|
+
declare namespace index$1 {
|
|
24
|
+
export { type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_mapping as mapping, index$1_settings as settings };
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface Env extends Destination.BaseEnv {
|
|
28
|
+
log?: (msg: string) => void;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare const init: Env | undefined;
|
|
32
|
+
declare const push: Env;
|
|
33
|
+
/**
|
|
34
|
+
* Simulation tracking paths
|
|
35
|
+
*/
|
|
36
|
+
declare const simulation: string[];
|
|
37
|
+
|
|
38
|
+
declare const env_init: typeof init;
|
|
39
|
+
declare const env_push: typeof push;
|
|
40
|
+
declare const env_simulation: typeof simulation;
|
|
41
|
+
declare namespace env {
|
|
42
|
+
export { env_init as init, env_push as push, env_simulation as simulation };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare const pageView: Flow.StepExample;
|
|
46
|
+
declare const orderComplete: Flow.StepExample;
|
|
47
|
+
|
|
48
|
+
declare const step_orderComplete: typeof orderComplete;
|
|
49
|
+
declare const step_pageView: typeof pageView;
|
|
50
|
+
declare namespace step {
|
|
51
|
+
export { step_orderComplete as orderComplete, step_pageView as pageView };
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare const index_env: typeof env;
|
|
55
|
+
declare const index_step: typeof step;
|
|
56
|
+
declare namespace index {
|
|
57
|
+
export { index_env as env, index_step as step };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { index as examples, index$1 as schemas };
|
package/dist/dev.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i=(e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})},n={};i(n,{examples:()=>v,schemas:()=>p}),module.exports=(e=n,((e,i,n,p)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let s of o(i))a.call(e,s)||s===n||t(e,s,{get:()=>i[s],enumerable:!(p=r(i,s))||p.enumerable});return e})(t({},"__esModule",{value:!0}),e));var p={};i(p,{MappingSchema:()=>c,SettingsSchema:()=>m,mapping:()=>u,settings:()=>g});var s=require("@walkeros/core/dev"),l=require("@walkeros/core/dev"),m=l.z.object({name:l.z.string().optional().describe("Display name used in log output prefix"),values:l.z.array(l.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({}),g=(0,s.zodToSchema)(m),u=(0,s.zodToSchema)(c),v={};i(v,{env:()=>d,step:()=>y});var d={};i(d,{init:()=>b,push:()=>f,simulation:()=>w});var b={log:void 0},f={log:Object.assign(()=>{},{})},w=["call:log"],y={};i(y,{orderComplete:()=>O,pageView:()=>j});var h=require("@walkeros/core"),j={in:(0,h.getEvent)("page view",{timestamp:1700000900}),mapping:{},out:(0,h.getEvent)("page view",{timestamp:1700000900})},O={in:(0,h.getEvent)("order complete",{timestamp:1700000901}),mapping:{},out:(0,h.getEvent)("order complete",{timestamp:1700000901})};//# sourceMappingURL=dev.js.map
|
package/dist/dev.js.map
ADDED
|
@@ -0,0 +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: Flow.StepExample = {\n in: getEvent('page view', { timestamp: 1700000900 }),\n mapping: {},\n out: getEvent('page view', { timestamp: 1700000900 }),\n};\n\nexport const orderComplete: Flow.StepExample = {\n in: getEvent('order complete', { timestamp: 1700000901 }),\n mapping: {},\n out: getEvent('order complete', { timestamp: 1700000901 }),\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;AAElB,IAAM,WAA6B;AAAA,EACxC,QAAI,sBAAS,aAAa,EAAE,WAAW,WAAW,CAAC;AAAA,EACnD,SAAS,CAAC;AAAA,EACV,SAAK,sBAAS,aAAa,EAAE,WAAW,WAAW,CAAC;AACtD;AAEO,IAAM,gBAAkC;AAAA,EAC7C,QAAI,sBAAS,kBAAkB,EAAE,WAAW,WAAW,CAAC;AAAA,EACxD,SAAS,CAAC;AAAA,EACV,SAAK,sBAAS,kBAAkB,EAAE,WAAW,WAAW,CAAC;AAC3D;","names":["import_dev","import_dev"]}
|
package/dist/dev.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(t,o)=>{for(var a in o)e(t,a,{get:o[a],enumerable:!0})},o={};t(o,{MappingSchema:()=>m,SettingsSchema:()=>i,mapping:()=>n,settings:()=>s});import{zodToSchema as a}from"@walkeros/core/dev";import{z as r}from"@walkeros/core/dev";var i=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 p}from"@walkeros/core/dev";var m=p.object({}),s=a(i),n=a(m),l={};t(l,{env:()=>g,step:()=>f});var g={};t(g,{init:()=>c,push:()=>v,simulation:()=>d});var c={log:void 0},v={log:Object.assign(()=>{},{})},d=["call:log"],f={};t(f,{orderComplete:()=>w,pageView:()=>b});import{getEvent as u}from"@walkeros/core";var b={in:u("page view",{timestamp:1700000900}),mapping:{},out:u("page view",{timestamp:1700000900})},w={in:u("order complete",{timestamp:1700000901}),mapping:{},out:u("order complete",{timestamp:1700000901})};export{l as examples,o as schemas};//# sourceMappingURL=dev.mjs.map
|
package/dist/dev.mjs.map
ADDED
|
@@ -0,0 +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: Flow.StepExample = {\n in: getEvent('page view', { timestamp: 1700000900 }),\n mapping: {},\n out: getEvent('page view', { timestamp: 1700000900 }),\n};\n\nexport const orderComplete: Flow.StepExample = {\n in: getEvent('order complete', { timestamp: 1700000901 }),\n mapping: {},\n out: getEvent('order complete', { timestamp: 1700000901 }),\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;AAElB,IAAM,WAA6B;AAAA,EACxC,IAAI,SAAS,aAAa,EAAE,WAAW,WAAW,CAAC;AAAA,EACnD,SAAS,CAAC;AAAA,EACV,KAAK,SAAS,aAAa,EAAE,WAAW,WAAW,CAAC;AACtD;AAEO,IAAM,gBAAkC;AAAA,EAC7C,IAAI,SAAS,kBAAkB,EAAE,WAAW,WAAW,CAAC;AAAA,EACxD,SAAS,CAAC;AAAA,EACV,KAAK,SAAS,kBAAkB,EAAE,WAAW,WAAW,CAAC;AAC3D;","names":["z"]}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Destination as Destination$1 } from '@walkeros/core';
|
|
1
|
+
import { Destination as Destination$1, Flow } from '@walkeros/core';
|
|
2
2
|
|
|
3
3
|
interface Settings {
|
|
4
4
|
name?: string;
|
|
@@ -41,9 +41,19 @@ declare namespace env {
|
|
|
41
41
|
export { env_init as init, env_push as push, env_simulation as simulation };
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
declare const pageView: Flow.StepExample;
|
|
45
|
+
declare const orderComplete: Flow.StepExample;
|
|
46
|
+
|
|
47
|
+
declare const step_orderComplete: typeof orderComplete;
|
|
48
|
+
declare const step_pageView: typeof pageView;
|
|
49
|
+
declare namespace step {
|
|
50
|
+
export { step_orderComplete as orderComplete, step_pageView as pageView };
|
|
51
|
+
}
|
|
52
|
+
|
|
44
53
|
declare const index_env: typeof env;
|
|
54
|
+
declare const index_step: typeof step;
|
|
45
55
|
declare namespace index {
|
|
46
|
-
export { index_env as env };
|
|
56
|
+
export { index_env as env, index_step as step };
|
|
47
57
|
}
|
|
48
58
|
|
|
49
59
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Destination as Destination$1 } from '@walkeros/core';
|
|
1
|
+
import { Destination as Destination$1, Flow } from '@walkeros/core';
|
|
2
2
|
|
|
3
3
|
interface Settings {
|
|
4
4
|
name?: string;
|
|
@@ -41,9 +41,19 @@ declare namespace env {
|
|
|
41
41
|
export { env_init as init, env_push as push, env_simulation as simulation };
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
declare const pageView: Flow.StepExample;
|
|
45
|
+
declare const orderComplete: Flow.StepExample;
|
|
46
|
+
|
|
47
|
+
declare const step_orderComplete: typeof orderComplete;
|
|
48
|
+
declare const step_pageView: typeof pageView;
|
|
49
|
+
declare namespace step {
|
|
50
|
+
export { step_orderComplete as orderComplete, step_pageView as pageView };
|
|
51
|
+
}
|
|
52
|
+
|
|
44
53
|
declare const index_env: typeof env;
|
|
54
|
+
declare const index_step: typeof step;
|
|
45
55
|
declare namespace index {
|
|
46
|
-
export { index_env as env };
|
|
56
|
+
export { index_env as env, index_step as step };
|
|
47
57
|
}
|
|
48
58
|
|
|
49
59
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,r=(e,o)=>{for(var n in o)t(e,n,{get:o[n],enumerable:!0})},a={};r(a,{DestinationDemo:()=>s,default:()=>y,destinationDemo:()=>b,examples:()=>l}),module.exports=(e=a,((e,r,a,s)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let l of n(r))i.call(e,l)||l===a||t(e,l,{get:()=>r[l],enumerable:!(s=o(r,l))||s.enumerable});return e})(t({},"__esModule",{value:!0}),e));var s={},l={};r(l,{env:()=>m,step:()=>u});var m={};r(m,{init:()=>p,push:()=>g,simulation:()=>c});var p={log:void 0},g={log:Object.assign(()=>{},{})},c=["call:log"],u={};r(u,{orderComplete:()=>f,pageView:()=>d});var v=require("@walkeros/core"),d={in:(0,v.getEvent)("page view",{timestamp:1700000900}),mapping:{},out:(0,v.getEvent)("page view",{timestamp:1700000900})},f={in:(0,v.getEvent)("order complete",{timestamp:1700000901}),mapping:{},out:(0,v.getEvent)("order complete",{timestamp:1700000901})},b={type:"demo",config:{settings:{name:"demo"}},init({config:e,env:t}){(t?.log||console.log)(`[${{name:"demo",...e?.settings}.name}] initialized`)},push(e,{config:t,env:o}){const n=o?.log||console.log,i={name:"demo",...t?.settings},r=i.values?function(e,t){const o={};for(const n of t){const t=n.split(".").reduce((e,t)=>e?.[t],e);void 0!==t&&(o[n]=t)}return o}(e,i.values):e;n(`[${i.name}] ${JSON.stringify(r,null,2)}`)}};var y=b;//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/types.ts","../src/examples/index.ts","../src/examples/env.ts"],"sourcesContent":["import type { WalkerOS } from '@walkeros/core';\nimport type { Destination } from './types';\n\nexport * as DestinationDemo from './types';\nexport * as examples from './examples';\n\n/**\n * Demo destination for walkerOS\n *\n * Logs events using env.log (or console.log fallback) with optional field filtering.\n * Perfect for testing and demonstrations without external dependencies.\n */\nexport const destinationDemo: Destination = {\n type: 'demo',\n\n config: {\n settings: {\n name: 'demo',\n },\n },\n\n init({ config, env }) {\n // eslint-disable-next-line no-console\n const log = env?.log || console.log;\n const settings = { name: 'demo', ...config?.settings };\n\n // Log initialization\n log(`[${settings.name}] initialized`);\n },\n\n push(event, { config, env }) {\n // eslint-disable-next-line no-console\n const log = env?.log || console.log;\n const settings = { name: 'demo', ...config?.settings };\n\n const output = settings.values\n ? extractValues(\n event as unknown as Record<string, unknown>,\n settings.values,\n )\n : event;\n\n log(`[${settings.name}] ${JSON.stringify(output, null, 2)}`);\n },\n};\n\n/**\n * Extract values from object using dot notation paths\n */\nfunction extractValues(\n obj: Record<string, unknown>,\n paths: string[],\n): Record<string, unknown> {\n const result: Record<string, unknown> = {};\n\n for (const path of paths) {\n const value = path\n .split('.')\n .reduce<unknown>(\n (acc, key) => (acc as Record<string, unknown>)?.[key],\n obj,\n );\n if (value !== undefined) {\n result[path] = value;\n }\n }\n\n return result;\n}\n\nexport default destinationDemo;\n","import type { Destination as CoreDestination } from '@walkeros/core';\n\nexport interface Settings {\n name?: string;\n values?: string[];\n}\n\nexport interface Mapping {}\n\nexport interface Env extends CoreDestination.BaseEnv {\n log?: (msg: string) => void;\n}\n\nexport type Types = CoreDestination.Types<Settings, Mapping, Env>;\n\nexport type Destination = CoreDestination.Instance<Types>;\nexport type Config = CoreDestination.Config<Types>;\nexport type InitFn = CoreDestination.InitFn<Types>;\nexport type PushFn = CoreDestination.PushFn<Types>;\n","export * as env from './env';\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;;;ACAA;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;;;
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/types.ts","../src/examples/index.ts","../src/examples/env.ts","../src/examples/step.ts"],"sourcesContent":["import type { WalkerOS } from '@walkeros/core';\nimport type { Destination } from './types';\n\nexport * as DestinationDemo from './types';\nexport * as examples from './examples';\n\n/**\n * Demo destination for walkerOS\n *\n * Logs events using env.log (or console.log fallback) with optional field filtering.\n * Perfect for testing and demonstrations without external dependencies.\n */\nexport const destinationDemo: Destination = {\n type: 'demo',\n\n config: {\n settings: {\n name: 'demo',\n },\n },\n\n init({ config, env }) {\n // eslint-disable-next-line no-console\n const log = env?.log || console.log;\n const settings = { name: 'demo', ...config?.settings };\n\n // Log initialization\n log(`[${settings.name}] initialized`);\n },\n\n push(event, { config, env }) {\n // eslint-disable-next-line no-console\n const log = env?.log || console.log;\n const settings = { name: 'demo', ...config?.settings };\n\n const output = settings.values\n ? extractValues(\n event as unknown as Record<string, unknown>,\n settings.values,\n )\n : event;\n\n log(`[${settings.name}] ${JSON.stringify(output, null, 2)}`);\n },\n};\n\n/**\n * Extract values from object using dot notation paths\n */\nfunction extractValues(\n obj: Record<string, unknown>,\n paths: string[],\n): Record<string, unknown> {\n const result: Record<string, unknown> = {};\n\n for (const path of paths) {\n const value = path\n .split('.')\n .reduce<unknown>(\n (acc, key) => (acc as Record<string, unknown>)?.[key],\n obj,\n );\n if (value !== undefined) {\n result[path] = value;\n }\n }\n\n return result;\n}\n\nexport default destinationDemo;\n","import type { Destination as CoreDestination } from '@walkeros/core';\n\nexport interface Settings {\n name?: string;\n values?: string[];\n}\n\nexport interface Mapping {}\n\nexport interface Env extends CoreDestination.BaseEnv {\n log?: (msg: string) => void;\n}\n\nexport type Types = CoreDestination.Types<Settings, Mapping, Env>;\n\nexport type Destination = CoreDestination.Instance<Types>;\nexport type Config = CoreDestination.Config<Types>;\nexport type InitFn = CoreDestination.InitFn<Types>;\nexport type PushFn = CoreDestination.PushFn<Types>;\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: Flow.StepExample = {\n in: getEvent('page view', { timestamp: 1700000900 }),\n mapping: {},\n out: getEvent('page view', { timestamp: 1700000900 }),\n};\n\nexport const orderComplete: Flow.StepExample = {\n in: getEvent('order complete', { timestamp: 1700000901 }),\n mapping: {},\n out: getEvent('order complete', { timestamp: 1700000901 }),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;;;ACAA;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;AAElB,IAAM,WAA6B;AAAA,EACxC,QAAI,sBAAS,aAAa,EAAE,WAAW,WAAW,CAAC;AAAA,EACnD,SAAS,CAAC;AAAA,EACV,SAAK,sBAAS,aAAa,EAAE,WAAW,WAAW,CAAC;AACtD;AAEO,IAAM,gBAAkC;AAAA,EAC7C,QAAI,sBAAS,kBAAkB,EAAE,WAAW,WAAW,CAAC;AAAA,EACxD,SAAS,CAAC;AAAA,EACV,SAAK,sBAAS,kBAAkB,EAAE,WAAW,WAAW,CAAC;AAC3D;;;AJDO,IAAM,kBAA+B;AAAA,EAC1C,MAAM;AAAA,EAEN,QAAQ;AAAA,IACN,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEA,KAAK,EAAE,QAAQ,IAAI,GAAG;AAEpB,UAAM,MAAM,KAAK,OAAO,QAAQ;AAChC,UAAM,WAAW,EAAE,MAAM,QAAQ,GAAG,QAAQ,SAAS;AAGrD,QAAI,IAAI,SAAS,IAAI,eAAe;AAAA,EACtC;AAAA,EAEA,KAAK,OAAO,EAAE,QAAQ,IAAI,GAAG;AAE3B,UAAM,MAAM,KAAK,OAAO,QAAQ;AAChC,UAAM,WAAW,EAAE,MAAM,QAAQ,GAAG,QAAQ,SAAS;AAErD,UAAM,SAAS,SAAS,SACpB;AAAA,MACE;AAAA,MACA,SAAS;AAAA,IACX,IACA;AAEJ,QAAI,IAAI,SAAS,IAAI,KAAK,KAAK,UAAU,QAAQ,MAAM,CAAC,CAAC,EAAE;AAAA,EAC7D;AACF;AAKA,SAAS,cACP,KACA,OACyB;AACzB,QAAM,SAAkC,CAAC;AAEzC,aAAW,QAAQ,OAAO;AACxB,UAAM,QAAQ,KACX,MAAM,GAAG,EACT;AAAA,MACC,CAAC,KAAK,QAAS,MAAkC,GAAG;AAAA,MACpD;AAAA,IACF;AACF,QAAI,UAAU,QAAW;AACvB,aAAO,IAAI,IAAI;AAAA,IACjB;AAAA,EACF;AAEA,SAAO;AACT;AAEA,IAAO,gBAAQ;","names":[]}
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=Object.defineProperty,
|
|
1
|
+
var e=Object.defineProperty,o=(o,t)=>{for(var i in t)e(o,i,{get:t[i],enumerable:!0})},t={},i={};o(i,{env:()=>n,step:()=>r});var n={};o(n,{init:()=>a,push:()=>s,simulation:()=>m});var a={log:void 0},s={log:Object.assign(()=>{},{})},m=["call:log"],r={};o(r,{orderComplete:()=>g,pageView:()=>p});import{getEvent as l}from"@walkeros/core";var p={in:l("page view",{timestamp:1700000900}),mapping:{},out:l("page view",{timestamp:1700000900})},g={in:l("order complete",{timestamp:1700000901}),mapping:{},out:l("order complete",{timestamp:1700000901})},c={type:"demo",config:{settings:{name:"demo"}},init({config:e,env:o}){(o?.log||console.log)(`[${{name:"demo",...e?.settings}.name}] initialized`)},push(e,{config:o,env:t}){const i=t?.log||console.log,n={name:"demo",...o?.settings},a=n.values?function(e,o){const t={};for(const i of o){const o=i.split(".").reduce((e,o)=>e?.[o],e);void 0!==o&&(t[i]=o)}return t}(e,n.values):e;i(`[${n.name}] ${JSON.stringify(a,null,2)}`)}};var v=c;export{t as DestinationDemo,v as default,c as destinationDemo,i as examples};//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types.ts","../src/examples/index.ts","../src/examples/env.ts","../src/index.ts"],"sourcesContent":["import type { Destination as CoreDestination } from '@walkeros/core';\n\nexport interface Settings {\n name?: string;\n values?: string[];\n}\n\nexport interface Mapping {}\n\nexport interface Env extends CoreDestination.BaseEnv {\n log?: (msg: string) => void;\n}\n\nexport type Types = CoreDestination.Types<Settings, Mapping, Env>;\n\nexport type Destination = CoreDestination.Instance<Types>;\nexport type Config = CoreDestination.Config<Types>;\nexport type InitFn = CoreDestination.InitFn<Types>;\nexport type PushFn = CoreDestination.PushFn<Types>;\n","export * as env from './env';\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 { WalkerOS } from '@walkeros/core';\nimport type { Destination } from './types';\n\nexport * as DestinationDemo from './types';\nexport * as examples from './examples';\n\n/**\n * Demo destination for walkerOS\n *\n * Logs events using env.log (or console.log fallback) with optional field filtering.\n * Perfect for testing and demonstrations without external dependencies.\n */\nexport const destinationDemo: Destination = {\n type: 'demo',\n\n config: {\n settings: {\n name: 'demo',\n },\n },\n\n init({ config, env }) {\n // eslint-disable-next-line no-console\n const log = env?.log || console.log;\n const settings = { name: 'demo', ...config?.settings };\n\n // Log initialization\n log(`[${settings.name}] initialized`);\n },\n\n push(event, { config, env }) {\n // eslint-disable-next-line no-console\n const log = env?.log || console.log;\n const settings = { name: 'demo', ...config?.settings };\n\n const output = settings.values\n ? extractValues(\n event as unknown as Record<string, unknown>,\n settings.values,\n )\n : event;\n\n log(`[${settings.name}] ${JSON.stringify(output, null, 2)}`);\n },\n};\n\n/**\n * Extract values from object using dot notation paths\n */\nfunction extractValues(\n obj: Record<string, unknown>,\n paths: string[],\n): Record<string, unknown> {\n const result: Record<string, unknown> = {};\n\n for (const path of paths) {\n const value = path\n .split('.')\n .reduce<unknown>(\n (acc, key) => (acc as Record<string, unknown>)?.[key],\n obj,\n );\n if (value !== undefined) {\n result[path] = value;\n }\n }\n\n return result;\n}\n\nexport default destinationDemo;\n"],"mappings":";;;;;;;AAAA;;;ACAA;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;;;
|
|
1
|
+
{"version":3,"sources":["../src/types.ts","../src/examples/index.ts","../src/examples/env.ts","../src/examples/step.ts","../src/index.ts"],"sourcesContent":["import type { Destination as CoreDestination } from '@walkeros/core';\n\nexport interface Settings {\n name?: string;\n values?: string[];\n}\n\nexport interface Mapping {}\n\nexport interface Env extends CoreDestination.BaseEnv {\n log?: (msg: string) => void;\n}\n\nexport type Types = CoreDestination.Types<Settings, Mapping, Env>;\n\nexport type Destination = CoreDestination.Instance<Types>;\nexport type Config = CoreDestination.Config<Types>;\nexport type InitFn = CoreDestination.InitFn<Types>;\nexport type PushFn = CoreDestination.PushFn<Types>;\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: Flow.StepExample = {\n in: getEvent('page view', { timestamp: 1700000900 }),\n mapping: {},\n out: getEvent('page view', { timestamp: 1700000900 }),\n};\n\nexport const orderComplete: Flow.StepExample = {\n in: getEvent('order complete', { timestamp: 1700000901 }),\n mapping: {},\n out: getEvent('order complete', { timestamp: 1700000901 }),\n};\n","import type { WalkerOS } from '@walkeros/core';\nimport type { Destination } from './types';\n\nexport * as DestinationDemo from './types';\nexport * as examples from './examples';\n\n/**\n * Demo destination for walkerOS\n *\n * Logs events using env.log (or console.log fallback) with optional field filtering.\n * Perfect for testing and demonstrations without external dependencies.\n */\nexport const destinationDemo: Destination = {\n type: 'demo',\n\n config: {\n settings: {\n name: 'demo',\n },\n },\n\n init({ config, env }) {\n // eslint-disable-next-line no-console\n const log = env?.log || console.log;\n const settings = { name: 'demo', ...config?.settings };\n\n // Log initialization\n log(`[${settings.name}] initialized`);\n },\n\n push(event, { config, env }) {\n // eslint-disable-next-line no-console\n const log = env?.log || console.log;\n const settings = { name: 'demo', ...config?.settings };\n\n const output = settings.values\n ? extractValues(\n event as unknown as Record<string, unknown>,\n settings.values,\n )\n : event;\n\n log(`[${settings.name}] ${JSON.stringify(output, null, 2)}`);\n },\n};\n\n/**\n * Extract values from object using dot notation paths\n */\nfunction extractValues(\n obj: Record<string, unknown>,\n paths: string[],\n): Record<string, unknown> {\n const result: Record<string, unknown> = {};\n\n for (const path of paths) {\n const value = path\n .split('.')\n .reduce<unknown>(\n (acc, key) => (acc as Record<string, unknown>)?.[key],\n obj,\n );\n if (value !== undefined) {\n result[path] = value;\n }\n }\n\n return result;\n}\n\nexport default destinationDemo;\n"],"mappings":";;;;;;;AAAA;;;ACAA;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;AAElB,IAAM,WAA6B;AAAA,EACxC,IAAI,SAAS,aAAa,EAAE,WAAW,WAAW,CAAC;AAAA,EACnD,SAAS,CAAC;AAAA,EACV,KAAK,SAAS,aAAa,EAAE,WAAW,WAAW,CAAC;AACtD;AAEO,IAAM,gBAAkC;AAAA,EAC7C,IAAI,SAAS,kBAAkB,EAAE,WAAW,WAAW,CAAC;AAAA,EACxD,SAAS,CAAC;AAAA,EACV,KAAK,SAAS,kBAAkB,EAAE,WAAW,WAAW,CAAC;AAC3D;;;ACDO,IAAM,kBAA+B;AAAA,EAC1C,MAAM;AAAA,EAEN,QAAQ;AAAA,IACN,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEA,KAAK,EAAE,QAAQ,IAAI,GAAG;AAEpB,UAAM,MAAM,KAAK,OAAO,QAAQ;AAChC,UAAM,WAAW,EAAE,MAAM,QAAQ,GAAG,QAAQ,SAAS;AAGrD,QAAI,IAAI,SAAS,IAAI,eAAe;AAAA,EACtC;AAAA,EAEA,KAAK,OAAO,EAAE,QAAQ,IAAI,GAAG;AAE3B,UAAM,MAAM,KAAK,OAAO,QAAQ;AAChC,UAAM,WAAW,EAAE,MAAM,QAAQ,GAAG,QAAQ,SAAS;AAErD,UAAM,SAAS,SAAS,SACpB;AAAA,MACE;AAAA,MACA,SAAS;AAAA,IACX,IACA;AAEJ,QAAI,IAAI,SAAS,IAAI,KAAK,KAAK,UAAU,QAAQ,MAAM,CAAC,CAAC,EAAE;AAAA,EAC7D;AACF;AAKA,SAAS,cACP,KACA,OACyB;AACzB,QAAM,SAAkC,CAAC;AAEzC,aAAW,QAAQ,OAAO;AACxB,UAAM,QAAQ,KACX,MAAM,GAAG,EACT;AAAA,MACC,CAAC,KAAK,QAAS,MAAkC,GAAG;AAAA,MACpD;AAAA,IACF;AACF,QAAI,UAAU,QAAW;AACvB,aAAO,IAAI,IAAI;AAAA,IACjB;AAAA,EACF;AAEA,SAAO;AACT;AAEA,IAAO,gBAAQ;","names":[]}
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$meta": {
|
|
3
|
+
"package": "@walkeros/destination-demo",
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"type": "destination"
|
|
6
|
+
},
|
|
7
|
+
"schemas": {
|
|
8
|
+
"mapping": {
|
|
9
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {},
|
|
12
|
+
"additionalProperties": false
|
|
13
|
+
},
|
|
14
|
+
"settings": {
|
|
15
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"name": {
|
|
19
|
+
"description": "Display name used in log output prefix",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"values": {
|
|
23
|
+
"description": "Dot-notation paths to extract from event (e.g. \"data.title\"). If omitted, logs full event",
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"examples": {
|
|
34
|
+
"env": {
|
|
35
|
+
"init": {},
|
|
36
|
+
"push": {
|
|
37
|
+
"log": {
|
|
38
|
+
"$code": "()=>{}"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"simulation": [
|
|
42
|
+
"call:log"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"step": {
|
|
46
|
+
"orderComplete": {
|
|
47
|
+
"in": {
|
|
48
|
+
"name": "order complete",
|
|
49
|
+
"data": {
|
|
50
|
+
"id": "0rd3r1d",
|
|
51
|
+
"currency": "EUR",
|
|
52
|
+
"shipping": 5.22,
|
|
53
|
+
"taxes": 73.76,
|
|
54
|
+
"total": 555
|
|
55
|
+
},
|
|
56
|
+
"context": {
|
|
57
|
+
"shopping": [
|
|
58
|
+
"complete",
|
|
59
|
+
0
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"globals": {
|
|
63
|
+
"pagegroup": "shop"
|
|
64
|
+
},
|
|
65
|
+
"custom": {
|
|
66
|
+
"completely": "random"
|
|
67
|
+
},
|
|
68
|
+
"user": {
|
|
69
|
+
"id": "us3r",
|
|
70
|
+
"device": "c00k13",
|
|
71
|
+
"session": "s3ss10n"
|
|
72
|
+
},
|
|
73
|
+
"nested": [
|
|
74
|
+
{
|
|
75
|
+
"entity": "product",
|
|
76
|
+
"data": {
|
|
77
|
+
"id": "ers",
|
|
78
|
+
"name": "Everyday Ruck Snack",
|
|
79
|
+
"color": "black",
|
|
80
|
+
"size": "l",
|
|
81
|
+
"price": 420
|
|
82
|
+
},
|
|
83
|
+
"context": {
|
|
84
|
+
"shopping": [
|
|
85
|
+
"complete",
|
|
86
|
+
0
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"nested": []
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"entity": "product",
|
|
93
|
+
"data": {
|
|
94
|
+
"id": "cc",
|
|
95
|
+
"name": "Cool Cap",
|
|
96
|
+
"size": "one size",
|
|
97
|
+
"price": 42
|
|
98
|
+
},
|
|
99
|
+
"context": {
|
|
100
|
+
"shopping": [
|
|
101
|
+
"complete",
|
|
102
|
+
0
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"nested": []
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"entity": "gift",
|
|
109
|
+
"data": {
|
|
110
|
+
"name": "Surprise"
|
|
111
|
+
},
|
|
112
|
+
"context": {
|
|
113
|
+
"shopping": [
|
|
114
|
+
"complete",
|
|
115
|
+
0
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"nested": []
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"consent": {
|
|
122
|
+
"functional": true
|
|
123
|
+
},
|
|
124
|
+
"id": "1700000901-gr0up-1",
|
|
125
|
+
"trigger": "load",
|
|
126
|
+
"entity": "order",
|
|
127
|
+
"action": "complete",
|
|
128
|
+
"timestamp": 1700000901,
|
|
129
|
+
"timing": 3.14,
|
|
130
|
+
"group": "gr0up",
|
|
131
|
+
"count": 1,
|
|
132
|
+
"version": {
|
|
133
|
+
"source": "2.0.1",
|
|
134
|
+
"tagging": 1
|
|
135
|
+
},
|
|
136
|
+
"source": {
|
|
137
|
+
"type": "web",
|
|
138
|
+
"id": "https://localhost:80",
|
|
139
|
+
"previous_id": "http://remotehost:9001"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"mapping": {},
|
|
143
|
+
"out": {
|
|
144
|
+
"name": "order complete",
|
|
145
|
+
"data": {
|
|
146
|
+
"id": "0rd3r1d",
|
|
147
|
+
"currency": "EUR",
|
|
148
|
+
"shipping": 5.22,
|
|
149
|
+
"taxes": 73.76,
|
|
150
|
+
"total": 555
|
|
151
|
+
},
|
|
152
|
+
"context": {
|
|
153
|
+
"shopping": [
|
|
154
|
+
"complete",
|
|
155
|
+
0
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"globals": {
|
|
159
|
+
"pagegroup": "shop"
|
|
160
|
+
},
|
|
161
|
+
"custom": {
|
|
162
|
+
"completely": "random"
|
|
163
|
+
},
|
|
164
|
+
"user": {
|
|
165
|
+
"id": "us3r",
|
|
166
|
+
"device": "c00k13",
|
|
167
|
+
"session": "s3ss10n"
|
|
168
|
+
},
|
|
169
|
+
"nested": [
|
|
170
|
+
{
|
|
171
|
+
"entity": "product",
|
|
172
|
+
"data": {
|
|
173
|
+
"id": "ers",
|
|
174
|
+
"name": "Everyday Ruck Snack",
|
|
175
|
+
"color": "black",
|
|
176
|
+
"size": "l",
|
|
177
|
+
"price": 420
|
|
178
|
+
},
|
|
179
|
+
"context": {
|
|
180
|
+
"shopping": [
|
|
181
|
+
"complete",
|
|
182
|
+
0
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"nested": []
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"entity": "product",
|
|
189
|
+
"data": {
|
|
190
|
+
"id": "cc",
|
|
191
|
+
"name": "Cool Cap",
|
|
192
|
+
"size": "one size",
|
|
193
|
+
"price": 42
|
|
194
|
+
},
|
|
195
|
+
"context": {
|
|
196
|
+
"shopping": [
|
|
197
|
+
"complete",
|
|
198
|
+
0
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"nested": []
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"entity": "gift",
|
|
205
|
+
"data": {
|
|
206
|
+
"name": "Surprise"
|
|
207
|
+
},
|
|
208
|
+
"context": {
|
|
209
|
+
"shopping": [
|
|
210
|
+
"complete",
|
|
211
|
+
0
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
"nested": []
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"consent": {
|
|
218
|
+
"functional": true
|
|
219
|
+
},
|
|
220
|
+
"id": "1700000901-gr0up-1",
|
|
221
|
+
"trigger": "load",
|
|
222
|
+
"entity": "order",
|
|
223
|
+
"action": "complete",
|
|
224
|
+
"timestamp": 1700000901,
|
|
225
|
+
"timing": 3.14,
|
|
226
|
+
"group": "gr0up",
|
|
227
|
+
"count": 1,
|
|
228
|
+
"version": {
|
|
229
|
+
"source": "2.0.1",
|
|
230
|
+
"tagging": 1
|
|
231
|
+
},
|
|
232
|
+
"source": {
|
|
233
|
+
"type": "web",
|
|
234
|
+
"id": "https://localhost:80",
|
|
235
|
+
"previous_id": "http://remotehost:9001"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"pageView": {
|
|
240
|
+
"in": {
|
|
241
|
+
"name": "page view",
|
|
242
|
+
"data": {
|
|
243
|
+
"domain": "www.example.com",
|
|
244
|
+
"title": "walkerOS documentation",
|
|
245
|
+
"referrer": "https://www.walkeros.io/",
|
|
246
|
+
"search": "?foo=bar",
|
|
247
|
+
"hash": "#hash",
|
|
248
|
+
"id": "/docs/"
|
|
249
|
+
},
|
|
250
|
+
"context": {
|
|
251
|
+
"dev": [
|
|
252
|
+
"test",
|
|
253
|
+
1
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
"globals": {
|
|
257
|
+
"pagegroup": "docs"
|
|
258
|
+
},
|
|
259
|
+
"custom": {
|
|
260
|
+
"completely": "random"
|
|
261
|
+
},
|
|
262
|
+
"user": {
|
|
263
|
+
"id": "us3r",
|
|
264
|
+
"device": "c00k13",
|
|
265
|
+
"session": "s3ss10n"
|
|
266
|
+
},
|
|
267
|
+
"nested": [
|
|
268
|
+
{
|
|
269
|
+
"entity": "child",
|
|
270
|
+
"data": {
|
|
271
|
+
"is": "subordinated"
|
|
272
|
+
},
|
|
273
|
+
"nested": [],
|
|
274
|
+
"context": {
|
|
275
|
+
"element": [
|
|
276
|
+
"child",
|
|
277
|
+
0
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"consent": {
|
|
283
|
+
"functional": true
|
|
284
|
+
},
|
|
285
|
+
"id": "1700000900-gr0up-1",
|
|
286
|
+
"trigger": "load",
|
|
287
|
+
"entity": "page",
|
|
288
|
+
"action": "view",
|
|
289
|
+
"timestamp": 1700000900,
|
|
290
|
+
"timing": 3.14,
|
|
291
|
+
"group": "gr0up",
|
|
292
|
+
"count": 1,
|
|
293
|
+
"version": {
|
|
294
|
+
"source": "2.0.1",
|
|
295
|
+
"tagging": 1
|
|
296
|
+
},
|
|
297
|
+
"source": {
|
|
298
|
+
"type": "web",
|
|
299
|
+
"id": "https://localhost:80",
|
|
300
|
+
"previous_id": "http://remotehost:9001"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"mapping": {},
|
|
304
|
+
"out": {
|
|
305
|
+
"name": "page view",
|
|
306
|
+
"data": {
|
|
307
|
+
"domain": "www.example.com",
|
|
308
|
+
"title": "walkerOS documentation",
|
|
309
|
+
"referrer": "https://www.walkeros.io/",
|
|
310
|
+
"search": "?foo=bar",
|
|
311
|
+
"hash": "#hash",
|
|
312
|
+
"id": "/docs/"
|
|
313
|
+
},
|
|
314
|
+
"context": {
|
|
315
|
+
"dev": [
|
|
316
|
+
"test",
|
|
317
|
+
1
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"globals": {
|
|
321
|
+
"pagegroup": "docs"
|
|
322
|
+
},
|
|
323
|
+
"custom": {
|
|
324
|
+
"completely": "random"
|
|
325
|
+
},
|
|
326
|
+
"user": {
|
|
327
|
+
"id": "us3r",
|
|
328
|
+
"device": "c00k13",
|
|
329
|
+
"session": "s3ss10n"
|
|
330
|
+
},
|
|
331
|
+
"nested": [
|
|
332
|
+
{
|
|
333
|
+
"entity": "child",
|
|
334
|
+
"data": {
|
|
335
|
+
"is": "subordinated"
|
|
336
|
+
},
|
|
337
|
+
"nested": [],
|
|
338
|
+
"context": {
|
|
339
|
+
"element": [
|
|
340
|
+
"child",
|
|
341
|
+
0
|
|
342
|
+
]
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
],
|
|
346
|
+
"consent": {
|
|
347
|
+
"functional": true
|
|
348
|
+
},
|
|
349
|
+
"id": "1700000900-gr0up-1",
|
|
350
|
+
"trigger": "load",
|
|
351
|
+
"entity": "page",
|
|
352
|
+
"action": "view",
|
|
353
|
+
"timestamp": 1700000900,
|
|
354
|
+
"timing": 3.14,
|
|
355
|
+
"group": "gr0up",
|
|
356
|
+
"count": 1,
|
|
357
|
+
"version": {
|
|
358
|
+
"source": "2.0.1",
|
|
359
|
+
"tagging": 1
|
|
360
|
+
},
|
|
361
|
+
"source": {
|
|
362
|
+
"type": "web",
|
|
363
|
+
"id": "https://localhost:80",
|
|
364
|
+
"previous_id": "http://remotehost:9001"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/destination-demo",
|
|
3
3
|
"description": "Demo destination for walkerOS - logs events to console",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"walkerOS": {
|
|
10
|
+
"type": "destination"
|
|
11
|
+
},
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
14
|
"types": "./dist/index.d.ts",
|
|
12
15
|
"import": "./dist/index.mjs",
|
|
13
16
|
"require": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./dev": {
|
|
19
|
+
"types": "./dist/dev.d.ts",
|
|
20
|
+
"import": "./dist/dev.mjs",
|
|
21
|
+
"require": "./dist/dev.js"
|
|
14
22
|
}
|
|
15
23
|
},
|
|
16
24
|
"files": [
|
|
@@ -25,11 +33,11 @@
|
|
|
25
33
|
"test": "jest"
|
|
26
34
|
},
|
|
27
35
|
"dependencies": {
|
|
28
|
-
"@walkeros/core": "^2.
|
|
36
|
+
"@walkeros/core": "^2.1.0"
|
|
29
37
|
},
|
|
30
38
|
"repository": {
|
|
31
39
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|
|
32
|
-
"directory": "
|
|
40
|
+
"directory": "packages/web/destinations/demo"
|
|
33
41
|
},
|
|
34
42
|
"author": "elbwalker <hello@elbwalker.com>",
|
|
35
43
|
"homepage": "https://github.com/elbwalker/walkerOS#readme",
|