@hey-api/openapi-ts 0.84.0 → 0.84.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 -0
- package/dist/{chunk-ZXJLXXXN.js → chunk-TA6X5D7W.js} +23 -23
- package/dist/chunk-TA6X5D7W.js.map +1 -0
- package/dist/clients/ofetch/client.ts +272 -0
- package/dist/clients/ofetch/index.ts +23 -0
- package/dist/clients/ofetch/types.ts +333 -0
- package/dist/clients/ofetch/utils.ts +540 -0
- package/dist/index.cjs +60 -60
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +293 -110
- package/dist/index.d.ts +293 -110
- package/dist/index.js +28 -28
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +12 -12
- 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-ClTVswi2.d.cts → types.d-DOXd97cA.d.cts} +60 -30
- package/dist/{types.d-ClTVswi2.d.ts → types.d-DOXd97cA.d.ts} +60 -30
- package/package.json +3 -1
- package/dist/chunk-ZXJLXXXN.js.map +0 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-
|
|
1
|
+
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-DOXd97cA.cjs';
|
|
2
2
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
3
3
|
import 'semver';
|
|
4
4
|
import '@hey-api/codegen-core';
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-
|
|
1
|
+
import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-DOXd97cA.js';
|
|
2
2
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
3
3
|
import 'semver';
|
|
4
4
|
import '@hey-api/codegen-core';
|
package/dist/internal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {createRequire}from'module';export{L as getSpec,K as initConfigs,D as parseOpenApiSpec}from'./chunk-
|
|
1
|
+
import {createRequire}from'module';export{L as getSpec,K as initConfigs,D as parseOpenApiSpec}from'./chunk-TA6X5D7W.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
|
|
2
2
|
//# sourceMappingURL=internal.js.map
|
|
@@ -6565,7 +6565,7 @@ type Patch = {
|
|
|
6565
6565
|
version?: string | ((version: string) => string);
|
|
6566
6566
|
};
|
|
6567
6567
|
|
|
6568
|
-
interface UserConfig$
|
|
6568
|
+
interface UserConfig$p {
|
|
6569
6569
|
/**
|
|
6570
6570
|
* Path to the config file. Set this value if you don't use the default
|
|
6571
6571
|
* config file name, or it's not located in the project root.
|
|
@@ -6690,7 +6690,7 @@ interface UserConfig$o {
|
|
|
6690
6690
|
}
|
|
6691
6691
|
|
|
6692
6692
|
type Config$c = Omit<
|
|
6693
|
-
Required<UserConfig$
|
|
6693
|
+
Required<UserConfig$p>,
|
|
6694
6694
|
| 'base'
|
|
6695
6695
|
| 'input'
|
|
6696
6696
|
| 'logs'
|
|
@@ -6701,7 +6701,7 @@ type Config$c = Omit<
|
|
|
6701
6701
|
| 'request'
|
|
6702
6702
|
| 'watch'
|
|
6703
6703
|
> &
|
|
6704
|
-
Pick<UserConfig$
|
|
6704
|
+
Pick<UserConfig$p, 'base' | 'name' | 'request'> & {
|
|
6705
6705
|
input: Omit<Input, 'path' | 'watch'> &
|
|
6706
6706
|
Pick<Required<Input>, 'path'> & { watch: Watch };
|
|
6707
6707
|
logs: Logs;
|
|
@@ -7760,6 +7760,7 @@ type PluginClientNames =
|
|
|
7760
7760
|
| '@hey-api/client-fetch'
|
|
7761
7761
|
| '@hey-api/client-next'
|
|
7762
7762
|
| '@hey-api/client-nuxt'
|
|
7763
|
+
| '@hey-api/client-ofetch'
|
|
7763
7764
|
| 'legacy/angular'
|
|
7764
7765
|
| 'legacy/axios'
|
|
7765
7766
|
| 'legacy/fetch'
|
|
@@ -7920,8 +7921,8 @@ type DefinePlugin<
|
|
|
7920
7921
|
Types: Plugin.Types<Config, ResolvedConfig, Api>;
|
|
7921
7922
|
};
|
|
7922
7923
|
|
|
7923
|
-
type SelectorType$
|
|
7924
|
-
type IApi$
|
|
7924
|
+
type SelectorType$j = 'class' | 'httpRequest' | 'httpResource' | 'HttpRequest' | 'inject' | 'Injectable';
|
|
7925
|
+
type IApi$j = {
|
|
7925
7926
|
/**
|
|
7926
7927
|
* @param type Selector type.
|
|
7927
7928
|
* @param value Depends on `type`:
|
|
@@ -7933,10 +7934,10 @@ type IApi$i = {
|
|
|
7933
7934
|
* - `Injectable`: never
|
|
7934
7935
|
* @returns Selector array
|
|
7935
7936
|
*/
|
|
7936
|
-
getSelector: (type: SelectorType$
|
|
7937
|
+
getSelector: (type: SelectorType$j, value?: string) => Selector;
|
|
7937
7938
|
};
|
|
7938
7939
|
|
|
7939
|
-
type UserConfig$
|
|
7940
|
+
type UserConfig$o = Plugin.Name<'@angular/common'> &
|
|
7940
7941
|
Plugin.Hooks & {
|
|
7941
7942
|
/**
|
|
7942
7943
|
* Should the exports from the generated files be re-exported in the index
|
|
@@ -8075,7 +8076,18 @@ type Config$b = Plugin.Name<'@angular/common'> &
|
|
|
8075
8076
|
};
|
|
8076
8077
|
};
|
|
8077
8078
|
|
|
8078
|
-
type AngularCommonPlugin = DefinePlugin<UserConfig$
|
|
8079
|
+
type AngularCommonPlugin = DefinePlugin<UserConfig$o, Config$b, IApi$j>;
|
|
8080
|
+
|
|
8081
|
+
type SelectorType$i = 'client';
|
|
8082
|
+
type IApi$i = {
|
|
8083
|
+
/**
|
|
8084
|
+
* @param type Selector type.
|
|
8085
|
+
* @param value Depends on `type`:
|
|
8086
|
+
* - `client`: never
|
|
8087
|
+
* @returns Selector array
|
|
8088
|
+
*/
|
|
8089
|
+
getSelector: (type: SelectorType$i, value?: string) => Selector;
|
|
8090
|
+
};
|
|
8079
8091
|
|
|
8080
8092
|
type SelectorType$h = 'client';
|
|
8081
8093
|
type IApi$h = {
|
|
@@ -8088,6 +8100,22 @@ type IApi$h = {
|
|
|
8088
8100
|
getSelector: (type: SelectorType$h, value?: string) => Selector;
|
|
8089
8101
|
};
|
|
8090
8102
|
|
|
8103
|
+
type UserConfig$n = Plugin.Name<'@hey-api/client-axios'> &
|
|
8104
|
+
Client.Config & {
|
|
8105
|
+
/**
|
|
8106
|
+
* Throw an error instead of returning it in the response?
|
|
8107
|
+
*
|
|
8108
|
+
* @default false
|
|
8109
|
+
*/
|
|
8110
|
+
throwOnError?: boolean;
|
|
8111
|
+
};
|
|
8112
|
+
|
|
8113
|
+
type HeyApiClientAxiosPlugin = DefinePlugin<
|
|
8114
|
+
UserConfig$n,
|
|
8115
|
+
UserConfig$n,
|
|
8116
|
+
IApi$h
|
|
8117
|
+
>;
|
|
8118
|
+
|
|
8091
8119
|
type SelectorType$g = 'client';
|
|
8092
8120
|
type IApi$g = {
|
|
8093
8121
|
/**
|
|
@@ -8099,7 +8127,7 @@ type IApi$g = {
|
|
|
8099
8127
|
getSelector: (type: SelectorType$g, value?: string) => Selector;
|
|
8100
8128
|
};
|
|
8101
8129
|
|
|
8102
|
-
type UserConfig$m = Plugin.Name<'@hey-api/client-
|
|
8130
|
+
type UserConfig$m = Plugin.Name<'@hey-api/client-fetch'> &
|
|
8103
8131
|
Client.Config & {
|
|
8104
8132
|
/**
|
|
8105
8133
|
* Throw an error instead of returning it in the response?
|
|
@@ -8109,7 +8137,7 @@ type UserConfig$m = Plugin.Name<'@hey-api/client-axios'> &
|
|
|
8109
8137
|
throwOnError?: boolean;
|
|
8110
8138
|
};
|
|
8111
8139
|
|
|
8112
|
-
type
|
|
8140
|
+
type HeyApiClientFetchPlugin = DefinePlugin<
|
|
8113
8141
|
UserConfig$m,
|
|
8114
8142
|
UserConfig$m,
|
|
8115
8143
|
IApi$g
|
|
@@ -8126,7 +8154,7 @@ type IApi$f = {
|
|
|
8126
8154
|
getSelector: (type: SelectorType$f, value?: string) => Selector;
|
|
8127
8155
|
};
|
|
8128
8156
|
|
|
8129
|
-
type UserConfig$l = Plugin.Name<'@hey-api/client-
|
|
8157
|
+
type UserConfig$l = Plugin.Name<'@hey-api/client-next'> &
|
|
8130
8158
|
Client.Config & {
|
|
8131
8159
|
/**
|
|
8132
8160
|
* Throw an error instead of returning it in the response?
|
|
@@ -8136,11 +8164,7 @@ type UserConfig$l = Plugin.Name<'@hey-api/client-fetch'> &
|
|
|
8136
8164
|
throwOnError?: boolean;
|
|
8137
8165
|
};
|
|
8138
8166
|
|
|
8139
|
-
type
|
|
8140
|
-
UserConfig$l,
|
|
8141
|
-
UserConfig$l,
|
|
8142
|
-
IApi$f
|
|
8143
|
-
>;
|
|
8167
|
+
type HeyApiClientNextPlugin = DefinePlugin<UserConfig$l, UserConfig$l, IApi$f>;
|
|
8144
8168
|
|
|
8145
8169
|
type SelectorType$e = 'client';
|
|
8146
8170
|
type IApi$e = {
|
|
@@ -8153,17 +8177,9 @@ type IApi$e = {
|
|
|
8153
8177
|
getSelector: (type: SelectorType$e, value?: string) => Selector;
|
|
8154
8178
|
};
|
|
8155
8179
|
|
|
8156
|
-
type UserConfig$k = Plugin.Name<'@hey-api/client-
|
|
8157
|
-
Client.Config & {
|
|
8158
|
-
/**
|
|
8159
|
-
* Throw an error instead of returning it in the response?
|
|
8160
|
-
*
|
|
8161
|
-
* @default false
|
|
8162
|
-
*/
|
|
8163
|
-
throwOnError?: boolean;
|
|
8164
|
-
};
|
|
8180
|
+
type UserConfig$k = Plugin.Name<'@hey-api/client-nuxt'> & Client.Config;
|
|
8165
8181
|
|
|
8166
|
-
type
|
|
8182
|
+
type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$k, UserConfig$k, IApi$e>;
|
|
8167
8183
|
|
|
8168
8184
|
type SelectorType$d = 'client';
|
|
8169
8185
|
type IApi$d = {
|
|
@@ -8176,9 +8192,21 @@ type IApi$d = {
|
|
|
8176
8192
|
getSelector: (type: SelectorType$d, value?: string) => Selector;
|
|
8177
8193
|
};
|
|
8178
8194
|
|
|
8179
|
-
type UserConfig$j = Plugin.Name<'@hey-api/client-
|
|
8195
|
+
type UserConfig$j = Plugin.Name<'@hey-api/client-ofetch'> &
|
|
8196
|
+
Client.Config & {
|
|
8197
|
+
/**
|
|
8198
|
+
* Throw an error instead of returning it in the response?
|
|
8199
|
+
*
|
|
8200
|
+
* @default false
|
|
8201
|
+
*/
|
|
8202
|
+
throwOnError?: boolean;
|
|
8203
|
+
};
|
|
8180
8204
|
|
|
8181
|
-
type
|
|
8205
|
+
type HeyApiClientOfetchPlugin = DefinePlugin<
|
|
8206
|
+
UserConfig$j,
|
|
8207
|
+
UserConfig$j,
|
|
8208
|
+
IApi$d
|
|
8209
|
+
>;
|
|
8182
8210
|
|
|
8183
8211
|
interface PluginHandler {
|
|
8184
8212
|
(...args: Parameters<HeyApiClientAngularPlugin['Handler']>): void;
|
|
@@ -8186,6 +8214,7 @@ interface PluginHandler {
|
|
|
8186
8214
|
(...args: Parameters<HeyApiClientFetchPlugin['Handler']>): void;
|
|
8187
8215
|
(...args: Parameters<HeyApiClientNextPlugin['Handler']>): void;
|
|
8188
8216
|
(...args: Parameters<HeyApiClientNuxtPlugin['Handler']>): void;
|
|
8217
|
+
(...args: Parameters<HeyApiClientOfetchPlugin['Handler']>): void;
|
|
8189
8218
|
}
|
|
8190
8219
|
|
|
8191
8220
|
/**
|
|
@@ -8259,7 +8288,7 @@ type UserConfig$i = Plugin.Name<'@hey-api/client-angular'> &
|
|
|
8259
8288
|
type HeyApiClientAngularPlugin = DefinePlugin<
|
|
8260
8289
|
UserConfig$i,
|
|
8261
8290
|
UserConfig$i,
|
|
8262
|
-
IApi$
|
|
8291
|
+
IApi$i
|
|
8263
8292
|
>;
|
|
8264
8293
|
|
|
8265
8294
|
type UserConfig$h = Plugin.Name<'legacy/angular'> &
|
|
@@ -13687,6 +13716,7 @@ interface PluginConfigMap {
|
|
|
13687
13716
|
'@hey-api/client-fetch': HeyApiClientFetchPlugin['Types'];
|
|
13688
13717
|
'@hey-api/client-next': HeyApiClientNextPlugin['Types'];
|
|
13689
13718
|
'@hey-api/client-nuxt': HeyApiClientNuxtPlugin['Types'];
|
|
13719
|
+
'@hey-api/client-ofetch': HeyApiClientOfetchPlugin['Types'];
|
|
13690
13720
|
'@hey-api/schemas': HeyApiSchemasPlugin['Types'];
|
|
13691
13721
|
'@hey-api/sdk': HeyApiSdkPlugin['Types'];
|
|
13692
13722
|
'@hey-api/transformers': HeyApiTransformersPlugin['Types'];
|
|
@@ -14134,4 +14164,4 @@ interface WatchValues {
|
|
|
14134
14164
|
lastValue?: string;
|
|
14135
14165
|
}
|
|
14136
14166
|
|
|
14137
|
-
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$
|
|
14167
|
+
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$p 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$c as l, tsNodeToString as t };
|
|
@@ -6565,7 +6565,7 @@ type Patch = {
|
|
|
6565
6565
|
version?: string | ((version: string) => string);
|
|
6566
6566
|
};
|
|
6567
6567
|
|
|
6568
|
-
interface UserConfig$
|
|
6568
|
+
interface UserConfig$p {
|
|
6569
6569
|
/**
|
|
6570
6570
|
* Path to the config file. Set this value if you don't use the default
|
|
6571
6571
|
* config file name, or it's not located in the project root.
|
|
@@ -6690,7 +6690,7 @@ interface UserConfig$o {
|
|
|
6690
6690
|
}
|
|
6691
6691
|
|
|
6692
6692
|
type Config$c = Omit<
|
|
6693
|
-
Required<UserConfig$
|
|
6693
|
+
Required<UserConfig$p>,
|
|
6694
6694
|
| 'base'
|
|
6695
6695
|
| 'input'
|
|
6696
6696
|
| 'logs'
|
|
@@ -6701,7 +6701,7 @@ type Config$c = Omit<
|
|
|
6701
6701
|
| 'request'
|
|
6702
6702
|
| 'watch'
|
|
6703
6703
|
> &
|
|
6704
|
-
Pick<UserConfig$
|
|
6704
|
+
Pick<UserConfig$p, 'base' | 'name' | 'request'> & {
|
|
6705
6705
|
input: Omit<Input, 'path' | 'watch'> &
|
|
6706
6706
|
Pick<Required<Input>, 'path'> & { watch: Watch };
|
|
6707
6707
|
logs: Logs;
|
|
@@ -7760,6 +7760,7 @@ type PluginClientNames =
|
|
|
7760
7760
|
| '@hey-api/client-fetch'
|
|
7761
7761
|
| '@hey-api/client-next'
|
|
7762
7762
|
| '@hey-api/client-nuxt'
|
|
7763
|
+
| '@hey-api/client-ofetch'
|
|
7763
7764
|
| 'legacy/angular'
|
|
7764
7765
|
| 'legacy/axios'
|
|
7765
7766
|
| 'legacy/fetch'
|
|
@@ -7920,8 +7921,8 @@ type DefinePlugin<
|
|
|
7920
7921
|
Types: Plugin.Types<Config, ResolvedConfig, Api>;
|
|
7921
7922
|
};
|
|
7922
7923
|
|
|
7923
|
-
type SelectorType$
|
|
7924
|
-
type IApi$
|
|
7924
|
+
type SelectorType$j = 'class' | 'httpRequest' | 'httpResource' | 'HttpRequest' | 'inject' | 'Injectable';
|
|
7925
|
+
type IApi$j = {
|
|
7925
7926
|
/**
|
|
7926
7927
|
* @param type Selector type.
|
|
7927
7928
|
* @param value Depends on `type`:
|
|
@@ -7933,10 +7934,10 @@ type IApi$i = {
|
|
|
7933
7934
|
* - `Injectable`: never
|
|
7934
7935
|
* @returns Selector array
|
|
7935
7936
|
*/
|
|
7936
|
-
getSelector: (type: SelectorType$
|
|
7937
|
+
getSelector: (type: SelectorType$j, value?: string) => Selector;
|
|
7937
7938
|
};
|
|
7938
7939
|
|
|
7939
|
-
type UserConfig$
|
|
7940
|
+
type UserConfig$o = Plugin.Name<'@angular/common'> &
|
|
7940
7941
|
Plugin.Hooks & {
|
|
7941
7942
|
/**
|
|
7942
7943
|
* Should the exports from the generated files be re-exported in the index
|
|
@@ -8075,7 +8076,18 @@ type Config$b = Plugin.Name<'@angular/common'> &
|
|
|
8075
8076
|
};
|
|
8076
8077
|
};
|
|
8077
8078
|
|
|
8078
|
-
type AngularCommonPlugin = DefinePlugin<UserConfig$
|
|
8079
|
+
type AngularCommonPlugin = DefinePlugin<UserConfig$o, Config$b, IApi$j>;
|
|
8080
|
+
|
|
8081
|
+
type SelectorType$i = 'client';
|
|
8082
|
+
type IApi$i = {
|
|
8083
|
+
/**
|
|
8084
|
+
* @param type Selector type.
|
|
8085
|
+
* @param value Depends on `type`:
|
|
8086
|
+
* - `client`: never
|
|
8087
|
+
* @returns Selector array
|
|
8088
|
+
*/
|
|
8089
|
+
getSelector: (type: SelectorType$i, value?: string) => Selector;
|
|
8090
|
+
};
|
|
8079
8091
|
|
|
8080
8092
|
type SelectorType$h = 'client';
|
|
8081
8093
|
type IApi$h = {
|
|
@@ -8088,6 +8100,22 @@ type IApi$h = {
|
|
|
8088
8100
|
getSelector: (type: SelectorType$h, value?: string) => Selector;
|
|
8089
8101
|
};
|
|
8090
8102
|
|
|
8103
|
+
type UserConfig$n = Plugin.Name<'@hey-api/client-axios'> &
|
|
8104
|
+
Client.Config & {
|
|
8105
|
+
/**
|
|
8106
|
+
* Throw an error instead of returning it in the response?
|
|
8107
|
+
*
|
|
8108
|
+
* @default false
|
|
8109
|
+
*/
|
|
8110
|
+
throwOnError?: boolean;
|
|
8111
|
+
};
|
|
8112
|
+
|
|
8113
|
+
type HeyApiClientAxiosPlugin = DefinePlugin<
|
|
8114
|
+
UserConfig$n,
|
|
8115
|
+
UserConfig$n,
|
|
8116
|
+
IApi$h
|
|
8117
|
+
>;
|
|
8118
|
+
|
|
8091
8119
|
type SelectorType$g = 'client';
|
|
8092
8120
|
type IApi$g = {
|
|
8093
8121
|
/**
|
|
@@ -8099,7 +8127,7 @@ type IApi$g = {
|
|
|
8099
8127
|
getSelector: (type: SelectorType$g, value?: string) => Selector;
|
|
8100
8128
|
};
|
|
8101
8129
|
|
|
8102
|
-
type UserConfig$m = Plugin.Name<'@hey-api/client-
|
|
8130
|
+
type UserConfig$m = Plugin.Name<'@hey-api/client-fetch'> &
|
|
8103
8131
|
Client.Config & {
|
|
8104
8132
|
/**
|
|
8105
8133
|
* Throw an error instead of returning it in the response?
|
|
@@ -8109,7 +8137,7 @@ type UserConfig$m = Plugin.Name<'@hey-api/client-axios'> &
|
|
|
8109
8137
|
throwOnError?: boolean;
|
|
8110
8138
|
};
|
|
8111
8139
|
|
|
8112
|
-
type
|
|
8140
|
+
type HeyApiClientFetchPlugin = DefinePlugin<
|
|
8113
8141
|
UserConfig$m,
|
|
8114
8142
|
UserConfig$m,
|
|
8115
8143
|
IApi$g
|
|
@@ -8126,7 +8154,7 @@ type IApi$f = {
|
|
|
8126
8154
|
getSelector: (type: SelectorType$f, value?: string) => Selector;
|
|
8127
8155
|
};
|
|
8128
8156
|
|
|
8129
|
-
type UserConfig$l = Plugin.Name<'@hey-api/client-
|
|
8157
|
+
type UserConfig$l = Plugin.Name<'@hey-api/client-next'> &
|
|
8130
8158
|
Client.Config & {
|
|
8131
8159
|
/**
|
|
8132
8160
|
* Throw an error instead of returning it in the response?
|
|
@@ -8136,11 +8164,7 @@ type UserConfig$l = Plugin.Name<'@hey-api/client-fetch'> &
|
|
|
8136
8164
|
throwOnError?: boolean;
|
|
8137
8165
|
};
|
|
8138
8166
|
|
|
8139
|
-
type
|
|
8140
|
-
UserConfig$l,
|
|
8141
|
-
UserConfig$l,
|
|
8142
|
-
IApi$f
|
|
8143
|
-
>;
|
|
8167
|
+
type HeyApiClientNextPlugin = DefinePlugin<UserConfig$l, UserConfig$l, IApi$f>;
|
|
8144
8168
|
|
|
8145
8169
|
type SelectorType$e = 'client';
|
|
8146
8170
|
type IApi$e = {
|
|
@@ -8153,17 +8177,9 @@ type IApi$e = {
|
|
|
8153
8177
|
getSelector: (type: SelectorType$e, value?: string) => Selector;
|
|
8154
8178
|
};
|
|
8155
8179
|
|
|
8156
|
-
type UserConfig$k = Plugin.Name<'@hey-api/client-
|
|
8157
|
-
Client.Config & {
|
|
8158
|
-
/**
|
|
8159
|
-
* Throw an error instead of returning it in the response?
|
|
8160
|
-
*
|
|
8161
|
-
* @default false
|
|
8162
|
-
*/
|
|
8163
|
-
throwOnError?: boolean;
|
|
8164
|
-
};
|
|
8180
|
+
type UserConfig$k = Plugin.Name<'@hey-api/client-nuxt'> & Client.Config;
|
|
8165
8181
|
|
|
8166
|
-
type
|
|
8182
|
+
type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$k, UserConfig$k, IApi$e>;
|
|
8167
8183
|
|
|
8168
8184
|
type SelectorType$d = 'client';
|
|
8169
8185
|
type IApi$d = {
|
|
@@ -8176,9 +8192,21 @@ type IApi$d = {
|
|
|
8176
8192
|
getSelector: (type: SelectorType$d, value?: string) => Selector;
|
|
8177
8193
|
};
|
|
8178
8194
|
|
|
8179
|
-
type UserConfig$j = Plugin.Name<'@hey-api/client-
|
|
8195
|
+
type UserConfig$j = Plugin.Name<'@hey-api/client-ofetch'> &
|
|
8196
|
+
Client.Config & {
|
|
8197
|
+
/**
|
|
8198
|
+
* Throw an error instead of returning it in the response?
|
|
8199
|
+
*
|
|
8200
|
+
* @default false
|
|
8201
|
+
*/
|
|
8202
|
+
throwOnError?: boolean;
|
|
8203
|
+
};
|
|
8180
8204
|
|
|
8181
|
-
type
|
|
8205
|
+
type HeyApiClientOfetchPlugin = DefinePlugin<
|
|
8206
|
+
UserConfig$j,
|
|
8207
|
+
UserConfig$j,
|
|
8208
|
+
IApi$d
|
|
8209
|
+
>;
|
|
8182
8210
|
|
|
8183
8211
|
interface PluginHandler {
|
|
8184
8212
|
(...args: Parameters<HeyApiClientAngularPlugin['Handler']>): void;
|
|
@@ -8186,6 +8214,7 @@ interface PluginHandler {
|
|
|
8186
8214
|
(...args: Parameters<HeyApiClientFetchPlugin['Handler']>): void;
|
|
8187
8215
|
(...args: Parameters<HeyApiClientNextPlugin['Handler']>): void;
|
|
8188
8216
|
(...args: Parameters<HeyApiClientNuxtPlugin['Handler']>): void;
|
|
8217
|
+
(...args: Parameters<HeyApiClientOfetchPlugin['Handler']>): void;
|
|
8189
8218
|
}
|
|
8190
8219
|
|
|
8191
8220
|
/**
|
|
@@ -8259,7 +8288,7 @@ type UserConfig$i = Plugin.Name<'@hey-api/client-angular'> &
|
|
|
8259
8288
|
type HeyApiClientAngularPlugin = DefinePlugin<
|
|
8260
8289
|
UserConfig$i,
|
|
8261
8290
|
UserConfig$i,
|
|
8262
|
-
IApi$
|
|
8291
|
+
IApi$i
|
|
8263
8292
|
>;
|
|
8264
8293
|
|
|
8265
8294
|
type UserConfig$h = Plugin.Name<'legacy/angular'> &
|
|
@@ -13687,6 +13716,7 @@ interface PluginConfigMap {
|
|
|
13687
13716
|
'@hey-api/client-fetch': HeyApiClientFetchPlugin['Types'];
|
|
13688
13717
|
'@hey-api/client-next': HeyApiClientNextPlugin['Types'];
|
|
13689
13718
|
'@hey-api/client-nuxt': HeyApiClientNuxtPlugin['Types'];
|
|
13719
|
+
'@hey-api/client-ofetch': HeyApiClientOfetchPlugin['Types'];
|
|
13690
13720
|
'@hey-api/schemas': HeyApiSchemasPlugin['Types'];
|
|
13691
13721
|
'@hey-api/sdk': HeyApiSdkPlugin['Types'];
|
|
13692
13722
|
'@hey-api/transformers': HeyApiTransformersPlugin['Types'];
|
|
@@ -14134,4 +14164,4 @@ interface WatchValues {
|
|
|
14134
14164
|
lastValue?: string;
|
|
14135
14165
|
}
|
|
14136
14166
|
|
|
14137
|
-
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$
|
|
14167
|
+
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$p 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$c as l, tsNodeToString as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hey-api/openapi-ts",
|
|
3
|
-
"version": "0.84.
|
|
3
|
+
"version": "0.84.1",
|
|
4
4
|
"description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
|
|
5
5
|
"homepage": "https://heyapi.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"next.js",
|
|
31
31
|
"node",
|
|
32
32
|
"nuxt",
|
|
33
|
+
"ofetch",
|
|
33
34
|
"openapi",
|
|
34
35
|
"rest",
|
|
35
36
|
"swagger",
|
|
@@ -109,6 +110,7 @@
|
|
|
109
110
|
"glob": "10.4.3",
|
|
110
111
|
"node-fetch": "3.3.2",
|
|
111
112
|
"nuxt": "3.14.1592",
|
|
113
|
+
"ofetch": "1.4.1",
|
|
112
114
|
"prettier": "3.4.2",
|
|
113
115
|
"rxjs": "7.8.1",
|
|
114
116
|
"ts-node": "10.9.2",
|