@digi-frontend/dgate-api-documentation 1.0.1 → 1.0.5

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 (475) hide show
  1. package/.editorconfig +12 -12
  2. package/.prettierignore +7 -7
  3. package/.prettierrc +15 -15
  4. package/dist/{2e10bbdb265df50e.svg → 43595976d1fdccbf.svg} +4 -4
  5. package/dist/{8789eb84283ea95b.svg → 56dc416b683db280.svg} +5 -5
  6. package/dist/{bb8b87cace25e052.svg → 64efc2716808c4a4.svg} +3 -3
  7. package/dist/{d32ce84bbd78babd.svg → 72db3b05a96dd600.svg} +3 -3
  8. package/dist/{d501922060662842.svg → 844eba3f2e42a9eb.svg} +3 -3
  9. package/dist/_virtual/index10.js +1 -1
  10. package/dist/_virtual/index21.js +2 -0
  11. package/dist/_virtual/index21.js.map +1 -0
  12. package/dist/_virtual/index3.js +1 -1
  13. package/dist/_virtual/index5.js +1 -1
  14. package/dist/_virtual/index6.js +1 -1
  15. package/dist/_virtual/index7.js +1 -1
  16. package/dist/_virtual/index8.js +1 -1
  17. package/dist/_virtual/index9.js +1 -1
  18. package/dist/_virtual/node2.js +2 -0
  19. package/dist/_virtual/node2.js.map +1 -0
  20. package/dist/_virtual/node3.js +2 -0
  21. package/dist/_virtual/node3.js.map +1 -0
  22. package/dist/{070dc6ecd197bc80.svg → a7568b270e175038.svg} +8 -8
  23. package/dist/{9bdff13f8d8fa48a.svg → af16a554be8c4d69.svg} +3 -3
  24. package/dist/{7f54eeb0bb2d1150.svg → b82c7612e73342f3.svg} +3 -3
  25. package/dist/node_modules/digitinary-ui/dist/index.js +1 -1
  26. package/dist/node_modules/digitinary-ui/dist/index.js.map +1 -1
  27. package/dist/node_modules/domelementtype/lib/index.js +1 -1
  28. package/dist/node_modules/formik/dist/formik.esm.js +1 -1
  29. package/dist/node_modules/html-dom-parser/lib/index.js +1 -1
  30. package/dist/node_modules/html-dom-parser/lib/server/html-to-dom.js +1 -1
  31. package/dist/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -1
  32. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js +2 -0
  33. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js.map +1 -0
  34. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js +2 -0
  35. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js.map +1 -0
  36. package/dist/node_modules/html-react-parser/esm/index.mjs.js +1 -1
  37. package/dist/node_modules/html-react-parser/esm/index.mjs.js.map +1 -1
  38. package/dist/node_modules/html-react-parser/lib/index.js +1 -1
  39. package/dist/node_modules/html-react-parser/lib/index.js.map +1 -1
  40. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/index.js +2 -0
  41. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/index.js.map +1 -0
  42. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/node.js +2 -0
  43. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/node.js.map +1 -0
  44. package/dist/node_modules/htmlparser2/dist/commonjs/Parser.js +1 -1
  45. package/dist/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -1
  46. package/dist/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +1 -1
  47. package/dist/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -1
  48. package/dist/node_modules/htmlparser2/dist/commonjs/index.js +1 -1
  49. package/dist/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -1
  50. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js +2 -0
  51. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
  52. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js +2 -0
  53. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js.map +1 -0
  54. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode.js +2 -0
  55. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode.js.map +1 -0
  56. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js +2 -0
  57. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  58. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/encode.js +2 -0
  59. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/encode.js.map +1 -0
  60. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/escape.js +2 -0
  61. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/escape.js.map +1 -0
  62. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js +2 -0
  63. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  64. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js +2 -0
  65. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  66. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js +2 -0
  67. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  68. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/index.js +2 -0
  69. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/index.js.map +1 -0
  70. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/index.js +2 -0
  71. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/index.js.map +1 -0
  72. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/node.js +2 -0
  73. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/node.js.map +1 -0
  74. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js +2 -0
  75. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js.map +1 -0
  76. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js +2 -0
  77. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js.map +1 -0
  78. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/index.js +2 -0
  79. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/index.js.map +1 -0
  80. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js +2 -0
  81. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js.map +1 -0
  82. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js +2 -0
  83. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js.map +1 -0
  84. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/querying.js +2 -0
  85. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/querying.js.map +1 -0
  86. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js +2 -0
  87. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js.map +1 -0
  88. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js +2 -0
  89. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js.map +1 -0
  90. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +2 -0
  91. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  92. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +2 -0
  93. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  94. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +2 -0
  95. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  96. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +2 -0
  97. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  98. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +1 -1
  99. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
  100. package/dist/node_modules/react-fast-compare/index.js +1 -1
  101. package/dist/node_modules/react-fast-compare/index.js.map +1 -1
  102. package/dist/node_modules/react-is/index.js +1 -1
  103. package/dist/node_modules/react-property/lib/index.js +1 -1
  104. package/dist/node_modules/react-property/lib/index.js.map +1 -1
  105. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  106. package/dist/node_modules/toposort/index.js +1 -1
  107. package/dist/node_modules/yup/index.esm.js +1 -1
  108. package/dist/node_modules/yup/index.esm.js.map +1 -1
  109. package/dist/src/assets/icons/AddRow.svg.js +1 -1
  110. package/dist/src/assets/icons/AddRow.svg.js.map +1 -1
  111. package/dist/src/assets/icons/CheckMarkSquare.svg.js +2 -0
  112. package/dist/src/assets/icons/CheckMarkSquare.svg.js.map +1 -0
  113. package/dist/src/assets/icons/CloseIcon.svg.js +1 -1
  114. package/dist/src/assets/icons/CloseIcon.svg.js.map +1 -1
  115. package/dist/src/assets/icons/DeleteIcon.svg.js +1 -1
  116. package/dist/src/assets/icons/DeleteIcon.svg.js.map +1 -1
  117. package/dist/src/assets/icons/DownArrow.svg.js +1 -1
  118. package/dist/src/assets/icons/DownArrow.svg.js.map +1 -1
  119. package/dist/src/assets/icons/EditIcon.svg.js +1 -1
  120. package/dist/src/assets/icons/EditIcon.svg.js.map +1 -1
  121. package/dist/src/assets/icons/UpArrow.svg.js +1 -1
  122. package/dist/src/assets/icons/UpArrow.svg.js.map +1 -1
  123. package/dist/src/assets/icons/deleteOutlinedIcon.svg.js +2 -0
  124. package/dist/src/assets/icons/deleteOutlinedIcon.svg.js.map +1 -0
  125. package/dist/src/components/Chips/Chips.js +2 -0
  126. package/dist/src/components/Chips/Chips.js.map +1 -0
  127. package/dist/src/components/InfoForm/InfoForm.js +1 -1
  128. package/dist/src/components/InfoForm/InfoForm.js.map +1 -1
  129. package/dist/src/components/JsonInput/JsonInput.js +1 -1
  130. package/dist/src/components/JsonInput/JsonInput.js.map +1 -1
  131. package/dist/src/components/LivePreview/LivePreview.js +1 -1
  132. package/dist/src/components/LivePreview/LivePreview.js.map +1 -1
  133. package/dist/src/components/MethodAccordion/MethodAccordion.js +1 -1
  134. package/dist/src/components/MethodAccordion/MethodAccordion.js.map +1 -1
  135. package/dist/src/components/SVGLoader/SVGLoader.js.map +1 -1
  136. package/dist/src/components/SectionHead/SectionHead.js.map +1 -1
  137. package/dist/src/components/SimpleLabelValue/SimpleLabelValue.js.map +1 -1
  138. package/dist/src/components/Tooltip/Tooltip.js.map +1 -1
  139. package/dist/src/components/dialog/index.js +1 -1
  140. package/dist/src/components/dialog/index.js.map +1 -1
  141. package/dist/src/components/table/table.js +1 -1
  142. package/dist/src/components/table/table.js.map +1 -1
  143. package/dist/src/constants/index.js +1 -1
  144. package/dist/src/constants/index.js.map +1 -1
  145. package/dist/src/constants/regex.js +1 -1
  146. package/dist/src/constants/regex.js.map +1 -1
  147. package/dist/src/helpers/layout.helper.js +1 -1
  148. package/dist/src/helpers/layout.helper.js.map +1 -1
  149. package/dist/src/helpers/methodAccordion.helper.js.map +1 -1
  150. package/dist/src/index.js +1 -1
  151. package/dist/src/layout/layout.js +1 -1
  152. package/dist/src/layout/layout.js.map +1 -1
  153. package/dist/src/layout/layout.module.css.js +1 -1
  154. package/dist/src/validator/form.scheme.js +1 -1
  155. package/dist/src/validator/form.scheme.js.map +1 -1
  156. package/dist/styles.css +430 -1863
  157. package/dist/types/assets/icons/index.d.ts +1 -17
  158. package/dist/types/components/InfoForm/InfoForm.d.ts +1 -3
  159. package/dist/types/components/JsonInput/JsonInput.d.ts +1 -2
  160. package/dist/types/components/LivePreview/LivePreview.d.ts +0 -1
  161. package/dist/types/components/MethodAccordion/MethodAccordion.d.ts +2 -7
  162. package/dist/types/components/Tooltip/Tooltip.d.ts +2 -2
  163. package/dist/types/components/dialog/dialog.d.ts +0 -6
  164. package/dist/types/components/dialog/index.d.ts +1 -1
  165. package/dist/types/components/table/table.d.ts +1 -2
  166. package/dist/types/constants/index.d.ts +0 -11
  167. package/dist/types/constants/regex.d.ts +0 -2
  168. package/dist/types/index.d.ts +0 -1
  169. package/dist/types/layout/layout.d.ts +1 -4
  170. package/dist/types/types/layout.type.d.ts +1 -3
  171. package/dist/types/types/openApi.d.ts +4 -17
  172. package/dist/types/validator/form.scheme.d.ts +3 -12
  173. package/package.json +43 -47
  174. package/rollup.config.js +35 -37
  175. package/src/assets/icons/AddRow.svg +3 -3
  176. package/src/assets/icons/CheckMarkSquare.svg +5 -5
  177. package/src/assets/icons/CloseIcon.svg +4 -4
  178. package/src/assets/icons/DeleteIcon.svg +3 -3
  179. package/src/assets/icons/DownArrow.svg +3 -3
  180. package/src/assets/icons/EditIcon.svg +3 -3
  181. package/src/assets/icons/UpArrow.svg +3 -3
  182. package/src/assets/icons/deleteOutlinedIcon.svg +8 -8
  183. package/src/assets/icons/index.ts +8 -24
  184. package/src/components/Chips/Chips.tsx +87 -87
  185. package/src/components/Chips/style.scss +147 -147
  186. package/src/components/InfoForm/InfoForm.module.scss +15 -165
  187. package/src/components/InfoForm/InfoForm.tsx +124 -424
  188. package/src/components/JsonInput/JsonInput.tsx +124 -149
  189. package/src/components/JsonInput/style.module.scss +123 -133
  190. package/src/components/LivePreview/LivePreview.module.scss +5 -181
  191. package/src/components/LivePreview/LivePreview.tsx +80 -224
  192. package/src/components/MethodAccordion/MethodAccordion.module.scss +294 -399
  193. package/src/components/MethodAccordion/MethodAccordion.tsx +401 -1063
  194. package/src/components/SVGLoader/SVGLoader.tsx +94 -96
  195. package/src/components/SectionHead/SectionHead.scss +29 -29
  196. package/src/components/SectionHead/SectionHead.tsx +22 -22
  197. package/src/components/SimpleLabelValue/SimpleLabelValue.tsx +31 -31
  198. package/src/components/SimpleLabelValue/index.ts +1 -1
  199. package/src/components/SimpleLabelValue/style.scss +30 -30
  200. package/src/components/Tooltip/Tooltip.scss +130 -133
  201. package/src/components/Tooltip/Tooltip.tsx +86 -85
  202. package/src/components/_global.scss +337 -337
  203. package/src/components/dialog/dialog.ts +54 -61
  204. package/src/components/dialog/index.tsx +85 -88
  205. package/src/components/dialog/style.scss +104 -188
  206. package/src/components/table/style.scss +179 -223
  207. package/src/components/table/table.tsx +307 -490
  208. package/src/constants/index.ts +74 -95
  209. package/src/constants/regex.ts +5 -7
  210. package/src/global.d.ts +13 -13
  211. package/src/helpers/layout.helper.ts +147 -187
  212. package/src/helpers/methodAccordion.helper.ts +19 -19
  213. package/src/index.ts +1 -2
  214. package/src/layout/layout.module.css +56 -65
  215. package/src/layout/layout.tsx +99 -181
  216. package/src/types/index.ts +0 -28
  217. package/src/types/layout.type.ts +30 -32
  218. package/src/types/openApi.ts +95 -109
  219. package/src/types/transformedOpenApi.ts +52 -52
  220. package/src/validator/form.scheme.ts +70 -96
  221. package/tsconfig.json +33 -33
  222. package/dist/16702d92fd6d1730.svg +0 -6
  223. package/dist/2b546d6e9fdf604a.svg +0 -3
  224. package/dist/2c3c6c2c3b835504.svg +0 -5
  225. package/dist/55b5994c5781482b.svg +0 -5
  226. package/dist/60bef8083c55f46b.svg +0 -6
  227. package/dist/68c710e0583e19e6.svg +0 -5
  228. package/dist/731221b3f242672d.svg +0 -4
  229. package/dist/8520b6792278d9df.svg +0 -6
  230. package/dist/9506ef7a26a74147.svg +0 -12
  231. package/dist/9b7aee27757b5036.svg +0 -3
  232. package/dist/_virtual/core.js +0 -2
  233. package/dist/_virtual/core.js.map +0 -1
  234. package/dist/_virtual/core2.js +0 -2
  235. package/dist/_virtual/core2.js.map +0 -1
  236. package/dist/_virtual/format.js +0 -2
  237. package/dist/_virtual/format.js.map +0 -1
  238. package/dist/_virtual/json.js +0 -2
  239. package/dist/_virtual/json.js.map +0 -1
  240. package/dist/cceb1e5dc06b0b85.svg +0 -4
  241. package/dist/d140a601c85bac25.svg +0 -3
  242. package/dist/d6d0a98ec38e6b77.svg +0 -3
  243. package/dist/e04479ad425e7d58.svg +0 -4
  244. package/dist/f4452c3ebcf0d5da.svg +0 -4
  245. package/dist/f4a32992f02af522.svg +0 -5
  246. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -2
  247. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +0 -1
  248. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -2
  249. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +0 -1
  250. package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -2
  251. package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +0 -1
  252. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -2
  253. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  254. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -2
  255. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +0 -1
  256. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -2
  257. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +0 -1
  258. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -2
  259. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +0 -1
  260. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -2
  261. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
  262. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -2
  263. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +0 -1
  264. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -2
  265. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +0 -1
  266. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -2
  267. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +0 -1
  268. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -2
  269. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +0 -1
  270. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -2
  271. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +0 -1
  272. package/dist/node_modules/dom-serializer/lib/foreignNames.js +0 -2
  273. package/dist/node_modules/dom-serializer/lib/foreignNames.js.map +0 -1
  274. package/dist/node_modules/dom-serializer/lib/index.js +0 -2
  275. package/dist/node_modules/dom-serializer/lib/index.js.map +0 -1
  276. package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode.js +0 -2
  277. package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode.js.map +0 -1
  278. package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js +0 -2
  279. package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js.map +0 -1
  280. package/dist/node_modules/dom-serializer/node_modules/entities/lib/encode.js +0 -2
  281. package/dist/node_modules/dom-serializer/node_modules/entities/lib/encode.js.map +0 -1
  282. package/dist/node_modules/dom-serializer/node_modules/entities/lib/escape.js +0 -2
  283. package/dist/node_modules/dom-serializer/node_modules/entities/lib/escape.js.map +0 -1
  284. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js +0 -2
  285. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
  286. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js +0 -2
  287. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
  288. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js +0 -2
  289. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js.map +0 -1
  290. package/dist/node_modules/dom-serializer/node_modules/entities/lib/index.js +0 -2
  291. package/dist/node_modules/dom-serializer/node_modules/entities/lib/index.js.map +0 -1
  292. package/dist/node_modules/domhandler/lib/index.js +0 -2
  293. package/dist/node_modules/domhandler/lib/index.js.map +0 -1
  294. package/dist/node_modules/domhandler/lib/node.js +0 -2
  295. package/dist/node_modules/domhandler/lib/node.js.map +0 -1
  296. package/dist/node_modules/domutils/lib/feeds.js +0 -2
  297. package/dist/node_modules/domutils/lib/feeds.js.map +0 -1
  298. package/dist/node_modules/domutils/lib/helpers.js +0 -2
  299. package/dist/node_modules/domutils/lib/helpers.js.map +0 -1
  300. package/dist/node_modules/domutils/lib/index.js +0 -2
  301. package/dist/node_modules/domutils/lib/index.js.map +0 -1
  302. package/dist/node_modules/domutils/lib/legacy.js +0 -2
  303. package/dist/node_modules/domutils/lib/legacy.js.map +0 -1
  304. package/dist/node_modules/domutils/lib/manipulation.js +0 -2
  305. package/dist/node_modules/domutils/lib/manipulation.js.map +0 -1
  306. package/dist/node_modules/domutils/lib/querying.js +0 -2
  307. package/dist/node_modules/domutils/lib/querying.js.map +0 -1
  308. package/dist/node_modules/domutils/lib/stringify.js +0 -2
  309. package/dist/node_modules/domutils/lib/stringify.js.map +0 -1
  310. package/dist/node_modules/domutils/lib/traversal.js +0 -2
  311. package/dist/node_modules/domutils/lib/traversal.js.map +0 -1
  312. package/dist/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -2
  313. package/dist/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
  314. package/dist/node_modules/entities/dist/commonjs/decode.js +0 -2
  315. package/dist/node_modules/entities/dist/commonjs/decode.js.map +0 -1
  316. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -2
  317. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
  318. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -2
  319. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
  320. package/dist/node_modules/fast-json-stable-stringify/index.js +0 -2
  321. package/dist/node_modules/fast-json-stable-stringify/index.js.map +0 -1
  322. package/dist/node_modules/fault/index.js +0 -2
  323. package/dist/node_modules/fault/index.js.map +0 -1
  324. package/dist/node_modules/format/format.js +0 -2
  325. package/dist/node_modules/format/format.js.map +0 -1
  326. package/dist/node_modules/highlight.js/lib/core.js +0 -2
  327. package/dist/node_modules/highlight.js/lib/core.js.map +0 -1
  328. package/dist/node_modules/highlight.js/lib/languages/json.js +0 -2
  329. package/dist/node_modules/highlight.js/lib/languages/json.js.map +0 -1
  330. package/dist/node_modules/lowlight/lib/core.js +0 -2
  331. package/dist/node_modules/lowlight/lib/core.js.map +0 -1
  332. package/dist/node_modules/nanoid/index.js +0 -2
  333. package/dist/node_modules/nanoid/index.js.map +0 -1
  334. package/dist/node_modules/nanoid/url-alphabet/index.js +0 -2
  335. package/dist/node_modules/nanoid/url-alphabet/index.js.map +0 -1
  336. package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js +0 -2
  337. package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js.map +0 -1
  338. package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js +0 -2
  339. package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js.map +0 -1
  340. package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js +0 -2
  341. package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js.map +0 -1
  342. package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/hljs/json.js +0 -2
  343. package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/hljs/json.js.map +0 -1
  344. package/dist/node_modules/react-syntax-highlighter/dist/esm/light.js +0 -2
  345. package/dist/node_modules/react-syntax-highlighter/dist/esm/light.js.map +0 -1
  346. package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-dark.js +0 -2
  347. package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-dark.js.map +0 -1
  348. package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-light.js +0 -2
  349. package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-light.js.map +0 -1
  350. package/dist/src/assets/icons/ApiIcon.svg.js +0 -2
  351. package/dist/src/assets/icons/ApiIcon.svg.js.map +0 -1
  352. package/dist/src/assets/icons/ArrowBack.svg.js +0 -2
  353. package/dist/src/assets/icons/ArrowBack.svg.js.map +0 -1
  354. package/dist/src/assets/icons/BookIcon.svg.js +0 -2
  355. package/dist/src/assets/icons/BookIcon.svg.js.map +0 -1
  356. package/dist/src/assets/icons/CopySticker.svg.js +0 -2
  357. package/dist/src/assets/icons/CopySticker.svg.js.map +0 -1
  358. package/dist/src/assets/icons/DeleteOutlinedIcon.svg.js +0 -2
  359. package/dist/src/assets/icons/DeleteOutlinedIcon.svg.js.map +0 -1
  360. package/dist/src/assets/icons/FilterIcon.svg.js +0 -2
  361. package/dist/src/assets/icons/FilterIcon.svg.js.map +0 -1
  362. package/dist/src/assets/icons/Plus.svg.js +0 -2
  363. package/dist/src/assets/icons/Plus.svg.js.map +0 -1
  364. package/dist/src/assets/icons/PlusSquare.svg.js +0 -2
  365. package/dist/src/assets/icons/PlusSquare.svg.js.map +0 -1
  366. package/dist/src/assets/icons/RequestOption.svg.js +0 -2
  367. package/dist/src/assets/icons/RequestOption.svg.js.map +0 -1
  368. package/dist/src/assets/icons/arrowDownGray.svg.js +0 -2
  369. package/dist/src/assets/icons/arrowDownGray.svg.js.map +0 -1
  370. package/dist/src/assets/icons/arrowRightGray.svg.js +0 -2
  371. package/dist/src/assets/icons/arrowRightGray.svg.js.map +0 -1
  372. package/dist/src/assets/icons/close-circle.svg.js +0 -2
  373. package/dist/src/assets/icons/close-circle.svg.js.map +0 -1
  374. package/dist/src/assets/icons/copy.svg.js +0 -2
  375. package/dist/src/assets/icons/copy.svg.js.map +0 -1
  376. package/dist/src/assets/icons/document.svg.js +0 -2
  377. package/dist/src/assets/icons/document.svg.js.map +0 -1
  378. package/dist/src/assets/icons/eye.svg.js +0 -2
  379. package/dist/src/assets/icons/eye.svg.js.map +0 -1
  380. package/dist/src/assets/icons/infoIcon.svg.js +0 -2
  381. package/dist/src/assets/icons/infoIcon.svg.js.map +0 -1
  382. package/dist/src/assets/icons/searchIcon.svg.js +0 -2
  383. package/dist/src/assets/icons/searchIcon.svg.js.map +0 -1
  384. package/dist/src/components/table/tags-table.js +0 -2
  385. package/dist/src/components/table/tags-table.js.map +0 -1
  386. package/dist/src/constants/methods.constant.js +0 -2
  387. package/dist/src/constants/methods.constant.js.map +0 -1
  388. package/dist/src/context/SectionToggleContext.js +0 -2
  389. package/dist/src/context/SectionToggleContext.js.map +0 -1
  390. package/dist/src/helpers/docs.helper.js +0 -2
  391. package/dist/src/helpers/docs.helper.js.map +0 -1
  392. package/dist/src/layout/docsComponents/Codebox/Codebox.js +0 -2
  393. package/dist/src/layout/docsComponents/Codebox/Codebox.js.map +0 -1
  394. package/dist/src/layout/docsComponents/Codebox/style.module.scss.js +0 -2
  395. package/dist/src/layout/docsComponents/Codebox/style.module.scss.js.map +0 -1
  396. package/dist/src/layout/docsComponents/DocsAside/DocsAside.js +0 -2
  397. package/dist/src/layout/docsComponents/DocsAside/DocsAside.js.map +0 -1
  398. package/dist/src/layout/docsComponents/DocsAside/style.module.scss.js +0 -2
  399. package/dist/src/layout/docsComponents/DocsAside/style.module.scss.js.map +0 -1
  400. package/dist/src/layout/docsComponents/DocsContent/DocsContent.js +0 -2
  401. package/dist/src/layout/docsComponents/DocsContent/DocsContent.js.map +0 -1
  402. package/dist/src/layout/docsComponents/DocsContent/EndpointPage/index.js +0 -2
  403. package/dist/src/layout/docsComponents/DocsContent/EndpointPage/index.js.map +0 -1
  404. package/dist/src/layout/docsComponents/DocsContent/OverviewPage/index.js +0 -2
  405. package/dist/src/layout/docsComponents/DocsContent/OverviewPage/index.js.map +0 -1
  406. package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.js +0 -2
  407. package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.js.map +0 -1
  408. package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss.js +0 -2
  409. package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss.js.map +0 -1
  410. package/dist/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.js +0 -2
  411. package/dist/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.js.map +0 -1
  412. package/dist/src/layout/docsComponents/index.js +0 -2
  413. package/dist/src/layout/docsComponents/index.js.map +0 -1
  414. package/dist/src/layout/docsLayout.js +0 -2
  415. package/dist/src/layout/docsLayout.js.map +0 -1
  416. package/dist/src/utils/index.js +0 -2
  417. package/dist/src/utils/index.js.map +0 -1
  418. package/dist/types/components/table/tags-table.d.ts +0 -11
  419. package/dist/types/constants/methods.constant.d.ts +0 -16
  420. package/dist/types/context/SectionToggleContext.d.ts +0 -37
  421. package/dist/types/helpers/docs.helper.d.ts +0 -3
  422. package/dist/types/layout/docsComponents/Codebox/Codebox.d.ts +0 -4
  423. package/dist/types/layout/docsComponents/DocsAside/DocsAside.d.ts +0 -5
  424. package/dist/types/layout/docsComponents/DocsContent/DocsContent.d.ts +0 -12
  425. package/dist/types/layout/docsComponents/DocsContent/EndpointPage/index.d.ts +0 -7
  426. package/dist/types/layout/docsComponents/DocsContent/OverviewPage/index.d.ts +0 -9
  427. package/dist/types/layout/docsComponents/DocsHeader/DocsHeader.d.ts +0 -6
  428. package/dist/types/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.d.ts +0 -18
  429. package/dist/types/layout/docsComponents/index.d.ts +0 -17
  430. package/dist/types/layout/docsLayout.d.ts +0 -31
  431. package/dist/types/types/docsLayout.type.d.ts +0 -7
  432. package/dist/types/types/index.d.ts +0 -27
  433. package/dist/types/utils/index.d.ts +0 -2
  434. package/src/assets/icons/ApiIcon.svg +0 -12
  435. package/src/assets/icons/ArrowBack.svg +0 -3
  436. package/src/assets/icons/BookIcon.svg +0 -6
  437. package/src/assets/icons/CopySticker.svg +0 -6
  438. package/src/assets/icons/DeleteOutlinedIcon.svg +0 -8
  439. package/src/assets/icons/FilterIcon.svg +0 -4
  440. package/src/assets/icons/Plus.svg +0 -5
  441. package/src/assets/icons/PlusSquare.svg +0 -3
  442. package/src/assets/icons/RequestOption.svg +0 -5
  443. package/src/assets/icons/arrowDownGray.svg +0 -3
  444. package/src/assets/icons/arrowRightGray.svg +0 -3
  445. package/src/assets/icons/close-circle.svg +0 -5
  446. package/src/assets/icons/copy.svg +0 -4
  447. package/src/assets/icons/document.svg +0 -6
  448. package/src/assets/icons/eye.svg +0 -4
  449. package/src/assets/icons/infoIcon.svg +0 -5
  450. package/src/assets/icons/searchIcon.svg +0 -4
  451. package/src/components/table/tags-table.tsx +0 -348
  452. package/src/constants/methods.constant.ts +0 -26
  453. package/src/context/SectionToggleContext.tsx +0 -121
  454. package/src/helpers/docs.helper.ts +0 -42
  455. package/src/layout/docsComponents/Codebox/Codebox.tsx +0 -61
  456. package/src/layout/docsComponents/Codebox/style.module.scss +0 -43
  457. package/src/layout/docsComponents/DocsAside/DocsAside.tsx +0 -93
  458. package/src/layout/docsComponents/DocsAside/style.module.scss +0 -113
  459. package/src/layout/docsComponents/DocsContent/DocsContent.tsx +0 -51
  460. package/src/layout/docsComponents/DocsContent/EndpointPage/index.tsx +0 -236
  461. package/src/layout/docsComponents/DocsContent/EndpointPage/style.scss +0 -309
  462. package/src/layout/docsComponents/DocsContent/OverviewPage/index.tsx +0 -192
  463. package/src/layout/docsComponents/DocsContent/OverviewPage/style.scss +0 -284
  464. package/src/layout/docsComponents/DocsContent/style.scss +0 -0
  465. package/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss +0 -270
  466. package/src/layout/docsComponents/DocsHeader/DocsHeader.tsx +0 -187
  467. package/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.tsx +0 -229
  468. package/src/layout/docsComponents/DocsSideMenuTree/style.scss +0 -195
  469. package/src/layout/docsComponents/index.scss +0 -49
  470. package/src/layout/docsComponents/index.tsx +0 -28
  471. package/src/layout/docsLayout.tsx +0 -120
  472. package/src/types/docsLayout.type.ts +0 -7
  473. package/src/utils/index.ts +0 -12
  474. package/the_npm_commands.sh +0 -12
  475. package/variables.txt +0 -4
