@genapi/presets 3.5.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.
Files changed (143) hide show
  1. package/dist/axios/index.d.mts +7 -7
  2. package/dist/axios/js/config/index.d.mts +1 -1
  3. package/dist/axios/js/index.d.mts +3 -3
  4. package/dist/axios/js/parser/index.d.mts +1 -1
  5. package/dist/axios/ts/config/index.d.mts +1 -1
  6. package/dist/axios/ts/index.d.mts +3 -3
  7. package/dist/axios/ts/parser/index.d.mts +1 -1
  8. package/dist/{config-IeVj3de_.mjs → config-BGwXcXx1.mjs} +1 -1
  9. package/dist/{config-Dp9C4aUE.mjs → config-C94x0Nge.mjs} +1 -1
  10. package/dist/config-CEngTpXa.mjs +21 -0
  11. package/dist/{config-CDvaM7ZL.mjs → config-DAHoeaDU.mjs} +1 -1
  12. package/dist/config-Dn-mxTew.mjs +19 -0
  13. package/dist/{config-BJZnXcL3.mjs → config-DuQgIn7U.mjs} +1 -1
  14. package/dist/fetch/index.d.mts +7 -7
  15. package/dist/fetch/index.mjs +6 -6
  16. package/dist/fetch/js/config/index.d.mts +1 -1
  17. package/dist/fetch/js/config/index.mjs +1 -1
  18. package/dist/fetch/js/index.d.mts +3 -3
  19. package/dist/fetch/js/index.mjs +3 -3
  20. package/dist/fetch/js/parser/index.d.mts +1 -1
  21. package/dist/fetch/js/parser/index.mjs +1 -1
  22. package/dist/fetch/ts/config/index.d.mts +1 -1
  23. package/dist/fetch/ts/index.d.mts +3 -3
  24. package/dist/fetch/ts/index.mjs +2 -2
  25. package/dist/fetch/ts/parser/index.d.mts +1 -1
  26. package/dist/fetch/ts/parser/index.mjs +1 -1
  27. package/dist/{fetch-DDSgFojK.mjs → fetch-BtwC6Lll.mjs} +2 -2
  28. package/dist/got/index.d.mts +7 -7
  29. package/dist/got/index.mjs +6 -6
  30. package/dist/got/js/config/index.d.mts +1 -1
  31. package/dist/got/js/config/index.mjs +1 -1
  32. package/dist/got/js/index.d.mts +3 -3
  33. package/dist/got/js/index.mjs +3 -3
  34. package/dist/got/js/parser/index.d.mts +1 -1
  35. package/dist/got/js/parser/index.mjs +1 -1
  36. package/dist/got/ts/config/index.d.mts +1 -1
  37. package/dist/got/ts/index.d.mts +3 -3
  38. package/dist/got/ts/index.mjs +2 -2
  39. package/dist/got/ts/parser/index.d.mts +1 -1
  40. package/dist/got/ts/parser/index.mjs +1 -1
  41. package/dist/{got-DhRc0hx6.mjs → got-xeCavgZc.mjs} +2 -2
  42. package/dist/{index.d-C10wnMdy.d.mts → index.d-4OvQY24D.d.mts} +2 -2
  43. package/dist/{index.d-YNb6GO8o.d.mts → index.d-B0n5Pe6-.d.mts} +3 -3
  44. package/dist/index.d-B1KgwGJV.d.mts +14 -0
  45. package/dist/index.d-B9C3SJsw.d.mts +7 -0
  46. package/dist/{index.d-Ch6ZYMn0.d.mts → index.d-BB-bpoWw.d.mts} +2 -2
  47. package/dist/index.d-BDMFuIpi.d.mts +12 -0
  48. package/dist/{index.d-CGbHzQH8.d.mts → index.d-BDy4V2O7.d.mts} +4 -4
  49. package/dist/index.d-BFJinzUY.d.mts +12 -0
  50. package/dist/{index.d-DndBUrRi.d.mts → index.d-BS6Sm47l.d.mts} +4 -4
  51. package/dist/{index.d-DTsMFJM4.d.mts → index.d-BSQRPGuK.d.mts} +4 -4
  52. package/dist/{index.d-B9YjsDSU.d.mts → index.d-BXgDnKDv.d.mts} +1 -1
  53. package/dist/{index.d-BvMhV1lw.d.mts → index.d-BYOoHBar.d.mts} +2 -2
  54. package/dist/{index.d-Ba1tOHnm.d.mts → index.d-BahMmqz0.d.mts} +4 -4
  55. package/dist/{index.d-sEb0cOvU.d.mts → index.d-BbxRLLMX.d.mts} +3 -3
  56. package/dist/{index.d-qxp4tWxk.d.mts → index.d-BguloXfs.d.mts} +1 -1
  57. package/dist/{index.d-BCl4h5vb.d.mts → index.d-BgvbkDJL.d.mts} +4 -4
  58. package/dist/{index.d-BVDe1tFu.d.mts → index.d-Bknp-d4G.d.mts} +2 -2
  59. package/dist/index.d-BulZ76hJ.d.mts +18 -0
  60. package/dist/index.d-BupSEh4R.d.mts +18 -0
  61. package/dist/{index.d-xT7aQSB2.d.mts → index.d-CAirdOCT.d.mts} +2 -2
  62. package/dist/{index.d-C-mT1tVI.d.mts → index.d-CDf5ausb.d.mts} +4 -4
  63. package/dist/{index.d-DD9vtQSr.d.mts → index.d-CN37Zl7u.d.mts} +2 -2
  64. package/dist/{index.d-DgSgg69k.d.mts → index.d-CVL676ax.d.mts} +4 -4
  65. package/dist/{index.d-Dsok7fEc.d.mts → index.d-Cb9k2mo6.d.mts} +1 -1
  66. package/dist/{index.d-DBNQTE-q.d.mts → index.d-CdRfZiCo.d.mts} +4 -4
  67. package/dist/{index.d-C-mKHl9s.d.mts → index.d-CfS61_iH.d.mts} +1 -1
  68. package/dist/{index.d-DlncPuTy.d.mts → index.d-Ckbfjm0G.d.mts} +1 -1
  69. package/dist/index.d-CljgOS4p.d.mts +18 -0
  70. package/dist/{index.d-yppv-kCz.d.mts → index.d-D1pp_HCy.d.mts} +2 -2
  71. package/dist/{index.d-CozwYURq.d.mts → index.d-D33XWXy5.d.mts} +2 -2
  72. package/dist/{index.d-D6AeBSov.d.mts → index.d-D6gcSlpm.d.mts} +2 -2
  73. package/dist/{index.d-B5ex0iL6.d.mts → index.d-DCtFuYUN.d.mts} +4 -4
  74. package/dist/index.d-DQZa03Va.d.mts +7 -0
  75. package/dist/index.d-DW8ts-IU.d.mts +14 -0
  76. package/dist/{index.d-B-u-rHVf.d.mts → index.d-D_aZcN-0.d.mts} +1 -1
  77. package/dist/{index.d-D9OXwZhj.d.mts → index.d-DgggRtXp.d.mts} +1 -1
  78. package/dist/{index.d-DD5okdfE.d.mts → index.d-DpLq-R_p.d.mts} +3 -3
  79. package/dist/{index.d-Dx6IWWI4.d.mts → index.d-DrCRTA_-.d.mts} +1 -1
  80. package/dist/{index.d-C38NRU-q.d.mts → index.d-DuVpMG8_.d.mts} +4 -4
  81. package/dist/{index.d-DT6dJ1Sg.d.mts → index.d-KQGa1SFg.d.mts} +2 -2
  82. package/dist/{index.d-DkWb7AYg.d.mts → index.d-O3Nkol5h.d.mts} +1 -1
  83. package/dist/{index.d-B6ea0pDX.d.mts → index.d-lzQFIw8d.d.mts} +1 -1
  84. package/dist/index.d.mts +44 -36
  85. package/dist/index.mjs +30 -22
  86. package/dist/{js-CqtsolD8.mjs → js-DGjfw_hH.mjs} +3 -3
  87. package/dist/{js-t1rqZHU4.mjs → js-DwgoBEjQ.mjs} +3 -3
  88. package/dist/{ts-BrqtDsf2.mjs → js-uo8fh9bT.mjs} +5 -5
  89. package/dist/ky/index.d.mts +7 -7
  90. package/dist/ky/index.mjs +4 -4
  91. package/dist/ky/js/config/index.d.mts +1 -1
  92. package/dist/ky/js/index.d.mts +3 -3
  93. package/dist/ky/js/parser/index.d.mts +1 -1
  94. package/dist/ky/ts/config/index.d.mts +1 -1
  95. package/dist/ky/ts/config/index.mjs +1 -1
  96. package/dist/ky/ts/index.d.mts +3 -3
  97. package/dist/ky/ts/index.mjs +3 -3
  98. package/dist/ky/ts/parser/index.d.mts +1 -1
  99. package/dist/ky/ts/parser/index.mjs +1 -1
  100. package/dist/{ky-tkF4RP6y.mjs → ky-B7lRjugo.mjs} +1 -1
  101. package/dist/ofetch/index.d.mts +7 -7
  102. package/dist/ofetch/index.mjs +4 -4
  103. package/dist/ofetch/js/config/index.d.mts +1 -1
  104. package/dist/ofetch/js/index.d.mts +3 -3
  105. package/dist/ofetch/js/parser/index.d.mts +1 -1
  106. package/dist/ofetch/ts/config/index.d.mts +1 -1
  107. package/dist/ofetch/ts/config/index.mjs +1 -1
  108. package/dist/ofetch/ts/index.d.mts +3 -3
  109. package/dist/ofetch/ts/index.mjs +3 -3
  110. package/dist/ofetch/ts/parser/index.d.mts +1 -1
  111. package/dist/ofetch/ts/parser/index.mjs +1 -1
  112. package/dist/{ofetch-D17IUjVF.mjs → ofetch-2rci5G0X.mjs} +1 -1
  113. package/dist/{parser-ZdK3ZwJM.mjs → parser-BJWwcP0S.mjs} +1 -1
  114. package/dist/parser-CCXpH6OE.mjs +63 -0
  115. package/dist/{parser-BkWqv1qf.mjs → parser-CE48730h.mjs} +1 -1
  116. package/dist/parser-CFOZ5-GF.mjs +62 -0
  117. package/dist/{parser-B-nJrHKw.mjs → parser-C_kpdHgT.mjs} +1 -1
  118. package/dist/{parser-CAdkVm2b.mjs → parser-DCA-N9mk.mjs} +1 -1
  119. package/dist/{parser-aevzlGBk.mjs → parser-DY9NSCKJ.mjs} +1 -1
  120. package/dist/{parser-BGXx6lbG.mjs → parser-Dnqps2TD.mjs} +1 -1
  121. package/dist/ts-BaRFvnl0.mjs +19 -0
  122. package/dist/ts-BwAPOUdE.mjs +19 -0
  123. package/dist/{ts-DjVYemin.mjs → ts-C9t_rVQx.mjs} +1 -1
  124. package/dist/{ts-BLbY66M1.mjs → ts-CMn2aSnV.mjs} +1 -1
  125. package/dist/{ts-B0VNlOAi.mjs → ts-D-cZHoFQ.mjs} +3 -3
  126. package/dist/uni/index.d.mts +9 -0
  127. package/dist/uni/index.mjs +9 -0
  128. package/dist/uni/js/config/index.d.mts +3 -0
  129. package/dist/uni/js/config/index.mjs +3 -0
  130. package/dist/uni/js/index.d.mts +5 -0
  131. package/dist/uni/js/index.mjs +5 -0
  132. package/dist/uni/js/parser/index.d.mts +3 -0
  133. package/dist/uni/js/parser/index.mjs +3 -0
  134. package/dist/uni/ts/config/index.d.mts +3 -0
  135. package/dist/uni/ts/config/index.mjs +3 -0
  136. package/dist/uni/ts/index.d.mts +5 -0
  137. package/dist/uni/ts/index.mjs +5 -0
  138. package/dist/uni/ts/parser/index.d.mts +3 -0
  139. package/dist/uni/ts/parser/index.mjs +3 -0
  140. package/dist/uni-DZmF7VCX.mjs +13 -0
  141. package/package.json +4 -4
  142. package/dist/index.d-BEPmcVlv.d.mts +0 -12
  143. package/dist/index.d-D0ou41dA.d.mts +0 -18
