@hey-api/openapi-ts 0.87.0 → 0.87.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/clients/angular/index.ts +0 -1
- package/dist/clients/angular/types.ts +0 -27
- package/dist/clients/axios/index.ts +0 -1
- package/dist/clients/axios/types.ts +0 -19
- package/dist/clients/fetch/index.ts +0 -1
- package/dist/clients/fetch/types.ts +0 -27
- package/dist/clients/next/index.ts +0 -1
- package/dist/clients/next/types.ts +0 -19
- package/dist/clients/nuxt/index.ts +0 -1
- package/dist/clients/nuxt/types.ts +0 -12
- package/dist/clients/ofetch/index.ts +0 -1
- package/dist/clients/ofetch/types.ts +0 -27
- package/dist/{config-oAoGatJ7.d.ts → config-CNi83ZTD.d.ts} +746 -280
- package/dist/{config-B2o9ax_a.d.cts → config-PWeoedFF.d.cts} +723 -257
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +28 -14
- package/dist/index.d.ts +28 -14
- package/dist/index.js +1 -1
- 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/openApi-CCTdD3hW.cjs +19 -0
- package/dist/openApi-CCTdD3hW.cjs.map +1 -0
- package/dist/openApi-D7xrG_wR.js +19 -0
- package/dist/openApi-D7xrG_wR.js.map +1 -0
- package/dist/run.cjs +1 -1
- package/dist/run.cjs.map +1 -1
- package/dist/run.js +1 -1
- package/dist/run.js.map +1 -1
- package/dist/{src-CTUbY-zd.js → src-CZCpIWy7.js} +2 -2
- package/dist/{src-CTUbY-zd.js.map → src-CZCpIWy7.js.map} +1 -1
- package/dist/{src-H1fIt1p4.cjs → src-Cvd6zAsc.cjs} +2 -2
- package/dist/{src-H1fIt1p4.cjs.map → src-Cvd6zAsc.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/openApi-BWD76jue.cjs +0 -21
- package/dist/openApi-BWD76jue.cjs.map +0 -1
- package/dist/openApi-DXfWYPpF.js +0 -21
- package/dist/openApi-DXfWYPpF.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./openApi-
|
|
1
|
+
const e=require(`./openApi-CCTdD3hW.cjs`),t=require(`./src-Cvd6zAsc.cjs`);exports.Logger=t.i,exports.clientDefaultConfig=e.c,exports.clientDefaultMeta=e.l,exports.clientPluginHandler=e.o,exports.compiler=e.u,exports.createClient=t.r,exports.defaultPaginationKeywords=e.h,exports.defaultPlugins=e.a,exports.defineConfig=t.t,exports.definePluginConfig=e.m,exports.tsc=e.d,exports.utils=t.n;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as MaybeArray, _ as Client$2, a as Plugin, b as IR, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as PluginHandler, x as LazyOrAsync, y as StringCase } from "./config-
|
|
1
|
+
import { S as MaybeArray, _ as Client$2, a as Plugin, b as IR, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as PluginHandler, x as LazyOrAsync, y as StringCase } from "./config-PWeoedFF.cjs";
|
|
2
2
|
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
3
3
|
import { Injector } from "@angular/core";
|
|
4
4
|
import { AxiosError, AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosStatic, CreateAxiosDefaults } from "axios";
|
|
@@ -910,7 +910,7 @@ declare const clientPluginHandler: ({
|
|
|
910
910
|
}: Parameters<PluginHandler>[0]) => void;
|
|
911
911
|
//#endregion
|
|
912
912
|
//#region src/plugins/shared/utils/config.d.ts
|
|
913
|
-
declare const definePluginConfig: <T extends Plugin.Types>(defaultConfig: Plugin.Config<T>) => (userConfig?: Omit<
|
|
913
|
+
declare const definePluginConfig: <T extends Plugin.Types>(defaultConfig: Plugin.Config<T>) => (userConfig?: Omit<T["config"], "name">) => Omit<Plugin.Config<T>, "name"> & {
|
|
914
914
|
/**
|
|
915
915
|
* Cast name to `any` so it doesn't throw type error in `plugins` array.
|
|
916
916
|
* We could allow any `string` as plugin `name` in the object syntax, but
|
|
@@ -1527,7 +1527,8 @@ declare const tsc: {
|
|
|
1527
1527
|
exportClass,
|
|
1528
1528
|
extendedClasses,
|
|
1529
1529
|
name,
|
|
1530
|
-
nodes
|
|
1530
|
+
nodes,
|
|
1531
|
+
typeParameters
|
|
1531
1532
|
}: {
|
|
1532
1533
|
decorator?: {
|
|
1533
1534
|
args: any[];
|
|
@@ -1537,6 +1538,7 @@ declare const tsc: {
|
|
|
1537
1538
|
extendedClasses?: ReadonlyArray<string>;
|
|
1538
1539
|
name: string;
|
|
1539
1540
|
nodes: ReadonlyArray<typescript0.ClassElement>;
|
|
1541
|
+
typeParameters?: ReadonlyArray<typescript0.TypeParameterDeclaration>;
|
|
1540
1542
|
}) => typescript0.ClassDeclaration;
|
|
1541
1543
|
conditionalExpression: ({
|
|
1542
1544
|
condition,
|
|
@@ -1640,9 +1642,7 @@ declare const tsc: {
|
|
|
1640
1642
|
returnType?: string | typescript0.Identifier;
|
|
1641
1643
|
statements: ReadonlyArray<typescript0.Statement>;
|
|
1642
1644
|
}) => typescript0.GetAccessorDeclaration;
|
|
1643
|
-
identifier: ({
|
|
1644
|
-
text
|
|
1645
|
-
}: {
|
|
1645
|
+
identifier: (args: string | {
|
|
1646
1646
|
text: string;
|
|
1647
1647
|
}) => typescript0.Identifier;
|
|
1648
1648
|
ifStatement: ({
|
|
@@ -1776,6 +1776,13 @@ declare const tsc: {
|
|
|
1776
1776
|
required?: boolean;
|
|
1777
1777
|
type?: typescript0.TypeNode;
|
|
1778
1778
|
}) => typescript0.ParameterDeclaration;
|
|
1779
|
+
prefixUnaryExpression: ({
|
|
1780
|
+
expression,
|
|
1781
|
+
prefix
|
|
1782
|
+
}: {
|
|
1783
|
+
expression: string | typescript0.Expression;
|
|
1784
|
+
prefix: ("!" | "-") | typescript0.PrefixUnaryOperator;
|
|
1785
|
+
}) => typescript0.PrefixUnaryExpression;
|
|
1779
1786
|
propertyAccessExpression: ({
|
|
1780
1787
|
expression,
|
|
1781
1788
|
isOptional,
|
|
@@ -1799,12 +1806,12 @@ declare const tsc: {
|
|
|
1799
1806
|
}) => typescript0.PropertyAssignment;
|
|
1800
1807
|
propertyDeclaration: ({
|
|
1801
1808
|
initializer,
|
|
1802
|
-
|
|
1809
|
+
modifiers,
|
|
1803
1810
|
name,
|
|
1804
1811
|
type
|
|
1805
1812
|
}: {
|
|
1806
1813
|
initializer?: typescript0.Expression;
|
|
1807
|
-
|
|
1814
|
+
modifiers?: Modifier | ReadonlyArray<Modifier>;
|
|
1808
1815
|
name: string | typescript0.PropertyName;
|
|
1809
1816
|
type?: typescript0.TypeNode;
|
|
1810
1817
|
}) => typescript0.PropertyDeclaration;
|
|
@@ -2070,7 +2077,8 @@ declare const compiler: {
|
|
|
2070
2077
|
exportClass,
|
|
2071
2078
|
extendedClasses,
|
|
2072
2079
|
name,
|
|
2073
|
-
nodes
|
|
2080
|
+
nodes,
|
|
2081
|
+
typeParameters
|
|
2074
2082
|
}: {
|
|
2075
2083
|
decorator?: {
|
|
2076
2084
|
args: any[];
|
|
@@ -2080,6 +2088,7 @@ declare const compiler: {
|
|
|
2080
2088
|
extendedClasses?: ReadonlyArray<string>;
|
|
2081
2089
|
name: string;
|
|
2082
2090
|
nodes: ReadonlyArray<typescript0.ClassElement>;
|
|
2091
|
+
typeParameters?: ReadonlyArray<typescript0.TypeParameterDeclaration>;
|
|
2083
2092
|
}) => typescript0.ClassDeclaration;
|
|
2084
2093
|
conditionalExpression: ({
|
|
2085
2094
|
condition,
|
|
@@ -2183,9 +2192,7 @@ declare const compiler: {
|
|
|
2183
2192
|
returnType?: string | typescript0.Identifier;
|
|
2184
2193
|
statements: ReadonlyArray<typescript0.Statement>;
|
|
2185
2194
|
}) => typescript0.GetAccessorDeclaration;
|
|
2186
|
-
identifier: ({
|
|
2187
|
-
text
|
|
2188
|
-
}: {
|
|
2195
|
+
identifier: (args: string | {
|
|
2189
2196
|
text: string;
|
|
2190
2197
|
}) => typescript0.Identifier;
|
|
2191
2198
|
ifStatement: ({
|
|
@@ -2319,6 +2326,13 @@ declare const compiler: {
|
|
|
2319
2326
|
required?: boolean;
|
|
2320
2327
|
type?: typescript0.TypeNode;
|
|
2321
2328
|
}) => typescript0.ParameterDeclaration;
|
|
2329
|
+
prefixUnaryExpression: ({
|
|
2330
|
+
expression,
|
|
2331
|
+
prefix
|
|
2332
|
+
}: {
|
|
2333
|
+
expression: string | typescript0.Expression;
|
|
2334
|
+
prefix: ("!" | "-") | typescript0.PrefixUnaryOperator;
|
|
2335
|
+
}) => typescript0.PrefixUnaryExpression;
|
|
2322
2336
|
propertyAccessExpression: ({
|
|
2323
2337
|
expression,
|
|
2324
2338
|
isOptional,
|
|
@@ -2342,12 +2356,12 @@ declare const compiler: {
|
|
|
2342
2356
|
}) => typescript0.PropertyAssignment;
|
|
2343
2357
|
propertyDeclaration: ({
|
|
2344
2358
|
initializer,
|
|
2345
|
-
|
|
2359
|
+
modifiers,
|
|
2346
2360
|
name,
|
|
2347
2361
|
type
|
|
2348
2362
|
}: {
|
|
2349
2363
|
initializer?: typescript0.Expression;
|
|
2350
|
-
|
|
2364
|
+
modifiers?: Modifier | ReadonlyArray<Modifier>;
|
|
2351
2365
|
name: string | typescript0.PropertyName;
|
|
2352
2366
|
type?: typescript0.TypeNode;
|
|
2353
2367
|
}) => typescript0.PropertyDeclaration;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Client$1, D as LazyOrAsync, E as IR, O as MaybeArray, S as Client$3, T as StringCase, _ 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, 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 } from "./config-
|
|
1
|
+
import { C as Client$1, D as LazyOrAsync, E as IR, O as MaybeArray, S as Client$3, T as StringCase, _ 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, 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 } from "./config-CNi83ZTD.js";
|
|
2
2
|
import "@hey-api/codegen-core";
|
|
3
3
|
import * as typescript0 from "typescript";
|
|
4
4
|
import ts from "typescript";
|
|
@@ -38,7 +38,7 @@ declare const clientPluginHandler: ({
|
|
|
38
38
|
}: Parameters<PluginHandler>[0]) => void;
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/plugins/shared/utils/config.d.ts
|
|
41
|
-
declare const definePluginConfig: <T extends Plugin.Types>(defaultConfig: Plugin.Config<T>) => (userConfig?: Omit<
|
|
41
|
+
declare const definePluginConfig: <T extends Plugin.Types>(defaultConfig: Plugin.Config<T>) => (userConfig?: Omit<T["config"], "name">) => Omit<Plugin.Config<T>, "name"> & {
|
|
42
42
|
/**
|
|
43
43
|
* Cast name to `any` so it doesn't throw type error in `plugins` array.
|
|
44
44
|
* We could allow any `string` as plugin `name` in the object syntax, but
|
|
@@ -655,7 +655,8 @@ declare const tsc: {
|
|
|
655
655
|
exportClass,
|
|
656
656
|
extendedClasses,
|
|
657
657
|
name,
|
|
658
|
-
nodes
|
|
658
|
+
nodes,
|
|
659
|
+
typeParameters
|
|
659
660
|
}: {
|
|
660
661
|
decorator?: {
|
|
661
662
|
args: any[];
|
|
@@ -665,6 +666,7 @@ declare const tsc: {
|
|
|
665
666
|
extendedClasses?: ReadonlyArray<string>;
|
|
666
667
|
name: string;
|
|
667
668
|
nodes: ReadonlyArray<typescript0.ClassElement>;
|
|
669
|
+
typeParameters?: ReadonlyArray<typescript0.TypeParameterDeclaration>;
|
|
668
670
|
}) => typescript0.ClassDeclaration;
|
|
669
671
|
conditionalExpression: ({
|
|
670
672
|
condition,
|
|
@@ -768,9 +770,7 @@ declare const tsc: {
|
|
|
768
770
|
returnType?: string | typescript0.Identifier;
|
|
769
771
|
statements: ReadonlyArray<typescript0.Statement>;
|
|
770
772
|
}) => typescript0.GetAccessorDeclaration;
|
|
771
|
-
identifier: ({
|
|
772
|
-
text
|
|
773
|
-
}: {
|
|
773
|
+
identifier: (args: string | {
|
|
774
774
|
text: string;
|
|
775
775
|
}) => typescript0.Identifier;
|
|
776
776
|
ifStatement: ({
|
|
@@ -904,6 +904,13 @@ declare const tsc: {
|
|
|
904
904
|
required?: boolean;
|
|
905
905
|
type?: typescript0.TypeNode;
|
|
906
906
|
}) => typescript0.ParameterDeclaration;
|
|
907
|
+
prefixUnaryExpression: ({
|
|
908
|
+
expression,
|
|
909
|
+
prefix
|
|
910
|
+
}: {
|
|
911
|
+
expression: string | typescript0.Expression;
|
|
912
|
+
prefix: ("!" | "-") | typescript0.PrefixUnaryOperator;
|
|
913
|
+
}) => typescript0.PrefixUnaryExpression;
|
|
907
914
|
propertyAccessExpression: ({
|
|
908
915
|
expression,
|
|
909
916
|
isOptional,
|
|
@@ -927,12 +934,12 @@ declare const tsc: {
|
|
|
927
934
|
}) => typescript0.PropertyAssignment;
|
|
928
935
|
propertyDeclaration: ({
|
|
929
936
|
initializer,
|
|
930
|
-
|
|
937
|
+
modifiers,
|
|
931
938
|
name,
|
|
932
939
|
type
|
|
933
940
|
}: {
|
|
934
941
|
initializer?: typescript0.Expression;
|
|
935
|
-
|
|
942
|
+
modifiers?: Modifier | ReadonlyArray<Modifier>;
|
|
936
943
|
name: string | typescript0.PropertyName;
|
|
937
944
|
type?: typescript0.TypeNode;
|
|
938
945
|
}) => typescript0.PropertyDeclaration;
|
|
@@ -1198,7 +1205,8 @@ declare const compiler: {
|
|
|
1198
1205
|
exportClass,
|
|
1199
1206
|
extendedClasses,
|
|
1200
1207
|
name,
|
|
1201
|
-
nodes
|
|
1208
|
+
nodes,
|
|
1209
|
+
typeParameters
|
|
1202
1210
|
}: {
|
|
1203
1211
|
decorator?: {
|
|
1204
1212
|
args: any[];
|
|
@@ -1208,6 +1216,7 @@ declare const compiler: {
|
|
|
1208
1216
|
extendedClasses?: ReadonlyArray<string>;
|
|
1209
1217
|
name: string;
|
|
1210
1218
|
nodes: ReadonlyArray<typescript0.ClassElement>;
|
|
1219
|
+
typeParameters?: ReadonlyArray<typescript0.TypeParameterDeclaration>;
|
|
1211
1220
|
}) => typescript0.ClassDeclaration;
|
|
1212
1221
|
conditionalExpression: ({
|
|
1213
1222
|
condition,
|
|
@@ -1311,9 +1320,7 @@ declare const compiler: {
|
|
|
1311
1320
|
returnType?: string | typescript0.Identifier;
|
|
1312
1321
|
statements: ReadonlyArray<typescript0.Statement>;
|
|
1313
1322
|
}) => typescript0.GetAccessorDeclaration;
|
|
1314
|
-
identifier: ({
|
|
1315
|
-
text
|
|
1316
|
-
}: {
|
|
1323
|
+
identifier: (args: string | {
|
|
1317
1324
|
text: string;
|
|
1318
1325
|
}) => typescript0.Identifier;
|
|
1319
1326
|
ifStatement: ({
|
|
@@ -1447,6 +1454,13 @@ declare const compiler: {
|
|
|
1447
1454
|
required?: boolean;
|
|
1448
1455
|
type?: typescript0.TypeNode;
|
|
1449
1456
|
}) => typescript0.ParameterDeclaration;
|
|
1457
|
+
prefixUnaryExpression: ({
|
|
1458
|
+
expression,
|
|
1459
|
+
prefix
|
|
1460
|
+
}: {
|
|
1461
|
+
expression: string | typescript0.Expression;
|
|
1462
|
+
prefix: ("!" | "-") | typescript0.PrefixUnaryOperator;
|
|
1463
|
+
}) => typescript0.PrefixUnaryExpression;
|
|
1450
1464
|
propertyAccessExpression: ({
|
|
1451
1465
|
expression,
|
|
1452
1466
|
isOptional,
|
|
@@ -1470,12 +1484,12 @@ declare const compiler: {
|
|
|
1470
1484
|
}) => typescript0.PropertyAssignment;
|
|
1471
1485
|
propertyDeclaration: ({
|
|
1472
1486
|
initializer,
|
|
1473
|
-
|
|
1487
|
+
modifiers,
|
|
1474
1488
|
name,
|
|
1475
1489
|
type
|
|
1476
1490
|
}: {
|
|
1477
1491
|
initializer?: typescript0.Expression;
|
|
1478
|
-
|
|
1492
|
+
modifiers?: Modifier | ReadonlyArray<Modifier>;
|
|
1479
1493
|
name: string | typescript0.PropertyName;
|
|
1480
1494
|
type?: typescript0.TypeNode;
|
|
1481
1495
|
}) => typescript0.PropertyDeclaration;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,d as n,h as r,l as i,m as a,o,u as s}from"./openApi-
|
|
1
|
+
import{a as e,c as t,d as n,h as r,l as i,m as a,o,u as s}from"./openApi-D7xrG_wR.js";import{i as c,n as l,r as u,t as d}from"./src-CZCpIWy7.js";export{c as Logger,t as clientDefaultConfig,i as clientDefaultMeta,o as clientPluginHandler,s as compiler,u as createClient,r as defaultPaginationKeywords,e as defaultPlugins,d as defineConfig,a as definePluginConfig,n as tsc,l as utils};
|
package/dist/internal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./openApi-
|
|
1
|
+
const e=require(`./openApi-CCTdD3hW.cjs`);exports.getSpec=e.r,exports.initConfigs=e.i,exports.parseOpenApiSpec=e.t;
|
package/dist/internal.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-
|
|
1
|
+
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-PWeoedFF.cjs";
|
|
2
2
|
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
3
3
|
|
|
4
4
|
//#region src/config/init.d.ts
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-
|
|
1
|
+
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-CNi83ZTD.js";
|
|
2
2
|
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
3
3
|
|
|
4
4
|
//#region src/config/init.d.ts
|
package/dist/internal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,r as t,t as n}from"./openApi-
|
|
1
|
+
import{i as e,r as t,t as n}from"./openApi-D7xrG_wR.js";export{t as getSpec,e as initConfigs,n as parseOpenApiSpec};
|