@walkeros/web-destination-api 0.3.0 → 0.3.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/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
+ import * as _walkeros_core from '@walkeros/core';
1
2
  import { Destination as Destination$1, SendHeaders, Mapping as Mapping$2, SendDataValue, z } from '@walkeros/core';
2
3
  import { DestinationWeb, SendWebTransport, sendWeb } from '@walkeros/web-core';
3
- import * as zod_to_json_schema from 'zod-to-json-schema';
4
4
 
5
5
  interface Settings$1 {
6
6
  url: string;
@@ -34,11 +34,17 @@ declare namespace index$2 {
34
34
 
35
35
  declare const init: Env | undefined;
36
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[];
37
42
 
38
43
  declare const env_init: typeof init;
39
44
  declare const env_push: typeof push;
45
+ declare const env_simulation: typeof simulation;
40
46
  declare namespace env {
41
- export { env_init as init, env_push as push };
47
+ export { env_init as init, env_push as push, env_simulation as simulation };
42
48
  }
43
49
 
44
50
  declare function entity_action$1(): string;
@@ -71,37 +77,19 @@ declare const SettingsSchema: z.ZodObject<{
71
77
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
72
78
  method: z.ZodDefault<z.ZodString>;
73
79
  transform: z.ZodOptional<z.ZodAny>;
74
- transport: z.ZodDefault<z.ZodEnum<["fetch", "xhr", "beacon"]>>;
75
- }, "strip", z.ZodTypeAny, {
76
- url: string;
77
- method: string;
78
- transport: "fetch" | "beacon" | "xhr";
79
- headers?: Record<string, string> | undefined;
80
- transform?: any;
81
- }, {
82
- url: string;
83
- headers?: Record<string, string> | undefined;
84
- method?: string | undefined;
85
- transform?: any;
86
- transport?: "fetch" | "beacon" | "xhr" | undefined;
87
- }>;
80
+ transport: z.ZodDefault<z.ZodEnum<{
81
+ fetch: "fetch";
82
+ beacon: "beacon";
83
+ xhr: "xhr";
84
+ }>>;
85
+ }, z.core.$strip>;
88
86
  type Settings = z.infer<typeof SettingsSchema>;
89
87
 
90
- declare const MappingSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
88
+ declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
91
89
  type Mapping = z.infer<typeof MappingSchema>;
92
90
 
93
- declare const settings: zod_to_json_schema.JsonSchema7Type & {
94
- $schema?: string | undefined;
95
- definitions?: {
96
- [key: string]: zod_to_json_schema.JsonSchema7Type;
97
- } | undefined;
98
- };
99
- declare const mapping: zod_to_json_schema.JsonSchema7Type & {
100
- $schema?: string | undefined;
101
- definitions?: {
102
- [key: string]: zod_to_json_schema.JsonSchema7Type;
103
- } | undefined;
104
- };
91
+ declare const settings: _walkeros_core.JSONSchema;
92
+ declare const mapping: _walkeros_core.JSONSchema;
105
93
 
106
94
  type index_Mapping = Mapping;
107
95
  declare const index_MappingSchema: typeof MappingSchema;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
+ import * as _walkeros_core from '@walkeros/core';
1
2
  import { Destination as Destination$1, SendHeaders, Mapping as Mapping$2, SendDataValue, z } from '@walkeros/core';
2
3
  import { DestinationWeb, SendWebTransport, sendWeb } from '@walkeros/web-core';
3
- import * as zod_to_json_schema from 'zod-to-json-schema';
4
4
 
5
5
  interface Settings$1 {
6
6
  url: string;
@@ -34,11 +34,17 @@ declare namespace index$2 {
34
34
 
35
35
  declare const init: Env | undefined;
36
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[];
37
42
 
38
43
  declare const env_init: typeof init;
39
44
  declare const env_push: typeof push;
45
+ declare const env_simulation: typeof simulation;
40
46
  declare namespace env {
41
- export { env_init as init, env_push as push };
47
+ export { env_init as init, env_push as push, env_simulation as simulation };
42
48
  }
43
49
 
44
50
  declare function entity_action$1(): string;
@@ -71,37 +77,19 @@ declare const SettingsSchema: z.ZodObject<{
71
77
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
72
78
  method: z.ZodDefault<z.ZodString>;
73
79
  transform: z.ZodOptional<z.ZodAny>;
74
- transport: z.ZodDefault<z.ZodEnum<["fetch", "xhr", "beacon"]>>;
75
- }, "strip", z.ZodTypeAny, {
76
- url: string;
77
- method: string;
78
- transport: "fetch" | "beacon" | "xhr";
79
- headers?: Record<string, string> | undefined;
80
- transform?: any;
81
- }, {
82
- url: string;
83
- headers?: Record<string, string> | undefined;
84
- method?: string | undefined;
85
- transform?: any;
86
- transport?: "fetch" | "beacon" | "xhr" | undefined;
87
- }>;
80
+ transport: z.ZodDefault<z.ZodEnum<{
81
+ fetch: "fetch";
82
+ beacon: "beacon";
83
+ xhr: "xhr";
84
+ }>>;
85
+ }, z.core.$strip>;
88
86
  type Settings = z.infer<typeof SettingsSchema>;
89
87
 
90
- declare const MappingSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
88
+ declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
91
89
  type Mapping = z.infer<typeof MappingSchema>;
92
90
 
93
- declare const settings: zod_to_json_schema.JsonSchema7Type & {
94
- $schema?: string | undefined;
95
- definitions?: {
96
- [key: string]: zod_to_json_schema.JsonSchema7Type;
97
- } | undefined;
98
- };
99
- declare const mapping: zod_to_json_schema.JsonSchema7Type & {
100
- $schema?: string | undefined;
101
- definitions?: {
102
- [key: string]: zod_to_json_schema.JsonSchema7Type;
103
- } | undefined;
104
- };
91
+ declare const settings: _walkeros_core.JSONSchema;
92
+ declare const mapping: _walkeros_core.JSONSchema;
105
93
 
106
94
  type index_Mapping = Mapping;
107
95
  declare const index_MappingSchema: typeof MappingSchema;