@@ -1,9 +1,9 @@
1
- import "../index.d-BVDe1tFu.mjs";
2
- import "../index.d-C-mKHl9s.mjs";
3
- import { openapiPipeline$5 as openapiPipeline } from "../index.d-DTsMFJM4.mjs";
4
- import "../index.d-yppv-kCz.mjs";
5
- import "../index.d-B-u-rHVf.mjs";
6
- import { openapiPipeline$7 as openapiPipeline$1 } from "../index.d-DBNQTE-q.mjs";
7
- import "../index.d-C-mT1tVI.mjs";
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
8
 
9
9
  export { openapiPipeline as js, openapiPipeline$1 as ts };
package/dist/ky/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import "../config-DdUVYIe0.mjs";
2
2
  import "../parser-CSJYNO0a.mjs";
3
3
  import { js_default$3 as js_default } from "../js-nNB2l-OU.mjs";
4
- import "../config-IeVj3de_.mjs";
5
- import "../parser-B-nJrHKw.mjs";
6
- import { ts_default$4 as ts_default } from "../ts-BrqtDsf2.mjs";
7
- import "../ky-tkF4RP6y.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
8
 
9
9
  export { js_default as js, ts_default as ts };
@@ -1,3 +1,3 @@
1
- import { config$13 as config } from "../../../index.d-C-mKHl9s.mjs";
1
+ import { config$22 as config } from "../../../index.d-CfS61_iH.mjs";
2
2
 
