@genapi/presets 3.5.0 → 3.6.2
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/axios/index.d.mts +7 -7
- package/dist/axios/index.mjs +5 -5
- package/dist/axios/js/config/index.d.mts +1 -1
- package/dist/axios/js/index.d.mts +3 -3
- package/dist/axios/js/index.mjs +2 -2
- package/dist/axios/js/parser/index.d.mts +1 -1
- package/dist/axios/js/parser/index.mjs +1 -1
- package/dist/axios/ts/config/index.d.mts +1 -1
- package/dist/axios/ts/index.d.mts +3 -3
- package/dist/axios/ts/index.mjs +2 -2
- package/dist/axios/ts/parser/index.d.mts +1 -1
- package/dist/axios/ts/parser/index.mjs +1 -1
- package/dist/{axios-CG6HLmR9.mjs → axios-BW0LI_Q5.mjs} +2 -2
- package/dist/{config-Dp9C4aUE.mjs → config-B16vmOTT.mjs} +1 -1
- package/dist/{config-IeVj3de_.mjs → config-B8vtDa36.mjs} +1 -1
- package/dist/{config-B6UDPRkS.mjs → config-BHBub1xl.mjs} +1 -1
- package/dist/config-BhuG_ib-.mjs +21 -0
- package/dist/config-Cc3VHRal.mjs +19 -0
- package/dist/{config-DdUVYIe0.mjs → config-D3PcAA6e.mjs} +1 -1
- package/dist/{config-CDvaM7ZL.mjs → config-DgC2f2AO.mjs} +1 -1
- package/dist/{config-Dm0OCPw8.mjs → config-SP_VEcsX.mjs} +1 -1
- package/dist/fetch/index.d.mts +7 -7
- package/dist/fetch/index.mjs +6 -6
- package/dist/fetch/js/config/index.d.mts +1 -1
- package/dist/fetch/js/index.d.mts +3 -3
- package/dist/fetch/js/index.mjs +2 -2
- package/dist/fetch/js/parser/index.d.mts +1 -1
- package/dist/fetch/js/parser/index.mjs +1 -1
- package/dist/fetch/ts/config/index.d.mts +1 -1
- package/dist/fetch/ts/config/index.mjs +1 -1
- package/dist/fetch/ts/index.d.mts +3 -3
- package/dist/fetch/ts/index.mjs +3 -3
- package/dist/fetch/ts/parser/index.d.mts +1 -1
- package/dist/fetch/ts/parser/index.mjs +1 -1
- package/dist/{fetch-DDSgFojK.mjs → fetch-DLL06Jn7.mjs} +2 -2
- package/dist/got/index.d.mts +7 -7
- package/dist/got/index.mjs +6 -6
- package/dist/got/js/config/index.d.mts +1 -1
- package/dist/got/js/config/index.mjs +1 -1
- package/dist/got/js/index.d.mts +3 -3
- package/dist/got/js/index.mjs +3 -3
- package/dist/got/js/parser/index.d.mts +1 -1
- package/dist/got/js/parser/index.mjs +1 -1
- package/dist/got/ts/config/index.d.mts +1 -1
- package/dist/got/ts/index.d.mts +3 -3
- package/dist/got/ts/index.mjs +2 -2
- package/dist/got/ts/parser/index.d.mts +1 -1
- package/dist/got/ts/parser/index.mjs +1 -1
- package/dist/{got-DhRc0hx6.mjs → got-Bk_ycTUL.mjs} +2 -2
- package/dist/{index.d-DTsMFJM4.d.mts → index.d--7J4xg_C.d.mts} +4 -4
- package/dist/index.d-1yIjHRcL.d.mts +18 -0
- package/dist/{index.d-Dsok7fEc.d.mts → index.d-Ax3GuVKY.d.mts} +1 -1
- package/dist/{index.d-sEb0cOvU.d.mts → index.d-B4ICHGvq.d.mts} +4 -4
- package/dist/{index.d-Ba1tOHnm.d.mts → index.d-B8FQBHuC.d.mts} +3 -3
- package/dist/index.d-B9C3SJsw.d.mts +7 -0
- package/dist/{index.d-C10wnMdy.d.mts → index.d-BBXqLTYE.d.mts} +2 -2
- package/dist/index.d-BD5sl7Ep.d.mts +18 -0
- package/dist/{index.d-BEPmcVlv.d.mts → index.d-BHnYB8-L.d.mts} +4 -4
- package/dist/{index.d-DgSgg69k.d.mts → index.d-BId_SGCG.d.mts} +4 -4
- package/dist/index.d-BXZFm7XN.d.mts +12 -0
- package/dist/{index.d-B9YjsDSU.d.mts → index.d-BY4lF6QY.d.mts} +1 -1
- package/dist/{index.d-DT6dJ1Sg.d.mts → index.d-BipR8eG-.d.mts} +2 -2
- package/dist/{index.d-C-mT1tVI.d.mts → index.d-BlRzU5xC.d.mts} +4 -4
- package/dist/{index.d-D9OXwZhj.d.mts → index.d-BoZ-vUvw.d.mts} +1 -1
- package/dist/index.d-BycZForE.d.mts +7 -0
- package/dist/{index.d-C-mKHl9s.d.mts → index.d-C21FenrV.d.mts} +1 -1
- package/dist/{index.d-DndBUrRi.d.mts → index.d-C94i_Ld-.d.mts} +4 -4
- package/dist/index.d-CQQrcfNG.d.mts +12 -0
- package/dist/{index.d-DlncPuTy.d.mts → index.d-CT88RB6L.d.mts} +1 -1
- package/dist/{index.d-D6AeBSov.d.mts → index.d-CU0fle6w.d.mts} +2 -2
- package/dist/{index.d-DkWb7AYg.d.mts → index.d-CyV_khLK.d.mts} +1 -1
- package/dist/{index.d-CozwYURq.d.mts → index.d-D4ZIfXQd.d.mts} +1 -1
- package/dist/{index.d-BCl4h5vb.d.mts → index.d-D6rkgGxJ.d.mts} +4 -4
- package/dist/{index.d-CGbHzQH8.d.mts → index.d-DZSMSdyd.d.mts} +4 -4
- package/dist/index.d-Dah_fwpb.d.mts +14 -0
- package/dist/{index.d-BVDe1tFu.d.mts → index.d-DcpAaqwz.d.mts} +2 -2
- package/dist/{index.d-BvMhV1lw.d.mts → index.d-DiC1GzwU.d.mts} +2 -2
- package/dist/{index.d-DBNQTE-q.d.mts → index.d-DlOtVVNW.d.mts} +4 -4
- package/dist/{index.d-DD9vtQSr.d.mts → index.d-DnncVh_i.d.mts} +2 -2
- package/dist/{index.d-B6ea0pDX.d.mts → index.d-DvsJY4UE.d.mts} +1 -1
- package/dist/{index.d-D0ou41dA.d.mts → index.d-HwneV6CI.d.mts} +3 -3
- package/dist/{index.d-xT7aQSB2.d.mts → index.d-NMl8NDEt.d.mts} +2 -2
- package/dist/{index.d-C38NRU-q.d.mts → index.d-UA_EL6Jy.d.mts} +4 -4
- package/dist/{index.d-YNb6GO8o.d.mts → index.d-UIoZwyY2.d.mts} +4 -4
- package/dist/{index.d-qxp4tWxk.d.mts → index.d-YgLxf9uo.d.mts} +1 -1
- package/dist/{index.d-Dx6IWWI4.d.mts → index.d-dNN_tNZV.d.mts} +1 -1
- package/dist/{index.d-yppv-kCz.d.mts → index.d-dTdSE3Nv.d.mts} +2 -2
- package/dist/{index.d-B5ex0iL6.d.mts → index.d-tlklextY.d.mts} +4 -4
- package/dist/{index.d-Ch6ZYMn0.d.mts → index.d-uCMbfz5s.d.mts} +2 -2
- package/dist/index.d-uWaO2vv3.d.mts +14 -0
- package/dist/index.d.mts +44 -36
- package/dist/index.mjs +41 -33
- package/dist/{js-DxwOJyF7.mjs → js-BCS_sNBj.mjs} +4 -4
- package/dist/{ts-B0VNlOAi.mjs → js-BOcaVvtV.mjs} +5 -5
- package/dist/{js-CfKFwY21.mjs → js-CCL2XaV1.mjs} +1 -1
- package/dist/{js-t1rqZHU4.mjs → js-D-lPI2Zn.mjs} +3 -3
- package/dist/{js-nNB2l-OU.mjs → js-Dy54CkTs.mjs} +3 -3
- package/dist/{js-CqtsolD8.mjs → js-nPYw8nGm.mjs} +1 -1
- package/dist/ky/index.d.mts +7 -7
- package/dist/ky/index.mjs +7 -7
- package/dist/ky/js/config/index.d.mts +1 -1
- package/dist/ky/js/config/index.mjs +1 -1
- package/dist/ky/js/index.d.mts +3 -3
- package/dist/ky/js/index.mjs +3 -3
- package/dist/ky/js/parser/index.d.mts +1 -1
- package/dist/ky/js/parser/index.mjs +1 -1
- package/dist/ky/ts/config/index.d.mts +1 -1
- package/dist/ky/ts/config/index.mjs +1 -1
- package/dist/ky/ts/index.d.mts +3 -3
- package/dist/ky/ts/index.mjs +3 -3
- package/dist/ky/ts/parser/index.d.mts +1 -1
- package/dist/ky/ts/parser/index.mjs +1 -1
- package/dist/{ky-tkF4RP6y.mjs → ky-DOxzHjUb.mjs} +2 -2
- package/dist/ofetch/index.d.mts +7 -7
- package/dist/ofetch/index.mjs +7 -7
- package/dist/ofetch/js/config/index.d.mts +1 -1
- package/dist/ofetch/js/config/index.mjs +1 -1
- package/dist/ofetch/js/index.d.mts +3 -3
- package/dist/ofetch/js/index.mjs +3 -3
- package/dist/ofetch/js/parser/index.d.mts +1 -1
- package/dist/ofetch/js/parser/index.mjs +1 -1
- package/dist/ofetch/ts/config/index.d.mts +1 -1
- package/dist/ofetch/ts/config/index.mjs +1 -1
- package/dist/ofetch/ts/index.d.mts +3 -3
- package/dist/ofetch/ts/index.mjs +3 -3
- package/dist/ofetch/ts/parser/index.d.mts +1 -1
- package/dist/ofetch/ts/parser/index.mjs +1 -1
- package/dist/{ofetch-D17IUjVF.mjs → ofetch-C583BhsO.mjs} +2 -2
- package/dist/{parser-GwoAS3rw.mjs → parser-Bx_gOfLW.mjs} +1 -1
- package/dist/{parser-B-nJrHKw.mjs → parser-C2BjbPH8.mjs} +2 -2
- package/dist/{parser-CaRC8JQj.mjs → parser-CYgwRRB6.mjs} +2 -2
- package/dist/{parser-BkWqv1qf.mjs → parser-Cmtirdyk.mjs} +2 -2
- package/dist/{parser-8NB1Nfwt.mjs → parser-Cry70H8k.mjs} +1 -1
- package/dist/{parser-CSJYNO0a.mjs → parser-DWEwuz0M.mjs} +1 -1
- package/dist/{parser-aevzlGBk.mjs → parser-EdhJ3Qd1.mjs} +2 -2
- package/dist/parser-ILpmQxJS.mjs +62 -0
- package/dist/{parser-ZdK3ZwJM.mjs → parser-OMrPnoEH.mjs} +2 -2
- package/dist/parser-XfpBe6J7.mjs +63 -0
- package/dist/{parser-CAdkVm2b.mjs → parser-eI6eqR9i.mjs} +1 -1
- package/dist/{parser-BGXx6lbG.mjs → parser-gnwFYowJ.mjs} +2 -2
- package/dist/{ts-BLbY66M1.mjs → ts-C63VeyhJ.mjs} +3 -3
- package/dist/{ts-4mi0Q-kd.mjs → ts-DOrq_AoX.mjs} +1 -1
- package/dist/ts-D_YpWQhG.mjs +19 -0
- package/dist/ts-DcJ-UYUh.mjs +19 -0
- package/dist/{ts-BrqtDsf2.mjs → ts-nwWpi9VS.mjs} +4 -4
- package/dist/{ts-DjVYemin.mjs → ts-wjKQK01I.mjs} +1 -1
- package/dist/uni/index.d.mts +9 -0
- package/dist/uni/index.mjs +9 -0
- package/dist/uni/js/config/index.d.mts +3 -0
- package/dist/uni/js/config/index.mjs +3 -0
- package/dist/uni/js/index.d.mts +5 -0
- package/dist/uni/js/index.mjs +5 -0
- package/dist/uni/js/parser/index.d.mts +3 -0
- package/dist/uni/js/parser/index.mjs +3 -0
- package/dist/uni/ts/config/index.d.mts +3 -0
- package/dist/uni/ts/config/index.mjs +3 -0
- package/dist/uni/ts/index.d.mts +5 -0
- package/dist/uni/ts/index.mjs +5 -0
- package/dist/uni/ts/parser/index.d.mts +3 -0
- package/dist/uni/ts/parser/index.mjs +3 -0
- package/dist/uni-Cx6gyWLU.mjs +13 -0
- package/package.json +4 -4
- package/dist/index.d-DD5okdfE.d.mts +0 -12
- /package/dist/{index.d-B-u-rHVf.d.mts → index.d-BdvcH69c.d.mts} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,38 +1,45 @@
|
|
|
1
1
|
import "./config-CwmGeydd.mjs";
|
|
2
|
-
import "./parser-
|
|
3
|
-
import "./js-
|
|
2
|
+
import "./parser-Cry70H8k.mjs";
|
|
3
|
+
import "./js-CCL2XaV1.mjs";
|
|
4
4
|
import "./config-B89EoGE7.mjs";
|
|
5
|
-
import "./parser-
|
|
6
|
-
import "./ts-
|
|
7
|
-
import { axios_exports } from "./axios-
|
|
5
|
+
import "./parser-Bx_gOfLW.mjs";
|
|
6
|
+
import "./ts-DOrq_AoX.mjs";
|
|
7
|
+
import { axios_exports } from "./axios-BW0LI_Q5.mjs";
|
|
8
8
|
import "./config-BJZnXcL3.mjs";
|
|
9
|
-
import "./parser-
|
|
10
|
-
import "./js-
|
|
11
|
-
import "./config-
|
|
12
|
-
import "./parser-
|
|
13
|
-
import "./ts-
|
|
14
|
-
import { fetch_exports } from "./fetch-
|
|
15
|
-
import "./config-
|
|
16
|
-
import "./parser-
|
|
17
|
-
import "./js-
|
|
9
|
+
import "./parser-eI6eqR9i.mjs";
|
|
10
|
+
import "./js-nPYw8nGm.mjs";
|
|
11
|
+
import "./config-BHBub1xl.mjs";
|
|
12
|
+
import "./parser-EdhJ3Qd1.mjs";
|
|
13
|
+
import "./ts-C63VeyhJ.mjs";
|
|
14
|
+
import { fetch_exports } from "./fetch-DLL06Jn7.mjs";
|
|
15
|
+
import "./config-DgC2f2AO.mjs";
|
|
16
|
+
import "./parser-Cmtirdyk.mjs";
|
|
17
|
+
import "./js-D-lPI2Zn.mjs";
|
|
18
18
|
import "./config-aVU8JEKy.mjs";
|
|
19
|
-
import "./parser-
|
|
20
|
-
import "./ts-
|
|
21
|
-
import { got_exports } from "./got-
|
|
22
|
-
import "./config-
|
|
23
|
-
import "./parser-
|
|
24
|
-
import "./js-
|
|
25
|
-
import "./config-
|
|
26
|
-
import "./parser-
|
|
27
|
-
import "./ts-
|
|
28
|
-
import { ky_exports } from "./ky-
|
|
29
|
-
import "./config-
|
|
30
|
-
import "./parser-
|
|
31
|
-
import "./js-
|
|
32
|
-
import "./config-
|
|
33
|
-
import "./parser-
|
|
34
|
-
import "./ts-
|
|
35
|
-
import { ofetch_exports } from "./ofetch-
|
|
19
|
+
import "./parser-OMrPnoEH.mjs";
|
|
20
|
+
import "./ts-wjKQK01I.mjs";
|
|
21
|
+
import { got_exports } from "./got-Bk_ycTUL.mjs";
|
|
22
|
+
import "./config-D3PcAA6e.mjs";
|
|
23
|
+
import "./parser-DWEwuz0M.mjs";
|
|
24
|
+
import "./js-BOcaVvtV.mjs";
|
|
25
|
+
import "./config-B8vtDa36.mjs";
|
|
26
|
+
import "./parser-C2BjbPH8.mjs";
|
|
27
|
+
import "./ts-DcJ-UYUh.mjs";
|
|
28
|
+
import { ky_exports } from "./ky-DOxzHjUb.mjs";
|
|
29
|
+
import "./config-SP_VEcsX.mjs";
|
|
30
|
+
import "./parser-CYgwRRB6.mjs";
|
|
31
|
+
import "./js-Dy54CkTs.mjs";
|
|
32
|
+
import "./config-B16vmOTT.mjs";
|
|
33
|
+
import "./parser-gnwFYowJ.mjs";
|
|
34
|
+
import "./ts-D_YpWQhG.mjs";
|
|
35
|
+
import { ofetch_exports } from "./ofetch-C583BhsO.mjs";
|
|
36
|
+
import "./config-Cc3VHRal.mjs";
|
|
37
|
+
import "./parser-XfpBe6J7.mjs";
|
|
38
|
+
import "./js-BCS_sNBj.mjs";
|
|
39
|
+
import "./config-BhuG_ib-.mjs";
|
|
40
|
+
import "./parser-ILpmQxJS.mjs";
|
|
41
|
+
import "./ts-nwWpi9VS.mjs";
|
|
42
|
+
import { uni_exports } from "./uni-Cx6gyWLU.mjs";
|
|
36
43
|
|
|
37
44
|
//#region src/index.ts
|
|
38
45
|
var src_default = {
|
|
@@ -40,8 +47,9 @@ var src_default = {
|
|
|
40
47
|
fetch: fetch_exports,
|
|
41
48
|
got: got_exports,
|
|
42
49
|
ky: ky_exports,
|
|
43
|
-
ofetch: ofetch_exports
|
|
50
|
+
ofetch: ofetch_exports,
|
|
51
|
+
uni: uni_exports
|
|
44
52
|
};
|
|
45
53
|
|
|
46
54
|
//#endregion
|
|
47
|
-
export { axios_exports as axios, src_default as default, fetch_exports as fetch, got_exports as got, ky_exports as ky, ofetch_exports as ofetch };
|
|
55
|
+
export { axios_exports as axios, src_default as default, fetch_exports as fetch, got_exports as got, ky_exports as ky, ofetch_exports as ofetch, uni_exports as uni };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { config$8 as config } from "./config-
|
|
2
|
-
import { parser$8 as parser } from "./parser-
|
|
1
|
+
import { config$8 as config } from "./config-Cc3VHRal.mjs";
|
|
2
|
+
import { parser$8 as parser } from "./parser-XfpBe6J7.mjs";
|
|
3
3
|
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
4
|
|
|
5
|
-
//#region src/
|
|
5
|
+
//#region src/uni/js/index.ts
|
|
6
6
|
function openapiPipeline(userConfig) {
|
|
7
7
|
const process = pipeline((userConfig$1) => config(userConfig$1), (configRead) => original$1(configRead), (configRead) => parser(configRead), (configRead) => compiler$1(configRead), (configRead) => generate$1(configRead), (configRead) => dest$1(configRead));
|
|
8
8
|
return process(userConfig);
|
|
@@ -16,4 +16,4 @@ openapiPipeline.dest = dest$1;
|
|
|
16
16
|
var js_default = openapiPipeline;
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export { compiler$1 as compiler$8, dest$1 as dest$8, generate$1 as generate$8, js_default as js_default$
|
|
19
|
+
export { compiler$1 as compiler$8, dest$1 as dest$8, generate$1 as generate$8, js_default as js_default$5, original$1 as original$8 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { config$7 as config } from "./config-
|
|
2
|
-
import { parser$
|
|
1
|
+
import { config$7 as config } from "./config-D3PcAA6e.mjs";
|
|
2
|
+
import { parser$6 as parser } from "./parser-DWEwuz0M.mjs";
|
|
3
3
|
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
4
|
|
|
5
|
-
//#region src/
|
|
5
|
+
//#region src/ky/js/index.ts
|
|
6
6
|
function openapiPipeline(userConfig) {
|
|
7
7
|
const process = pipeline((userConfig$1) => config(userConfig$1), (configRead) => original$1(configRead), (configRead) => parser(configRead), (configRead) => compiler$1(configRead), (configRead) => generate$1(configRead), (configRead) => dest$1(configRead));
|
|
8
8
|
return process(userConfig);
|
|
@@ -13,7 +13,7 @@ openapiPipeline.parser = parser;
|
|
|
13
13
|
openapiPipeline.compiler = compiler$1;
|
|
14
14
|
openapiPipeline.generate = generate$1;
|
|
15
15
|
openapiPipeline.dest = dest$1;
|
|
16
|
-
var
|
|
16
|
+
var js_default = openapiPipeline;
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export { compiler$1 as compiler$7, dest$1 as dest$7, generate$1 as generate$7,
|
|
19
|
+
export { compiler$1 as compiler$7, dest$1 as dest$7, generate$1 as generate$7, js_default as js_default$4, original$1 as original$7 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { config } from "./config-CwmGeydd.mjs";
|
|
2
|
-
import { parser } from "./parser-
|
|
2
|
+
import { parser } from "./parser-Cry70H8k.mjs";
|
|
3
3
|
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
4
|
|
|
5
5
|
//#region src/axios/js/index.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { config$
|
|
2
|
-
import { parser$
|
|
1
|
+
import { config$4 as config } from "./config-DgC2f2AO.mjs";
|
|
2
|
+
import { parser$4 as parser } from "./parser-Cmtirdyk.mjs";
|
|
3
3
|
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
4
|
|
|
5
5
|
//#region src/got/js/index.ts
|
|
@@ -16,4 +16,4 @@ openapiPipeline.dest = dest$1;
|
|
|
16
16
|
var js_default = openapiPipeline;
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export { compiler$1 as compiler$
|
|
19
|
+
export { compiler$1 as compiler$4, dest$1 as dest$4, generate$1 as generate$4, js_default as js_default$2, original$1 as original$4 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { config$6 as config } from "./config-
|
|
2
|
-
import { parser$
|
|
1
|
+
import { config$6 as config } from "./config-SP_VEcsX.mjs";
|
|
2
|
+
import { parser$7 as parser } from "./parser-CYgwRRB6.mjs";
|
|
3
3
|
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
4
|
|
|
5
|
-
//#region src/
|
|
5
|
+
//#region src/ofetch/js/index.ts
|
|
6
6
|
function openapiPipeline(userConfig) {
|
|
7
7
|
const process = pipeline((userConfig$1) => config(userConfig$1), (configRead) => original$1(configRead), (configRead) => parser(configRead), (configRead) => compiler$1(configRead), (configRead) => generate$1(configRead), (configRead) => dest$1(configRead));
|
|
8
8
|
return process(userConfig);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { config$2 as config } from "./config-BJZnXcL3.mjs";
|
|
2
|
-
import { parser$2 as parser } from "./parser-
|
|
2
|
+
import { parser$2 as parser } from "./parser-eI6eqR9i.mjs";
|
|
3
3
|
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
4
|
|
|
5
5
|
//#region src/fetch/js/index.ts
|
package/dist/ky/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../index.d-
|
|
2
|
-
import "../index.d-
|
|
3
|
-
import { openapiPipeline$
|
|
4
|
-
import "../index.d-
|
|
5
|
-
import "../index.d-
|
|
6
|
-
import { openapiPipeline$
|
|
7
|
-
import "../index.d-
|
|
1
|
+
import "../index.d-NMl8NDEt.mjs";
|
|
2
|
+
import "../index.d-C21FenrV.mjs";
|
|
3
|
+
import { openapiPipeline$6 as openapiPipeline } from "../index.d-tlklextY.mjs";
|
|
4
|
+
import "../index.d-uCMbfz5s.mjs";
|
|
5
|
+
import "../index.d-BdvcH69c.mjs";
|
|
6
|
+
import { openapiPipeline$8 as openapiPipeline$1 } from "../index.d-BD5sl7Ep.mjs";
|
|
7
|
+
import "../index.d-B4ICHGvq.mjs";
|
|
8
8
|
|
|
9
9
|
export { openapiPipeline as js, openapiPipeline$1 as ts };
|
package/dist/ky/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import "../parser-
|
|
3
|
-
import { js_default$
|
|
4
|
-
import "../config-
|
|
5
|
-
import "../parser-
|
|
6
|
-
import { ts_default$
|
|
7
|
-
import "../ky-
|
|
1
|
+
import "../config-D3PcAA6e.mjs";
|
|
2
|
+
import "../parser-DWEwuz0M.mjs";
|
|
3
|
+
import { js_default$4 as js_default } from "../js-BOcaVvtV.mjs";
|
|
4
|
+
import "../config-B8vtDa36.mjs";
|
|
5
|
+
import "../parser-C2BjbPH8.mjs";
|
|
6
|
+
import { ts_default$5 as ts_default } from "../ts-DcJ-UYUh.mjs";
|
|
7
|
+
import "../ky-DOxzHjUb.mjs";
|
|
8
8
|
|
|
9
9
|
export { js_default as js, ts_default as ts };
|
package/dist/ky/js/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parser$
|
|
2
|
-
import { config$
|
|
3
|
-
import { compiler$
|
|
1
|
+
import { parser$19 as parser } from "../../index.d-NMl8NDEt.mjs";
|
|
2
|
+
import { config$19 as config } from "../../index.d-C21FenrV.mjs";
|
|
3
|
+
import { compiler$18 as compiler, dest$18 as dest, generate$18 as generate, openapiPipeline$6 as openapiPipeline, original$18 as original } from "../../index.d-tlklextY.mjs";
|
|
4
4
|
|
|
5
5
|
export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
|
package/dist/ky/js/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { config$
|
|
2
|
-
import { parser$6 as parser } from "../../parser-
|
|
3
|
-
import { compiler$
|
|
1
|
+
import { config$7 as config } from "../../config-D3PcAA6e.mjs";
|
|
2
|
+
import { parser$6 as parser } from "../../parser-DWEwuz0M.mjs";
|
|
3
|
+
import { compiler$7 as compiler, dest$7 as dest, generate$7 as generate, js_default$4 as js_default, original$7 as original } from "../../js-BOcaVvtV.mjs";
|
|
4
4
|
|
|
5
5
|
export { compiler, config, js_default as default, dest, generate, original, parser };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PathsTransformOptions$
|
|
1
|
+
import { PathsTransformOptions$7 as PathsTransformOptions, parser$19 as parser, transformPaths$19 as transformPaths } from "../../../index.d-NMl8NDEt.mjs";
|
|
2
2
|
|
|
3
3
|
export { PathsTransformOptions, parser, transformPaths };
|
package/dist/ky/ts/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parser$
|
|
2
|
-
import { config$12 as config } from "../../index.d-
|
|
3
|
-
import { compiler$
|
|
1
|
+
import { parser$17 as parser } from "../../index.d-uCMbfz5s.mjs";
|
|
2
|
+
import { config$12 as config } from "../../index.d-BdvcH69c.mjs";
|
|
3
|
+
import { compiler$20 as compiler, dest$20 as dest, generate$20 as generate, openapiPipeline$8 as openapiPipeline, original$20 as original } from "../../index.d-BD5sl7Ep.mjs";
|
|
4
4
|
|
|
5
5
|
export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
|
package/dist/ky/ts/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { config$
|
|
2
|
-
import { parser$
|
|
3
|
-
import { compiler$
|
|
1
|
+
import { config$11 as config } from "../../config-B8vtDa36.mjs";
|
|
2
|
+
import { parser$11 as parser } from "../../parser-C2BjbPH8.mjs";
|
|
3
|
+
import { compiler$11 as compiler, dest$11 as dest, generate$11 as generate, original$11 as original, ts_default$5 as ts_default } from "../../ts-DcJ-UYUh.mjs";
|
|
4
4
|
|
|
5
5
|
export { compiler, config, ts_default as default, dest, generate, original, parser };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PathsTransformOptions, parser$
|
|
1
|
+
import { PathsTransformOptions$5 as PathsTransformOptions, parser$17 as parser, transformPaths$17 as transformPaths } from "../../../index.d-uCMbfz5s.mjs";
|
|
2
2
|
|
|
3
3
|
export { PathsTransformOptions, parser, transformPaths };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __export } from "./chunk-BL35Yyzp.mjs";
|
|
2
|
-
import { js_default$
|
|
3
|
-
import { ts_default$
|
|
2
|
+
import { js_default$4 as js_default } from "./js-BOcaVvtV.mjs";
|
|
3
|
+
import { ts_default$5 as ts_default } from "./ts-DcJ-UYUh.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/ky/index.ts
|
|
6
6
|
var ky_exports = {};
|
package/dist/ofetch/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../index.d-
|
|
2
|
-
import "../index.d-
|
|
3
|
-
import { openapiPipeline$
|
|
4
|
-
import "../index.d-
|
|
5
|
-
import "../index.d-
|
|
6
|
-
import { openapiPipeline$
|
|
7
|
-
import "../index.d-
|
|
1
|
+
import "../index.d-uWaO2vv3.mjs";
|
|
2
|
+
import "../index.d-DvsJY4UE.mjs";
|
|
3
|
+
import { openapiPipeline$4 as openapiPipeline } from "../index.d-BId_SGCG.mjs";
|
|
4
|
+
import "../index.d-D4ZIfXQd.mjs";
|
|
5
|
+
import "../index.d-CT88RB6L.mjs";
|
|
6
|
+
import { openapiPipeline$9 as openapiPipeline$1 } from "../index.d-1yIjHRcL.mjs";
|
|
7
|
+
import "../index.d-BHnYB8-L.mjs";
|
|
8
8
|
|
|
9
9
|
export { openapiPipeline as js, openapiPipeline$1 as ts };
|
package/dist/ofetch/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import "../parser-
|
|
3
|
-
import { js_default$
|
|
4
|
-
import "../config-
|
|
5
|
-
import "../parser-
|
|
6
|
-
import { ts_default$
|
|
7
|
-
import "../ofetch-
|
|
1
|
+
import "../config-SP_VEcsX.mjs";
|
|
2
|
+
import "../parser-CYgwRRB6.mjs";
|
|
3
|
+
import { js_default$3 as js_default } from "../js-Dy54CkTs.mjs";
|
|
4
|
+
import "../config-B16vmOTT.mjs";
|
|
5
|
+
import "../parser-gnwFYowJ.mjs";
|
|
6
|
+
import { ts_default$4 as ts_default } from "../ts-D_YpWQhG.mjs";
|
|
7
|
+
import "../ofetch-C583BhsO.mjs";
|
|
8
8
|
|
|
9
9
|
export { js_default as js, ts_default as ts };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parser$
|
|
2
|
-
import { config$
|
|
3
|
-
import { compiler$
|
|
1
|
+
import { parser$22 as parser } from "../../index.d-uWaO2vv3.mjs";
|
|
2
|
+
import { config$13 as config } from "../../index.d-DvsJY4UE.mjs";
|
|
3
|
+
import { compiler$16 as compiler, dest$16 as dest, generate$16 as generate, openapiPipeline$4 as openapiPipeline, original$16 as original } from "../../index.d-BId_SGCG.mjs";
|
|
4
4
|
|
|
5
5
|
export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
|
package/dist/ofetch/js/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { config$
|
|
2
|
-
import { parser$
|
|
3
|
-
import { compiler$
|
|
1
|
+
import { config$6 as config } from "../../config-SP_VEcsX.mjs";
|
|
2
|
+
import { parser$7 as parser } from "../../parser-CYgwRRB6.mjs";
|
|
3
|
+
import { compiler$6 as compiler, dest$6 as dest, generate$6 as generate, js_default$3 as js_default, original$6 as original } from "../../js-Dy54CkTs.mjs";
|
|
4
4
|
|
|
5
5
|
export { compiler, config, js_default as default, dest, generate, original, parser };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PathsTransformOptions$
|
|
1
|
+
import { PathsTransformOptions$10 as PathsTransformOptions, parser$22 as parser, transformPaths$22 as transformPaths } from "../../../index.d-uWaO2vv3.mjs";
|
|
2
2
|
|
|
3
3
|
export { PathsTransformOptions, parser, transformPaths };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parser$
|
|
2
|
-
import { config$
|
|
3
|
-
import { compiler$
|
|
1
|
+
import { parser$15 as parser } from "../../index.d-D4ZIfXQd.mjs";
|
|
2
|
+
import { config$17 as config } from "../../index.d-CT88RB6L.mjs";
|
|
3
|
+
import { compiler$21 as compiler, dest$21 as dest, generate$21 as generate, openapiPipeline$9 as openapiPipeline, original$21 as original } from "../../index.d-1yIjHRcL.mjs";
|
|
4
4
|
|
|
5
5
|
export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
|
package/dist/ofetch/ts/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { config$
|
|
2
|
-
import { parser$
|
|
3
|
-
import { compiler$
|
|
1
|
+
import { config$10 as config } from "../../config-B16vmOTT.mjs";
|
|
2
|
+
import { parser$10 as parser } from "../../parser-gnwFYowJ.mjs";
|
|
3
|
+
import { compiler$10 as compiler, dest$10 as dest, generate$10 as generate, original$10 as original, ts_default$4 as ts_default } from "../../ts-D_YpWQhG.mjs";
|
|
4
4
|
|
|
5
5
|
export { compiler, config, ts_default as default, dest, generate, original, parser };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PathsTransformOptions$3 as PathsTransformOptions, parser$
|
|
1
|
+
import { PathsTransformOptions$3 as PathsTransformOptions, parser$15 as parser, transformPaths$15 as transformPaths } from "../../../index.d-D4ZIfXQd.mjs";
|
|
2
2
|
|
|
3
3
|
export { PathsTransformOptions, parser, transformPaths };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __export } from "./chunk-BL35Yyzp.mjs";
|
|
2
|
-
import { js_default$
|
|
3
|
-
import { ts_default$
|
|
2
|
+
import { js_default$3 as js_default } from "./js-Dy54CkTs.mjs";
|
|
3
|
+
import { ts_default$4 as ts_default } from "./ts-D_YpWQhG.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/ofetch/index.ts
|
|
6
6
|
var ofetch_exports = {};
|
|
@@ -29,7 +29,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
29
29
|
body: "data",
|
|
30
30
|
query: "params"
|
|
31
31
|
});
|
|
32
|
-
let { name, description, url, responseType } = parseMethodMetadata(config);
|
|
32
|
+
let { name, description, url, responseType } = parseMethodMetadata(config, interfaces);
|
|
33
33
|
options.push(["...", "config"]);
|
|
34
34
|
interfaces.push(...attachInters);
|
|
35
35
|
parameters.push({
|
|
@@ -26,7 +26,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
26
26
|
|
|
27
27
|
*/
|
|
28
28
|
const { parameters, interfaces: attachInters, options } = parseMethodParameters(config);
|
|
29
|
-
let { name, description, url, responseType } = parseMethodMetadata(config);
|
|
29
|
+
let { name, description, url, responseType } = parseMethodMetadata(config, interfaces);
|
|
30
30
|
interfaces.push(...attachInters);
|
|
31
31
|
parameters.push({
|
|
32
32
|
name: "config",
|
|
@@ -65,4 +65,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
//#endregion
|
|
68
|
-
export { parser as parser$
|
|
68
|
+
export { parser as parser$11, transformPaths as transformPaths$11 };
|
|
@@ -29,7 +29,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
29
29
|
formData: "body",
|
|
30
30
|
query: "params"
|
|
31
31
|
});
|
|
32
|
-
let { name, description, url, responseType, body } = parseMethodMetadata(config);
|
|
32
|
+
let { name, description, url, responseType, body } = parseMethodMetadata(config, interfaces);
|
|
33
33
|
interfaces.push(...attachInters);
|
|
34
34
|
parameters.push({
|
|
35
35
|
name: "options",
|
|
@@ -64,4 +64,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
//#endregion
|
|
67
|
-
export { parser as parser$
|
|
67
|
+
export { parser as parser$7, transformPaths as transformPaths$7 };
|
|
@@ -26,7 +26,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
26
26
|
|
|
27
27
|
*/
|
|
28
28
|
const { parameters, interfaces: attachInters, options } = parseMethodParameters(config);
|
|
29
|
-
let { name, description, url, responseType } = parseMethodMetadata(config);
|
|
29
|
+
let { name, description, url, responseType } = parseMethodMetadata(config, interfaces);
|
|
30
30
|
interfaces.push(...attachInters);
|
|
31
31
|
parameters.push({
|
|
32
32
|
name: "config",
|
|
@@ -66,4 +66,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
//#endregion
|
|
69
|
-
export { parser as parser$
|
|
69
|
+
export { parser as parser$4, transformPaths as transformPaths$4 };
|
|
@@ -29,7 +29,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
29
29
|
body: "data",
|
|
30
30
|
query: "params"
|
|
31
31
|
});
|
|
32
|
-
let { name, description, url, responseType } = parseMethodMetadata(config);
|
|
32
|
+
let { name, description, url, responseType } = parseMethodMetadata(config, interfaces);
|
|
33
33
|
options.push(["...", "config"]);
|
|
34
34
|
interfaces.push(...attachInters);
|
|
35
35
|
parameters.push({
|
|
@@ -26,7 +26,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
26
26
|
|
|
27
27
|
*/
|
|
28
28
|
const { parameters, interfaces: attachInters, options } = parseMethodParameters(config);
|
|
29
|
-
let { name, description, url, responseType } = parseMethodMetadata(config);
|
|
29
|
+
let { name, description, url, responseType } = parseMethodMetadata(config, interfaces);
|
|
30
30
|
interfaces.push(...attachInters);
|
|
31
31
|
parameters.push({
|
|
32
32
|
name: "config",
|
|
@@ -26,7 +26,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
26
26
|
|
|
27
27
|
*/
|
|
28
28
|
const { parameters, interfaces: attachInters, options } = parseMethodParameters(config);
|
|
29
|
-
let { name, description, url, responseType, body } = parseMethodMetadata(config);
|
|
29
|
+
let { name, description, url, responseType, body } = parseMethodMetadata(config, interfaces);
|
|
30
30
|
interfaces.push(...attachInters);
|
|
31
31
|
parameters.push({
|
|
32
32
|
name: "config",
|
|
@@ -69,4 +69,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
//#endregion
|
|
72
|
-
export { parser as parser$
|
|
72
|
+
export { parser as parser$3, transformPaths as transformPaths$3 };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { literalFieldsToString, parseHeaderCommits, parseMethodMetadata, parseMethodParameters, parseOpenapiSpecification, transformBaseURL, transformDefinitions, transformParameters, transformUrlSyntax, traversePaths } from "@genapi/parser";
|
|
2
|
+
|
|
3
|
+
//#region src/uni/ts/parser/index.ts
|
|
4
|
+
function parser(configRead) {
|
|
5
|
+
const source = parseOpenapiSpecification(configRead.source);
|
|
6
|
+
const comments = parseHeaderCommits(source);
|
|
7
|
+
const interfaces = [];
|
|
8
|
+
const functions = [];
|
|
9
|
+
transformBaseURL(source, { configRead });
|
|
10
|
+
transformDefinitions(source.definitions, { interfaces });
|
|
11
|
+
transformPaths(source.paths, {
|
|
12
|
+
configRead,
|
|
13
|
+
functions,
|
|
14
|
+
interfaces
|
|
15
|
+
});
|
|
16
|
+
configRead.graphs.comments = comments;
|
|
17
|
+
configRead.graphs.functions = functions;
|
|
18
|
+
configRead.graphs.interfaces = interfaces;
|
|
19
|
+
return configRead;
|
|
20
|
+
}
|
|
21
|
+
function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
22
|
+
traversePaths(paths, (config) => {
|
|
23
|
+
/**
|
|
24
|
+
|
|
25
|
+
* function params/function options/function use interfaces
|
|
26
|
+
|
|
27
|
+
*/
|
|
28
|
+
const { parameters, interfaces: attachInters, options } = parseMethodParameters(config, {
|
|
29
|
+
body: "data",
|
|
30
|
+
query: "params"
|
|
31
|
+
});
|
|
32
|
+
let { name, description, url, responseType } = parseMethodMetadata(config, interfaces);
|
|
33
|
+
options.push(["...", "config"]);
|
|
34
|
+
interfaces.push(...attachInters);
|
|
35
|
+
parameters.push({
|
|
36
|
+
name: "config",
|
|
37
|
+
type: "UnConfig<never>",
|
|
38
|
+
required: false
|
|
39
|
+
});
|
|
40
|
+
options.unshift("url");
|
|
41
|
+
options.unshift(["method", `"${config.method}"`]);
|
|
42
|
+
if (configRead.config.baseURL) options.unshift("baseURL");
|
|
43
|
+
const { spaceResponseType } = transformParameters(parameters, {
|
|
44
|
+
syntax: "typescript",
|
|
45
|
+
configRead,
|
|
46
|
+
description,
|
|
47
|
+
interfaces,
|
|
48
|
+
responseType
|
|
49
|
+
});
|
|
50
|
+
url = transformUrlSyntax(url);
|
|
51
|
+
functions.push({
|
|
52
|
+
export: true,
|
|
53
|
+
name,
|
|
54
|
+
description,
|
|
55
|
+
parameters,
|
|
56
|
+
body: [`const url = ${url}`, `return http.request<${spaceResponseType}>({ ${literalFieldsToString(options)} })`]
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { parser as parser$9, transformPaths as transformPaths$9 };
|