@walkeros/web-destination-api 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.ts CHANGED
@@ -1,106 +1,38 @@
1
- import * as _walkeros_core from '@walkeros/core';
2
- import { Destination as Destination$1, SendHeaders, Mapping as Mapping$2, SendDataValue, z } from '@walkeros/core';
1
+ import { Destination as Destination$1, SendHeaders, Mapping as Mapping$1, SendDataValue } from '@walkeros/core';
3
2
  import { DestinationWeb, SendWebTransport, sendWeb } from '@walkeros/web-core';
4
3
 
5
- interface Settings$1 {
4
+ interface Settings {
6
5
  url: string;
7
6
  headers?: SendHeaders;
8
7
  method?: string;
9
8
  transform?: Transform;
10
9
  transport?: SendWebTransport;
11
10
  }
12
- interface Mapping$1 {
11
+ interface Mapping {
13
12
  }
14
13
  interface Env extends DestinationWeb.Env {
15
14
  sendWeb?: typeof sendWeb;
16
15
  }
17
- type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
16
+ type Types = Destination$1.Types<Settings, Mapping, Env>;
18
17
  type Destination = DestinationWeb.Destination<Types>;
19
18
  type Config = DestinationWeb.Config<Types>;
20
- type Rule = Mapping$2.Rule<Mapping$1>;
21
- type Rules = Mapping$2.Rules<Rule>;
22
- type Transform = (data?: unknown, config?: Config, mapping?: Mapping$2.Rule<Mapping$1>) => SendDataValue;
23
-
24
- type index$2_Config = Config;
25
- type index$2_Destination = Destination;
26
- type index$2_Env = Env;
27
- type index$2_Rule = Rule;
28
- type index$2_Rules = Rules;
29
- type index$2_Transform = Transform;
30
- type index$2_Types = Types;
31
- declare namespace index$2 {
32
- export type { index$2_Config as Config, index$2_Destination as Destination, 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_Transform as Transform, index$2_Types as Types };
33
- }
34
-
35
- declare const init: Env | undefined;
36
- declare const push: Env;
37
- /**
38
- * Simulation tracking paths
39
- * Specifies which function calls to track during simulation
40
- */
41
- declare const simulation: string[];
42
-
43
- declare const env_init: typeof init;
44
- declare const env_push: typeof push;
45
- declare const env_simulation: typeof simulation;
46
- declare namespace env {
47
- export { env_init as init, env_push as push, env_simulation as simulation };
48
- }
49
-
50
- declare function entity_action$1(): string;
51
-
52
- declare namespace events {
53
- export { entity_action$1 as entity_action };
54
- }
55
-
56
- declare const entity_action: Rule;
57
- declare const config: {
58
- entity: {
59
- action: Rule;
60
- };
61
- };
62
-
63
- declare const mapping$1_config: typeof config;
64
- declare const mapping$1_entity_action: typeof entity_action;
65
- declare namespace mapping$1 {
66
- export { mapping$1_config as config, mapping$1_entity_action as entity_action };
67
- }
68
-
69
- declare const index$1_env: typeof env;
70
- declare const index$1_events: typeof events;
71
- declare namespace index$1 {
72
- export { index$1_env as env, index$1_events as events, mapping$1 as mapping };
73
- }
74
-
75
- declare const SettingsSchema: z.ZodObject<{
76
- url: z.ZodString;
77
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
78
- method: z.ZodDefault<z.ZodString>;
79
- transform: z.ZodOptional<z.ZodAny>;
80
- transport: z.ZodDefault<z.ZodEnum<{
81
- fetch: "fetch";
82
- beacon: "beacon";
83
- xhr: "xhr";
84
- }>>;
85
- }, z.core.$strip>;
86
- type Settings = z.infer<typeof SettingsSchema>;
87
-
88
- declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
89
- type Mapping = z.infer<typeof MappingSchema>;
90
-
91
- declare const settings: _walkeros_core.JSONSchema;
92
- declare const mapping: _walkeros_core.JSONSchema;
19
+ type Rule = Mapping$1.Rule<Mapping>;
20
+ type Rules = Mapping$1.Rules<Rule>;
21
+ type Transform = (data?: unknown, config?: Config, mapping?: Mapping$1.Rule<Mapping>) => SendDataValue;
93
22
 
23
+ type index_Config = Config;
24
+ type index_Destination = Destination;
25
+ type index_Env = Env;
94
26
  type index_Mapping = Mapping;
95
- declare const index_MappingSchema: typeof MappingSchema;
27
+ type index_Rule = Rule;
28
+ type index_Rules = Rules;
96
29
  type index_Settings = Settings;
97
- declare const index_SettingsSchema: typeof SettingsSchema;
98
- declare const index_mapping: typeof mapping;
99
- declare const index_settings: typeof settings;
30
+ type index_Transform = Transform;
31
+ type index_Types = Types;
100
32
  declare namespace index {
101
- 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 };
33
+ export type { index_Config as Config, index_Destination as Destination, index_Env as Env, index_Mapping as Mapping, index_Rule as Rule, index_Rules as Rules, index_Settings as Settings, index_Transform as Transform, index_Types as Types };
102
34
  }
103
35
 
104
36
  declare const destinationAPI: Destination;
105
37
 
106
- export { index$2 as DestinationAPI, destinationAPI as default, destinationAPI, index$1 as examples, index as schemas };
38
+ export { index as DestinationAPI, destinationAPI as default, destinationAPI };