3
3
  export { config };
@@ -1,5 +1,5 @@
1
- import { parser$12 as parser } from "../../index.d-BVDe1tFu.mjs";
2
- import { config$13 as config } from "../../index.d-C-mKHl9s.mjs";
3
- import { compiler$15 as compiler, dest$15 as dest, generate$15 as generate, openapiPipeline$5 as openapiPipeline, original$15 as original } from "../../index.d-DTsMFJM4.mjs";
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
4
 
5
5
  export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
@@ -1,3 +1,3 @@
1
- import { PathsTransformOptions$2 as PathsTransformOptions, parser$12 as parser, transformPaths$12 as transformPaths } from "../../../index.d-BVDe1tFu.mjs";
1
+ import { PathsTransformOptions$1 as PathsTransformOptions, parser$13 as parser, transformPaths$13 as transformPaths } from "../../../index.d-KQGa1SFg.mjs";
2
2
 
3
3
  export { PathsTransformOptions, parser, transformPaths };
@@ -1,3 +1,3 @@
1
- import { config$12 as config } from "../../../index.d-B-u-rHVf.mjs";
1
+ import { config$17 as config } from "../../../index.d-D_aZcN-0.mjs";
2
2
 
3
3
  export { config };
@@ -1,3 +1,3 @@
1
- import { config$9 as config } from "../../../config-IeVj3de_.mjs";
1
+ import { config$7 as config } from "../../../config-BGwXcXx1.mjs";
2
2
 
