@skmtc/core 0.0.491 → 0.0.493

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 (833) hide show
  1. package/esm/context/GenerateContext.d.ts +6 -6
  2. package/esm/context/GenerateContext.d.ts.map +1 -1
  3. package/esm/context/GenerateContext.js +6 -3
  4. package/esm/dsl/ContentSettings.d.ts +6 -4
  5. package/esm/dsl/ContentSettings.d.ts.map +1 -1
  6. package/esm/dsl/ContentSettings.js +10 -2
  7. package/esm/dsl/GatewayBase.d.ts +5 -5
  8. package/esm/dsl/GatewayBase.d.ts.map +1 -1
  9. package/esm/dsl/Inserted.d.ts +5 -5
  10. package/esm/dsl/Inserted.d.ts.map +1 -1
  11. package/esm/dsl/model/ModelBase.d.ts +6 -6
  12. package/esm/dsl/model/ModelBase.d.ts.map +1 -1
  13. package/esm/dsl/model/ModelDriver.d.ts +1 -1
  14. package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
  15. package/esm/dsl/model/ModelInsertable.d.ts +4 -3
  16. package/esm/dsl/model/ModelInsertable.d.ts.map +1 -1
  17. package/esm/dsl/model/toModelInsertable.d.ts +7 -5
  18. package/esm/dsl/model/toModelInsertable.d.ts.map +1 -1
  19. package/esm/dsl/model/toModelInsertable.js +6 -0
  20. package/esm/dsl/operation/OperationBase.d.ts +7 -7
  21. package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
  22. package/esm/dsl/operation/OperationDriver.d.ts +1 -1
  23. package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
  24. package/esm/dsl/operation/OperationInsertable.d.ts +8 -6
  25. package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
  26. package/esm/dsl/operation/toOperationGateway.d.ts +4 -2
  27. package/esm/dsl/operation/toOperationGateway.d.ts.map +1 -1
  28. package/esm/dsl/operation/toOperationGateway.js +6 -0
  29. package/esm/dsl/operation/toOperationInsertable.d.ts +6 -6
  30. package/esm/dsl/operation/toOperationInsertable.d.ts.map +1 -1
  31. package/package.json +27 -13
  32. package/script/_dnt.polyfills.d.ts +12 -0
  33. package/script/_dnt.polyfills.d.ts.map +1 -0
  34. package/script/_dnt.polyfills.js +16 -0
  35. package/script/_dnt.shims.d.ts +6 -0
  36. package/script/_dnt.shims.d.ts.map +1 -0
  37. package/script/_dnt.shims.js +65 -0
  38. package/script/context/CoreContext.d.ts +58 -0
  39. package/script/context/CoreContext.d.ts.map +1 -0
  40. package/script/context/CoreContext.js +227 -0
  41. package/script/context/GenerateContext.d.ts +232 -0
  42. package/script/context/GenerateContext.d.ts.map +1 -0
  43. package/script/context/GenerateContext.js +513 -0
  44. package/script/context/ParseContext.d.ts +34 -0
  45. package/script/context/ParseContext.d.ts.map +1 -0
  46. package/script/context/ParseContext.js +131 -0
  47. package/script/context/RenderContext.d.ts +38 -0
  48. package/script/context/RenderContext.d.ts.map +1 -0
  49. package/script/context/RenderContext.js +227 -0
  50. package/script/context/ResultsHandler.d.ts +19 -0
  51. package/script/context/ResultsHandler.d.ts.map +1 -0
  52. package/script/context/ResultsHandler.js +56 -0
  53. package/script/context/StackTrail.d.ts +14 -0
  54. package/script/context/StackTrail.d.ts.map +1 -0
  55. package/script/context/StackTrail.js +85 -0
  56. package/script/context/types.d.ts +23 -0
  57. package/script/context/types.d.ts.map +1 -0
  58. package/script/context/types.js +2 -0
  59. package/script/deps/jsr.io/@std/fmt/1.0.2/colors.d.ts +700 -0
  60. package/script/deps/jsr.io/@std/fmt/1.0.2/colors.d.ts.map +1 -0
  61. package/script/deps/jsr.io/@std/fmt/1.0.2/colors.js +976 -0
  62. package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts +218 -0
  63. package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +1 -0
  64. package/script/deps/jsr.io/@std/fs/1.0.4/exists.js +298 -0
  65. package/script/deps/jsr.io/@std/io/0.224.9/types.d.ts +146 -0
  66. package/script/deps/jsr.io/@std/io/0.224.9/types.d.ts.map +1 -0
  67. package/script/deps/jsr.io/@std/io/0.224.9/types.js +18 -0
  68. package/script/deps/jsr.io/@std/io/0.224.9/write_all.d.ts +51 -0
  69. package/script/deps/jsr.io/@std/io/0.224.9/write_all.d.ts.map +1 -0
  70. package/script/deps/jsr.io/@std/io/0.224.9/write_all.js +65 -0
  71. package/script/deps/jsr.io/@std/log/0.224.8/_config.d.ts +4 -0
  72. package/script/deps/jsr.io/@std/log/0.224.8/_config.d.ts.map +1 -0
  73. package/script/deps/jsr.io/@std/log/0.224.8/_config.js +17 -0
  74. package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.d.ts +8 -0
  75. package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.d.ts.map +1 -0
  76. package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.js +11 -0
  77. package/script/deps/jsr.io/@std/log/0.224.8/_state.d.ts +8 -0
  78. package/script/deps/jsr.io/@std/log/0.224.8/_state.d.ts.map +1 -0
  79. package/script/deps/jsr.io/@std/log/0.224.8/_state.js +10 -0
  80. package/script/deps/jsr.io/@std/log/0.224.8/base_handler.d.ts +22 -0
  81. package/script/deps/jsr.io/@std/log/0.224.8/base_handler.d.ts.map +1 -0
  82. package/script/deps/jsr.io/@std/log/0.224.8/base_handler.js +64 -0
  83. package/script/deps/jsr.io/@std/log/0.224.8/console_handler.d.ts +18 -0
  84. package/script/deps/jsr.io/@std/log/0.224.8/console_handler.d.ts.map +1 -0
  85. package/script/deps/jsr.io/@std/log/0.224.8/console_handler.js +63 -0
  86. package/script/deps/jsr.io/@std/log/0.224.8/critical.d.ts +5 -0
  87. package/script/deps/jsr.io/@std/log/0.224.8/critical.d.ts.map +1 -0
  88. package/script/deps/jsr.io/@std/log/0.224.8/critical.js +13 -0
  89. package/script/deps/jsr.io/@std/log/0.224.8/debug.d.ts +5 -0
  90. package/script/deps/jsr.io/@std/log/0.224.8/debug.d.ts.map +1 -0
  91. package/script/deps/jsr.io/@std/log/0.224.8/debug.js +13 -0
  92. package/script/deps/jsr.io/@std/log/0.224.8/error.d.ts +5 -0
  93. package/script/deps/jsr.io/@std/log/0.224.8/error.d.ts.map +1 -0
  94. package/script/deps/jsr.io/@std/log/0.224.8/error.js +13 -0
  95. package/script/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts +54 -0
  96. package/script/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts.map +1 -0
  97. package/script/deps/jsr.io/@std/log/0.224.8/file_handler.js +162 -0
  98. package/script/deps/jsr.io/@std/log/0.224.8/formatters.d.ts +6 -0
  99. package/script/deps/jsr.io/@std/log/0.224.8/formatters.d.ts.map +1 -0
  100. package/script/deps/jsr.io/@std/log/0.224.8/formatters.js +23 -0
  101. package/script/deps/jsr.io/@std/log/0.224.8/get_logger.d.ts +4 -0
  102. package/script/deps/jsr.io/@std/log/0.224.8/get_logger.d.ts.map +1 -0
  103. package/script/deps/jsr.io/@std/log/0.224.8/get_logger.js +24 -0
  104. package/script/deps/jsr.io/@std/log/0.224.8/info.d.ts +5 -0
  105. package/script/deps/jsr.io/@std/log/0.224.8/info.d.ts.map +1 -0
  106. package/script/deps/jsr.io/@std/log/0.224.8/info.js +13 -0
  107. package/script/deps/jsr.io/@std/log/0.224.8/levels.d.ts +26 -0
  108. package/script/deps/jsr.io/@std/log/0.224.8/levels.d.ts.map +1 -0
  109. package/script/deps/jsr.io/@std/log/0.224.8/levels.js +48 -0
  110. package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts +63 -0
  111. package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts.map +1 -0
  112. package/script/deps/jsr.io/@std/log/0.224.8/logger.js +185 -0
  113. package/script/deps/jsr.io/@std/log/0.224.8/mod.d.ts +390 -0
  114. package/script/deps/jsr.io/@std/log/0.224.8/mod.d.ts.map +1 -0
  115. package/script/deps/jsr.io/@std/log/0.224.8/mod.js +406 -0
  116. package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.d.ts +53 -0
  117. package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.d.ts.map +1 -0
  118. package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.js +152 -0
  119. package/script/deps/jsr.io/@std/log/0.224.8/setup.d.ts +4 -0
  120. package/script/deps/jsr.io/@std/log/0.224.8/setup.d.ts.map +1 -0
  121. package/script/deps/jsr.io/@std/log/0.224.8/setup.js +44 -0
  122. package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts +51 -0
  123. package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts.map +1 -0
  124. package/script/deps/jsr.io/@std/log/0.224.8/warn.js +13 -0
  125. package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts +2 -0
  126. package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts.map +1 -0
  127. package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +10 -0
  128. package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts +4 -0
  129. package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts.map +1 -0
  130. package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.js +45 -0
  131. package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts +2 -0
  132. package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts.map +1 -0
  133. package/script/deps/jsr.io/@std/path/1.0.6/_common/common.js +26 -0
  134. package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts +40 -0
  135. package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts.map +1 -0
  136. package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.js +49 -0
  137. package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts +2 -0
  138. package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts.map +1 -0
  139. package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +11 -0
  140. package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts +4 -0
  141. package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts.map +1 -0
  142. package/script/deps/jsr.io/@std/path/1.0.6/_common/format.js +23 -0
  143. package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts +2 -0
  144. package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts.map +1 -0
  145. package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +12 -0
  146. package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts +35 -0
  147. package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts.map +1 -0
  148. package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +237 -0
  149. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts +2 -0
  150. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts.map +1 -0
  151. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +11 -0
  152. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts +2 -0
  153. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts.map +1 -0
  154. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +80 -0
  155. package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts +2 -0
  156. package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts.map +1 -0
  157. package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.js +12 -0
  158. package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts +2 -0
  159. package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts.map +1 -0
  160. package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +22 -0
  161. package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts +2 -0
  162. package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts.map +1 -0
  163. package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +18 -0
  164. package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts +2 -0
  165. package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +1 -0
  166. package/script/deps/jsr.io/@std/path/1.0.6/_os.js +35 -0
  167. package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts +28 -0
  168. package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +1 -0
  169. package/script/deps/jsr.io/@std/path/1.0.6/basename.js +39 -0
  170. package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts +28 -0
  171. package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts.map +1 -0
  172. package/script/deps/jsr.io/@std/path/1.0.6/common.js +36 -0
  173. package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts +15 -0
  174. package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts.map +1 -0
  175. package/script/deps/jsr.io/@std/path/1.0.6/constants.js +20 -0
  176. package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +23 -0
  177. package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +1 -0
  178. package/script/deps/jsr.io/@std/path/1.0.6/dirname.js +32 -0
  179. package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts +23 -0
  180. package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +1 -0
  181. package/script/deps/jsr.io/@std/path/1.0.6/extname.js +32 -0
  182. package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts +22 -0
  183. package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts.map +1 -0
  184. package/script/deps/jsr.io/@std/path/1.0.6/format.js +30 -0
  185. package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts +22 -0
  186. package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts.map +1 -0
  187. package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.js +31 -0
  188. package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts +77 -0
  189. package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts.map +1 -0
  190. package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +86 -0
  191. package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts +22 -0
  192. package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts.map +1 -0
  193. package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.js +31 -0
  194. package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts +17 -0
  195. package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts.map +1 -0
  196. package/script/deps/jsr.io/@std/path/1.0.6/is_glob.js +45 -0
  197. package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts +23 -0
  198. package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +1 -0
  199. package/script/deps/jsr.io/@std/path/1.0.6/join.js +32 -0
  200. package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts +28 -0
  201. package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts.map +1 -0
  202. package/script/deps/jsr.io/@std/path/1.0.6/join_globs.js +37 -0
  203. package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts +54 -0
  204. package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts.map +1 -0
  205. package/script/deps/jsr.io/@std/path/1.0.6/mod.js +73 -0
  206. package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +27 -0
  207. package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +1 -0
  208. package/script/deps/jsr.io/@std/path/1.0.6/normalize.js +36 -0
  209. package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts +29 -0
  210. package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts.map +1 -0
  211. package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +38 -0
  212. package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts +35 -0
  213. package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts.map +1 -0
  214. package/script/deps/jsr.io/@std/path/1.0.6/parse.js +42 -0
  215. package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts +2 -0
  216. package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts.map +1 -0
  217. package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.js +11 -0
  218. package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +23 -0
  219. package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +1 -0
  220. package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.js +35 -0
  221. package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts +13 -0
  222. package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts.map +1 -0
  223. package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.js +17 -0
  224. package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +20 -0
  225. package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +1 -0
  226. package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +53 -0
  227. package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +21 -0
  228. package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +1 -0
  229. package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.js +76 -0
  230. package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts +24 -0
  231. package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts.map +1 -0
  232. package/script/deps/jsr.io/@std/path/1.0.6/posix/format.js +31 -0
  233. package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts +16 -0
  234. package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts.map +1 -0
  235. package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +24 -0
  236. package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts +72 -0
  237. package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts.map +1 -0
  238. package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +85 -0
  239. package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts +17 -0
  240. package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts.map +1 -0
  241. package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +26 -0
  242. package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +20 -0
  243. package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +1 -0
  244. package/script/deps/jsr.io/@std/path/1.0.6/posix/join.js +32 -0
  245. package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts +20 -0
  246. package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts.map +1 -0
  247. package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +42 -0
  248. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +22 -0
  249. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +1 -0
  250. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +42 -0
  251. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts +20 -0
  252. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts.map +1 -0
  253. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +34 -0
  254. package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts +25 -0
  255. package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts.map +1 -0
  256. package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.js +118 -0
  257. package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts +20 -0
  258. package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts.map +1 -0
  259. package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.js +109 -0
  260. package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts +17 -0
  261. package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts.map +1 -0
  262. package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +85 -0
  263. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts +17 -0
  264. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts.map +1 -0
  265. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +30 -0
  266. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts +16 -0
  267. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts.map +1 -0
  268. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +23 -0
  269. package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts +24 -0
  270. package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts.map +1 -0
  271. package/script/deps/jsr.io/@std/path/1.0.6/relative.js +33 -0
  272. package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts +22 -0
  273. package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts.map +1 -0
  274. package/script/deps/jsr.io/@std/path/1.0.6/resolve.js +33 -0
  275. package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts +22 -0
  276. package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts.map +1 -0
  277. package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.js +31 -0
  278. package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts +21 -0
  279. package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts.map +1 -0
  280. package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +32 -0
  281. package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts +38 -0
  282. package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts.map +1 -0
  283. package/script/deps/jsr.io/@std/path/1.0.6/types.js +4 -0
  284. package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts +4 -0
  285. package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts.map +1 -0
  286. package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.js +20 -0
  287. package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +23 -0
  288. package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +1 -0
  289. package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.js +47 -0
  290. package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts +13 -0
  291. package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts.map +1 -0
  292. package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.js +17 -0
  293. package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +20 -0
  294. package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +1 -0
  295. package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +115 -0
  296. package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +20 -0
  297. package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +1 -0
  298. package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.js +84 -0
  299. package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts +24 -0
  300. package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts.map +1 -0
  301. package/script/deps/jsr.io/@std/path/1.0.6/windows/format.js +31 -0
  302. package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts +18 -0
  303. package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts.map +1 -0
  304. package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +33 -0
  305. package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts +71 -0
  306. package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts.map +1 -0
  307. package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +85 -0
  308. package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts +17 -0
  309. package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts.map +1 -0
  310. package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +41 -0
  311. package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +20 -0
  312. package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +1 -0
  313. package/script/deps/jsr.io/@std/path/1.0.6/windows/join.js +77 -0
  314. package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts +21 -0
  315. package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts.map +1 -0
  316. package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +43 -0
  317. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +22 -0
  318. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +1 -0
  319. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +137 -0
  320. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts +20 -0
  321. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts.map +1 -0
  322. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +34 -0
  323. package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts +25 -0
  324. package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts.map +1 -0
  325. package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.js +179 -0
  326. package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts +23 -0
  327. package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts.map +1 -0
  328. package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.js +134 -0
  329. package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts +17 -0
  330. package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts.map +1 -0
  331. package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +180 -0
  332. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts +17 -0
  333. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts.map +1 -0
  334. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +37 -0
  335. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts +17 -0
  336. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts.map +1 -0
  337. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +52 -0
  338. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts +6 -0
  339. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts.map +1 -0
  340. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.js +710 -0
  341. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts +73 -0
  342. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts.map +1 -0
  343. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.js +152 -0
  344. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts +7 -0
  345. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts.map +1 -0
  346. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.js +23 -0
  347. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts +5 -0
  348. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts.map +1 -0
  349. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.js +1324 -0
  350. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts +44 -0
  351. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts.map +1 -0
  352. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.js +154 -0
  353. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts +11 -0
  354. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts.map +1 -0
  355. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.js +85 -0
  356. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts +6 -0
  357. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts.map +1 -0
  358. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.js +19 -0
  359. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts +3 -0
  360. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts.map +1 -0
  361. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.js +110 -0
  362. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts +3 -0
  363. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts.map +1 -0
  364. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.js +35 -0
  365. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts +3 -0
  366. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts.map +1 -0
  367. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.js +109 -0
  368. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts +3 -0
  369. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts.map +1 -0
  370. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.js +41 -0
  371. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts +3 -0
  372. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts.map +1 -0
  373. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.js +171 -0
  374. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts +3 -0
  375. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts.map +1 -0
  376. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.js +14 -0
  377. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts +3 -0
  378. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts.map +1 -0
  379. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.js +15 -0
  380. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts +17 -0
  381. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts.map +1 -0
  382. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +39 -0
  383. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts +3 -0
  384. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts.map +1 -0
  385. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.js +40 -0
  386. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts +3 -0
  387. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts.map +1 -0
  388. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.js +43 -0
  389. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts +3 -0
  390. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts.map +1 -0
  391. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.js +38 -0
  392. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts +3 -0
  393. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts.map +1 -0
  394. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.js +40 -0
  395. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts +3 -0
  396. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts.map +1 -0
  397. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.js +14 -0
  398. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts +3 -0
  399. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts.map +1 -0
  400. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.js +28 -0
  401. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts +3 -0
  402. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts.map +1 -0
  403. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.js +13 -0
  404. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts +3 -0
  405. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts.map +1 -0
  406. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.js +81 -0
  407. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts +3 -0
  408. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts.map +1 -0
  409. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.js +23 -0
  410. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts +20 -0
  411. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts.map +1 -0
  412. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.js +74 -0
  413. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts +49 -0
  414. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts.map +1 -0
  415. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.js +67 -0
  416. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts +36 -0
  417. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts.map +1 -0
  418. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.js +22 -0
  419. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts +3 -0
  420. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts.map +1 -0
  421. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.js +15 -0
  422. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts +3 -0
  423. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts.map +1 -0
  424. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +18 -0
  425. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts +31 -0
  426. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts.map +1 -0
  427. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.js +40 -0
  428. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts +3 -0
  429. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts.map +1 -0
  430. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.js +15 -0
  431. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts +3 -0
  432. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts.map +1 -0
  433. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.js +17 -0
  434. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts +6 -0
  435. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts.map +1 -0
  436. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +18 -0
  437. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts +23 -0
  438. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts.map +1 -0
  439. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.js +107 -0
  440. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts +9 -0
  441. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts.map +1 -0
  442. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.js +17 -0
  443. package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts +29 -0
  444. package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts.map +1 -0
  445. package/script/deps/jsr.io/@std/yaml/0.215.0/type.js +87 -0
  446. package/script/dsl/ContentSettings.d.ts +21 -0
  447. package/script/dsl/ContentSettings.d.ts.map +1 -0
  448. package/script/dsl/ContentSettings.js +44 -0
  449. package/script/dsl/Definition.d.ts +19 -0
  450. package/script/dsl/Definition.d.ts.map +1 -0
  451. package/script/dsl/Definition.js +41 -0
  452. package/script/dsl/EntityType.d.ts +6 -0
  453. package/script/dsl/EntityType.d.ts.map +1 -0
  454. package/script/dsl/EntityType.js +22 -0
  455. package/script/dsl/File.d.ts +26 -0
  456. package/script/dsl/File.d.ts.map +1 -0
  457. package/script/dsl/File.js +101 -0
  458. package/script/dsl/GatewayBase.d.ts +13 -0
  459. package/script/dsl/GatewayBase.d.ts.map +1 -0
  460. package/script/dsl/GatewayBase.js +23 -0
  461. package/script/dsl/GeneratedValueList.d.ts +9 -0
  462. package/script/dsl/GeneratedValueList.d.ts.map +1 -0
  463. package/script/dsl/GeneratedValueList.js +31 -0
  464. package/script/dsl/Identifier.d.ts +11 -0
  465. package/script/dsl/Identifier.d.ts.map +1 -0
  466. package/script/dsl/Identifier.js +52 -0
  467. package/script/dsl/Import.d.ts +22 -0
  468. package/script/dsl/Import.d.ts.map +1 -0
  469. package/script/dsl/Import.js +60 -0
  470. package/script/dsl/Inserted.d.ts +18 -0
  471. package/script/dsl/Inserted.d.ts.map +1 -0
  472. package/script/dsl/Inserted.js +34 -0
  473. package/script/dsl/Stringable.d.ts +4 -0
  474. package/script/dsl/Stringable.d.ts.map +1 -0
  475. package/script/dsl/Stringable.js +2 -0
  476. package/script/dsl/ValueBase.d.ts +16 -0
  477. package/script/dsl/ValueBase.d.ts.map +1 -0
  478. package/script/dsl/ValueBase.js +46 -0
  479. package/script/dsl/constants.d.ts +2 -0
  480. package/script/dsl/constants.d.ts.map +1 -0
  481. package/script/dsl/constants.js +4 -0
  482. package/script/dsl/model/ModelBase.d.ts +23 -0
  483. package/script/dsl/model/ModelBase.d.ts.map +1 -0
  484. package/script/dsl/model/ModelBase.js +45 -0
  485. package/script/dsl/model/ModelDriver.d.ts +27 -0
  486. package/script/dsl/model/ModelDriver.d.ts.map +1 -0
  487. package/script/dsl/model/ModelDriver.js +105 -0
  488. package/script/dsl/model/ModelInsertable.d.ts +30 -0
  489. package/script/dsl/model/ModelInsertable.d.ts.map +1 -0
  490. package/script/dsl/model/ModelInsertable.js +2 -0
  491. package/script/dsl/model/toModelInsertable.d.ts +38 -0
  492. package/script/dsl/model/toModelInsertable.d.ts.map +1 -0
  493. package/script/dsl/model/toModelInsertable.js +81 -0
  494. package/script/dsl/operation/OperationBase.d.ts +36 -0
  495. package/script/dsl/operation/OperationBase.d.ts.map +1 -0
  496. package/script/dsl/operation/OperationBase.js +61 -0
  497. package/script/dsl/operation/OperationDriver.d.ts +27 -0
  498. package/script/dsl/operation/OperationDriver.d.ts.map +1 -0
  499. package/script/dsl/operation/OperationDriver.js +107 -0
  500. package/script/dsl/operation/OperationInsertable.d.ts +45 -0
  501. package/script/dsl/operation/OperationInsertable.d.ts.map +1 -0
  502. package/script/dsl/operation/OperationInsertable.js +2 -0
  503. package/script/dsl/operation/toOperationGateway.d.ts +31 -0
  504. package/script/dsl/operation/toOperationGateway.d.ts.map +1 -0
  505. package/script/dsl/operation/toOperationGateway.js +74 -0
  506. package/script/dsl/operation/toOperationInsertable.d.ts +44 -0
  507. package/script/dsl/operation/toOperationInsertable.d.ts.map +1 -0
  508. package/script/dsl/operation/toOperationInsertable.js +75 -0
  509. package/script/helpers/ResultsLog.d.ts +8 -0
  510. package/script/helpers/ResultsLog.d.ts.map +1 -0
  511. package/script/helpers/ResultsLog.js +50 -0
  512. package/script/helpers/isImported.d.ts +2 -0
  513. package/script/helpers/isImported.d.ts.map +1 -0
  514. package/script/helpers/isImported.js +8 -0
  515. package/script/helpers/naming.d.ts +9 -0
  516. package/script/helpers/naming.d.ts.map +1 -0
  517. package/script/helpers/naming.js +33 -0
  518. package/script/helpers/refFns.d.ts +8 -0
  519. package/script/helpers/refFns.d.ts.map +1 -0
  520. package/script/helpers/refFns.js +24 -0
  521. package/script/helpers/strings.d.ts +9 -0
  522. package/script/helpers/strings.d.ts.map +1 -0
  523. package/script/helpers/strings.js +25 -0
  524. package/script/helpers/toResolvedArtifactPath.d.ts +8 -0
  525. package/script/helpers/toResolvedArtifactPath.d.ts.map +1 -0
  526. package/script/helpers/toResolvedArtifactPath.js +9 -0
  527. package/script/helpers/tracer.d.ts +3 -0
  528. package/script/helpers/tracer.d.ts.map +1 -0
  529. package/script/helpers/tracer.js +10 -0
  530. package/script/mod.d.ts +75 -0
  531. package/script/mod.d.ts.map +1 -0
  532. package/script/mod.js +90 -0
  533. package/script/oas/array/Array.d.ts +58 -0
  534. package/script/oas/array/Array.d.ts.map +1 -0
  535. package/script/oas/array/Array.js +117 -0
  536. package/script/oas/array/array-types.d.ts +13 -0
  537. package/script/oas/array/array-types.d.ts.map +1 -0
  538. package/script/oas/array/array-types.js +20 -0
  539. package/script/oas/array/toArray.d.ts +10 -0
  540. package/script/oas/array/toArray.d.ts.map +1 -0
  541. package/script/oas/array/toArray.js +20 -0
  542. package/script/oas/boolean/Boolean.d.ts +48 -0
  543. package/script/oas/boolean/Boolean.d.ts.map +1 -0
  544. package/script/oas/boolean/Boolean.js +97 -0
  545. package/script/oas/boolean/boolean-types.d.ts +10 -0
  546. package/script/oas/boolean/boolean-types.d.ts.map +1 -0
  547. package/script/oas/boolean/boolean-types.js +11 -0
  548. package/script/oas/boolean/toBoolean.d.ts +10 -0
  549. package/script/oas/boolean/toBoolean.d.ts.map +1 -0
  550. package/script/oas/boolean/toBoolean.js +17 -0
  551. package/script/oas/components/Components.d.ts +43 -0
  552. package/script/oas/components/Components.d.ts.map +1 -0
  553. package/script/oas/components/Components.js +66 -0
  554. package/script/oas/components/toComponentsV3.d.ts +10 -0
  555. package/script/oas/components/toComponentsV3.d.ts.map +1 -0
  556. package/script/oas/components/toComponentsV3.js +37 -0
  557. package/script/oas/contact/Contact.d.ts +15 -0
  558. package/script/oas/contact/Contact.d.ts.map +1 -0
  559. package/script/oas/contact/Contact.js +42 -0
  560. package/script/oas/contact/toContactV3.d.ts +5 -0
  561. package/script/oas/contact/toContactV3.d.ts.map +1 -0
  562. package/script/oas/contact/toContactV3.js +19 -0
  563. package/script/oas/discriminator/Discriminator.d.ts +9 -0
  564. package/script/oas/discriminator/Discriminator.d.ts.map +1 -0
  565. package/script/oas/discriminator/Discriminator.js +21 -0
  566. package/script/oas/discriminator/discriminator-types.d.ts +8 -0
  567. package/script/oas/discriminator/discriminator-types.d.ts.map +1 -0
  568. package/script/oas/discriminator/discriminator-types.js +9 -0
  569. package/script/oas/discriminator/toDiscriminatorV3.d.ts +10 -0
  570. package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -0
  571. package/script/oas/discriminator/toDiscriminatorV3.js +16 -0
  572. package/script/oas/document/Document.d.ts +33 -0
  573. package/script/oas/document/Document.d.ts.map +1 -0
  574. package/script/oas/document/Document.js +77 -0
  575. package/script/oas/document/toDocumentFieldsV3.d.ts +10 -0
  576. package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -0
  577. package/script/oas/document/toDocumentFieldsV3.js +25 -0
  578. package/script/oas/example/Example.d.ts +28 -0
  579. package/script/oas/example/Example.d.ts.map +1 -0
  580. package/script/oas/example/Example.js +59 -0
  581. package/script/oas/example/example-types.d.ts +9 -0
  582. package/script/oas/example/example-types.d.ts.map +1 -0
  583. package/script/oas/example/example-types.js +12 -0
  584. package/script/oas/example/toExamplesV3.d.ts +22 -0
  585. package/script/oas/example/toExamplesV3.d.ts.map +1 -0
  586. package/script/oas/example/toExamplesV3.js +49 -0
  587. package/script/oas/header/Header.d.ts +45 -0
  588. package/script/oas/header/Header.d.ts.map +1 -0
  589. package/script/oas/header/Header.js +84 -0
  590. package/script/oas/header/toHeadersV3.d.ts +11 -0
  591. package/script/oas/header/toHeadersV3.d.ts.map +1 -0
  592. package/script/oas/header/toHeadersV3.js +41 -0
  593. package/script/oas/info/Info.d.ts +25 -0
  594. package/script/oas/info/Info.d.ts.map +1 -0
  595. package/script/oas/info/Info.js +51 -0
  596. package/script/oas/info/toInfoV3.d.ts +10 -0
  597. package/script/oas/info/toInfoV3.d.ts.map +1 -0
  598. package/script/oas/info/toInfoV3.js +24 -0
  599. package/script/oas/integer/Integer.d.ts +55 -0
  600. package/script/oas/integer/Integer.d.ts.map +1 -0
  601. package/script/oas/integer/Integer.js +116 -0
  602. package/script/oas/integer/integer-types.d.ts +13 -0
  603. package/script/oas/integer/integer-types.d.ts.map +1 -0
  604. package/script/oas/integer/integer-types.js +22 -0
  605. package/script/oas/integer/toInteger.d.ts +10 -0
  606. package/script/oas/integer/toInteger.d.ts.map +1 -0
  607. package/script/oas/integer/toInteger.js +20 -0
  608. package/script/oas/intersection/Intersection.d.ts +30 -0
  609. package/script/oas/intersection/Intersection.d.ts.map +1 -0
  610. package/script/oas/intersection/Intersection.js +87 -0
  611. package/script/oas/intersection/intersection-types.d.ts +14 -0
  612. package/script/oas/intersection/intersection-types.d.ts.map +1 -0
  613. package/script/oas/intersection/intersection-types.js +15 -0
  614. package/script/oas/intersection/toIntersection.d.ts +11 -0
  615. package/script/oas/intersection/toIntersection.d.ts.map +1 -0
  616. package/script/oas/intersection/toIntersection.js +20 -0
  617. package/script/oas/license/License.d.ts +13 -0
  618. package/script/oas/license/License.d.ts.map +1 -0
  619. package/script/oas/license/License.js +35 -0
  620. package/script/oas/license/toLicenseV3.d.ts +5 -0
  621. package/script/oas/license/toLicenseV3.d.ts.map +1 -0
  622. package/script/oas/license/toLicenseV3.js +18 -0
  623. package/script/oas/markdown/markdown-types.d.ts +3 -0
  624. package/script/oas/markdown/markdown-types.d.ts.map +1 -0
  625. package/script/oas/markdown/markdown-types.js +5 -0
  626. package/script/oas/mediaType/MediaType.d.ts +18 -0
  627. package/script/oas/mediaType/MediaType.d.ts.map +1 -0
  628. package/script/oas/mediaType/MediaType.js +42 -0
  629. package/script/oas/mediaType/mediaType-types.d.ts +12 -0
  630. package/script/oas/mediaType/mediaType-types.d.ts.map +1 -0
  631. package/script/oas/mediaType/mediaType-types.js +15 -0
  632. package/script/oas/mediaType/toMediaTypeItemV3.d.ts +21 -0
  633. package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -0
  634. package/script/oas/mediaType/toMediaTypeItemV3.js +45 -0
  635. package/script/oas/null/null-types.d.ts +10 -0
  636. package/script/oas/null/null-types.d.ts.map +1 -0
  637. package/script/oas/null/null-types.js +11 -0
  638. package/script/oas/number/Number.d.ts +48 -0
  639. package/script/oas/number/Number.d.ts.map +1 -0
  640. package/script/oas/number/Number.js +97 -0
  641. package/script/oas/number/number-types.d.ts +10 -0
  642. package/script/oas/number/number-types.d.ts.map +1 -0
  643. package/script/oas/number/number-types.js +17 -0
  644. package/script/oas/number/toNumber.d.ts +10 -0
  645. package/script/oas/number/toNumber.d.ts.map +1 -0
  646. package/script/oas/number/toNumber.js +20 -0
  647. package/script/oas/object/Object.d.ts +92 -0
  648. package/script/oas/object/Object.d.ts.map +1 -0
  649. package/script/oas/object/Object.js +196 -0
  650. package/script/oas/object/object-types.d.ts +15 -0
  651. package/script/oas/object/object-types.d.ts.map +1 -0
  652. package/script/oas/object/object-types.js +30 -0
  653. package/script/oas/object/toAdditionalPropertiesV3.d.ts +11 -0
  654. package/script/oas/object/toAdditionalPropertiesV3.d.ts.map +1 -0
  655. package/script/oas/object/toAdditionalPropertiesV3.js +14 -0
  656. package/script/oas/object/toObject.d.ts +10 -0
  657. package/script/oas/object/toObject.d.ts.map +1 -0
  658. package/script/oas/object/toObject.js +29 -0
  659. package/script/oas/operation/Operation.d.ts +56 -0
  660. package/script/oas/operation/Operation.d.ts.map +1 -0
  661. package/script/oas/operation/Operation.js +134 -0
  662. package/script/oas/operation/toOperationsV3.d.ts +23 -0
  663. package/script/oas/operation/toOperationsV3.d.ts.map +1 -0
  664. package/script/oas/operation/toOperationsV3.js +84 -0
  665. package/script/oas/parameter/Parameter.d.ts +42 -0
  666. package/script/oas/parameter/Parameter.d.ts.map +1 -0
  667. package/script/oas/parameter/Parameter.js +126 -0
  668. package/script/oas/parameter/parameter-types.d.ts +26 -0
  669. package/script/oas/parameter/parameter-types.d.ts.map +1 -0
  670. package/script/oas/parameter/parameter-types.js +41 -0
  671. package/script/oas/parameter/toParameterV3.d.ts +21 -0
  672. package/script/oas/parameter/toParameterV3.d.ts.map +1 -0
  673. package/script/oas/parameter/toParameterV3.js +87 -0
  674. package/script/oas/pathItem/PathItem.d.ts +17 -0
  675. package/script/oas/pathItem/PathItem.d.ts.map +1 -0
  676. package/script/oas/pathItem/PathItem.js +42 -0
  677. package/script/oas/pathItem/toPathItemV3.d.ts +10 -0
  678. package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -0
  679. package/script/oas/pathItem/toPathItemV3.js +16 -0
  680. package/script/oas/ref/Ref.d.ts +37 -0
  681. package/script/oas/ref/Ref.d.ts.map +1 -0
  682. package/script/oas/ref/Ref.js +106 -0
  683. package/script/oas/ref/ref-types.d.ts +52 -0
  684. package/script/oas/ref/ref-types.d.ts.map +1 -0
  685. package/script/oas/ref/ref-types.js +57 -0
  686. package/script/oas/ref/toRefV31.d.ts +12 -0
  687. package/script/oas/ref/toRefV31.d.ts.map +1 -0
  688. package/script/oas/ref/toRefV31.js +16 -0
  689. package/script/oas/requestBody/RequestBody.d.ts +22 -0
  690. package/script/oas/requestBody/RequestBody.d.ts.map +1 -0
  691. package/script/oas/requestBody/RequestBody.js +54 -0
  692. package/script/oas/requestBody/toRequestBodiesV3.d.ts +17 -0
  693. package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -0
  694. package/script/oas/requestBody/toRequestBodiesV3.js +43 -0
  695. package/script/oas/response/Response.d.ts +23 -0
  696. package/script/oas/response/Response.d.ts.map +1 -0
  697. package/script/oas/response/Response.js +54 -0
  698. package/script/oas/response/toResponseV3.d.ts +21 -0
  699. package/script/oas/response/toResponseV3.d.ts.map +1 -0
  700. package/script/oas/response/toResponseV3.js +40 -0
  701. package/script/oas/schema/Schema.d.ts +14 -0
  702. package/script/oas/schema/Schema.d.ts.map +1 -0
  703. package/script/oas/schema/Schema.js +2 -0
  704. package/script/oas/schema/schema-types.d.ts +14 -0
  705. package/script/oas/schema/schema-types.d.ts.map +1 -0
  706. package/script/oas/schema/schema-types.js +26 -0
  707. package/script/oas/schema/toSchemasV3.d.ts +28 -0
  708. package/script/oas/schema/toSchemasV3.d.ts.map +1 -0
  709. package/script/oas/schema/toSchemasV3.js +101 -0
  710. package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +12 -0
  711. package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -0
  712. package/script/oas/specificationExtensions/toSpecificationExtensionsV3.js +26 -0
  713. package/script/oas/string/String.d.ts +66 -0
  714. package/script/oas/string/String.d.ts.map +1 -0
  715. package/script/oas/string/String.js +142 -0
  716. package/script/oas/string/string-types.d.ts +18 -0
  717. package/script/oas/string/string-types.d.ts.map +1 -0
  718. package/script/oas/string/string-types.js +35 -0
  719. package/script/oas/string/toString.d.ts +10 -0
  720. package/script/oas/string/toString.d.ts.map +1 -0
  721. package/script/oas/string/toString.js +44 -0
  722. package/script/oas/tag/Tag.d.ts +15 -0
  723. package/script/oas/tag/Tag.d.ts.map +1 -0
  724. package/script/oas/tag/Tag.js +39 -0
  725. package/script/oas/tag/toTagsV3.d.ts +15 -0
  726. package/script/oas/tag/toTagsV3.d.ts.map +1 -0
  727. package/script/oas/tag/toTagsV3.js +26 -0
  728. package/script/oas/union/Union.d.ts +66 -0
  729. package/script/oas/union/Union.d.ts.map +1 -0
  730. package/script/oas/union/Union.js +122 -0
  731. package/script/oas/union/toUnion.d.ts +11 -0
  732. package/script/oas/union/toUnion.d.ts.map +1 -0
  733. package/script/oas/union/toUnion.js +24 -0
  734. package/script/oas/union/union-types.d.ts +14 -0
  735. package/script/oas/union/union-types.d.ts.map +1 -0
  736. package/script/oas/union/union-types.js +15 -0
  737. package/script/oas/unknown/Unknown.d.ts +45 -0
  738. package/script/oas/unknown/Unknown.d.ts.map +1 -0
  739. package/script/oas/unknown/Unknown.js +86 -0
  740. package/script/oas/unknown/toUnknown.d.ts +10 -0
  741. package/script/oas/unknown/toUnknown.d.ts.map +1 -0
  742. package/script/oas/unknown/toUnknown.js +19 -0
  743. package/script/oas/unknown/unknown-types.d.ts +10 -0
  744. package/script/oas/unknown/unknown-types.d.ts.map +1 -0
  745. package/script/oas/unknown/unknown-types.js +11 -0
  746. package/script/oas/void/Void.d.ts +35 -0
  747. package/script/oas/void/Void.d.ts.map +1 -0
  748. package/script/oas/void/Void.js +64 -0
  749. package/script/package.json +3 -0
  750. package/script/run/enrichSettings.d.ts +9 -0
  751. package/script/run/enrichSettings.d.ts.map +1 -0
  752. package/script/run/enrichSettings.js +13 -0
  753. package/script/run/handleEnrichment.d.ts +3 -0
  754. package/script/run/handleEnrichment.d.ts.map +1 -0
  755. package/script/run/handleEnrichment.js +71 -0
  756. package/script/run/toEnrichments.d.ts +13 -0
  757. package/script/run/toEnrichments.d.ts.map +1 -0
  758. package/script/run/toEnrichments.js +42 -0
  759. package/script/run/toSettings.d.ts +12 -0
  760. package/script/run/toSettings.d.ts.map +1 -0
  761. package/script/run/toSettings.js +78 -0
  762. package/script/run/transform.d.ts +20 -0
  763. package/script/run/transform.d.ts.map +1 -0
  764. package/script/run/transform.js +51 -0
  765. package/script/types/Brand.d.ts +7 -0
  766. package/script/types/Brand.d.ts.map +1 -0
  767. package/script/types/Brand.js +3 -0
  768. package/script/types/CustomValue.d.ts +22 -0
  769. package/script/types/CustomValue.d.ts.map +1 -0
  770. package/script/types/CustomValue.js +39 -0
  771. package/script/types/EnrichmentRequest.d.ts +8 -0
  772. package/script/types/EnrichmentRequest.d.ts.map +1 -0
  773. package/script/types/EnrichmentRequest.js +3 -0
  774. package/script/types/Extensions.d.ts +7 -0
  775. package/script/types/Extensions.d.ts.map +1 -0
  776. package/script/types/Extensions.js +6 -0
  777. package/script/types/GeneratedValue.d.ts +19 -0
  778. package/script/types/GeneratedValue.d.ts.map +1 -0
  779. package/script/types/GeneratedValue.js +2 -0
  780. package/script/types/GeneratorKeys.d.ts +50 -0
  781. package/script/types/GeneratorKeys.d.ts.map +1 -0
  782. package/script/types/GeneratorKeys.js +95 -0
  783. package/script/types/GeneratorType.d.ts +9 -0
  784. package/script/types/GeneratorType.d.ts.map +1 -0
  785. package/script/types/GeneratorType.js +2 -0
  786. package/script/types/Manifest.d.ts +121 -0
  787. package/script/types/Manifest.d.ts.map +1 -0
  788. package/script/types/Manifest.js +30 -0
  789. package/script/types/Method.d.ts +11 -0
  790. package/script/types/Method.d.ts.map +1 -0
  791. package/script/types/Method.js +39 -0
  792. package/script/types/Modifiers.d.ts +6 -0
  793. package/script/types/Modifiers.d.ts.map +1 -0
  794. package/script/types/Modifiers.js +2 -0
  795. package/script/types/RefName.d.ts +4 -0
  796. package/script/types/RefName.d.ts.map +1 -0
  797. package/script/types/RefName.js +3 -0
  798. package/script/types/Results.d.ts +10 -0
  799. package/script/types/Results.d.ts.map +1 -0
  800. package/script/types/Results.js +7 -0
  801. package/script/types/Settings.d.ts +306 -0
  802. package/script/types/Settings.d.ts.map +1 -0
  803. package/script/types/Settings.js +45 -0
  804. package/script/types/TypeSystem.d.ts +152 -0
  805. package/script/types/TypeSystem.d.ts.map +1 -0
  806. package/script/types/TypeSystem.js +2 -0
  807. package/script/types/prettierConfig.d.ts +27 -0
  808. package/script/types/prettierConfig.d.ts.map +1 -0
  809. package/script/types/prettierConfig.js +49 -0
  810. package/script/typescript/FunctionParameter.d.ts +34 -0
  811. package/script/typescript/FunctionParameter.d.ts.map +1 -0
  812. package/script/typescript/FunctionParameter.js +84 -0
  813. package/script/typescript/List.d.ts +147 -0
  814. package/script/typescript/List.d.ts.map +1 -0
  815. package/script/typescript/List.js +312 -0
  816. package/script/typescript/PathParams.d.ts +20 -0
  817. package/script/typescript/PathParams.d.ts.map +1 -0
  818. package/script/typescript/PathParams.js +53 -0
  819. package/script/typescript/ReactRouterPathParams.d.ts +20 -0
  820. package/script/typescript/ReactRouterPathParams.d.ts.map +1 -0
  821. package/script/typescript/ReactRouterPathParams.js +53 -0
  822. package/script/typescript/identifiers.d.ts +3 -0
  823. package/script/typescript/identifiers.d.ts.map +1 -0
  824. package/script/typescript/identifiers.js +12 -0
  825. package/script/typescript/keyValues.d.ts +3 -0
  826. package/script/typescript/keyValues.d.ts.map +1 -0
  827. package/script/typescript/keyValues.js +15 -0
  828. package/script/typescript/toPathTemplate.d.ts +2 -0
  829. package/script/typescript/toPathTemplate.d.ts.map +1 -0
  830. package/script/typescript/toPathTemplate.js +7 -0
  831. package/script/typescript/withDescription.d.ts +4 -0
  832. package/script/typescript/withDescription.d.ts.map +1 -0
  833. package/script/typescript/withDescription.js +7 -0
