@walkeros/web-destination-piwikpro 0.3.0 → 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/dev.d.mts +114 -0
- package/dist/dev.d.ts +114 -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.browser.js +1 -1
- package/dist/index.d.mts +15 -120
- package/dist/index.d.ts +15 -120
- package/dist/index.es5.js +1 -1
- 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/package.json +8 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { Destination as Destination$1, Mapping as Mapping$
|
|
1
|
+
import { Destination as Destination$1, Mapping as Mapping$1 } from '@walkeros/core';
|
|
2
2
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
3
|
-
import * as zod_to_json_schema from 'zod-to-json-schema';
|
|
4
3
|
|
|
5
4
|
declare global {
|
|
6
5
|
interface Window {
|
|
7
6
|
_paq?: Array<unknown>;
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
|
-
interface Settings
|
|
9
|
+
interface Settings {
|
|
11
10
|
appId: string;
|
|
12
11
|
linkTracking?: boolean;
|
|
13
12
|
url: string;
|
|
14
13
|
}
|
|
15
|
-
interface Mapping
|
|
14
|
+
interface Mapping {
|
|
16
15
|
goalId?: string;
|
|
17
16
|
goalValue?: string;
|
|
18
17
|
}
|
|
@@ -32,132 +31,28 @@ interface Env extends DestinationWeb.Env {
|
|
|
32
31
|
};
|
|
33
32
|
};
|
|
34
33
|
}
|
|
35
|
-
type Types = Destination$1.Types<Settings
|
|
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$
|
|
39
|
-
type Rules = Mapping$
|
|
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
|
|
45
|
-
type
|
|
46
|
-
type
|
|
47
|
-
type
|
|
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
|
-
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
appId: string;
|
|
117
|
-
url: string;
|
|
118
|
-
linkTracking: boolean;
|
|
119
|
-
}, {
|
|
120
|
-
appId: string;
|
|
121
|
-
url: string;
|
|
122
|
-
linkTracking?: boolean | undefined;
|
|
123
|
-
}>;
|
|
124
|
-
type Settings = z.infer<typeof SettingsSchema>;
|
|
125
|
-
|
|
126
|
-
declare const MappingSchema: z.ZodObject<{
|
|
127
|
-
goalId: z.ZodString;
|
|
128
|
-
goalValue: z.ZodOptional<z.ZodString>;
|
|
129
|
-
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
goalId: string;
|
|
131
|
-
goalValue?: string | undefined;
|
|
132
|
-
}, {
|
|
133
|
-
goalId: string;
|
|
134
|
-
goalValue?: string | undefined;
|
|
135
|
-
}>;
|
|
136
|
-
type Mapping = z.infer<typeof MappingSchema>;
|
|
137
|
-
|
|
138
|
-
declare const settings: zod_to_json_schema.JsonSchema7Type & {
|
|
139
|
-
$schema?: string | undefined;
|
|
140
|
-
definitions?: {
|
|
141
|
-
[key: string]: zod_to_json_schema.JsonSchema7Type;
|
|
142
|
-
} | undefined;
|
|
143
|
-
};
|
|
144
|
-
declare const mapping: zod_to_json_schema.JsonSchema7Type & {
|
|
145
|
-
$schema?: string | undefined;
|
|
146
|
-
definitions?: {
|
|
147
|
-
[key: string]: zod_to_json_schema.JsonSchema7Type;
|
|
148
|
-
} | undefined;
|
|
149
|
-
};
|
|
150
|
-
|
|
43
|
+
type index_Config = Config;
|
|
44
|
+
type index_Destination = Destination;
|
|
45
|
+
type index_Dimensions = Dimensions;
|
|
46
|
+
type index_Env = Env;
|
|
151
47
|
type index_Mapping = Mapping;
|
|
152
|
-
|
|
48
|
+
type index_Rule = Rule;
|
|
49
|
+
type index_Rules = Rules;
|
|
153
50
|
type index_Settings = Settings;
|
|
154
|
-
|
|
155
|
-
declare const index_mapping: typeof mapping;
|
|
156
|
-
declare const index_settings: typeof settings;
|
|
51
|
+
type index_Types = Types;
|
|
157
52
|
declare namespace index {
|
|
158
|
-
export {
|
|
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 };
|
|
159
54
|
}
|
|
160
55
|
|
|
161
56
|
declare const destinationPiwikPro: Destination;
|
|
162
57
|
|
|
163
|
-
export { index
|
|
58
|
+
export { index as DestinationPiwikPro, destinationPiwikPro as default, destinationPiwikPro };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { Destination as Destination$1, Mapping as Mapping$
|
|
1
|
+
import { Destination as Destination$1, Mapping as Mapping$1 } from '@walkeros/core';
|
|
2
2
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
3
|
-
import * as zod_to_json_schema from 'zod-to-json-schema';
|
|
4
3
|
|
|
5
4
|
declare global {
|
|
6
5
|
interface Window {
|
|
7
6
|
_paq?: Array<unknown>;
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
|
-
interface Settings
|
|
9
|
+
interface Settings {
|
|
11
10
|
appId: string;
|
|
12
11
|
linkTracking?: boolean;
|
|
13
12
|
url: string;
|
|
14
13
|
}
|
|
15
|
-
interface Mapping
|
|
14
|
+
interface Mapping {
|
|
16
15
|
goalId?: string;
|
|
17
16
|
goalValue?: string;
|
|
18
17
|
}
|
|
@@ -32,132 +31,28 @@ interface Env extends DestinationWeb.Env {
|
|
|
32
31
|
};
|
|
33
32
|
};
|
|
34
33
|
}
|
|
35
|
-
type Types = Destination$1.Types<Settings
|
|
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$
|
|
39
|
-
type Rules = Mapping$
|
|
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
|
|
45
|
-
type
|
|
46
|
-
type
|
|
47
|
-
type
|
|
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
|
-
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
appId: string;
|
|
117
|
-
url: string;
|
|
118
|
-
linkTracking: boolean;
|
|
119
|
-
}, {
|
|
120
|
-
appId: string;
|
|
121
|
-
url: string;
|
|
122
|
-
linkTracking?: boolean | undefined;
|
|
123
|
-
}>;
|
|
124
|
-
type Settings = z.infer<typeof SettingsSchema>;
|
|
125
|
-
|
|
126
|
-
declare const MappingSchema: z.ZodObject<{
|
|
127
|
-
goalId: z.ZodString;
|
|
128
|
-
goalValue: z.ZodOptional<z.ZodString>;
|
|
129
|
-
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
goalId: string;
|
|
131
|
-
goalValue?: string | undefined;
|
|
132
|
-
}, {
|
|
133
|
-
goalId: string;
|
|
134
|
-
goalValue?: string | undefined;
|
|
135
|
-
}>;
|
|
136
|
-
type Mapping = z.infer<typeof MappingSchema>;
|
|
137
|
-
|
|
138
|
-
declare const settings: zod_to_json_schema.JsonSchema7Type & {
|
|
139
|
-
$schema?: string | undefined;
|
|
140
|
-
definitions?: {
|
|
141
|
-
[key: string]: zod_to_json_schema.JsonSchema7Type;
|
|
142
|
-
} | undefined;
|
|
143
|
-
};
|
|
144
|
-
declare const mapping: zod_to_json_schema.JsonSchema7Type & {
|
|
145
|
-
$schema?: string | undefined;
|
|
146
|
-
definitions?: {
|
|
147
|
-
[key: string]: zod_to_json_schema.JsonSchema7Type;
|
|
148
|
-
} | undefined;
|
|
149
|
-
};
|
|
150
|
-
|
|
43
|
+
type index_Config = Config;
|
|
44
|
+
type index_Destination = Destination;
|
|
45
|
+
type index_Dimensions = Dimensions;
|
|
46
|
+
type index_Env = Env;
|
|
151
47
|
type index_Mapping = Mapping;
|
|
152
|
-
|
|
48
|
+
type index_Rule = Rule;
|
|
49
|
+
type index_Rules = Rules;
|
|
153
50
|
type index_Settings = Settings;
|
|
154
|
-
|
|
155
|
-
declare const index_mapping: typeof mapping;
|
|
156
|
-
declare const index_settings: typeof settings;
|
|
51
|
+
type index_Types = Types;
|
|
157
52
|
declare namespace index {
|
|
158
|
-
export {
|
|
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 };
|
|
159
54
|
}
|
|
160
55
|
|
|
161
56
|
declare const destinationPiwikPro: Destination;
|
|
162
57
|
|
|
163
|
-
export { index
|
|
58
|
+
export { index as DestinationPiwikPro, destinationPiwikPro as default, destinationPiwikPro };
|