@walkeros/web-destination-piwikpro 0.3.1 → 0.4.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/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
- import * as _walkeros_core from '@walkeros/core';
2
- import { Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
1
+ import { Destination as Destination$1, Mapping as Mapping$1 } from '@walkeros/core';
3
2
  import { DestinationWeb } from '@walkeros/web-core';
4
3
 
5
4
  declare global {
@@ -7,12 +6,12 @@ declare global {
7
6
  _paq?: Array<unknown>;
8
7
  }
9
8
  }
10
- interface Settings$1 {
9
+ interface Settings {
11
10
  appId: string;
12
11
  linkTracking?: boolean;
13
12
  url: string;
14
13
  }
15
- interface Mapping$1 {
14
+ interface Mapping {
16
15
  goalId?: string;
17
16
  goalValue?: string;
18
17
  }
@@ -32,108 +31,28 @@ interface Env extends DestinationWeb.Env {
32
31
  };
33
32
  };
34
33
  }
35
- type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
34
+ type Types = Destination$1.Types<Settings, Mapping, Env>;
36
35
  type Destination = DestinationWeb.Destination<Types>;
37
36
  type Config = DestinationWeb.Config<Types>;
38
- type Rule = Mapping$2.Rule<Mapping$1>;
39
- type Rules = Mapping$2.Rules<Rule>;
37
+ type Rule = Mapping$1.Rule<Mapping>;
38
+ type Rules = Mapping$1.Rules<Rule>;
40
39
  interface Dimensions {
41
40
  [i: number]: string;
42
41
  }
43
42
 
44
- type index$2_Config = Config;
45
- type index$2_Destination = Destination;
46
- type index$2_Dimensions = Dimensions;
47
- type index$2_Env = Env;
48
- type index$2_Rule = Rule;
49
- type index$2_Rules = Rules;
50
- type index$2_Types = Types;
51
- declare namespace index$2 {
52
- export type { index$2_Config as Config, index$2_Destination as Destination, index$2_Dimensions as Dimensions, index$2_Env as Env, Mapping$1 as Mapping, index$2_Rule as Rule, index$2_Rules as Rules, Settings$1 as Settings, index$2_Types as Types };
53
- }
54
-
55
- /**
56
- * Example environment configurations for PiwikPro destination
57
- *
58
- * These environments provide standardized mock structures for testing
59
- * and development without requiring external dependencies.
60
- */
61
- declare const init: Env | undefined;
62
- declare const push: Env;
63
-
64
- declare const env_init: typeof init;
65
- declare const env_push: typeof push;
66
- declare namespace env {
67
- export { env_init as init, env_push as push };
68
- }
69
-
70
- declare function ecommerceOrder$1(): unknown[];
71
- declare function ecommerceAddToCart$1(): unknown[];
72
- declare function ecommerceProductDetailView$1(): unknown[];
73
- declare function ecommerceCartUpdate$1(): unknown[];
74
-
75
- declare namespace events {
76
- export { ecommerceAddToCart$1 as ecommerceAddToCart, ecommerceCartUpdate$1 as ecommerceCartUpdate, ecommerceOrder$1 as ecommerceOrder, ecommerceProductDetailView$1 as ecommerceProductDetailView };
77
- }
78
-
79
- declare const ecommerceOrder: Rule;
80
- declare const ecommerceAddToCart: Rule;
81
- declare const ecommerceProductDetailView: Rule;
82
- declare const ecommerceCartUpdate: Rule;
83
- declare const config: {
84
- order: {
85
- complete: Rule;
86
- };
87
- product: {
88
- add: Rule;
89
- view: Rule;
90
- };
91
- cart: {
92
- view: Rule;
93
- };
94
- };
95
-
96
- declare const mapping$1_config: typeof config;
97
- declare const mapping$1_ecommerceAddToCart: typeof ecommerceAddToCart;
98
- declare const mapping$1_ecommerceCartUpdate: typeof ecommerceCartUpdate;
99
- declare const mapping$1_ecommerceOrder: typeof ecommerceOrder;
100
- declare const mapping$1_ecommerceProductDetailView: typeof ecommerceProductDetailView;
101
- declare namespace mapping$1 {
102
- export { mapping$1_config as config, mapping$1_ecommerceAddToCart as ecommerceAddToCart, mapping$1_ecommerceCartUpdate as ecommerceCartUpdate, mapping$1_ecommerceOrder as ecommerceOrder, mapping$1_ecommerceProductDetailView as ecommerceProductDetailView };
103
- }
104
-
105
- declare const index$1_env: typeof env;
106
- declare const index$1_events: typeof events;
107
- declare namespace index$1 {
108
- export { index$1_env as env, index$1_events as events, mapping$1 as mapping };
109
- }
110
-
111
- declare const SettingsSchema: z.ZodObject<{
112
- appId: z.ZodString;
113
- url: z.ZodString;
114
- linkTracking: z.ZodDefault<z.ZodBoolean>;
115
- }, z.core.$strip>;
116
- type Settings = z.infer<typeof SettingsSchema>;
117
-
118
- declare const MappingSchema: z.ZodObject<{
119
- goalId: z.ZodString;
120
- goalValue: z.ZodOptional<z.ZodString>;
121
- }, z.core.$strip>;
122
- type Mapping = z.infer<typeof MappingSchema>;
123
-
124
- declare const settings: _walkeros_core.JSONSchema;
125
- declare const mapping: _walkeros_core.JSONSchema;
126
-
43
+ type index_Config = Config;
44
+ type index_Destination = Destination;
45
+ type index_Dimensions = Dimensions;
46
+ type index_Env = Env;
127
47
  type index_Mapping = Mapping;
128
- declare const index_MappingSchema: typeof MappingSchema;
48
+ type index_Rule = Rule;
49
+ type index_Rules = Rules;
129
50
  type index_Settings = Settings;
130
- declare const index_SettingsSchema: typeof SettingsSchema;
131
- declare const index_mapping: typeof mapping;
132
- declare const index_settings: typeof settings;
51
+ type index_Types = Types;
133
52
  declare namespace index {
134
- export { type index_Mapping as Mapping, index_MappingSchema as MappingSchema, type index_Settings as Settings, index_SettingsSchema as SettingsSchema, index_mapping as mapping, index_settings as settings };
53
+ export type { index_Config as Config, index_Destination as Destination, index_Dimensions as Dimensions, index_Env as Env, index_Mapping as Mapping, index_Rule as Rule, index_Rules as Rules, index_Settings as Settings, index_Types as Types };
135
54
  }
136
55
 
137
56
  declare const destinationPiwikPro: Destination;
138
57
 
139
- export { index$2 as DestinationPiwikPro, destinationPiwikPro as default, destinationPiwikPro, index$1 as examples, index as schemas };
58
+ export { index as DestinationPiwikPro, destinationPiwikPro as default, destinationPiwikPro };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import * as _walkeros_core from '@walkeros/core';
2
- import { Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
1
+ import { Destination as Destination$1, Mapping as Mapping$1 } from '@walkeros/core';
3
2
  import { DestinationWeb } from '@walkeros/web-core';
4
3
 
5
4
  declare global {
@@ -7,12 +6,12 @@ declare global {
7
6
  _paq?: Array<unknown>;
8
7
  }
9
8
  }
10
- interface Settings$1 {
9
+ interface Settings {
11
10
  appId: string;
12
11
  linkTracking?: boolean;
13
12
  url: string;
14
13
  }
15
- interface Mapping$1 {
14
+ interface Mapping {
16
15
  goalId?: string;
17
16
  goalValue?: string;
18
17
  }
@@ -32,108 +31,28 @@ interface Env extends DestinationWeb.Env {
32
31
  };
33
32
  };
34
33
  }
35
- type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
34
+ type Types = Destination$1.Types<Settings, Mapping, Env>;
36
35
  type Destination = DestinationWeb.Destination<Types>;
37
36
  type Config = DestinationWeb.Config<Types>;
38
- type Rule = Mapping$2.Rule<Mapping$1>;
39
- type Rules = Mapping$2.Rules<Rule>;
37
+ type Rule = Mapping$1.Rule<Mapping>;
38
+ type Rules = Mapping$1.Rules<Rule>;
40
39
  interface Dimensions {
41
40
  [i: number]: string;
42
41
  }
43
42
 
44
- type index$2_Config = Config;
45
- type index$2_Destination = Destination;
46
- type index$2_Dimensions = Dimensions;
47
- type index$2_Env = Env;
48
- type index$2_Rule = Rule;
49
- type index$2_Rules = Rules;
50
- type index$2_Types = Types;
51
- declare namespace index$2 {
52
- export type { index$2_Config as Config, index$2_Destination as Destination, index$2_Dimensions as Dimensions, index$2_Env as Env, Mapping$1 as Mapping, index$2_Rule as Rule, index$2_Rules as Rules, Settings$1 as Settings, index$2_Types as Types };
53
- }
54
-
55
- /**
56
- * Example environment configurations for PiwikPro destination
57
- *
58
- * These environments provide standardized mock structures for testing
59
- * and development without requiring external dependencies.
60
- */
61
- declare const init: Env | undefined;
62
- declare const push: Env;
63
-
64
- declare const env_init: typeof init;
65
- declare const env_push: typeof push;
66
- declare namespace env {
67
- export { env_init as init, env_push as push };
68
- }
69
-
70
- declare function ecommerceOrder$1(): unknown[];
71
- declare function ecommerceAddToCart$1(): unknown[];
72
- declare function ecommerceProductDetailView$1(): unknown[];
73
- declare function ecommerceCartUpdate$1(): unknown[];
74
-
75
- declare namespace events {
76
- export { ecommerceAddToCart$1 as ecommerceAddToCart, ecommerceCartUpdate$1 as ecommerceCartUpdate, ecommerceOrder$1 as ecommerceOrder, ecommerceProductDetailView$1 as ecommerceProductDetailView };
77
- }
78
-
79
- declare const ecommerceOrder: Rule;
80
- declare const ecommerceAddToCart: Rule;
81
- declare const ecommerceProductDetailView: Rule;
82
- declare const ecommerceCartUpdate: Rule;
83
- declare const config: {
84
- order: {
85
- complete: Rule;
86
- };
87
- product: {
88
- add: Rule;
89
- view: Rule;
90
- };
91
- cart: {
92
- view: Rule;
93
- };
94
- };
95
-
96
- declare const mapping$1_config: typeof config;
97
- declare const mapping$1_ecommerceAddToCart: typeof ecommerceAddToCart;
98
- declare const mapping$1_ecommerceCartUpdate: typeof ecommerceCartUpdate;
99
- declare const mapping$1_ecommerceOrder: typeof ecommerceOrder;
100
- declare const mapping$1_ecommerceProductDetailView: typeof ecommerceProductDetailView;
101
- declare namespace mapping$1 {
102
- export { mapping$1_config as config, mapping$1_ecommerceAddToCart as ecommerceAddToCart, mapping$1_ecommerceCartUpdate as ecommerceCartUpdate, mapping$1_ecommerceOrder as ecommerceOrder, mapping$1_ecommerceProductDetailView as ecommerceProductDetailView };
103
- }
104
-
105
- declare const index$1_env: typeof env;
106
- declare const index$1_events: typeof events;
107
- declare namespace index$1 {
108
- export { index$1_env as env, index$1_events as events, mapping$1 as mapping };
109
- }
110
-
111
- declare const SettingsSchema: z.ZodObject<{
112
- appId: z.ZodString;
113
- url: z.ZodString;
114
- linkTracking: z.ZodDefault<z.ZodBoolean>;
115
- }, z.core.$strip>;
116
- type Settings = z.infer<typeof SettingsSchema>;
117
-
118
- declare const MappingSchema: z.ZodObject<{
119
- goalId: z.ZodString;
120
- goalValue: z.ZodOptional<z.ZodString>;
121
- }, z.core.$strip>;
122
- type Mapping = z.infer<typeof MappingSchema>;
123
-
124
- declare const settings: _walkeros_core.JSONSchema;
125
- declare const mapping: _walkeros_core.JSONSchema;
126
-
43
+ type index_Config = Config;
44
+ type index_Destination = Destination;
45
+ type index_Dimensions = Dimensions;
46
+ type index_Env = Env;
127
47
  type index_Mapping = Mapping;
128
- declare const index_MappingSchema: typeof MappingSchema;
48
+ type index_Rule = Rule;
49
+ type index_Rules = Rules;
129
50
  type index_Settings = Settings;
130
- declare const index_SettingsSchema: typeof SettingsSchema;
131
- declare const index_mapping: typeof mapping;
132
- declare const index_settings: typeof settings;
51
+ type index_Types = Types;
133
52
  declare namespace index {
134
- export { type index_Mapping as Mapping, index_MappingSchema as MappingSchema, type index_Settings as Settings, index_SettingsSchema as SettingsSchema, index_mapping as mapping, index_settings as settings };
53
+ export type { index_Config as Config, index_Destination as Destination, index_Dimensions as Dimensions, index_Env as Env, index_Mapping as Mapping, index_Rule as Rule, index_Rules as Rules, index_Settings as Settings, index_Types as Types };
135
54
  }
136
55
 
137
56
  declare const destinationPiwikPro: Destination;
138
57
 
139
- export { index$2 as DestinationPiwikPro, destinationPiwikPro as default, destinationPiwikPro, index$1 as examples, index as schemas };
58
+ export { index as DestinationPiwikPro, destinationPiwikPro as default, destinationPiwikPro };