@hey-api/openapi-ts 0.89.2 → 0.90.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/README.md +14 -13
- package/dist/clients/angular/client.ts +4 -0
- package/dist/clients/axios/client.ts +4 -0
- package/dist/clients/fetch/client.ts +4 -0
- package/dist/clients/ky/client.ts +4 -0
- package/dist/clients/next/client.ts +4 -0
- package/dist/clients/nuxt/client.ts +5 -0
- package/dist/clients/nuxt/types.ts +15 -9
- package/dist/{config-CREHWzRd.d.cts → config-DT26kmcq.d.cts} +2481 -1607
- package/dist/{config-Baq-Kb-6.d.mts → config-Dis5Gu6e.d.mts} +2488 -1614
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +49 -32
- package/dist/index.d.mts +22 -5
- package/dist/index.mjs +2 -1
- package/dist/internal.cjs +2 -1
- package/dist/internal.d.cts +2 -1
- package/dist/internal.d.mts +2 -1
- package/dist/internal.mjs +2 -1
- package/dist/openApi-BU6F2oHy.mjs +14 -0
- package/dist/openApi-BU6F2oHy.mjs.map +1 -0
- package/dist/openApi-CcUF29dR.cjs +14 -0
- package/dist/openApi-CcUF29dR.cjs.map +1 -0
- package/dist/run.cjs +3 -1
- package/dist/run.cjs.map +1 -1
- package/dist/run.d.cts +1 -0
- package/dist/run.d.mts +1 -0
- package/dist/run.mjs +3 -1
- package/dist/run.mjs.map +1 -1
- package/dist/{src-CnDKH9rV.cjs → src-CHy94xdb.cjs} +5 -4
- package/dist/src-CHy94xdb.cjs.map +1 -0
- package/dist/{src-novPNOHw.mjs → src-DnaJOx9H.mjs} +5 -4
- package/dist/src-DnaJOx9H.mjs.map +1 -0
- package/package.json +6 -6
- package/dist/openApi-DV_SToAE.cjs +0 -13
- package/dist/openApi-DV_SToAE.cjs.map +0 -1
- package/dist/openApi-Dz9FsU_q.mjs +0 -13
- package/dist/openApi-Dz9FsU_q.mjs.map +0 -1
- package/dist/src-CnDKH9rV.cjs.map +0 -1
- package/dist/src-novPNOHw.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
const e=require(`./openApi-CcUF29dR.cjs`),t=require(`./src-CHy94xdb.cjs`);exports.$=e.d,exports.Logger=t.i,exports.OperationPath=e.y,exports.OperationStrategy=e.b,exports.TsDsl=e._,exports.TsDslContext=e.p,exports.TypeScriptRenderer=e.f,exports.clientDefaultConfig=e.c,exports.clientDefaultMeta=e.l,exports.clientPluginHandler=e.o,exports.createClient=t.r,exports.defaultPaginationKeywords=e.S,exports.defaultPlugins=e.a,exports.defineConfig=t.t,exports.definePluginConfig=e.x,exports.keywords=e.h,exports.regexp=e.g,exports.reserved=e.m,exports.utils=t.n;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { A as OperationPath, C as MaybeTsDsl, D as Client$2, E as TsDslContext, M as IR, N as LazyOrAsync, O as PluginHandler, P as MaybeArray, S as keywords, T as TypeTsDsl, _ as $, a as Plugin, b as TypeScriptRenderer, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as OperationStrategy, k as Casing, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as DollarTsDsl, w as TsDsl, x as regexp, y as reserved } from "./config-DT26kmcq.cjs";
|
|
2
3
|
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
3
4
|
import { Injector } from "@angular/core";
|
|
4
5
|
import { AxiosError, AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosStatic, CreateAxiosDefaults } from "axios";
|
|
@@ -67,7 +68,7 @@ type Client$7<RequestFn$6 = never, Config$7 = unknown, MethodFn$6 = never, Build
|
|
|
67
68
|
} : {
|
|
68
69
|
sse: { [K in HttpMethod]: SseFn$6 };
|
|
69
70
|
});
|
|
70
|
-
interface Config {
|
|
71
|
+
interface Config$6 {
|
|
71
72
|
/**
|
|
72
73
|
* Auth token or a function returning auth token. The resolved value will be
|
|
73
74
|
* added to the request payload as defined by its `security` array.
|
|
@@ -122,7 +123,7 @@ interface Config {
|
|
|
122
123
|
}
|
|
123
124
|
//#endregion
|
|
124
125
|
//#region src/plugins/@hey-api/client-core/bundle/serverSentEvents.d.ts
|
|
125
|
-
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
126
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$6, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
126
127
|
/**
|
|
127
128
|
* Fetch API implementation. You can use this option to provide a custom
|
|
128
129
|
* fetch instance.
|
|
@@ -213,7 +214,7 @@ interface Middleware$3<Req, Res, Err, Options$6> {
|
|
|
213
214
|
//#endregion
|
|
214
215
|
//#region src/plugins/@hey-api/client-angular/bundle/types.d.ts
|
|
215
216
|
type ResponseStyle$2 = 'data' | 'fields';
|
|
216
|
-
interface Config$
|
|
217
|
+
interface Config$5<T extends ClientOptions$5 = ClientOptions$5> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Omit<Config$6, 'headers'> {
|
|
217
218
|
/**
|
|
218
219
|
* Base URL for all requests made by this client.
|
|
219
220
|
*/
|
|
@@ -242,7 +243,7 @@ interface Config$6<T extends ClientOptions$5 = ClientOptions$5> extends Omit<Req
|
|
|
242
243
|
*/
|
|
243
244
|
throwOnError?: T['throwOnError'];
|
|
244
245
|
}
|
|
245
|
-
interface RequestOptions$5<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
246
|
+
interface RequestOptions$5<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$5<{
|
|
246
247
|
responseStyle: TResponseStyle;
|
|
247
248
|
throwOnError: ThrowOnError;
|
|
248
249
|
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -299,7 +300,7 @@ type BuildUrlFn$5 = <TData extends {
|
|
|
299
300
|
query?: Record<string, unknown>;
|
|
300
301
|
url: string;
|
|
301
302
|
}>(options: TData & Options$5<TData>) => string;
|
|
302
|
-
type Client = Client$7<RequestFn$5, Config$
|
|
303
|
+
type Client = Client$7<RequestFn$5, Config$5, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
|
|
303
304
|
interceptors: Middleware$3<HttpRequest<unknown>, HttpResponse<unknown>, unknown, ResolvedRequestOptions$3>;
|
|
304
305
|
requestOptions: RequestOptionsFn;
|
|
305
306
|
};
|
|
@@ -314,7 +315,7 @@ type OmitKeys$5<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
|
|
|
314
315
|
type Options$5<TData extends TDataShape$5 = TDataShape$5, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$2 = 'fields'> = OmitKeys$5<RequestOptions$5<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
315
316
|
//#endregion
|
|
316
317
|
//#region src/plugins/@hey-api/client-axios/bundle/types.d.ts
|
|
317
|
-
interface Config$
|
|
318
|
+
interface Config$4<T extends ClientOptions$4 = ClientOptions$4> extends Omit<CreateAxiosDefaults, 'auth' | 'baseURL' | 'headers' | 'method'>, Config$6 {
|
|
318
319
|
/**
|
|
319
320
|
* Axios implementation. You can use this option to provide either an
|
|
320
321
|
* `AxiosStatic` or an `AxiosInstance`.
|
|
@@ -340,7 +341,7 @@ interface Config$5<T extends ClientOptions$4 = ClientOptions$4> extends Omit<Cre
|
|
|
340
341
|
*/
|
|
341
342
|
throwOnError?: T['throwOnError'];
|
|
342
343
|
}
|
|
343
|
-
interface RequestOptions$4<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
344
|
+
interface RequestOptions$4<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$4<{
|
|
344
345
|
throwOnError: ThrowOnError;
|
|
345
346
|
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
346
347
|
/**
|
|
@@ -376,7 +377,7 @@ type BuildUrlFn$4 = <TData extends {
|
|
|
376
377
|
query?: Record<string, unknown>;
|
|
377
378
|
url: string;
|
|
378
379
|
}>(options: TData & Options$4<TData>) => string;
|
|
379
|
-
type Client$1 = Client$7<RequestFn$4, Config$
|
|
380
|
+
type Client$1 = Client$7<RequestFn$4, Config$4, MethodFn$4, BuildUrlFn$4, SseFn$4> & {
|
|
380
381
|
instance: AxiosInstance;
|
|
381
382
|
};
|
|
382
383
|
interface TDataShape$4 {
|
|
@@ -410,7 +411,7 @@ interface Middleware$2<Req, Res, Err, Options$6> {
|
|
|
410
411
|
//#endregion
|
|
411
412
|
//#region src/plugins/@hey-api/client-fetch/bundle/types.d.ts
|
|
412
413
|
type ResponseStyle$1 = 'data' | 'fields';
|
|
413
|
-
interface Config$
|
|
414
|
+
interface Config$3<T extends ClientOptions$3 = ClientOptions$3> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$6 {
|
|
414
415
|
/**
|
|
415
416
|
* Base URL for all requests made by this client.
|
|
416
417
|
*/
|
|
@@ -451,7 +452,7 @@ interface Config$4<T extends ClientOptions$3 = ClientOptions$3> extends Omit<Req
|
|
|
451
452
|
*/
|
|
452
453
|
throwOnError?: T['throwOnError'];
|
|
453
454
|
}
|
|
454
|
-
interface RequestOptions$3<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
455
|
+
interface RequestOptions$3<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$3<{
|
|
455
456
|
responseStyle: TResponseStyle;
|
|
456
457
|
throwOnError: ThrowOnError;
|
|
457
458
|
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -500,7 +501,7 @@ type BuildUrlFn$3 = <TData extends {
|
|
|
500
501
|
query?: Record<string, unknown>;
|
|
501
502
|
url: string;
|
|
502
503
|
}>(options: TData & Options$3<TData>) => string;
|
|
503
|
-
type Client$3 = Client$7<RequestFn$3, Config$
|
|
504
|
+
type Client$3 = Client$7<RequestFn$3, Config$3, MethodFn$3, BuildUrlFn$3, SseFn$3> & {
|
|
504
505
|
interceptors: Middleware$2<Request, Response, unknown, ResolvedRequestOptions$2>;
|
|
505
506
|
};
|
|
506
507
|
interface TDataShape$3 {
|
|
@@ -533,7 +534,7 @@ interface Middleware$1<Res, Err, Options$6> {
|
|
|
533
534
|
}
|
|
534
535
|
//#endregion
|
|
535
536
|
//#region src/plugins/@hey-api/client-next/bundle/types.d.ts
|
|
536
|
-
interface Config$
|
|
537
|
+
interface Config$2<T extends ClientOptions$2 = ClientOptions$2> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$6 {
|
|
537
538
|
/**
|
|
538
539
|
* Base URL for all requests made by this client.
|
|
539
540
|
*/
|
|
@@ -561,7 +562,7 @@ interface Config$3<T extends ClientOptions$2 = ClientOptions$2> extends Omit<Req
|
|
|
561
562
|
*/
|
|
562
563
|
throwOnError?: T['throwOnError'];
|
|
563
564
|
}
|
|
564
|
-
interface RequestOptions$2<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
565
|
+
interface RequestOptions$2<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$2<{
|
|
565
566
|
throwOnError: ThrowOnError;
|
|
566
567
|
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
567
568
|
/**
|
|
@@ -606,7 +607,7 @@ type BuildUrlFn$2 = <TData extends {
|
|
|
606
607
|
query?: Record<string, unknown>;
|
|
607
608
|
url: string;
|
|
608
609
|
}>(options: TData & Options$2<TData>) => string;
|
|
609
|
-
type Client$4 = Client$7<RequestFn$2, Config$
|
|
610
|
+
type Client$4 = Client$7<RequestFn$2, Config$2, MethodFn$2, BuildUrlFn$2, SseFn$2> & {
|
|
610
611
|
interceptors: Middleware$1<Response, unknown, ResolvedRequestOptions$1>;
|
|
611
612
|
};
|
|
612
613
|
interface TDataShape$2 {
|
|
@@ -621,9 +622,9 @@ type Options$2<TData extends TDataShape$2 = TDataShape$2, ThrowOnError extends b
|
|
|
621
622
|
//#endregion
|
|
622
623
|
//#region src/plugins/@hey-api/client-nuxt/bundle/types.d.ts
|
|
623
624
|
type QuerySerializer = (query: Parameters<Client$5['buildUrl']>[0]['query']) => string;
|
|
624
|
-
type WithRefs<TData> = { [K in keyof TData]: NonNullable<TData[K]> extends object ? WithRefs<NonNullable<TData[K]>> | Ref$1<NonNullable<TData[K]>> : NonNullable<TData[K]> | Ref$1<NonNullable<TData[K]>> };
|
|
625
|
+
type WithRefs<TData> = { [K in keyof TData]: NonNullable<TData[K]> extends object ? WithRefs<NonNullable<TData[K]>> | Ref$1<NonNullable<TData[K]>> | Extract<TData[K], null> : NonNullable<TData[K]> | Ref$1<NonNullable<TData[K]>> | Extract<TData[K], null> };
|
|
625
626
|
type KeysOf<T> = Array<T extends T ? (keyof T extends string ? keyof T : never) : never>;
|
|
626
|
-
interface Config$
|
|
627
|
+
interface Config$1<T extends ClientOptions$1 = ClientOptions$1> extends Omit<FetchOptions$1<unknown>, 'baseURL' | 'body' | 'headers' | 'method' | 'query'>, WithRefs<Pick<FetchOptions$1<unknown>, 'query'>>, Omit<Config$6, 'querySerializer'> {
|
|
627
628
|
/**
|
|
628
629
|
* Base URL for all requests made by this client.
|
|
629
630
|
*/
|
|
@@ -637,20 +638,20 @@ interface Config$2<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Fet
|
|
|
637
638
|
*/
|
|
638
639
|
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
639
640
|
}
|
|
640
|
-
interface RequestOptions$1<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$
|
|
641
|
+
interface RequestOptions$1<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$1, WithRefs<{
|
|
642
|
+
path?: FetchOptions$1<unknown>['query'];
|
|
643
|
+
query?: FetchOptions$1<unknown>['query'];
|
|
644
|
+
}>, Pick<ServerSentEventsOptions<ResT>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
645
|
+
asyncDataOptions?: AsyncDataOptions<ResT, ResT, KeysOf<ResT>, DefaultT>;
|
|
641
646
|
/**
|
|
642
647
|
* Any body that you want to add to your request.
|
|
643
648
|
*
|
|
644
649
|
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
645
650
|
*/
|
|
646
|
-
body?: unknown;
|
|
647
|
-
path?: FetchOptions$1<unknown>['query'];
|
|
648
|
-
query?: FetchOptions$1<unknown>['query'];
|
|
649
|
-
rawBody?: unknown;
|
|
650
|
-
}>, Pick<ServerSentEventsOptions<ResT>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
651
|
-
asyncDataOptions?: AsyncDataOptions<ResT, ResT, KeysOf<ResT>, DefaultT>;
|
|
651
|
+
body?: NonNullable<unknown> | Ref$1<NonNullable<unknown>> | null;
|
|
652
652
|
composable?: TComposable;
|
|
653
653
|
key?: string;
|
|
654
|
+
rawBody?: NonNullable<unknown> | Ref$1<NonNullable<unknown>> | null;
|
|
654
655
|
/**
|
|
655
656
|
* Security mechanism(s) to use for the request.
|
|
656
657
|
*/
|
|
@@ -682,7 +683,7 @@ interface TDataShape$1 {
|
|
|
682
683
|
}
|
|
683
684
|
type BuildUrlOptions<TData extends Omit<TDataShape$1, 'headers'> = Omit<TDataShape$1, 'headers'>> = Pick<WithRefs<TData>, 'path' | 'query'> & Pick<TData, 'url'> & Pick<Options$1<'$fetch', TData>, 'baseURL' | 'querySerializer'>;
|
|
684
685
|
type BuildUrlFn$1 = <TData extends Omit<TDataShape$1, 'headers'>>(options: BuildUrlOptions<TData>) => string;
|
|
685
|
-
type Client$5 = Client$7<RequestFn$1, Config$
|
|
686
|
+
type Client$5 = Client$7<RequestFn$1, Config$1, MethodFn$1, BuildUrlFn$1, SseFn$1>;
|
|
686
687
|
type OmitKeys$1<T, K$1> = Pick<T, Exclude<keyof T, K$1>>;
|
|
687
688
|
type Options$1<TComposable extends Composable = '$fetch', TData extends TDataShape$1 = TDataShape$1, ResT = unknown, DefaultT = undefined> = OmitKeys$1<RequestOptions$1<TComposable, ResT, DefaultT>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : WithRefs<Omit<TData, 'url'>>);
|
|
688
689
|
type FetchOptions$1<TData> = Omit<UseFetchOptions<TData, TData>, keyof AsyncDataOptions<TData>>;
|
|
@@ -709,7 +710,7 @@ interface Middleware<Req, Res, Err, Options$6> {
|
|
|
709
710
|
//#endregion
|
|
710
711
|
//#region src/plugins/@hey-api/client-ofetch/bundle/types.d.ts
|
|
711
712
|
type ResponseStyle = 'data' | 'fields';
|
|
712
|
-
interface Config
|
|
713
|
+
interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$6 {
|
|
713
714
|
/**
|
|
714
715
|
* HTTP(S) agent configuration (Node.js only). Passed through to ofetch.
|
|
715
716
|
*/
|
|
@@ -810,7 +811,7 @@ interface Config$1<T extends ClientOptions = ClientOptions> extends Omit<Request
|
|
|
810
811
|
*/
|
|
811
812
|
timeout?: number;
|
|
812
813
|
}
|
|
813
|
-
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config
|
|
814
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
814
815
|
responseStyle: TResponseStyle;
|
|
815
816
|
throwOnError: ThrowOnError;
|
|
816
817
|
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -859,7 +860,7 @@ type BuildUrlFn = <TData extends {
|
|
|
859
860
|
query?: Record<string, unknown>;
|
|
860
861
|
url: string;
|
|
861
862
|
}>(options: TData & Options<TData>) => string;
|
|
862
|
-
type Client$6 = Client$7<RequestFn, Config
|
|
863
|
+
type Client$6 = Client$7<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
863
864
|
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
864
865
|
};
|
|
865
866
|
interface TDataShape {
|
|
@@ -917,15 +918,31 @@ declare const definePluginConfig: <T extends Plugin.Types>(defaultConfig: Plugin
|
|
|
917
918
|
};
|
|
918
919
|
//#endregion
|
|
919
920
|
//#region src/utils/exports.d.ts
|
|
921
|
+
/**
|
|
922
|
+
* Utilities shared across the package.
|
|
923
|
+
*/
|
|
920
924
|
declare const utils: {
|
|
921
|
-
|
|
922
|
-
|
|
925
|
+
/**
|
|
926
|
+
* @deprecated use `toCase` instead
|
|
927
|
+
*/
|
|
928
|
+
stringCase({
|
|
929
|
+
case: casing,
|
|
923
930
|
stripLeadingSeparators,
|
|
924
931
|
value
|
|
925
932
|
}: {
|
|
926
|
-
readonly case:
|
|
933
|
+
readonly case: Casing | undefined;
|
|
934
|
+
/**
|
|
935
|
+
* If leading separators have a semantic meaning, we might not want to
|
|
936
|
+
* remove them.
|
|
937
|
+
*/
|
|
927
938
|
stripLeadingSeparators?: boolean;
|
|
928
939
|
value: string;
|
|
940
|
+
}): string;
|
|
941
|
+
/**
|
|
942
|
+
* Converts the given string to the specified casing.
|
|
943
|
+
*/
|
|
944
|
+
toCase: (value: string, casing: Casing | undefined, options?: {
|
|
945
|
+
stripLeadingSeparators?: boolean;
|
|
929
946
|
}) => string;
|
|
930
947
|
};
|
|
931
948
|
//#endregion
|
|
@@ -967,5 +984,5 @@ declare module '@hey-api/codegen-core' {
|
|
|
967
984
|
*/
|
|
968
985
|
declare const defineConfig: <T extends MaybeArray<UserConfig>>(config: LazyOrAsync<T>) => Promise<T>;
|
|
969
986
|
//#endregion
|
|
970
|
-
export { $, type Client as AngularClient, type Client$1 as AxiosClient, type Client$2 as Client, type DefinePlugin, DollarTsDsl, type ExpressionTransformer, type Client$3 as FetchClient, type IR, Logger, MaybeTsDsl, type Client$4 as NextClient, type Client$5 as NuxtClient, type Client$6 as OfetchClient, type OpenApi, type OpenApiMetaObject, type OpenApiOperationObject, type OpenApiParameterObject, type OpenApiRequestBodyObject, type OpenApiResponseObject, type OpenApiSchemaObject, type Plugin, TsDsl, TypeScriptRenderer, type TypeTransformer, TypeTsDsl, type UserConfig, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, keywords, regexp, reserved, utils };
|
|
987
|
+
export { $, type Client as AngularClient, type Client$1 as AxiosClient, type Client$2 as Client, type DefinePlugin, DollarTsDsl, type ExpressionTransformer, type Client$3 as FetchClient, type IR, Logger, MaybeTsDsl, type Client$4 as NextClient, type Client$5 as NuxtClient, type Client$6 as OfetchClient, type OpenApi, type OpenApiMetaObject, type OpenApiOperationObject, type OpenApiParameterObject, type OpenApiRequestBodyObject, type OpenApiResponseObject, type OpenApiSchemaObject, OperationPath, OperationStrategy, type Plugin, TsDsl, TsDslContext, TypeScriptRenderer, type TypeTransformer, TypeTsDsl, type UserConfig, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, keywords, regexp, reserved, utils };
|
|
971
988
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { A as Client$5, B as MaybeArray, C as MaybeTsDsl, D as Client$2, E as TsDslContext, F as Casing, I as OperationPath, L as OperationStrategy, M as Client$3, N as Client$1, O as PluginHandler, P as Client, R as IR, S as keywords, T as TypeTsDsl, _ as $, a as Plugin, b as TypeScriptRenderer, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as Client$4, k as Client$6, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as DollarTsDsl, w as TsDsl, x as regexp, y as reserved, z as LazyOrAsync } from "./config-Dis5Gu6e.mjs";
|
|
2
3
|
import "@hey-api/codegen-core";
|
|
3
4
|
|
|
4
5
|
//#region src/generate.d.ts
|
|
@@ -47,15 +48,31 @@ declare const definePluginConfig: <T extends Plugin.Types>(defaultConfig: Plugin
|
|
|
47
48
|
};
|
|
48
49
|
//#endregion
|
|
49
50
|
//#region src/utils/exports.d.ts
|
|
51
|
+
/**
|
|
52
|
+
* Utilities shared across the package.
|
|
53
|
+
*/
|
|
50
54
|
declare const utils: {
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated use `toCase` instead
|
|
57
|
+
*/
|
|
58
|
+
stringCase({
|
|
59
|
+
case: casing,
|
|
53
60
|
stripLeadingSeparators,
|
|
54
61
|
value
|
|
55
62
|
}: {
|
|
56
|
-
readonly case:
|
|
63
|
+
readonly case: Casing | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* If leading separators have a semantic meaning, we might not want to
|
|
66
|
+
* remove them.
|
|
67
|
+
*/
|
|
57
68
|
stripLeadingSeparators?: boolean;
|
|
58
69
|
value: string;
|
|
70
|
+
}): string;
|
|
71
|
+
/**
|
|
72
|
+
* Converts the given string to the specified casing.
|
|
73
|
+
*/
|
|
74
|
+
toCase: (value: string, casing: Casing | undefined, options?: {
|
|
75
|
+
stripLeadingSeparators?: boolean;
|
|
59
76
|
}) => string;
|
|
60
77
|
};
|
|
61
78
|
//#endregion
|
|
@@ -97,5 +114,5 @@ declare module '@hey-api/codegen-core' {
|
|
|
97
114
|
*/
|
|
98
115
|
declare const defineConfig: <T extends MaybeArray<UserConfig>>(config: LazyOrAsync<T>) => Promise<T>;
|
|
99
116
|
//#endregion
|
|
100
|
-
export { $, type Client as AngularClient, type Client$1 as AxiosClient, type Client$2 as Client, type DefinePlugin, DollarTsDsl, type ExpressionTransformer, type Client$3 as FetchClient, type IR, Logger, MaybeTsDsl, type Client$4 as NextClient, type Client$5 as NuxtClient, type Client$6 as OfetchClient, type OpenApi, type OpenApiMetaObject, type OpenApiOperationObject, type OpenApiParameterObject, type OpenApiRequestBodyObject, type OpenApiResponseObject, type OpenApiSchemaObject, type Plugin, TsDsl, TypeScriptRenderer, type TypeTransformer, TypeTsDsl, type UserConfig, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, keywords, regexp, reserved, utils };
|
|
117
|
+
export { $, type Client as AngularClient, type Client$1 as AxiosClient, type Client$2 as Client, type DefinePlugin, DollarTsDsl, type ExpressionTransformer, type Client$3 as FetchClient, type IR, Logger, MaybeTsDsl, type Client$4 as NextClient, type Client$5 as NuxtClient, type Client$6 as OfetchClient, type OpenApi, type OpenApiMetaObject, type OpenApiOperationObject, type OpenApiParameterObject, type OpenApiRequestBodyObject, type OpenApiResponseObject, type OpenApiSchemaObject, OperationPath, OperationStrategy, type Plugin, TsDsl, TsDslContext, TypeScriptRenderer, type TypeTransformer, TypeTsDsl, type UserConfig, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, keywords, regexp, reserved, utils };
|
|
101
118
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import{S as e,_ as t,a as n,b as r,c as i,d as a,f as o,g as s,h as c,l,m as u,o as d,p as f,x as p,y as m}from"./openApi-BU6F2oHy.mjs";import{i as h,n as g,r as _,t as v}from"./src-DnaJOx9H.mjs";export{a as $,h as Logger,m as OperationPath,r as OperationStrategy,t as TsDsl,f as TsDslContext,o as TypeScriptRenderer,i as clientDefaultConfig,l as clientDefaultMeta,d as clientPluginHandler,_ as createClient,e as defaultPaginationKeywords,n as defaultPlugins,v as defineConfig,p as definePluginConfig,c as keywords,s as regexp,u as reserved,g as utils};
|
package/dist/internal.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
const e=require(`./openApi-CcUF29dR.cjs`);exports.getSpec=e.r,exports.initConfigs=e.i,exports.parseOpenApiSpec=e.t;
|
package/dist/internal.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-DT26kmcq.cjs";
|
|
2
3
|
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
3
4
|
|
|
4
5
|
//#region src/config/init.d.ts
|
package/dist/internal.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-Dis5Gu6e.mjs";
|
|
2
3
|
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
3
4
|
|
|
4
5
|
//#region src/config/init.d.ts
|
package/dist/internal.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import{i as e,r as t,t as n}from"./openApi-BU6F2oHy.mjs";export{t as getSpec,e as initConfigs,n as parseOpenApiSpec};
|