orval 7.3.0 → 7.4.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
@@ -3194,12 +3194,12 @@ var import_mock = require("@orval/mock");
3194
3194
  var import_angular = __toESM(require("@orval/angular"));
3195
3195
  var import_axios = __toESM(require("@orval/axios"));
3196
3196
  var import_core = require("@orval/core");
3197
+ var import_fetch = __toESM(require("@orval/fetch"));
3198
+ var import_hono = __toESM(require("@orval/hono"));
3197
3199
  var mock = __toESM(require("@orval/mock"));
3198
3200
  var import_query = __toESM(require("@orval/query"));
3199
3201
  var import_swr = __toESM(require("@orval/swr"));
3200
3202
  var import_zod = __toESM(require("@orval/zod"));
3201
- var import_hono = __toESM(require("@orval/hono"));
3202
- var import_fetch = __toESM(require("@orval/fetch"));
3203
3203
  var DEFAULT_CLIENT = import_core.OutputClient.AXIOS;
3204
3204
  var getGeneratorClient = (outputClient, output) => {
3205
3205
  const GENERATOR_CLIENT = {
@@ -3316,7 +3316,7 @@ var generateClientFooter = ({
3316
3316
  hasAwaitedType
3317
3317
  });
3318
3318
  }
3319
- } catch (e) {
3319
+ } catch {
3320
3320
  implementation = footer({
3321
3321
  operationNames,
3322
3322
  title: titles.implementation,
@@ -3426,6 +3426,7 @@ var getApiBuilder = async ({
3426
3426
  const api = await (0, import_core2.asyncReduce)(
3427
3427
  Object.entries((_a = context.specs[context.specKey].paths) != null ? _a : {}),
3428
3428
  async (acc, [pathRoute, verbs]) => {
3429
+ var _a2;
3429
3430
  const route = (0, import_core2.getRoute)(pathRoute);
3430
3431
  let resolvedVerbs = verbs;
3431
3432
  let resolvedContext = context;
@@ -3473,13 +3474,11 @@ var getApiBuilder = async ({
3473
3474
  },
3474
3475
  []
3475
3476
  );
3476
- let fullRoute = route;
3477
- if (output.baseUrl) {
3478
- if (output.baseUrl.endsWith("/") && route.startsWith("/")) {
3479
- fullRoute = route.slice(1);
3480
- }
3481
- fullRoute = `${output.baseUrl}${fullRoute}`;
3482
- }
3477
+ const fullRoute = (0, import_core2.getFullRoute)(
3478
+ route,
3479
+ (_a2 = verbs.servers) != null ? _a2 : context.specs[context.specKey].servers,
3480
+ output.baseUrl
3481
+ );
3483
3482
  const pathOperations = await generateOperations(
3484
3483
  output.client,
3485
3484
  verbsOptions,
@@ -3752,7 +3751,7 @@ var import_chalk2 = __toESM(require("chalk"));
3752
3751
  var package_default = {
3753
3752
  name: "orval",
3754
3753
  description: "A swagger client generator for typescript",
3755
- version: "7.3.0",
3754
+ version: "7.4.1",
3756
3755
  license: "MIT",
3757
3756
  files: [
3758
3757
  "dist"
@@ -3806,16 +3805,16 @@ var package_default = {
3806
3805
  },
3807
3806
  dependencies: {
3808
3807
  "@apidevtools/swagger-parser": "^10.1.0",
3809
- "@orval/angular": "7.3.0",
3810
- "@orval/axios": "7.3.0",
3811
- "@orval/core": "7.3.0",
3812
- "@orval/fetch": "7.3.0",
3813
- "@orval/hono": "7.3.0",
3814
- "@orval/mock": "7.3.0",
3815
- "@orval/query": "7.3.0",
3816
- "@orval/swr": "7.3.0",
3817
- "@orval/zod": "7.3.0",
3818
- ajv: "^8.12.0",
3808
+ "@orval/angular": "7.4.1",
3809
+ "@orval/axios": "7.4.1",
3810
+ "@orval/core": "7.4.1",
3811
+ "@orval/fetch": "7.4.1",
3812
+ "@orval/hono": "7.4.1",
3813
+ "@orval/mock": "7.4.1",
3814
+ "@orval/query": "7.4.1",
3815
+ "@orval/swr": "7.4.1",
3816
+ "@orval/zod": "7.4.1",
3817
+ ajv: "^8.17.1",
3819
3818
  cac: "^6.7.14",
3820
3819
  chalk: "^4.1.2",
3821
3820
  chokidar: "^4.0.1",
@@ -3826,7 +3825,10 @@ var package_default = {
3826
3825
  "lodash.uniq": "^4.5.0",
3827
3826
  "openapi3-ts": "4.2.2",
3828
3827
  "string-argv": "^0.3.2",
3829
- tsconfck: "^2.0.1"
3828
+ tsconfck: "^2.0.1",
3829
+ typedoc: "0.26.11",
3830
+ "typedoc-plugin-markdown": "4.2.10",
3831
+ typescript: "^5.6.3"
3830
3832
  }
3831
3833
  };
3832
3834
 
@@ -4042,7 +4044,7 @@ function defineConfig(options) {
4042
4044
  return options;
4043
4045
  }
4044
4046
  var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOptions = {}) => {
4045
- 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, _Xb, _Yb, _Zb, __b, _$b;
4047
+ 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, _Xb, _Yb, _Zb, __b, _$b, _ac, _bc;
4046
4048
  const options = await ((0, import_core7.isFunction)(optionsExport) ? optionsExport() : optionsExport);
4047
4049
  if (!options.input) {
4048
4050
  (0, import_core7.createLogger)().error(import_chalk2.default.red(`Config require an input`));
@@ -4116,31 +4118,32 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
4116
4118
  mode: normalizeOutputMode((_j = outputOptions.mode) != null ? _j : mode),
4117
4119
  mock: mock2,
4118
4120
  clean: (_l = (_k = outputOptions.clean) != null ? _k : clean) != null ? _l : false,
4119
- prettier: (_n = (_m = outputOptions.prettier) != null ? _m : prettier) != null ? _n : false,
4120
- tslint: (_p = (_o = outputOptions.tslint) != null ? _o : tslint) != null ? _p : false,
4121
- biome: (_r = (_q = outputOptions.biome) != null ? _q : biome) != null ? _r : false,
4121
+ docs: (_m = outputOptions.docs) != null ? _m : false,
4122
+ prettier: (_o = (_n = outputOptions.prettier) != null ? _n : prettier) != null ? _o : false,
4123
+ tslint: (_q = (_p = outputOptions.tslint) != null ? _p : tslint) != null ? _q : false,
4124
+ biome: (_s = (_r = outputOptions.biome) != null ? _r : biome) != null ? _s : false,
4122
4125
  tsconfig,
4123
4126
  packageJson,
4124
- headers: (_s = outputOptions.headers) != null ? _s : false,
4125
- indexFiles: (_t = outputOptions.indexFiles) != null ? _t : true,
4127
+ headers: (_t = outputOptions.headers) != null ? _t : false,
4128
+ indexFiles: (_u = outputOptions.indexFiles) != null ? _u : true,
4126
4129
  baseUrl: outputOptions.baseUrl,
4127
- unionAddMissingProperties: (_u = outputOptions.unionAddMissingProperties) != null ? _u : false,
4130
+ unionAddMissingProperties: (_v = outputOptions.unionAddMissingProperties) != null ? _v : false,
4128
4131
  override: {
4129
4132
  ...outputOptions.override,
4130
4133
  mock: {
4131
- arrayMin: (_x = (_w = (_v = outputOptions.override) == null ? void 0 : _v.mock) == null ? void 0 : _w.arrayMin) != null ? _x : 1,
4132
- arrayMax: (_A = (_z = (_y = outputOptions.override) == null ? void 0 : _y.mock) == null ? void 0 : _z.arrayMax) != null ? _A : 10,
4133
- ...(_C = (_B = outputOptions.override) == null ? void 0 : _B.mock) != null ? _C : {}
4134
+ arrayMin: (_y = (_x = (_w = outputOptions.override) == null ? void 0 : _w.mock) == null ? void 0 : _x.arrayMin) != null ? _y : 1,
4135
+ arrayMax: (_B = (_A = (_z = outputOptions.override) == null ? void 0 : _z.mock) == null ? void 0 : _A.arrayMax) != null ? _B : 10,
4136
+ ...(_D = (_C = outputOptions.override) == null ? void 0 : _C.mock) != null ? _D : {}
4134
4137
  },
4135
4138
  operations: normalizeOperationsAndTags(
4136
- (_E = (_D = outputOptions.override) == null ? void 0 : _D.operations) != null ? _E : {},
4139
+ (_F = (_E = outputOptions.override) == null ? void 0 : _E.operations) != null ? _F : {},
4137
4140
  outputWorkspace,
4138
4141
  {
4139
4142
  query: globalQueryOptions
4140
4143
  }
4141
4144
  ),
4142
4145
  tags: normalizeOperationsAndTags(
4143
- (_G = (_F = outputOptions.override) == null ? void 0 : _F.tags) != null ? _G : {},
4146
+ (_H = (_G = outputOptions.override) == null ? void 0 : _G.tags) != null ? _H : {},
4144
4147
  outputWorkspace,
4145
4148
  {
4146
4149
  query: globalQueryOptions
@@ -4148,117 +4151,118 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
4148
4151
  ),
4149
4152
  mutator: normalizeMutator(
4150
4153
  outputWorkspace,
4151
- (_H = outputOptions.override) == null ? void 0 : _H.mutator
4154
+ (_I = outputOptions.override) == null ? void 0 : _I.mutator
4152
4155
  ),
4153
- formData: (_L = !(0, import_core7.isBoolean)((_I = outputOptions.override) == null ? void 0 : _I.formData) ? normalizeMutator(
4156
+ formData: (_M = !(0, import_core7.isBoolean)((_J = outputOptions.override) == null ? void 0 : _J.formData) ? normalizeMutator(
4154
4157
  outputWorkspace,
4155
- (_J = outputOptions.override) == null ? void 0 : _J.formData
4156
- ) : (_K = outputOptions.override) == null ? void 0 : _K.formData) != null ? _L : true,
4157
- formUrlEncoded: (_P = !(0, import_core7.isBoolean)((_M = outputOptions.override) == null ? void 0 : _M.formUrlEncoded) ? normalizeMutator(
4158
+ (_K = outputOptions.override) == null ? void 0 : _K.formData
4159
+ ) : (_L = outputOptions.override) == null ? void 0 : _L.formData) != null ? _M : true,
4160
+ formUrlEncoded: (_Q = !(0, import_core7.isBoolean)((_N = outputOptions.override) == null ? void 0 : _N.formUrlEncoded) ? normalizeMutator(
4158
4161
  outputWorkspace,
4159
- (_N = outputOptions.override) == null ? void 0 : _N.formUrlEncoded
4160
- ) : (_O = outputOptions.override) == null ? void 0 : _O.formUrlEncoded) != null ? _P : true,
4162
+ (_O = outputOptions.override) == null ? void 0 : _O.formUrlEncoded
4163
+ ) : (_P = outputOptions.override) == null ? void 0 : _P.formUrlEncoded) != null ? _Q : true,
4161
4164
  paramsSerializer: normalizeMutator(
4162
4165
  outputWorkspace,
4163
- (_Q = outputOptions.override) == null ? void 0 : _Q.paramsSerializer
4166
+ (_R = outputOptions.override) == null ? void 0 : _R.paramsSerializer
4164
4167
  ),
4165
- 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,
4166
- requestOptions: (_V = (_U = outputOptions.override) == null ? void 0 : _U.requestOptions) != null ? _V : true,
4168
+ header: ((_S = outputOptions.override) == null ? void 0 : _S.header) === false ? false : (0, import_core7.isFunction)((_T = outputOptions.override) == null ? void 0 : _T.header) ? (_U = outputOptions.override) == null ? void 0 : _U.header : getDefaultFilesHeader,
4169
+ requestOptions: (_W = (_V = outputOptions.override) == null ? void 0 : _V.requestOptions) != null ? _W : true,
4167
4170
  components: {
4168
4171
  schemas: {
4169
4172
  suffix: import_core7.RefComponentSuffix.schemas,
4170
- 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",
4171
- ...(_aa = (_$ = (__ = outputOptions.override) == null ? void 0 : __.components) == null ? void 0 : _$.schemas) != null ? _aa : {}
4173
+ itemSuffix: (__ = (_Z = (_Y = (_X = outputOptions.override) == null ? void 0 : _X.components) == null ? void 0 : _Y.schemas) == null ? void 0 : _Z.itemSuffix) != null ? __ : "Item",
4174
+ ...(_ba = (_aa = (_$ = outputOptions.override) == null ? void 0 : _$.components) == null ? void 0 : _aa.schemas) != null ? _ba : {}
4172
4175
  },
4173
4176
  responses: {
4174
4177
  suffix: import_core7.RefComponentSuffix.responses,
4175
- ...(_da = (_ca = (_ba = outputOptions.override) == null ? void 0 : _ba.components) == null ? void 0 : _ca.responses) != null ? _da : {}
4178
+ ...(_ea = (_da = (_ca = outputOptions.override) == null ? void 0 : _ca.components) == null ? void 0 : _da.responses) != null ? _ea : {}
4176
4179
  },
4177
4180
  parameters: {
4178
4181
  suffix: import_core7.RefComponentSuffix.parameters,
4179
- ...(_ga = (_fa = (_ea = outputOptions.override) == null ? void 0 : _ea.components) == null ? void 0 : _fa.parameters) != null ? _ga : {}
4182
+ ...(_ha = (_ga = (_fa = outputOptions.override) == null ? void 0 : _fa.components) == null ? void 0 : _ga.parameters) != null ? _ha : {}
4180
4183
  },
4181
4184
  requestBodies: {
4182
4185
  suffix: import_core7.RefComponentSuffix.requestBodies,
4183
- ...(_ja = (_ia = (_ha = outputOptions.override) == null ? void 0 : _ha.components) == null ? void 0 : _ia.requestBodies) != null ? _ja : {}
4186
+ ...(_ka = (_ja = (_ia = outputOptions.override) == null ? void 0 : _ia.components) == null ? void 0 : _ja.requestBodies) != null ? _ka : {}
4184
4187
  }
4185
4188
  },
4186
- hono: normalizeHonoOptions((_ka = outputOptions.override) == null ? void 0 : _ka.hono, workspace),
4189
+ hono: normalizeHonoOptions((_la = outputOptions.override) == null ? void 0 : _la.hono, workspace),
4187
4190
  query: globalQueryOptions,
4188
4191
  zod: {
4189
4192
  strict: {
4190
- 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,
4191
- 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,
4192
- 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,
4193
- 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,
4194
- 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
4193
+ param: (_pa = (_oa = (_na = (_ma = outputOptions.override) == null ? void 0 : _ma.zod) == null ? void 0 : _na.strict) == null ? void 0 : _oa.param) != null ? _pa : false,
4194
+ query: (_ta = (_sa = (_ra = (_qa = outputOptions.override) == null ? void 0 : _qa.zod) == null ? void 0 : _ra.strict) == null ? void 0 : _sa.query) != null ? _ta : false,
4195
+ header: (_xa = (_wa = (_va = (_ua = outputOptions.override) == null ? void 0 : _ua.zod) == null ? void 0 : _va.strict) == null ? void 0 : _wa.header) != null ? _xa : false,
4196
+ body: (_Ba = (_Aa = (_za = (_ya = outputOptions.override) == null ? void 0 : _ya.zod) == null ? void 0 : _za.strict) == null ? void 0 : _Aa.body) != null ? _Ba : false,
4197
+ response: (_Fa = (_Ea = (_Da = (_Ca = outputOptions.override) == null ? void 0 : _Ca.zod) == null ? void 0 : _Da.strict) == null ? void 0 : _Ea.response) != null ? _Fa : false
4195
4198
  },
4196
4199
  generate: {
4197
- 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,
4198
- 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,
4199
- 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,
4200
- 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,
4201
- 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
4200
+ param: (_Ja = (_Ia = (_Ha = (_Ga = outputOptions.override) == null ? void 0 : _Ga.zod) == null ? void 0 : _Ha.generate) == null ? void 0 : _Ia.param) != null ? _Ja : true,
4201
+ query: (_Na = (_Ma = (_La = (_Ka = outputOptions.override) == null ? void 0 : _Ka.zod) == null ? void 0 : _La.generate) == null ? void 0 : _Ma.query) != null ? _Na : true,
4202
+ header: (_Ra = (_Qa = (_Pa = (_Oa = outputOptions.override) == null ? void 0 : _Oa.zod) == null ? void 0 : _Pa.generate) == null ? void 0 : _Qa.header) != null ? _Ra : true,
4203
+ body: (_Va = (_Ua = (_Ta = (_Sa = outputOptions.override) == null ? void 0 : _Sa.zod) == null ? void 0 : _Ta.generate) == null ? void 0 : _Ua.body) != null ? _Va : true,
4204
+ response: (_Za = (_Ya = (_Xa = (_Wa = outputOptions.override) == null ? void 0 : _Wa.zod) == null ? void 0 : _Xa.generate) == null ? void 0 : _Ya.response) != null ? _Za : true
4202
4205
  },
4203
4206
  coerce: {
4204
- 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,
4205
- 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,
4206
- 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,
4207
- 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,
4208
- 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
4207
+ param: (_bb = (_ab = (_$a = (__a = outputOptions.override) == null ? void 0 : __a.zod) == null ? void 0 : _$a.coerce) == null ? void 0 : _ab.param) != null ? _bb : false,
4208
+ query: (_fb = (_eb = (_db = (_cb = outputOptions.override) == null ? void 0 : _cb.zod) == null ? void 0 : _db.coerce) == null ? void 0 : _eb.query) != null ? _fb : false,
4209
+ header: (_jb = (_ib = (_hb = (_gb = outputOptions.override) == null ? void 0 : _gb.zod) == null ? void 0 : _hb.coerce) == null ? void 0 : _ib.header) != null ? _jb : false,
4210
+ body: (_nb = (_mb = (_lb = (_kb = outputOptions.override) == null ? void 0 : _kb.zod) == null ? void 0 : _lb.coerce) == null ? void 0 : _mb.body) != null ? _nb : false,
4211
+ response: (_rb = (_qb = (_pb = (_ob = outputOptions.override) == null ? void 0 : _ob.zod) == null ? void 0 : _pb.coerce) == null ? void 0 : _qb.response) != null ? _rb : false
4209
4212
  },
4210
4213
  preprocess: {
4211
- ...((_tb = (_sb = (_rb = outputOptions.override) == null ? void 0 : _rb.zod) == null ? void 0 : _sb.preprocess) == null ? void 0 : _tb.param) ? {
4214
+ ...((_ub = (_tb = (_sb = outputOptions.override) == null ? void 0 : _sb.zod) == null ? void 0 : _tb.preprocess) == null ? void 0 : _ub.param) ? {
4212
4215
  param: normalizeMutator(
4213
4216
  workspace,
4214
4217
  outputOptions.override.zod.preprocess.param
4215
4218
  )
4216
4219
  } : {},
4217
- ...((_wb = (_vb = (_ub = outputOptions.override) == null ? void 0 : _ub.zod) == null ? void 0 : _vb.preprocess) == null ? void 0 : _wb.query) ? {
4220
+ ...((_xb = (_wb = (_vb = outputOptions.override) == null ? void 0 : _vb.zod) == null ? void 0 : _wb.preprocess) == null ? void 0 : _xb.query) ? {
4218
4221
  query: normalizeMutator(
4219
4222
  workspace,
4220
4223
  outputOptions.override.zod.preprocess.query
4221
4224
  )
4222
4225
  } : {},
4223
- ...((_zb = (_yb = (_xb = outputOptions.override) == null ? void 0 : _xb.zod) == null ? void 0 : _yb.preprocess) == null ? void 0 : _zb.header) ? {
4226
+ ...((_Ab = (_zb = (_yb = outputOptions.override) == null ? void 0 : _yb.zod) == null ? void 0 : _zb.preprocess) == null ? void 0 : _Ab.header) ? {
4224
4227
  header: normalizeMutator(
4225
4228
  workspace,
4226
4229
  outputOptions.override.zod.preprocess.header
4227
4230
  )
4228
4231
  } : {},
4229
- ...((_Cb = (_Bb = (_Ab = outputOptions.override) == null ? void 0 : _Ab.zod) == null ? void 0 : _Bb.preprocess) == null ? void 0 : _Cb.body) ? {
4232
+ ...((_Db = (_Cb = (_Bb = outputOptions.override) == null ? void 0 : _Bb.zod) == null ? void 0 : _Cb.preprocess) == null ? void 0 : _Db.body) ? {
4230
4233
  body: normalizeMutator(
4231
4234
  workspace,
4232
4235
  outputOptions.override.zod.preprocess.body
4233
4236
  )
4234
4237
  } : {},
4235
- ...((_Fb = (_Eb = (_Db = outputOptions.override) == null ? void 0 : _Db.zod) == null ? void 0 : _Eb.preprocess) == null ? void 0 : _Fb.response) ? {
4238
+ ...((_Gb = (_Fb = (_Eb = outputOptions.override) == null ? void 0 : _Eb.zod) == null ? void 0 : _Fb.preprocess) == null ? void 0 : _Gb.response) ? {
4236
4239
  response: normalizeMutator(
4237
4240
  workspace,
4238
4241
  outputOptions.override.zod.preprocess.response
4239
4242
  )
4240
4243
  } : {}
4241
4244
  },
4242
- generateEachHttpStatus: (_Ib = (_Hb = (_Gb = outputOptions.override) == null ? void 0 : _Gb.zod) == null ? void 0 : _Hb.generateEachHttpStatus) != null ? _Ib : false
4245
+ generateEachHttpStatus: (_Jb = (_Ib = (_Hb = outputOptions.override) == null ? void 0 : _Hb.zod) == null ? void 0 : _Ib.generateEachHttpStatus) != null ? _Jb : false
4243
4246
  },
4244
4247
  swr: {
4245
- ...(_Kb = (_Jb = outputOptions.override) == null ? void 0 : _Jb.swr) != null ? _Kb : {}
4248
+ ...(_Lb = (_Kb = outputOptions.override) == null ? void 0 : _Kb.swr) != null ? _Lb : {}
4246
4249
  },
4247
4250
  angular: {
4248
- provideIn: (_Nb = (_Mb = (_Lb = outputOptions.override) == null ? void 0 : _Lb.angular) == null ? void 0 : _Mb.provideIn) != null ? _Nb : "root"
4251
+ provideIn: (_Ob = (_Nb = (_Mb = outputOptions.override) == null ? void 0 : _Mb.angular) == null ? void 0 : _Nb.provideIn) != null ? _Ob : "root"
4249
4252
  },
4250
4253
  fetch: {
4251
- includeHttpResponseReturnType: (_Qb = (_Pb = (_Ob = outputOptions.override) == null ? void 0 : _Ob.fetch) == null ? void 0 : _Pb.includeHttpResponseReturnType) != null ? _Qb : true,
4252
- ...(_Sb = (_Rb = outputOptions.override) == null ? void 0 : _Rb.fetch) != null ? _Sb : {}
4254
+ includeHttpResponseReturnType: (_Rb = (_Qb = (_Pb = outputOptions.override) == null ? void 0 : _Pb.fetch) == null ? void 0 : _Qb.includeHttpResponseReturnType) != null ? _Rb : true,
4255
+ ...(_Tb = (_Sb = outputOptions.override) == null ? void 0 : _Sb.fetch) != null ? _Tb : {}
4253
4256
  },
4254
- useDates: ((_Tb = outputOptions.override) == null ? void 0 : _Tb.useDates) || false,
4255
- useDeprecatedOperations: (_Vb = (_Ub = outputOptions.override) == null ? void 0 : _Ub.useDeprecatedOperations) != null ? _Vb : true,
4256
- useNativeEnums: (_Xb = (_Wb = outputOptions.override) == null ? void 0 : _Wb.useNativeEnums) != null ? _Xb : false,
4257
- suppressReadonlyModifier: ((_Yb = outputOptions.override) == null ? void 0 : _Yb.suppressReadonlyModifier) || false
4257
+ useDates: ((_Ub = outputOptions.override) == null ? void 0 : _Ub.useDates) || false,
4258
+ useDeprecatedOperations: (_Wb = (_Vb = outputOptions.override) == null ? void 0 : _Vb.useDeprecatedOperations) != null ? _Wb : true,
4259
+ useNativeEnums: (_Yb = (_Xb = outputOptions.override) == null ? void 0 : _Xb.useNativeEnums) != null ? _Yb : false,
4260
+ suppressReadonlyModifier: ((_Zb = outputOptions.override) == null ? void 0 : _Zb.suppressReadonlyModifier) || false
4258
4261
  },
4259
- allParamsOptional: (_Zb = outputOptions.allParamsOptional) != null ? _Zb : false,
4260
- urlEncodeParameters: (__b = outputOptions.urlEncodeParameters) != null ? __b : false,
4261
- optionsParamRequired: (_$b = outputOptions.optionsParamRequired) != null ? _$b : false
4262
+ allParamsOptional: (__b = outputOptions.allParamsOptional) != null ? __b : false,
4263
+ urlEncodeParameters: (_$b = outputOptions.urlEncodeParameters) != null ? _$b : false,
4264
+ optionsParamRequired: (_ac = outputOptions.optionsParamRequired) != null ? _ac : false,
4265
+ propertySortOrder: (_bc = outputOptions.propertySortOrder) != null ? _bc : import_core7.PropertySortOrder.SPECIFICATION
4262
4266
  },
4263
4267
  hooks: options.hooks ? normalizeHooks(options.hooks) : {}
4264
4268
  };
@@ -4562,6 +4566,7 @@ var import_chalk4 = __toESM(require("chalk"));
4562
4566
  var import_execa2 = __toESM(require("execa"));
4563
4567
  var import_fs_extra5 = __toESM(require("fs-extra"));
4564
4568
  var import_lodash2 = __toESM(require("lodash.uniq"));
4569
+ var import_typedoc = require("typedoc");
4565
4570
 
4566
4571
  // src/utils/executeHook.ts
4567
4572
  var import_core9 = require("@orval/core");
@@ -4656,7 +4661,7 @@ var writeSpecs = async (builder, workspace, options, projectName) => {
4656
4661
  }
4657
4662
  if (output.workspace) {
4658
4663
  const workspacePath = output.workspace;
4659
- let imports = implementationPaths.filter(
4664
+ const imports = implementationPaths.filter(
4660
4665
  (path) => !output.mock || !path.endsWith(`.${(0, import_core10.getMockFileExtensionByTypeName)(output.mock)}.ts`)
4661
4666
  ).map(
4662
4667
  (path) => import_core10.upath.relativeSafe(
@@ -4712,7 +4717,7 @@ var writeSpecs = async (builder, workspace, options, projectName) => {
4712
4717
  if (output.prettier) {
4713
4718
  try {
4714
4719
  await (0, import_execa2.default)("prettier", ["--write", ...paths]);
4715
- } catch (e) {
4720
+ } catch {
4716
4721
  (0, import_core10.log)(
4717
4722
  import_chalk4.default.yellow(
4718
4723
  `\u26A0\uFE0F ${projectTitle ? `${projectTitle} - ` : ""}Prettier not found`
@@ -4728,6 +4733,39 @@ var writeSpecs = async (builder, workspace, options, projectName) => {
4728
4733
  (0, import_core10.log)(import_chalk4.default.yellow(message));
4729
4734
  }
4730
4735
  }
4736
+ if (output.docs) {
4737
+ try {
4738
+ let config = {};
4739
+ let configPath = null;
4740
+ if (typeof output.docs === "object") {
4741
+ ({ configPath = null, ...config } = output.docs);
4742
+ if (configPath) {
4743
+ config.options = configPath;
4744
+ }
4745
+ }
4746
+ const app = await import_typedoc.Application.bootstrapWithPlugins({
4747
+ entryPoints: paths,
4748
+ // Set the custom config location if it has been provided.
4749
+ ...config,
4750
+ plugin: ["typedoc-plugin-markdown"]
4751
+ });
4752
+ if (!app.options.isSet("readme")) {
4753
+ app.options.setValue("readme", "none");
4754
+ }
4755
+ if (!app.options.isSet("logLevel")) {
4756
+ app.options.setValue("logLevel", "None");
4757
+ }
4758
+ const project = await app.convert();
4759
+ if (project) {
4760
+ await app.generateDocs(project, app.options.getValue("out"));
4761
+ } else {
4762
+ throw new Error("TypeDoc not initialised");
4763
+ }
4764
+ } catch (e) {
4765
+ const message = e.exitCode === 1 ? e.stdout + e.stderr : `\u26A0\uFE0F ${projectTitle ? `${projectTitle} - ` : ""}Unable to generate docs`;
4766
+ (0, import_core10.log)(import_chalk4.default.yellow(message));
4767
+ }
4768
+ }
4731
4769
  (0, import_core10.createSuccessMessage)(projectTitle);
4732
4770
  };
4733
4771
  var getWriteMode = (mode) => {