3
3
  export { config };
@@ -1,5 +1,5 @@
1
- import { parser$10 as parser } from "../../index.d-yppv-kCz.mjs";
2
- import { config$12 as config } from "../../index.d-B-u-rHVf.mjs";
3
- import { compiler$17 as compiler, dest$17 as dest, generate$17 as generate, openapiPipeline$7 as openapiPipeline, original$17 as original } from "../../index.d-DBNQTE-q.mjs";
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
4
 
5
5
  export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
@@ -1,5 +1,5 @@
1
- import { config$9 as config } from "../../config-IeVj3de_.mjs";
2
- import { parser$9 as parser } from "../../parser-B-nJrHKw.mjs";
3
- import { compiler$9 as compiler, dest$9 as dest, generate$9 as generate, original$9 as original, ts_default$4 as ts_default } from "../../ts-BrqtDsf2.mjs";
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
4
 
5
5
  export { compiler, config, ts_default as default, dest, generate, original, parser };
@@ -1,3 +1,3 @@
1
- import { PathsTransformOptions, parser$10 as parser, transformPaths$10 as transformPaths } from "../../../index.d-yppv-kCz.mjs";
1
+ import { PathsTransformOptions$8 as PathsTransformOptions, parser$20 as parser, transformPaths$20 as transformPaths } from "../../../index.d-BYOoHBar.mjs";
2
2
 
3
3
  export { PathsTransformOptions, parser, transformPaths };
@@ -1,3 +1,3 @@
1
- import { parser$9 as parser, transformPaths$9 as transformPaths } from "../../../parser-B-nJrHKw.mjs";
1
+ import { parser$7 as parser, transformPaths$7 as transformPaths } from "../../../parser-C_kpdHgT.mjs";
2
2
 
3
3
  export { parser, transformPaths };
@@ -1,6 +1,6 @@
1
1
  import { __export } from "./chunk-BL35Yyzp.mjs";
2
2
  import { js_default$3 as js_default } from "./js-nNB2l-OU.mjs";
3
- import { ts_default$4 as ts_default } from "./ts-BrqtDsf2.mjs";
3
+ import { ts_default$3 as ts_default } from "./ts-D-cZHoFQ.mjs";
4
4
 
5
5
  //#region src/ky/index.ts
6
6
  var ky_exports = {};
