@digi-frontend/dgate-api-documentation 1.0.39 → 1.0.50

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 (430) hide show
  1. package/.editorconfig +12 -12
  2. package/.prettierignore +7 -7
  3. package/.prettierrc +15 -15
  4. package/dist/{a7568b270e175038.svg → 070dc6ecd197bc80.svg} +8 -8
  5. package/dist/16702d92fd6d1730.svg +6 -0
  6. package/dist/2b546d6e9fdf604a.svg +3 -0
  7. package/dist/2c3c6c2c3b835504.svg +5 -0
  8. package/dist/{43595976d1fdccbf.svg → 2e10bbdb265df50e.svg} +4 -4
  9. package/dist/55b5994c5781482b.svg +5 -0
  10. package/dist/60bef8083c55f46b.svg +6 -0
  11. package/dist/68c710e0583e19e6.svg +5 -0
  12. package/dist/731221b3f242672d.svg +4 -0
  13. package/dist/{b82c7612e73342f3.svg → 7f54eeb0bb2d1150.svg} +3 -3
  14. package/dist/8520b6792278d9df.svg +6 -0
  15. package/dist/{56dc416b683db280.svg → 8789eb84283ea95b.svg} +5 -5
  16. package/dist/9506ef7a26a74147.svg +12 -0
  17. package/dist/9b7aee27757b5036.svg +3 -0
  18. package/dist/{af16a554be8c4d69.svg → 9bdff13f8d8fa48a.svg} +3 -3
  19. package/dist/_virtual/core.js +2 -0
  20. package/dist/_virtual/core.js.map +1 -0
  21. package/dist/_virtual/core2.js +2 -0
  22. package/dist/_virtual/core2.js.map +1 -0
  23. package/dist/_virtual/format.js +2 -0
  24. package/dist/_virtual/format.js.map +1 -0
  25. package/dist/_virtual/index3.js +1 -1
  26. package/dist/_virtual/index6.js +1 -1
  27. package/dist/{64efc2716808c4a4.svg → bb8b87cace25e052.svg} +3 -3
  28. package/dist/cceb1e5dc06b0b85.svg +4 -0
  29. package/dist/d140a601c85bac25.svg +3 -0
  30. package/dist/{72db3b05a96dd600.svg → d32ce84bbd78babd.svg} +3 -3
  31. package/dist/{844eba3f2e42a9eb.svg → d501922060662842.svg} +3 -3
  32. package/dist/d6d0a98ec38e6b77.svg +3 -0
  33. package/dist/e04479ad425e7d58.svg +4 -0
  34. package/dist/f4452c3ebcf0d5da.svg +4 -0
  35. package/dist/f4a32992f02af522.svg +5 -0
  36. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +2 -0
  37. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +1 -0
  38. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +2 -0
  39. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +1 -0
  40. package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +2 -0
  41. package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
  42. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +2 -0
  43. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  44. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +2 -0
  45. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +1 -0
  46. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +2 -0
  47. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +1 -0
  48. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +2 -0
  49. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +1 -0
  50. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +2 -0
  51. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  52. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +2 -0
  53. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +1 -0
  54. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +2 -0
  55. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -0
  56. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +2 -0
  57. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -0
  58. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +2 -0
  59. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
  60. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +2 -0
  61. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +1 -0
  62. package/dist/node_modules/dom-serializer/lib/foreignNames.js +2 -0
  63. package/dist/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
  64. package/dist/node_modules/dom-serializer/lib/index.js +2 -0
  65. package/dist/node_modules/dom-serializer/lib/index.js.map +1 -0
  66. package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode.js +2 -0
  67. package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode.js.map +1 -0
  68. package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js +2 -0
  69. package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  70. package/dist/node_modules/dom-serializer/node_modules/entities/lib/encode.js +2 -0
  71. package/dist/node_modules/dom-serializer/node_modules/entities/lib/encode.js.map +1 -0
  72. package/dist/node_modules/dom-serializer/node_modules/entities/lib/escape.js +2 -0
  73. package/dist/node_modules/dom-serializer/node_modules/entities/lib/escape.js.map +1 -0
  74. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js +2 -0
  75. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  76. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js +2 -0
  77. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  78. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js +2 -0
  79. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  80. package/dist/node_modules/dom-serializer/node_modules/entities/lib/index.js +2 -0
  81. package/dist/node_modules/dom-serializer/node_modules/entities/lib/index.js.map +1 -0
  82. package/dist/node_modules/domhandler/lib/index.js +2 -0
  83. package/dist/node_modules/domhandler/lib/index.js.map +1 -0
  84. package/dist/node_modules/domhandler/lib/node.js +2 -0
  85. package/dist/node_modules/domhandler/lib/node.js.map +1 -0
  86. package/dist/node_modules/domutils/lib/feeds.js +2 -0
  87. package/dist/node_modules/domutils/lib/feeds.js.map +1 -0
  88. package/dist/node_modules/domutils/lib/helpers.js +2 -0
  89. package/dist/node_modules/domutils/lib/helpers.js.map +1 -0
  90. package/dist/node_modules/domutils/lib/index.js +2 -0
  91. package/dist/node_modules/domutils/lib/index.js.map +1 -0
  92. package/dist/node_modules/domutils/lib/legacy.js +2 -0
  93. package/dist/node_modules/domutils/lib/legacy.js.map +1 -0
  94. package/dist/node_modules/domutils/lib/manipulation.js +2 -0
  95. package/dist/node_modules/domutils/lib/manipulation.js.map +1 -0
  96. package/dist/node_modules/domutils/lib/querying.js +2 -0
  97. package/dist/node_modules/domutils/lib/querying.js.map +1 -0
  98. package/dist/node_modules/domutils/lib/stringify.js +2 -0
  99. package/dist/node_modules/domutils/lib/stringify.js.map +1 -0
  100. package/dist/node_modules/domutils/lib/traversal.js +2 -0
  101. package/dist/node_modules/domutils/lib/traversal.js.map +1 -0
  102. package/dist/node_modules/entities/dist/commonjs/decode-codepoint.js +2 -0
  103. package/dist/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  104. package/dist/node_modules/entities/dist/commonjs/decode.js +2 -0
  105. package/dist/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  106. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.js +2 -0
  107. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  108. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +2 -0
  109. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  110. package/dist/node_modules/fault/index.js +2 -0
  111. package/dist/node_modules/fault/index.js.map +1 -0
  112. package/dist/node_modules/format/format.js +2 -0
  113. package/dist/node_modules/format/format.js.map +1 -0
  114. package/dist/node_modules/highlight.js/lib/core.js +2 -0
  115. package/dist/node_modules/highlight.js/lib/core.js.map +1 -0
  116. package/dist/node_modules/html-dom-parser/lib/server/html-to-dom.js +1 -1
  117. package/dist/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -1
  118. package/dist/node_modules/html-react-parser/lib/index.js +1 -1
  119. package/dist/node_modules/html-react-parser/lib/index.js.map +1 -1
  120. package/dist/node_modules/htmlparser2/dist/commonjs/Parser.js +1 -1
  121. package/dist/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -1
  122. package/dist/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +1 -1
  123. package/dist/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -1
  124. package/dist/node_modules/htmlparser2/dist/commonjs/index.js +1 -1
  125. package/dist/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -1
  126. package/dist/node_modules/lowlight/lib/core.js +2 -0
  127. package/dist/node_modules/lowlight/lib/core.js.map +1 -0
  128. package/dist/node_modules/nanoid/index.js +2 -0
  129. package/dist/node_modules/nanoid/index.js.map +1 -0
  130. package/dist/node_modules/nanoid/url-alphabet/index.js +2 -0
  131. package/dist/node_modules/nanoid/url-alphabet/index.js.map +1 -0
  132. package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js +2 -0
  133. package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js.map +1 -0
  134. package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js +2 -0
  135. package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js.map +1 -0
  136. package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js +2 -0
  137. package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js.map +1 -0
  138. package/dist/node_modules/react-syntax-highlighter/dist/esm/light.js +2 -0
  139. package/dist/node_modules/react-syntax-highlighter/dist/esm/light.js.map +1 -0
  140. package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-dark.js +2 -0
  141. package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-dark.js.map +1 -0
  142. package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-light.js +2 -0
  143. package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-light.js.map +1 -0
  144. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  145. package/dist/node_modules/yup/index.esm.js +1 -1
  146. package/dist/src/assets/icons/AddRow.svg.js +1 -1
  147. package/dist/src/assets/icons/AddRow.svg.js.map +1 -1
  148. package/dist/src/assets/icons/ApiIcon.svg.js +2 -0
  149. package/dist/src/assets/icons/ApiIcon.svg.js.map +1 -0
  150. package/dist/src/assets/icons/ArrowBack.svg.js +2 -0
  151. package/dist/src/assets/icons/ArrowBack.svg.js.map +1 -0
  152. package/dist/src/assets/icons/BookIcon.svg.js +2 -0
  153. package/dist/src/assets/icons/BookIcon.svg.js.map +1 -0
  154. package/dist/src/assets/icons/CopySticker.svg.js +2 -0
  155. package/dist/src/assets/icons/CopySticker.svg.js.map +1 -0
  156. package/dist/src/assets/icons/DeleteIcon.svg.js +1 -1
  157. package/dist/src/assets/icons/DeleteIcon.svg.js.map +1 -1
  158. package/dist/src/assets/icons/DeleteOutlinedIcon.svg.js +2 -0
  159. package/dist/src/assets/icons/DeleteOutlinedIcon.svg.js.map +1 -0
  160. package/dist/src/assets/icons/DownArrow.svg.js +1 -1
  161. package/dist/src/assets/icons/DownArrow.svg.js.map +1 -1
  162. package/dist/src/assets/icons/EditIcon.svg.js +1 -1
  163. package/dist/src/assets/icons/EditIcon.svg.js.map +1 -1
  164. package/dist/src/assets/icons/FilterIcon.svg.js +2 -0
  165. package/dist/src/assets/icons/FilterIcon.svg.js.map +1 -0
  166. package/dist/src/assets/icons/Plus.svg.js +2 -0
  167. package/dist/src/assets/icons/Plus.svg.js.map +1 -0
  168. package/dist/src/assets/icons/PlusSquare.svg.js +2 -0
  169. package/dist/src/assets/icons/PlusSquare.svg.js.map +1 -0
  170. package/dist/src/assets/icons/RequestOption.svg.js +2 -0
  171. package/dist/src/assets/icons/RequestOption.svg.js.map +1 -0
  172. package/dist/src/assets/icons/UpArrow.svg.js +1 -1
  173. package/dist/src/assets/icons/UpArrow.svg.js.map +1 -1
  174. package/dist/src/assets/icons/arrowDownGray.svg.js +2 -0
  175. package/dist/src/assets/icons/arrowDownGray.svg.js.map +1 -0
  176. package/dist/src/assets/icons/arrowRightGray.svg.js +2 -0
  177. package/dist/src/assets/icons/arrowRightGray.svg.js.map +1 -0
  178. package/dist/src/assets/icons/close-circle.svg.js +2 -0
  179. package/dist/src/assets/icons/close-circle.svg.js.map +1 -0
  180. package/dist/src/assets/icons/copy.svg.js +2 -0
  181. package/dist/src/assets/icons/copy.svg.js.map +1 -0
  182. package/dist/src/assets/icons/document.svg.js +2 -0
  183. package/dist/src/assets/icons/document.svg.js.map +1 -0
  184. package/dist/src/assets/icons/eye.svg.js +2 -0
  185. package/dist/src/assets/icons/eye.svg.js.map +1 -0
  186. package/dist/src/assets/icons/infoIcon.svg.js +2 -0
  187. package/dist/src/assets/icons/infoIcon.svg.js.map +1 -0
  188. package/dist/src/assets/icons/searchIcon.svg.js +2 -0
  189. package/dist/src/assets/icons/searchIcon.svg.js.map +1 -0
  190. package/dist/src/components/InfoForm/InfoForm.js +1 -1
  191. package/dist/src/components/InfoForm/InfoForm.js.map +1 -1
  192. package/dist/src/components/JsonInput/JsonInput.js.map +1 -1
  193. package/dist/src/components/LivePreview/LivePreview.js +1 -1
  194. package/dist/src/components/LivePreview/LivePreview.js.map +1 -1
  195. package/dist/src/components/MethodAccordion/MethodAccordion.js +1 -1
  196. package/dist/src/components/MethodAccordion/MethodAccordion.js.map +1 -1
  197. package/dist/src/components/SVGLoader/SVGLoader.js.map +1 -1
  198. package/dist/src/components/SectionHead/SectionHead.js.map +1 -1
  199. package/dist/src/components/SimpleLabelValue/SimpleLabelValue.js.map +1 -1
  200. package/dist/src/components/Tooltip/Tooltip.js.map +1 -1
  201. package/dist/src/components/dialog/index.js +1 -1
  202. package/dist/src/components/dialog/index.js.map +1 -1
  203. package/dist/src/components/table/table.js +1 -1
  204. package/dist/src/components/table/table.js.map +1 -1
  205. package/dist/src/components/table/tags-table.js.map +1 -1
  206. package/dist/src/constants/index.js +1 -1
  207. package/dist/src/constants/index.js.map +1 -1
  208. package/dist/src/constants/methods.constant.js +2 -0
  209. package/dist/src/constants/methods.constant.js.map +1 -0
  210. package/dist/src/constants/regex.js.map +1 -1
  211. package/dist/src/helpers/docs.helper.js +2 -0
  212. package/dist/src/helpers/docs.helper.js.map +1 -0
  213. package/dist/src/helpers/layout.helper.js +1 -1
  214. package/dist/src/helpers/layout.helper.js.map +1 -1
  215. package/dist/src/helpers/methodAccordion.helper.js.map +1 -1
  216. package/dist/src/index.js +1 -1
  217. package/dist/src/layout/docsComponents/Codebox/Codebox.js +2 -0
  218. package/dist/src/layout/docsComponents/Codebox/Codebox.js.map +1 -0
  219. package/dist/src/layout/docsComponents/Codebox/style.module.scss.js +2 -0
  220. package/dist/src/layout/docsComponents/Codebox/style.module.scss.js.map +1 -0
  221. package/dist/src/layout/docsComponents/DocsAside/DocsAside.js +2 -0
  222. package/dist/src/layout/docsComponents/DocsAside/DocsAside.js.map +1 -0
  223. package/dist/src/layout/docsComponents/DocsAside/style.module.scss.js +2 -0
  224. package/dist/src/layout/docsComponents/DocsAside/style.module.scss.js.map +1 -0
  225. package/dist/src/layout/docsComponents/DocsContent/DocsContent.js +2 -0
  226. package/dist/src/layout/docsComponents/DocsContent/DocsContent.js.map +1 -0
  227. package/dist/src/layout/docsComponents/DocsContent/EndpointPage/index.js +2 -0
  228. package/dist/src/layout/docsComponents/DocsContent/EndpointPage/index.js.map +1 -0
  229. package/dist/src/layout/docsComponents/DocsContent/TagPage/index.js +2 -0
  230. package/dist/src/layout/docsComponents/DocsContent/TagPage/index.js.map +1 -0
  231. package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.js +2 -0
  232. package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.js.map +1 -0
  233. package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss.js +2 -0
  234. package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss.js.map +1 -0
  235. package/dist/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.js +2 -0
  236. package/dist/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.js.map +1 -0
  237. package/dist/src/layout/docsComponents/index.js +2 -0
  238. package/dist/src/layout/docsComponents/index.js.map +1 -0
  239. package/dist/src/layout/docsLayout.js +2 -0
  240. package/dist/src/layout/docsLayout.js.map +1 -0
  241. package/dist/src/layout/layout.js +1 -1
  242. package/dist/src/layout/layout.js.map +1 -1
  243. package/dist/src/layout/layout.module.css.js +1 -1
  244. package/dist/src/utils/index.js +2 -0
  245. package/dist/src/utils/index.js.map +1 -0
  246. package/dist/src/validator/form.scheme.js +1 -1
  247. package/dist/src/validator/form.scheme.js.map +1 -1
  248. package/dist/styles.css +1646 -348
  249. package/dist/types/assets/icons/index.d.ts +17 -1
  250. package/dist/types/components/LivePreview/LivePreview.d.ts +1 -0
  251. package/dist/types/components/MethodAccordion/MethodAccordion.d.ts +2 -1
  252. package/dist/types/components/dialog/dialog.d.ts +4 -0
  253. package/dist/types/components/dialog/index.d.ts +1 -1
  254. package/dist/types/components/table/table.d.ts +2 -1
  255. package/dist/types/constants/methods.constant.d.ts +16 -0
  256. package/dist/types/helpers/docs.helper.d.ts +3 -0
  257. package/dist/types/index.d.ts +1 -0
  258. package/dist/types/layout/docsComponents/Codebox/Codebox.d.ts +4 -0
  259. package/dist/types/layout/docsComponents/DocsAside/DocsAside.d.ts +5 -0
  260. package/dist/types/layout/docsComponents/DocsContent/DocsContent.d.ts +6 -0
  261. package/dist/types/layout/docsComponents/DocsContent/EndpointPage/index.d.ts +4 -0
  262. package/dist/types/layout/docsComponents/DocsContent/TagPage/index.d.ts +4 -0
  263. package/dist/types/layout/docsComponents/DocsHeader/DocsHeader.d.ts +3 -0
  264. package/dist/types/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.d.ts +9 -0
  265. package/dist/types/layout/docsComponents/index.d.ts +17 -0
  266. package/dist/types/layout/docsLayout.d.ts +33 -0
  267. package/dist/types/layout/layout.d.ts +2 -1
  268. package/dist/types/types/layout.type.d.ts +1 -0
  269. package/dist/types/types/openApi.d.ts +4 -4
  270. package/dist/types/utils/index.d.ts +1 -0
  271. package/dist/types/validator/form.scheme.d.ts +10 -2
  272. package/package.json +46 -43
  273. package/rollup.config.js +37 -35
  274. package/src/assets/icons/AddRow.svg +3 -3
  275. package/src/assets/icons/ApiIcon.svg +12 -0
  276. package/src/assets/icons/ArrowBack.svg +3 -0
  277. package/src/assets/icons/BookIcon.svg +6 -0
  278. package/src/assets/icons/CheckMarkSquare.svg +5 -5
  279. package/src/assets/icons/CloseIcon.svg +4 -4
  280. package/src/assets/icons/CopySticker.svg +6 -0
  281. package/src/assets/icons/DeleteIcon.svg +3 -3
  282. package/src/assets/icons/DeleteOutlinedIcon.svg +8 -0
  283. package/src/assets/icons/DownArrow.svg +3 -3
  284. package/src/assets/icons/EditIcon.svg +3 -3
  285. package/src/assets/icons/FilterIcon.svg +4 -0
  286. package/src/assets/icons/Plus.svg +5 -0
  287. package/src/assets/icons/PlusSquare.svg +3 -0
  288. package/src/assets/icons/RequestOption.svg +5 -0
  289. package/src/assets/icons/UpArrow.svg +3 -3
  290. package/src/assets/icons/arrowDownGray.svg +3 -0
  291. package/src/assets/icons/arrowRightGray.svg +3 -0
  292. package/src/assets/icons/close-circle.svg +5 -0
  293. package/src/assets/icons/copy.svg +4 -0
  294. package/src/assets/icons/deleteOutlinedIcon.svg +8 -8
  295. package/src/assets/icons/document.svg +6 -0
  296. package/src/assets/icons/eye.svg +4 -0
  297. package/src/assets/icons/index.ts +24 -8
  298. package/src/assets/icons/infoIcon.svg +5 -0
  299. package/src/assets/icons/searchIcon.svg +4 -0
  300. package/src/components/Chips/Chips.tsx +87 -87
  301. package/src/components/Chips/style.scss +147 -147
  302. package/src/components/InfoForm/InfoForm.module.scss +165 -165
  303. package/src/components/InfoForm/InfoForm.tsx +423 -428
  304. package/src/components/JsonInput/JsonInput.tsx +149 -149
  305. package/src/components/JsonInput/style.module.scss +133 -133
  306. package/src/components/LivePreview/LivePreview.module.scss +180 -24
  307. package/src/components/LivePreview/LivePreview.tsx +226 -191
  308. package/src/components/MethodAccordion/MethodAccordion.module.scss +395 -338
  309. package/src/components/MethodAccordion/MethodAccordion.tsx +678 -514
  310. package/src/components/SVGLoader/SVGLoader.tsx +96 -94
  311. package/src/components/SectionHead/SectionHead.scss +29 -29
  312. package/src/components/SectionHead/SectionHead.tsx +22 -22
  313. package/src/components/SimpleLabelValue/SimpleLabelValue.tsx +31 -31
  314. package/src/components/SimpleLabelValue/index.ts +1 -1
  315. package/src/components/SimpleLabelValue/style.scss +30 -30
  316. package/src/components/Tooltip/Tooltip.scss +133 -133
  317. package/src/components/Tooltip/Tooltip.tsx +85 -85
  318. package/src/components/_global.scss +337 -337
  319. package/src/components/dialog/dialog.ts +58 -54
  320. package/src/components/dialog/index.tsx +89 -85
  321. package/src/components/dialog/style.scss +188 -104
  322. package/src/components/table/style.scss +217 -190
  323. package/src/components/table/table.tsx +493 -327
  324. package/src/components/table/tags-table.tsx +348 -348
  325. package/src/constants/index.ts +95 -93
  326. package/src/constants/methods.constant.ts +26 -0
  327. package/src/constants/regex.ts +7 -7
  328. package/src/global.d.ts +13 -13
  329. package/src/helpers/docs.helper.ts +28 -0
  330. package/src/helpers/layout.helper.ts +176 -174
  331. package/src/helpers/methodAccordion.helper.ts +19 -19
  332. package/src/index.ts +2 -1
  333. package/src/layout/docsComponents/Codebox/Codebox.tsx +61 -0
  334. package/src/layout/docsComponents/Codebox/style.module.scss +43 -0
  335. package/src/layout/docsComponents/DocsAside/DocsAside.tsx +94 -0
  336. package/src/layout/docsComponents/DocsAside/style.module.scss +113 -0
  337. package/src/layout/docsComponents/DocsContent/DocsContent.tsx +14 -0
  338. package/src/layout/docsComponents/DocsContent/EndpointPage/index.tsx +184 -0
  339. package/src/layout/docsComponents/DocsContent/EndpointPage/style.scss +230 -0
  340. package/src/layout/docsComponents/DocsContent/TagPage/index.tsx +82 -0
  341. package/src/layout/docsComponents/DocsContent/TagPage/style.scss +283 -0
  342. package/src/layout/docsComponents/DocsContent/style.scss +0 -0
  343. package/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss +271 -0
  344. package/src/layout/docsComponents/DocsHeader/DocsHeader.tsx +156 -0
  345. package/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.tsx +188 -0
  346. package/src/layout/docsComponents/DocsSideMenuTree/style.scss +195 -0
  347. package/src/layout/docsComponents/index.scss +49 -0
  348. package/src/layout/docsComponents/index.tsx +28 -0
  349. package/src/layout/docsLayout.tsx +72 -0
  350. package/src/layout/layout.module.css +65 -62
  351. package/src/layout/layout.tsx +162 -150
  352. package/src/types/layout.type.ts +31 -30
  353. package/src/types/openApi.ts +108 -108
  354. package/src/types/transformedOpenApi.ts +52 -52
  355. package/src/utils/index.ts +7 -0
  356. package/src/validator/form.scheme.ts +88 -70
  357. package/tsconfig.json +33 -33
  358. package/dist/_virtual/index20.js +0 -2
  359. package/dist/_virtual/index20.js.map +0 -1
  360. package/dist/_virtual/index21.js +0 -2
  361. package/dist/_virtual/index21.js.map +0 -1
  362. package/dist/_virtual/node2.js +0 -2
  363. package/dist/_virtual/node2.js.map +0 -1
  364. package/dist/_virtual/node3.js +0 -2
  365. package/dist/_virtual/node3.js.map +0 -1
  366. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js +0 -2
  367. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js.map +0 -1
  368. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js +0 -2
  369. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js.map +0 -1
  370. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/index.js +0 -2
  371. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/index.js.map +0 -1
  372. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/node.js +0 -2
  373. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/node.js.map +0 -1
  374. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js +0 -2
  375. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js.map +0 -1
  376. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js +0 -2
  377. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js.map +0 -1
  378. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode.js +0 -2
  379. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode.js.map +0 -1
  380. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js +0 -2
  381. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js.map +0 -1
  382. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/encode.js +0 -2
  383. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/encode.js.map +0 -1
  384. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/escape.js +0 -2
  385. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/escape.js.map +0 -1
  386. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js +0 -2
  387. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
  388. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js +0 -2
  389. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
  390. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js +0 -2
  391. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js.map +0 -1
  392. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/index.js +0 -2
  393. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/index.js.map +0 -1
  394. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/index.js +0 -2
  395. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/index.js.map +0 -1
  396. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/node.js +0 -2
  397. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/node.js.map +0 -1
  398. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js +0 -2
  399. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js.map +0 -1
  400. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js +0 -2
  401. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js.map +0 -1
  402. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/index.js +0 -2
  403. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/index.js.map +0 -1
  404. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js +0 -2
  405. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js.map +0 -1
  406. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js +0 -2
  407. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js.map +0 -1
  408. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/querying.js +0 -2
  409. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/querying.js.map +0 -1
  410. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js +0 -2
  411. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js.map +0 -1
  412. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js +0 -2
  413. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js.map +0 -1
  414. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -2
  415. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
  416. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +0 -2
  417. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +0 -1
  418. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -2
  419. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
  420. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -2
  421. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
  422. package/dist/src/assets/icons/CheckMarkSquare.svg.js +0 -2
  423. package/dist/src/assets/icons/CheckMarkSquare.svg.js.map +0 -1
  424. package/dist/src/assets/icons/CloseIcon.svg.js +0 -2
  425. package/dist/src/assets/icons/CloseIcon.svg.js.map +0 -1
  426. package/dist/src/assets/icons/deleteOutlinedIcon.svg.js +0 -2
  427. package/dist/src/assets/icons/deleteOutlinedIcon.svg.js.map +0 -1
  428. package/dist/src/components/Chips/Chips.js +0 -2
  429. package/dist/src/components/Chips/Chips.js.map +0 -1
  430. package/dist/types/types/index.d.ts +0 -18
