orval 7.9.0 → 7.11.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/bin/orval.js +85 -70
- package/dist/bin/orval.js.map +1 -1
- package/dist/index.js +91 -76
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -29,14 +29,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
30
|
|
|
31
31
|
// src/index.ts
|
|
32
|
-
var
|
|
33
|
-
__export(
|
|
32
|
+
var index_exports = {};
|
|
33
|
+
__export(index_exports, {
|
|
34
34
|
Options: () => import_core13.Options,
|
|
35
|
-
default: () =>
|
|
35
|
+
default: () => index_default,
|
|
36
36
|
defineConfig: () => defineConfig,
|
|
37
37
|
generate: () => generate
|
|
38
38
|
});
|
|
39
|
-
module.exports = __toCommonJS(
|
|
39
|
+
module.exports = __toCommonJS(index_exports);
|
|
40
40
|
var import_core13 = require("@orval/core");
|
|
41
41
|
|
|
42
42
|
// src/generate.ts
|
|
@@ -2733,7 +2733,8 @@ var generateClientImports = ({
|
|
|
2733
2733
|
hasParamsSerializerOptions,
|
|
2734
2734
|
packageJson,
|
|
2735
2735
|
output.httpClient,
|
|
2736
|
-
hasTagsMutator
|
|
2736
|
+
hasTagsMutator,
|
|
2737
|
+
output.override
|
|
2737
2738
|
),
|
|
2738
2739
|
...imports
|
|
2739
2740
|
] : imports,
|
|
@@ -2889,7 +2890,8 @@ var generateOperations = (outputClient = DEFAULT_CLIENT, verbsOptions, options,
|
|
|
2889
2890
|
formData: verbOption.formData,
|
|
2890
2891
|
formUrlEncoded: verbOption.formUrlEncoded,
|
|
2891
2892
|
paramsSerializer: verbOption.paramsSerializer,
|
|
2892
|
-
operationName: verbOption.operationName
|
|
2893
|
+
operationName: verbOption.operationName,
|
|
2894
|
+
fetchReviver: verbOption.fetchReviver
|
|
2893
2895
|
};
|
|
2894
2896
|
return acc;
|
|
2895
2897
|
},
|
|
@@ -3250,7 +3252,7 @@ var import_chalk3 = __toESM(require("chalk"));
|
|
|
3250
3252
|
var package_default = {
|
|
3251
3253
|
name: "orval",
|
|
3252
3254
|
description: "A swagger client generator for typescript",
|
|
3253
|
-
version: "7.
|
|
3255
|
+
version: "7.11.0",
|
|
3254
3256
|
license: "MIT",
|
|
3255
3257
|
files: [
|
|
3256
3258
|
"dist"
|
|
@@ -3305,16 +3307,16 @@ var package_default = {
|
|
|
3305
3307
|
},
|
|
3306
3308
|
dependencies: {
|
|
3307
3309
|
"@apidevtools/swagger-parser": "^10.1.1",
|
|
3308
|
-
"@orval/angular": "7.
|
|
3309
|
-
"@orval/axios": "7.
|
|
3310
|
-
"@orval/core": "7.
|
|
3311
|
-
"@orval/fetch": "7.
|
|
3312
|
-
"@orval/hono": "7.
|
|
3313
|
-
"@orval/mcp": "7.
|
|
3314
|
-
"@orval/mock": "7.
|
|
3315
|
-
"@orval/query": "7.
|
|
3316
|
-
"@orval/swr": "7.
|
|
3317
|
-
"@orval/zod": "7.
|
|
3310
|
+
"@orval/angular": "7.11.0",
|
|
3311
|
+
"@orval/axios": "7.11.0",
|
|
3312
|
+
"@orval/core": "7.11.0",
|
|
3313
|
+
"@orval/fetch": "7.11.0",
|
|
3314
|
+
"@orval/hono": "7.11.0",
|
|
3315
|
+
"@orval/mcp": "7.11.0",
|
|
3316
|
+
"@orval/mock": "7.11.0",
|
|
3317
|
+
"@orval/query": "7.11.0",
|
|
3318
|
+
"@orval/swr": "7.11.0",
|
|
3319
|
+
"@orval/zod": "7.11.0",
|
|
3318
3320
|
ajv: "^8.17.1",
|
|
3319
3321
|
cac: "^6.7.14",
|
|
3320
3322
|
chalk: "^4.1.2",
|
|
@@ -3322,12 +3324,12 @@ var package_default = {
|
|
|
3322
3324
|
enquirer: "^2.4.1",
|
|
3323
3325
|
execa: "^5.1.1",
|
|
3324
3326
|
"find-up": "5.0.0",
|
|
3325
|
-
"fs-extra": "^11.
|
|
3327
|
+
"fs-extra": "^11.3.0",
|
|
3326
3328
|
"lodash.uniq": "^4.5.0",
|
|
3327
3329
|
"openapi3-ts": "4.2.2",
|
|
3328
3330
|
"string-argv": "^0.3.2",
|
|
3329
3331
|
tsconfck: "^2.0.1",
|
|
3330
|
-
typedoc: "^0.28.
|
|
3332
|
+
typedoc: "^0.28.7",
|
|
3331
3333
|
"typedoc-plugin-markdown": "^4.4.2",
|
|
3332
3334
|
typescript: "^5.6.3"
|
|
3333
3335
|
}
|
|
@@ -3513,7 +3515,7 @@ var maybeReplaceCatalog = async (pkg, workspace) => {
|
|
|
3513
3515
|
...Object.entries((_a = pkg.dependencies) != null ? _a : {}),
|
|
3514
3516
|
...Object.entries((_b = pkg.devDependencies) != null ? _b : {}),
|
|
3515
3517
|
...Object.entries((_c = pkg.peerDependencies) != null ? _c : {})
|
|
3516
|
-
].some(([
|
|
3518
|
+
].some(([, value]) => (0, import_core6.isString)(value) && value.startsWith("catalog:"))) {
|
|
3517
3519
|
return pkg;
|
|
3518
3520
|
}
|
|
3519
3521
|
const filePath = await (0, import_find_up.default)("pnpm-workspace.yaml", { cwd: workspace });
|
|
@@ -3634,7 +3636,7 @@ var createFormData = (workspace, formData) => {
|
|
|
3634
3636
|
};
|
|
3635
3637
|
};
|
|
3636
3638
|
var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOptions = {}) => {
|
|
3637
|
-
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, _cc, _dc;
|
|
3639
|
+
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, _cc, _dc, _ec, _fc, _gc, _hc, _ic, _jc, _kc, _lc, _mc, _nc, _oc, _pc, _qc, _rc, _sc, _tc, _uc;
|
|
3638
3640
|
const options = await ((0, import_core8.isFunction)(optionsExport) ? optionsExport() : optionsExport);
|
|
3639
3641
|
if (!options.input) {
|
|
3640
3642
|
(0, import_core8.createLogger)().error(import_chalk3.default.red(`Config require an input`));
|
|
@@ -3727,17 +3729,20 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
|
|
|
3727
3729
|
mock: {
|
|
3728
3730
|
arrayMin: (_y = (_x = (_w = outputOptions.override) == null ? void 0 : _w.mock) == null ? void 0 : _x.arrayMin) != null ? _y : 1,
|
|
3729
3731
|
arrayMax: (_B = (_A = (_z = outputOptions.override) == null ? void 0 : _z.mock) == null ? void 0 : _A.arrayMax) != null ? _B : 10,
|
|
3730
|
-
|
|
3732
|
+
stringMin: (_E = (_D = (_C = outputOptions.override) == null ? void 0 : _C.mock) == null ? void 0 : _D.stringMin) != null ? _E : 10,
|
|
3733
|
+
stringMax: (_H = (_G = (_F = outputOptions.override) == null ? void 0 : _F.mock) == null ? void 0 : _G.stringMax) != null ? _H : 20,
|
|
3734
|
+
fractionDigits: (_K = (_J = (_I = outputOptions.override) == null ? void 0 : _I.mock) == null ? void 0 : _J.fractionDigits) != null ? _K : 2,
|
|
3735
|
+
...(_L = outputOptions.override) == null ? void 0 : _L.mock
|
|
3731
3736
|
},
|
|
3732
3737
|
operations: normalizeOperationsAndTags(
|
|
3733
|
-
(
|
|
3738
|
+
(_N = (_M = outputOptions.override) == null ? void 0 : _M.operations) != null ? _N : {},
|
|
3734
3739
|
outputWorkspace,
|
|
3735
3740
|
{
|
|
3736
3741
|
query: globalQueryOptions
|
|
3737
3742
|
}
|
|
3738
3743
|
),
|
|
3739
3744
|
tags: normalizeOperationsAndTags(
|
|
3740
|
-
(
|
|
3745
|
+
(_P = (_O = outputOptions.override) == null ? void 0 : _O.tags) != null ? _P : {},
|
|
3741
3746
|
outputWorkspace,
|
|
3742
3747
|
{
|
|
3743
3748
|
query: globalQueryOptions
|
|
@@ -3745,119 +3750,123 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
|
|
|
3745
3750
|
),
|
|
3746
3751
|
mutator: normalizeMutator(
|
|
3747
3752
|
outputWorkspace,
|
|
3748
|
-
(
|
|
3753
|
+
(_Q = outputOptions.override) == null ? void 0 : _Q.mutator
|
|
3749
3754
|
),
|
|
3750
3755
|
formData: createFormData(
|
|
3751
3756
|
outputWorkspace,
|
|
3752
|
-
(
|
|
3757
|
+
(_R = outputOptions.override) == null ? void 0 : _R.formData
|
|
3753
3758
|
),
|
|
3754
|
-
formUrlEncoded: (
|
|
3759
|
+
formUrlEncoded: (_V = !(0, import_core8.isBoolean)((_S = outputOptions.override) == null ? void 0 : _S.formUrlEncoded) ? normalizeMutator(
|
|
3755
3760
|
outputWorkspace,
|
|
3756
|
-
(
|
|
3757
|
-
) : (
|
|
3761
|
+
(_T = outputOptions.override) == null ? void 0 : _T.formUrlEncoded
|
|
3762
|
+
) : (_U = outputOptions.override) == null ? void 0 : _U.formUrlEncoded) != null ? _V : true,
|
|
3758
3763
|
paramsSerializer: normalizeMutator(
|
|
3759
3764
|
outputWorkspace,
|
|
3760
|
-
(
|
|
3765
|
+
(_W = outputOptions.override) == null ? void 0 : _W.paramsSerializer
|
|
3761
3766
|
),
|
|
3762
|
-
header: ((
|
|
3763
|
-
requestOptions: (
|
|
3767
|
+
header: ((_X = outputOptions.override) == null ? void 0 : _X.header) === false ? false : (0, import_core8.isFunction)((_Y = outputOptions.override) == null ? void 0 : _Y.header) ? (_Z = outputOptions.override) == null ? void 0 : _Z.header : getDefaultFilesHeader,
|
|
3768
|
+
requestOptions: (_$ = (__ = outputOptions.override) == null ? void 0 : __.requestOptions) != null ? _$ : true,
|
|
3769
|
+
namingConvention: (_ba = (_aa = outputOptions.override) == null ? void 0 : _aa.namingConvention) != null ? _ba : {},
|
|
3764
3770
|
components: {
|
|
3765
3771
|
schemas: {
|
|
3766
3772
|
suffix: import_core8.RefComponentSuffix.schemas,
|
|
3767
|
-
itemSuffix: (
|
|
3768
|
-
...(
|
|
3773
|
+
itemSuffix: (_fa = (_ea = (_da = (_ca = outputOptions.override) == null ? void 0 : _ca.components) == null ? void 0 : _da.schemas) == null ? void 0 : _ea.itemSuffix) != null ? _fa : "Item",
|
|
3774
|
+
...(_ia = (_ha = (_ga = outputOptions.override) == null ? void 0 : _ga.components) == null ? void 0 : _ha.schemas) != null ? _ia : {}
|
|
3769
3775
|
},
|
|
3770
3776
|
responses: {
|
|
3771
3777
|
suffix: import_core8.RefComponentSuffix.responses,
|
|
3772
|
-
...(
|
|
3778
|
+
...(_la = (_ka = (_ja = outputOptions.override) == null ? void 0 : _ja.components) == null ? void 0 : _ka.responses) != null ? _la : {}
|
|
3773
3779
|
},
|
|
3774
3780
|
parameters: {
|
|
3775
3781
|
suffix: import_core8.RefComponentSuffix.parameters,
|
|
3776
|
-
...(
|
|
3782
|
+
...(_oa = (_na = (_ma = outputOptions.override) == null ? void 0 : _ma.components) == null ? void 0 : _na.parameters) != null ? _oa : {}
|
|
3777
3783
|
},
|
|
3778
3784
|
requestBodies: {
|
|
3779
3785
|
suffix: import_core8.RefComponentSuffix.requestBodies,
|
|
3780
|
-
...(
|
|
3786
|
+
...(_ra = (_qa = (_pa = outputOptions.override) == null ? void 0 : _pa.components) == null ? void 0 : _qa.requestBodies) != null ? _ra : {}
|
|
3781
3787
|
}
|
|
3782
3788
|
},
|
|
3783
|
-
hono: normalizeHonoOptions((
|
|
3789
|
+
hono: normalizeHonoOptions((_sa = outputOptions.override) == null ? void 0 : _sa.hono, workspace),
|
|
3790
|
+
jsDoc: normalizeJSDocOptions((_ta = outputOptions.override) == null ? void 0 : _ta.jsDoc),
|
|
3784
3791
|
query: globalQueryOptions,
|
|
3785
3792
|
zod: {
|
|
3786
3793
|
strict: {
|
|
3787
|
-
param: (
|
|
3788
|
-
query: (
|
|
3789
|
-
header: (
|
|
3790
|
-
body: (
|
|
3791
|
-
response: (
|
|
3794
|
+
param: (_xa = (_wa = (_va = (_ua = outputOptions.override) == null ? void 0 : _ua.zod) == null ? void 0 : _va.strict) == null ? void 0 : _wa.param) != null ? _xa : false,
|
|
3795
|
+
query: (_Ba = (_Aa = (_za = (_ya = outputOptions.override) == null ? void 0 : _ya.zod) == null ? void 0 : _za.strict) == null ? void 0 : _Aa.query) != null ? _Ba : false,
|
|
3796
|
+
header: (_Fa = (_Ea = (_Da = (_Ca = outputOptions.override) == null ? void 0 : _Ca.zod) == null ? void 0 : _Da.strict) == null ? void 0 : _Ea.header) != null ? _Fa : false,
|
|
3797
|
+
body: (_Ja = (_Ia = (_Ha = (_Ga = outputOptions.override) == null ? void 0 : _Ga.zod) == null ? void 0 : _Ha.strict) == null ? void 0 : _Ia.body) != null ? _Ja : false,
|
|
3798
|
+
response: (_Na = (_Ma = (_La = (_Ka = outputOptions.override) == null ? void 0 : _Ka.zod) == null ? void 0 : _La.strict) == null ? void 0 : _Ma.response) != null ? _Na : false
|
|
3792
3799
|
},
|
|
3793
3800
|
generate: {
|
|
3794
|
-
param: (
|
|
3795
|
-
query: (
|
|
3796
|
-
header: (
|
|
3797
|
-
body: (
|
|
3798
|
-
response: (
|
|
3801
|
+
param: (_Ra = (_Qa = (_Pa = (_Oa = outputOptions.override) == null ? void 0 : _Oa.zod) == null ? void 0 : _Pa.generate) == null ? void 0 : _Qa.param) != null ? _Ra : true,
|
|
3802
|
+
query: (_Va = (_Ua = (_Ta = (_Sa = outputOptions.override) == null ? void 0 : _Sa.zod) == null ? void 0 : _Ta.generate) == null ? void 0 : _Ua.query) != null ? _Va : true,
|
|
3803
|
+
header: (_Za = (_Ya = (_Xa = (_Wa = outputOptions.override) == null ? void 0 : _Wa.zod) == null ? void 0 : _Xa.generate) == null ? void 0 : _Ya.header) != null ? _Za : true,
|
|
3804
|
+
body: (_bb = (_ab = (_$a = (__a = outputOptions.override) == null ? void 0 : __a.zod) == null ? void 0 : _$a.generate) == null ? void 0 : _ab.body) != null ? _bb : true,
|
|
3805
|
+
response: (_fb = (_eb = (_db = (_cb = outputOptions.override) == null ? void 0 : _cb.zod) == null ? void 0 : _db.generate) == null ? void 0 : _eb.response) != null ? _fb : true
|
|
3799
3806
|
},
|
|
3800
3807
|
coerce: {
|
|
3801
|
-
param: (
|
|
3802
|
-
query: (
|
|
3803
|
-
header: (
|
|
3804
|
-
body: (
|
|
3805
|
-
response: (
|
|
3808
|
+
param: (_jb = (_ib = (_hb = (_gb = outputOptions.override) == null ? void 0 : _gb.zod) == null ? void 0 : _hb.coerce) == null ? void 0 : _ib.param) != null ? _jb : false,
|
|
3809
|
+
query: (_nb = (_mb = (_lb = (_kb = outputOptions.override) == null ? void 0 : _kb.zod) == null ? void 0 : _lb.coerce) == null ? void 0 : _mb.query) != null ? _nb : false,
|
|
3810
|
+
header: (_rb = (_qb = (_pb = (_ob = outputOptions.override) == null ? void 0 : _ob.zod) == null ? void 0 : _pb.coerce) == null ? void 0 : _qb.header) != null ? _rb : false,
|
|
3811
|
+
body: (_vb = (_ub = (_tb = (_sb = outputOptions.override) == null ? void 0 : _sb.zod) == null ? void 0 : _tb.coerce) == null ? void 0 : _ub.body) != null ? _vb : false,
|
|
3812
|
+
response: (_zb = (_yb = (_xb = (_wb = outputOptions.override) == null ? void 0 : _wb.zod) == null ? void 0 : _xb.coerce) == null ? void 0 : _yb.response) != null ? _zb : false
|
|
3806
3813
|
},
|
|
3807
3814
|
preprocess: {
|
|
3808
|
-
...((
|
|
3815
|
+
...((_Cb = (_Bb = (_Ab = outputOptions.override) == null ? void 0 : _Ab.zod) == null ? void 0 : _Bb.preprocess) == null ? void 0 : _Cb.param) ? {
|
|
3809
3816
|
param: normalizeMutator(
|
|
3810
3817
|
workspace,
|
|
3811
3818
|
outputOptions.override.zod.preprocess.param
|
|
3812
3819
|
)
|
|
3813
3820
|
} : {},
|
|
3814
|
-
...((
|
|
3821
|
+
...((_Fb = (_Eb = (_Db = outputOptions.override) == null ? void 0 : _Db.zod) == null ? void 0 : _Eb.preprocess) == null ? void 0 : _Fb.query) ? {
|
|
3815
3822
|
query: normalizeMutator(
|
|
3816
3823
|
workspace,
|
|
3817
3824
|
outputOptions.override.zod.preprocess.query
|
|
3818
3825
|
)
|
|
3819
3826
|
} : {},
|
|
3820
|
-
...((
|
|
3827
|
+
...((_Ib = (_Hb = (_Gb = outputOptions.override) == null ? void 0 : _Gb.zod) == null ? void 0 : _Hb.preprocess) == null ? void 0 : _Ib.header) ? {
|
|
3821
3828
|
header: normalizeMutator(
|
|
3822
3829
|
workspace,
|
|
3823
3830
|
outputOptions.override.zod.preprocess.header
|
|
3824
3831
|
)
|
|
3825
3832
|
} : {},
|
|
3826
|
-
...((
|
|
3833
|
+
...((_Lb = (_Kb = (_Jb = outputOptions.override) == null ? void 0 : _Jb.zod) == null ? void 0 : _Kb.preprocess) == null ? void 0 : _Lb.body) ? {
|
|
3827
3834
|
body: normalizeMutator(
|
|
3828
3835
|
workspace,
|
|
3829
3836
|
outputOptions.override.zod.preprocess.body
|
|
3830
3837
|
)
|
|
3831
3838
|
} : {},
|
|
3832
|
-
...((
|
|
3839
|
+
...((_Ob = (_Nb = (_Mb = outputOptions.override) == null ? void 0 : _Mb.zod) == null ? void 0 : _Nb.preprocess) == null ? void 0 : _Ob.response) ? {
|
|
3833
3840
|
response: normalizeMutator(
|
|
3834
3841
|
workspace,
|
|
3835
3842
|
outputOptions.override.zod.preprocess.response
|
|
3836
3843
|
)
|
|
3837
3844
|
} : {}
|
|
3838
3845
|
},
|
|
3839
|
-
generateEachHttpStatus: (
|
|
3840
|
-
dateTimeOptions: (
|
|
3846
|
+
generateEachHttpStatus: (_Rb = (_Qb = (_Pb = outputOptions.override) == null ? void 0 : _Pb.zod) == null ? void 0 : _Qb.generateEachHttpStatus) != null ? _Rb : false,
|
|
3847
|
+
dateTimeOptions: (_Ub = (_Tb = (_Sb = outputOptions.override) == null ? void 0 : _Sb.zod) == null ? void 0 : _Tb.dateTimeOptions) != null ? _Ub : {},
|
|
3848
|
+
timeOptions: (_Xb = (_Wb = (_Vb = outputOptions.override) == null ? void 0 : _Vb.zod) == null ? void 0 : _Wb.timeOptions) != null ? _Xb : {}
|
|
3841
3849
|
},
|
|
3842
3850
|
swr: {
|
|
3843
|
-
...(
|
|
3851
|
+
...(_Zb = (_Yb = outputOptions.override) == null ? void 0 : _Yb.swr) != null ? _Zb : {}
|
|
3844
3852
|
},
|
|
3845
3853
|
angular: {
|
|
3846
|
-
provideIn: (
|
|
3854
|
+
provideIn: (_ac = (_$b = (__b = outputOptions.override) == null ? void 0 : __b.angular) == null ? void 0 : _$b.provideIn) != null ? _ac : "root"
|
|
3847
3855
|
},
|
|
3848
3856
|
fetch: {
|
|
3849
|
-
includeHttpResponseReturnType: (
|
|
3850
|
-
|
|
3857
|
+
includeHttpResponseReturnType: (_dc = (_cc = (_bc = outputOptions.override) == null ? void 0 : _bc.fetch) == null ? void 0 : _cc.includeHttpResponseReturnType) != null ? _dc : true,
|
|
3858
|
+
explode: (_gc = (_fc = (_ec = outputOptions.override) == null ? void 0 : _ec.fetch) == null ? void 0 : _fc.explode) != null ? _gc : false,
|
|
3859
|
+
...(_ic = (_hc = outputOptions.override) == null ? void 0 : _hc.fetch) != null ? _ic : {}
|
|
3851
3860
|
},
|
|
3852
|
-
useDates: ((
|
|
3853
|
-
useDeprecatedOperations: (
|
|
3854
|
-
enumGenerationType: ((
|
|
3855
|
-
suppressReadonlyModifier: ((
|
|
3861
|
+
useDates: ((_jc = outputOptions.override) == null ? void 0 : _jc.useDates) || false,
|
|
3862
|
+
useDeprecatedOperations: (_lc = (_kc = outputOptions.override) == null ? void 0 : _kc.useDeprecatedOperations) != null ? _lc : true,
|
|
3863
|
+
enumGenerationType: ((_nc = (_mc = outputOptions.override) == null ? void 0 : _mc.useNativeEnums) != null ? _nc : false) ? "enum" : (_pc = (_oc = outputOptions.override) == null ? void 0 : _oc.enumGenerationType) != null ? _pc : "const",
|
|
3864
|
+
suppressReadonlyModifier: ((_qc = outputOptions.override) == null ? void 0 : _qc.suppressReadonlyModifier) || false
|
|
3856
3865
|
},
|
|
3857
|
-
allParamsOptional: (
|
|
3858
|
-
urlEncodeParameters: (
|
|
3859
|
-
optionsParamRequired: (
|
|
3860
|
-
propertySortOrder: (
|
|
3866
|
+
allParamsOptional: (_rc = outputOptions.allParamsOptional) != null ? _rc : false,
|
|
3867
|
+
urlEncodeParameters: (_sc = outputOptions.urlEncodeParameters) != null ? _sc : false,
|
|
3868
|
+
optionsParamRequired: (_tc = outputOptions.optionsParamRequired) != null ? _tc : false,
|
|
3869
|
+
propertySortOrder: (_uc = outputOptions.propertySortOrder) != null ? _uc : import_core8.PropertySortOrder.SPECIFICATION
|
|
3861
3870
|
},
|
|
3862
3871
|
hooks: options.hooks ? normalizeHooks(options.hooks) : {}
|
|
3863
3872
|
};
|
|
@@ -3926,7 +3935,7 @@ var normalizeOperationsAndTags = (operationsOrTags, workspace, global) => {
|
|
|
3926
3935
|
...rest
|
|
3927
3936
|
}
|
|
3928
3937
|
]) => {
|
|
3929
|
-
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;
|
|
3938
|
+
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;
|
|
3930
3939
|
return [
|
|
3931
3940
|
key,
|
|
3932
3941
|
{
|
|
@@ -3990,7 +3999,8 @@ var normalizeOperationsAndTags = (operationsOrTags, workspace, global) => {
|
|
|
3990
3999
|
} : {}
|
|
3991
4000
|
},
|
|
3992
4001
|
generateEachHttpStatus: (_J = zod2 == null ? void 0 : zod2.generateEachHttpStatus) != null ? _J : false,
|
|
3993
|
-
dateTimeOptions: (_K = zod2 == null ? void 0 : zod2.dateTimeOptions) != null ? _K : {}
|
|
4002
|
+
dateTimeOptions: (_K = zod2 == null ? void 0 : zod2.dateTimeOptions) != null ? _K : {},
|
|
4003
|
+
timeOptions: (_L = zod2 == null ? void 0 : zod2.timeOptions) != null ? _L : {}
|
|
3994
4004
|
}
|
|
3995
4005
|
} : {},
|
|
3996
4006
|
...transformer ? { transformer: normalizePath(transformer, workspace) } : {},
|
|
@@ -4057,6 +4067,11 @@ var normalizeHonoOptions = (hono2 = {}, workspace) => {
|
|
|
4057
4067
|
validatorOutputPath: hono2.validatorOutputPath ? import_core8.upath.resolve(workspace, hono2.validatorOutputPath) : ""
|
|
4058
4068
|
};
|
|
4059
4069
|
};
|
|
4070
|
+
var normalizeJSDocOptions = (jsdoc = {}) => {
|
|
4071
|
+
return {
|
|
4072
|
+
...jsdoc
|
|
4073
|
+
};
|
|
4074
|
+
};
|
|
4060
4075
|
var normalizeQueryOptions = (queryOptions = {}, outputWorkspace, globalOptions = {}) => {
|
|
4061
4076
|
if (queryOptions.options) {
|
|
4062
4077
|
console.warn(
|
|
@@ -4479,7 +4494,7 @@ var generateConfig = async (configFile, options) => {
|
|
|
4479
4494
|
};
|
|
4480
4495
|
|
|
4481
4496
|
// src/index.ts
|
|
4482
|
-
__reExport(
|
|
4497
|
+
__reExport(index_exports, require("@orval/core"), module.exports);
|
|
4483
4498
|
var generate = async (optionsExport, workspace = process.cwd(), options) => {
|
|
4484
4499
|
if (!optionsExport || (0, import_core13.isString)(optionsExport)) {
|
|
4485
4500
|
return generateConfig(optionsExport, options);
|
|
@@ -4509,7 +4524,7 @@ var generate = async (optionsExport, workspace = process.cwd(), options) => {
|
|
|
4509
4524
|
}
|
|
4510
4525
|
}
|
|
4511
4526
|
};
|
|
4512
|
-
var
|
|
4527
|
+
var index_default = generate;
|
|
4513
4528
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4514
4529
|
0 && (module.exports = {
|
|
4515
4530
|
Options,
|