@hey-api/openapi-ts 0.86.4 → 0.86.6
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/bin/run.cmd +3 -0
- package/bin/run.js +18 -0
- package/dist/{getSpec-6kHHn13e.cjs → getSpec-dCAz_woE.cjs} +3 -3
- package/dist/getSpec-dCAz_woE.cjs.map +1 -0
- package/dist/{getSpec-Ci2amIoH.js → getSpec-x2GCg2gS.js} +3 -3
- package/dist/getSpec-x2GCg2gS.js.map +1 -0
- package/dist/index.cjs +1 -1318
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +1 -1310
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/run.cjs +3 -0
- package/dist/run.cjs.map +1 -0
- package/dist/run.d.cts +1 -0
- package/dist/run.d.ts +1 -0
- package/dist/run.js +3 -0
- package/dist/run.js.map +1 -0
- package/dist/src-ZtEOUDGN.cjs +1318 -0
- package/dist/src-ZtEOUDGN.cjs.map +1 -0
- package/dist/src-uVOc7K-o.js +1310 -0
- package/dist/src-uVOc7K-o.js.map +1 -0
- package/dist/{types-yDJUUQN6.d.ts → types-7_tn_FD9.d.ts} +7554 -7553
- package/dist/{types-CQZml4KE.d.cts → types-ComCm5zo.d.cts} +7554 -7553
- package/package.json +4 -4
- package/bin/index.cjs +0 -148
- package/dist/getSpec-6kHHn13e.cjs.map +0 -1
- package/dist/getSpec-Ci2amIoH.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as FunctionParameter, D as ImportExportItemObject, E as Comments, F as __export, M as ObjectValue, N as SyntaxKindKeyword, O as tsNodeToString, P as types_d_exports, S as
|
|
1
|
+
import { A as FunctionParameter, C as StringCase, D as ImportExportItemObject, E as Comments, F as __export, M as ObjectValue, N as SyntaxKindKeyword, O as tsNodeToString, P as types_d_exports, S as PluginHandler, T as MaybeArray, _ as OpenApiResponseObject, b as Logger, c as ExpressionTransformer, d as Client$7, f as OpenApi, g as OpenApiRequestBodyObject, h as OpenApiParameterObject, i as UserConfig, j as FunctionTypeParameter, k as AccessLevel, l as DefinePlugin, m as OpenApiOperationObject, o as IR, p as OpenApiMetaObject, s as TypeTransformer, t as LegacyIR, u as Plugin, v as OpenApiSchemaObject, w as LazyOrAsync, x as Client$2 } from "./types-ComCm5zo.cjs";
|
|
2
2
|
import * as typescript0 from "typescript";
|
|
3
3
|
import ts from "typescript";
|
|
4
4
|
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
@@ -874,6 +874,14 @@ interface TDataShape {
|
|
|
874
874
|
type OmitKeys<T$1, K$1> = Pick<T$1, Exclude<keyof T$1, K$1>>;
|
|
875
875
|
type Options$1<TData$1 extends TDataShape = TDataShape, ThrowOnError$1 extends boolean = boolean, TResponse = unknown, TResponseStyle$1 extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle$1, ThrowOnError$1>, 'body' | 'path' | 'query' | 'url'> & Omit<TData$1, 'url'>;
|
|
876
876
|
//#endregion
|
|
877
|
+
//#region src/generate.d.ts
|
|
878
|
+
/**
|
|
879
|
+
* Generate a client from the provided configuration.
|
|
880
|
+
*
|
|
881
|
+
* @param userConfig User provided {@link UserConfig} configuration(s).
|
|
882
|
+
*/
|
|
883
|
+
declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger) => Promise<ReadonlyArray<Client$7 | IR.Context>>;
|
|
884
|
+
//#endregion
|
|
877
885
|
//#region src/config/parser.d.ts
|
|
878
886
|
declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
|
|
879
887
|
//#endregion
|
|
@@ -2119,12 +2127,6 @@ declare module '@hey-api/codegen-core' {
|
|
|
2119
2127
|
tags?: Set<string>;
|
|
2120
2128
|
}
|
|
2121
2129
|
}
|
|
2122
|
-
/**
|
|
2123
|
-
* Generate a client from the provided configuration.
|
|
2124
|
-
*
|
|
2125
|
-
* @param userConfig User provided {@link UserConfig} configuration(s).
|
|
2126
|
-
*/
|
|
2127
|
-
declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger) => Promise<ReadonlyArray<Client$7 | IR.Context>>;
|
|
2128
2130
|
/**
|
|
2129
2131
|
* Type helper for openapi-ts.config.ts, returns {@link MaybeArray<UserConfig>} object(s)
|
|
2130
2132
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __export } from "./chunk-C-EqMg7d.js";
|
|
2
|
-
import { A as FunctionParameter, D as ImportExportItemObject, E as Comments, M as ObjectValue, N as SyntaxKindKeyword, O as tsNodeToString, P as types_d_exports, S as
|
|
2
|
+
import { A as FunctionParameter, C as StringCase, D as ImportExportItemObject, E as Comments, M as ObjectValue, N as SyntaxKindKeyword, O as tsNodeToString, P as types_d_exports, S as PluginHandler, T as MaybeArray, _ as OpenApiResponseObject, b as Logger, c as ExpressionTransformer, d as Client$7, f as OpenApi, g as OpenApiRequestBodyObject, h as OpenApiParameterObject, i as UserConfig, j as FunctionTypeParameter, k as AccessLevel, l as DefinePlugin, m as OpenApiOperationObject, o as IR, p as OpenApiMetaObject, s as TypeTransformer, t as LegacyIR, u as Plugin, v as OpenApiSchemaObject, w as LazyOrAsync, x as Client$2 } from "./types-7_tn_FD9.js";
|
|
3
3
|
import "@hey-api/codegen-core";
|
|
4
4
|
import * as typescript0 from "typescript";
|
|
5
5
|
import ts from "typescript";
|
|
@@ -876,6 +876,14 @@ interface TDataShape {
|
|
|
876
876
|
type OmitKeys<T$1, K$1> = Pick<T$1, Exclude<keyof T$1, K$1>>;
|
|
877
877
|
type Options$1<TData$1 extends TDataShape = TDataShape, ThrowOnError$1 extends boolean = boolean, TResponse = unknown, TResponseStyle$1 extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle$1, ThrowOnError$1>, 'body' | 'path' | 'query' | 'url'> & Omit<TData$1, 'url'>;
|
|
878
878
|
//#endregion
|
|
879
|
+
//#region src/generate.d.ts
|
|
880
|
+
/**
|
|
881
|
+
* Generate a client from the provided configuration.
|
|
882
|
+
*
|
|
883
|
+
* @param userConfig User provided {@link UserConfig} configuration(s).
|
|
884
|
+
*/
|
|
885
|
+
declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger) => Promise<ReadonlyArray<Client$7 | IR.Context>>;
|
|
886
|
+
//#endregion
|
|
879
887
|
//#region src/config/parser.d.ts
|
|
880
888
|
declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
|
|
881
889
|
//#endregion
|
|
@@ -2121,12 +2129,6 @@ declare module '@hey-api/codegen-core' {
|
|
|
2121
2129
|
tags?: Set<string>;
|
|
2122
2130
|
}
|
|
2123
2131
|
}
|
|
2124
|
-
/**
|
|
2125
|
-
* Generate a client from the provided configuration.
|
|
2126
|
-
*
|
|
2127
|
-
* @param userConfig User provided {@link UserConfig} configuration(s).
|
|
2128
|
-
*/
|
|
2129
|
-
declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger) => Promise<ReadonlyArray<Client$7 | IR.Context>>;
|
|
2130
2132
|
/**
|
|
2131
2133
|
* Type helper for openapi-ts.config.ts, returns {@link MaybeArray<UserConfig>} object(s)
|
|
2132
2134
|
*/
|