@walkeros/web-destination-plausible 2.0.1 → 2.1.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _walkeros_core_dev from '@walkeros/core/dev';
2
2
  import { z } from '@walkeros/core/dev';
3
- import { WalkerOS, Mapping as Mapping$2 } from '@walkeros/core';
3
+ import { WalkerOS, Flow } from '@walkeros/core';
4
4
  import { DestinationWeb } from '@walkeros/web-core';
5
5
 
6
6
  declare const SettingsSchema: z.ZodObject<{
@@ -16,17 +16,19 @@ declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
16
16
  /**
17
17
  * Type inference from MappingSchema
18
18
  */
19
- type Mapping$1 = z.infer<typeof MappingSchema>;
19
+ type Mapping = z.infer<typeof MappingSchema>;
20
20
 
21
21
  declare const settings: _walkeros_core_dev.JSONSchema;
22
- declare const mapping$1: _walkeros_core_dev.JSONSchema;
22
+ declare const mapping: _walkeros_core_dev.JSONSchema;
23
23
 
24
+ type index$1_Mapping = Mapping;
24
25
  declare const index$1_MappingSchema: typeof MappingSchema;
25
26
  type index$1_Settings = Settings;
26
27
  declare const index$1_SettingsSchema: typeof SettingsSchema;
28
+ declare const index$1_mapping: typeof mapping;
27
29
  declare const index$1_settings: typeof settings;
28
30
  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 };
31
+ 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 };
30
32
  }
31
33
 
32
34
  declare global {
@@ -39,8 +41,6 @@ declare global {
39
41
  type Plausible = (event: string, options?: {
40
42
  props?: WalkerOS.AnyObject;
41
43
  }) => void;
42
- interface Mapping {
43
- }
44
44
  interface Env extends DestinationWeb.Env {
45
45
  window: {
46
46
  plausible: Plausible & {
@@ -48,7 +48,6 @@ interface Env extends DestinationWeb.Env {
48
48
  };
49
49
  };
50
50
  }
51
- type Rule = Mapping$2.Rule<Mapping>;
52
51
 
53
52
  declare const init: Env | undefined;
54
53
  declare const push: Env;
@@ -59,36 +58,19 @@ declare namespace env {
59
58
  export { env_init as init, env_push as push };
60
59
  }
61
60
 
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
- };
61
+ declare const purchase: Flow.StepExample;
62
+ declare const customEvent: Flow.StepExample;
79
63
 
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 };
64
+ declare const step_customEvent: typeof customEvent;
65
+ declare const step_purchase: typeof purchase;
66
+ declare namespace step {
67
+ export { step_customEvent as customEvent, step_purchase as purchase };
85
68
  }
86
69
 
87
70
  declare const index_env: typeof env;
88
- declare const index_events: typeof events;
89
- declare const index_mapping: typeof mapping;
71
+ declare const index_step: typeof step;
90
72
  declare namespace index {
91
- export { index_env as env, index_events as events, index_mapping as mapping };
73
+ export { index_env as env, index_step as step };
92
74
  }
93
75
 
94
76
  export { index as examples, index$1 as schemas };
package/dist/dev.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _walkeros_core_dev from '@walkeros/core/dev';
2
2
  import { z } from '@walkeros/core/dev';
3
- import { WalkerOS, Mapping as Mapping$2 } from '@walkeros/core';
3
+ import { WalkerOS, Flow } from '@walkeros/core';
4
4
  import { DestinationWeb } from '@walkeros/web-core';
5
5
 
6
6
  declare const SettingsSchema: z.ZodObject<{
@@ -16,17 +16,19 @@ declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
16
16
  /**
17
17
  * Type inference from MappingSchema
18
18
  */
19
- type Mapping$1 = z.infer<typeof MappingSchema>;
19
+ type Mapping = z.infer<typeof MappingSchema>;
20
20
 
21
21
  declare const settings: _walkeros_core_dev.JSONSchema;
22
- declare const mapping$1: _walkeros_core_dev.JSONSchema;
22
+ declare const mapping: _walkeros_core_dev.JSONSchema;
23
23
 
24
+ type index$1_Mapping = Mapping;
24
25
  declare const index$1_MappingSchema: typeof MappingSchema;
25
26
  type index$1_Settings = Settings;
26
27
  declare const index$1_SettingsSchema: typeof SettingsSchema;
28
+ declare const index$1_mapping: typeof mapping;
27
29
  declare const index$1_settings: typeof settings;
28
30
  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 };
31
+ 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 };
30
32
  }
31
33
 
32
34
  declare global {
@@ -39,8 +41,6 @@ declare global {
39
41
  type Plausible = (event: string, options?: {
40
42
  props?: WalkerOS.AnyObject;
41
43
  }) => void;
42
- interface Mapping {
43
- }
44
44
  interface Env extends DestinationWeb.Env {
45
45
  window: {
46
46
  plausible: Plausible & {
@@ -48,7 +48,6 @@ interface Env extends DestinationWeb.Env {
48
48
  };
49
49
  };
50
50
  }
51
- type Rule = Mapping$2.Rule<Mapping>;
52
51
 
53
52
  declare const init: Env | undefined;
54
53
  declare const push: Env;
@@ -59,36 +58,19 @@ declare namespace env {
59
58
  export { env_init as init, env_push as push };
60
59
  }
61
60
 
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
- };
61
+ declare const purchase: Flow.StepExample;
62
+ declare const customEvent: Flow.StepExample;
79
63
 
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 };
64
+ declare const step_customEvent: typeof customEvent;
65
+ declare const step_purchase: typeof purchase;
66
+ declare namespace step {
67
+ export { step_customEvent as customEvent, step_purchase as purchase };
85
68
  }
86
69
 
87
70
  declare const index_env: typeof env;
88
- declare const index_events: typeof events;
89
- declare const index_mapping: typeof mapping;
71
+ declare const index_step: typeof step;
90
72
  declare namespace index {
91
- export { index_env as env, index_events as events, index_mapping as mapping };
73
+ export { index_env as env, index_step as step };
92
74
  }
93
75
 
94
76
  export { index as examples, index$1 as schemas };