orval 7.5.0 → 7.7.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/dist/index.js CHANGED
@@ -5,9 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
8
  var __export = (target, all) => {
12
9
  for (var name in all)
13
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -31,514 +28,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
28
  ));
32
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
30
 
34
- // ../../node_modules/lodash.omit/index.js
35
- var require_lodash = __commonJS({
36
- "../../node_modules/lodash.omit/index.js"(exports2, module2) {
37
- "use strict";
38
- var LARGE_ARRAY_SIZE = 200;
39
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
40
- var INFINITY = 1 / 0;
41
- var MAX_SAFE_INTEGER = 9007199254740991;
42
- var argsTag = "[object Arguments]";
43
- var funcTag = "[object Function]";
44
- var genTag = "[object GeneratorFunction]";
45
- var symbolTag = "[object Symbol]";
46
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
47
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
48
- var reIsUint = /^(?:0|[1-9]\d*)$/;
49
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
50
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
51
- var root = freeGlobal || freeSelf || Function("return this")();
52
- function apply(func, thisArg, args) {
53
- switch (args.length) {
54
- case 0:
55
- return func.call(thisArg);
56
- case 1:
57
- return func.call(thisArg, args[0]);
58
- case 2:
59
- return func.call(thisArg, args[0], args[1]);
60
- case 3:
61
- return func.call(thisArg, args[0], args[1], args[2]);
62
- }
63
- return func.apply(thisArg, args);
64
- }
65
- function arrayIncludes(array, value) {
66
- var length = array ? array.length : 0;
67
- return !!length && baseIndexOf(array, value, 0) > -1;
68
- }
69
- function arrayIncludesWith(array, value, comparator) {
70
- var index = -1, length = array ? array.length : 0;
71
- while (++index < length) {
72
- if (comparator(value, array[index])) {
73
- return true;
74
- }
75
- }
76
- return false;
77
- }
78
- function arrayMap(array, iteratee) {
79
- var index = -1, length = array ? array.length : 0, result = Array(length);
80
- while (++index < length) {
81
- result[index] = iteratee(array[index], index, array);
82
- }
83
- return result;
84
- }
85
- function arrayPush(array, values) {
86
- var index = -1, length = values.length, offset = array.length;
87
- while (++index < length) {
88
- array[offset + index] = values[index];
89
- }
90
- return array;
91
- }
92
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
93
- var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
94
- while (fromRight ? index-- : ++index < length) {
95
- if (predicate(array[index], index, array)) {
96
- return index;
97
- }
98
- }
99
- return -1;
100
- }
101
- function baseIndexOf(array, value, fromIndex) {
102
- if (value !== value) {
103
- return baseFindIndex(array, baseIsNaN, fromIndex);
104
- }
105
- var index = fromIndex - 1, length = array.length;
106
- while (++index < length) {
107
- if (array[index] === value) {
108
- return index;
109
- }
110
- }
111
- return -1;
112
- }
113
- function baseIsNaN(value) {
114
- return value !== value;
115
- }
116
- function baseTimes(n, iteratee) {
117
- var index = -1, result = Array(n);
118
- while (++index < n) {
119
- result[index] = iteratee(index);
120
- }
121
- return result;
122
- }
123
- function baseUnary(func) {
124
- return function(value) {
125
- return func(value);
126
- };
127
- }
128
- function cacheHas(cache, key) {
129
- return cache.has(key);
130
- }
131
- function getValue(object, key) {
132
- return object == null ? void 0 : object[key];
133
- }
134
- function isHostObject(value) {
135
- var result = false;
136
- if (value != null && typeof value.toString != "function") {
137
- try {
138
- result = !!(value + "");
139
- } catch (e) {
140
- }
141
- }
142
- return result;
143
- }
144
- function overArg(func, transform) {
145
- return function(arg) {
146
- return func(transform(arg));
147
- };
148
- }
149
- var arrayProto = Array.prototype;
150
- var funcProto = Function.prototype;
151
- var objectProto = Object.prototype;
152
- var coreJsData = root["__core-js_shared__"];
153
- var maskSrcKey = function() {
154
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
155
- return uid ? "Symbol(src)_1." + uid : "";
156
- }();
157
- var funcToString = funcProto.toString;
158
- var hasOwnProperty = objectProto.hasOwnProperty;
159
- var objectToString = objectProto.toString;
160
- var reIsNative = RegExp(
161
- "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
162
- );
163
- var Symbol2 = root.Symbol;
164
- var getPrototype = overArg(Object.getPrototypeOf, Object);
165
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
166
- var splice = arrayProto.splice;
167
- var spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : void 0;
168
- var nativeGetSymbols = Object.getOwnPropertySymbols;
169
- var nativeMax = Math.max;
170
- var Map = getNative(root, "Map");
171
- var nativeCreate = getNative(Object, "create");
172
- function Hash(entries) {
173
- var index = -1, length = entries ? entries.length : 0;
174
- this.clear();
175
- while (++index < length) {
176
- var entry = entries[index];
177
- this.set(entry[0], entry[1]);
178
- }
179
- }
180
- function hashClear() {
181
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
182
- }
183
- function hashDelete(key) {
184
- return this.has(key) && delete this.__data__[key];
185
- }
186
- function hashGet(key) {
187
- var data = this.__data__;
188
- if (nativeCreate) {
189
- var result = data[key];
190
- return result === HASH_UNDEFINED ? void 0 : result;
191
- }
192
- return hasOwnProperty.call(data, key) ? data[key] : void 0;
193
- }
194
- function hashHas(key) {
195
- var data = this.__data__;
196
- return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
197
- }
198
- function hashSet(key, value) {
199
- var data = this.__data__;
200
- data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
201
- return this;
202
- }
203
- Hash.prototype.clear = hashClear;
204
- Hash.prototype["delete"] = hashDelete;
205
- Hash.prototype.get = hashGet;
206
- Hash.prototype.has = hashHas;
207
- Hash.prototype.set = hashSet;
208
- function ListCache(entries) {
209
- var index = -1, length = entries ? entries.length : 0;
210
- this.clear();
211
- while (++index < length) {
212
- var entry = entries[index];
213
- this.set(entry[0], entry[1]);
214
- }
215
- }
216
- function listCacheClear() {
217
- this.__data__ = [];
218
- }
219
- function listCacheDelete(key) {
220
- var data = this.__data__, index = assocIndexOf(data, key);
221
- if (index < 0) {
222
- return false;
223
- }
224
- var lastIndex = data.length - 1;
225
- if (index == lastIndex) {
226
- data.pop();
227
- } else {
228
- splice.call(data, index, 1);
229
- }
230
- return true;
231
- }
232
- function listCacheGet(key) {
233
- var data = this.__data__, index = assocIndexOf(data, key);
234
- return index < 0 ? void 0 : data[index][1];
235
- }
236
- function listCacheHas(key) {
237
- return assocIndexOf(this.__data__, key) > -1;
238
- }
239
- function listCacheSet(key, value) {
240
- var data = this.__data__, index = assocIndexOf(data, key);
241
- if (index < 0) {
242
- data.push([key, value]);
243
- } else {
244
- data[index][1] = value;
245
- }
246
- return this;
247
- }
248
- ListCache.prototype.clear = listCacheClear;
249
- ListCache.prototype["delete"] = listCacheDelete;
250
- ListCache.prototype.get = listCacheGet;
251
- ListCache.prototype.has = listCacheHas;
252
- ListCache.prototype.set = listCacheSet;
253
- function MapCache(entries) {
254
- var index = -1, length = entries ? entries.length : 0;
255
- this.clear();
256
- while (++index < length) {
257
- var entry = entries[index];
258
- this.set(entry[0], entry[1]);
259
- }
260
- }
261
- function mapCacheClear() {
262
- this.__data__ = {
263
- "hash": new Hash(),
264
- "map": new (Map || ListCache)(),
265
- "string": new Hash()
266
- };
267
- }
268
- function mapCacheDelete(key) {
269
- return getMapData(this, key)["delete"](key);
270
- }
271
- function mapCacheGet(key) {
272
- return getMapData(this, key).get(key);
273
- }
274
- function mapCacheHas(key) {
275
- return getMapData(this, key).has(key);
276
- }
277
- function mapCacheSet(key, value) {
278
- getMapData(this, key).set(key, value);
279
- return this;
280
- }
281
- MapCache.prototype.clear = mapCacheClear;
282
- MapCache.prototype["delete"] = mapCacheDelete;
283
- MapCache.prototype.get = mapCacheGet;
284
- MapCache.prototype.has = mapCacheHas;
285
- MapCache.prototype.set = mapCacheSet;
286
- function SetCache(values) {
287
- var index = -1, length = values ? values.length : 0;
288
- this.__data__ = new MapCache();
289
- while (++index < length) {
290
- this.add(values[index]);
291
- }
292
- }
293
- function setCacheAdd(value) {
294
- this.__data__.set(value, HASH_UNDEFINED);
295
- return this;
296
- }
297
- function setCacheHas(value) {
298
- return this.__data__.has(value);
299
- }
300
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
301
- SetCache.prototype.has = setCacheHas;
302
- function arrayLikeKeys(value, inherited) {
303
- var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : [];
304
- var length = result.length, skipIndexes = !!length;
305
- for (var key in value) {
306
- if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isIndex(key, length)))) {
307
- result.push(key);
308
- }
309
- }
310
- return result;
311
- }
312
- function assocIndexOf(array, key) {
313
- var length = array.length;
314
- while (length--) {
315
- if (eq(array[length][0], key)) {
316
- return length;
317
- }
318
- }
319
- return -1;
320
- }
321
- function baseDifference(array, values, iteratee, comparator) {
322
- var index = -1, includes = arrayIncludes, isCommon = true, length = array.length, result = [], valuesLength = values.length;
323
- if (!length) {
324
- return result;
325
- }
326
- if (iteratee) {
327
- values = arrayMap(values, baseUnary(iteratee));
328
- }
329
- if (comparator) {
330
- includes = arrayIncludesWith;
331
- isCommon = false;
332
- } else if (values.length >= LARGE_ARRAY_SIZE) {
333
- includes = cacheHas;
334
- isCommon = false;
335
- values = new SetCache(values);
336
- }
337
- outer:
338
- while (++index < length) {
339
- var value = array[index], computed = iteratee ? iteratee(value) : value;
340
- value = comparator || value !== 0 ? value : 0;
341
- if (isCommon && computed === computed) {
342
- var valuesIndex = valuesLength;
343
- while (valuesIndex--) {
344
- if (values[valuesIndex] === computed) {
345
- continue outer;
346
- }
347
- }
348
- result.push(value);
349
- } else if (!includes(values, computed, comparator)) {
350
- result.push(value);
351
- }
352
- }
353
- return result;
354
- }
355
- function baseFlatten(array, depth, predicate, isStrict, result) {
356
- var index = -1, length = array.length;
357
- predicate || (predicate = isFlattenable);
358
- result || (result = []);
359
- while (++index < length) {
360
- var value = array[index];
361
- if (depth > 0 && predicate(value)) {
362
- if (depth > 1) {
363
- baseFlatten(value, depth - 1, predicate, isStrict, result);
364
- } else {
365
- arrayPush(result, value);
366
- }
367
- } else if (!isStrict) {
368
- result[result.length] = value;
369
- }
370
- }
371
- return result;
372
- }
373
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
374
- var result = keysFunc(object);
375
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
376
- }
377
- function baseIsNative(value) {
378
- if (!isObject7(value) || isMasked(value)) {
379
- return false;
380
- }
381
- var pattern = isFunction5(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
382
- return pattern.test(toSource(value));
383
- }
384
- function baseKeysIn(object) {
385
- if (!isObject7(object)) {
386
- return nativeKeysIn(object);
387
- }
388
- var isProto = isPrototype(object), result = [];
389
- for (var key in object) {
390
- if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
391
- result.push(key);
392
- }
393
- }
394
- return result;
395
- }
396
- function basePick(object, props) {
397
- object = Object(object);
398
- return basePickBy(object, props, function(value, key) {
399
- return key in object;
400
- });
401
- }
402
- function basePickBy(object, props, predicate) {
403
- var index = -1, length = props.length, result = {};
404
- while (++index < length) {
405
- var key = props[index], value = object[key];
406
- if (predicate(value, key)) {
407
- result[key] = value;
408
- }
409
- }
410
- return result;
411
- }
412
- function baseRest(func, start) {
413
- start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
414
- return function() {
415
- var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
416
- while (++index < length) {
417
- array[index] = args[start + index];
418
- }
419
- index = -1;
420
- var otherArgs = Array(start + 1);
421
- while (++index < start) {
422
- otherArgs[index] = args[index];
423
- }
424
- otherArgs[start] = array;
425
- return apply(func, this, otherArgs);
426
- };
427
- }
428
- function getAllKeysIn(object) {
429
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
430
- }
431
- function getMapData(map2, key) {
432
- var data = map2.__data__;
433
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
434
- }
435
- function getNative(object, key) {
436
- var value = getValue(object, key);
437
- return baseIsNative(value) ? value : void 0;
438
- }
439
- var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
440
- var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
441
- var result = [];
442
- while (object) {
443
- arrayPush(result, getSymbols(object));
444
- object = getPrototype(object);
445
- }
446
- return result;
447
- };
448
- function isFlattenable(value) {
449
- return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
450
- }
451
- function isIndex(value, length) {
452
- length = length == null ? MAX_SAFE_INTEGER : length;
453
- return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
454
- }
455
- function isKeyable(value) {
456
- var type2 = typeof value;
457
- return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
458
- }
459
- function isMasked(func) {
460
- return !!maskSrcKey && maskSrcKey in func;
461
- }
462
- function isPrototype(value) {
463
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
464
- return value === proto;
465
- }
466
- function nativeKeysIn(object) {
467
- var result = [];
468
- if (object != null) {
469
- for (var key in Object(object)) {
470
- result.push(key);
471
- }
472
- }
473
- return result;
474
- }
475
- function toKey(value) {
476
- if (typeof value == "string" || isSymbol(value)) {
477
- return value;
478
- }
479
- var result = value + "";
480
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
481
- }
482
- function toSource(func) {
483
- if (func != null) {
484
- try {
485
- return funcToString.call(func);
486
- } catch (e) {
487
- }
488
- try {
489
- return func + "";
490
- } catch (e) {
491
- }
492
- }
493
- return "";
494
- }
495
- function eq(value, other) {
496
- return value === other || value !== value && other !== other;
497
- }
498
- function isArguments(value) {
499
- return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
500
- }
501
- var isArray = Array.isArray;
502
- function isArrayLike(value) {
503
- return value != null && isLength(value.length) && !isFunction5(value);
504
- }
505
- function isArrayLikeObject(value) {
506
- return isObjectLike(value) && isArrayLike(value);
507
- }
508
- function isFunction5(value) {
509
- var tag = isObject7(value) ? objectToString.call(value) : "";
510
- return tag == funcTag || tag == genTag;
511
- }
512
- function isLength(value) {
513
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
514
- }
515
- function isObject7(value) {
516
- var type2 = typeof value;
517
- return !!value && (type2 == "object" || type2 == "function");
518
- }
519
- function isObjectLike(value) {
520
- return !!value && typeof value == "object";
521
- }
522
- function isSymbol(value) {
523
- return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
524
- }
525
- function keysIn(object) {
526
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
527
- }
528
- var omit2 = baseRest(function(object, props) {
529
- if (object == null) {
530
- return {};
531
- }
532
- props = arrayMap(baseFlatten(props, 1), toKey);
533
- return basePick(object, baseDifference(getAllKeysIn(object), props));
534
- });
535
- function stubArray() {
536
- return [];
537
- }
538
- module2.exports = omit2;
539
- }
540
- });
541
-
542
31
  // src/index.ts
