@hey-api/openapi-ts 0.85.1 → 0.86.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.
@@ -1,59 +1,54 @@
1
- import { m as Config, b as Logger, d as IR, U as UserConfig, n as Input, W as WatchValues } from './types.d-DIu3K5QP.cjs';
2
- import { getResolvedInput } from '@hey-api/json-schema-ref-parser';
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 { Config, Input, Logger, UserConfig, WatchValues, parseOpenApiSpec } from "./types-CFN6tBkJ.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
- config: Config;
22
- errors: ReadonlyArray<Error>;
23
- jobIndex: number;
6
+ config: Config;
7
+ errors: ReadonlyArray<Error>;
8
+ jobIndex: number;
24
9
  };
25
10
  type Configs = {
26
- dependencies: Record<string, string>;
27
- results: ReadonlyArray<ConfigResult>;
11
+ dependencies: Record<string, string>;
12
+ results: ReadonlyArray<ConfigResult>;
28
13
  };
29
14
  /**
30
15
  * @internal
31
16
  */
32
- declare const initConfigs: ({ logger, userConfigs, }: {
33
- logger: Logger;
34
- userConfigs: ReadonlyArray<UserConfig>;
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
- arrayBuffer: ArrayBuffer | undefined;
39
- error?: never;
40
- resolvedInput: ReturnType<typeof getResolvedInput>;
41
- response?: never;
27
+ arrayBuffer: ArrayBuffer | undefined;
28
+ error?: never;
29
+ resolvedInput: ReturnType<typeof getResolvedInput>;
30
+ response?: never;
42
31
  };
43
32
  type SpecError = {
44
- arrayBuffer?: never;
45
- error: 'not-modified' | 'not-ok';
46
- resolvedInput?: never;
47
- response: Response;
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: ({ fetchOptions, inputPath, timeout, watch, }: {
53
- fetchOptions?: RequestInit;
54
- inputPath: Input["path"];
55
- timeout: number | undefined;
56
- watch: WatchValues;
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
@@ -1,59 +1,54 @@
1
- import { m as Config, b as Logger, d as IR, U as UserConfig, n as Input, W as WatchValues } from './types.d-DIu3K5QP.js';
2
- import { getResolvedInput } from '@hey-api/json-schema-ref-parser';
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 { Config, Input, Logger, UserConfig, WatchValues, parseOpenApiSpec } from "./types-BesMf-H-.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
- config: Config;
22
- errors: ReadonlyArray<Error>;
23
- jobIndex: number;
6
+ config: Config;
7
+ errors: ReadonlyArray<Error>;
8
+ jobIndex: number;
24
9
  };
25
10
  type Configs = {
26
- dependencies: Record<string, string>;
27
- results: ReadonlyArray<ConfigResult>;
11
+ dependencies: Record<string, string>;
12
+ results: ReadonlyArray<ConfigResult>;
28
13
  };
29
14
  /**
30
15
  * @internal
31
16
  */
32
- declare const initConfigs: ({ logger, userConfigs, }: {
33
- logger: Logger;
34
- userConfigs: ReadonlyArray<UserConfig>;
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
- arrayBuffer: ArrayBuffer | undefined;
39
- error?: never;
40
- resolvedInput: ReturnType<typeof getResolvedInput>;
41
- response?: never;
27
+ arrayBuffer: ArrayBuffer | undefined;
28
+ error?: never;
29
+ resolvedInput: ReturnType<typeof getResolvedInput>;
30
+ response?: never;
42
31
  };
43
32
  type SpecError = {
44
- arrayBuffer?: never;
45
- error: 'not-modified' | 'not-ok';
46
- resolvedInput?: never;
47
- response: Response;
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: ({ fetchOptions, inputPath, timeout, watch, }: {
53
- fetchOptions?: RequestInit;
54
- inputPath: Input["path"];
55
- timeout: number | undefined;
56
- watch: WatchValues;
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 {createRequire}from'module';export{L as getSpec,K as initConfigs,D as parseOpenApiSpec}from'./chunk-SA4IKOSG.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
- //# sourceMappingURL=internal.js.map
1
+ import{getSpec as e,initConfigs as t,parseOpenApiSpec as n}from"./getSpec-CZ8YOkGf.js";export{e as getSpec,t as initConfigs,n as parseOpenApiSpec};