@@ -1,150 +1,162 @@
1
- import { JSX, useEffect, useState } from 'react'
2
- import { Alert, Button } from 'digitinary-ui'
3
- import MethodsAccordion from '../components/MethodAccordion/MethodAccordion'
4
- import styles from './layout.module.css'
5
- import InfoForm from '../components/InfoForm/InfoForm'
6
- import SectionHead from '../components/SectionHead/SectionHead'
7
- import { transformOpenApiObject, transformOpenApiObjectToOrigin } from '../helpers/layout.helper'
8
- import { OpenAPIFile } from '../types/openApi'
9
- import LivePreview from '../components/LivePreview/LivePreview'
10
- import { FormikProvider, useFormik } from 'formik'
11
- import { schemaValidation } from '../validator/form.scheme'
12
- import { TransformedOpenApi } from '@entities/transformedOpenApi'
13
- import { methodColorMapping } from '../constants/index'
14
- import CommonDialog from '../components/dialog'
15
-
16
- interface ILayoutProps {
17
- openApiJson?: OpenAPIFile
18
- handleSave?: (values: unknown) => unknown
19
- setIsFormDirty?: any
20
- }
21
-
22
- const Layout = ({ openApiJson, handleSave, setIsFormDirty }: ILayoutProps): JSX.Element => {
23
- const clonedOpenApiJson = structuredClone(openApiJson)
24
- const transformedOpenApi = transformOpenApiObject(clonedOpenApiJson)
25
- const formik = useFormik<TransformedOpenApi>({
26
- initialValues: structuredClone(transformedOpenApi),
27
- validationSchema: schemaValidation,
28
- validateOnMount: true,
29
- onSubmit: (values, { validateForm, resetForm }) => {
30
- // Handle save logic
31
- const originalOpenApiForm = transformOpenApiObjectToOrigin(values)
32
- handleSave(originalOpenApiForm)
33
- resetForm({
34
- values: values, // You can reset it to the same values if you want
35
- })
36
-
37
- validateForm(values)
38
- },
39
- })
40
- const { dirty, isValid, isSubmitting, values, setFieldValue, handleSubmit } = formik
41
- const [isPublishDialogOpen, setIsPublishDialogOpen] = useState(false)
42
- const [openMethodIndex, setOpenMethodIndex] = useState<number | null>(null)
43
-
44
- useEffect(() => {
45
- if (setIsFormDirty) {
46
- setIsFormDirty(dirty)
47
- }
48
- }, [dirty])
49
-
50
- return (
51
- <div className={styles.docsLayout}>
52
- {dirty && (
53
- <Alert className={styles.apiDocAlert} color="warning" severity="warning">
54
- There are changes you made may not be saved
55
- </Alert>
56
- )}
57
- <div className={styles.layoutContainer}>
58
- <div className={`${styles.editorSide} ${styles.docSide}`}>
59
- <SectionHead
60
- className={styles.editorSectionHead}
61
- text={
62
- <div className={styles.editorSectionHead_content}>
63
- API Information
64
- <Button
65
- className={styles.methodForm_submitBtn}
66
- size="medium"
67
- fullWidth={false}
68
- type="submit"
69
- variant="contained"
70
- color="primary"
71
- onClick={() => setIsPublishDialogOpen(true)}
72
- disabled={!isValid || isSubmitting || !dirty}
73
- >
74
- Save
75
- </Button>
76
- </div>
77
- }
78
- />
79
- <FormikProvider value={formik}>
80
- <InfoForm />
81
- </FormikProvider>
82
- <SectionHead className={styles.editorSectionHead} text="Endpoints" />
83
- <FormikProvider value={formik}>
84
- {values.paths.map((path, pathIndex) => (
85
- <>
86
- {path.methods
87
- .sort(
88
- (a, b) => methodColorMapping[a.type].order - methodColorMapping[b.type].order
89
- )
90
- .map((method, methodIndex) => (
91
- <MethodsAccordion
92
- tags={values.tags}
93
- method={method}
94
- path={path.path}
95
- setFieldValue={(key, value) => {
96
- const h = `paths[${pathIndex}].methods[${methodIndex}].${key}`
97
- setFieldValue(h, value)
98
- }}
99
- isOpen={openMethodIndex === methodIndex}
100
- setIsOpen={(open) => setOpenMethodIndex(open ? methodIndex : null)}
101
- />
102
- ))}
103
- </>
104
- ))}
105
- </FormikProvider>
106
- </div>
107
- <div className={`${styles.livePreviewSide} ${styles.docSide}`}>
108
- {transformedOpenApi && (
109
- <FormikProvider value={formik}>
110
- <LivePreview transformedData={transformedOpenApi} />
111
- </FormikProvider>
112
- )}
113
- </div>
114
- </div>
115
- <CommonDialog
116
- status="warning"
117
- content={
118
- <p
119
- style={{
120
- textAlign: 'center',
121
- fontWeight: 400,
122
- fontSize: '1rem',
123
- lineHeight: '1.4375rem',
124
- }}
125
- >
126
- Are you sure you want to Publish your changes?
127
- </p>
128
- }
129
- onSubmit={{
130
- onClick: () => {
131
- handleSubmit()
132
- setIsPublishDialogOpen(false)
133
- },
134
- text: 'Publish',
135
- color: 'warning',
136
- fullWidth: true,
137
- }}
138
- onCancel={{
139
- text: 'Cancel',
140
- color: 'normal',
141
- fullWidth: true,
142
- }}
143
- onClose={() => setIsPublishDialogOpen(false)}
144
- open={isPublishDialogOpen}
145
- />
146
- </div>
147
- )
148
- }
149
-
150
- export default Layout
1
+ import { JSX, useEffect, useState } from 'react'
2
+ import { Alert, Button } from 'digitinary-ui'
3
+ import MethodsAccordion from '../components/MethodAccordion/MethodAccordion'
4
+ import styles from './layout.module.css'
5
+ import InfoForm from '../components/InfoForm/InfoForm'
6
+ import SectionHead from '../components/SectionHead/SectionHead'
7
+ import { transformOpenApiObject, transformOpenApiObjectToOrigin } from '../helpers/layout.helper'
8
+ import { OpenAPIFile } from '../types/openApi'
9
+ import LivePreview from '../components/LivePreview/LivePreview'
10
+ import { FormikProvider, useFormik } from 'formik'
11
+ import { schemaValidation } from '../validator/form.scheme'
12
+ import { TransformedOpenApi } from '@entities/transformedOpenApi'
13
+ import { methodColorMapping } from '../constants/index'
14
+ import CommonDialog from '../components/dialog'
15
+
16
+ interface ILayoutProps {
17
+ openApiJson?: OpenAPIFile
18
+ handleSave?: (values: unknown) => unknown
19
+ setIsFormDirty?: any
20
+ openApiErrors?: any
21
+ }
22
+
23
+ const Layout = ({ openApiJson, handleSave, setIsFormDirty, openApiErrors }: ILayoutProps): JSX.Element => {
24
+ const clonedOpenApiJson = structuredClone(openApiJson)
25
+ const transformedOpenApi = transformOpenApiObject(clonedOpenApiJson)
26
+ const formik = useFormik<TransformedOpenApi>({
27
+ initialValues: structuredClone(transformedOpenApi),
28
+ validationSchema: schemaValidation,
29
+ validateOnMount: true,
30
+ onSubmit: (values, { validateForm, resetForm }) => {
31
+ // Handle save logic
32
+ const originalOpenApiForm = transformOpenApiObjectToOrigin(values)
33
+ handleSave(originalOpenApiForm)
34
+ resetForm({
35
+ values: values, // You can reset it to the same values if you want
36
+ })
37
+
38
+ validateForm(values)
39
+ },
40
+ })
41
+ const { dirty, isValid, isSubmitting, values, setFieldValue, handleSubmit } = formik
42
+ const [isPublishDialogOpen, setIsPublishDialogOpen] = useState(false)
43
+ const [openMethodIndex, setOpenMethodIndex] = useState<number | null>(null)
44
+
45
+ useEffect(() => {
46
+ if (setIsFormDirty) {
47
+ setIsFormDirty(dirty)
48
+ }
49
+ }, [dirty])
50
+
51
+ return (
52
+ <div className={styles.docsLayout}>
53
+ {dirty && (
54
+ <Alert className={styles.apiDocAlert} color="warning" severity="warning">
55
+ There are changes you made may not be saved
56
+ </Alert>
57
+ )}
58
+ <div className={styles.layoutContainer}>
59
+ <div className={`${styles.editorSide} ${styles.docSide}`}>
60
+ <SectionHead
61
+ className={styles.editorSectionHead_title}
62
+ text={
63
+ <div className={styles.editorSectionHead_content}>
64
+ API Documentation
65
+ <Button
66
+ className={styles.methodForm_submitBtn}
67
+ size="medium"
68
+ fullWidth={false}
69
+ type="submit"
70
+ variant="contained"
71
+ color="primary"
72
+ onClick={() => setIsPublishDialogOpen(true)}
73
+ disabled={!isValid || isSubmitting || !dirty}
74
+ >
75
+ Save
76
+ </Button>
77
+ </div>
78
+ }
79
+ />
80
+ <FormikProvider value={formik}>
81
+ <InfoForm />
82
+ </FormikProvider>
83
+ <SectionHead className={styles.editorSectionHead} text="Endpoints" />
84
+ <FormikProvider value={formik}>
85
+ {values.paths.map((path, pathIndex) => (
86
+ <>
87
+ {path.methods
88
+ .sort(
89
+ (a, b) => methodColorMapping[a.type].order - methodColorMapping[b.type].order
90
+ )
91
+ .map((method, methodIndex) => (
92
+ <MethodsAccordion
93
+ tags={values.tags}
94
+ method={method}
95
+ path={path.path}
96
+ setFieldValue={(key, value) => {
97
+ const h = `paths[${pathIndex}].methods[${methodIndex}].${key}`
98
+ setFieldValue(h, value)
99
+ }}
100
+ isOpen={openMethodIndex === methodIndex}
101
+ setIsOpen={(open) => setOpenMethodIndex(open ? methodIndex : null)}
102
+ errors={(formik.errors.paths?.[pathIndex] as any)?.methods?.[methodIndex]}
103
+ />
104
+ ))}
105
+ </>
106
+ ))}
107
+ </FormikProvider>
108
+ </div>
109
+ <div className={`${styles.livePreviewSide} ${styles.docSide}`}>
110
+ {transformedOpenApi && (
111
+ <FormikProvider value={formik}>
112
+ <LivePreview transformedData={transformedOpenApi} openApiErrors={openApiErrors}/>
113
+ </FormikProvider>
114
+ )}
115
+ </div>
116
+ </div>
117
+ <CommonDialog
118
+ status="warning"
119
+ content={
120
+ <>
121
+ <h5 style={{
122
+ fontWeight: 600,
123
+ fontSize: '1.5rem',
124
+ lineHeight: '1.875rem',
125
+ color: '#FAAD14',
126
+ textAlign: 'center',
127
+ margin: 0
128
+ }}>Publish Changes</h5>
129
+ <p
130
+ style={{
131
+ textAlign: 'center',
132
+ fontWeight: 400,
133
+ fontSize: '1rem',
134
+ lineHeight: '1.4375rem',
135
+ }}
136
+ >
137
+ Are you sure to Publish the changes?
138
+ </p>
139
+ </>
140
+ }
141
+ onSubmit={{
142
+ onClick: () => {
143
+ handleSubmit()
144
+ setIsPublishDialogOpen(false)
145
+ },
146
+ text: 'Publish',
147
+ color: 'warning',
148
+ fullWidth: true,
149
+ }}
150
+ onCancel={{
151
+ text: 'Cancel',
152
+ color: 'action',
153
+ fullWidth: true,
154
+ }}
155
+ onClose={() => setIsPublishDialogOpen(false)}
156
+ open={isPublishDialogOpen}
157
+ />
158
+ </div>
159
+ )
160
+ }
161
+
162
+ export default Layout
@@ -1,30 +1,31 @@
1
- import { HTTPMethod } from './openApi'
2
-
3
- export type TransformedMethod = {
4
- type: HTTPMethod
5
- tags: string[]
6
- parameters: any
7
- requestBody: {
8
- content: {
9
- contentType: string
10
- schema: {
11
- properties: string
12
- type: string
13
- }
14
- }
15
- }
16
- responses: {
17
- code: string
18
- content: {
19
- contentType?: string
20
- schema?: unknown
21
- }
22
- }[]
23
- }
24
-
25
- export type TransformedPath = {
26
- path: string
27
- methods: TransformedMethod[]
28
- }
29
-
30
- export type TransformedPathsArray = TransformedPath[]
1
+ import { HTTPMethod } from './openApi'
2
+
3
+ export type TransformedMethod = {
4
+ type: HTTPMethod
5
+ tags: string[]
6
+ summary?: string
7
+ parameters: any
8
+ requestBody: {
9
+ content: {
10
+ contentType: string
11
+ schema: {
12
+ properties: string
13
+ type: string
14
+ }
15
+ }
16
+ }
17
+ responses: {
18
+ code: string
19
+ content: {
20
+ contentType?: string
21
+ schema?: unknown
22
+ }
23
+ }[]
24
+ }
25
+
26
+ export type TransformedPath = {
27
+ path: string
28
+ methods: TransformedMethod[]
29
+ }
30
+
31
+ export type TransformedPathsArray = TransformedPath[]
@@ -1,108 +1,108 @@
1
- export interface OpenAPIFile {
2
- openapi: string
3
- info: {
4
- title: string
5
- description?: string
6
- version: string
7
- }
8
- servers?: {
9
- url: string
10
- description?: string
11
- }[]
12
- paths: {
13
- [path: string]: Partial<
14
- Record<
15
- HTTPMethod,
16
- {
17
- tags: string[]
18
- responses: Responses
19
- summary?: string
20
- description?: string
21
- parameters?: Parameter[]
22
- requestBody?: RequestBody
23
- }
24
- >
25
- >
26
- }
27
- components?: {
28
- schemas?: {
29
- [schemaName: string]: Schema
30
- }
31
- securitySchemes?: {
32
- [schemeName: string]: SecurityScheme
33
- }
34
- }
35
- security?: {
36
- [schemeName: string]: string[]
37
- }[]
38
- tags?: {
39
- name: string
40
- description?: string
41
- externalDocs?: {
42
- url: string
43
- description: string
44
- }[]
45
- }[]
46
- }
47
-
48
- export interface Tags {
49
- name: string
50
- description?: string
51
- externalDocs?: {
52
- url: string
53
- description: string
54
- }[]
55
- }
56
-
57
- interface Parameter {
58
- name: string
59
- in: 'query' | 'header' | 'path' | 'cookie'
60
- description?: string
61
- required: boolean
62
- schema: Schema
63
- }
64
-
65
- interface RequestBody {
66
- description?: string
67
- required: boolean
68
- content: {
69
- [contentType: string]: {
70
- schema: Schema
71
- }
72
- }
73
- }
74
-
75
- interface Responses {
76
- [statusCode: string]: {
77
- description: string
78
- content?: {
79
- [contentType: string]: {
80
- schema: Schema
81
- }
82
- }
83
- }
84
- }
85
-
86
- interface Schema {
87
- type?: string
88
- format?: string
89
- properties?: {
90
- [propertyName: string]: Schema
91
- }
92
- items?: Schema
93
- enum?: string[]
94
- required?: string[]
95
- }
96
-
97
- export interface SecurityScheme {
98
- type: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect'
99
- description?: string
100
- name?: string
101
- in?: 'query' | 'header' | 'cookie'
102
- scheme?: string
103
- bearerFormat?: string
104
- flows?: any
105
- openIdConnectUrl?: string
106
- }
107
-
108
- export type HTTPMethod = 'get' | 'put' | 'post' | 'delete' | 'options' | 'head' | 'patch' | 'trace'
1
+ export interface OpenAPIFile {
2
+ openapi: string
3
+ info: {
4
+ title: string
5
+ description: string
6
+ version: string
7
+ }
8
+ servers?: {
9
+ url: string
10
+ description?: string
11
+ }[]
12
+ paths: {
13
+ [path: string]: Partial<
14
+ Record<
15
+ HTTPMethod,
16
+ {
17
+ tags: string[]
18
+ responses: Responses
19
+ summary?: string
20
+ description?: string
21
+ parameters?: Parameter[]
22
+ requestBody?: RequestBody
23
+ }
24
+ >
25
+ >
26
+ }
27
+ components?: {
28
+ schemas?: {
29
+ [schemaName: string]: Schema
30
+ }
31
+ securitySchemes?: {
32
+ [schemeName: string]: SecurityScheme
33
+ }
34
+ }
35
+ security?: {
36
+ [schemeName: string]: string[]
37
+ }[]
38
+ tags?: {
39
+ name: string
40
+ description?: string
41
+ externalDocs?: {
42
+ url: string
43
+ description: string
44
+ }[]
45
+ }[]
46
+ }
47
+
48
+ export interface Tags {
49
+ name: string
50
+ description?: string
51
+ externalDocs?: {
52
+ url: string
53
+ description: string
54
+ }[]
55
+ }
56
+
57
+ export interface Parameter {
58
+ name: string
59
+ in: 'query' | 'header' | 'path' | 'cookie'
60
+ description?: string
61
+ required: boolean
62
+ schema: Schema
63
+ }
64
+
65
+ export interface RequestBody {
66
+ description?: string
67
+ required: boolean
68
+ content: {
69
+ [contentType: string]: {
70
+ schema: Schema
71
+ }
72
+ }
73
+ }
74
+
75
+ export interface Responses {
76
+ [statusCode: string]: {
77
+ description: string
78
+ content?: {
79
+ [contentType: string]: {
80
+ schema: Schema
81
+ }
82
+ }
83
+ }
84
+ }
85
+
86
+ interface Schema {
87
+ type?: string
88
+ format?: string
89
+ properties?: {
90
+ [propertyName: string]: Schema
91
+ }
92
+ items?: Schema
93
+ enum?: string[]
94
+ required?: string[]
95
+ }
96
+
97
+ export interface SecurityScheme {
98
+ type: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect'
99
+ description?: string
100
+ name?: string
101
+ in?: 'query' | 'header' | 'cookie'
102
+ scheme?: string
103
+ bearerFormat?: string
104
+ flows?: any
105
+ openIdConnectUrl?: string
106
+ }
107
+
108
+ export type HTTPMethod = 'get' | 'put' | 'post' | 'delete' | 'options' | 'head' | 'patch' | 'trace'