@hey-api/openapi-ts 0.85.2 → 0.86.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/README.md +1 -1
- package/dist/chunk-C-EqMg7d.js +1 -0
- package/dist/clients/nuxt/utils.ts +12 -4
- package/dist/getSpec-BlRTbnm6.js +24 -0
- package/dist/getSpec-BlRTbnm6.js.map +1 -0
- package/dist/getSpec-D8vjI0RE.cjs +24 -0
- package/dist/getSpec-D8vjI0RE.cjs.map +1 -0
- package/dist/index.cjs +180 -215
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +822 -1478
- package/dist/index.d.ts +822 -1478
- package/dist/index.js +171 -172
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +1 -25
- package/dist/internal.d.cts +36 -41
- package/dist/internal.d.ts +36 -41
- package/dist/internal.js +1 -2
- package/dist/{types.d-CGoxqmT9.d.cts → types-C7EJ2jAV.d.cts} +7948 -6907
- package/dist/{types.d-CGoxqmT9.d.ts → types-k8CRHWYM.d.ts} +7949 -6907
- package/package.json +7 -12
- package/dist/chunk-F2CVRHGI.js +0 -47
- package/dist/chunk-F2CVRHGI.js.map +0 -1
- package/dist/internal.cjs.map +0 -1
- package/dist/internal.js.map +0 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1,59 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getResolvedInput } from
|
|
3
|
-
import 'semver';
|
|
4
|
-
import '@hey-api/codegen-core';
|
|
5
|
-
import 'node:fs';
|
|
6
|
-
import 'typescript';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
* Parse the resolved OpenAPI specification. This will populate and return
|
|
11
|
-
* `context` with intermediate representation obtained from the parsed spec.
|
|
12
|
-
*/
|
|
13
|
-
declare const parseOpenApiSpec: ({ config, dependencies, logger, spec, }: {
|
|
14
|
-
config: Config;
|
|
15
|
-
dependencies: Record<string, string>;
|
|
16
|
-
logger: Logger;
|
|
17
|
-
spec: unknown;
|
|
18
|
-
}) => IR.Context | undefined;
|
|
1
|
+
import { g as UserConfig, h as Config, m as Logger, n as WatchValues, p as parseOpenApiSpec, w as Input } from "./types-C7EJ2jAV.cjs";
|
|
2
|
+
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
19
3
|
|
|
4
|
+
//#region src/config/init.d.ts
|
|
20
5
|
type ConfigResult = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
config: Config;
|
|
7
|
+
errors: ReadonlyArray<Error>;
|
|
8
|
+
jobIndex: number;
|
|
24
9
|
};
|
|
25
10
|
type Configs = {
|
|
26
|
-
|
|
27
|
-
|
|
11
|
+
dependencies: Record<string, string>;
|
|
12
|
+
results: ReadonlyArray<ConfigResult>;
|
|
28
13
|
};
|
|
29
14
|
/**
|
|
30
15
|
* @internal
|
|
31
16
|
*/
|
|
32
|
-
declare const initConfigs: ({
|
|
33
|
-
|
|
34
|
-
|
|
17
|
+
declare const initConfigs: ({
|
|
18
|
+
logger,
|
|
19
|
+
userConfigs
|
|
20
|
+
}: {
|
|
21
|
+
logger: Logger;
|
|
22
|
+
userConfigs: ReadonlyArray<UserConfig>;
|
|
35
23
|
}) => Promise<Configs>;
|
|
36
|
-
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/getSpec.d.ts
|
|
37
26
|
type SpecResponse = {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
27
|
+
arrayBuffer: ArrayBuffer | undefined;
|
|
28
|
+
error?: never;
|
|
29
|
+
resolvedInput: ReturnType<typeof getResolvedInput>;
|
|
30
|
+
response?: never;
|
|
42
31
|
};
|
|
43
32
|
type SpecError = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
arrayBuffer?: never;
|
|
34
|
+
error: 'not-modified' | 'not-ok';
|
|
35
|
+
resolvedInput?: never;
|
|
36
|
+
response: Response;
|
|
48
37
|
};
|
|
49
38
|
/**
|
|
50
39
|
* @internal
|
|
51
40
|
*/
|
|
52
|
-
declare const getSpec: ({
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
41
|
+
declare const getSpec: ({
|
|
42
|
+
fetchOptions,
|
|
43
|
+
inputPath,
|
|
44
|
+
timeout,
|
|
45
|
+
watch
|
|
46
|
+
}: {
|
|
47
|
+
fetchOptions?: RequestInit;
|
|
48
|
+
inputPath: Input["path"];
|
|
49
|
+
timeout: number | undefined;
|
|
50
|
+
watch: WatchValues;
|
|
57
51
|
}) => Promise<SpecResponse | SpecError>;
|
|
58
|
-
|
|
52
|
+
//#endregion
|
|
59
53
|
export { getSpec, initConfigs, parseOpenApiSpec };
|
|
54
|
+
//# sourceMappingURL=internal.d.cts.map
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,59 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getResolvedInput } from
|
|
3
|
-
import 'semver';
|
|
4
|
-
import '@hey-api/codegen-core';
|
|
5
|
-
import 'node:fs';
|
|
6
|
-
import 'typescript';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
* Parse the resolved OpenAPI specification. This will populate and return
|
|
11
|
-
* `context` with intermediate representation obtained from the parsed spec.
|
|
12
|
-
*/
|
|
13
|
-
declare const parseOpenApiSpec: ({ config, dependencies, logger, spec, }: {
|
|
14
|
-
config: Config;
|
|
15
|
-
dependencies: Record<string, string>;
|
|
16
|
-
logger: Logger;
|
|
17
|
-
spec: unknown;
|
|
18
|
-
}) => IR.Context | undefined;
|
|
1
|
+
import { g as UserConfig, h as Config, m as Logger, n as WatchValues, p as parseOpenApiSpec, w as Input } from "./types-k8CRHWYM.js";
|
|
2
|
+
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
19
3
|
|
|
4
|
+
//#region src/config/init.d.ts
|
|
20
5
|
type ConfigResult = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
config: Config;
|
|
7
|
+
errors: ReadonlyArray<Error>;
|
|
8
|
+
jobIndex: number;
|
|
24
9
|
};
|
|
25
10
|
type Configs = {
|
|
26
|
-
|
|
27
|
-
|
|
11
|
+
dependencies: Record<string, string>;
|
|
12
|
+
results: ReadonlyArray<ConfigResult>;
|
|
28
13
|
};
|
|
29
14
|
/**
|
|
30
15
|
* @internal
|
|
31
16
|
*/
|
|
32
|
-
declare const initConfigs: ({
|
|
33
|
-
|
|
34
|
-
|
|
17
|
+
declare const initConfigs: ({
|
|
18
|
+
logger,
|
|
19
|
+
userConfigs
|
|
20
|
+
}: {
|
|
21
|
+
logger: Logger;
|
|
22
|
+
userConfigs: ReadonlyArray<UserConfig>;
|
|
35
23
|
}) => Promise<Configs>;
|
|
36
|
-
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/getSpec.d.ts
|
|
37
26
|
type SpecResponse = {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
27
|
+
arrayBuffer: ArrayBuffer | undefined;
|
|
28
|
+
error?: never;
|
|
29
|
+
resolvedInput: ReturnType<typeof getResolvedInput>;
|
|
30
|
+
response?: never;
|
|
42
31
|
};
|
|
43
32
|
type SpecError = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
arrayBuffer?: never;
|
|
34
|
+
error: 'not-modified' | 'not-ok';
|
|
35
|
+
resolvedInput?: never;
|
|
36
|
+
response: Response;
|
|
48
37
|
};
|
|
49
38
|
/**
|
|
50
39
|
* @internal
|
|
51
40
|
*/
|
|
52
|
-
declare const getSpec: ({
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
41
|
+
declare const getSpec: ({
|
|
42
|
+
fetchOptions,
|
|
43
|
+
inputPath,
|
|
44
|
+
timeout,
|
|
45
|
+
watch
|
|
46
|
+
}: {
|
|
47
|
+
fetchOptions?: RequestInit;
|
|
48
|
+
inputPath: Input["path"];
|
|
49
|
+
timeout: number | undefined;
|
|
50
|
+
watch: WatchValues;
|
|
57
51
|
}) => Promise<SpecResponse | SpecError>;
|
|
58
|
-
|
|
52
|
+
//#endregion
|
|
59
53
|
export { getSpec, initConfigs, parseOpenApiSpec };
|
|
54
|
+
//# sourceMappingURL=internal.d.ts.map
|
package/dist/internal.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
//# sourceMappingURL=internal.js.map
|
|
1
|
+
import{n as e,t,u as n}from"./getSpec-BlRTbnm6.js";export{t as getSpec,e as initConfigs,n as parseOpenApiSpec};
|