@walkeros/web-destination-api 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/web-destination-api",
3
3
  "description": "Web API destination for walkerOS",
4
- "version": "0.3.0",
4
+ "version": "0.4.0",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -16,6 +16,11 @@
16
16
  "types": "./dist/examples/index.d.ts",
17
17
  "import": "./dist/examples/index.mjs",
18
18
  "require": "./dist/examples/index.js"
19
+ },
20
+ "./dev": {
21
+ "types": "./dist/dev.d.ts",
22
+ "import": "./dist/dev.mjs",
23
+ "require": "./dist/dev.js"
19
24
  }
20
25
  },
21
26
  "files": [
@@ -30,7 +35,7 @@
30
35
  "update": "npx npm-check-updates -u && npm update"
31
36
  },
32
37
  "dependencies": {
33
- "@walkeros/web-core": "0.3.0"
38
+ "@walkeros/web-core": "0.4.0"
34
39
  },
35
40
  "devDependencies": {},
36
41
  "repository": {
package/dist/index.d.mts DELETED
@@ -1,118 +0,0 @@
1
- import { Destination as Destination$1, SendHeaders, Mapping as Mapping$2, SendDataValue, z } from '@walkeros/core';
2
- import { DestinationWeb, SendWebTransport, sendWeb } from '@walkeros/web-core';
3
- import * as zod_to_json_schema from 'zod-to-json-schema';
4
-
5
- interface Settings$1 {
6
- url: string;
7
- headers?: SendHeaders;
8
- method?: string;
9
- transform?: Transform;
10
- transport?: SendWebTransport;
11
- }
12
- interface Mapping$1 {
13
- }
14
- interface Env extends DestinationWeb.Env {
15
- sendWeb?: typeof sendWeb;
16
- }
17
- type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
18
- type Destination = DestinationWeb.Destination<Types>;
19
- 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
- declare const env_init: typeof init;
39
- declare const env_push: typeof push;
40
- declare namespace env {
41
- export { env_init as init, env_push as push };
42
- }
43
-
44
- declare function entity_action$1(): string;
45
-
46
- declare namespace events {
47
- export { entity_action$1 as entity_action };
48
- }
49
-
50
- declare const entity_action: Rule;
51
- declare const config: {
52
- entity: {
53
- action: Rule;
54
- };
55
- };
56
-
57
- declare const mapping$1_config: typeof config;
58
- declare const mapping$1_entity_action: typeof entity_action;
59
- declare namespace mapping$1 {
60
- export { mapping$1_config as config, mapping$1_entity_action as entity_action };
61
- }
62
-
63
- declare const index$1_env: typeof env;
64
- declare const index$1_events: typeof events;
65
- declare namespace index$1 {
66
- export { index$1_env as env, index$1_events as events, mapping$1 as mapping };
67
- }
68
-
69
- declare const SettingsSchema: z.ZodObject<{
70
- url: z.ZodString;
71
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
72
- method: z.ZodDefault<z.ZodString>;
73
- 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
- }>;
88
- type Settings = z.infer<typeof SettingsSchema>;
89
-
90
- declare const MappingSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
91
- type Mapping = z.infer<typeof MappingSchema>;
92
-
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
- };
105
-
106
- type index_Mapping = Mapping;
107
- declare const index_MappingSchema: typeof MappingSchema;
108
- type index_Settings = Settings;
109
- declare const index_SettingsSchema: typeof SettingsSchema;
110
- declare const index_mapping: typeof mapping;
111
- declare const index_settings: typeof settings;
112
- declare namespace index {
113
- 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 };
114
- }
115
-
116
- declare const destinationAPI: Destination;
117
-
118
- export { index$2 as DestinationAPI, destinationAPI as default, destinationAPI, index$1 as examples, index as schemas };