orval 6.26.0 → 6.27.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/dist/index.js CHANGED
@@ -3821,7 +3821,7 @@ var import_chalk2 = __toESM(require("chalk"));
3821
3821
  var package_default = {
3822
3822
  name: "orval",
3823
3823
  description: "A swagger client generator for typescript",
3824
- version: "6.26.0",
3824
+ version: "6.27.1",
3825
3825
  license: "MIT",
3826
3826
  files: [
3827
3827
  "dist"
@@ -3875,14 +3875,14 @@ var package_default = {
3875
3875
  },
3876
3876
  dependencies: {
3877
3877
  "@apidevtools/swagger-parser": "^10.1.0",
3878
- "@orval/angular": "6.26.0",
3879
- "@orval/axios": "6.26.0",
3880
- "@orval/core": "6.26.0",
3881
- "@orval/mock": "6.26.0",
3882
- "@orval/query": "6.26.0",
3883
- "@orval/swr": "6.26.0",
3884
- "@orval/zod": "6.26.0",
3885
- "@orval/hono": "6.26.0",
3878
+ "@orval/angular": "6.27.1",
3879
+ "@orval/axios": "6.27.1",
3880
+ "@orval/core": "6.27.1",
3881
+ "@orval/mock": "6.27.1",
3882
+ "@orval/query": "6.27.1",
3883
+ "@orval/swr": "6.27.1",
3884
+ "@orval/zod": "6.27.1",
3885
+ "@orval/hono": "6.27.1",
3886
3886
  ajv: "^8.12.0",
3887
3887
  cac: "^6.7.14",
3888
3888
  chalk: "^4.1.2",
@@ -4110,7 +4110,7 @@ function defineConfig(options) {
4110
4110
  return options;
4111
4111
  }
4112
4112
  var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOptions = {}) => {
4113
- 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;
4113
+ 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;
4114
4114
  const options = await ((0, import_core7.isFunction)(optionsExport) ? optionsExport() : optionsExport);
4115
4115
  if (!options.input) {
4116
4116
  (0, import_core7.createLogger)().error(import_chalk2.default.red(`Config require an input`));
@@ -4239,18 +4239,27 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
4239
4239
  shouldExportMutatorHooks: true,
4240
4240
  ...normalizeQueryOptions((_ga = outputOptions.override) == null ? void 0 : _ga.query, workspace)
4241
4241
  },
4242
+ zod: {
4243
+ strict: {
4244
+ param: (_ka = (_ja = (_ia = (_ha = outputOptions.override) == null ? void 0 : _ha.zod) == null ? void 0 : _ia.strict) == null ? void 0 : _ja.param) != null ? _ka : false,
4245
+ query: (_oa = (_na = (_ma = (_la = outputOptions.override) == null ? void 0 : _la.zod) == null ? void 0 : _ma.strict) == null ? void 0 : _na.query) != null ? _oa : false,
4246
+ header: (_sa = (_ra = (_qa = (_pa = outputOptions.override) == null ? void 0 : _pa.zod) == null ? void 0 : _qa.strict) == null ? void 0 : _ra.header) != null ? _sa : false,
4247
+ body: (_wa = (_va = (_ua = (_ta = outputOptions.override) == null ? void 0 : _ta.zod) == null ? void 0 : _ua.strict) == null ? void 0 : _va.body) != null ? _wa : false,
4248
+ response: (_Aa = (_za = (_ya = (_xa = outputOptions.override) == null ? void 0 : _xa.zod) == null ? void 0 : _ya.strict) == null ? void 0 : _za.response) != null ? _Aa : false
4249
+ }
4250
+ },
4242
4251
  swr: {
4243
- ...(_ia = (_ha = outputOptions.override) == null ? void 0 : _ha.swr) != null ? _ia : {}
4252
+ ...(_Ca = (_Ba = outputOptions.override) == null ? void 0 : _Ba.swr) != null ? _Ca : {}
4244
4253
  },
4245
4254
  angular: {
4246
- provideIn: (_la = (_ka = (_ja = outputOptions.override) == null ? void 0 : _ja.angular) == null ? void 0 : _ka.provideIn) != null ? _la : "root"
4255
+ provideIn: (_Fa = (_Ea = (_Da = outputOptions.override) == null ? void 0 : _Da.angular) == null ? void 0 : _Ea.provideIn) != null ? _Fa : "root"
4247
4256
  },
4248
- useDates: ((_ma = outputOptions.override) == null ? void 0 : _ma.useDates) || false,
4249
- useDeprecatedOperations: (_oa = (_na = outputOptions.override) == null ? void 0 : _na.useDeprecatedOperations) != null ? _oa : true,
4250
- useNativeEnums: (_qa = (_pa = outputOptions.override) == null ? void 0 : _pa.useNativeEnums) != null ? _qa : false
4257
+ useDates: ((_Ga = outputOptions.override) == null ? void 0 : _Ga.useDates) || false,
4258
+ useDeprecatedOperations: (_Ia = (_Ha = outputOptions.override) == null ? void 0 : _Ha.useDeprecatedOperations) != null ? _Ia : true,
4259
+ useNativeEnums: (_Ka = (_Ja = outputOptions.override) == null ? void 0 : _Ja.useNativeEnums) != null ? _Ka : false
4251
4260
  },
4252
- allParamsOptional: (_ra = outputOptions.allParamsOptional) != null ? _ra : false,
4253
- urlEncodeParameters: (_sa = outputOptions.urlEncodeParameters) != null ? _sa : false
4261
+ allParamsOptional: (_La = outputOptions.allParamsOptional) != null ? _La : false,
4262
+ urlEncodeParameters: (_Ma = outputOptions.urlEncodeParameters) != null ? _Ma : false
4254
4263
  },
4255
4264
  hooks: options.hooks ? normalizeHooks(options.hooks) : {}
4256
4265
  };
@@ -4315,9 +4324,11 @@ var normalizeOperationsAndTags = (operationsOrTags, workspace) => {
4315
4324
  formUrlEncoded,
4316
4325
  paramsSerializer,
4317
4326
  query: query2,
4327
+ zod: zod2,
4318
4328
  ...rest
4319
4329
  }
4320
4330
  ]) => {
4331
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
4321
4332
  return [
4322
4333
  key,
4323
4334
  {
@@ -4325,6 +4336,17 @@ var normalizeOperationsAndTags = (operationsOrTags, workspace) => {
4325
4336
  ...query2 ? {
4326
4337
  query: normalizeQueryOptions(query2, workspace)
4327
4338
  } : {},
4339
+ ...zod2 ? {
4340
+ zod: {
4341
+ strict: {
4342
+ param: (_b = (_a = zod2.strict) == null ? void 0 : _a.param) != null ? _b : false,
4343
+ query: (_d = (_c = zod2.strict) == null ? void 0 : _c.query) != null ? _d : false,
4344
+ header: (_f = (_e = zod2.strict) == null ? void 0 : _e.header) != null ? _f : false,
4345
+ body: (_h = (_g = zod2.strict) == null ? void 0 : _g.body) != null ? _h : false,
4346
+ response: (_j = (_i = zod2.strict) == null ? void 0 : _i.response) != null ? _j : false
4347
+ }
4348
+ }
4349
+ } : {},
4328
4350
  ...transformer ? { transformer: normalizePath(transformer, workspace) } : {},
4329
4351
  ...mutator ? { mutator: normalizeMutator(workspace, mutator) } : {},
4330
4352
  ...formData ? {