@hey-api/openapi-ts 0.90.9 → 0.91.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/internal.cjs DELETED
@@ -1,6 +0,0 @@
1
-
2
- const require_openApi = require('./openApi-BaGlRfMs.cjs');
3
-
4
- exports.getSpec = require_openApi.getSpec;
5
- exports.initConfigs = require_openApi.resolveJobs;
6
- exports.parseOpenApiSpec = require_openApi.parseOpenApiSpec;
@@ -1,99 +0,0 @@
1
-
2
- import { n as UserConfig, p as Context, r as Input, t as Config } from "./types-WLqvV8HC.cjs";
3
- import { Logger } from "@hey-api/codegen-core";
4
- import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
5
-
6
- //#region src/config/resolve.d.ts
7
- type ResolvedJob = {
8
- config: Config;
9
- errors: Array<Error>;
10
- index: number;
11
- };
12
- //#endregion
13
- //#region src/config/init.d.ts
14
- type Configs = {
15
- dependencies: Record<string, string>;
16
- jobs: ReadonlyArray<ResolvedJob>;
17
- /**
18
- * @deprecated Use `jobs` instead.
19
- */
20
- results: ReadonlyArray<ResolvedJob>;
21
- };
22
- /**
23
- * @internal
24
- */
25
- declare function resolveJobs({
26
- logger,
27
- userConfigs
28
- }: {
29
- logger: Logger;
30
- userConfigs: ReadonlyArray<UserConfig>;
31
- }): Promise<Configs>;
32
- //#endregion
33
- //#region src/types/types.d.ts
34
- interface WatchValues {
35
- /**
36
- * Headers to be sent with each HEAD and/or GET request. This effectively
37
- * serves as a mechanism resolver because setting certain headers will opt
38
- * into comparing the specifications using that method.
39
- */
40
- headers: Headers;
41
- /**
42
- * Can we send a HEAD request instead of fetching the whole specification?
43
- * This value will be set after the first successful fetch.
44
- */
45
- isHeadMethodSupported?: boolean;
46
- /**
47
- * String content of the last successfully fetched specification.
48
- */
49
- lastValue?: string;
50
- }
51
- //#endregion
52
- //#region src/getSpec.d.ts
53
- type SpecResponse = {
54
- arrayBuffer: ArrayBuffer | undefined;
55
- error?: never;
56
- resolvedInput: ReturnType<typeof getResolvedInput>;
57
- response?: never;
58
- };
59
- type SpecError = {
60
- arrayBuffer?: never;
61
- error: 'not-modified' | 'not-ok';
62
- resolvedInput?: never;
63
- response: Response;
64
- };
65
- /**
66
- * @internal
67
- */
68
- declare const getSpec: ({
69
- fetchOptions,
70
- inputPath,
71
- timeout,
72
- watch
73
- }: {
74
- fetchOptions?: RequestInit;
75
- inputPath: Input["path"];
76
- timeout: number | undefined;
77
- watch: WatchValues;
78
- }) => Promise<SpecResponse | SpecError>;
79
- //#endregion
80
- //#region src/openApi/index.d.ts
81
- /**
82
- * @internal
83
- * Parse the resolved OpenAPI specification. This will populate and return
84
- * `context` with intermediate representation obtained from the parsed spec.
85
- */
86
- declare const parseOpenApiSpec: ({
87
- config,
88
- dependencies,
89
- logger,
90
- spec
91
- }: {
92
- config: Config;
93
- dependencies: Record<string, string>;
94
- logger: Logger;
95
- spec: unknown;
96
- }) => Context;
97
- //#endregion
98
- export { getSpec, resolveJobs as initConfigs, parseOpenApiSpec };
99
- //# sourceMappingURL=internal.d.cts.map