@walkeros/web-destination-piwikpro 0.4.2 → 0.5.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <p align="left">
2
- <a href="https://elbwalker.com">
3
- <img title="elbwalker" src="https://www.elbwalker.com/img/elbwalker_logo.png" width="256px"/>
2
+ <a href="https://www.walkeros.io">
3
+ <img title="elbwalker" src="https://www.walkeros.io/img/elbwalker_logo.png" width="256px"/>
4
4
  </a>
5
5
  </p>
6
6
 
@@ -33,12 +33,17 @@ Here's a basic example of how to use the Piwik PRO destination:
33
33
  import { startFlow } from '@walkeros/collector';
34
34
  import { destinationPiwikPro } from '@walkeros/web-destination-piwikpro';
35
35
 
36
- const { elb } = await startFlow();
37
-
38
- elb('walker destination', destinationPiwikPro, {
39
- settings: {
40
- appId: 'XXX-XXX-XXX-XXX-XXX', // Required
41
- url: 'https://your_account_name.piwik.pro/', // Required
36
+ await startFlow({
37
+ destinations: {
38
+ piwikpro: {
39
+ code: destinationPiwikPro,
40
+ config: {
41
+ settings: {
42
+ appId: 'XXX-XXX-XXX-XXX-XXX', // Required
43
+ url: 'https://your_account_name.piwik.pro/', // Required
44
+ },
45
+ },
46
+ },
42
47
  },
43
48
  });
44
49
  ```
package/dist/dev.d.mts ADDED
@@ -0,0 +1,114 @@
1
+ import * as _walkeros_core_dev from '@walkeros/core/dev';
2
+ import { z } from '@walkeros/core/dev';
3
+ import { Mapping as Mapping$2 } from '@walkeros/core';
4
+ import { DestinationWeb } from '@walkeros/web-core';
5
+
6
+ declare const SettingsSchema: z.ZodObject<{
7
+ appId: z.ZodString;
8
+ url: z.ZodString;
9
+ linkTracking: z.ZodDefault<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ type Settings = z.infer<typeof SettingsSchema>;
12
+
13
+ declare const MappingSchema: z.ZodObject<{
14
+ goalId: z.ZodString;
15
+ goalValue: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ type Mapping$1 = z.infer<typeof MappingSchema>;
18
+
19
+ declare const settings: _walkeros_core_dev.JSONSchema;
20
+ declare const mapping$1: _walkeros_core_dev.JSONSchema;
21
+
22
+ declare const index$1_MappingSchema: typeof MappingSchema;
23
+ type index$1_Settings = Settings;
24
+ declare const index$1_SettingsSchema: typeof SettingsSchema;
25
+ declare const index$1_settings: typeof settings;
26
+ declare namespace index$1 {
27
+ export { type Mapping$1 as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, mapping$1 as mapping, index$1_settings as settings };
28
+ }
29
+
30
+ declare global {
31
+ interface Window {
32
+ _paq?: Array<unknown>;
33
+ }
34
+ }
35
+ interface Mapping {
36
+ goalId?: string;
37
+ goalValue?: string;
38
+ }
39
+ interface Env extends DestinationWeb.Env {
40
+ window: {
41
+ _paq: Array<unknown>;
42
+ };
43
+ document: {
44
+ createElement: (tagName: string) => {
45
+ type: string;
46
+ src: string;
47
+ async?: boolean;
48
+ defer?: boolean;
49
+ };
50
+ head: {
51
+ appendChild: (node: unknown) => void;
52
+ };
53
+ };
54
+ }
55
+ type Rule = Mapping$2.Rule<Mapping>;
56
+
57
+ /**
58
+ * Example environment configurations for PiwikPro destination
59
+ *
60
+ * These environments provide standardized mock structures for testing
61
+ * and development without requiring external dependencies.
62
+ */
63
+ declare const init: Env | undefined;
64
+ declare const push: Env;
65
+
66
+ declare const env_init: typeof init;
67
+ declare const env_push: typeof push;
68
+ declare namespace env {
69
+ export { env_init as init, env_push as push };
70
+ }
71
+
72
+ declare function ecommerceOrder$1(): unknown[];
73
+ declare function ecommerceAddToCart$1(): unknown[];
74
+ declare function ecommerceProductDetailView$1(): unknown[];
75
+ declare function ecommerceCartUpdate$1(): unknown[];
76
+
77
+ declare namespace events {
78
+ export { ecommerceAddToCart$1 as ecommerceAddToCart, ecommerceCartUpdate$1 as ecommerceCartUpdate, ecommerceOrder$1 as ecommerceOrder, ecommerceProductDetailView$1 as ecommerceProductDetailView };
79
+ }
80
+
81
+ declare const ecommerceOrder: Rule;
82
+ declare const ecommerceAddToCart: Rule;
83
+ declare const ecommerceProductDetailView: Rule;
84
+ declare const ecommerceCartUpdate: Rule;
85
+ declare const config: {
86
+ order: {
87
+ complete: Rule;
88
+ };
89
+ product: {
90
+ add: Rule;
91
+ view: Rule;
92
+ };
93
+ cart: {
94
+ view: Rule;
95
+ };
96
+ };
97
+
98
+ declare const mapping_config: typeof config;
99
+ declare const mapping_ecommerceAddToCart: typeof ecommerceAddToCart;
100
+ declare const mapping_ecommerceCartUpdate: typeof ecommerceCartUpdate;
101
+ declare const mapping_ecommerceOrder: typeof ecommerceOrder;
102
+ declare const mapping_ecommerceProductDetailView: typeof ecommerceProductDetailView;
103
+ declare namespace mapping {
104
+ export { mapping_config as config, mapping_ecommerceAddToCart as ecommerceAddToCart, mapping_ecommerceCartUpdate as ecommerceCartUpdate, mapping_ecommerceOrder as ecommerceOrder, mapping_ecommerceProductDetailView as ecommerceProductDetailView };
105
+ }
106
+
107
+ declare const index_env: typeof env;
108
+ declare const index_events: typeof events;
109
+ declare const index_mapping: typeof mapping;
110
+ declare namespace index {
111
+ export { index_env as env, index_events as events, index_mapping as mapping };
112
+ }
113
+
114
+ export { index as examples, index$1 as schemas };
package/dist/dev.d.ts ADDED
@@ -0,0 +1,114 @@
1
+ import * as _walkeros_core_dev from '@walkeros/core/dev';
2
+ import { z } from '@walkeros/core/dev';
3
+ import { Mapping as Mapping$2 } from '@walkeros/core';
4
+ import { DestinationWeb } from '@walkeros/web-core';
5
+
6
+ declare const SettingsSchema: z.ZodObject<{
7
+ appId: z.ZodString;
8
+ url: z.ZodString;
9
+ linkTracking: z.ZodDefault<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ type Settings = z.infer<typeof SettingsSchema>;
12
+
13
+ declare const MappingSchema: z.ZodObject<{
14
+ goalId: z.ZodString;
15
+ goalValue: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ type Mapping$1 = z.infer<typeof MappingSchema>;
18
+
19
+ declare const settings: _walkeros_core_dev.JSONSchema;
20
+ declare const mapping$1: _walkeros_core_dev.JSONSchema;
21
+
22
+ declare const index$1_MappingSchema: typeof MappingSchema;
23
+ type index$1_Settings = Settings;
24
+ declare const index$1_SettingsSchema: typeof SettingsSchema;
25
+ declare const index$1_settings: typeof settings;
26
+ declare namespace index$1 {
27
+ export { type Mapping$1 as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, mapping$1 as mapping, index$1_settings as settings };
28
+ }
29
+
30
+ declare global {
31
+ interface Window {
32
+ _paq?: Array<unknown>;
33
+ }
34
+ }
35
+ interface Mapping {
36
+ goalId?: string;
37
+ goalValue?: string;
38
+ }
39
+ interface Env extends DestinationWeb.Env {
40
+ window: {
41
+ _paq: Array<unknown>;
42
+ };
43
+ document: {
44
+ createElement: (tagName: string) => {
45
+ type: string;
46
+ src: string;
47
+ async?: boolean;
48
+ defer?: boolean;
49
+ };
50
+ head: {
51
+ appendChild: (node: unknown) => void;
52
+ };
53
+ };
54
+ }
55
+ type Rule = Mapping$2.Rule<Mapping>;
56
+
57
+ /**
58
+ * Example environment configurations for PiwikPro destination
59
+ *
60
+ * These environments provide standardized mock structures for testing
61
+ * and development without requiring external dependencies.
62
+ */
63
+ declare const init: Env | undefined;
64
+ declare const push: Env;
65
+
66
+ declare const env_init: typeof init;
67
+ declare const env_push: typeof push;
68
+ declare namespace env {
69
+ export { env_init as init, env_push as push };
70
+ }
71
+
72
+ declare function ecommerceOrder$1(): unknown[];
73
+ declare function ecommerceAddToCart$1(): unknown[];
74
+ declare function ecommerceProductDetailView$1(): unknown[];
75
+ declare function ecommerceCartUpdate$1(): unknown[];
76
+
77
+ declare namespace events {
78
+ export { ecommerceAddToCart$1 as ecommerceAddToCart, ecommerceCartUpdate$1 as ecommerceCartUpdate, ecommerceOrder$1 as ecommerceOrder, ecommerceProductDetailView$1 as ecommerceProductDetailView };
79
+ }
80
+
81
+ declare const ecommerceOrder: Rule;
82
+ declare const ecommerceAddToCart: Rule;
83
+ declare const ecommerceProductDetailView: Rule;
84
+ declare const ecommerceCartUpdate: Rule;
85
+ declare const config: {
86
+ order: {
87
+ complete: Rule;
88
+ };
89
+ product: {
90
+ add: Rule;
91
+ view: Rule;
92
+ };
93
+ cart: {
94
+ view: Rule;
95
+ };
96
+ };
97
+
98
+ declare const mapping_config: typeof config;
99
+ declare const mapping_ecommerceAddToCart: typeof ecommerceAddToCart;
100
+ declare const mapping_ecommerceCartUpdate: typeof ecommerceCartUpdate;
101
+ declare const mapping_ecommerceOrder: typeof ecommerceOrder;
102
+ declare const mapping_ecommerceProductDetailView: typeof ecommerceProductDetailView;
103
+ declare namespace mapping {
104
+ export { mapping_config as config, mapping_ecommerceAddToCart as ecommerceAddToCart, mapping_ecommerceCartUpdate as ecommerceCartUpdate, mapping_ecommerceOrder as ecommerceOrder, mapping_ecommerceProductDetailView as ecommerceProductDetailView };
105
+ }
106
+
107
+ declare const index_env: typeof env;
108
+ declare const index_events: typeof events;
109
+ declare const index_mapping: typeof mapping;
110
+ declare namespace index {
111
+ export { index_env as env, index_events as events, index_mapping as mapping };
112
+ }
113
+
114
+ export { index as examples, index$1 as schemas };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/web-destination-piwikpro",
3
3
  "description": "Piwik PRO destination for walkerOS",
4
- "version": "0.4.2",
4
+ "version": "0.5.0",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -35,8 +35,8 @@
35
35
  "update": "npx npm-check-updates -u && npm update"
36
36
  },
37
37
  "dependencies": {
38
- "@walkeros/core": "0.4.2",
39
- "@walkeros/web-core": "0.4.2"
38
+ "@walkeros/core": "0.5.0",
39
+ "@walkeros/web-core": "0.5.0"
40
40
  },
41
41
  "devDependencies": {},
42
42
  "repository": {