@@ -1,109 +1,95 @@
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
- headers?: any
79
- content?: {
80
- [contentType: string]: {
81
- schema: Schema
82
- }
83
- }
84
- }
85
- }
86
-
87
- interface Schema {
88
- type?: string
89
- format?: string
90
- properties?: {
91
- [propertyName: string]: Schema
92
- }
93
- items?: Schema
94
- enum?: string[]
95
- required?: string[]
96
- }
97
-
98
- export interface SecurityScheme {
99
- type: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect'
100
- description?: string
101
- name?: string
102
- in?: 'query' | 'header' | 'cookie'
103
- scheme?: string
104
- bearerFormat?: string
105
- flows?: any
106
- openIdConnectUrl?: string
107
- }
108
-
109
- 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
+ }[]
42
+ }
43
+
44
+ interface Parameter {
45
+ name: string
46
+ in: 'query' | 'header' | 'path' | 'cookie'
47
+ description?: string
48
+ required: boolean
49
+ schema: Schema
50
+ }
51
+
52
+ interface RequestBody {
53
+ description?: string
54
+ required: boolean
55
+ content: {
56
+ [contentType: string]: {
57
+ schema: Schema
58
+ }
59
+ }
60
+ }
61
+
62
+ interface Responses {
63
+ [statusCode: string]: {
64
+ description: string
65
+ content?: {
66
+ [contentType: string]: {
67
+ schema: Schema
68
+ }
69
+ }
70
+ }
71
+ }
72
+
73
+ interface Schema {
74
+ type?: string
75
+ format?: string
76
+ properties?: {
77
+ [propertyName: string]: Schema
78
+ }
79
+ items?: Schema
80
+ enum?: string[]
81
+ required?: string[]
82
+ }
83
+
84
+ export interface SecurityScheme {
85
+ type: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect'
86
+ description?: string
87
+ name?: string
88
+ in?: 'query' | 'header' | 'cookie'
89
+ scheme?: string
90
+ bearerFormat?: string
91
+ flows?: any
92
+ openIdConnectUrl?: string
93
+ }
94
+
95
+ export type HTTPMethod = 'get' | 'put' | 'post' | 'delete' | 'options' | 'head' | 'patch' | 'trace'
@@ -1,52 +1,52 @@
1
- import { TransformedPathsArray } from "./layout.type";
2
-
3
- export interface TransformedOpenApi {
4
- openapi: string;
5
- info: {
6
- title: string;
7
- description?: string;
8
- version: string;
9
- };
10
- servers?: {
11
- url: string;
12
- description?: string;
13
- }[];
14
- paths: TransformedPathsArray;
15
- components?: {
16
- schemas?: {
17
- [schemaName: string]: Schema;
18
- };
19
- securitySchemes?: {
20
- [schemeName: string]: SecurityScheme;
21
- };
22
- };
23
- security?: {
24
- [schemeName: string]: string[];
25
- }[];
26
- tags?: {
27
- name: string;
28
- description?: string;
29
- }[];
30
- }
31
-
32
- interface Schema {
33
- type?: string;
34
- format?: string;
35
- properties?: {
36
- [propertyName: string]: Schema;
37
- };
38
- items?: Schema;
39
- enum?: string[];
40
- required?: string[];
41
- }
42
-
43
- interface SecurityScheme {
44
- type: "apiKey" | "http" | "oauth2" | "openIdConnect";
45
- description?: string;
46
- name?: string;
47
- in?: "query" | "header" | "cookie";
48
- scheme?: string;
49
- bearerFormat?: string;
50
- flows?: any;
51
- openIdConnectUrl?: string;
52
- }
1
+ import { TransformedPathsArray } from "./layout.type";
2
+
3
+ export interface TransformedOpenApi {
4
+ openapi: string;
5
+ info: {
6
+ title: string;
7
+ description?: string;
8
+ version: string;
9
+ };
10
+ servers?: {
11
+ url: string;
12
+ description?: string;
13
+ }[];
14
+ paths: TransformedPathsArray;
15
+ components?: {
16
+ schemas?: {
17
+ [schemaName: string]: Schema;
18
+ };
19
+ securitySchemes?: {
20
+ [schemeName: string]: SecurityScheme;
21
+ };
22
+ };
23
+ security?: {
24
+ [schemeName: string]: string[];
25
+ }[];
26
+ tags?: {
27
+ name: string;
28
+ description?: string;
29
+ }[];
30
+ }
31
+
32
+ interface Schema {
33
+ type?: string;
34
+ format?: string;
35
+ properties?: {
36
+ [propertyName: string]: Schema;
37
+ };
38
+ items?: Schema;
39
+ enum?: string[];
40
+ required?: string[];
41
+ }
42
+
43
+ interface SecurityScheme {
44
+ type: "apiKey" | "http" | "oauth2" | "openIdConnect";
45
+ description?: string;
46
+ name?: string;
47
+ in?: "query" | "header" | "cookie";
48
+ scheme?: string;
49
+ bearerFormat?: string;
50
+ flows?: any;
51
+ openIdConnectUrl?: string;
52
+ }
@@ -1,96 +1,70 @@
1
- import * as yup from 'yup'
2
- export const schemaValidation = yup.object({
3
- openapi: yup.string().required(),
4
- info: yup
5
- .object({
6
- title: yup.string().trim().required('API Name is required.'),
7
- description: yup.string().trim().required('API Description is required.'),
8
- version: yup.string().required('API Version is required'),
9
- })
10
- .required(),
11
- servers: yup
12
- .array(
13
- yup.object({
14
- url: yup
15
- .string()
16
- .required()
17
- .test(
18
- 'is-url-or-slash',
19
- 'Must be a valid URL or "/"',
20
- (value) => value === '/' || yup.string().url().isValidSync(value)
21
- ),
22
- description: yup.string().optional(),
23
- })
24
- )
25
- .optional(),
26
- paths: yup
27
- .array()
28
- .of(
29
- yup.object().shape({
30
- path: yup.string().required(),
31
- methods: yup
32
- .array()
33
- .of(
34
- yup.object().shape({
35
- summary: yup.string().trim().required('Endpoint Name is required.'),
36
- description: yup.string().trim().optional(),
37
- type: yup.string().optional(),
38
- tags: yup.array().of(yup.string()).optional(),
39
- requestBody: yup.mixed().optional(),
40
- })
41
- )
42
- .required(),
43
- })
44
- )
45
- .required(),
46
- components: yup
47
- .object({
48
- schemas: yup
49
- .lazy((value) =>
50
- yup.object(
51
- value
52
- ? Object.keys(value).reduce((acc, key) => {
53
- acc[key] = yup.object({
54
- type: yup.string().optional(),
55
- format: yup.string().optional(),
56
- properties: yup
57
- .lazy((props) =>
58
- yup.object(
59
- props
60
- ? Object.keys(props).reduce((acc, propKey) => {
61
- acc[propKey] = yup.mixed()
62
- return acc
63
- }, {})
64
- : {}
65
- )
66
- )
67
- .optional(),
68
- items: yup.mixed().optional(),
69
- enum: yup.array(yup.string()).optional(),
70
- required: yup.array(yup.string()).optional(),
71
- })
72
- return acc
73
- }, {})
74
- : {}
75
- )
76
- )
77
- .optional(),
78
- securitySchemes: yup.object().optional(),
79
- })
80
- .optional(),
81
- security: yup
82
- .array(
83
- yup.object().shape({
84
- schemeName: yup.array(yup.string()).optional(),
85
- })
86
- )
87
- .optional(),
88
- tags: yup
89
- .array(
90
- yup.object({
91
- name: yup.string().required(),
92
- description: yup.string().optional(),
93
- })
94
- )
95
- .optional(),
96
- })
1
+ import * as yup from "yup";
2
+ export const schemaValidation = yup.object({
3
+ openapi: yup.string().required(),
4
+ info: yup
5
+ .object({
6
+ title: yup.string().required("API Name is required."),
7
+ description: yup.string().optional(),
8
+ version: yup.string().required("API Version is required"),
9
+ })
10
+ .required(),
11
+ servers: yup
12
+ .array(
13
+ yup.object({
14
+ url: yup.string().url().required(),
15
+ description: yup.string().optional(),
16
+ })
17
+ )
18
+ .optional(),
19
+ paths: yup.mixed().required(), // Assuming TransformedPathsArray is validated elsewhere
20
+ components: yup
21
+ .object({
22
+ schemas: yup
23
+ .lazy((value) =>
24
+ yup.object(
25
+ value
26
+ ? Object.keys(value).reduce((acc, key) => {
27
+ acc[key] = yup.object({
28
+ type: yup.string().optional(),
29
+ format: yup.string().optional(),
30
+ properties: yup
31
+ .lazy((props) =>
32
+ yup.object(
33
+ props
34
+ ? Object.keys(props).reduce((acc, propKey) => {
35
+ acc[propKey] = yup.mixed();
36
+ return acc;
37
+ }, {})
38
+ : {}
39
+ )
40
+ )
41
+ .optional(),
42
+ items: yup.mixed().optional(),
43
+ enum: yup.array(yup.string()).optional(),
44
+ required: yup.array(yup.string()).optional(),
45
+ });
46
+ return acc;
47
+ }, {})
48
+ : {}
49
+ )
50
+ )
51
+ .optional(),
52
+ securitySchemes: yup.object().optional(),
53
+ })
54
+ .optional(),
55
+ security: yup
56
+ .array(
57
+ yup.object().shape({
58
+ schemeName: yup.array(yup.string()).optional(),
59
+ })
60
+ )
61
+ .optional(),
62
+ tags: yup
63
+ .array(
64
+ yup.object({
65
+ name: yup.string().required(),
66
+ description: yup.string().optional(),
67
+ })
68
+ )
69
+ .optional(),
70
+ });
package/tsconfig.json CHANGED
@@ -1,33 +1,33 @@
1
- {
2
- "compilerOptions": {
3
- "outDir": "dist",
4
- "module": "ESNext",
5
- "target": "ES6",
6
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
- "declaration": true,
8
- "declarationDir": "dist/types",
9
- "jsx": "react-jsx",
10
- "strict": false,
11
- "moduleResolution": "node",
12
- "esModuleInterop": true,
13
- "skipLibCheck": true,
14
- "forceConsistentCasingInFileNames": true,
15
- "importHelpers": true,
16
- "resolveJsonModule": true,
17
- "plugins": [
18
- {
19
- "name": "typescript-plugin-css-modules"
20
- }
21
- ],
22
- "baseUrl": "./",
23
- "paths": {
24
- "@components/*": ["src/components/*"],
25
- "@icons": ["src/assets/icons"],
26
- "@constants/*": ["src/constants/*"],
27
- "@entities/*": ["src/types/*"],
28
- "@helpers/*": ["src/helpers/*"]
29
- }
30
- },
31
- "include": ["src", "src/global.d.ts"], // Add "src/global.d.ts" here
32
- "exclude": ["node_modules", "dist"]
33
- }
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "dist",
4
+ "module": "ESNext",
5
+ "target": "ES6",
6
+ "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
+ "declaration": true,
8
+ "declarationDir": "dist/types",
9
+ "jsx": "react-jsx",
10
+ "strict": false,
11
+ "moduleResolution": "node",
12
+ "esModuleInterop": true,
13
+ "skipLibCheck": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "importHelpers": true,
16
+ "resolveJsonModule": true,
17
+ "plugins": [
18
+ {
19
+ "name": "typescript-plugin-css-modules"
20
+ }
21
+ ],
22
+ "baseUrl": "./",
23
+ "paths": {
24
+ "@components/*": ["src/components/*"],
25
+ "@icons": ["src/assets/icons"],
26
+ "@constants/*": ["src/constants/*"],
27
+ "@entities/*": ["src/types/*"],
28
+ "@helpers/*": ["src/helpers/*"]
29
+ }
30
+ },
31
+ "include": ["src", "src/global.d.ts"], // Add "src/global.d.ts" here
32
+ "exclude": ["node_modules", "dist"]
33
+ }
@@ -1,6 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M14 4.66536V11.332C14 13.332 13 14.6654 10.6667 14.6654H5.33333C3 14.6654 2 13.332 2 11.332V4.66536C2 2.66536 3 1.33203 5.33333 1.33203H10.6667C13 1.33203 14 2.66536 14 4.66536Z" stroke="#898E99" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M9.66797 3V4.33333C9.66797 5.06667 10.268 5.66667 11.0013 5.66667H12.3346" stroke="#898E99" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
4
- <path d="M5.33203 8.66797H7.9987" stroke="#898E99" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
5
- <path d="M5.33203 11.332H10.6654" stroke="#898E99" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
6
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="9" height="16" viewBox="0 0 9 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M7.49844 15.2253C7.3401 15.2253 7.18177 15.1669 7.05677 15.0419L1.62344 9.60859C0.740104 8.72526 0.740104 7.27526 1.62344 6.39193L7.05677 0.958594C7.29844 0.716927 7.69844 0.716927 7.9401 0.958594C8.18177 1.20026 8.18177 1.60026 7.9401 1.84193L2.50677 7.27526C2.10677 7.67526 2.10677 8.32526 2.50677 8.72526L7.9401 14.1586C8.18177 14.4003 8.18177 14.8003 7.9401 15.0419C7.8151 15.1586 7.65677 15.2253 7.49844 15.2253Z" fill="#4D75D9"/>
3
- </svg>
@@ -1,5 +0,0 @@
1
- <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 1.875C4.39319 1.875 1.875 4.39317 1.875 7.5C1.875 10.6062 4.39319 13.125 7.5 13.125C10.6068 13.125 13.125 10.6062 13.125 7.5C13.125 4.39317 10.6068 1.875 7.5 1.875Z" stroke="#12131A" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M5.43819 7.5L9.56299 7.5" stroke="#12131A" stroke-linecap="round" stroke-linejoin="round"/>
4
- <path d="M7.50049 5.4377L7.50049 9.5625" stroke="#12131A" stroke-linecap="round" stroke-linejoin="round"/>
5
- </svg>
@@ -1,5 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22Z" stroke="#6B7280" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M9.17188 14.8319L14.8319 9.17188" stroke="#6B7280" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
- <path d="M14.8319 14.8319L9.17188 9.17188" stroke="#6B7280" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
- </svg>
@@ -1,6 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M11.1512 7.77715C11.5014 7.41329 11.984 7.20703 12.4889 7.20703H17.335C19.5873 7.20703 20.9999 8.80162 20.9999 11.0588V17.1492C20.9999 19.4073 19.5941 21.0019 17.335 21.0019H10.871C8.61093 21.0019 7.20508 19.4073 7.20508 17.1492V12.6329C7.20508 12.1543 7.3909 11.695 7.72169 11.3497L11.1512 7.77715Z" stroke="#828699" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M12.3821 7.26172V10.0588C12.3831 11.4238 11.2779 12.532 9.9129 12.5349H7.26367" stroke="#828699" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
- <path d="M7.20587 16.8026H6.66688C4.40488 16.8026 3 15.2051 3 12.9431V8.42882C3 7.95696 3.19264 7.49483 3.51953 7.14847L6.94611 3.57791C7.30219 3.21209 7.78378 3 8.28385 3H13.1348C15.387 3 16.8017 4.59848 16.8017 6.86049V7.20685" stroke="#828699" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
- <path d="M8.18096 3.05859V5.8557C8.18193 7.22069 7.07671 8.32883 5.71172 8.33175H3.0625" stroke="#828699" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
6
- </svg>
@@ -1,5 +0,0 @@
1
- <svg width="17" height="18" viewBox="0 0 17 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M10.6909 16.3087H6.61387C2.92412 16.3087 1.34766 14.7323 1.34766 11.0425V6.96543C1.34766 3.27569 2.92412 1.69922 6.61387 1.69922H10.6909C14.3807 1.69922 15.9572 3.27569 15.9572 6.96543V11.0425C15.9572 14.7323 14.3807 16.3087 10.6909 16.3087ZM6.61387 2.71849C3.48132 2.71849 2.36692 3.83288 2.36692 6.96543V11.0425C2.36692 14.1751 3.48132 15.2894 6.61387 15.2894H10.6909C13.8235 15.2894 14.9379 14.1751 14.9379 11.0425V6.96543C14.9379 3.83288 13.8235 2.71849 10.6909 2.71849H6.61387Z" fill="black"/>
3
- <path d="M7.01687 11.57C6.88776 11.57 6.75866 11.5225 6.65673 11.4205L4.96475 9.72854C4.56383 9.32763 4.56383 8.6821 4.96475 8.28118L6.65673 6.5892C6.85379 6.39214 7.17995 6.39214 7.37701 6.5892C7.57407 6.78626 7.57407 7.11242 7.37701 7.30948L5.68503 9.00147L7.37701 10.7002C7.57407 10.8973 7.57407 11.2235 7.37701 11.4205C7.27509 11.5157 7.14598 11.57 7.01687 11.57Z" fill="black"/>
4
- <path d="M10.2814 11.569C10.1523 11.569 10.0232 11.5214 9.92123 11.4195C9.72417 11.2225 9.72417 10.8963 9.92123 10.6992L11.6132 9.00045L9.92123 7.30167C9.72417 7.10461 9.72417 6.77845 9.92123 6.58139C10.1183 6.38433 10.4445 6.38433 10.6415 6.58139L12.3335 8.27337C12.7344 8.67428 12.7344 9.31982 12.3335 9.72073L10.6415 11.4127C10.5464 11.5146 10.4105 11.569 10.2814 11.569Z" fill="#292D32"/>
5
- </svg>
@@ -1,4 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M10.3866 7.99995C10.3866 9.31995 9.31995 10.3866 7.99995 10.3866C6.67995 10.3866 5.61328 9.31995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C9.31995 5.61328 10.3866 6.67995 10.3866 7.99995Z" stroke="#292D32" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M7.9999 13.5138C10.3532 13.5138 12.5466 12.1271 14.0732 9.72714C14.6732 8.78714 14.6732 7.20714 14.0732 6.26714C12.5466 3.86714 10.3532 2.48047 7.9999 2.48047C5.64656 2.48047 3.45323 3.86714 1.92656 6.26714C1.32656 7.20714 1.32656 8.78714 1.92656 9.72714C3.45323 12.1271 5.64656 13.5138 7.9999 13.5138Z" stroke="#292D32" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
- </svg>
@@ -1,6 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M8.15631 15.8523C7.95246 15.8523 7.7486 15.8048 7.57873 15.7097C6.30804 15.0166 4.07245 14.2827 2.67265 14.0992L2.4756 14.072C1.58544 13.9633 0.851562 13.1275 0.851562 12.2238V4.01526C0.851562 3.47844 1.06221 2.9892 1.44953 2.63585C1.83685 2.2825 2.33969 2.11263 2.86971 2.16019C4.36464 2.27571 6.62062 3.02317 7.8981 3.825L8.06118 3.92013C8.10875 3.94731 8.21067 3.94731 8.25144 3.92692L8.36017 3.85897C9.63765 3.05715 11.8936 2.29609 13.3953 2.16699C13.4089 2.16699 13.4633 2.16699 13.4769 2.16699C13.9729 2.11942 14.4826 2.29609 14.8631 2.64944C15.2504 3.00279 15.4611 3.49203 15.4611 4.02885V12.2306C15.4611 13.1411 14.7272 13.9701 13.8302 14.0788L13.606 14.106C12.2062 14.2895 9.96381 15.0301 8.72031 15.7164C8.55722 15.8116 8.36017 15.8523 8.15631 15.8523ZM2.70663 3.17266C2.48919 3.17266 2.29213 3.24741 2.13584 3.39011C1.96596 3.5464 1.87083 3.77063 1.87083 4.01526V12.2238C1.87083 12.6247 2.21738 13.012 2.6047 13.0664L2.80856 13.0935C4.33746 13.2974 6.68177 14.0652 8.04079 14.8059C8.10195 14.8331 8.19029 14.8399 8.22426 14.8263C9.58329 14.072 11.9412 13.2974 13.4769 13.0935L13.7079 13.0664C14.0952 13.0188 14.4418 12.6247 14.4418 12.2238V4.02205C14.4418 3.77063 14.3467 3.55319 14.1768 3.39011C14.0001 3.23382 13.7759 3.15907 13.5245 3.17266C13.5109 3.17266 13.4565 3.17266 13.4429 3.17266C12.145 3.28818 10.0521 3.98808 8.91057 4.70157L8.80185 4.77631C8.42812 5.00735 7.8981 5.00735 7.53796 4.78311L7.37487 4.68798C6.21291 3.97449 4.12001 3.28139 2.78817 3.17266C2.76099 3.17266 2.73381 3.17266 2.70663 3.17266Z" fill="#9CA1AA"/>
3
- <path d="M8.15416 15.2783C7.87557 15.2783 7.64453 15.0473 7.64453 14.7687V4.57604C7.64453 4.29744 7.87557 4.06641 8.15416 4.06641C8.43276 4.06641 8.6638 4.29744 8.6638 4.57604V14.7687C8.6638 15.0541 8.43276 15.2783 8.15416 15.2783Z" fill="#9CA1AA"/>
4
- <path d="M5.2651 7.12474H3.7362C3.4576 7.12474 3.22656 6.8937 3.22656 6.6151C3.22656 6.3365 3.4576 6.10547 3.7362 6.10547H5.2651C5.5437 6.10547 5.77473 6.3365 5.77473 6.6151C5.77473 6.8937 5.5437 7.12474 5.2651 7.12474Z" fill="#9CA1AA"/>
5
- <path d="M5.77473 9.1638H3.7362C3.4576 9.1638 3.22656 8.93276 3.22656 8.65416C3.22656 8.37557 3.4576 8.14453 3.7362 8.14453H5.77473C6.05333 8.14453 6.28436 8.37557 6.28436 8.65416C6.28436 8.93276 6.05333 9.1638 5.77473 9.1638Z" fill="#9CA1AA"/>
6
- </svg>
@@ -1,12 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_3780_53174)">
3
- <path d="M11.0269 16.3087H6.94981C3.26006 16.3087 1.68359 14.7323 1.68359 11.0425V6.96543C1.68359 3.27569 3.26006 1.69922 6.94981 1.69922H11.0269C14.7166 1.69922 16.2931 3.27569 16.2931 6.96543V11.0425C16.2931 14.7323 14.7166 16.3087 11.0269 16.3087ZM6.94981 2.71849C3.81726 2.71849 2.70286 3.83288 2.70286 6.96543V11.0425C2.70286 14.1751 3.81726 15.2894 6.94981 15.2894H11.0269C14.1594 15.2894 15.2738 14.1751 15.2738 11.0425V6.96543C15.2738 3.83288 14.1594 2.71849 11.0269 2.71849H6.94981Z" fill="black"/>
4
- <path d="M7.35281 11.57C7.2237 11.57 7.09459 11.5225 6.99267 11.4205L5.30068 9.72854C4.89977 9.32763 4.89977 8.6821 5.30068 8.28118L6.99267 6.5892C7.18973 6.39214 7.51589 6.39214 7.71295 6.5892C7.91001 6.78626 7.91001 7.11242 7.71295 7.30948L6.02097 9.00147L7.71295 10.7002C7.91001 10.8973 7.91001 11.2235 7.71295 11.4205C7.61102 11.5157 7.48192 11.57 7.35281 11.57Z" fill="black"/>
5
- <path d="M10.6173 11.569C10.4882 11.569 10.3591 11.5214 10.2572 11.4195C10.0601 11.2225 10.0601 10.8963 10.2572 10.6992L11.9492 9.00045L10.2572 7.30167C10.0601 7.10461 10.0601 6.77845 10.2572 6.58139C10.4542 6.38433 10.7804 6.38433 10.9775 6.58139L12.6694 8.27337C13.0703 8.67428 13.0703 9.31982 12.6694 9.72073L10.9775 11.4127C10.8823 11.5146 10.7464 11.569 10.6173 11.569Z" fill="#292D32"/>
6
- </g>
7
- <defs>
8
- <clipPath id="clip0_3780_53174">
9
- <rect width="16.3083" height="16.3083" fill="white" transform="translate(0.832031 0.847656)"/>
10
- </clipPath>
11
- </defs>
12
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M13.2787 5.96484L8.93208 10.3115C8.41875 10.8248 7.57875 10.8248 7.06542 10.3115L2.71875 5.96484" stroke="#BBBEC5" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,2 +0,0 @@
1
- import{getDefaultExportFromCjs as o}from"./_commonjsHelpers.js";import{__require as r}from"../node_modules/lowlight/lib/core.js";var e=o(r());export{e as default};
2
- //# sourceMappingURL=core.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var r={};export{r as __exports};
2
- //# sourceMappingURL=core2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var e={exports:{}};export{e as __module};
2
- //# sourceMappingURL=format.js.map