@hey-api/openapi-ts 0.89.1 → 0.89.2
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 +13 -11
- package/dist/clients/axios/client.ts +1 -1
- package/dist/{config-DsA-xawl.d.mts → config-Baq-Kb-6.d.mts} +6 -1
- package/dist/{config-Duuay7XM.d.cts → config-CREHWzRd.d.cts} +6 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- 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-DV_SToAE.cjs +13 -0
- package/dist/openApi-DV_SToAE.cjs.map +1 -0
- package/dist/openApi-Dz9FsU_q.mjs +13 -0
- package/dist/openApi-Dz9FsU_q.mjs.map +1 -0
- package/dist/run.cjs +1 -1
- package/dist/run.cjs.map +1 -1
- package/dist/run.mjs +1 -1
- package/dist/run.mjs.map +1 -1
- package/dist/{src-T7IO6Tfr.cjs → src-CnDKH9rV.cjs} +2 -2
- package/dist/{src-T7IO6Tfr.cjs.map → src-CnDKH9rV.cjs.map} +1 -1
- package/dist/{src-DwGvCacY.mjs → src-novPNOHw.mjs} +2 -2
- package/dist/{src-DwGvCacY.mjs.map → src-novPNOHw.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/openApi-C6rgbKAs.mjs +0 -13
- package/dist/openApi-C6rgbKAs.mjs.map +0 -1
- package/dist/openApi-DbVAMWYK.cjs +0 -13
- package/dist/openApi-DbVAMWYK.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img alt="Hey API presents openapi-ts" height="214" src="https://heyapi.dev/
|
|
2
|
+
<img alt="Hey API presents openapi-ts" height="214" src="https://heyapi.dev/assets/.gen/openapi-ts-hero-640w.png" width="438">
|
|
3
3
|
<h1><b>OpenAPI TypeScript</b></h1>
|
|
4
4
|
<p><em>“OpenAPI codegen that just works.”</em><br/><sub>— Guillermo Rauch, CEO of Vercel</sub></p>
|
|
5
5
|
</div>
|
|
@@ -59,8 +59,8 @@ Help Hey API stay around for the long haul by becoming a [sponsor](https://githu
|
|
|
59
59
|
<p>
|
|
60
60
|
<a href="https://kutt.it/pkEZyc" target="_blank">
|
|
61
61
|
<picture height="50px">
|
|
62
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/
|
|
63
|
-
<img alt="Stainless logo" height="50px" src="https://heyapi.dev/
|
|
62
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/.gen/stainless-logo-wordmark-480w.jpeg">
|
|
63
|
+
<img alt="Stainless logo" height="50px" src="https://heyapi.dev/assets/.gen/stainless-logo-wordmark-480w.jpeg">
|
|
64
64
|
</picture>
|
|
65
65
|
</a>
|
|
66
66
|
<br/>
|
|
@@ -77,7 +77,8 @@ Help Hey API stay around for the long haul by becoming a [sponsor](https://githu
|
|
|
77
77
|
<p>
|
|
78
78
|
<a href="https://kutt.it/QM9Q2N" target="_blank">
|
|
79
79
|
<picture height="50px">
|
|
80
|
-
<
|
|
80
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/opencode/logo-light.svg">
|
|
81
|
+
<img alt="Opencode logo" height="50px" src="https://heyapi.dev/assets/opencode/logo-dark.svg">
|
|
81
82
|
</picture>
|
|
82
83
|
</a>
|
|
83
84
|
<br/>
|
|
@@ -101,8 +102,8 @@ Help Hey API stay around for the long haul by becoming a [sponsor](https://githu
|
|
|
101
102
|
<td align="center">
|
|
102
103
|
<a href="https://kutt.it/skQUVd" target="_blank">
|
|
103
104
|
<picture height="40px">
|
|
104
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/
|
|
105
|
-
<img alt="Scalar logo" height="40px" src="https://heyapi.dev/scalar
|
|
105
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/scalar/logo-light.svg">
|
|
106
|
+
<img alt="Scalar logo" height="40px" src="https://heyapi.dev/assets/scalar/logo-dark.svg">
|
|
106
107
|
</picture>
|
|
107
108
|
</a>
|
|
108
109
|
<br/>
|
|
@@ -113,7 +114,8 @@ Help Hey API stay around for the long haul by becoming a [sponsor](https://githu
|
|
|
113
114
|
<td align="center">
|
|
114
115
|
<a href="https://kutt.it/Dr9GuW" target="_blank">
|
|
115
116
|
<picture height="40px">
|
|
116
|
-
<
|
|
117
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/fastapi/logo-light.svg">
|
|
118
|
+
<img alt="FastAPI logo" height="40px" src="https://heyapi.dev/assets/fastapi/logo-dark.svg">
|
|
117
119
|
</picture>
|
|
118
120
|
</a>
|
|
119
121
|
<br/>
|
|
@@ -133,16 +135,16 @@ Help Hey API stay around for the long haul by becoming a [sponsor](https://githu
|
|
|
133
135
|
<td align="center">
|
|
134
136
|
<a href="https://kutt.it/YpaKsX" target="_blank">
|
|
135
137
|
<picture height="34px">
|
|
136
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/
|
|
137
|
-
<img alt="Kinde logo" height="34px" src="https://heyapi.dev/
|
|
138
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/.gen/kinde-logo-wordmark-dark-480w.webp">
|
|
139
|
+
<img alt="Kinde logo" height="34px" src="https://heyapi.dev/assets/.gen/kinde-logo-wordmark-480w.jpeg">
|
|
138
140
|
</picture>
|
|
139
141
|
</a>
|
|
140
142
|
</td>
|
|
141
143
|
<td align="center">
|
|
142
144
|
<a href="https://kutt.it/KkqSaw" target="_blank">
|
|
143
145
|
<picture height="34px">
|
|
144
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/
|
|
145
|
-
<img alt="Cella logo" height="34px" src="https://heyapi.dev/cella
|
|
146
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/cella/logo-light.svg">
|
|
147
|
+
<img alt="Cella logo" height="34px" src="https://heyapi.dev/assets/cella/logo-dark.svg">
|
|
146
148
|
</picture>
|
|
147
149
|
</a>
|
|
148
150
|
</td>
|
|
@@ -82,7 +82,7 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
82
82
|
data: getValidRequestBody(opts),
|
|
83
83
|
headers: opts.headers as RawAxiosRequestHeaders,
|
|
84
84
|
// let `paramsSerializer()` handle query params if it exists
|
|
85
|
-
params:
|
|
85
|
+
params: opts.paramsSerializer ? opts.query : undefined,
|
|
86
86
|
url,
|
|
87
87
|
});
|
|
88
88
|
|
|
@@ -2572,6 +2572,11 @@ interface IRSchemaObject extends Pick<JsonSchemaDraft2020_12, '$ref' | 'const' |
|
|
|
2572
2572
|
* @default 'or'
|
|
2573
2573
|
*/
|
|
2574
2574
|
logicalOperator?: 'and' | 'or';
|
|
2575
|
+
/**
|
|
2576
|
+
* When used with `$ref` or `symbolRef`, specifies properties to omit from the referenced schema.
|
|
2577
|
+
* Useful for handling discriminator property conflicts in allOf compositions.
|
|
2578
|
+
*/
|
|
2579
|
+
omit?: ReadonlyArray<string>;
|
|
2575
2580
|
/**
|
|
2576
2581
|
* When type is `object`, `patternProperties` can be used to define a schema
|
|
2577
2582
|
* for properties that match a specific regex pattern.
|
|
@@ -16524,4 +16529,4 @@ type Config = Omit<Required<UserConfig>, 'input' | 'logs' | 'output' | 'parser'
|
|
|
16524
16529
|
};
|
|
16525
16530
|
//#endregion
|
|
16526
16531
|
export { Client$4 as A, MaybeTsDsl as C, PluginHandler as D, Client as E, IR$1 as F, LazyOrAsync as I, MaybeArray as L, Client$6 as M, Client$7 as N, Client$2 as O, StringCase as P, TypeScriptRenderer as S, TypeTsDsl as T, $ as _, Plugin as a, regexp as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, Client$5 as j, Client$3 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, DollarTsDsl as v, TsDsl as w, keywords as x, reserved as y };
|
|
16527
|
-
//# sourceMappingURL=config-
|
|
16532
|
+
//# sourceMappingURL=config-Baq-Kb-6.d.mts.map
|
|
@@ -2567,6 +2567,11 @@ interface IRSchemaObject extends Pick<JsonSchemaDraft2020_12, '$ref' | 'const' |
|
|
|
2567
2567
|
* @default 'or'
|
|
2568
2568
|
*/
|
|
2569
2569
|
logicalOperator?: 'and' | 'or';
|
|
2570
|
+
/**
|
|
2571
|
+
* When used with `$ref` or `symbolRef`, specifies properties to omit from the referenced schema.
|
|
2572
|
+
* Useful for handling discriminator property conflicts in allOf compositions.
|
|
2573
|
+
*/
|
|
2574
|
+
omit?: ReadonlyArray<string>;
|
|
2570
2575
|
/**
|
|
2571
2576
|
* When type is `object`, `patternProperties` can be used to define a schema
|
|
2572
2577
|
* for properties that match a specific regex pattern.
|
|
@@ -15653,4 +15658,4 @@ type Config = Omit<Required<UserConfig>, 'input' | 'logs' | 'output' | 'parser'
|
|
|
15653
15658
|
};
|
|
15654
15659
|
//#endregion
|
|
15655
15660
|
export { LazyOrAsync as A, MaybeTsDsl as C, PluginHandler as D, Client as E, StringCase as O, TypeScriptRenderer as S, TypeTsDsl as T, $ as _, Plugin as a, regexp as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, MaybeArray as j, IR$1 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, DollarTsDsl as v, TsDsl as w, keywords as x, reserved as y };
|
|
15656
|
-
//# sourceMappingURL=config-
|
|
15661
|
+
//# sourceMappingURL=config-CREHWzRd.d.cts.map
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./openApi-
|
|
1
|
+
const e=require(`./openApi-DV_SToAE.cjs`),t=require(`./src-CnDKH9rV.cjs`);exports.$=e.u,exports.Logger=t.i,exports.TsDsl=e.h,exports.TypeScriptRenderer=e.d,exports.clientDefaultConfig=e.c,exports.clientDefaultMeta=e.l,exports.clientPluginHandler=e.o,exports.createClient=t.r,exports.defaultPaginationKeywords=e.y,exports.defaultPlugins=e.a,exports.defineConfig=t.t,exports.definePluginConfig=e.v,exports.keywords=e.p,exports.regexp=e.m,exports.reserved=e.f,exports.utils=t.n;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as LazyOrAsync, C as MaybeTsDsl, D as PluginHandler, E as Client$2, O as StringCase, S as TypeScriptRenderer, T as TypeTsDsl, _ as $, a as Plugin, b as regexp, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as MaybeArray, k as IR, 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 keywords, y as reserved } from "./config-
|
|
1
|
+
import { A as LazyOrAsync, C as MaybeTsDsl, D as PluginHandler, E as Client$2, O as StringCase, S as TypeScriptRenderer, T as TypeTsDsl, _ as $, a as Plugin, b as regexp, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as MaybeArray, k as IR, 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 keywords, y as reserved } from "./config-CREHWzRd.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";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Client$4, C as MaybeTsDsl, D as PluginHandler, E as Client$2, F as IR, I as LazyOrAsync, L as MaybeArray, M as Client$1, N as Client, O as Client$6, P as StringCase, S as TypeScriptRenderer, T as TypeTsDsl, _ as $, a as Plugin, b as regexp, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as Client$3, k as Client$5, 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 keywords, y as reserved } from "./config-
|
|
1
|
+
import { A as Client$4, C as MaybeTsDsl, D as PluginHandler, E as Client$2, F as IR, I as LazyOrAsync, L as MaybeArray, M as Client$1, N as Client, O as Client$6, P as StringCase, S as TypeScriptRenderer, T as TypeTsDsl, _ as $, a as Plugin, b as regexp, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as Client$3, k as Client$5, 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 keywords, y as reserved } from "./config-Baq-Kb-6.mjs";
|
|
2
2
|
import "@hey-api/codegen-core";
|
|
3
3
|
|
|
4
4
|
//#region src/generate.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,d as n,f as r,h as i,l as a,m as o,o as s,p as c,u as l,v as u,y as d}from"./openApi-
|
|
1
|
+
import{a as e,c as t,d as n,f as r,h as i,l as a,m as o,o as s,p as c,u as l,v as u,y as d}from"./openApi-Dz9FsU_q.mjs";import{i as f,n as p,r as m,t as h}from"./src-novPNOHw.mjs";export{l as $,f as Logger,i as TsDsl,n as TypeScriptRenderer,t as clientDefaultConfig,a as clientDefaultMeta,s as clientPluginHandler,m as createClient,d as defaultPaginationKeywords,e as defaultPlugins,h as defineConfig,u as definePluginConfig,c as keywords,o as regexp,r as reserved,p as utils};
|
package/dist/internal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./openApi-
|
|
1
|
+
const e=require(`./openApi-DV_SToAE.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-CREHWzRd.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.mts
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-Baq-Kb-6.mjs";
|
|
2
2
|
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
3
3
|
|
|
4
4
|
//#region src/config/init.d.ts
|
package/dist/internal.mjs
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-Dz9FsU_q.mjs";export{t as getSpec,e as initConfigs,n as parseOpenApiSpec};
|