@genapi/presets 3.4.0 → 3.6.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/axios/index.d.mts +9 -0
- package/dist/axios/index.mjs +9 -7
- package/dist/axios/js/config/index.d.mts +3 -0
- package/dist/axios/js/config/index.mjs +3 -18
- package/dist/axios/js/index.d.mts +5 -0
- package/dist/axios/js/index.mjs +5 -31
- package/dist/axios/js/parser/index.d.mts +3 -0
- package/dist/axios/js/parser/index.mjs +3 -77
- package/dist/axios/ts/config/index.d.mts +3 -0
- package/dist/axios/ts/config/index.mjs +3 -22
- package/dist/axios/ts/index.d.mts +5 -0
- package/dist/axios/ts/index.mjs +5 -31
- package/dist/axios/ts/parser/index.d.mts +3 -0
- package/dist/axios/ts/parser/index.mjs +3 -76
- package/dist/axios-CG6HLmR9.mjs +13 -0
- package/dist/chunk-BL35Yyzp.mjs +12 -0
- package/dist/config-B6UDPRkS.mjs +12 -0
- package/dist/config-B89EoGE7.mjs +21 -0
- package/dist/config-BGwXcXx1.mjs +21 -0
- package/dist/config-C94x0Nge.mjs +21 -0
- package/dist/config-CEngTpXa.mjs +21 -0
- package/dist/config-CwmGeydd.mjs +19 -0
- package/dist/config-DAHoeaDU.mjs +19 -0
- package/dist/config-DdUVYIe0.mjs +19 -0
- package/dist/config-Dm0OCPw8.mjs +19 -0
- package/dist/config-Dn-mxTew.mjs +19 -0
- package/dist/config-DuQgIn7U.mjs +14 -0
- package/dist/config-aVU8JEKy.mjs +21 -0
- package/dist/fetch/index.d.mts +9 -0
- package/dist/fetch/index.mjs +9 -7
- package/dist/fetch/js/config/index.d.mts +3 -0
- package/dist/fetch/js/config/index.mjs +3 -13
- package/dist/fetch/js/index.d.mts +5 -0
- package/dist/fetch/js/index.mjs +5 -31
- package/dist/fetch/js/parser/index.d.mts +3 -0
- package/dist/fetch/js/parser/index.mjs +3 -83
- package/dist/fetch/ts/config/index.d.mts +3 -0
- package/dist/fetch/ts/config/index.mjs +3 -11
- package/dist/fetch/ts/index.d.mts +5 -0
- package/dist/fetch/ts/index.mjs +5 -31
- package/dist/fetch/ts/parser/index.d.mts +3 -0
- package/dist/fetch/ts/parser/index.mjs +3 -79
- package/dist/fetch-BtwC6Lll.mjs +13 -0
- package/dist/got/index.d.mts +9 -0
- package/dist/got/index.mjs +9 -7
- package/dist/got/js/config/index.d.mts +3 -0
- package/dist/got/js/config/index.mjs +3 -18
- package/dist/got/js/index.d.mts +5 -0
- package/dist/got/js/index.mjs +5 -31
- package/dist/got/js/parser/index.d.mts +3 -0
- package/dist/got/js/parser/index.mjs +3 -82
- package/dist/got/ts/config/index.d.mts +3 -0
- package/dist/got/ts/config/index.mjs +3 -22
- package/dist/got/ts/index.d.mts +5 -0
- package/dist/got/ts/index.mjs +5 -31
- package/dist/got/ts/parser/index.d.mts +3 -0
- package/dist/got/ts/parser/index.mjs +3 -82
- package/dist/got-xeCavgZc.mjs +13 -0
- package/dist/{axios/js/parser/index.d.ts → index.d-4OvQY24D.d.mts} +5 -3
- package/dist/index.d-B0n5Pe6-.d.mts +12 -0
- package/dist/index.d-B1KgwGJV.d.mts +14 -0
- package/dist/index.d-B9C3SJsw.d.mts +7 -0
- package/dist/index.d-BB-bpoWw.d.mts +14 -0
- package/dist/index.d-BDMFuIpi.d.mts +12 -0
- package/dist/index.d-BDy4V2O7.d.mts +18 -0
- package/dist/index.d-BFJinzUY.d.mts +12 -0
- package/dist/index.d-BS6Sm47l.d.mts +18 -0
- package/dist/index.d-BSQRPGuK.d.mts +18 -0
- package/dist/index.d-BXgDnKDv.d.mts +7 -0
- package/dist/{axios/ts/parser/index.d.ts → index.d-BYOoHBar.d.mts} +5 -3
- package/dist/index.d-BahMmqz0.d.mts +18 -0
- package/dist/index.d-BbxRLLMX.d.mts +12 -0
- package/dist/index.d-BguloXfs.d.mts +7 -0
- package/dist/index.d-BgvbkDJL.d.mts +18 -0
- package/dist/index.d-Bknp-d4G.d.mts +14 -0
- package/dist/index.d-BulZ76hJ.d.mts +18 -0
- package/dist/index.d-BupSEh4R.d.mts +18 -0
- package/dist/index.d-CAirdOCT.d.mts +14 -0
- package/dist/index.d-CDf5ausb.d.mts +12 -0
- package/dist/index.d-CN37Zl7u.d.mts +14 -0
- package/dist/index.d-CVL676ax.d.mts +18 -0
- package/dist/index.d-Cb9k2mo6.d.mts +7 -0
- package/dist/index.d-CdRfZiCo.d.mts +18 -0
- package/dist/index.d-CfS61_iH.d.mts +7 -0
- package/dist/index.d-Ckbfjm0G.d.mts +7 -0
- package/dist/index.d-CljgOS4p.d.mts +18 -0
- package/dist/{fetch/js/parser/index.d.ts → index.d-D1pp_HCy.d.mts} +5 -3
- package/dist/index.d-D33XWXy5.d.mts +14 -0
- package/dist/index.d-D6gcSlpm.d.mts +14 -0
- package/dist/index.d-DCtFuYUN.d.mts +18 -0
- package/dist/index.d-DQZa03Va.d.mts +7 -0
- package/dist/index.d-DW8ts-IU.d.mts +14 -0
- package/dist/index.d-D_aZcN-0.d.mts +7 -0
- package/dist/index.d-DgggRtXp.d.mts +7 -0
- package/dist/index.d-DpLq-R_p.d.mts +12 -0
- package/dist/index.d-DrCRTA_-.d.mts +7 -0
- package/dist/index.d-DuVpMG8_.d.mts +18 -0
- package/dist/{fetch/ts/parser/index.d.ts → index.d-KQGa1SFg.d.mts} +5 -3
- package/dist/index.d-O3Nkol5h.d.mts +7 -0
- package/dist/index.d-lzQFIw8d.d.mts +7 -0
- package/dist/index.d.mts +55 -0
- package/dist/index.mjs +54 -20
- package/dist/js-CfKFwY21.mjs +19 -0
- package/dist/js-DGjfw_hH.mjs +19 -0
- package/dist/js-DwgoBEjQ.mjs +19 -0
- package/dist/js-DxwOJyF7.mjs +19 -0
- package/dist/js-nNB2l-OU.mjs +19 -0
- package/dist/js-uo8fh9bT.mjs +19 -0
- package/dist/ky/index.d.mts +9 -0
- package/dist/ky/index.mjs +9 -7
- package/dist/ky/js/config/index.d.mts +3 -0
- package/dist/ky/js/config/index.mjs +3 -18
- package/dist/ky/js/index.d.mts +5 -0
- package/dist/ky/js/index.mjs +5 -31
- package/dist/ky/js/parser/index.d.mts +3 -0
- package/dist/ky/js/parser/index.mjs +3 -79
- package/dist/ky/ts/config/index.d.mts +3 -0
- package/dist/ky/ts/config/index.mjs +3 -22
- package/dist/ky/ts/index.d.mts +5 -0
- package/dist/ky/ts/index.mjs +5 -31
- package/dist/ky/ts/parser/index.d.mts +3 -0
- package/dist/ky/ts/parser/index.mjs +3 -78
- package/dist/ky-B7lRjugo.mjs +13 -0
- package/dist/ofetch/index.d.mts +9 -0
- package/dist/ofetch/index.mjs +9 -7
- package/dist/ofetch/js/config/index.d.mts +3 -0
- package/dist/ofetch/js/config/index.mjs +3 -18
- package/dist/ofetch/js/index.d.mts +5 -0
- package/dist/ofetch/js/index.mjs +5 -31
- package/dist/ofetch/js/parser/index.d.mts +3 -0
- package/dist/ofetch/js/parser/index.mjs +3 -78
- package/dist/ofetch/ts/config/index.d.mts +3 -0
- package/dist/ofetch/ts/config/index.mjs +3 -22
- package/dist/ofetch/ts/index.d.mts +5 -0
- package/dist/ofetch/ts/index.mjs +5 -31
- package/dist/ofetch/ts/parser/index.d.mts +3 -0
- package/dist/ofetch/ts/parser/index.mjs +3 -76
- package/dist/ofetch-2rci5G0X.mjs +13 -0
- package/dist/parser-8NB1Nfwt.mjs +63 -0
- package/dist/parser-BJWwcP0S.mjs +69 -0
- package/dist/parser-CCXpH6OE.mjs +63 -0
- package/dist/parser-CE48730h.mjs +69 -0
- package/dist/parser-CFOZ5-GF.mjs +62 -0
- package/dist/parser-CSJYNO0a.mjs +69 -0
- package/dist/parser-C_kpdHgT.mjs +68 -0
- package/dist/parser-CaRC8JQj.mjs +67 -0
- package/dist/parser-DCA-N9mk.mjs +77 -0
- package/dist/parser-DY9NSCKJ.mjs +72 -0
- package/dist/parser-Dnqps2TD.mjs +66 -0
- package/dist/parser-GwoAS3rw.mjs +62 -0
- package/dist/ts-4mi0Q-kd.mjs +19 -0
- package/dist/ts-BaRFvnl0.mjs +19 -0
- package/dist/ts-BwAPOUdE.mjs +19 -0
- package/dist/ts-C9t_rVQx.mjs +19 -0
- package/dist/ts-CMn2aSnV.mjs +19 -0
- package/dist/ts-D-cZHoFQ.mjs +19 -0
- 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-DZmF7VCX.mjs +13 -0
- package/package.json +15 -15
- package/dist/axios/index.d.ts +0 -9
- package/dist/axios/js/config/index.d.ts +0 -5
- package/dist/axios/js/index.d.ts +0 -18
- package/dist/axios/ts/config/index.d.ts +0 -5
- package/dist/axios/ts/index.d.ts +0 -18
- package/dist/fetch/index.d.ts +0 -9
- package/dist/fetch/js/config/index.d.ts +0 -5
- package/dist/fetch/js/index.d.ts +0 -18
- package/dist/fetch/ts/config/index.d.ts +0 -5
- package/dist/fetch/ts/index.d.ts +0 -18
- package/dist/got/index.d.ts +0 -9
- package/dist/got/js/config/index.d.ts +0 -5
- package/dist/got/js/index.d.ts +0 -18
- package/dist/got/js/parser/index.d.ts +0 -12
- package/dist/got/ts/config/index.d.ts +0 -5
- package/dist/got/ts/index.d.ts +0 -18
- package/dist/got/ts/parser/index.d.ts +0 -12
- package/dist/index-BoRNV5uE.d.ts +0 -8
- package/dist/index-C-Of8dmT.d.ts +0 -8
- package/dist/index-DUlkpebX.d.ts +0 -8
- package/dist/index-doIz4HN1.d.ts +0 -8
- package/dist/index-ln0OpJQY.d.ts +0 -8
- package/dist/index.d.ts +0 -48
- package/dist/ky/index.d.ts +0 -9
- package/dist/ky/js/config/index.d.ts +0 -5
- package/dist/ky/js/index.d.ts +0 -18
- package/dist/ky/js/parser/index.d.ts +0 -12
- package/dist/ky/ts/config/index.d.ts +0 -5
- package/dist/ky/ts/index.d.ts +0 -18
- package/dist/ky/ts/parser/index.d.ts +0 -12
- package/dist/ofetch/index.d.ts +0 -9
- package/dist/ofetch/js/config/index.d.ts +0 -5
- package/dist/ofetch/js/index.d.ts +0 -18
- package/dist/ofetch/js/parser/index.d.ts +0 -12
- package/dist/ofetch/ts/config/index.d.ts +0 -5
- package/dist/ofetch/ts/index.d.ts +0 -18
- package/dist/ofetch/ts/parser/index.d.ts +0 -12
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __export } from "./chunk-BL35Yyzp.mjs";
|
|
2
|
+
import { openapiPipeline$3 as openapiPipeline } from "./index.d-BSQRPGuK.mjs";
|
|
3
|
+
import { openapiPipeline$6 as openapiPipeline$1 } from "./index.d-DCtFuYUN.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/ofetch/index.d.ts
|
|
6
|
+
|
|
7
|
+
declare namespace index_d_exports {
|
|
8
|
+
export { openapiPipeline as js, openapiPipeline$1 as ts, }
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { index_d_exports as index_d_exports$4 };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { parser$20 as parser } from "./index.d-BYOoHBar.mjs";
|
|
2
|
+
import { config$17 as config } from "./index.d-D_aZcN-0.mjs";
|
|
3
|
+
import { compiler, compiler as compiler$1, dest, dest as dest$1, generate, generate as generate$1, original, original as original$1 } from "@genapi/pipeline";
|
|
4
|
+
import { ApiPipeline } from "@genapi/shared";
|
|
5
|
+
|
|
6
|
+
//#region src/ky/ts/index.d.ts
|
|
7
|
+
declare function openapiPipeline(userConfig: ApiPipeline.Config): Promise<void>;
|
|
8
|
+
declare namespace openapiPipeline {
|
|
9
|
+
var config: typeof config;
|
|
10
|
+
var original: typeof original;
|
|
11
|
+
var parser: typeof parser;
|
|
12
|
+
var compiler: typeof compiler;
|
|
13
|
+
var generate: typeof generate;
|
|
14
|
+
var dest: typeof dest;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { compiler$1 as compiler$13, dest$1 as dest$13, generate$1 as generate$13, openapiPipeline as openapiPipeline$1, original$1 as original$13 };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ApiPipeline,
|
|
2
|
-
import { Paths } from
|
|
1
|
+
import { ApiPipeline, StatementFunction, StatementInterface } from "@genapi/shared";
|
|
2
|
+
import { Paths } from "openapi-specification-types";
|
|
3
3
|
|
|
4
|
+
//#region src/ky/js/parser/index.d.ts
|
|
4
5
|
interface PathsTransformOptions {
|
|
5
6
|
configRead: ApiPipeline.ConfigRead;
|
|
6
7
|
interfaces: StatementInterface[];
|
|
@@ -9,4 +10,5 @@ interface PathsTransformOptions {
|
|
|
9
10
|
declare function parser(configRead: ApiPipeline.ConfigRead): ApiPipeline.ConfigRead<ApiPipeline.Config>;
|
|
10
11
|
declare function transformPaths(paths: Paths, { configRead, functions, interfaces }: PathsTransformOptions): void;
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
//#endregion
|
|
14
|
+
export { PathsTransformOptions as PathsTransformOptions$1, parser as parser$13, transformPaths as transformPaths$13 };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import "./index.d-DW8ts-IU.mjs";
|
|
2
|
+
import "./index.d-BXgDnKDv.mjs";
|
|
3
|
+
import "./index.d-BS6Sm47l.mjs";
|
|
4
|
+
import "./index.d-Bknp-d4G.mjs";
|
|
5
|
+
import "./index.d-DgggRtXp.mjs";
|
|
6
|
+
import "./index.d-CVL676ax.mjs";
|
|
7
|
+
import { index_d_exports$1 as index_d_exports } from "./index.d-B0n5Pe6-.mjs";
|
|
8
|
+
import "./index.d-D1pp_HCy.mjs";
|
|
9
|
+
import "./index.d-BguloXfs.mjs";
|
|
10
|
+
import "./index.d-BgvbkDJL.mjs";
|
|
11
|
+
import "./index.d-BB-bpoWw.mjs";
|
|
12
|
+
import "./index.d-O3Nkol5h.mjs";
|
|
13
|
+
import "./index.d-BupSEh4R.mjs";
|
|
14
|
+
import { index_d_exports$2 as index_d_exports$1 } from "./index.d-BDMFuIpi.mjs";
|
|
15
|
+
import "./index.d-D6gcSlpm.mjs";
|
|
16
|
+
import "./index.d-DrCRTA_-.mjs";
|
|
17
|
+
import "./index.d-CljgOS4p.mjs";
|
|
18
|
+
import "./index.d-CAirdOCT.mjs";
|
|
19
|
+
import "./index.d-Cb9k2mo6.mjs";
|
|
20
|
+
import "./index.d-BulZ76hJ.mjs";
|
|
21
|
+
import { index_d_exports as index_d_exports$2 } from "./index.d-BbxRLLMX.mjs";
|
|
22
|
+
import "./index.d-KQGa1SFg.mjs";
|
|
23
|
+
import "./index.d-CfS61_iH.mjs";
|
|
24
|
+
import "./index.d-BahMmqz0.mjs";
|
|
25
|
+
import "./index.d-BYOoHBar.mjs";
|
|
26
|
+
import "./index.d-D_aZcN-0.mjs";
|
|
27
|
+
import "./index.d-DuVpMG8_.mjs";
|
|
28
|
+
import { index_d_exports$3 } from "./index.d-BFJinzUY.mjs";
|
|
29
|
+
import "./index.d-CN37Zl7u.mjs";
|
|
30
|
+
import "./index.d-lzQFIw8d.mjs";
|
|
31
|
+
import "./index.d-BSQRPGuK.mjs";
|
|
32
|
+
import "./index.d-B1KgwGJV.mjs";
|
|
33
|
+
import "./index.d-Ckbfjm0G.mjs";
|
|
34
|
+
import "./index.d-DCtFuYUN.mjs";
|
|
35
|
+
import { index_d_exports$4 } from "./index.d-DpLq-R_p.mjs";
|
|
36
|
+
import "./index.d-4OvQY24D.mjs";
|
|
37
|
+
import "./index.d-DQZa03Va.mjs";
|
|
38
|
+
import "./index.d-CdRfZiCo.mjs";
|
|
39
|
+
import "./index.d-D33XWXy5.mjs";
|
|
40
|
+
import "./index.d-B9C3SJsw.mjs";
|
|
41
|
+
import "./index.d-BDy4V2O7.mjs";
|
|
42
|
+
import { index_d_exports$5 } from "./index.d-CDf5ausb.mjs";
|
|
43
|
+
|
|
44
|
+
//#region src/index.d.ts
|
|
45
|
+
declare const _default: {
|
|
46
|
+
axios: typeof index_d_exports;
|
|
47
|
+
fetch: typeof index_d_exports$1;
|
|
48
|
+
got: typeof index_d_exports$2;
|
|
49
|
+
ky: typeof index_d_exports$3;
|
|
50
|
+
ofetch: typeof index_d_exports$4;
|
|
51
|
+
uni: typeof index_d_exports$5;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
export { index_d_exports as axios, _default as default, index_d_exports$1 as fetch, index_d_exports$2 as got, index_d_exports$3 as ky, index_d_exports$4 as ofetch, index_d_exports$5 as uni };
|
package/dist/index.mjs
CHANGED
|
@@ -1,21 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import "./config-CwmGeydd.mjs";
|
|
2
|
+
import "./parser-8NB1Nfwt.mjs";
|
|
3
|
+
import "./js-CfKFwY21.mjs";
|
|
4
|
+
import "./config-B89EoGE7.mjs";
|
|
5
|
+
import "./parser-GwoAS3rw.mjs";
|
|
6
|
+
import "./ts-4mi0Q-kd.mjs";
|
|
7
|
+
import { axios_exports } from "./axios-CG6HLmR9.mjs";
|
|
8
|
+
import "./config-DuQgIn7U.mjs";
|
|
9
|
+
import "./parser-DCA-N9mk.mjs";
|
|
10
|
+
import "./js-DwgoBEjQ.mjs";
|
|
11
|
+
import "./config-B6UDPRkS.mjs";
|
|
12
|
+
import "./parser-DY9NSCKJ.mjs";
|
|
13
|
+
import "./ts-CMn2aSnV.mjs";
|
|
14
|
+
import { fetch_exports } from "./fetch-BtwC6Lll.mjs";
|
|
15
|
+
import "./config-DAHoeaDU.mjs";
|
|
16
|
+
import "./parser-CE48730h.mjs";
|
|
17
|
+
import "./js-DGjfw_hH.mjs";
|
|
18
|
+
import "./config-aVU8JEKy.mjs";
|
|
19
|
+
import "./parser-BJWwcP0S.mjs";
|
|
20
|
+
import "./ts-C9t_rVQx.mjs";
|
|
21
|
+
import { got_exports } from "./got-xeCavgZc.mjs";
|
|
22
|
+
import "./config-DdUVYIe0.mjs";
|
|
23
|
+
import "./parser-CSJYNO0a.mjs";
|
|
24
|
+
import "./js-nNB2l-OU.mjs";
|
|
25
|
+
import "./config-BGwXcXx1.mjs";
|
|
26
|
+
import "./parser-C_kpdHgT.mjs";
|
|
27
|
+
import "./ts-D-cZHoFQ.mjs";
|
|
28
|
+
import { ky_exports } from "./ky-B7lRjugo.mjs";
|
|
29
|
+
import "./config-Dm0OCPw8.mjs";
|
|
30
|
+
import "./parser-CaRC8JQj.mjs";
|
|
31
|
+
import "./js-DxwOJyF7.mjs";
|
|
32
|
+
import "./config-C94x0Nge.mjs";
|
|
33
|
+
import "./parser-Dnqps2TD.mjs";
|
|
34
|
+
import "./ts-BaRFvnl0.mjs";
|
|
35
|
+
import { ofetch_exports } from "./ofetch-2rci5G0X.mjs";
|
|
36
|
+
import "./config-Dn-mxTew.mjs";
|
|
37
|
+
import "./parser-CCXpH6OE.mjs";
|
|
38
|
+
import "./js-uo8fh9bT.mjs";
|
|
39
|
+
import "./config-CEngTpXa.mjs";
|
|
40
|
+
import "./parser-CFOZ5-GF.mjs";
|
|
41
|
+
import "./ts-BwAPOUdE.mjs";
|
|
42
|
+
import { uni_exports } from "./uni-DZmF7VCX.mjs";
|
|
43
|
+
|
|
44
|
+
//#region src/index.ts
|
|
45
|
+
var src_default = {
|
|
46
|
+
axios: axios_exports,
|
|
47
|
+
fetch: fetch_exports,
|
|
48
|
+
got: got_exports,
|
|
49
|
+
ky: ky_exports,
|
|
50
|
+
ofetch: ofetch_exports,
|
|
51
|
+
uni: uni_exports
|
|
21
52
|
};
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
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 };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { config } from "./config-CwmGeydd.mjs";
|
|
2
|
+
import { parser } from "./parser-8NB1Nfwt.mjs";
|
|
3
|
+
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
|
+
|
|
5
|
+
//#region src/axios/js/index.ts
|
|
6
|
+
function openapiPipeline(userConfig) {
|
|
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
|
+
return process(userConfig);
|
|
9
|
+
}
|
|
10
|
+
openapiPipeline.config = config;
|
|
11
|
+
openapiPipeline.original = original$1;
|
|
12
|
+
openapiPipeline.parser = parser;
|
|
13
|
+
openapiPipeline.compiler = compiler$1;
|
|
14
|
+
openapiPipeline.generate = generate$1;
|
|
15
|
+
openapiPipeline.dest = dest$1;
|
|
16
|
+
var js_default = openapiPipeline;
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { compiler$1 as compiler, dest$1 as dest, generate$1 as generate, js_default, original$1 as original };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { config$2 as config } from "./config-DAHoeaDU.mjs";
|
|
2
|
+
import { parser$2 as parser } from "./parser-CE48730h.mjs";
|
|
3
|
+
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
|
+
|
|
5
|
+
//#region src/got/js/index.ts
|
|
6
|
+
function openapiPipeline(userConfig) {
|
|
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
|
+
return process(userConfig);
|
|
9
|
+
}
|
|
10
|
+
openapiPipeline.config = config;
|
|
11
|
+
openapiPipeline.original = original$1;
|
|
12
|
+
openapiPipeline.parser = parser;
|
|
13
|
+
openapiPipeline.compiler = compiler$1;
|
|
14
|
+
openapiPipeline.generate = generate$1;
|
|
15
|
+
openapiPipeline.dest = dest$1;
|
|
16
|
+
var js_default = openapiPipeline;
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { compiler$1 as compiler$2, dest$1 as dest$2, generate$1 as generate$2, js_default as js_default$1, original$1 as original$2 };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { config$3 as config } from "./config-DuQgIn7U.mjs";
|
|
2
|
+
import { parser$4 as parser } from "./parser-DCA-N9mk.mjs";
|
|
3
|
+
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
|
+
|
|
5
|
+
//#region src/fetch/js/index.ts
|
|
6
|
+
function openapiPipeline(userConfig) {
|
|
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
|
+
return process(userConfig);
|
|
9
|
+
}
|
|
10
|
+
openapiPipeline.config = config;
|
|
11
|
+
openapiPipeline.original = original$1;
|
|
12
|
+
openapiPipeline.parser = parser;
|
|
13
|
+
openapiPipeline.compiler = compiler$1;
|
|
14
|
+
openapiPipeline.generate = generate$1;
|
|
15
|
+
openapiPipeline.dest = dest$1;
|
|
16
|
+
var js_default = openapiPipeline;
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { compiler$1 as compiler$3, dest$1 as dest$3, generate$1 as generate$3, js_default as js_default$2, original$1 as original$3 };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { config$8 as config } from "./config-Dm0OCPw8.mjs";
|
|
2
|
+
import { parser$8 as parser } from "./parser-CaRC8JQj.mjs";
|
|
3
|
+
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
|
+
|
|
5
|
+
//#region src/ofetch/js/index.ts
|
|
6
|
+
function openapiPipeline(userConfig) {
|
|
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
|
+
return process(userConfig);
|
|
9
|
+
}
|
|
10
|
+
openapiPipeline.config = config;
|
|
11
|
+
openapiPipeline.original = original$1;
|
|
12
|
+
openapiPipeline.parser = parser;
|
|
13
|
+
openapiPipeline.compiler = compiler$1;
|
|
14
|
+
openapiPipeline.generate = generate$1;
|
|
15
|
+
openapiPipeline.dest = dest$1;
|
|
16
|
+
var js_default = openapiPipeline;
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { compiler$1 as compiler$8, dest$1 as dest$8, generate$1 as generate$8, js_default as js_default$4, original$1 as original$8 };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { config$6 as config } from "./config-DdUVYIe0.mjs";
|
|
2
|
+
import { parser$6 as parser } from "./parser-CSJYNO0a.mjs";
|
|
3
|
+
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
|
+
|
|
5
|
+
//#region src/ky/js/index.ts
|
|
6
|
+
function openapiPipeline(userConfig) {
|
|
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
|
+
return process(userConfig);
|
|
9
|
+
}
|
|
10
|
+
openapiPipeline.config = config;
|
|
11
|
+
openapiPipeline.original = original$1;
|
|
12
|
+
openapiPipeline.parser = parser;
|
|
13
|
+
openapiPipeline.compiler = compiler$1;
|
|
14
|
+
openapiPipeline.generate = generate$1;
|
|
15
|
+
openapiPipeline.dest = dest$1;
|
|
16
|
+
var js_default = openapiPipeline;
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { compiler$1 as compiler$6, dest$1 as dest$6, generate$1 as generate$6, js_default as js_default$3, original$1 as original$6 };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { config$10 as config } from "./config-Dn-mxTew.mjs";
|
|
2
|
+
import { parser$9 as parser } from "./parser-CCXpH6OE.mjs";
|
|
3
|
+
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
|
+
|
|
5
|
+
//#region src/uni/js/index.ts
|
|
6
|
+
function openapiPipeline(userConfig) {
|
|
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
|
+
return process(userConfig);
|
|
9
|
+
}
|
|
10
|
+
openapiPipeline.config = config;
|
|
11
|
+
openapiPipeline.original = original$1;
|
|
12
|
+
openapiPipeline.parser = parser;
|
|
13
|
+
openapiPipeline.compiler = compiler$1;
|
|
14
|
+
openapiPipeline.generate = generate$1;
|
|
15
|
+
openapiPipeline.dest = dest$1;
|
|
16
|
+
var js_default = openapiPipeline;
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { compiler$1 as compiler$9, dest$1 as dest$9, generate$1 as generate$9, js_default as js_default$5, original$1 as original$9 };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../index.d-KQGa1SFg.mjs";
|
|
2
|
+
import "../index.d-CfS61_iH.mjs";
|
|
3
|
+
import { openapiPipeline$11 as openapiPipeline } from "../index.d-BahMmqz0.mjs";
|
|
4
|
+
import "../index.d-BYOoHBar.mjs";
|
|
5
|
+
import "../index.d-D_aZcN-0.mjs";
|
|
6
|
+
import { openapiPipeline$1 } from "../index.d-DuVpMG8_.mjs";
|
|
7
|
+
import "../index.d-BFJinzUY.mjs";
|
|
8
|
+
|
|
9
|
+
export { openapiPipeline as js, openapiPipeline$1 as ts };
|
package/dist/ky/index.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import "../config-DdUVYIe0.mjs";
|
|
2
|
+
import "../parser-CSJYNO0a.mjs";
|
|
3
|
+
import { js_default$3 as js_default } from "../js-nNB2l-OU.mjs";
|
|
4
|
+
import "../config-BGwXcXx1.mjs";
|
|
5
|
+
import "../parser-C_kpdHgT.mjs";
|
|
6
|
+
import { ts_default$3 as ts_default } from "../ts-D-cZHoFQ.mjs";
|
|
7
|
+
import "../ky-B7lRjugo.mjs";
|
|
8
|
+
|
|
9
|
+
export { js_default as js, ts_default as ts };
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function config(userConfig) {
|
|
5
|
-
userConfig.import = userConfig.import || {};
|
|
6
|
-
userConfig.output = userConfig.output || {};
|
|
7
|
-
userConfig.import.http = userConfig.import.http || "ky";
|
|
8
|
-
userConfig.output = replaceMainext(userConfig.output) || "src/api/index.js";
|
|
9
|
-
const configRead = _config(userConfig);
|
|
10
|
-
configRead.graphs.imports.push({
|
|
11
|
-
name: "http",
|
|
12
|
-
value: userConfig.import.http
|
|
13
|
-
});
|
|
14
|
-
return configRead;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
config
|
|
18
|
-
};
|
|
1
|
+
import { config$6 as config } from "../../../config-DdUVYIe0.mjs";
|
|
2
|
+
|
|
3
|
+
export { config };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { parser$13 as parser } from "../../index.d-KQGa1SFg.mjs";
|
|
2
|
+
import { config$22 as config } from "../../index.d-CfS61_iH.mjs";
|
|
3
|
+
import { compiler$23 as compiler, dest$23 as dest, generate$23 as generate, openapiPipeline$11 as openapiPipeline, original$23 as original } from "../../index.d-BahMmqz0.mjs";
|
|
4
|
+
|
|
5
|
+
export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
|
package/dist/ky/js/index.mjs
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const process = pipeline(
|
|
7
|
-
(userConfig2) => config(userConfig2),
|
|
8
|
-
(configRead) => original(configRead),
|
|
9
|
-
(configRead) => parser(configRead),
|
|
10
|
-
(configRead) => compiler(configRead),
|
|
11
|
-
(configRead) => generate(configRead),
|
|
12
|
-
(configRead) => dest(configRead)
|
|
13
|
-
);
|
|
14
|
-
return process(userConfig);
|
|
15
|
-
}
|
|
16
|
-
openapiPipeline.config = config;
|
|
17
|
-
openapiPipeline.original = original;
|
|
18
|
-
openapiPipeline.parser = parser;
|
|
19
|
-
openapiPipeline.compiler = compiler;
|
|
20
|
-
openapiPipeline.generate = generate;
|
|
21
|
-
openapiPipeline.dest = dest;
|
|
22
|
-
var js_default = openapiPipeline;
|
|
23
|
-
export {
|
|
24
|
-
compiler,
|
|
25
|
-
config,
|
|
26
|
-
js_default as default,
|
|
27
|
-
dest,
|
|
28
|
-
generate,
|
|
29
|
-
original,
|
|
30
|
-
parser
|
|
31
|
-
};
|
|
1
|
+
import { config$6 as config } from "../../config-DdUVYIe0.mjs";
|
|
2
|
+
import { parser$6 as parser } from "../../parser-CSJYNO0a.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-nNB2l-OU.mjs";
|
|
4
|
+
|
|
5
|
+
export { compiler, config, js_default as default, dest, generate, original, parser };
|
|
@@ -1,79 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
parseHeaderCommits,
|
|
5
|
-
parseMethodMetadata,
|
|
6
|
-
parseMethodParameters,
|
|
7
|
-
parseOpenapiSpecification,
|
|
8
|
-
transformBaseURL,
|
|
9
|
-
transformBodyStringify,
|
|
10
|
-
transformDefinitions,
|
|
11
|
-
transformParameters,
|
|
12
|
-
transformQueryParams,
|
|
13
|
-
transformUrlSyntax,
|
|
14
|
-
traversePaths
|
|
15
|
-
} from "@genapi/parser";
|
|
16
|
-
function parser(configRead) {
|
|
17
|
-
const source = parseOpenapiSpecification(configRead.source);
|
|
18
|
-
const comments = parseHeaderCommits(source);
|
|
19
|
-
const interfaces = [];
|
|
20
|
-
const functions = [];
|
|
21
|
-
transformBaseURL(source, {
|
|
22
|
-
configRead
|
|
23
|
-
});
|
|
24
|
-
transformDefinitions(source.definitions, {
|
|
25
|
-
interfaces
|
|
26
|
-
});
|
|
27
|
-
transformPaths(source.paths, {
|
|
28
|
-
configRead,
|
|
29
|
-
functions,
|
|
30
|
-
interfaces
|
|
31
|
-
});
|
|
32
|
-
configRead.graphs.comments = comments;
|
|
33
|
-
configRead.graphs.functions = functions;
|
|
34
|
-
configRead.graphs.interfaces = interfaces;
|
|
35
|
-
return configRead;
|
|
36
|
-
}
|
|
37
|
-
function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
38
|
-
traversePaths(paths, (config) => {
|
|
39
|
-
const { parameters, interfaces: attachInters, options } = parseMethodParameters(config);
|
|
40
|
-
let { name, description, url, responseType } = parseMethodMetadata(config);
|
|
41
|
-
interfaces.push(...attachInters);
|
|
42
|
-
parameters.push({
|
|
43
|
-
name: "config",
|
|
44
|
-
type: "import('ky').Options",
|
|
45
|
-
required: false
|
|
46
|
-
});
|
|
47
|
-
options.push(["...", "config"]);
|
|
48
|
-
if (configRead.config.baseURL)
|
|
49
|
-
options.unshift(["prefixUrl", "baseURL"]);
|
|
50
|
-
transformParameters(parameters, {
|
|
51
|
-
syntax: "ecmascript",
|
|
52
|
-
configRead,
|
|
53
|
-
description,
|
|
54
|
-
interfaces,
|
|
55
|
-
responseType,
|
|
56
|
-
generic: "import('ky').KyResponse<{__type__}>"
|
|
57
|
-
});
|
|
58
|
-
transformBodyStringify("body", { options, parameters });
|
|
59
|
-
transformQueryParams("query", { optionKey: "searchParams", options });
|
|
60
|
-
url = transformUrlSyntax(url);
|
|
61
|
-
functions.push({
|
|
62
|
-
export: true,
|
|
63
|
-
async: true,
|
|
64
|
-
name,
|
|
65
|
-
description,
|
|
66
|
-
parameters,
|
|
67
|
-
body: [
|
|
68
|
-
`const response = await http(${url}, {
|
|
69
|
-
${literalFieldsToString(options)}
|
|
70
|
-
})`,
|
|
71
|
-
"return response.json()"
|
|
72
|
-
]
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
export {
|
|
77
|
-
parser,
|
|
78
|
-
transformPaths
|
|
79
|
-
};
|
|
1
|
+
import { parser$6 as parser, transformPaths$6 as transformPaths } from "../../../parser-CSJYNO0a.mjs";
|
|
2
|
+
|
|
3
|
+
export { parser, transformPaths };
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
userConfig.import = userConfig.import || {};
|
|
5
|
-
userConfig.import.http = userConfig.import.http || "ky";
|
|
6
|
-
const configRead = _config(userConfig);
|
|
7
|
-
configRead.graphs.imports.push({
|
|
8
|
-
name: "http",
|
|
9
|
-
names: userConfig.import.http === "ky" ? ["Options"] : void 0,
|
|
10
|
-
value: userConfig.import.http
|
|
11
|
-
});
|
|
12
|
-
if (userConfig.import.http !== "ky") {
|
|
13
|
-
configRead.graphs.imports.push({
|
|
14
|
-
names: ["Options"],
|
|
15
|
-
value: "ky"
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return configRead;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
config
|
|
22
|
-
};
|
|
1
|
+
import { config$7 as config } from "../../../config-BGwXcXx1.mjs";
|
|
2
|
+
|
|
3
|
+
export { config };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { parser$20 as parser } from "../../index.d-BYOoHBar.mjs";
|
|
2
|
+
import { config$17 as config } from "../../index.d-D_aZcN-0.mjs";
|
|
3
|
+
import { compiler$13 as compiler, dest$13 as dest, generate$13 as generate, openapiPipeline$1 as openapiPipeline, original$13 as original } from "../../index.d-DuVpMG8_.mjs";
|
|
4
|
+
|
|
5
|
+
export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
|
package/dist/ky/ts/index.mjs
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const process = pipeline(
|
|
7
|
-
(userConfig2) => config(userConfig2),
|
|
8
|
-
(configRead) => original(configRead),
|
|
9
|
-
(configRead) => parser(configRead),
|
|
10
|
-
(configRead) => compiler(configRead),
|
|
11
|
-
(configRead) => generate(configRead),
|
|
12
|
-
(configRead) => dest(configRead)
|
|
13
|
-
);
|
|
14
|
-
return process(userConfig);
|
|
15
|
-
}
|
|
16
|
-
openapiPipeline.config = config;
|
|
17
|
-
openapiPipeline.original = original;
|
|
18
|
-
openapiPipeline.parser = parser;
|
|
19
|
-
openapiPipeline.compiler = compiler;
|
|
20
|
-
openapiPipeline.generate = generate;
|
|
21
|
-
openapiPipeline.dest = dest;
|
|
22
|
-
var ts_default = openapiPipeline;
|
|
23
|
-
export {
|
|
24
|
-
compiler,
|
|
25
|
-
config,
|
|
26
|
-
ts_default as default,
|
|
27
|
-
dest,
|
|
28
|
-
generate,
|
|
29
|
-
original,
|
|
30
|
-
parser
|
|
31
|
-
};
|
|
1
|
+
import { config$7 as config } from "../../config-BGwXcXx1.mjs";
|
|
2
|
+
import { parser$7 as parser } from "../../parser-C_kpdHgT.mjs";
|
|
3
|
+
import { compiler$7 as compiler, dest$7 as dest, generate$7 as generate, original$7 as original, ts_default$3 as ts_default } from "../../ts-D-cZHoFQ.mjs";
|
|
4
|
+
|
|
5
|
+
export { compiler, config, ts_default as default, dest, generate, original, parser };
|