@@ -1,9 +1,9 @@
1
- import "../index.d-DT6dJ1Sg.mjs";
2
- import "../index.d-B6ea0pDX.mjs";
3
- import { openapiPipeline$3 as openapiPipeline } from "../index.d-C38NRU-q.mjs";
4
- import "../index.d-CozwYURq.mjs";
5
- import "../index.d-DlncPuTy.mjs";
6
- import { openapiPipeline$6 as openapiPipeline$1 } from "../index.d-DgSgg69k.mjs";
7
- import "../index.d-DD5okdfE.mjs";
1
+ import "../index.d-CN37Zl7u.mjs";
2
+ import "../index.d-lzQFIw8d.mjs";
3
+ import { openapiPipeline$3 as openapiPipeline } from "../index.d-BSQRPGuK.mjs";
4
+ import "../index.d-B1KgwGJV.mjs";
5
+ import "../index.d-Ckbfjm0G.mjs";
6
+ import { openapiPipeline$6 as openapiPipeline$1 } from "../index.d-DCtFuYUN.mjs";
7
+ import "../index.d-DpLq-R_p.mjs";
8
8
 
9
9
  export { openapiPipeline as js, openapiPipeline$1 as ts };
@@ -1,9 +1,9 @@
1
1
  import "../config-Dm0OCPw8.mjs";
2
2
  import "../parser-CaRC8JQj.mjs";
3
3
  import { js_default$4 as js_default } from "../js-DxwOJyF7.mjs";
4
- import "../config-Dp9C4aUE.mjs";
5
- import "../parser-BGXx6lbG.mjs";
6
- import { ts_default$3 as ts_default } from "../ts-B0VNlOAi.mjs";
7
- import "../ofetch-D17IUjVF.mjs";
4
+ import "../config-C94x0Nge.mjs";
5
+ import "../parser-Dnqps2TD.mjs";
6
+ import { ts_default$4 as ts_default } from "../ts-BaRFvnl0.mjs";
7
+ import "../ofetch-2rci5G0X.mjs";
8
8
 
9
9
  export { js_default as js, ts_default as ts };
@@ -1,3 +1,3 @@
1
- import { config$10 as config } from "../../../index.d-B6ea0pDX.mjs";
1
+ import { config$16 as config } from "../../../index.d-lzQFIw8d.mjs";
2
2
 
3
3
  export { config };
@@ -1,5 +1,5 @@
1
- import { parser$11 as parser } from "../../index.d-DT6dJ1Sg.mjs";
2
- import { config$10 as config } from "../../index.d-B6ea0pDX.mjs";
3
- import { compiler$13 as compiler, dest$13 as dest, generate$13 as generate, openapiPipeline$3 as openapiPipeline, original$13 as original } from "../../index.d-C38NRU-q.mjs";
1
+ import { parser$21 as parser } from "../../index.d-CN37Zl7u.mjs";
2
+ import { config$16 as config } from "../../index.d-lzQFIw8d.mjs";
3
+ import { compiler$15 as compiler, dest$15 as dest, generate$15 as generate, openapiPipeline$3 as openapiPipeline, original$15 as original } from "../../index.d-BSQRPGuK.mjs";
4
4
 
5
5
  export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
@@ -1,3 +1,3 @@
1
- import { PathsTransformOptions$1 as PathsTransformOptions, parser$11 as parser, transformPaths$11 as transformPaths } from "../../../index.d-DT6dJ1Sg.mjs";
1
+ import { PathsTransformOptions$9 as PathsTransformOptions, parser$21 as parser, transformPaths$21 as transformPaths } from "../../../index.d-CN37Zl7u.mjs";
2
2
 
3
3
  export { PathsTransformOptions, parser, transformPaths };
@@ -1,3 +1,3 @@
1
- import { config$15 as config } from "../../../index.d-DlncPuTy.mjs";
1
+ import { config$13 as config } from "../../../index.d-Ckbfjm0G.mjs";
2
2
 
3
3
  export { config };
@@ -1,3 +1,3 @@
1
- import { config$7 as config } from "../../../config-Dp9C4aUE.mjs";
1
+ import { config$9 as config } from "../../../config-C94x0Nge.mjs";
2
2
 
3
3
  export { config };
