@hey-api/openapi-ts 0.90.3 → 0.90.4
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/clients/fetch/client.ts +7 -1
- package/dist/clients/ky/client.ts +7 -1
- package/dist/clients/next/client.ts +7 -1
- package/dist/{config-kLkHIaUr.d.mts → config-BY6SQ9vq.d.mts} +96 -1
- package/dist/{config-Cmhj4J0r.d.cts → config-BpoUoSpn.d.cts} +96 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.mts +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/{openApi-BetJIgjU.cjs → openApi-3_A4QzK7.cjs} +311 -64
- package/dist/openApi-3_A4QzK7.cjs.map +1 -0
- package/dist/{openApi-Ci-wjGgv.mjs → openApi-D6jppAcA.mjs} +311 -64
- package/dist/openApi-D6jppAcA.mjs.map +1 -0
- package/dist/run.cjs +3 -3
- package/dist/run.mjs +3 -3
- package/dist/{src-CV7EsNIp.mjs → src-CGmZM4HZ.mjs} +2 -2
- package/dist/{src-CV7EsNIp.mjs.map → src-CGmZM4HZ.mjs.map} +1 -1
- package/dist/{src-CJqsBn3S.cjs → src-CsHLuAJv.cjs} +2 -2
- package/dist/{src-CJqsBn3S.cjs.map → src-CsHLuAJv.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/openApi-BetJIgjU.cjs.map +0 -1
- package/dist/openApi-Ci-wjGgv.mjs.map +0 -1
|
@@ -180,10 +180,16 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
180
180
|
case 'arrayBuffer':
|
|
181
181
|
case 'blob':
|
|
182
182
|
case 'formData':
|
|
183
|
-
case 'json':
|
|
184
183
|
case 'text':
|
|
185
184
|
data = await response[parseAs]();
|
|
186
185
|
break;
|
|
186
|
+
case 'json': {
|
|
187
|
+
// Some servers return 200 with no Content-Length and empty body.
|
|
188
|
+
// response.json() would throw; read as text and parse if non-empty.
|
|
189
|
+
const text = await response.text();
|
|
190
|
+
data = text ? JSON.parse(text) : {};
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
187
193
|
case 'stream':
|
|
188
194
|
return opts.responseStyle === 'data'
|
|
189
195
|
? response.body
|
|
@@ -249,10 +249,16 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
249
249
|
case 'arrayBuffer':
|
|
250
250
|
case 'blob':
|
|
251
251
|
case 'formData':
|
|
252
|
-
case 'json':
|
|
253
252
|
case 'text':
|
|
254
253
|
data = await response[parseAs]();
|
|
255
254
|
break;
|
|
255
|
+
case 'json': {
|
|
256
|
+
// Some servers return 200 with no Content-Length and empty body.
|
|
257
|
+
// response.json() would throw; read as text and parse if non-empty.
|
|
258
|
+
const text = await response.text();
|
|
259
|
+
data = text ? JSON.parse(text) : {};
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
256
262
|
case 'stream':
|
|
257
263
|
return opts.responseStyle === 'data'
|
|
258
264
|
? response.body
|
|
@@ -142,10 +142,16 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
142
142
|
case 'arrayBuffer':
|
|
143
143
|
case 'blob':
|
|
144
144
|
case 'formData':
|
|
145
|
-
case 'json':
|
|
146
145
|
case 'text':
|
|
147
146
|
data = await response[parseAs]();
|
|
148
147
|
break;
|
|
148
|
+
case 'json': {
|
|
149
|
+
// Some servers return 200 with no Content-Length and empty body.
|
|
150
|
+
// response.json() would throw; read as text and parse if non-empty.
|
|
151
|
+
const text = await response.text();
|
|
152
|
+
data = text ? JSON.parse(text) : {};
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
149
155
|
case 'stream':
|
|
150
156
|
return {
|
|
151
157
|
data: response.body,
|
|
@@ -13938,6 +13938,14 @@ type GetIntegerLimit = (format: string | undefined) => IntegerLimit | undefined;
|
|
|
13938
13938
|
//#endregion
|
|
13939
13939
|
//#region src/plugins/valibot/resolvers/types.d.ts
|
|
13940
13940
|
type Resolvers$1 = Plugin.Resolvers<{
|
|
13941
|
+
/**
|
|
13942
|
+
* Resolver for enum schemas.
|
|
13943
|
+
*
|
|
13944
|
+
* Allows customization of how enum types are rendered.
|
|
13945
|
+
*
|
|
13946
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
13947
|
+
*/
|
|
13948
|
+
enum?: (ctx: EnumResolverContext$1) => PipeResult | undefined;
|
|
13941
13949
|
/**
|
|
13942
13950
|
* Resolver for number schemas.
|
|
13943
13951
|
*
|
|
@@ -14014,6 +14022,41 @@ interface BaseContext$1 extends DollarTsDsl {
|
|
|
14014
14022
|
v: Symbol;
|
|
14015
14023
|
};
|
|
14016
14024
|
}
|
|
14025
|
+
interface EnumResolverContext$1 extends BaseContext$1 {
|
|
14026
|
+
/**
|
|
14027
|
+
* Nodes used to build different parts of the enum schema.
|
|
14028
|
+
*/
|
|
14029
|
+
nodes: {
|
|
14030
|
+
/**
|
|
14031
|
+
* Returns the base enum expression (v.picklist([...])).
|
|
14032
|
+
*/
|
|
14033
|
+
base: (ctx: EnumResolverContext$1) => PipeResult;
|
|
14034
|
+
/**
|
|
14035
|
+
* Returns parsed enum items with metadata about the enum members.
|
|
14036
|
+
*/
|
|
14037
|
+
items: (ctx: EnumResolverContext$1) => {
|
|
14038
|
+
/**
|
|
14039
|
+
* String literal values for use with v.picklist([...]).
|
|
14040
|
+
*/
|
|
14041
|
+
enumMembers: Array<ReturnType<typeof $.literal>>;
|
|
14042
|
+
/**
|
|
14043
|
+
* Whether the enum includes a null value.
|
|
14044
|
+
*/
|
|
14045
|
+
isNullable: boolean;
|
|
14046
|
+
};
|
|
14047
|
+
/**
|
|
14048
|
+
* Returns a nullable wrapper if the enum includes null, undefined otherwise.
|
|
14049
|
+
*/
|
|
14050
|
+
nullable: (ctx: EnumResolverContext$1) => PipeResult | undefined;
|
|
14051
|
+
};
|
|
14052
|
+
schema: SchemaWithType<'enum'>;
|
|
14053
|
+
/**
|
|
14054
|
+
* Utility functions for enum schema processing.
|
|
14055
|
+
*/
|
|
14056
|
+
utils: {
|
|
14057
|
+
state: Refs<PluginState$1>;
|
|
14058
|
+
};
|
|
14059
|
+
}
|
|
14017
14060
|
interface NumberResolverContext$1 extends BaseContext$1 {
|
|
14018
14061
|
/**
|
|
14019
14062
|
* Nodes used to build different parts of the number schema.
|
|
@@ -14309,6 +14352,14 @@ type Chain = ReturnType<typeof $.call | typeof $.expr>;
|
|
|
14309
14352
|
//#endregion
|
|
14310
14353
|
//#region src/plugins/zod/resolvers/types.d.ts
|
|
14311
14354
|
type Resolvers = Plugin.Resolvers<{
|
|
14355
|
+
/**
|
|
14356
|
+
* Resolver for enum schemas.
|
|
14357
|
+
*
|
|
14358
|
+
* Allows customization of how enum types are rendered.
|
|
14359
|
+
*
|
|
14360
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
14361
|
+
*/
|
|
14362
|
+
enum?: (ctx: EnumResolverContext) => Chain | undefined;
|
|
14312
14363
|
/**
|
|
14313
14364
|
* Resolver for number schemas.
|
|
14314
14365
|
*
|
|
@@ -14385,6 +14436,50 @@ interface BaseContext extends DollarTsDsl {
|
|
|
14385
14436
|
z: Symbol;
|
|
14386
14437
|
};
|
|
14387
14438
|
}
|
|
14439
|
+
interface EnumResolverContext extends BaseContext {
|
|
14440
|
+
/**
|
|
14441
|
+
* Nodes used to build different parts of the enum schema.
|
|
14442
|
+
*/
|
|
14443
|
+
nodes: {
|
|
14444
|
+
/**
|
|
14445
|
+
* Returns the base enum expression (z.enum([...]) or z.union([...]) for mixed types).
|
|
14446
|
+
*/
|
|
14447
|
+
base: (ctx: EnumResolverContext) => Chain;
|
|
14448
|
+
/**
|
|
14449
|
+
* Returns parsed enum items with metadata about the enum members.
|
|
14450
|
+
*/
|
|
14451
|
+
items: (ctx: EnumResolverContext) => {
|
|
14452
|
+
/**
|
|
14453
|
+
* Whether all enum items are strings (determines if z.enum can be used).
|
|
14454
|
+
*/
|
|
14455
|
+
allStrings: boolean;
|
|
14456
|
+
/**
|
|
14457
|
+
* String literal values for use with z.enum([...]).
|
|
14458
|
+
*/
|
|
14459
|
+
enumMembers: Array<ReturnType<typeof $.literal>>;
|
|
14460
|
+
/**
|
|
14461
|
+
* Whether the enum includes a null value.
|
|
14462
|
+
*/
|
|
14463
|
+
isNullable: boolean;
|
|
14464
|
+
/**
|
|
14465
|
+
* z.literal(...) expressions for each non-null enum value.
|
|
14466
|
+
*/
|
|
14467
|
+
literalMembers: Array<Chain>;
|
|
14468
|
+
};
|
|
14469
|
+
/**
|
|
14470
|
+
* Returns a nullable wrapper if the enum includes null, undefined otherwise.
|
|
14471
|
+
*/
|
|
14472
|
+
nullable: (ctx: EnumResolverContext) => Chain | undefined;
|
|
14473
|
+
};
|
|
14474
|
+
schema: SchemaWithType<'enum'>;
|
|
14475
|
+
/**
|
|
14476
|
+
* Utility functions for enum schema processing.
|
|
14477
|
+
*/
|
|
14478
|
+
utils: {
|
|
14479
|
+
ast: Partial<Omit<Ast, 'typeName'>>;
|
|
14480
|
+
state: Refs<PluginState>;
|
|
14481
|
+
};
|
|
14482
|
+
}
|
|
14388
14483
|
interface NumberResolverContext extends BaseContext {
|
|
14389
14484
|
/**
|
|
14390
14485
|
* Nodes used to build different parts of the number schema.
|
|
@@ -16402,4 +16497,4 @@ type Config = Omit<Required<UserConfig>, 'input' | 'logs' | 'output' | 'parser'
|
|
|
16402
16497
|
};
|
|
16403
16498
|
//#endregion
|
|
16404
16499
|
export { keywords as A, IR as B, Client$5 as C, reserved as D, DollarTsDsl as E, TsDslContext as F, LazyOrAsync as H, ctx as I, CallArgs as L, TsDsl as M, TypeTsDsl as N, TypeScriptRenderer as O, ExampleOptions as P, OperationPath as R, Client$4 as S, $ as T, MaybeArray$1 as U, Casing as V, Client as _, Plugin as a, Client$2 as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, MaybeTsDsl as j, regexp as k, OpenApiParameterObject as l, Logger as m, UserConfig as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, PluginHandler as v, Client$6 as w, Client$3 as x, Client$1 as y, OperationStrategy as z };
|
|
16405
|
-
//# sourceMappingURL=config-
|
|
16500
|
+
//# sourceMappingURL=config-BY6SQ9vq.d.mts.map
|
|
@@ -13066,6 +13066,14 @@ type GetIntegerLimit = (format: string | undefined) => IntegerLimit | undefined;
|
|
|
13066
13066
|
//#endregion
|
|
13067
13067
|
//#region src/plugins/valibot/resolvers/types.d.ts
|
|
13068
13068
|
type Resolvers$1 = Plugin.Resolvers<{
|
|
13069
|
+
/**
|
|
13070
|
+
* Resolver for enum schemas.
|
|
13071
|
+
*
|
|
13072
|
+
* Allows customization of how enum types are rendered.
|
|
13073
|
+
*
|
|
13074
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
13075
|
+
*/
|
|
13076
|
+
enum?: (ctx: EnumResolverContext$1) => PipeResult | undefined;
|
|
13069
13077
|
/**
|
|
13070
13078
|
* Resolver for number schemas.
|
|
13071
13079
|
*
|
|
@@ -13142,6 +13150,41 @@ interface BaseContext$1 extends DollarTsDsl {
|
|
|
13142
13150
|
v: Symbol;
|
|
13143
13151
|
};
|
|
13144
13152
|
}
|
|
13153
|
+
interface EnumResolverContext$1 extends BaseContext$1 {
|
|
13154
|
+
/**
|
|
13155
|
+
* Nodes used to build different parts of the enum schema.
|
|
13156
|
+
*/
|
|
13157
|
+
nodes: {
|
|
13158
|
+
/**
|
|
13159
|
+
* Returns the base enum expression (v.picklist([...])).
|
|
13160
|
+
*/
|
|
13161
|
+
base: (ctx: EnumResolverContext$1) => PipeResult;
|
|
13162
|
+
/**
|
|
13163
|
+
* Returns parsed enum items with metadata about the enum members.
|
|
13164
|
+
*/
|
|
13165
|
+
items: (ctx: EnumResolverContext$1) => {
|
|
13166
|
+
/**
|
|
13167
|
+
* String literal values for use with v.picklist([...]).
|
|
13168
|
+
*/
|
|
13169
|
+
enumMembers: Array<ReturnType<typeof $.literal>>;
|
|
13170
|
+
/**
|
|
13171
|
+
* Whether the enum includes a null value.
|
|
13172
|
+
*/
|
|
13173
|
+
isNullable: boolean;
|
|
13174
|
+
};
|
|
13175
|
+
/**
|
|
13176
|
+
* Returns a nullable wrapper if the enum includes null, undefined otherwise.
|
|
13177
|
+
*/
|
|
13178
|
+
nullable: (ctx: EnumResolverContext$1) => PipeResult | undefined;
|
|
13179
|
+
};
|
|
13180
|
+
schema: SchemaWithType<'enum'>;
|
|
13181
|
+
/**
|
|
13182
|
+
* Utility functions for enum schema processing.
|
|
13183
|
+
*/
|
|
13184
|
+
utils: {
|
|
13185
|
+
state: Refs<PluginState$1>;
|
|
13186
|
+
};
|
|
13187
|
+
}
|
|
13145
13188
|
interface NumberResolverContext$1 extends BaseContext$1 {
|
|
13146
13189
|
/**
|
|
13147
13190
|
* Nodes used to build different parts of the number schema.
|
|
@@ -13437,6 +13480,14 @@ type Chain = ReturnType<typeof $.call | typeof $.expr>;
|
|
|
13437
13480
|
//#endregion
|
|
13438
13481
|
//#region src/plugins/zod/resolvers/types.d.ts
|
|
13439
13482
|
type Resolvers = Plugin.Resolvers<{
|
|
13483
|
+
/**
|
|
13484
|
+
* Resolver for enum schemas.
|
|
13485
|
+
*
|
|
13486
|
+
* Allows customization of how enum types are rendered.
|
|
13487
|
+
*
|
|
13488
|
+
* Returning `undefined` will execute the default resolver logic.
|
|
13489
|
+
*/
|
|
13490
|
+
enum?: (ctx: EnumResolverContext) => Chain | undefined;
|
|
13440
13491
|
/**
|
|
13441
13492
|
* Resolver for number schemas.
|
|
13442
13493
|
*
|
|
@@ -13513,6 +13564,50 @@ interface BaseContext extends DollarTsDsl {
|
|
|
13513
13564
|
z: Symbol;
|
|
13514
13565
|
};
|
|
13515
13566
|
}
|
|
13567
|
+
interface EnumResolverContext extends BaseContext {
|
|
13568
|
+
/**
|
|
13569
|
+
* Nodes used to build different parts of the enum schema.
|
|
13570
|
+
*/
|
|
13571
|
+
nodes: {
|
|
13572
|
+
/**
|
|
13573
|
+
* Returns the base enum expression (z.enum([...]) or z.union([...]) for mixed types).
|
|
13574
|
+
*/
|
|
13575
|
+
base: (ctx: EnumResolverContext) => Chain;
|
|
13576
|
+
/**
|
|
13577
|
+
* Returns parsed enum items with metadata about the enum members.
|
|
13578
|
+
*/
|
|
13579
|
+
items: (ctx: EnumResolverContext) => {
|
|
13580
|
+
/**
|
|
13581
|
+
* Whether all enum items are strings (determines if z.enum can be used).
|
|
13582
|
+
*/
|
|
13583
|
+
allStrings: boolean;
|
|
13584
|
+
/**
|
|
13585
|
+
* String literal values for use with z.enum([...]).
|
|
13586
|
+
*/
|
|
13587
|
+
enumMembers: Array<ReturnType<typeof $.literal>>;
|
|
13588
|
+
/**
|
|
13589
|
+
* Whether the enum includes a null value.
|
|
13590
|
+
*/
|
|
13591
|
+
isNullable: boolean;
|
|
13592
|
+
/**
|
|
13593
|
+
* z.literal(...) expressions for each non-null enum value.
|
|
13594
|
+
*/
|
|
13595
|
+
literalMembers: Array<Chain>;
|
|
13596
|
+
};
|
|
13597
|
+
/**
|
|
13598
|
+
* Returns a nullable wrapper if the enum includes null, undefined otherwise.
|
|
13599
|
+
*/
|
|
13600
|
+
nullable: (ctx: EnumResolverContext) => Chain | undefined;
|
|
13601
|
+
};
|
|
13602
|
+
schema: SchemaWithType<'enum'>;
|
|
13603
|
+
/**
|
|
13604
|
+
* Utility functions for enum schema processing.
|
|
13605
|
+
*/
|
|
13606
|
+
utils: {
|
|
13607
|
+
ast: Partial<Omit<Ast, 'typeName'>>;
|
|
13608
|
+
state: Refs<PluginState>;
|
|
13609
|
+
};
|
|
13610
|
+
}
|
|
13516
13611
|
interface NumberResolverContext extends BaseContext {
|
|
13517
13612
|
/**
|
|
13518
13613
|
* Nodes used to build different parts of the number schema.
|
|
@@ -15530,4 +15625,4 @@ type Config = Omit<Required<UserConfig>, 'input' | 'logs' | 'output' | 'parser'
|
|
|
15530
15625
|
};
|
|
15531
15626
|
//#endregion
|
|
15532
15627
|
export { ctx as A, regexp as C, TypeTsDsl as D, TsDsl as E, Casing as F, LazyOrAsync as I, MaybeArray$1 as L, OperationPath as M, OperationStrategy as N, ExampleOptions as O, IR as P, TypeScriptRenderer as S, MaybeTsDsl as T, Client as _, Plugin as a, DollarTsDsl as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, CallArgs as j, TsDslContext as k, OpenApiParameterObject as l, Logger as m, UserConfig as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, PluginHandler as v, keywords as w, reserved as x, $ as y };
|
|
15533
|
-
//# sourceMappingURL=config-
|
|
15628
|
+
//# sourceMappingURL=config-BpoUoSpn.d.cts.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
const require_openApi = require('./openApi-
|
|
3
|
-
const require_src = require('./src-
|
|
2
|
+
const require_openApi = require('./openApi-3_A4QzK7.cjs');
|
|
3
|
+
const require_src = require('./src-CsHLuAJv.cjs');
|
|
4
4
|
|
|
5
5
|
exports.$ = require_openApi.$;
|
|
6
6
|
exports.Logger = require_src.Logger;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { A as ctx, C as regexp, D as TypeTsDsl, E as TsDsl, F as Casing, I as LazyOrAsync, L as MaybeArray, M as OperationPath, N as OperationStrategy, O as ExampleOptions, P as IR, S as TypeScriptRenderer, T as MaybeTsDsl, _ as Client$2, a as Plugin, b as DollarTsDsl, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as CallArgs, k as TsDslContext, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as PluginHandler, w as keywords, x as reserved, y as $ } from "./config-
|
|
2
|
+
import { A as ctx, C as regexp, D as TypeTsDsl, E as TsDsl, F as Casing, I as LazyOrAsync, L as MaybeArray, M as OperationPath, N as OperationStrategy, O as ExampleOptions, P as IR, S as TypeScriptRenderer, T as MaybeTsDsl, _ as Client$2, a as Plugin, b as DollarTsDsl, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as CallArgs, k as TsDslContext, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as PluginHandler, w as keywords, x as reserved, y as $ } from "./config-BpoUoSpn.cjs";
|
|
3
3
|
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
4
4
|
import { Injector } from "@angular/core";
|
|
5
5
|
import { AxiosError, AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosStatic, CreateAxiosDefaults } from "axios";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { A as keywords, B as IR, C as Client$1, D as reserved, E as DollarTsDsl, F as TsDslContext, H as LazyOrAsync, I as ctx, L as CallArgs, M as TsDsl, N as TypeTsDsl, O as TypeScriptRenderer, P as ExampleOptions, R as OperationPath, S as Client$3, T as $, U as MaybeArray, V as Casing, _ as Client$2, a as Plugin, b as Client$5, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as MaybeTsDsl, k as regexp, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as PluginHandler, w as Client, x as Client$4, y as Client$6, z as OperationStrategy } from "./config-
|
|
2
|
+
import { A as keywords, B as IR, C as Client$1, D as reserved, E as DollarTsDsl, F as TsDslContext, H as LazyOrAsync, I as ctx, L as CallArgs, M as TsDsl, N as TypeTsDsl, O as TypeScriptRenderer, P as ExampleOptions, R as OperationPath, S as Client$3, T as $, U as MaybeArray, V as Casing, _ as Client$2, a as Plugin, b as Client$5, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as MaybeTsDsl, k as regexp, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as PluginHandler, w as Client, x as Client$4, y as Client$6, z as OperationStrategy } from "./config-BY6SQ9vq.mjs";
|
|
3
3
|
import "@hey-api/codegen-core";
|
|
4
4
|
|
|
5
5
|
//#region src/generate.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { C as defaultPaginationKeywords, S as definePluginConfig, _ as regexp, a as defaultPlugins, b as OperationPath, c as clientDefaultConfig, d as $, f as TypeScriptRenderer, g as keywords, h as reserved, l as clientDefaultMeta, m as ctx, o as clientPluginHandler, p as TsDslContext, v as TsDsl, x as OperationStrategy } from "./openApi-
|
|
3
|
-
import { i as Logger, n as utils, r as createClient, t as defineConfig } from "./src-
|
|
2
|
+
import { C as defaultPaginationKeywords, S as definePluginConfig, _ as regexp, a as defaultPlugins, b as OperationPath, c as clientDefaultConfig, d as $, f as TypeScriptRenderer, g as keywords, h as reserved, l as clientDefaultMeta, m as ctx, o as clientPluginHandler, p as TsDslContext, v as TsDsl, x as OperationStrategy } from "./openApi-D6jppAcA.mjs";
|
|
3
|
+
import { i as Logger, n as utils, r as createClient, t as defineConfig } from "./src-CGmZM4HZ.mjs";
|
|
4
4
|
|
|
5
5
|
export { $, Logger, OperationPath, OperationStrategy, TsDsl, TsDslContext, TypeScriptRenderer, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, ctx, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, keywords, regexp, reserved, utils };
|
package/dist/internal.cjs
CHANGED
package/dist/internal.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-
|
|
2
|
+
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-BpoUoSpn.cjs";
|
|
3
3
|
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
4
4
|
|
|
5
5
|
//#region src/config/init.d.ts
|
package/dist/internal.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-
|
|
2
|
+
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-BY6SQ9vq.mjs";
|
|
3
3
|
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
4
4
|
|
|
5
5
|
//#region src/config/init.d.ts
|
package/dist/internal.mjs
CHANGED