orval 6.31.0 → 7.0.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  [![npm version](https://badge.fury.io/js/orval.svg)](https://badge.fury.io/js/orval)
2
2
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3
- [![tests](https://github.com/anymaniax/orval/actions/workflows/tests.yaml/badge.svg)](https://github.com/anymaniax/orval/actions/workflows/tests.yaml)
3
+ [![tests](https://github.com/orval-labs/orval/actions/workflows/tests.yaml/badge.svg)](https://github.com/orval-labs/orval/actions/workflows/tests.yaml)
4
4
 
5
5
  <p align="center">
6
6
  <img src="./logo/orval-logo-horizontal.svg?raw=true" width="500" height="160" alt="orval - Restfull Client Generator" />
@@ -19,11 +19,11 @@
19
19
 
20
20
  You can find below some samples
21
21
 
22
- - [react app](https://github.com/anymaniax/orval/tree/master/samples/react-app)
23
- - [react query](https://github.com/anymaniax/orval/tree/master/samples/react-query)
24
- - [svelte query](https://github.com/anymaniax/orval/tree/master/samples/svelte-query)
25
- - [vue query](https://github.com/anymaniax/orval/tree/master/samples/vue-query)
26
- - [react app with swr](https://github.com/anymaniax/orval/tree/master/samples/react-app-with-swr)
27
- - [angular app](https://github.com/anymaniax/orval/tree/master/samples/angular-app)
28
- - [hono](https://github.com/anymaniax/orval/tree/master/samples/hono)
29
- - [next app with fetch](https://github.com/anymaniax/orval/tree/master/samples/next-app-with-fetch)
22
+ - [react app](https://github.com/orval-labs/orval/tree/master/samples/react-app)
23
+ - [react query](https://github.com/orval-labs/orval/tree/master/samples/react-query)
24
+ - [svelte query](https://github.com/orval-labs/orval/tree/master/samples/svelte-query)
25
+ - [vue query](https://github.com/orval-labs/orval/tree/master/samples/vue-query)
26
+ - [react app with swr](https://github.com/orval-labs/orval/tree/master/samples/react-app-with-swr)
27
+ - [angular app](https://github.com/orval-labs/orval/tree/master/samples/angular-app)
28
+ - [hono](https://github.com/orval-labs/orval/tree/master/samples/hono)
29
+ - [next app with fetch](https://github.com/orval-labs/orval/tree/master/samples/next-app-with-fetch)
package/dist/bin/orval.js CHANGED
@@ -3302,7 +3302,8 @@ var generateClientImports = ({
3302
3302
  ...dependencies(
3303
3303
  hasGlobalMutator,
3304
3304
  hasParamsSerializerOptions,
3305
- packageJson
3305
+ packageJson,
3306
+ output.httpClient
3306
3307
  ),
3307
3308
  ...imports
3308
3309
  ] : imports,
@@ -3812,7 +3813,7 @@ var import_chalk2 = __toESM(require("chalk"));
3812
3813
  var package_default = {
3813
3814
  name: "orval",
3814
3815
  description: "A swagger client generator for typescript",
3815
- version: "6.31.0",
3816
+ version: "7.0.0",
3816
3817
  license: "MIT",
3817
3818
  files: [
3818
3819
  "dist"
@@ -3850,7 +3851,7 @@ var package_default = {
3850
3851
  },
3851
3852
  repository: {
3852
3853
  type: "git",
3853
- url: "https://github.com/anymaniax/orval"
3854
+ url: "https://github.com/orval-labs/orval"
3854
3855
  },
3855
3856
  scripts: {
3856
3857
  build: "tsup ./src/bin/orval.ts ./src/index.ts --target node12 --clean --sourcemap --dts",
@@ -3866,15 +3867,15 @@ var package_default = {
3866
3867
  },
3867
3868
  dependencies: {
3868
3869
  "@apidevtools/swagger-parser": "^10.1.0",
3869
- "@orval/angular": "6.31.0",
3870
- "@orval/axios": "6.31.0",
3871
- "@orval/core": "6.31.0",
3872
- "@orval/fetch": "6.31.0",
3873
- "@orval/hono": "6.31.0",
3874
- "@orval/mock": "6.31.0",
3875
- "@orval/query": "6.31.0",
3876
- "@orval/swr": "6.31.0",
3877
- "@orval/zod": "6.31.0",
3870
+ "@orval/angular": "7.0.0",
3871
+ "@orval/axios": "7.0.0",
3872
+ "@orval/core": "7.0.0",
3873
+ "@orval/fetch": "7.0.0",
3874
+ "@orval/hono": "7.0.0",
3875
+ "@orval/mock": "7.0.0",
3876
+ "@orval/query": "7.0.0",
3877
+ "@orval/swr": "7.0.0",
3878
+ "@orval/zod": "7.0.0",
3878
3879
  ajv: "^8.12.0",
3879
3880
  cac: "^6.7.14",
3880
3881
  chalk: "^4.1.2",
@@ -4099,7 +4100,7 @@ var loadTsconfig = async (tsconfig, workspace = process.cwd()) => {
4099
4100
 
4100
4101
  // src/utils/options.ts
4101
4102
  var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOptions = {}) => {
4102
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb, _zb, _Ab;
4103
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb, _zb, _Ab, _Bb, _Cb, _Db, _Eb, _Fb, _Gb, _Hb, _Ib, _Jb, _Kb, _Lb, _Mb, _Nb, _Ob, _Pb, _Qb, _Rb, _Sb, _Tb, _Ub, _Vb, _Wb;
4103
4104
  const options = await ((0, import_core7.isFunction)(optionsExport) ? optionsExport() : optionsExport);
4104
4105
  if (!options.input) {
4105
4106
  (0, import_core7.createLogger)().error(import_chalk2.default.red(`Config require an input`));
@@ -4115,7 +4116,7 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
4115
4116
  outputOptions.workspace || "",
4116
4117
  workspace
4117
4118
  );
4118
- const { clean, prettier, client, mode, tslint, biome } = globalOptions;
4119
+ const { clean, prettier, client, httpClient, mode, tslint, biome } = globalOptions;
4119
4120
  const tsconfig = await loadTsconfig(
4120
4121
  outputOptions.tsconfig || globalOptions.tsconfig,
4121
4122
  workspace
@@ -4169,34 +4170,35 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
4169
4170
  fileExtension: outputOptions.fileExtension || defaultFileExtension,
4170
4171
  workspace: outputOptions.workspace ? outputWorkspace : void 0,
4171
4172
  client: (_g = (_f = outputOptions.client) != null ? _f : client) != null ? _g : import_core7.OutputClient.AXIOS_FUNCTIONS,
4172
- mode: normalizeOutputMode((_h = outputOptions.mode) != null ? _h : mode),
4173
+ httpClient: (_i = (_h = outputOptions.httpClient) != null ? _h : httpClient) != null ? _i : import_core7.OutputHttpClient.AXIOS,
4174
+ mode: normalizeOutputMode((_j = outputOptions.mode) != null ? _j : mode),
4173
4175
  mock: mock2,
4174
- clean: (_j = (_i = outputOptions.clean) != null ? _i : clean) != null ? _j : false,
4175
- prettier: (_l = (_k = outputOptions.prettier) != null ? _k : prettier) != null ? _l : false,
4176
- tslint: (_n = (_m = outputOptions.tslint) != null ? _m : tslint) != null ? _n : false,
4177
- biome: (_p = (_o = outputOptions.biome) != null ? _o : biome) != null ? _p : false,
4176
+ clean: (_l = (_k = outputOptions.clean) != null ? _k : clean) != null ? _l : false,
4177
+ prettier: (_n = (_m = outputOptions.prettier) != null ? _m : prettier) != null ? _n : false,
4178
+ tslint: (_p = (_o = outputOptions.tslint) != null ? _o : tslint) != null ? _p : false,
4179
+ biome: (_r = (_q = outputOptions.biome) != null ? _q : biome) != null ? _r : false,
4178
4180
  tsconfig,
4179
4181
  packageJson,
4180
- headers: (_q = outputOptions.headers) != null ? _q : false,
4181
- indexFiles: (_r = outputOptions.indexFiles) != null ? _r : true,
4182
+ headers: (_s = outputOptions.headers) != null ? _s : false,
4183
+ indexFiles: (_t = outputOptions.indexFiles) != null ? _t : true,
4182
4184
  baseUrl: outputOptions.baseUrl,
4183
- unionAddMissingProperties: (_s = outputOptions.unionAddMissingProperties) != null ? _s : false,
4185
+ unionAddMissingProperties: (_u = outputOptions.unionAddMissingProperties) != null ? _u : false,
4184
4186
  override: {
4185
4187
  ...outputOptions.override,
4186
4188
  mock: {
4187
- arrayMin: (_v = (_u = (_t = outputOptions.override) == null ? void 0 : _t.mock) == null ? void 0 : _u.arrayMin) != null ? _v : 1,
4188
- arrayMax: (_y = (_x = (_w = outputOptions.override) == null ? void 0 : _w.mock) == null ? void 0 : _x.arrayMax) != null ? _y : 10,
4189
- ...(_A = (_z = outputOptions.override) == null ? void 0 : _z.mock) != null ? _A : {}
4189
+ arrayMin: (_x = (_w = (_v = outputOptions.override) == null ? void 0 : _v.mock) == null ? void 0 : _w.arrayMin) != null ? _x : 1,
4190
+ arrayMax: (_A = (_z = (_y = outputOptions.override) == null ? void 0 : _y.mock) == null ? void 0 : _z.arrayMax) != null ? _A : 10,
4191
+ ...(_C = (_B = outputOptions.override) == null ? void 0 : _B.mock) != null ? _C : {}
4190
4192
  },
4191
4193
  operations: normalizeOperationsAndTags(
4192
- (_C = (_B = outputOptions.override) == null ? void 0 : _B.operations) != null ? _C : {},
4194
+ (_E = (_D = outputOptions.override) == null ? void 0 : _D.operations) != null ? _E : {},
4193
4195
  outputWorkspace,
4194
4196
  {
4195
4197
  query: globalQueryOptions
4196
4198
  }
4197
4199
  ),
4198
4200
  tags: normalizeOperationsAndTags(
4199
- (_E = (_D = outputOptions.override) == null ? void 0 : _D.tags) != null ? _E : {},
4201
+ (_G = (_F = outputOptions.override) == null ? void 0 : _F.tags) != null ? _G : {},
4200
4202
  outputWorkspace,
4201
4203
  {
4202
4204
  query: globalQueryOptions
@@ -4204,106 +4206,113 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
4204
4206
  ),
4205
4207
  mutator: normalizeMutator(
4206
4208
  outputWorkspace,
4207
- (_F = outputOptions.override) == null ? void 0 : _F.mutator
4209
+ (_H = outputOptions.override) == null ? void 0 : _H.mutator
4208
4210
  ),
4209
- formData: (_J = !(0, import_core7.isBoolean)((_G = outputOptions.override) == null ? void 0 : _G.formData) ? normalizeMutator(
4211
+ formData: (_L = !(0, import_core7.isBoolean)((_I = outputOptions.override) == null ? void 0 : _I.formData) ? normalizeMutator(
4210
4212
  outputWorkspace,
4211
- (_H = outputOptions.override) == null ? void 0 : _H.formData
4212
- ) : (_I = outputOptions.override) == null ? void 0 : _I.formData) != null ? _J : true,
4213
- formUrlEncoded: (_N = !(0, import_core7.isBoolean)((_K = outputOptions.override) == null ? void 0 : _K.formUrlEncoded) ? normalizeMutator(
4213
+ (_J = outputOptions.override) == null ? void 0 : _J.formData
4214
+ ) : (_K = outputOptions.override) == null ? void 0 : _K.formData) != null ? _L : true,
4215
+ formUrlEncoded: (_P = !(0, import_core7.isBoolean)((_M = outputOptions.override) == null ? void 0 : _M.formUrlEncoded) ? normalizeMutator(
4214
4216
  outputWorkspace,
4215
- (_L = outputOptions.override) == null ? void 0 : _L.formUrlEncoded
4216
- ) : (_M = outputOptions.override) == null ? void 0 : _M.formUrlEncoded) != null ? _N : true,
4217
+ (_N = outputOptions.override) == null ? void 0 : _N.formUrlEncoded
4218
+ ) : (_O = outputOptions.override) == null ? void 0 : _O.formUrlEncoded) != null ? _P : true,
4217
4219
  paramsSerializer: normalizeMutator(
4218
4220
  outputWorkspace,
4219
- (_O = outputOptions.override) == null ? void 0 : _O.paramsSerializer
4221
+ (_Q = outputOptions.override) == null ? void 0 : _Q.paramsSerializer
4220
4222
  ),
4221
- header: ((_P = outputOptions.override) == null ? void 0 : _P.header) === false ? false : (0, import_core7.isFunction)((_Q = outputOptions.override) == null ? void 0 : _Q.header) ? (_R = outputOptions.override) == null ? void 0 : _R.header : getDefaultFilesHeader,
4222
- requestOptions: (_T = (_S = outputOptions.override) == null ? void 0 : _S.requestOptions) != null ? _T : true,
4223
+ header: ((_R = outputOptions.override) == null ? void 0 : _R.header) === false ? false : (0, import_core7.isFunction)((_S = outputOptions.override) == null ? void 0 : _S.header) ? (_T = outputOptions.override) == null ? void 0 : _T.header : getDefaultFilesHeader,
4224
+ requestOptions: (_V = (_U = outputOptions.override) == null ? void 0 : _U.requestOptions) != null ? _V : true,
4223
4225
  components: {
4224
4226
  schemas: {
4225
4227
  suffix: import_core7.RefComponentSuffix.schemas,
4226
- itemSuffix: (_X = (_W = (_V = (_U = outputOptions.override) == null ? void 0 : _U.components) == null ? void 0 : _V.schemas) == null ? void 0 : _W.itemSuffix) != null ? _X : "Item",
4227
- ...(__ = (_Z = (_Y = outputOptions.override) == null ? void 0 : _Y.components) == null ? void 0 : _Z.schemas) != null ? __ : {}
4228
+ itemSuffix: (_Z = (_Y = (_X = (_W = outputOptions.override) == null ? void 0 : _W.components) == null ? void 0 : _X.schemas) == null ? void 0 : _Y.itemSuffix) != null ? _Z : "Item",
4229
+ ...(_aa = (_$ = (__ = outputOptions.override) == null ? void 0 : __.components) == null ? void 0 : _$.schemas) != null ? _aa : {}
4228
4230
  },
4229
4231
  responses: {
4230
4232
  suffix: import_core7.RefComponentSuffix.responses,
4231
- ...(_ba = (_aa = (_$ = outputOptions.override) == null ? void 0 : _$.components) == null ? void 0 : _aa.responses) != null ? _ba : {}
4233
+ ...(_da = (_ca = (_ba = outputOptions.override) == null ? void 0 : _ba.components) == null ? void 0 : _ca.responses) != null ? _da : {}
4232
4234
  },
4233
4235
  parameters: {
4234
4236
  suffix: import_core7.RefComponentSuffix.parameters,
4235
- ...(_ea = (_da = (_ca = outputOptions.override) == null ? void 0 : _ca.components) == null ? void 0 : _da.parameters) != null ? _ea : {}
4237
+ ...(_ga = (_fa = (_ea = outputOptions.override) == null ? void 0 : _ea.components) == null ? void 0 : _fa.parameters) != null ? _ga : {}
4236
4238
  },
4237
4239
  requestBodies: {
4238
4240
  suffix: import_core7.RefComponentSuffix.requestBodies,
4239
- ...(_ha = (_ga = (_fa = outputOptions.override) == null ? void 0 : _fa.components) == null ? void 0 : _ga.requestBodies) != null ? _ha : {}
4241
+ ...(_ja = (_ia = (_ha = outputOptions.override) == null ? void 0 : _ha.components) == null ? void 0 : _ia.requestBodies) != null ? _ja : {}
4240
4242
  }
4241
4243
  },
4242
- hono: normalizeHonoOptions((_ia = outputOptions.override) == null ? void 0 : _ia.hono, workspace),
4244
+ hono: normalizeHonoOptions((_ka = outputOptions.override) == null ? void 0 : _ka.hono, workspace),
4243
4245
  query: globalQueryOptions,
4244
4246
  zod: {
4245
4247
  strict: {
4246
- param: (_ma = (_la = (_ka = (_ja = outputOptions.override) == null ? void 0 : _ja.zod) == null ? void 0 : _ka.strict) == null ? void 0 : _la.param) != null ? _ma : false,
4247
- query: (_qa = (_pa = (_oa = (_na = outputOptions.override) == null ? void 0 : _na.zod) == null ? void 0 : _oa.strict) == null ? void 0 : _pa.query) != null ? _qa : false,
4248
- header: (_ua = (_ta = (_sa = (_ra = outputOptions.override) == null ? void 0 : _ra.zod) == null ? void 0 : _sa.strict) == null ? void 0 : _ta.header) != null ? _ua : false,
4249
- body: (_ya = (_xa = (_wa = (_va = outputOptions.override) == null ? void 0 : _va.zod) == null ? void 0 : _wa.strict) == null ? void 0 : _xa.body) != null ? _ya : false,
4250
- response: (_Ca = (_Ba = (_Aa = (_za = outputOptions.override) == null ? void 0 : _za.zod) == null ? void 0 : _Aa.strict) == null ? void 0 : _Ba.response) != null ? _Ca : false
4248
+ param: (_oa = (_na = (_ma = (_la = outputOptions.override) == null ? void 0 : _la.zod) == null ? void 0 : _ma.strict) == null ? void 0 : _na.param) != null ? _oa : false,
4249
+ query: (_sa = (_ra = (_qa = (_pa = outputOptions.override) == null ? void 0 : _pa.zod) == null ? void 0 : _qa.strict) == null ? void 0 : _ra.query) != null ? _sa : false,
4250
+ header: (_wa = (_va = (_ua = (_ta = outputOptions.override) == null ? void 0 : _ta.zod) == null ? void 0 : _ua.strict) == null ? void 0 : _va.header) != null ? _wa : false,
4251
+ body: (_Aa = (_za = (_ya = (_xa = outputOptions.override) == null ? void 0 : _xa.zod) == null ? void 0 : _ya.strict) == null ? void 0 : _za.body) != null ? _Aa : false,
4252
+ response: (_Ea = (_Da = (_Ca = (_Ba = outputOptions.override) == null ? void 0 : _Ba.zod) == null ? void 0 : _Ca.strict) == null ? void 0 : _Da.response) != null ? _Ea : false
4253
+ },
4254
+ generate: {
4255
+ param: (_Ia = (_Ha = (_Ga = (_Fa = outputOptions.override) == null ? void 0 : _Fa.zod) == null ? void 0 : _Ga.generate) == null ? void 0 : _Ha.param) != null ? _Ia : true,
4256
+ query: (_Ma = (_La = (_Ka = (_Ja = outputOptions.override) == null ? void 0 : _Ja.zod) == null ? void 0 : _Ka.generate) == null ? void 0 : _La.query) != null ? _Ma : true,
4257
+ header: (_Qa = (_Pa = (_Oa = (_Na = outputOptions.override) == null ? void 0 : _Na.zod) == null ? void 0 : _Oa.generate) == null ? void 0 : _Pa.header) != null ? _Qa : true,
4258
+ body: (_Ua = (_Ta = (_Sa = (_Ra = outputOptions.override) == null ? void 0 : _Ra.zod) == null ? void 0 : _Sa.generate) == null ? void 0 : _Ta.body) != null ? _Ua : true,
4259
+ response: (_Ya = (_Xa = (_Wa = (_Va = outputOptions.override) == null ? void 0 : _Va.zod) == null ? void 0 : _Wa.generate) == null ? void 0 : _Xa.response) != null ? _Ya : true
4251
4260
  },
4252
4261
  coerce: {
4253
- param: (_Ga = (_Fa = (_Ea = (_Da = outputOptions.override) == null ? void 0 : _Da.zod) == null ? void 0 : _Ea.coerce) == null ? void 0 : _Fa.param) != null ? _Ga : false,
4254
- query: (_Ka = (_Ja = (_Ia = (_Ha = outputOptions.override) == null ? void 0 : _Ha.zod) == null ? void 0 : _Ia.coerce) == null ? void 0 : _Ja.query) != null ? _Ka : false,
4255
- header: (_Oa = (_Na = (_Ma = (_La = outputOptions.override) == null ? void 0 : _La.zod) == null ? void 0 : _Ma.coerce) == null ? void 0 : _Na.header) != null ? _Oa : false,
4256
- body: (_Sa = (_Ra = (_Qa = (_Pa = outputOptions.override) == null ? void 0 : _Pa.zod) == null ? void 0 : _Qa.coerce) == null ? void 0 : _Ra.body) != null ? _Sa : false,
4257
- response: (_Wa = (_Va = (_Ua = (_Ta = outputOptions.override) == null ? void 0 : _Ta.zod) == null ? void 0 : _Ua.coerce) == null ? void 0 : _Va.response) != null ? _Wa : false
4262
+ param: (_ab = (_$a = (__a = (_Za = outputOptions.override) == null ? void 0 : _Za.zod) == null ? void 0 : __a.coerce) == null ? void 0 : _$a.param) != null ? _ab : false,
4263
+ query: (_eb = (_db = (_cb = (_bb = outputOptions.override) == null ? void 0 : _bb.zod) == null ? void 0 : _cb.coerce) == null ? void 0 : _db.query) != null ? _eb : false,
4264
+ header: (_ib = (_hb = (_gb = (_fb = outputOptions.override) == null ? void 0 : _fb.zod) == null ? void 0 : _gb.coerce) == null ? void 0 : _hb.header) != null ? _ib : false,
4265
+ body: (_mb = (_lb = (_kb = (_jb = outputOptions.override) == null ? void 0 : _jb.zod) == null ? void 0 : _kb.coerce) == null ? void 0 : _lb.body) != null ? _mb : false,
4266
+ response: (_qb = (_pb = (_ob = (_nb = outputOptions.override) == null ? void 0 : _nb.zod) == null ? void 0 : _ob.coerce) == null ? void 0 : _pb.response) != null ? _qb : false
4258
4267
  },
4259
4268
  preprocess: {
4260
- ...((_Za = (_Ya = (_Xa = outputOptions.override) == null ? void 0 : _Xa.zod) == null ? void 0 : _Ya.preprocess) == null ? void 0 : _Za.param) ? {
4269
+ ...((_tb = (_sb = (_rb = outputOptions.override) == null ? void 0 : _rb.zod) == null ? void 0 : _sb.preprocess) == null ? void 0 : _tb.param) ? {
4261
4270
  param: normalizeMutator(
4262
4271
  workspace,
4263
4272
  outputOptions.override.zod.preprocess.param
4264
4273
  )
4265
4274
  } : {},
4266
- ...((_ab = (_$a = (__a = outputOptions.override) == null ? void 0 : __a.zod) == null ? void 0 : _$a.preprocess) == null ? void 0 : _ab.query) ? {
4275
+ ...((_wb = (_vb = (_ub = outputOptions.override) == null ? void 0 : _ub.zod) == null ? void 0 : _vb.preprocess) == null ? void 0 : _wb.query) ? {
4267
4276
  query: normalizeMutator(
4268
4277
  workspace,
4269
4278
  outputOptions.override.zod.preprocess.query
4270
4279
  )
4271
4280
  } : {},
4272
- ...((_db = (_cb = (_bb = outputOptions.override) == null ? void 0 : _bb.zod) == null ? void 0 : _cb.preprocess) == null ? void 0 : _db.header) ? {
4281
+ ...((_zb = (_yb = (_xb = outputOptions.override) == null ? void 0 : _xb.zod) == null ? void 0 : _yb.preprocess) == null ? void 0 : _zb.header) ? {
4273
4282
  header: normalizeMutator(
4274
4283
  workspace,
4275
4284
  outputOptions.override.zod.preprocess.header
4276
4285
  )
4277
4286
  } : {},
4278
- ...((_gb = (_fb = (_eb = outputOptions.override) == null ? void 0 : _eb.zod) == null ? void 0 : _fb.preprocess) == null ? void 0 : _gb.body) ? {
4287
+ ...((_Cb = (_Bb = (_Ab = outputOptions.override) == null ? void 0 : _Ab.zod) == null ? void 0 : _Bb.preprocess) == null ? void 0 : _Cb.body) ? {
4279
4288
  body: normalizeMutator(
4280
4289
  workspace,
4281
4290
  outputOptions.override.zod.preprocess.body
4282
4291
  )
4283
4292
  } : {},
4284
- ...((_jb = (_ib = (_hb = outputOptions.override) == null ? void 0 : _hb.zod) == null ? void 0 : _ib.preprocess) == null ? void 0 : _jb.response) ? {
4293
+ ...((_Fb = (_Eb = (_Db = outputOptions.override) == null ? void 0 : _Db.zod) == null ? void 0 : _Eb.preprocess) == null ? void 0 : _Fb.response) ? {
4285
4294
  response: normalizeMutator(
4286
4295
  workspace,
4287
4296
  outputOptions.override.zod.preprocess.response
4288
4297
  )
4289
4298
  } : {}
4290
4299
  },
4291
- generateEachHttpStatus: (_mb = (_lb = (_kb = outputOptions.override) == null ? void 0 : _kb.zod) == null ? void 0 : _lb.generateEachHttpStatus) != null ? _mb : false
4300
+ generateEachHttpStatus: (_Ib = (_Hb = (_Gb = outputOptions.override) == null ? void 0 : _Gb.zod) == null ? void 0 : _Hb.generateEachHttpStatus) != null ? _Ib : false
4292
4301
  },
4293
4302
  swr: {
4294
- ...(_ob = (_nb = outputOptions.override) == null ? void 0 : _nb.swr) != null ? _ob : {}
4303
+ ...(_Kb = (_Jb = outputOptions.override) == null ? void 0 : _Jb.swr) != null ? _Kb : {}
4295
4304
  },
4296
4305
  angular: {
4297
- provideIn: (_rb = (_qb = (_pb = outputOptions.override) == null ? void 0 : _pb.angular) == null ? void 0 : _qb.provideIn) != null ? _rb : "root"
4306
+ provideIn: (_Nb = (_Mb = (_Lb = outputOptions.override) == null ? void 0 : _Lb.angular) == null ? void 0 : _Mb.provideIn) != null ? _Nb : "root"
4298
4307
  },
4299
- useDates: ((_sb = outputOptions.override) == null ? void 0 : _sb.useDates) || false,
4300
- useDeprecatedOperations: (_ub = (_tb = outputOptions.override) == null ? void 0 : _tb.useDeprecatedOperations) != null ? _ub : true,
4301
- useNativeEnums: (_wb = (_vb = outputOptions.override) == null ? void 0 : _vb.useNativeEnums) != null ? _wb : false,
4302
- suppressReadonlyModifier: ((_xb = outputOptions.override) == null ? void 0 : _xb.suppressReadonlyModifier) || false
4308
+ useDates: ((_Ob = outputOptions.override) == null ? void 0 : _Ob.useDates) || false,
4309
+ useDeprecatedOperations: (_Qb = (_Pb = outputOptions.override) == null ? void 0 : _Pb.useDeprecatedOperations) != null ? _Qb : true,
4310
+ useNativeEnums: (_Sb = (_Rb = outputOptions.override) == null ? void 0 : _Rb.useNativeEnums) != null ? _Sb : false,
4311
+ suppressReadonlyModifier: ((_Tb = outputOptions.override) == null ? void 0 : _Tb.suppressReadonlyModifier) || false
4303
4312
  },
4304
- allParamsOptional: (_yb = outputOptions.allParamsOptional) != null ? _yb : false,
4305
- urlEncodeParameters: (_zb = outputOptions.urlEncodeParameters) != null ? _zb : false,
4306
- optionsParamRequired: (_Ab = outputOptions.optionsParamRequired) != null ? _Ab : false
4313
+ allParamsOptional: (_Ub = outputOptions.allParamsOptional) != null ? _Ub : false,
4314
+ urlEncodeParameters: (_Vb = outputOptions.urlEncodeParameters) != null ? _Vb : false,
4315
+ optionsParamRequired: (_Wb = outputOptions.optionsParamRequired) != null ? _Wb : false
4307
4316
  },
4308
4317
  hooks: options.hooks ? normalizeHooks(options.hooks) : {}
4309
4318
  };
@@ -4372,7 +4381,7 @@ var normalizeOperationsAndTags = (operationsOrTags, workspace, global2) => {
4372
4381
  ...rest
4373
4382
  }
4374
4383
  ]) => {
4375
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
4384
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J;
4376
4385
  return [
4377
4386
  key,
4378
4387
  {
@@ -4389,46 +4398,53 @@ var normalizeOperationsAndTags = (operationsOrTags, workspace, global2) => {
4389
4398
  body: (_h = (_g = zod2.strict) == null ? void 0 : _g.body) != null ? _h : false,
4390
4399
  response: (_j = (_i = zod2.strict) == null ? void 0 : _i.response) != null ? _j : false
4391
4400
  },
4401
+ generate: {
4402
+ param: (_l = (_k = zod2.generate) == null ? void 0 : _k.param) != null ? _l : true,
4403
+ query: (_n = (_m = zod2.generate) == null ? void 0 : _m.query) != null ? _n : true,
4404
+ header: (_p = (_o = zod2.generate) == null ? void 0 : _o.header) != null ? _p : true,
4405
+ body: (_r = (_q = zod2.generate) == null ? void 0 : _q.body) != null ? _r : true,
4406
+ response: (_t = (_s = zod2.generate) == null ? void 0 : _s.response) != null ? _t : true
4407
+ },
4392
4408
  coerce: {
4393
- param: (_l = (_k = zod2.coerce) == null ? void 0 : _k.param) != null ? _l : false,
4394
- query: (_n = (_m = zod2.coerce) == null ? void 0 : _m.query) != null ? _n : false,
4395
- header: (_p = (_o = zod2.coerce) == null ? void 0 : _o.header) != null ? _p : false,
4396
- body: (_r = (_q = zod2.coerce) == null ? void 0 : _q.body) != null ? _r : false,
4397
- response: (_t = (_s = zod2.coerce) == null ? void 0 : _s.response) != null ? _t : false
4409
+ param: (_v = (_u = zod2.coerce) == null ? void 0 : _u.param) != null ? _v : false,
4410
+ query: (_x = (_w = zod2.coerce) == null ? void 0 : _w.query) != null ? _x : false,
4411
+ header: (_z = (_y = zod2.coerce) == null ? void 0 : _y.header) != null ? _z : false,
4412
+ body: (_B = (_A = zod2.coerce) == null ? void 0 : _A.body) != null ? _B : false,
4413
+ response: (_D = (_C = zod2.coerce) == null ? void 0 : _C.response) != null ? _D : false
4398
4414
  },
4399
4415
  preprocess: {
4400
- ...((_u = zod2.preprocess) == null ? void 0 : _u.param) ? {
4416
+ ...((_E = zod2.preprocess) == null ? void 0 : _E.param) ? {
4401
4417
  param: normalizeMutator(
4402
4418
  workspace,
4403
4419
  zod2.preprocess.param
4404
4420
  )
4405
4421
  } : {},
4406
- ...((_v = zod2.preprocess) == null ? void 0 : _v.query) ? {
4422
+ ...((_F = zod2.preprocess) == null ? void 0 : _F.query) ? {
4407
4423
  query: normalizeMutator(
4408
4424
  workspace,
4409
4425
  zod2.preprocess.query
4410
4426
  )
4411
4427
  } : {},
4412
- ...((_w = zod2.preprocess) == null ? void 0 : _w.header) ? {
4428
+ ...((_G = zod2.preprocess) == null ? void 0 : _G.header) ? {
4413
4429
  header: normalizeMutator(
4414
4430
  workspace,
4415
4431
  zod2.preprocess.header
4416
4432
  )
4417
4433
  } : {},
4418
- ...((_x = zod2.preprocess) == null ? void 0 : _x.body) ? {
4434
+ ...((_H = zod2.preprocess) == null ? void 0 : _H.body) ? {
4419
4435
  body: normalizeMutator(
4420
4436
  workspace,
4421
4437
  zod2.preprocess.body
4422
4438
  )
4423
4439
  } : {},
4424
- ...((_y = zod2.preprocess) == null ? void 0 : _y.response) ? {
4440
+ ...((_I = zod2.preprocess) == null ? void 0 : _I.response) ? {
4425
4441
  response: normalizeMutator(
4426
4442
  workspace,
4427
4443
  zod2.preprocess.response
4428
4444
  )
4429
4445
  } : {}
4430
4446
  },
4431
- generateEachHttpStatus: (_z = zod2 == null ? void 0 : zod2.generateEachHttpStatus) != null ? _z : false
4447
+ generateEachHttpStatus: (_J = zod2 == null ? void 0 : zod2.generateEachHttpStatus) != null ? _J : false
4432
4448
  }
4433
4449
  } : {},
4434
4450
  ...transformer ? { transformer: normalizePath(transformer, workspace) } : {},