@@ -1,5 +1,5 @@
1
- import { parser$13 as parser } from "../../index.d-CozwYURq.mjs";
2
- import { config$15 as config } from "../../index.d-DlncPuTy.mjs";
3
- import { compiler$16 as compiler, dest$16 as dest, generate$16 as generate, openapiPipeline$6 as openapiPipeline, original$16 as original } from "../../index.d-DgSgg69k.mjs";
1
+ import { parser$22 as parser } from "../../index.d-B1KgwGJV.mjs";
2
+ import { config$13 as config } from "../../index.d-Ckbfjm0G.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-DCtFuYUN.mjs";
4
4
 
5
5
  export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
@@ -1,5 +1,5 @@
1
- import { config$7 as config } from "../../config-Dp9C4aUE.mjs";
2
- import { parser$7 as parser } from "../../parser-BGXx6lbG.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-B0VNlOAi.mjs";
1
+ import { config$9 as config } from "../../config-C94x0Nge.mjs";
2
+ import { parser$10 as parser } from "../../parser-Dnqps2TD.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-BaRFvnl0.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$13 as parser, transformPaths$13 as transformPaths } from "../../../index.d-CozwYURq.mjs";
1
+ import { PathsTransformOptions$10 as PathsTransformOptions, parser$22 as parser, transformPaths$22 as transformPaths } from "../../../index.d-B1KgwGJV.mjs";
2
2
 
3
3
  export { PathsTransformOptions, parser, transformPaths };
@@ -1,3 +1,3 @@
1
- import { parser$7 as parser, transformPaths$7 as transformPaths } from "../../../parser-BGXx6lbG.mjs";
1
+ import { parser$10 as parser, transformPaths$10 as transformPaths } from "../../../parser-Dnqps2TD.mjs";
2
2
 
3
3
  export { parser, transformPaths };
@@ -1,6 +1,6 @@
1
1
  import { __export } from "./chunk-BL35Yyzp.mjs";
2
2
  import { js_default$4 as js_default } from "./js-DxwOJyF7.mjs";
3
- import { ts_default$3 as ts_default } from "./ts-B0VNlOAi.mjs";
3
+ import { ts_default$4 as ts_default } from "./ts-BaRFvnl0.mjs";
4
4
 
5
5
  //#region src/ofetch/index.ts
6
6
  var ofetch_exports = {};
@@ -66,4 +66,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
66
66
  }
67
67
 
68
68
  //#endregion
69
- export { parser as parser$4, transformPaths as transformPaths$4 };
69
+ export { parser as parser$5, transformPaths as transformPaths$5 };
@@ -0,0 +1,63 @@
1
+ import { literalFieldsToString, parseHeaderCommits, parseMethodMetadata, parseMethodParameters, parseOpenapiSpecification, transformBaseURL, transformDefinitions, transformParameters, transformUrlSyntax, traversePaths } from "@genapi/parser";
2
+
3
+ //#region src/uni/js/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);
33
+ options.push(["...", "config"]);
34
+ interfaces.push(...attachInters);
35
+ parameters.push({
36
+ type: "import('@uni-helper/uni-network').UnConfig<never>",
37
+ name: "config",
38
+ required: false
39
+ });
40
+ options.unshift("url");
41
+ options.unshift(["method", `"${config.method}"`]);
42
+ if (configRead.config.baseURL) options.unshift("baseURL");
43
+ transformParameters(parameters, {
44
+ syntax: "ecmascript",
45
+ configRead,
46
+ description,
47
+ interfaces,
48
+ responseType,
49
+ generic: "import('@uni-helper/uni-network').UnResponse<{__type__}>"
50
+ });
51
+ url = transformUrlSyntax(url);
52
+ functions.push({
53
+ export: true,
54
+ name,
55
+ description,
56
+ parameters,
57
+ body: [`const url = ${url}`, `return http.request({ ${literalFieldsToString(options)} })`]
58
+ });
59
+ });
60
+ }
61
+
62
+ //#endregion
63
+ export { parser as parser$9, transformPaths as transformPaths$9 };
@@ -66,4 +66,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
66
66
  }
67
67
 
68
68
  //#endregion
69
- export { parser as parser$3, transformPaths as transformPaths$3 };
69
+ export { parser as parser$2, transformPaths as transformPaths$2 };
@@ -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);
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$11, transformPaths as transformPaths$11 };
@@ -65,4 +65,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
65
65
  }
66
66
 
67
67
  //#endregion
68
- export { parser as parser$9, transformPaths as transformPaths$9 };
68
+ export { parser as parser$7, transformPaths as transformPaths$7 };
@@ -74,4 +74,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
74
74
  }
75
75
 
76
76
  //#endregion
