@walkeros/web-destination-plausible 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/dev.d.mts ADDED
@@ -0,0 +1,94 @@
1
+ import * as _walkeros_core_dev from '@walkeros/core/dev';
2
+ import { z } from '@walkeros/core/dev';
3
+ import { WalkerOS, Mapping as Mapping$2 } from '@walkeros/core';
4
+ import { DestinationWeb } from '@walkeros/web-core';
5
+
6
+ declare const SettingsSchema: z.ZodObject<{
7
+ domain: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ type Settings = z.infer<typeof SettingsSchema>;
10
+
11
+ /**
12
+ * Plausible Mapping Schema
13
+ * Plausible has no event-level mapping configuration
14
+ */
15
+ declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
16
+ /**
17
+ * Type inference from MappingSchema
18
+ */
19
+ type Mapping$1 = z.infer<typeof MappingSchema>;
20
+
21
+ declare const settings: _walkeros_core_dev.JSONSchema;
22
+ declare const mapping$1: _walkeros_core_dev.JSONSchema;
23
+
24
+ declare const index$1_MappingSchema: typeof MappingSchema;
25
+ type index$1_Settings = Settings;
26
+ declare const index$1_SettingsSchema: typeof SettingsSchema;
27
+ declare const index$1_settings: typeof settings;
28
+ declare namespace index$1 {
29
+ 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 };
30
+ }
31
+
32
+ declare global {
33
+ interface Window {
34
+ plausible?: Plausible & {
35
+ q?: IArguments[];
36
+ };
37
+ }
38
+ }
39
+ type Plausible = (event: string, options?: {
40
+ props?: WalkerOS.AnyObject;
41
+ }) => void;
42
+ interface Mapping {
43
+ }
44
+ interface Env extends DestinationWeb.Env {
45
+ window: {
46
+ plausible: Plausible & {
47
+ q?: IArguments[];
48
+ };
49
+ };
50
+ }
51
+ type Rule = Mapping$2.Rule<Mapping>;
52
+
53
+ declare const init: Env | undefined;
54
+ declare const push: Env;
55
+
56
+ declare const env_init: typeof init;
57
+ declare const env_push: typeof push;
58
+ declare namespace env {
59
+ export { env_init as init, env_push as push };
60
+ }
61
+
62
+ declare function purchase$1(): unknown[];
63
+ declare function customEvent$1(): unknown[];
64
+
65
+ declare namespace events {
66
+ export { customEvent$1 as customEvent, purchase$1 as purchase };
67
+ }
68
+
69
+ declare const customEvent: Rule;
70
+ declare const purchase: Rule;
71
+ declare const config: {
72
+ entity: {
73
+ action: Rule;
74
+ };
75
+ order: {
76
+ complete: Rule;
77
+ };
78
+ };
79
+
80
+ declare const mapping_config: typeof config;
81
+ declare const mapping_customEvent: typeof customEvent;
82
+ declare const mapping_purchase: typeof purchase;
83
+ declare namespace mapping {
84
+ export { mapping_config as config, mapping_customEvent as customEvent, mapping_purchase as purchase };
85
+ }
86
+
87
+ declare const index_env: typeof env;
88
+ declare const index_events: typeof events;
89
+ declare const index_mapping: typeof mapping;
90
+ declare namespace index {
91
+ export { index_env as env, index_events as events, index_mapping as mapping };
92
+ }
93
+
94
+ export { index as examples, index$1 as schemas };
package/dist/dev.d.ts ADDED
@@ -0,0 +1,94 @@
1
+ import * as _walkeros_core_dev from '@walkeros/core/dev';
2
+ import { z } from '@walkeros/core/dev';
3
+ import { WalkerOS, Mapping as Mapping$2 } from '@walkeros/core';
4
+ import { DestinationWeb } from '@walkeros/web-core';
5
+
6
+ declare const SettingsSchema: z.ZodObject<{
7
+ domain: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ type Settings = z.infer<typeof SettingsSchema>;
10
+
11
+ /**
12
+ * Plausible Mapping Schema
13
+ * Plausible has no event-level mapping configuration
14
+ */
15
+ declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
16
+ /**
17
+ * Type inference from MappingSchema
18
+ */
19
+ type Mapping$1 = z.infer<typeof MappingSchema>;
20
+
21
+ declare const settings: _walkeros_core_dev.JSONSchema;
22
+ declare const mapping$1: _walkeros_core_dev.JSONSchema;
23
+
24
+ declare const index$1_MappingSchema: typeof MappingSchema;
25
+ type index$1_Settings = Settings;
26
+ declare const index$1_SettingsSchema: typeof SettingsSchema;
27
+ declare const index$1_settings: typeof settings;
28
+ declare namespace index$1 {
29
+ 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 };
30
+ }
31
+
32
+ declare global {
33
+ interface Window {
34
+ plausible?: Plausible & {
35
+ q?: IArguments[];
36
+ };
37
+ }
38
+ }
39
+ type Plausible = (event: string, options?: {
40
+ props?: WalkerOS.AnyObject;
41
+ }) => void;
42
+ interface Mapping {
43
+ }
44
+ interface Env extends DestinationWeb.Env {
45
+ window: {
46
+ plausible: Plausible & {
47
+ q?: IArguments[];
48
+ };
49
+ };
50
+ }
51
+ type Rule = Mapping$2.Rule<Mapping>;
52
+
53
+ declare const init: Env | undefined;
54
+ declare const push: Env;
55
+
56
+ declare const env_init: typeof init;
57
+ declare const env_push: typeof push;
58
+ declare namespace env {
59
+ export { env_init as init, env_push as push };
60
+ }
61
+
62
+ declare function purchase$1(): unknown[];
63
+ declare function customEvent$1(): unknown[];
64
+
65
+ declare namespace events {
66
+ export { customEvent$1 as customEvent, purchase$1 as purchase };
67
+ }
68
+
69
+ declare const customEvent: Rule;
70
+ declare const purchase: Rule;
71
+ declare const config: {
72
+ entity: {
73
+ action: Rule;
74
+ };
75
+ order: {
76
+ complete: Rule;
77
+ };
78
+ };
79
+
80
+ declare const mapping_config: typeof config;
81
+ declare const mapping_customEvent: typeof customEvent;
82
+ declare const mapping_purchase: typeof purchase;
83
+ declare namespace mapping {
84
+ export { mapping_config as config, mapping_customEvent as customEvent, mapping_purchase as purchase };
85
+ }
86
+
87
+ declare const index_env: typeof env;
88
+ declare const index_events: typeof events;
89
+ declare const index_mapping: typeof mapping;
90
+ declare namespace index {
91
+ export { index_env as env, index_events as events, index_mapping as mapping };
92
+ }
93
+
94
+ export { index as examples, index$1 as schemas };