543
32
  var src_exports = {};
544
33
  __export(src_exports, {
@@ -3185,7 +2674,6 @@ var import_fs_extra = __toESM(require("fs-extra"));
3185
2674
 
3186
2675
  // src/import-open-api.ts
3187
2676
  var import_core3 = require("@orval/core");
3188
- var import_lodash = __toESM(require_lodash());
3189
2677
 
3190
2678
  // src/api.ts
3191
2679
  var import_core2 = require("@orval/core");
@@ -3578,7 +3066,7 @@ var generateInputSpecs = async ({
3578
3066
  );
3579
3067
  const transfomedSchema = transformerFn ? transformerFn(schema2) : schema2;
3580
3068
  if (input.validation) {
3581
- await (0, import_core3.ibmOpenapiValidator)(transfomedSchema);
3069
+ await (0, import_core3.ibmOpenapiValidator)(transfomedSchema, input.validation);
3582
3070
  }
3583
3071
  acc[specKey] = transfomedSchema;
3584
3072
  return acc;
@@ -3642,7 +3130,7 @@ var getApiSchemas = ({
3642
3130
  };
3643
3131
  var getAllSchemas = (spec, specKey) => {
3644
3132
  var _a;
3645
- const cleanedSpec = (0, import_lodash.default)(spec, [
3133
+ const keysToOmit = [
3646
3134
  "openapi",
3647
3135
  "info",
3648
3136
  "servers",
@@ -3651,20 +3139,28 @@ var getAllSchemas = (spec, specKey) => {
3651
3139
  "security",
3652
3140
  "tags",
3653
3141
  "externalDocs"
3654
- ]);
3142
+ ];
3143
+ const cleanedSpec = Object.fromEntries(
3144
+ Object.entries(spec).filter(([key]) => !keysToOmit.includes(key))
3145
+ );
3655
3146
  if (specKey && (0, import_core3.isSchema)(cleanedSpec)) {
3656
3147
  const name = import_core3.upath.getSchemaFileName(specKey);
3148
+ const additionalKeysToOmit = [
3149
+ "type",
3150
+ "properties",
3151
+ "allOf",
3152
+ "oneOf",
3153
+ "anyOf",
3154
+ "items"
3155
+ ];
3657
3156
  return {
3658
3157
  [name]: cleanedSpec,
3659
3158
  ...getAllSchemas(
3660
- (0, import_lodash.default)(cleanedSpec, [
3661
- "type",
3662
- "properties",
3663
- "allOf",
3664
- "oneOf",
3665
- "anyOf",
3666
- "items"
3667
- ])
3159
+ Object.fromEntries(
3160
+ Object.entries(cleanedSpec).filter(
3161
+ ([key]) => !additionalKeysToOmit.includes(key)
3162
+ )
3163
+ )
3668
3164
  )
3669
3165
  };
3670
3166
  }
@@ -3752,14 +3248,12 @@ var import_chalk2 = __toESM(require("chalk"));
3752
3248
  var package_default = {
3753
3249
  name: "orval",
3754
3250
  description: "A swagger client generator for typescript",
3755
- version: "7.5.0",
3251
+ version: "7.7.0",
3756
3252
  license: "MIT",
3757
3253
  files: [
3758
3254
  "dist"
3759
3255
  ],
3760
- bin: {
3761
- orval: "dist/bin/orval.js"
3762
- },
3256
+ bin: "dist/bin/orval.js",
3763
3257
  type: "commonjs",
3764
3258
  main: "dist/index.js",
3765
3259
  keywords: [
@@ -3804,19 +3298,20 @@ var package_default = {
3804
3298
  devDependencies: {
3805
3299
  "@types/inquirer": "^9.0.6",
3806
3300
  "@types/js-yaml": "^4.0.8",
3807
- "@types/lodash.uniq": "^4.5.8"
3301
+ "@types/lodash.uniq": "^4.5.8",
3302
+ "typedoc-plugin-coverage": "^3.4.1"
3808
3303
  },
3809
3304
  dependencies: {
3810
- "@apidevtools/swagger-parser": "^10.1.0",
3811
- "@orval/angular": "7.5.0",
3812
- "@orval/axios": "7.5.0",
3813
- "@orval/core": "7.5.0",
3814
- "@orval/fetch": "7.5.0",
3815
- "@orval/hono": "7.5.0",
3816
- "@orval/mock": "7.5.0",
3817
- "@orval/query": "7.5.0",
3818
- "@orval/swr": "7.5.0",
3819
- "@orval/zod": "7.5.0",
3305
+ "@apidevtools/swagger-parser": "^10.1.1",
3306
+ "@orval/angular": "7.7.0",
3307
+ "@orval/axios": "7.7.0",
3308
+ "@orval/core": "7.7.0",
3309
+ "@orval/fetch": "7.7.0",
3310
+ "@orval/hono": "7.7.0",
3311
+ "@orval/mock": "7.7.0",
3312
+ "@orval/query": "7.7.0",
3313
+ "@orval/swr": "7.7.0",
3314
+ "@orval/zod": "7.7.0",
3820
3315
  ajv: "^8.17.1",
3821
3316
  cac: "^6.7.14",
3822
3317
  chalk: "^4.1.2",
@@ -3829,8 +3324,8 @@ var package_default = {
3829
3324
  "openapi3-ts": "4.2.2",
3830
3325
  "string-argv": "^0.3.2",
3831
3326
  tsconfck: "^2.0.1",
3832
- typedoc: "0.26.11",
3833
- "typedoc-plugin-markdown": "4.2.10",
3327
+ typedoc: "^0.27.9",
3328
+ "typedoc-plugin-markdown": "^4.4.2",
3834
3329
  typescript: "^5.6.3"
3835
3330
  }
3836
3331
  };
@@ -4093,6 +3588,7 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
4093
3588
  shouldExportMutatorHooks: true,
4094
3589
  shouldExportHttpClient: true,
4095
3590
  shouldExportQueryKey: true,
3591
+ shouldSplitQueryKey: false,
4096
3592
  ...normalizeQueryOptions((_b = outputOptions.override) == null ? void 0 : _b.query, workspace)
4097
3593
  };
4098
3594
  const normalizedOptions = {
@@ -4115,6 +3611,7 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
4115
3611
  output: {
4116
3612
  target: globalOptions.output ? normalizePath(globalOptions.output, process.cwd()) : normalizePath(outputOptions.target, outputWorkspace),
4117
3613
  schemas: normalizePath(outputOptions.schemas, outputWorkspace),
3614
+ namingConvention: outputOptions.namingConvention || import_core7.NamingConvention.CAMEL_CASE,
4118
3615
  fileExtension: outputOptions.fileExtension || defaultFileExtension,
4119
3616
  workspace: outputOptions.workspace ? outputWorkspace : void 0,
4120
3617
  client: (_g = (_f = outputOptions.client) != null ? _f : client) != null ? _g : import_core7.OutputClient.AXIOS_FUNCTIONS,
@@ -4319,7 +3816,7 @@ var normalizePath = (path, workspace) => {
4319
3816
  }
4320
3817
  return import_core7.upath.resolve(workspace, path);
4321
3818
  };
4322
- var normalizeOperationsAndTags = (operationsOrTags, workspace, global2) => {
3819
+ var normalizeOperationsAndTags = (operationsOrTags, workspace, global) => {
4323
3820
  return Object.fromEntries(
4324
3821
  Object.entries(operationsOrTags).map(
4325
3822
  ([
@@ -4341,7 +3838,7 @@ var normalizeOperationsAndTags = (operationsOrTags, workspace, global2) => {
4341
3838
  {
4342
3839
  ...rest,
4343
3840
  ...query2 ? {
4344
- query: normalizeQueryOptions(query2, workspace, global2.query)
3841
+ query: normalizeQueryOptions(query2, workspace, global.query)
4345
3842
  } : {},
4346
3843
  ...zod2 ? {
4347
3844
  zod: {
@@ -4518,6 +4015,10 @@ var normalizeQueryOptions = (queryOptions = {}, outputWorkspace, globalOptions =
4518
4015
  shouldExportMutatorHooks: globalOptions.shouldExportMutatorHooks
4519
4016
  } : {},
4520
4017
  ...!(0, import_core7.isUndefined)(queryOptions.shouldExportMutatorHooks) ? { shouldExportMutatorHooks: queryOptions.shouldExportMutatorHooks } : {},
4018
+ ...!(0, import_core7.isUndefined)(globalOptions.shouldSplitQueryKey) ? {
4019
+ shouldSplitQueryKey: globalOptions.shouldSplitQueryKey
4020
+ } : {},
4021
+ ...!(0, import_core7.isUndefined)(queryOptions.shouldSplitQueryKey) ? { shouldSplitQueryKey: queryOptions.shouldSplitQueryKey } : {},
4521
4022
  ...!(0, import_core7.isUndefined)(globalOptions.signal) ? {
4522
4023
  signal: globalOptions.signal
4523
4024
  } : {},
@@ -4571,8 +4072,7 @@ var import_core10 = require("@orval/core");
4571
4072
  var import_chalk4 = __toESM(require("chalk"));
4572
4073
  var import_execa2 = __toESM(require("execa"));
4573
4074
  var import_fs_extra5 = __toESM(require("fs-extra"));
4574
- var import_lodash2 = __toESM(require("lodash.uniq"));
4575
- var import_typedoc = require("typedoc");
4075
+ var import_lodash = __toESM(require("lodash.uniq"));
4576
4076
 
4577
4077
  // src/utils/executeHook.ts
4578
4078
  var import_core9 = require("@orval/core");
@@ -4619,7 +4119,7 @@ var getHeader = (option, info) => {
4619
4119
  return Array.isArray(header) ? (0, import_core10.jsDoc)({ description: header }) : header;
4620
4120
  };
4621
4121
  var writeSpecs = async (builder, workspace, options, projectName) => {
4622
- var _a;
4122
+ var _a, _b;
4623
4123
  const { info = { title: "", version: 0 }, schemas, target } = builder;
4624
4124
  const { output } = options;
4625
4125
  const projectTitle = projectName || info.title;
@@ -4643,6 +4143,7 @@ var writeSpecs = async (builder, workspace, options, projectName) => {
4643
4143
  schemaPath,
4644
4144
  schemas: schemas2,
4645
4145
  target,
4146
+ namingConvention: output.namingConvention,
4646
4147
  fileExtension,
4647
4148
  specsName,
4648
4149
  specKey,
@@ -4687,12 +4188,13 @@ var writeSpecs = async (builder, workspace, options, projectName) => {
4687
4188
  const importsNotDeclared = imports.filter((imp) => !data.includes(imp));
4688
4189
  await import_fs_extra5.default.appendFile(
4689
4190
  indexFile,
4690
- (0, import_lodash2.default)(importsNotDeclared).map((imp) => `export * from '${imp}';`).join("\n") + "\n"
4191
+ (0, import_lodash.default)(importsNotDeclared).map((imp) => `export * from '${imp}';
4192
+ `).join("")
4691
4193
  );
4692
4194
  } else {
4693
4195
  await import_fs_extra5.default.outputFile(
4694
4196
  indexFile,
4695
- (0, import_lodash2.default)(imports).map((imp) => `export * from '${imp}';`).join("\n") + "\n"
4197
+ (0, import_lodash.default)(imports).map((imp) => `export * from '${imp}';`).join("\n") + "\n"
4696
4198
  );
4697
4199
  }
4698
4200
  implementationPaths = [indexFile, ...implementationPaths];
@@ -4749,11 +4251,17 @@ var writeSpecs = async (builder, workspace, options, projectName) => {
4749
4251
  config.options = configPath;
4750
4252
  }
4751
4253
  }
4752
- const app = await import_typedoc.Application.bootstrapWithPlugins({
4254
+ const getTypedocApplication = async () => {
4255
+ const { Application: Application2 } = await Promise.resolve().then(() => __toESM(require("typedoc")));
4256
+ return Application2;
4257
+ };
4258
+ const Application = await getTypedocApplication();
4259
+ const app = await Application.bootstrapWithPlugins({
4753
4260
  entryPoints: paths,
4261
+ theme: "markdown",
4754
4262
  // Set the custom config location if it has been provided.
4755
4263
  ...config,
4756
- plugin: ["typedoc-plugin-markdown"]
4264
+ plugin: ["typedoc-plugin-markdown", ...(_b = config.plugin) != null ? _b : []]
4757
4265
  });
4758
4266
  if (!app.options.isSet("readme")) {
4759
4267
  app.options.setValue("readme", "none");
@@ -4826,7 +4334,7 @@ var generateSpecs = async (config, workspace, projectName) => {
4826
4334
  return;
4827
4335
  }
4828
4336
  let hasErrors;
4829
- const accumulate = (0, import_core11.asyncReduce)(
4337
+ const accumulate = await (0, import_core11.asyncReduce)(
4830
4338
  Object.entries(config),
4831
4339
  async (acc, [projectName2, options]) => {
4832
4340
  try {