77
- export { parser as parser$2, transformPaths as transformPaths$2 };
77
+ export { parser as parser$4, transformPaths as transformPaths$4 };
@@ -69,4 +69,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
69
69
  }
70
70
 
71
71
  //#endregion
72
- export { parser as parser$5, transformPaths as transformPaths$5 };
72
+ export { parser as parser$3, transformPaths as transformPaths$3 };
@@ -63,4 +63,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
63
63
  }
64
64
 
65
65
  //#endregion
66
- export { parser as parser$7, transformPaths as transformPaths$7 };
66
+ export { parser as parser$10, transformPaths as transformPaths$10 };
@@ -0,0 +1,19 @@
1
+ import { config$9 as config } from "./config-C94x0Nge.mjs";
2
+ import { parser$10 as parser } from "./parser-Dnqps2TD.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/ts/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 ts_default = openapiPipeline;
17
+
18
+ //#endregion
19
+ export { compiler$1 as compiler$10, dest$1 as dest$10, generate$1 as generate$10, original$1 as original$10, ts_default as ts_default$4 };
@@ -0,0 +1,19 @@
1
+ import { config$11 as config } from "./config-CEngTpXa.mjs";
2
+ import { parser$11 as parser } from "./parser-CFOZ5-GF.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/ts/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 ts_default = openapiPipeline;
17
+
18
+ //#endregion
19
+ export { compiler$1 as compiler$11, dest$1 as dest$11, generate$1 as generate$11, original$1 as original$11, ts_default as ts_default$5 };
@@ -1,5 +1,5 @@
1
1
  import { config$5 as config } from "./config-aVU8JEKy.mjs";
2
- import { parser$4 as parser } from "./parser-ZdK3ZwJM.mjs";
2
+ import { parser$5 as parser } from "./parser-BJWwcP0S.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/ts/index.ts
@@ -1,5 +1,5 @@
1
1
  import { config$4 as config } from "./config-B6UDPRkS.mjs";
