@hey-api/openapi-ts 0.80.14 → 0.80.16
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 +5 -7
- package/dist/{chunk-FX46JMLR.js → chunk-X4P65NTE.js} +18 -18
- package/dist/chunk-X4P65NTE.js.map +1 -0
- package/dist/clients/axios/utils.ts +25 -2
- package/dist/clients/fetch/utils.ts +23 -2
- package/dist/clients/next/utils.ts +22 -2
- package/dist/clients/nuxt/client.ts +6 -1
- package/dist/clients/nuxt/types.ts +1 -0
- package/dist/clients/nuxt/utils.ts +23 -2
- package/dist/index.cjs +62 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +48 -48
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +11 -11
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/{types.d-BzJA3GSb.d.cts → types.d-CFCN8diW.d.cts} +22 -6
- package/dist/{types.d-BzJA3GSb.d.ts → types.d-CFCN8diW.d.ts} +22 -6
- package/package.json +1 -1
- package/dist/chunk-FX46JMLR.js.map +0 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-CFCN8diW.cjs';
|
|
2
2
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
3
3
|
import 'semver';
|
|
4
4
|
import 'node:fs';
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-CFCN8diW.js';
|
|
2
2
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
3
3
|
import 'semver';
|
|
4
4
|
import 'node:fs';
|
package/dist/internal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {createRequire}from'module';export{
|
|
1
|
+
import {createRequire}from'module';export{L as getSpec,K as initConfigs,F as parseOpenApiSpec}from'./chunk-X4P65NTE.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
|
|
2
2
|
//# sourceMappingURL=internal.js.map
|
|
@@ -2860,12 +2860,20 @@ type Input = {
|
|
|
2860
2860
|
*/
|
|
2861
2861
|
organization?: string;
|
|
2862
2862
|
/**
|
|
2863
|
-
* Path to the OpenAPI specification. This can be
|
|
2863
|
+
* Path to the OpenAPI specification. This can be:
|
|
2864
|
+
* - path
|
|
2865
|
+
* - URL
|
|
2866
|
+
* - API registry shorthand
|
|
2867
|
+
*
|
|
2864
2868
|
* Both JSON and YAML file formats are supported. You can also pass the parsed
|
|
2865
2869
|
* object directly if you're fetching the file yourself.
|
|
2866
2870
|
*/
|
|
2867
2871
|
path?:
|
|
2868
|
-
|
|
|
2872
|
+
| `https://get.heyapi.dev/${string}/${string}`
|
|
2873
|
+
| `${string}/${string}`
|
|
2874
|
+
| `readme:@${string}/${string}#${string}`
|
|
2875
|
+
| `readme:${string}`
|
|
2876
|
+
| `scalar:@${string}/${string}`
|
|
2869
2877
|
| (string & {})
|
|
2870
2878
|
| Record<string, unknown>;
|
|
2871
2879
|
/**
|
|
@@ -6707,14 +6715,22 @@ interface UserConfig$n {
|
|
|
6707
6715
|
*/
|
|
6708
6716
|
dryRun?: boolean;
|
|
6709
6717
|
/**
|
|
6710
|
-
* Path to the OpenAPI specification. This can be
|
|
6718
|
+
* Path to the OpenAPI specification. This can be:
|
|
6719
|
+
* - path
|
|
6720
|
+
* - URL
|
|
6721
|
+
* - API registry shorthand
|
|
6722
|
+
*
|
|
6711
6723
|
* Both JSON and YAML file formats are supported. You can also pass the parsed
|
|
6712
6724
|
* object directly if you're fetching the file yourself.
|
|
6713
6725
|
*
|
|
6714
6726
|
* Alternatively, you can define a configuration object with more options.
|
|
6715
6727
|
*/
|
|
6716
6728
|
input:
|
|
6717
|
-
|
|
|
6729
|
+
| `https://get.heyapi.dev/${string}/${string}`
|
|
6730
|
+
| `${string}/${string}`
|
|
6731
|
+
| `readme:@${string}/${string}#${string}`
|
|
6732
|
+
| `readme:${string}`
|
|
6733
|
+
| `scalar:@${string}/${string}`
|
|
6718
6734
|
| (string & {})
|
|
6719
6735
|
| (Record<string, unknown> & { path?: never })
|
|
6720
6736
|
| Input;
|
|
@@ -6843,7 +6859,7 @@ type Config$a = Omit<
|
|
|
6843
6859
|
declare class Logger {
|
|
6844
6860
|
private events;
|
|
6845
6861
|
private end;
|
|
6846
|
-
report():
|
|
6862
|
+
report(print?: boolean): PerformanceMeasure | undefined;
|
|
6847
6863
|
private reportEvent;
|
|
6848
6864
|
private start;
|
|
6849
6865
|
private storeEvent;
|
|
@@ -13072,4 +13088,4 @@ interface WatchValues {
|
|
|
13072
13088
|
lastValue?: string;
|
|
13073
13089
|
}
|
|
13074
13090
|
|
|
13075
|
-
export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I,
|
|
13091
|
+
export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I, Logger as L, OpenApi$3 as O, type PluginHandler as P, type StringCase as S, type TypeTransformer as T, type UserConfig$n as U, type WatchValues as W, Plugin as a, type Client$1 as b, IR$1 as c, OpenApiMetaObject as d, OpenApiOperationObject as e, OpenApiParameterObject as f, OpenApiRequestBodyObject as g, OpenApiResponseObject as h, OpenApiSchemaObject as i, Client as j, LegacyIR as k, type Config$a as l, tsNodeToString as t };
|
|
@@ -2860,12 +2860,20 @@ type Input = {
|
|
|
2860
2860
|
*/
|
|
2861
2861
|
organization?: string;
|
|
2862
2862
|
/**
|
|
2863
|
-
* Path to the OpenAPI specification. This can be
|
|
2863
|
+
* Path to the OpenAPI specification. This can be:
|
|
2864
|
+
* - path
|
|
2865
|
+
* - URL
|
|
2866
|
+
* - API registry shorthand
|
|
2867
|
+
*
|
|
2864
2868
|
* Both JSON and YAML file formats are supported. You can also pass the parsed
|
|
2865
2869
|
* object directly if you're fetching the file yourself.
|
|
2866
2870
|
*/
|
|
2867
2871
|
path?:
|
|
2868
|
-
|
|
|
2872
|
+
| `https://get.heyapi.dev/${string}/${string}`
|
|
2873
|
+
| `${string}/${string}`
|
|
2874
|
+
| `readme:@${string}/${string}#${string}`
|
|
2875
|
+
| `readme:${string}`
|
|
2876
|
+
| `scalar:@${string}/${string}`
|
|
2869
2877
|
| (string & {})
|
|
2870
2878
|
| Record<string, unknown>;
|
|
2871
2879
|
/**
|
|
@@ -6707,14 +6715,22 @@ interface UserConfig$n {
|
|
|
6707
6715
|
*/
|
|
6708
6716
|
dryRun?: boolean;
|
|
6709
6717
|
/**
|
|
6710
|
-
* Path to the OpenAPI specification. This can be
|
|
6718
|
+
* Path to the OpenAPI specification. This can be:
|
|
6719
|
+
* - path
|
|
6720
|
+
* - URL
|
|
6721
|
+
* - API registry shorthand
|
|
6722
|
+
*
|
|
6711
6723
|
* Both JSON and YAML file formats are supported. You can also pass the parsed
|
|
6712
6724
|
* object directly if you're fetching the file yourself.
|
|
6713
6725
|
*
|
|
6714
6726
|
* Alternatively, you can define a configuration object with more options.
|
|
6715
6727
|
*/
|
|
6716
6728
|
input:
|
|
6717
|
-
|
|
|
6729
|
+
| `https://get.heyapi.dev/${string}/${string}`
|
|
6730
|
+
| `${string}/${string}`
|
|
6731
|
+
| `readme:@${string}/${string}#${string}`
|
|
6732
|
+
| `readme:${string}`
|
|
6733
|
+
| `scalar:@${string}/${string}`
|
|
6718
6734
|
| (string & {})
|
|
6719
6735
|
| (Record<string, unknown> & { path?: never })
|
|
6720
6736
|
| Input;
|
|
@@ -6843,7 +6859,7 @@ type Config$a = Omit<
|
|
|
6843
6859
|
declare class Logger {
|
|
6844
6860
|
private events;
|
|
6845
6861
|
private end;
|
|
6846
|
-
report():
|
|
6862
|
+
report(print?: boolean): PerformanceMeasure | undefined;
|
|
6847
6863
|
private reportEvent;
|
|
6848
6864
|
private start;
|
|
6849
6865
|
private storeEvent;
|
|
@@ -13072,4 +13088,4 @@ interface WatchValues {
|
|
|
13072
13088
|
lastValue?: string;
|
|
13073
13089
|
}
|
|
13074
13090
|
|
|
13075
|
-
export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I,
|
|
13091
|
+
export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I, Logger as L, OpenApi$3 as O, type PluginHandler as P, type StringCase as S, type TypeTransformer as T, type UserConfig$n as U, type WatchValues as W, Plugin as a, type Client$1 as b, IR$1 as c, OpenApiMetaObject as d, OpenApiOperationObject as e, OpenApiParameterObject as f, OpenApiRequestBodyObject as g, OpenApiResponseObject as h, OpenApiSchemaObject as i, Client as j, LegacyIR as k, type Config$a as l, tsNodeToString as t };
|
package/package.json
CHANGED