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/bin/orval.js
CHANGED
|
@@ -2721,7 +2721,8 @@ var generateClientImports = ({
|
|
|
2721
2721
|
hasParamsSerializerOptions,
|
|
2722
2722
|
packageJson,
|
|
2723
2723
|
output.httpClient,
|
|
2724
|
-
hasTagsMutator
|
|
2724
|
+
hasTagsMutator,
|
|
2725
|
+
output.override
|
|
2725
2726
|
),
|
|
2726
2727
|
...imports
|
|
2727
2728
|
] : imports,
|
|
@@ -2877,7 +2878,8 @@ var generateOperations = (outputClient = DEFAULT_CLIENT, verbsOptions, options,
|
|
|
2877
2878
|
formData: verbOption.formData,
|
|
2878
2879
|
formUrlEncoded: verbOption.formUrlEncoded,
|
|
2879
2880
|
paramsSerializer: verbOption.paramsSerializer,
|
|
2880
|
-
operationName: verbOption.operationName
|
|
2881
|
+
operationName: verbOption.operationName,
|
|
2882
|
+
fetchReviver: verbOption.fetchReviver
|
|
2881
2883
|
};
|
|
2882
2884
|
return acc;
|
|
2883
2885
|
},
|
|
@@ -3238,7 +3240,7 @@ var import_chalk3 = __toESM(require("chalk"));
|
|
|
3238
3240
|
var package_default = {
|
|
3239
3241
|
name: "orval",
|
|
3240
3242
|
description: "A swagger client generator for typescript",
|
|
3241
|
-
version: "7.
|
|
3243
|
+
version: "7.11.0",
|
|
3242
3244
|
license: "MIT",
|
|
3243
3245
|
files: [
|
|
3244
3246
|
"dist"
|
|
@@ -3293,16 +3295,16 @@ var package_default = {
|
|
|
3293
3295
|
},
|
|
3294
3296
|
dependencies: {
|
|
3295
3297
|
"@apidevtools/swagger-parser": "^10.1.1",
|
|
3296
|
-
"@orval/angular": "7.
|
|
3297
|
-
"@orval/axios": "7.
|
|
3298
|
-
"@orval/core": "7.
|
|
3299
|
-
"@orval/fetch": "7.
|
|
3300
|
-
"@orval/hono": "7.
|
|
3301
|
-
"@orval/mcp": "7.
|
|
3302
|
-
"@orval/mock": "7.
|
|
3303
|
-
"@orval/query": "7.
|
|
3304
|
-
"@orval/swr": "7.
|
|
3305
|
-
"@orval/zod": "7.
|
|
3298
|
+
"@orval/angular": "7.11.0",
|
|
3299
|
+
"@orval/axios": "7.11.0",
|
|
3300
|
+
"@orval/core": "7.11.0",
|
|
3301
|
+
"@orval/fetch": "7.11.0",
|
|
3302
|
+
"@orval/hono": "7.11.0",
|
|
3303
|
+
"@orval/mcp": "7.11.0",
|
|
3304
|
+
"@orval/mock": "7.11.0",
|
|
3305
|
+
"@orval/query": "7.11.0",
|
|
3306
|
+
"@orval/swr": "7.11.0",
|
|
3307
|
+
"@orval/zod": "7.11.0",
|
|
3306
3308
|
ajv: "^8.17.1",
|
|
3307
3309
|
cac: "^6.7.14",
|
|
3308
3310
|
chalk: "^4.1.2",
|
|
@@ -3310,12 +3312,12 @@ var package_default = {
|
|
|
3310
3312
|
enquirer: "^2.4.1",
|
|
3311
3313
|
execa: "^5.1.1",
|
|
3312
3314
|
"find-up": "5.0.0",
|
|
3313
|
-
"fs-extra": "^11.
|
|
3315
|
+
"fs-extra": "^11.3.0",
|
|
3314
3316
|
"lodash.uniq": "^4.5.0",
|
|
3315
3317
|
"openapi3-ts": "4.2.2",
|
|
3316
3318
|
"string-argv": "^0.3.2",
|
|
3317
3319
|
tsconfck: "^2.0.1",
|
|
3318
|
-
typedoc: "^0.28.
|
|
3320
|
+
typedoc: "^0.28.7",
|
|
3319
3321
|
"typedoc-plugin-markdown": "^4.4.2",
|
|
3320
3322
|
typescript: "^5.6.3"
|
|
3321
3323
|
}
|
|
@@ -3501,7 +3503,7 @@ var maybeReplaceCatalog = async (pkg, workspace) => {
|
|
|
3501
3503
|
...Object.entries((_a = pkg.dependencies) != null ? _a : {}),
|
|
3502
3504
|
...Object.entries((_b = pkg.devDependencies) != null ? _b : {}),
|
|
3503
3505
|
...Object.entries((_c = pkg.peerDependencies) != null ? _c : {})
|
|
3504
|
-
].some(([
|
|
3506
|
+
].some(([, value]) => (0, import_core6.isString)(value) && value.startsWith("catalog:"))) {
|
|
3505
3507
|
return pkg;
|
|
3506
3508
|
}
|
|
3507
3509
|
const filePath = await (0, import_find_up.default)("pnpm-workspace.yaml", { cwd: workspace });
|
|
@@ -3619,7 +3621,7 @@ var createFormData = (workspace, formData) => {
|
|
|
3619
3621
|
};
|
|
3620
3622
|
};
|
|
3621
3623
|
var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOptions = {}) => {
|
|
3622
|
-
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;
|
|
3624
|
+
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;
|
|
3623
3625
|
const options = await ((0, import_core8.isFunction)(optionsExport) ? optionsExport() : optionsExport);
|
|
3624
3626
|
if (!options.input) {
|
|
3625
3627
|
(0, import_core8.createLogger)().error(import_chalk3.default.red(`Config require an input`));
|
|
@@ -3712,17 +3714,20 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
|
|
|
3712
3714
|
mock: {
|
|
3713
3715
|
arrayMin: (_y = (_x = (_w = outputOptions.override) == null ? void 0 : _w.mock) == null ? void 0 : _x.arrayMin) != null ? _y : 1,
|
|
3714
3716
|
arrayMax: (_B = (_A = (_z = outputOptions.override) == null ? void 0 : _z.mock) == null ? void 0 : _A.arrayMax) != null ? _B : 10,
|
|
3715
|
-
|
|
3717
|
+
stringMin: (_E = (_D = (_C = outputOptions.override) == null ? void 0 : _C.mock) == null ? void 0 : _D.stringMin) != null ? _E : 10,
|
|
3718
|
+
stringMax: (_H = (_G = (_F = outputOptions.override) == null ? void 0 : _F.mock) == null ? void 0 : _G.stringMax) != null ? _H : 20,
|
|
3719
|
+
fractionDigits: (_K = (_J = (_I = outputOptions.override) == null ? void 0 : _I.mock) == null ? void 0 : _J.fractionDigits) != null ? _K : 2,
|
|
3720
|
+
...(_L = outputOptions.override) == null ? void 0 : _L.mock
|
|
3716
3721
|
},
|
|
3717
3722
|
operations: normalizeOperationsAndTags(
|
|
3718
|
-
(
|
|
3723
|
+
(_N = (_M = outputOptions.override) == null ? void 0 : _M.operations) != null ? _N : {},
|
|
3719
3724
|
outputWorkspace,
|
|
3720
3725
|
{
|
|
3721
3726
|
query: globalQueryOptions
|
|
3722
3727
|
}
|
|
3723
3728
|
),
|
|
3724
3729
|
tags: normalizeOperationsAndTags(
|
|
3725
|
-
(
|
|
3730
|
+
(_P = (_O = outputOptions.override) == null ? void 0 : _O.tags) != null ? _P : {},
|
|
3726
3731
|
outputWorkspace,
|
|
3727
3732
|
{
|
|
3728
3733
|
query: globalQueryOptions
|
|
@@ -3730,119 +3735,123 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
|
|
|
3730
3735
|
),
|
|
3731
3736
|
mutator: normalizeMutator(
|
|
3732
3737
|
outputWorkspace,
|
|
3733
|
-
(
|
|
3738
|
+
(_Q = outputOptions.override) == null ? void 0 : _Q.mutator
|
|
3734
3739
|
),
|
|
3735
3740
|
formData: createFormData(
|
|
3736
3741
|
outputWorkspace,
|
|
3737
|
-
(
|
|
3742
|
+
(_R = outputOptions.override) == null ? void 0 : _R.formData
|
|
3738
3743
|
),
|
|
3739
|
-
formUrlEncoded: (
|
|
3744
|
+
formUrlEncoded: (_V = !(0, import_core8.isBoolean)((_S = outputOptions.override) == null ? void 0 : _S.formUrlEncoded) ? normalizeMutator(
|
|
3740
3745
|
outputWorkspace,
|
|
3741
|
-
(
|
|
3742
|
-
) : (
|
|
3746
|
+
(_T = outputOptions.override) == null ? void 0 : _T.formUrlEncoded
|
|
3747
|
+
) : (_U = outputOptions.override) == null ? void 0 : _U.formUrlEncoded) != null ? _V : true,
|
|
3743
3748
|
paramsSerializer: normalizeMutator(
|
|
3744
3749
|
outputWorkspace,
|
|
3745
|
-
(
|
|
3750
|
+
(_W = outputOptions.override) == null ? void 0 : _W.paramsSerializer
|
|
3746
3751
|
),
|
|
3747
|
-
header: ((
|
|
3748
|
-
requestOptions: (
|
|
3752
|
+
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,
|
|
3753
|
+
requestOptions: (_$ = (__ = outputOptions.override) == null ? void 0 : __.requestOptions) != null ? _$ : true,
|
|
3754
|
+
namingConvention: (_ba = (_aa = outputOptions.override) == null ? void 0 : _aa.namingConvention) != null ? _ba : {},
|
|
3749
3755
|
components: {
|
|
3750
3756
|
schemas: {
|
|
3751
3757
|
suffix: import_core8.RefComponentSuffix.schemas,
|
|
3752
|
-
itemSuffix: (
|
|
3753
|
-
...(
|
|
3758
|
+
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",
|
|
3759
|
+
...(_ia = (_ha = (_ga = outputOptions.override) == null ? void 0 : _ga.components) == null ? void 0 : _ha.schemas) != null ? _ia : {}
|
|
3754
3760
|
},
|
|
3755
3761
|
responses: {
|
|
3756
3762
|
suffix: import_core8.RefComponentSuffix.responses,
|
|
3757
|
-
...(
|
|
3763
|
+
...(_la = (_ka = (_ja = outputOptions.override) == null ? void 0 : _ja.components) == null ? void 0 : _ka.responses) != null ? _la : {}
|
|
3758
3764
|
},
|
|
3759
3765
|
parameters: {
|
|
3760
3766
|
suffix: import_core8.RefComponentSuffix.parameters,
|
|
3761
|
-
...(
|
|
3767
|
+
...(_oa = (_na = (_ma = outputOptions.override) == null ? void 0 : _ma.components) == null ? void 0 : _na.parameters) != null ? _oa : {}
|
|
3762
3768
|
},
|
|
3763
3769
|
requestBodies: {
|
|
3764
3770
|
suffix: import_core8.RefComponentSuffix.requestBodies,
|
|
3765
|
-
...(
|
|
3771
|
+
...(_ra = (_qa = (_pa = outputOptions.override) == null ? void 0 : _pa.components) == null ? void 0 : _qa.requestBodies) != null ? _ra : {}
|
|
3766
3772
|
}
|
|
3767
3773
|
},
|
|
3768
|
-
hono: normalizeHonoOptions((
|
|
3774
|
+
hono: normalizeHonoOptions((_sa = outputOptions.override) == null ? void 0 : _sa.hono, workspace),
|
|
3775
|
+
jsDoc: normalizeJSDocOptions((_ta = outputOptions.override) == null ? void 0 : _ta.jsDoc),
|
|
3769
3776
|
query: globalQueryOptions,
|
|
3770
3777
|
zod: {
|
|
3771
3778
|
strict: {
|
|
3772
|
-
param: (
|
|
3773
|
-
query: (
|
|
3774
|
-
header: (
|
|
3775
|
-
body: (
|
|
3776
|
-
response: (
|
|
3779
|
+
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,
|
|
3780
|
+
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,
|
|
3781
|
+
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,
|
|
3782
|
+
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,
|
|
3783
|
+
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
|
|
3777
3784
|
},
|
|
3778
3785
|
generate: {
|
|
3779
|
-
param: (
|
|
3780
|
-
query: (
|
|
3781
|
-
header: (
|
|
3782
|
-
body: (
|
|
3783
|
-
response: (
|
|
3786
|
+
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,
|
|
3787
|
+
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,
|
|
3788
|
+
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,
|
|
3789
|
+
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,
|
|
3790
|
+
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
|
|
3784
3791
|
},
|
|
3785
3792
|
coerce: {
|
|
3786
|
-
param: (
|
|
3787
|
-
query: (
|
|
3788
|
-
header: (
|
|
3789
|
-
body: (
|
|
3790
|
-
response: (
|
|
3793
|
+
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,
|
|
3794
|
+
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,
|
|
3795
|
+
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,
|
|
3796
|
+
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,
|
|
3797
|
+
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
|
|
3791
3798
|
},
|
|
3792
3799
|
preprocess: {
|
|
3793
|
-
...((
|
|
3800
|
+
...((_Cb = (_Bb = (_Ab = outputOptions.override) == null ? void 0 : _Ab.zod) == null ? void 0 : _Bb.preprocess) == null ? void 0 : _Cb.param) ? {
|
|
3794
3801
|
param: normalizeMutator(
|
|
3795
3802
|
workspace,
|
|
3796
3803
|
outputOptions.override.zod.preprocess.param
|
|
3797
3804
|
)
|
|
3798
3805
|
} : {},
|
|
3799
|
-
...((
|
|
3806
|
+
...((_Fb = (_Eb = (_Db = outputOptions.override) == null ? void 0 : _Db.zod) == null ? void 0 : _Eb.preprocess) == null ? void 0 : _Fb.query) ? {
|
|
3800
3807
|
query: normalizeMutator(
|
|
3801
3808
|
workspace,
|
|
3802
3809
|
outputOptions.override.zod.preprocess.query
|
|
3803
3810
|
)
|
|
3804
3811
|
} : {},
|
|
3805
|
-
...((
|
|
3812
|
+
...((_Ib = (_Hb = (_Gb = outputOptions.override) == null ? void 0 : _Gb.zod) == null ? void 0 : _Hb.preprocess) == null ? void 0 : _Ib.header) ? {
|
|
3806
3813
|
header: normalizeMutator(
|
|
3807
3814
|
workspace,
|
|
3808
3815
|
outputOptions.override.zod.preprocess.header
|
|
3809
3816
|
)
|
|
3810
3817
|
} : {},
|
|
3811
|
-
...((
|
|
3818
|
+
...((_Lb = (_Kb = (_Jb = outputOptions.override) == null ? void 0 : _Jb.zod) == null ? void 0 : _Kb.preprocess) == null ? void 0 : _Lb.body) ? {
|
|
3812
3819
|
body: normalizeMutator(
|
|
3813
3820
|
workspace,
|
|
3814
3821
|
outputOptions.override.zod.preprocess.body
|
|
3815
3822
|
)
|
|
3816
3823
|
} : {},
|
|
3817
|
-
...((
|
|
3824
|
+
...((_Ob = (_Nb = (_Mb = outputOptions.override) == null ? void 0 : _Mb.zod) == null ? void 0 : _Nb.preprocess) == null ? void 0 : _Ob.response) ? {
|
|
3818
3825
|
response: normalizeMutator(
|
|
3819
3826
|
workspace,
|
|
3820
3827
|
outputOptions.override.zod.preprocess.response
|
|
3821
3828
|
)
|
|
3822
3829
|
} : {}
|
|
3823
3830
|
},
|
|
3824
|
-
generateEachHttpStatus: (
|
|
3825
|
-
dateTimeOptions: (
|
|
3831
|
+
generateEachHttpStatus: (_Rb = (_Qb = (_Pb = outputOptions.override) == null ? void 0 : _Pb.zod) == null ? void 0 : _Qb.generateEachHttpStatus) != null ? _Rb : false,
|
|
3832
|
+
dateTimeOptions: (_Ub = (_Tb = (_Sb = outputOptions.override) == null ? void 0 : _Sb.zod) == null ? void 0 : _Tb.dateTimeOptions) != null ? _Ub : {},
|
|
3833
|
+
timeOptions: (_Xb = (_Wb = (_Vb = outputOptions.override) == null ? void 0 : _Vb.zod) == null ? void 0 : _Wb.timeOptions) != null ? _Xb : {}
|
|
3826
3834
|
},
|
|
3827
3835
|
swr: {
|
|
3828
|
-
...(
|
|
3836
|
+
...(_Zb = (_Yb = outputOptions.override) == null ? void 0 : _Yb.swr) != null ? _Zb : {}
|
|
3829
3837
|
},
|
|
3830
3838
|
angular: {
|
|
3831
|
-
provideIn: (
|
|
3839
|
+
provideIn: (_ac = (_$b = (__b = outputOptions.override) == null ? void 0 : __b.angular) == null ? void 0 : _$b.provideIn) != null ? _ac : "root"
|
|
3832
3840
|
},
|
|
3833
3841
|
fetch: {
|
|
3834
|
-
includeHttpResponseReturnType: (
|
|
3835
|
-
|
|
3842
|
+
includeHttpResponseReturnType: (_dc = (_cc = (_bc = outputOptions.override) == null ? void 0 : _bc.fetch) == null ? void 0 : _cc.includeHttpResponseReturnType) != null ? _dc : true,
|
|
3843
|
+
explode: (_gc = (_fc = (_ec = outputOptions.override) == null ? void 0 : _ec.fetch) == null ? void 0 : _fc.explode) != null ? _gc : false,
|
|
3844
|
+
...(_ic = (_hc = outputOptions.override) == null ? void 0 : _hc.fetch) != null ? _ic : {}
|
|
3836
3845
|
},
|
|
3837
|
-
useDates: ((
|
|
3838
|
-
useDeprecatedOperations: (
|
|
3839
|
-
enumGenerationType: ((
|
|
3840
|
-
suppressReadonlyModifier: ((
|
|
3846
|
+
useDates: ((_jc = outputOptions.override) == null ? void 0 : _jc.useDates) || false,
|
|
3847
|
+
useDeprecatedOperations: (_lc = (_kc = outputOptions.override) == null ? void 0 : _kc.useDeprecatedOperations) != null ? _lc : true,
|
|
3848
|
+
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",
|
|
3849
|
+
suppressReadonlyModifier: ((_qc = outputOptions.override) == null ? void 0 : _qc.suppressReadonlyModifier) || false
|
|
3841
3850
|
},
|
|
3842
|
-
allParamsOptional: (
|
|
3843
|
-
urlEncodeParameters: (
|
|
3844
|
-
optionsParamRequired: (
|
|
3845
|
-
propertySortOrder: (
|
|
3851
|
+
allParamsOptional: (_rc = outputOptions.allParamsOptional) != null ? _rc : false,
|
|
3852
|
+
urlEncodeParameters: (_sc = outputOptions.urlEncodeParameters) != null ? _sc : false,
|
|
3853
|
+
optionsParamRequired: (_tc = outputOptions.optionsParamRequired) != null ? _tc : false,
|
|
3854
|
+
propertySortOrder: (_uc = outputOptions.propertySortOrder) != null ? _uc : import_core8.PropertySortOrder.SPECIFICATION
|
|
3846
3855
|
},
|
|
3847
3856
|
hooks: options.hooks ? normalizeHooks(options.hooks) : {}
|
|
3848
3857
|
};
|
|
@@ -3911,7 +3920,7 @@ var normalizeOperationsAndTags = (operationsOrTags, workspace, global) => {
|
|
|
3911
3920
|
...rest
|
|
3912
3921
|
}
|
|
3913
3922
|
]) => {
|
|
3914
|
-
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;
|
|
3923
|
+
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;
|
|
3915
3924
|
return [
|
|
3916
3925
|
key,
|
|
3917
3926
|
{
|
|
@@ -3975,7 +3984,8 @@ var normalizeOperationsAndTags = (operationsOrTags, workspace, global) => {
|
|
|
3975
3984
|
} : {}
|
|
3976
3985
|
},
|
|
3977
3986
|
generateEachHttpStatus: (_J = zod2 == null ? void 0 : zod2.generateEachHttpStatus) != null ? _J : false,
|
|
3978
|
-
dateTimeOptions: (_K = zod2 == null ? void 0 : zod2.dateTimeOptions) != null ? _K : {}
|
|
3987
|
+
dateTimeOptions: (_K = zod2 == null ? void 0 : zod2.dateTimeOptions) != null ? _K : {},
|
|
3988
|
+
timeOptions: (_L = zod2 == null ? void 0 : zod2.timeOptions) != null ? _L : {}
|
|
3979
3989
|
}
|
|
3980
3990
|
} : {},
|
|
3981
3991
|
...transformer ? { transformer: normalizePath(transformer, workspace) } : {},
|
|
@@ -4042,6 +4052,11 @@ var normalizeHonoOptions = (hono2 = {}, workspace) => {
|
|
|
4042
4052
|
validatorOutputPath: hono2.validatorOutputPath ? import_core8.upath.resolve(workspace, hono2.validatorOutputPath) : ""
|
|
4043
4053
|
};
|
|
4044
4054
|
};
|
|
4055
|
+
var normalizeJSDocOptions = (jsdoc = {}) => {
|
|
4056
|
+
return {
|
|
4057
|
+
...jsdoc
|
|
4058
|
+
};
|
|
4059
|
+
};
|
|
4045
4060
|
var normalizeQueryOptions = (queryOptions = {}, outputWorkspace, globalOptions = {}) => {
|
|
4046
4061
|
if (queryOptions.options) {
|
|
4047
4062
|
console.warn(
|