2
- import { parser$5 as parser } from "./parser-aevzlGBk.mjs";
2
+ import { parser$3 as parser } from "./parser-DY9NSCKJ.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/ts/index.ts
@@ -1,8 +1,8 @@
1
- import { config$7 as config } from "./config-Dp9C4aUE.mjs";
2
- import { parser$7 as parser } from "./parser-BGXx6lbG.mjs";
1
+ import { config$7 as config } from "./config-BGwXcXx1.mjs";
2
+ import { parser$7 as parser } from "./parser-C_kpdHgT.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/ofetch/ts/index.ts
5
+ //#region src/ky/ts/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);
@@ -0,0 +1,9 @@
1
+ import "../index.d-4OvQY24D.mjs";
2
+ import "../index.d-DQZa03Va.mjs";
3
+ import { openapiPipeline$5 as openapiPipeline } from "../index.d-CdRfZiCo.mjs";
4
+ import "../index.d-D33XWXy5.mjs";
5
+ import "../index.d-B9C3SJsw.mjs";
6
+ import { openapiPipeline$2 as openapiPipeline$1 } from "../index.d-BDy4V2O7.mjs";
7
+ import "../index.d-CDf5ausb.mjs";
8
+
9
+ export { openapiPipeline as js, openapiPipeline$1 as ts };
@@ -0,0 +1,9 @@
1
+ import "../config-Dn-mxTew.mjs";
2
+ import "../parser-CCXpH6OE.mjs";
3
+ import { js_default$5 as js_default } from "../js-uo8fh9bT.mjs";
4
+ import "../config-CEngTpXa.mjs";
5
+ import "../parser-CFOZ5-GF.mjs";
6
+ import { ts_default$5 as ts_default } from "../ts-BwAPOUdE.mjs";
7
+ import "../uni-DZmF7VCX.mjs";
8
+
9
+ export { js_default as js, ts_default as ts };
@@ -0,0 +1,3 @@
1
+ import { config$14 as config } from "../../../index.d-DQZa03Va.mjs";
2
+
3
+ export { config };
@@ -0,0 +1,3 @@
1
+ import { config$10 as config } from "../../../config-Dn-mxTew.mjs";
2
+
3
+ export { config };
@@ -0,0 +1,5 @@
1
+ import { parser$16 as parser } from "../../index.d-4OvQY24D.mjs";
2
+ import { config$14 as config } from "../../index.d-DQZa03Va.mjs";
3
+ import { compiler$17 as compiler, dest$17 as dest, generate$17 as generate, openapiPipeline$5 as openapiPipeline, original$17 as original } from "../../index.d-CdRfZiCo.mjs";
4
+
5
+ export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
@@ -0,0 +1,5 @@
1
+ import { config$10 as config } from "../../config-Dn-mxTew.mjs";
2
+ import { parser$9 as parser } from "../../parser-CCXpH6OE.mjs";
3
+ import { compiler$9 as compiler, dest$9 as dest, generate$9 as generate, js_default$5 as js_default, original$9 as original } from "../../js-uo8fh9bT.mjs";
4
+
5
+ export { compiler, config, js_default as default, dest, generate, original, parser };
@@ -0,0 +1,3 @@
1
+ import { PathsTransformOptions$4 as PathsTransformOptions, parser$16 as parser, transformPaths$16 as transformPaths } from "../../../index.d-4OvQY24D.mjs";
2
+
3
+ export { PathsTransformOptions, parser, transformPaths };
@@ -0,0 +1,3 @@
1
+ import { parser$9 as parser, transformPaths$9 as transformPaths } from "../../../parser-CCXpH6OE.mjs";
2
+
3
+ export { parser, transformPaths };
@@ -0,0 +1,3 @@
1
+ import { config$15 as config } from "../../../index.d-B9C3SJsw.mjs";
2
+
3
+ export { config };
@@ -0,0 +1,3 @@
1
+ import { config$11 as config } from "../../../config-CEngTpXa.mjs";
2
+
3
+ export { config };
@@ -0,0 +1,5 @@
1
+ import { parser$15 as parser } from "../../index.d-D33XWXy5.mjs";
2
+ import { config$15 as config } from "../../index.d-B9C3SJsw.mjs";
3
+ import { compiler$14 as compiler, dest$14 as dest, generate$14 as generate, openapiPipeline$2 as openapiPipeline, original$14 as original } from "../../index.d-BDy4V2O7.mjs";
4
+
5
+ export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
@@ -0,0 +1,5 @@
1
+ import { config$11 as config } from "../../config-CEngTpXa.mjs";
2
+ import { parser$11 as parser } from "../../parser-CFOZ5-GF.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-BwAPOUdE.mjs";
4
+
5
+ export { compiler, config, ts_default as default, dest, generate, original, parser };
@@ -0,0 +1,3 @@
1
+ import { PathsTransformOptions$3 as PathsTransformOptions, parser$15 as parser, transformPaths$15 as transformPaths } from "../../../index.d-D33XWXy5.mjs";
2
+
3
+ export { PathsTransformOptions, parser, transformPaths };
@@ -0,0 +1,3 @@
1
+ import { parser$11 as parser, transformPaths$11 as transformPaths } from "../../../parser-CFOZ5-GF.mjs";
2
+
3
+ export { parser, transformPaths };
@@ -0,0 +1,13 @@
1
+ import { __export } from "./chunk-BL35Yyzp.mjs";
2
+ import { js_default$5 as js_default } from "./js-uo8fh9bT.mjs";
3
+ import { ts_default$5 as ts_default } from "./ts-BwAPOUdE.mjs";
4
+
5
+ //#region src/uni/index.ts
6
+ var uni_exports = {};
7
+ __export(uni_exports, {
8
+ js: () => js_default,
9
+ ts: () => ts_default
10
+ });
11
+
12
+ //#endregion
13
+ export { uni_exports };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genapi/presets",
3
3
  "type": "module",
4
- "version": "3.5.0",
4
+ "version": "3.6.0",
5
5
  "author": "Hairyf <wwu710632@gmail.com>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/hairyf/genapi#readme",
@@ -63,9 +63,9 @@
63
63
  ],
64
64
  "dependencies": {
65
65
  "openapi-specification-types": "^0.0.3",
66
- "@genapi/pipeline": "3.5.0",
67
- "@genapi/parser": "3.5.0",
68
- "@genapi/shared": "3.5.0"
66
+ "@genapi/parser": "3.6.0",
67
+ "@genapi/pipeline": "3.6.0",
68
+ "@genapi/shared": "3.6.0"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "tsdown",
@@ -1,12 +0,0 @@
1
- import { __export } from "./chunk-BL35Yyzp.mjs";
2
- import { openapiPipeline$4 as openapiPipeline } from "./index.d-CGbHzQH8.mjs";
3
- import { openapiPipeline$2 as openapiPipeline$1 } from "./index.d-DndBUrRi.mjs";
4
-
5
- //#region src/fetch/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$3 };