@@ -0,0 +1,513 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
26
+ if (kind === "m") throw new TypeError("Private method is not writable");
27
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
28
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
29
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
30
+ };
31
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
32
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
33
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
34
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ var _GenerateContext_instances, _GenerateContext_files, _GenerateContext_previews, _GenerateContext_stackTrail, _GenerateContext_runOperationGenerator, _GenerateContext_runModelGenerator, _GenerateContext_getFile, _GenerateContext_addFile;
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.GenerateContext = void 0;
42
+ const mod_js_1 = require("../deps/jsr.io/@std/path/1.0.6/mod.js");
43
+ const Import_js_1 = require("../dsl/Import.js");
44
+ const Definition_js_1 = require("../dsl/Definition.js");
45
+ const OperationDriver_js_1 = require("../dsl/operation/OperationDriver.js");
46
+ const ModelDriver_js_1 = require("../dsl/model/ModelDriver.js");
47
+ const ContentSettings_js_1 = require("../dsl/ContentSettings.js");
48
+ const Sentry = __importStar(require("@sentry/deno"));
49
+ const tracer_js_1 = require("../helpers/tracer.js");
50
+ const Inserted_js_1 = require("../dsl/Inserted.js");
51
+ const File_js_1 = require("../dsl/File.js");
52
+ const tiny_invariant_1 = __importDefault(require("tiny-invariant"));
53
+ class GenerateContext {
54
+ constructor({ oasDocument, settings, logger, callback, captureCurrentResult, stackTrail, toGeneratorsMap }) {
55
+ _GenerateContext_instances.add(this);
56
+ _GenerateContext_files.set(this, void 0);
57
+ _GenerateContext_previews.set(this, void 0);
58
+ Object.defineProperty(this, "oasDocument", {
59
+ enumerable: true,
60
+ configurable: true,
61
+ writable: true,
62
+ value: void 0
63
+ });
64
+ Object.defineProperty(this, "settings", {
65
+ enumerable: true,
66
+ configurable: true,
67
+ writable: true,
68
+ value: void 0
69
+ });
70
+ Object.defineProperty(this, "logger", {
71
+ enumerable: true,
72
+ configurable: true,
73
+ writable: true,
74
+ value: void 0
75
+ });
76
+ Object.defineProperty(this, "callback", {
77
+ enumerable: true,
78
+ configurable: true,
79
+ writable: true,
80
+ value: void 0
81
+ });
82
+ Object.defineProperty(this, "captureCurrentResult", {
83
+ enumerable: true,
84
+ configurable: true,
85
+ writable: true,
86
+ value: void 0
87
+ });
88
+ Object.defineProperty(this, "toGeneratorsMap", {
89
+ enumerable: true,
90
+ configurable: true,
91
+ writable: true,
92
+ value: void 0
93
+ });
94
+ _GenerateContext_stackTrail.set(this, void 0);
95
+ this.logger = logger;
96
+ __classPrivateFieldSet(this, _GenerateContext_files, new Map(), "f");
97
+ __classPrivateFieldSet(this, _GenerateContext_previews, {}, "f");
98
+ this.oasDocument = oasDocument;
99
+ this.settings = settings;
100
+ this.callback = callback;
101
+ __classPrivateFieldSet(this, _GenerateContext_stackTrail, stackTrail, "f");
102
+ this.captureCurrentResult = captureCurrentResult;
103
+ this.toGeneratorsMap = toGeneratorsMap;
104
+ }
105
+ /**
106
+ * @internal
107
+ */
108
+ generate() {
109
+ const generators = Object.values(this.toGeneratorsMap());
110
+ Sentry.startSpan({ name: 'Generate operations' }, () => generators
111
+ .filter(generator => generator.type === 'operation')
112
+ .forEach(generator => {
113
+ this.trace(generator.id, () => {
114
+ __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_runOperationGenerator).call(this, { oasDocument: this.oasDocument, generator });
115
+ });
116
+ }));
117
+ Sentry.startSpan({ name: 'Generate models' }, () => {
118
+ generators
119
+ .filter(generator => generator.type === 'model')
120
+ .forEach(generator => {
121
+ this.trace(generator.id, () => {
122
+ __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_runModelGenerator).call(this, { oasDocument: this.oasDocument, generator });
123
+ });
124
+ });
125
+ });
126
+ return {
127
+ files: __classPrivateFieldGet(this, _GenerateContext_files, "f"),
128
+ previews: __classPrivateFieldGet(this, _GenerateContext_previews, "f")
129
+ };
130
+ }
131
+ trace(token, fn) {
132
+ return (0, tracer_js_1.tracer)(__classPrivateFieldGet(this, _GenerateContext_stackTrail, "f"), token, fn);
133
+ }
134
+ /**
135
+ * Converts schema to value using `schemaToValueFn` and creates definition
136
+ * with the given `identifier` at `destinationPath`.
137
+ *
138
+ * If a definition with the same name already exists, it will be returned
139
+ * instead of creating a new one.
140
+ *
141
+ * @experimental
142
+ *
143
+ * @param schema - The schema to create the definition for.
144
+ * @param identifier - The identifier for the definition.
145
+ * @param destinationPath - The path to the file where the definition will be registered.
146
+ * @param schemaToValueFn - A function that converts the schema to a value.
147
+ * @returns The created definition or cached definition if it already exists.
148
+ */
149
+ createAndRegisterDefinition({ schema, identifier, destinationPath, schemaToValueFn }) {
150
+ const cachedDefinition = this.findDefinition({
151
+ name: identifier.name,
152
+ exportPath: destinationPath
153
+ });
154
+ // @TODO add check to make sure retrieved definition
155
+ // used same generator and same schema #SKM-47
156
+ if (cachedDefinition) {
157
+ return cachedDefinition;
158
+ }
159
+ const value = schemaToValueFn({
160
+ context: this,
161
+ schema,
162
+ destinationPath,
163
+ required: true
164
+ });
165
+ return this.defineAndRegister({
166
+ identifier,
167
+ value,
168
+ destinationPath
169
+ });
170
+ }
171
+ /**
172
+ * Create and register a definition with the given `identifier` at `destinationPath`.
173
+ *
174
+ * @experimental
175
+ */
176
+ defineAndRegister({ identifier, value, destinationPath }) {
177
+ // @TODO cache check is duplicatd if call comes from
178
+ // createAndRegisterDefinition. Look for a way to share code between
179
+ // these two functions
180
+ const cachedDefinition = this.findDefinition({
181
+ name: identifier.name,
182
+ exportPath: destinationPath
183
+ });
184
+ // @TODO add check to make sure retrieved definition
185
+ // used same generator and same schema #SKM-47
186
+ if (cachedDefinition) {
187
+ return cachedDefinition;
188
+ }
189
+ const definition = new Definition_js_1.Definition({
190
+ context: this,
191
+ identifier,
192
+ value
193
+ });
194
+ this.register({
195
+ definitions: [definition],
196
+ destinationPath
197
+ });
198
+ return definition;
199
+ }
200
+ /**
201
+ * Insert supplied `imports` and `definitions` into file at `destinationPath`.
202
+ *
203
+ * If an import from a specified module already exists in the file, the
204
+ * import names are appended to the existing import.
205
+ *
206
+ * Definitions will only be added if there is not already a definition with
207
+ * the same name in the file.
208
+ *
209
+ * @mutates this.files
210
+ */
211
+ register({ imports = {}, definitions, destinationPath, reExports, preview }) {
212
+ // TODO deduplicate import names and definition names against each other
213
+ const currentFile = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_getFile).call(this, destinationPath);
214
+ Object.entries(reExports ?? {}).forEach(([importModule, identifiers]) => {
215
+ if (!currentFile.reExports.get(importModule) && identifiers.length) {
216
+ currentFile.reExports.set(importModule, {});
217
+ }
218
+ identifiers.forEach(identifier => {
219
+ const entityType = identifier.entityType.type;
220
+ const module = currentFile.reExports.get(importModule);
221
+ (0, tiny_invariant_1.default)(module, 'Module not found');
222
+ if (!module[entityType]) {
223
+ module[entityType] = new Set();
224
+ }
225
+ module[entityType].add(identifier.name);
226
+ });
227
+ });
228
+ Object.entries(imports).forEach(([importModule, importNames]) => {
229
+ const module = currentFile.imports.get(importModule);
230
+ const importItem = new Import_js_1.Import({ module: importModule, importNames });
231
+ if (module) {
232
+ importItem.importNames.forEach(n => module.add(`${n}`));
233
+ }
234
+ else {
235
+ currentFile.imports.set(importModule, new Set(importItem.importNames.map(n => `${n}`)));
236
+ }
237
+ });
238
+ definitions?.forEach(definition => {
239
+ if (!definition) {
240
+ return;
241
+ }
242
+ const { name } = definition.identifier;
243
+ if (!currentFile.definitions.has(name)) {
244
+ currentFile.definitions.set(name, definition);
245
+ }
246
+ });
247
+ Object.entries(preview ?? {}).forEach(([group, name]) => {
248
+ if (!__classPrivateFieldGet(this, _GenerateContext_previews, "f")[group]) {
249
+ __classPrivateFieldGet(this, _GenerateContext_previews, "f")[group] = {};
250
+ }
251
+ __classPrivateFieldGet(this, _GenerateContext_previews, "f")[group][name] = destinationPath;
252
+ console.log('PREVIEW 1', __classPrivateFieldGet(this, _GenerateContext_previews, "f"));
253
+ });
254
+ }
255
+ /**
256
+ * Insert operation into the output file with path `destinationPath`.
257
+ *
258
+ * Insert will perform the following steps:
259
+ * 1. Generate content settings for the supplied operation
260
+ * 2. Look up definition in file with path `destinationPath`
261
+ * 3. If definition is not found, it will create a new one and register it
262
+ * 4. If the definition is defined at a location that is different from
263
+ * the current file, it will add an import to the current file from
264
+ * that location
265
+ * 5. Use the content settings to generate the operation using the
266
+ * insertable's driver
267
+ * @mutates this.files
268
+ */
269
+ insertOperation({ insertable, operation, generation, destinationPath }) {
270
+ const { settings, definition } = new OperationDriver_js_1.OperationDriver({
271
+ context: this,
272
+ insertable,
273
+ operation,
274
+ generation,
275
+ destinationPath
276
+ });
277
+ return new Inserted_js_1.Inserted({ settings, definition });
278
+ }
279
+ /**
280
+ * Insert model into the output file with path `destinationPath`.
281
+ *
282
+ * Insert will perform the following steps:
283
+ * 1. Generate content settings for the supplied model
284
+ * 2. Look up definition in file with path `destinationPath`
285
+ * 3. If definition is not found, it will create a new one and register it
286
+ * 4. If the definition is defined at a location that is different from
287
+ * the current file, it will add an import to the current file from
288
+ * that location
289
+ * 5. Use the content settings to generate the model using the
290
+ * insertable's driver
291
+ * @mutates this.files
292
+ */
293
+ insertModel({ insertable, refName, generation, destinationPath }) {
294
+ const { settings, definition } = new ModelDriver_js_1.ModelDriver({
295
+ context: this,
296
+ insertable,
297
+ refName,
298
+ generation,
299
+ destinationPath
300
+ });
301
+ return new Inserted_js_1.Inserted({ settings, definition });
302
+ }
303
+ /**
304
+ * Generate and return content settings for operation insertable and
305
+ * operation.
306
+ *
307
+ * Content settings are produced by passing base settings and operation
308
+ * through toIdentifier and toExportPath static methods on the
309
+ * insertable.
310
+ * @param { operation, insertable }
311
+ * @returns
312
+ */
313
+ toOperationContentSettings({ operation, insertable }) {
314
+ const selected = this.toOperationSelected({
315
+ generatorId: insertable.id,
316
+ path: operation.path,
317
+ method: operation.method
318
+ });
319
+ return new ContentSettings_js_1.ContentSettings({
320
+ selected: Boolean(selected),
321
+ identifier: insertable.toIdentifier(operation),
322
+ exportPath: insertable.toExportPath(operation),
323
+ enrichments: insertable.toEnrichments(operation)
324
+ });
325
+ }
326
+ /**
327
+ * Generate and return content settings for model insertable and refName.
328
+ *
329
+ * Content settings are produced by passing base settings and refName
330
+ * through toIdentifier and toExportPath static methods on the
331
+ * insertable.
332
+ * @param { refName, insertable }
333
+ * @returns Content settings for model
334
+ */
335
+ toModelContentSettings({ refName, insertable }) {
336
+ const selected = this.toModelSelected({
337
+ generatorId: insertable.id,
338
+ refName
339
+ });
340
+ return new ContentSettings_js_1.ContentSettings({
341
+ identifier: insertable.toIdentifier(refName),
342
+ selected: Boolean(selected),
343
+ exportPath: insertable.toExportPath(refName),
344
+ enrichments: insertable.toEnrichments(refName)
345
+ });
346
+ }
347
+ /**
348
+ * Generate and return content settings for a gateway
349
+ *
350
+ * Content settings are produced by passing base settings
351
+ * through toIdentifier, toExportPath methods on the gateway
352
+ * @param gateway
353
+ * @returns Content settings for model
354
+ */
355
+ toGatewayContentSetting(gateway) {
356
+ return new ContentSettings_js_1.ContentSettings({
357
+ identifier: gateway.toIdentifier(),
358
+ selected: true,
359
+ exportPath: gateway.toExportPath(),
360
+ enrichments: gateway.toEnrichments()
361
+ });
362
+ }
363
+ /**
364
+ * Look up operation settings for a given generatorId, path and method.
365
+ * @param { generatorId, path, method }
366
+ * @returns Base settings for operation
367
+ */
368
+ toOperationSelected({ generatorId, path, method }) {
369
+ const generatorSettings = this.toGeneratorSettings(generatorId);
370
+ const operationSettings = generatorSettings && 'operations' in generatorSettings
371
+ ? generatorSettings.operations[path]?.[method]
372
+ : undefined;
373
+ return operationSettings;
374
+ }
375
+ toModelSelected({ generatorId, refName }) {
376
+ const generatorSettings = this.toGeneratorSettings(generatorId);
377
+ const modelSettings = generatorSettings && 'models' in generatorSettings
378
+ ? generatorSettings.models[refName]
379
+ : undefined;
380
+ return modelSettings;
381
+ }
382
+ toGeneratorSettings(generatorId) {
383
+ return this.settings?.generators?.find(({ id }) => id === generatorId);
384
+ }
385
+ /**
386
+ * Perform one lookup of schema by `refName`.
387
+ * @param refName
388
+ * @returns Matching schema or ref
389
+ * @throws if schema is not found
390
+ */
391
+ resolveSchemaRefOnce(refName) {
392
+ const schema = this.oasDocument.components?.schemas?.[refName]?.resolveOnce();
393
+ if (!schema) {
394
+ throw new Error(`Schema not found: ${refName}`);
395
+ }
396
+ return schema;
397
+ }
398
+ /**
399
+ * Check if definition name `name` in file with path `exportPath`
400
+ * has already been created and registered.
401
+ *
402
+ * @param { name, exportPath }
403
+ * @returns Matching definition if found or `undefined` otherwise
404
+ */
405
+ findDefinition({ name, exportPath }) {
406
+ return __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_getFile).call(this, exportPath).definitions.get(name);
407
+ }
408
+ }
409
+ exports.GenerateContext = GenerateContext;
410
+ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(), _GenerateContext_stackTrail = new WeakMap(), _GenerateContext_instances = new WeakSet(), _GenerateContext_runOperationGenerator = function _GenerateContext_runOperationGenerator({ oasDocument, generator }) {
411
+ if (generator._class === 'OperationGateway') {
412
+ const gatewaySettings = this.toGatewayContentSetting(generator);
413
+ const gatewayInstance = new generator({
414
+ context: this,
415
+ settings: gatewaySettings
416
+ });
417
+ oasDocument.operations.forEach(operation => {
418
+ // TODO If we make OasOperation generic, for example by
419
+ // adding a `method` type, we could make isSupported
420
+ // a type guard which could help us narrow down the
421
+ // exact operation type that a generator receives.
422
+ // This would allow us to remove some type checks
423
+ // in the generator implementations
424
+ // https://linear.app/skmtc/issue/SKM-32/generic-models-operations
425
+ const { path, method } = operation;
426
+ this.trace([path, method], () => {
427
+ if (!generator.isSupported(operation)) {
428
+ return this.captureCurrentResult('notSupported');
429
+ }
430
+ const selected = this.toOperationSelected({
431
+ generatorId: generator.id,
432
+ path,
433
+ method
434
+ });
435
+ if (!selected) {
436
+ return this.captureCurrentResult('notSelected');
437
+ }
438
+ gatewayInstance.transformOperation(operation);
439
+ this.captureCurrentResult('success');
440
+ });
441
+ });
442
+ return this.defineAndRegister({
443
+ identifier: gatewaySettings.identifier,
444
+ value: gatewayInstance,
445
+ destinationPath: gatewaySettings.exportPath
446
+ });
447
+ }
448
+ if (generator._class === 'OperationInsertable') {
449
+ return oasDocument.operations.forEach(operation => {
450
+ // TODO If we make OasOperation generic, for example by
451
+ // adding a `method` type, we could make isSupported
452
+ // a type guard which could help us narrow down the
453
+ // exact operation type that a generator receives.
454
+ // This would allow us to remove some type checks
455
+ // in the generator implementations
456
+ // https://linear.app/skmtc/issue/SKM-32/generic-models-operations
457
+ const { path, method } = operation;
458
+ this.trace([path, method], () => {
459
+ if (!generator.isSupported(operation)) {
460
+ return this.captureCurrentResult('notSupported');
461
+ }
462
+ const selected = this.toOperationSelected({
463
+ generatorId: generator.id,
464
+ path,
465
+ method
466
+ });
467
+ if (!selected) {
468
+ return this.captureCurrentResult('notSelected');
469
+ }
470
+ this.insertOperation({ insertable: generator, operation });
471
+ this.captureCurrentResult('success');
472
+ });
473
+ });
474
+ }
475
+ throw new Error(`Unknown generator type`);
476
+ }, _GenerateContext_runModelGenerator = function _GenerateContext_runModelGenerator({ oasDocument, generator }) {
477
+ const refNames = oasDocument.components?.toSchemasRefNames() ?? [];
478
+ return refNames.forEach(refName => {
479
+ this.trace(refName, () => {
480
+ if (!generator.isSupported()) {
481
+ return this.captureCurrentResult('notSupported');
482
+ }
483
+ const selected = this.toModelSelected({
484
+ generatorId: generator.id,
485
+ refName
486
+ });
487
+ if (!selected) {
488
+ return this.captureCurrentResult('notSelected');
489
+ }
490
+ this.insertModel({ insertable: generator, refName });
491
+ this.captureCurrentResult('success');
492
+ });
493
+ });
494
+ }, _GenerateContext_getFile = function _GenerateContext_getFile(filePath, { throwIfNotFound = false } = {}) {
495
+ const normalisedPath = (0, mod_js_1.normalize)(filePath);
496
+ const currentFile = __classPrivateFieldGet(this, _GenerateContext_files, "f").get(normalisedPath);
497
+ if (!currentFile) {
498
+ if (throwIfNotFound) {
499
+ throw new Error(`File not found: '${normalisedPath}'`);
500
+ }
501
+ else {
502
+ return __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addFile).call(this, normalisedPath);
503
+ }
504
+ }
505
+ return currentFile;
506
+ }, _GenerateContext_addFile = function _GenerateContext_addFile(normalisedPath) {
507
+ if (__classPrivateFieldGet(this, _GenerateContext_files, "f").has(normalisedPath)) {
508
+ throw new Error(`File already exists: ${normalisedPath}`);
509
+ }
510
+ const newFile = new File_js_1.File({ path: normalisedPath, settings: this.settings });
511
+ __classPrivateFieldGet(this, _GenerateContext_files, "f").set(normalisedPath, newFile);
512
+ return newFile;
513
+ };
@@ -0,0 +1,34 @@
1
+ import type { OpenAPIV3 } from 'openapi-types';
2
+ import { OasDocument } from '../oas/document/Document.js';
3
+ import type * as log from '../deps/jsr.io/@std/log/0.224.8/mod.js';
4
+ import type { StackTrail } from './StackTrail.js';
5
+ type ConstructorArgs = {
6
+ schema: string;
7
+ logger: log.Logger;
8
+ stackTrail: StackTrail;
9
+ };
10
+ export type ParseReturn = {
11
+ oasDocument: OasDocument;
12
+ extensions: Record<string, unknown>;
13
+ };
14
+ type RegisterExtensionArgs = {
15
+ type: string;
16
+ stackTrail: string[];
17
+ extensionFields: Record<string, unknown>;
18
+ };
19
+ export declare class ParseContext {
20
+ #private;
21
+ schema: string;
22
+ logger: log.Logger;
23
+ oasDocument: OasDocument;
24
+ stackTrail: StackTrail;
25
+ extentions: Record<string, unknown>;
26
+ constructor({ schema, logger, stackTrail }: ConstructorArgs);
27
+ parse(): OasDocument;
28
+ trace<T>(token: string | string[], fn: () => T): T;
29
+ registerExtension({ extensionFields, stackTrail, type }: RegisterExtensionArgs): void;
30
+ logSkippedFields(skipped: Record<string, unknown>): void;
31
+ }
32
+ export declare const parseSchema: (schema: string) => OpenAPIV3.Document<{}>;
33
+ export {};
34
+ //# sourceMappingURL=ParseContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParseContext.d.ts","sourceRoot":"","sources":["../../src/context/ParseContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAI9C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,KAAK,KAAK,GAAG,MAAM,wCAAwC,CAAA;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAIjD,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,GAAG,CAAC,MAAM,CAAA;IAClB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,WAAW,EAAE,WAAW,CAAA;IACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACpC,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACzC,CAAA;AAED,qBAAa,YAAY;;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,GAAG,CAAC,MAAM,CAAA;IAClB,WAAW,EAAE,WAAW,CAAA;IACxB,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;gBAEvB,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,eAAe;IAQ3D,KAAK;IA6BL,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC;IAiBlD,iBAAiB,CAAC,EAAE,eAAe,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,qBAAqB,GAAG,IAAI;IAIrF,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAUlD;AAED,eAAO,MAAM,WAAW,WAAY,MAAM,2BAMzC,CAAA"}
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
26
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
27
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
28
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
29
+ };
30
+ var _ParseContext_instances, _ParseContext_parseSchema, _ParseContext_parseDocument;
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.parseSchema = exports.ParseContext = void 0;
33
+ const lodash_es_1 = require("lodash-es");
34
+ const Sentry = __importStar(require("@sentry/deno"));
35
+ const mod_js_1 = require("../deps/jsr.io/@std/yaml/0.215.0/mod.js");
36
+ const toDocumentFieldsV3_js_1 = require("../oas/document/toDocumentFieldsV3.js");
37
+ const Document_js_1 = require("../oas/document/Document.js");
38
+ const tracer_js_1 = require("../helpers/tracer.js");
39
+ const openapi_down_convert_1 = require("@apiture/openapi-down-convert");
40
+ class ParseContext {
41
+ constructor({ schema, logger, stackTrail }) {
42
+ _ParseContext_instances.add(this);
43
+ Object.defineProperty(this, "schema", {
44
+ enumerable: true,
45
+ configurable: true,
46
+ writable: true,
47
+ value: void 0
48
+ });
49
+ Object.defineProperty(this, "logger", {
50
+ enumerable: true,
51
+ configurable: true,
52
+ writable: true,
53
+ value: void 0
54
+ });
55
+ Object.defineProperty(this, "oasDocument", {
56
+ enumerable: true,
57
+ configurable: true,
58
+ writable: true,
59
+ value: void 0
60
+ });
61
+ Object.defineProperty(this, "stackTrail", {
62
+ enumerable: true,
63
+ configurable: true,
64
+ writable: true,
65
+ value: void 0
66
+ });
67
+ Object.defineProperty(this, "extentions", {
68
+ enumerable: true,
69
+ configurable: true,
70
+ writable: true,
71
+ value: void 0
72
+ });
73
+ this.schema = schema;
74
+ this.logger = logger;
75
+ this.stackTrail = stackTrail;
76
+ this.extentions = {};
77
+ this.oasDocument = new Document_js_1.OasDocument();
78
+ }
79
+ parse() {
80
+ const documentObject = __classPrivateFieldGet(this, _ParseContext_instances, "m", _ParseContext_parseSchema).call(this);
81
+ if (documentObject.openapi.startsWith('3.1')) {
82
+ const options = {
83
+ verbose: false,
84
+ deleteExampleWithId: false,
85
+ allOfTransform: true
86
+ };
87
+ const converter = new openapi_down_convert_1.Converter(documentObject, options);
88
+ const oas30Document = converter.convert();
89
+ return __classPrivateFieldGet(this, _ParseContext_instances, "m", _ParseContext_parseDocument).call(this, oas30Document);
90
+ }
91
+ return __classPrivateFieldGet(this, _ParseContext_instances, "m", _ParseContext_parseDocument).call(this, documentObject);
92
+ }
93
+ trace(token, fn) {
94
+ return (0, tracer_js_1.tracer)(this.stackTrail, token, fn);
95
+ }
96
+ registerExtension({ extensionFields, stackTrail, type }) {
97
+ (0, lodash_es_1.setWith)(this.extentions, stackTrail.concat('__x__'), { type, extensionFields }, Object);
98
+ }
99
+ logSkippedFields(skipped) {
100
+ Object.entries(skipped).forEach(([key, value]) => {
101
+ this.trace(key, () => {
102
+ const str = JSON.stringify(value);
103
+ const reduced = str.length > 30 ? `${str.slice(0, 30)}...` : str;
104
+ this.logger.warn(`Property not yet implemented. value: ${reduced}`);
105
+ });
106
+ });
107
+ }
108
+ }
109
+ exports.ParseContext = ParseContext;
110
+ _ParseContext_instances = new WeakSet(), _ParseContext_parseSchema = function _ParseContext_parseSchema() {
111
+ const documentObject = Sentry.startSpan({ name: 'Parse string schema to object' }, () => (0, exports.parseSchema)(this.schema));
112
+ return documentObject;
113
+ }, _ParseContext_parseDocument = function _ParseContext_parseDocument(documentObject) {
114
+ if (!documentObject.openapi.startsWith('3.0.')) {
115
+ throw new Error('Only OpenAPI v3 is supported');
116
+ }
117
+ this.oasDocument.fields = (0, toDocumentFieldsV3_js_1.toDocumentFieldsV3)({
118
+ documentObject,
119
+ context: this
120
+ });
121
+ return this.oasDocument;
122
+ };
123
+ const parseSchema = (schema) => {
124
+ if (schema.trimStart().startsWith('{')) {
125
+ return JSON.parse(schema);
126
+ }
127
+ else {
128
+ return (0, mod_js_1.parse)(schema);
129
+ }
130
+ };
131
+ exports.parseSchema = parseSchema;