@goast/core 0.6.0-beta.2 → 0.7.0-beta.1

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 (295) hide show
  1. package/README.md +0 -4
  2. package/dist/mod.d.ts +31 -0
  3. package/{script → dist}/src/ast/node.d.ts +3 -4
  4. package/{esm → dist}/src/ast/node.js +3 -9
  5. package/{esm → dist}/src/codegen/config.d.ts +2 -3
  6. package/{script → dist}/src/codegen/endpoints-generator.d.ts +4 -5
  7. package/{esm → dist}/src/codegen/endpoints-generator.js +1 -1
  8. package/{script → dist}/src/codegen/generator.d.ts +7 -8
  9. package/{esm → dist}/src/codegen/generator.js +4 -21
  10. package/{esm → dist}/src/codegen/internal-utils.d.ts +0 -1
  11. package/{esm → dist}/src/codegen/internal-utils.js +0 -1
  12. package/{script → dist}/src/codegen/schemas-generator.d.ts +4 -5
  13. package/{esm → dist}/src/codegen/schemas-generator.js +1 -2
  14. package/{esm → dist}/src/codegen/services-generator.d.ts +4 -5
  15. package/{esm → dist}/src/codegen/services-generator.js +1 -1
  16. package/{script → dist}/src/codegen/types.d.ts +3 -4
  17. package/dist/src/collect/collector.d.ts +4 -0
  18. package/{esm → dist}/src/collect/collector.js +6 -8
  19. package/{esm → dist}/src/collect/helpers.d.ts +2 -3
  20. package/{script → dist}/src/collect/types.d.ts +2 -3
  21. package/{esm → dist}/src/internal-utils.d.ts +0 -1
  22. package/dist/src/parse/deref-proxy.d.ts +3 -0
  23. package/{esm → dist}/src/parse/deref-proxy.js +7 -21
  24. package/{esm → dist}/src/parse/openapi-types.d.ts +0 -1
  25. package/{esm → dist}/src/parse/parser.d.ts +3 -4
  26. package/{esm → dist}/src/parse/parser.js +7 -20
  27. package/{script → dist}/src/parse/types.d.ts +3 -4
  28. package/{script → dist}/src/transform/api-types.d.ts +3 -4
  29. package/{esm → dist}/src/transform/helpers.d.ts +4 -5
  30. package/{esm → dist}/src/transform/helpers.js +5 -15
  31. package/dist/src/transform/transform-document.d.ts +4 -0
  32. package/{esm → dist}/src/transform/transform-document.js +2 -4
  33. package/{esm → dist}/src/transform/transform-endpoint.d.ts +3 -4
  34. package/{esm → dist}/src/transform/transform-endpoint.js +10 -17
  35. package/dist/src/transform/transform-schema.d.ts +5 -0
  36. package/{esm → dist}/src/transform/transform-schema.js +8 -12
  37. package/dist/src/transform/transformer.d.ts +4 -0
  38. package/{esm → dist}/src/transform/types.d.ts +4 -5
  39. package/{script → dist}/src/utils/action-provider.d.ts +2 -3
  40. package/{esm → dist}/src/utils/action-provider.js +3 -7
  41. package/{esm → dist}/src/utils/api-data.utils.d.ts +1 -2
  42. package/{esm → dist}/src/utils/array.utils.d.ts +0 -1
  43. package/{script → dist}/src/utils/asset-manager.d.ts +0 -1
  44. package/{esm → dist}/src/utils/asset-manager.js +2 -8
  45. package/{esm → dist}/src/utils/class.utils.d.ts +0 -1
  46. package/{esm → dist}/src/utils/class.utils.js +0 -1
  47. package/{script → dist}/src/utils/common.utils.d.ts +1 -2
  48. package/{esm → dist}/src/utils/condition.d.ts +0 -1
  49. package/dist/src/utils/endpoint.utils.d.ts +2 -0
  50. package/{esm → dist}/src/utils/error.utils.d.ts +0 -1
  51. package/{esm → dist}/src/utils/factory.d.ts +2 -3
  52. package/{esm → dist}/src/utils/factory.js +3 -7
  53. package/{esm → dist}/src/utils/file-system.utils.d.ts +2 -3
  54. package/{esm → dist}/src/utils/generator.utils.d.ts +0 -1
  55. package/{esm → dist}/src/utils/object.utils.d.ts +0 -1
  56. package/{esm → dist}/src/utils/object.utils.js +2 -11
  57. package/dist/src/utils/schema-factory.d.ts +41 -0
  58. package/dist/src/utils/schema-factory.js +132 -0
  59. package/{esm → dist}/src/utils/schema.utils.d.ts +2 -3
  60. package/{esm → dist}/src/utils/schema.utils.js +1 -5
  61. package/{esm → dist}/src/utils/source-builder.d.ts +5 -6
  62. package/{esm → dist}/src/utils/source-builder.js +19 -54
  63. package/{script → dist}/src/utils/string-builder/options.d.ts +0 -1
  64. package/{script → dist}/src/utils/string-builder/string-builder.d.ts +2 -3
  65. package/{esm → dist}/src/utils/string-builder/string-builder.js +2 -12
  66. package/{esm → dist}/src/utils/string-builder/utils.d.ts +2 -3
  67. package/{esm → dist}/src/utils/string-builder/utils.js +4 -6
  68. package/{script → dist}/src/utils/string.utils.d.ts +2 -3
  69. package/{esm → dist}/src/utils/string.utils.js +9 -15
  70. package/{esm → dist}/src/utils/string.utils.types.d.ts +0 -1
  71. package/{esm → dist}/src/utils/type.utils.d.ts +0 -1
  72. package/{script → dist}/src/utils/yaml-info.d.ts +0 -1
  73. package/{esm → dist}/src/utils/yaml-info.js +9 -6
  74. package/package.json +23 -16
  75. package/esm/_dnt.shims.d.ts +0 -11
  76. package/esm/_dnt.shims.d.ts.map +0 -1
  77. package/esm/_dnt.shims.js +0 -66
  78. package/esm/mod.d.ts +0 -32
  79. package/esm/mod.d.ts.map +0 -1
  80. package/esm/package.json +0 -3
  81. package/esm/src/ast/node.d.ts +0 -17
  82. package/esm/src/ast/node.d.ts.map +0 -1
  83. package/esm/src/codegen/config.d.ts.map +0 -1
  84. package/esm/src/codegen/endpoints-generator.d.ts +0 -18
  85. package/esm/src/codegen/endpoints-generator.d.ts.map +0 -1
  86. package/esm/src/codegen/generator.d.ts +0 -39
  87. package/esm/src/codegen/generator.d.ts.map +0 -1
  88. package/esm/src/codegen/internal-utils.d.ts.map +0 -1
  89. package/esm/src/codegen/schemas-generator.d.ts +0 -19
  90. package/esm/src/codegen/schemas-generator.d.ts.map +0 -1
  91. package/esm/src/codegen/services-generator.d.ts.map +0 -1
  92. package/esm/src/codegen/types.d.ts +0 -19
  93. package/esm/src/codegen/types.d.ts.map +0 -1
  94. package/esm/src/collect/collector.d.ts +0 -5
  95. package/esm/src/collect/collector.d.ts.map +0 -1
  96. package/esm/src/collect/helpers.d.ts.map +0 -1
  97. package/esm/src/collect/types.d.ts +0 -14
  98. package/esm/src/collect/types.d.ts.map +0 -1
  99. package/esm/src/internal-utils.d.ts.map +0 -1
  100. package/esm/src/parse/deref-proxy.d.ts +0 -4
  101. package/esm/src/parse/deref-proxy.d.ts.map +0 -1
  102. package/esm/src/parse/openapi-types.d.ts.map +0 -1
  103. package/esm/src/parse/parser.d.ts.map +0 -1
  104. package/esm/src/parse/types.d.ts +0 -28
  105. package/esm/src/parse/types.d.ts.map +0 -1
  106. package/esm/src/transform/api-types.d.ts +0 -211
  107. package/esm/src/transform/api-types.d.ts.map +0 -1
  108. package/esm/src/transform/helpers.d.ts.map +0 -1
  109. package/esm/src/transform/transform-document.d.ts +0 -5
  110. package/esm/src/transform/transform-document.d.ts.map +0 -1
  111. package/esm/src/transform/transform-endpoint.d.ts.map +0 -1
  112. package/esm/src/transform/transform-schema.d.ts +0 -6
  113. package/esm/src/transform/transform-schema.d.ts.map +0 -1
  114. package/esm/src/transform/transformer.d.ts +0 -5
  115. package/esm/src/transform/transformer.d.ts.map +0 -1
  116. package/esm/src/transform/types.d.ts.map +0 -1
  117. package/esm/src/utils/action-provider.d.ts +0 -29
  118. package/esm/src/utils/action-provider.d.ts.map +0 -1
  119. package/esm/src/utils/api-data.utils.d.ts.map +0 -1
  120. package/esm/src/utils/array.utils.d.ts.map +0 -1
  121. package/esm/src/utils/asset-manager.d.ts +0 -9
  122. package/esm/src/utils/asset-manager.d.ts.map +0 -1
  123. package/esm/src/utils/class.utils.d.ts.map +0 -1
  124. package/esm/src/utils/common.utils.d.ts +0 -16
  125. package/esm/src/utils/common.utils.d.ts.map +0 -1
  126. package/esm/src/utils/condition.d.ts.map +0 -1
  127. package/esm/src/utils/endpoint.utils.d.ts +0 -3
  128. package/esm/src/utils/endpoint.utils.d.ts.map +0 -1
  129. package/esm/src/utils/error.utils.d.ts.map +0 -1
  130. package/esm/src/utils/factory.d.ts.map +0 -1
  131. package/esm/src/utils/file-system.utils.d.ts.map +0 -1
  132. package/esm/src/utils/generator.utils.d.ts.map +0 -1
  133. package/esm/src/utils/object.utils.d.ts.map +0 -1
  134. package/esm/src/utils/schema.utils.d.ts.map +0 -1
  135. package/esm/src/utils/source-builder.d.ts.map +0 -1
  136. package/esm/src/utils/string-builder/options.d.ts +0 -15
  137. package/esm/src/utils/string-builder/options.d.ts.map +0 -1
  138. package/esm/src/utils/string-builder/string-builder.d.ts +0 -73
  139. package/esm/src/utils/string-builder/string-builder.d.ts.map +0 -1
  140. package/esm/src/utils/string-builder/utils.d.ts.map +0 -1
  141. package/esm/src/utils/string.utils.d.ts +0 -149
  142. package/esm/src/utils/string.utils.d.ts.map +0 -1
  143. package/esm/src/utils/string.utils.types.d.ts.map +0 -1
  144. package/esm/src/utils/type.utils.d.ts.map +0 -1
  145. package/esm/src/utils/yaml-info.d.ts +0 -13
  146. package/esm/src/utils/yaml-info.d.ts.map +0 -1
  147. package/script/_dnt.shims.d.ts +0 -11
  148. package/script/_dnt.shims.d.ts.map +0 -1
  149. package/script/_dnt.shims.js +0 -75
  150. package/script/mod.d.ts +0 -32
  151. package/script/mod.d.ts.map +0 -1
  152. package/script/mod.js +0 -36
  153. package/script/package.json +0 -3
  154. package/script/src/ast/node.d.ts.map +0 -1
  155. package/script/src/ast/node.js +0 -33
  156. package/script/src/codegen/config.d.ts +0 -36
  157. package/script/src/codegen/config.d.ts.map +0 -1
  158. package/script/src/codegen/config.js +0 -12
  159. package/script/src/codegen/endpoints-generator.d.ts.map +0 -1
  160. package/script/src/codegen/endpoints-generator.js +0 -35
  161. package/script/src/codegen/generator.d.ts.map +0 -1
  162. package/script/src/codegen/generator.js +0 -134
  163. package/script/src/codegen/internal-utils.d.ts +0 -2
  164. package/script/src/codegen/internal-utils.d.ts.map +0 -1
  165. package/script/src/codegen/internal-utils.js +0 -9
  166. package/script/src/codegen/schemas-generator.d.ts.map +0 -1
  167. package/script/src/codegen/schemas-generator.js +0 -49
  168. package/script/src/codegen/services-generator.d.ts +0 -18
  169. package/script/src/codegen/services-generator.d.ts.map +0 -1
  170. package/script/src/codegen/services-generator.js +0 -35
  171. package/script/src/codegen/types.d.ts.map +0 -1
  172. package/script/src/codegen/types.js +0 -2
  173. package/script/src/collect/collector.d.ts +0 -5
  174. package/script/src/collect/collector.d.ts.map +0 -1
  175. package/script/src/collect/collector.js +0 -122
  176. package/script/src/collect/helpers.d.ts +0 -5
  177. package/script/src/collect/helpers.d.ts.map +0 -1
  178. package/script/src/collect/helpers.js +0 -37
  179. package/script/src/collect/types.d.ts.map +0 -1
  180. package/script/src/collect/types.js +0 -2
  181. package/script/src/internal-utils.d.ts +0 -2
  182. package/script/src/internal-utils.d.ts.map +0 -1
  183. package/script/src/internal-utils.js +0 -6
  184. package/script/src/parse/deref-proxy.d.ts +0 -4
  185. package/script/src/parse/deref-proxy.d.ts.map +0 -1
  186. package/script/src/parse/deref-proxy.js +0 -71
  187. package/script/src/parse/openapi-types.d.ts +0 -902
  188. package/script/src/parse/openapi-types.d.ts.map +0 -1
  189. package/script/src/parse/openapi-types.js +0 -2
  190. package/script/src/parse/parser.d.ts +0 -18
  191. package/script/src/parse/parser.d.ts.map +0 -1
  192. package/script/src/parse/parser.js +0 -183
  193. package/script/src/parse/types.d.ts.map +0 -1
  194. package/script/src/parse/types.js +0 -5
  195. package/script/src/transform/api-types.d.ts.map +0 -1
  196. package/script/src/transform/api-types.js +0 -2
  197. package/script/src/transform/helpers.d.ts +0 -58
  198. package/script/src/transform/helpers.d.ts.map +0 -1
  199. package/script/src/transform/helpers.js +0 -211
  200. package/script/src/transform/transform-document.d.ts +0 -5
  201. package/script/src/transform/transform-document.d.ts.map +0 -1
  202. package/script/src/transform/transform-document.js +0 -34
  203. package/script/src/transform/transform-endpoint.d.ts +0 -5
  204. package/script/src/transform/transform-endpoint.d.ts.map +0 -1
  205. package/script/src/transform/transform-endpoint.js +0 -273
  206. package/script/src/transform/transform-schema.d.ts +0 -6
  207. package/script/src/transform/transform-schema.d.ts.map +0 -1
  208. package/script/src/transform/transform-schema.js +0 -196
  209. package/script/src/transform/transformer.d.ts +0 -5
  210. package/script/src/transform/transformer.d.ts.map +0 -1
  211. package/script/src/transform/transformer.js +0 -45
  212. package/script/src/transform/types.d.ts +0 -36
  213. package/script/src/transform/types.d.ts.map +0 -1
  214. package/script/src/transform/types.js +0 -6
  215. package/script/src/utils/action-provider.d.ts.map +0 -1
  216. package/script/src/utils/action-provider.js +0 -33
  217. package/script/src/utils/api-data.utils.d.ts +0 -3
  218. package/script/src/utils/api-data.utils.d.ts.map +0 -1
  219. package/script/src/utils/api-data.utils.js +0 -42
  220. package/script/src/utils/array.utils.d.ts +0 -2
  221. package/script/src/utils/array.utils.d.ts.map +0 -1
  222. package/script/src/utils/array.utils.js +0 -10
  223. package/script/src/utils/asset-manager.d.ts.map +0 -1
  224. package/script/src/utils/asset-manager.js +0 -55
  225. package/script/src/utils/class.utils.d.ts +0 -8
  226. package/script/src/utils/class.utils.d.ts.map +0 -1
  227. package/script/src/utils/class.utils.js +0 -33
  228. package/script/src/utils/common.utils.d.ts.map +0 -1
  229. package/script/src/utils/common.utils.js +0 -84
  230. package/script/src/utils/condition.d.ts +0 -4
  231. package/script/src/utils/condition.d.ts.map +0 -1
  232. package/script/src/utils/condition.js +0 -7
  233. package/script/src/utils/endpoint.utils.d.ts +0 -3
  234. package/script/src/utils/endpoint.utils.d.ts.map +0 -1
  235. package/script/src/utils/endpoint.utils.js +0 -11
  236. package/script/src/utils/error.utils.d.ts +0 -2
  237. package/script/src/utils/error.utils.d.ts.map +0 -1
  238. package/script/src/utils/error.utils.js +0 -6
  239. package/script/src/utils/factory.d.ts +0 -21
  240. package/script/src/utils/factory.d.ts.map +0 -1
  241. package/script/src/utils/factory.js +0 -33
  242. package/script/src/utils/file-system.utils.d.ts +0 -11
  243. package/script/src/utils/file-system.utils.d.ts.map +0 -1
  244. package/script/src/utils/file-system.utils.js +0 -79
  245. package/script/src/utils/generator.utils.d.ts +0 -2
  246. package/script/src/utils/generator.utils.d.ts.map +0 -1
  247. package/script/src/utils/generator.utils.js +0 -9
  248. package/script/src/utils/object.utils.d.ts +0 -3
  249. package/script/src/utils/object.utils.d.ts.map +0 -1
  250. package/script/src/utils/object.utils.js +0 -40
  251. package/script/src/utils/schema.utils.d.ts +0 -12
  252. package/script/src/utils/schema.utils.d.ts.map +0 -1
  253. package/script/src/utils/schema.utils.js +0 -206
  254. package/script/src/utils/source-builder.d.ts +0 -236
  255. package/script/src/utils/source-builder.d.ts.map +0 -1
  256. package/script/src/utils/source-builder.js +0 -458
  257. package/script/src/utils/string-builder/options.d.ts.map +0 -1
  258. package/script/src/utils/string-builder/options.js +0 -10
  259. package/script/src/utils/string-builder/string-builder.d.ts.map +0 -1
  260. package/script/src/utils/string-builder/string-builder.js +0 -153
  261. package/script/src/utils/string-builder/utils.d.ts +0 -22
  262. package/script/src/utils/string-builder/utils.d.ts.map +0 -1
  263. package/script/src/utils/string-builder/utils.js +0 -37
  264. package/script/src/utils/string.utils.d.ts.map +0 -1
  265. package/script/src/utils/string.utils.js +0 -382
  266. package/script/src/utils/string.utils.types.d.ts +0 -150
  267. package/script/src/utils/string.utils.types.d.ts.map +0 -1
  268. package/script/src/utils/string.utils.types.js +0 -2
  269. package/script/src/utils/type.utils.d.ts +0 -57
  270. package/script/src/utils/type.utils.d.ts.map +0 -1
  271. package/script/src/utils/type.utils.js +0 -10
  272. package/script/src/utils/yaml-info.d.ts.map +0 -1
  273. package/script/src/utils/yaml-info.js +0 -38
  274. /package/{esm → dist}/mod.js +0 -0
  275. /package/{esm → dist}/src/codegen/config.js +0 -0
  276. /package/{esm → dist}/src/codegen/types.js +0 -0
  277. /package/{esm → dist}/src/collect/helpers.js +0 -0
  278. /package/{esm → dist}/src/collect/types.js +0 -0
  279. /package/{esm → dist}/src/internal-utils.js +0 -0
  280. /package/{esm → dist}/src/parse/openapi-types.js +0 -0
  281. /package/{esm → dist}/src/parse/types.js +0 -0
  282. /package/{esm → dist}/src/transform/api-types.js +0 -0
  283. /package/{esm → dist}/src/transform/transformer.js +0 -0
  284. /package/{esm → dist}/src/transform/types.js +0 -0
  285. /package/{esm → dist}/src/utils/api-data.utils.js +0 -0
  286. /package/{esm → dist}/src/utils/array.utils.js +0 -0
  287. /package/{esm → dist}/src/utils/common.utils.js +0 -0
  288. /package/{esm → dist}/src/utils/condition.js +0 -0
  289. /package/{esm → dist}/src/utils/endpoint.utils.js +0 -0
  290. /package/{esm → dist}/src/utils/error.utils.js +0 -0
  291. /package/{esm → dist}/src/utils/file-system.utils.js +0 -0
  292. /package/{esm → dist}/src/utils/generator.utils.js +0 -0
  293. /package/{esm → dist}/src/utils/string-builder/options.js +0 -0
  294. /package/{esm → dist}/src/utils/string.utils.types.js +0 -0
  295. /package/{esm → dist}/src/utils/type.utils.js +0 -0
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultOpenApiGeneratorConfig = void 0;
4
- const types_js_1 = require("../transform/types.js");
5
- const source_builder_js_1 = require("../utils/source-builder.js");
6
- exports.defaultOpenApiGeneratorConfig = {
7
- ...source_builder_js_1.defaultSourceBuilderOptions,
8
- ...types_js_1.defaultOpenApiTransformerOptions,
9
- outputDir: 'generated',
10
- clearOutputDir: true,
11
- existingFileBehavior: 'error',
12
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpoints-generator.d.ts","sourceRoot":"","sources":["../../../src/src/codegen/endpoints-generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,KAAK,+BAA+B,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAErG,OAAO,KAAK,EACV,SAAS,EACT,gCAAgC,EAChC,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,yCAAyC,CACnD,MAAM,SAAS,qBAAqB,EACpC,OAAO,SAAS,sBAAsB,EACtC,OAAO,SAAS,SAAS,EACzB,e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BAAuB,CAAC,GAAG,EAAE,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC;CAGrE"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OpenApiEndpointsGenerationProviderBase = void 0;
4
- const generator_js_1 = require("./generator.js");
5
- const internal_utils_js_1 = require("./internal-utils.js");
6
- class OpenApiEndpointsGenerationProviderBase extends generator_js_1.OpenApiGenerationProviderBase {
7
- getProviderContext(context, config, defaultConfig) {
8
- const ctx = super.getProviderContext(context, config, defaultConfig);
9
- return Object.assign(ctx, {
10
- existingEndpointResults: new Map(),
11
- output: this.initResult(ctx),
12
- });
13
- }
14
- async onGenerate(ctx) {
15
- for (const endpoint of ctx.data.endpoints) {
16
- await this.getEndpointResult(ctx, endpoint);
17
- }
18
- await this.generateAdditionalFiles(ctx);
19
- return ctx.output;
20
- }
21
- async getEndpointResult(ctx, endpoint) {
22
- const existingResult = ctx.existingEndpointResults.get(endpoint.id);
23
- if (existingResult)
24
- return existingResult;
25
- const result = await this.generateEndpoint(ctx, endpoint);
26
- (0, internal_utils_js_1.addSourceIfTest)(ctx.config, result, () => `${endpoint.$src.file}#${endpoint.$src.path}`);
27
- this.addEndpointResult(ctx, endpoint, result);
28
- return result;
29
- }
30
- // deno-lint-ignore no-unused-vars
31
- generateAdditionalFiles(ctx) {
32
- // Override if needed
33
- }
34
- }
35
- exports.OpenApiEndpointsGenerationProviderBase = OpenApiEndpointsGenerationProviderBase;
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../src/src/codegen/generator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,KAAK,oBAAoB,EAAY,MAAM,+BAA+B,CA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ports.OpenApiGenerator = void 0;
4
- const tslib_1 = require("tslib");
5
- const node_path_1 = require("node:path");
6
- const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
7
- const parser_js_1 = require("../parse/parser.js");
8
- const action_provider_js_1 = require("../utils/action-provider.js");
9
- const file_system_utils_js_1 = require("../utils/file-system.utils.js");
10
- const config_js_1 = require("./config.js");
11
- class _OpenApiGenerator {
12
- constructor(config, providers, parser) {
13
- Object.defineProperty(this, "_providers", {
14
- enumerable: true,
15
- configurable: true,
16
- writable: true,
17
- value: void 0
18
- });
19
- Object.defineProperty(this, "_config", {
20
- enumerable: true,
21
- configurable: true,
22
- writable: true,
23
- value: void 0
24
- });
25
- Object.defineProperty(this, "_parser", {
26
- enumerable: true,
27
- configurable: true,
28
- writable: true,
29
- value: void 0
30
- });
31
- this._providers = providers;
32
- this._config = config;
33
- this._parser = parser;
34
- }
35
- use(provider, config) {
36
- // deno-lint-ignore no-explicit-any
37
- this._providers.push({ provider: provider, config });
38
- return new _OpenApiGenerator(this._config, [...this._providers], this._parser);
39
- }
40
- useType(type, config) {
41
- return this.use(action_provider_js_1.ActionProvider.fromType(type, 'generate'), config);
42
- }
43
- useFn(fn, config) {
44
- return this.use(action_provider_js_1.ActionProvider.fromFn(fn), config);
45
- }
46
- useValue(value, config) {
47
- return this.use(action_provider_js_1.ActionProvider.fromValue(value, 'generate'), config);
48
- }
49
- async generate(data) {
50
- const absOutputPath = (0, node_path_1.resolve)(this._config.outputDir);
51
- if (this._config.clearOutputDir) {
52
- await fs_extra_1.default.emptyDir(absOutputPath);
53
- }
54
- else {
55
- await fs_extra_1.default.ensureDir(absOutputPath);
56
- }
57
- this._providers.forEach(({ config }) => {
58
- if (config && 'outputDir' in config && config.outputDir && typeof config.outputDir === 'string') {
59
- const providerOutputDir = (0, node_path_1.resolve)(config.outputDir);
60
- if (this._config.clearOutputDir) {
61
- fs_extra_1.default.emptyDirSync(providerOutputDir);
62
- }
63
- else {
64
- fs_extra_1.default.ensureDirSync(providerOutputDir);
65
- }
66
- }
67
- });
68
- let input = {};
69
- for (const generator of this._providers) {
70
- const context = {
71
- data,
72
- input,
73
- config: this._config,
74
- };
75
- const result = await generator.provider.run(context, generator.config);
76
- if (result) {
77
- input = mergeDeep(input, result);
78
- }
79
- }
80
- return input;
81
- }
82
- async parseAndGenerate(...fileNames) {
83
- const data = await this._parser.parseApisAndTransform(...fileNames);
84
- return await this.generate(data);
85
- }
86
- async parseAndGenerateFromDir(dir, options) {
87
- const filter = (file) => { var _a, _b; return (file.endsWith('.yml') || file.endsWith('.yaml') || file.endsWith('.json')) && ((_b = (_a = options === null || options === void 0 ? void 0 : options.filter) === null || _a === void 0 ? void 0 : _a.call(options, file)) !== null && _b !== void 0 ? _b : true); };
88
- return this.parseAndGenerate(...(await (0, file_system_utils_js_1.getFiles)(dir, { ...options, filter })));
89
- }
90
- }
91
- // deno-lint-ignore ban-types
92
- class OpenApiGenerator extends _OpenApiGenerator {
93
- constructor(config) {
94
- super({ ...config_js_1.defaultOpenApiGeneratorConfig, ...config }, [], new parser_js_1.OpenApiParser({ ...config_js_1.defaultOpenApiGeneratorConfig, ...config }));
95
- }
96
- }
97
- exports.OpenApiGenerator = OpenApiGenerator;
98
- function mergeDeep(target, ...sources) {
99
- if (!sources.length)
100
- return target;
101
- const source = sources.shift();
102
- for (const key in source) {
103
- const value = source[key];
104
- if (value && typeof value === 'object') {
105
- if (!target[key])
106
- Object.assign(target, { [key]: value });
107
- else
108
- mergeDeep(target[key], value);
109
- }
110
- else if (Array.isArray(value)) {
111
- if (!target[key])
112
- Object.assign(target, { [key]: value });
113
- else
114
- Object.assign(target, { [key]: [...target[key], ...value] });
115
- }
116
- else {
117
- Object.assign(target, { [key]: value });
118
- }
119
- }
120
- return mergeDeep(target, ...sources);
121
- }
122
- class OpenApiGenerationProviderBase {
123
- async generate(context, config) {
124
- const ctx = await this.buildContext(context, config);
125
- return await this.onGenerate(ctx);
126
- }
127
- getProviderContext(context, config, defaultConfig) {
128
- const c = { ...context.config, ...defaultConfig, ...config };
129
- return Object.assign(context, {
130
- config: c,
131
- });
132
- }
133
- }
134
- exports.OpenApiGenerationProviderBase = OpenApiGenerationProviderBase;
@@ -1,2 +0,0 @@
1
- export declare function addSourceIfTest(config: any, result: any, sourceFn: () => any): void;
2
- //# sourceMappingURL=internal-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal-utils.d.ts","sourceRoot":"","sources":["../../../src/src/codegen/internal-utils.ts"],"names":[],"mappings":"AACA,wBAAgB,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAG,QAI5E"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addSourceIfTest = addSourceIfTest;
4
- // deno-lint-ignore no-explicit-any
5
- function addSourceIfTest(config, result, sourceFn) {
6
- if (config.__test__ && !result.__source__) {
7
- result.__source__ = sourceFn();
8
- }
9
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemas-generator.d.ts","sourceRoot":"","sources":["../../../src/src/codegen/schemas-generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,KAAK,+BAA+B,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAErG,OAAO,KAAK,EACV,SAAS,EACT,gCAAgC,EAChC,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,uCAAuC,CACjD,MAAM,SAAS,qBAAqB,EACpC,OAAO,SAAS,sBAAsB,EACtC,OAAO,SAAS,SAAS,EACzB,aAAa,SAAS,sBAAsB,IAC1C,gCAAgC,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IACtD,qBAAqB,EAA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uBAAuB,CAAC,GAAG,EAAE,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC;CAGrE"}
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OpenApiSchemasGenerationProviderBase = void 0;
4
- const schema_utils_js_1 = require("../utils/schema.utils.js");
5
- const generator_js_1 = require("./generator.js");
6
- const internal_utils_js_1 = require("./internal-utils.js");
7
- class OpenApiSchemasGenerationProviderBase extends generator_js_1.OpenApiGenerationProviderBase {
8
- getProviderContext(context, config, defaultConfig) {
9
- const ctx = super.getProviderContext(context, config, defaultConfig);
10
- return Object.assign(ctx, {
11
- existingSchemaResults: new Map(),
12
- output: this.initResult(ctx),
13
- });
14
- }
15
- async onGenerate(ctx) {
16
- for (const schema of ctx.data.schemas) {
17
- await this.getSchemaResult(ctx, schema);
18
- }
19
- await this.generateAdditionalFiles(ctx);
20
- return ctx.output;
21
- }
22
- async getSchemaResult(ctx, schema) {
23
- const existingResult = ctx.existingSchemaResults.get(schema.id);
24
- if (existingResult)
25
- return existingResult;
26
- let result;
27
- const reference = this.getSchemaReference(ctx, schema);
28
- if (reference) {
29
- result = await this.getSchemaResult(ctx, reference);
30
- }
31
- else {
32
- result = await this.generateSchema(ctx, schema);
33
- }
34
- (0, internal_utils_js_1.addSourceIfTest)(ctx.config, result, () => `${schema.$src.file}#${schema.$src.path}`);
35
- ctx.existingSchemaResults.set(schema.id, result);
36
- this.addSchemaResult(ctx, schema, result);
37
- return result;
38
- }
39
- // deno-lint-ignore no-unused-vars
40
- getSchemaReference(ctx, schema) {
41
- const ref = (0, schema_utils_js_1.getSchemaReference)(schema, ['description']);
42
- return ref.id !== schema.id ? ref : undefined;
43
- }
44
- // deno-lint-ignore no-unused-vars
45
- generateAdditionalFiles(ctx) {
46
- // Override if needed
47
- }
48
- }
49
- exports.OpenApiSchemasGenerationProviderBase = OpenApiSchemasGenerationProviderBase;
@@ -1,18 +0,0 @@
1
- import type { ApiService } from '../transform/api-types.js';
2
- import type { MaybePromise } from '../utils/type.utils.js';
3
- import { type DefaultGenerationProviderConfig, OpenApiGenerationProviderBase } from './generator.js';
4
- import type { AnyConfig, OpenApiGenerationProviderContext, OpenApiGeneratorContext, OpenApiGeneratorInput, OpenApiGeneratorOutput } from './types.js';
5
- export type OpenApiServicesGenerationProviderContext<TInput extends OpenApiGeneratorInput, TOutput extends OpenApiGeneratorOutput, TConfig extends AnyConfig, TServiceOutput extends OpenApiGeneratorOutput> = OpenApiGenerationProviderContext<TInput, TConfig> & {
6
- existingServiceResults: Map<string, TServiceOutput>;
7
- output: TOutput;
8
- };
9
- export declare abstract class OpenApiServicesGenerationProviderBase<TInput extends OpenApiGeneratorInput, TOutput extends OpenApiGeneratorOutput, TConfig extends AnyConfig, TServiceOutput extends OpenApiGeneratorOutput, TContext extends OpenApiServicesGenerationProviderContext<TInput, TOutput, TConfig, TServiceOutput>> extends OpenApiGenerationProviderBase<TInput, TOutput, TConfig, TContext> {
10
- protected getProviderContext(context: OpenApiGeneratorContext<TInput>, config: Partial<TConfig> | undefined, defaultConfig: DefaultGenerationProviderConfig<TConfig>): OpenApiServicesGenerationProviderContext<TInput, TOutput, TConfig, TServiceOutput>;
11
- protected onGenerate(ctx: TContext): Promise<TOutput>;
12
- protected getServiceResult(ctx: TContext, service: ApiService): Promise<TServiceOutput>;
13
- protected abstract initResult(ctx: OpenApiGenerationProviderContext<TInput, TConfig>): TOutput;
14
- protected abstract generateService(ctx: TContext, service: ApiService): MaybePromise<TServiceOutput>;
15
- protected abstract addServiceResult(ctx: TContext, service: ApiService, result: TServiceOutput): void;
16
- protected generateAdditionalFiles(ctx: TContext): MaybePromise<void>;
17
- }
18
- //# sourceMappingURL=services-generator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"services-generator.d.ts","sourceRoot":"","sources":["../../../src/src/codegen/services-generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;A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CAAC,UAAU,CAAC,GAAG,EAAE,gCAAgC,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO;IAE9F,SAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,GAAG,YAAY,CAAC,cAAc,CAAC;IAEpG,SAAS,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,GAAG,IAAI;IAGrG,SAAS,CAAC,uBAAuB,CAAC,GAAG,EAAE,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC;CAGrE"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OpenApiServicesGenerationProviderBase = void 0;
4
- const generator_js_1 = require("./generator.js");
5
- const internal_utils_js_1 = require("./internal-utils.js");
6
- class OpenApiServicesGenerationProviderBase extends generator_js_1.OpenApiGenerationProviderBase {
7
- getProviderContext(context, config, defaultConfig) {
8
- const ctx = super.getProviderContext(context, config, defaultConfig);
9
- return Object.assign(ctx, {
10
- existingServiceResults: new Map(),
11
- output: this.initResult(ctx),
12
- });
13
- }
14
- async onGenerate(ctx) {
15
- for (const service of ctx.data.services) {
16
- await this.getServiceResult(ctx, service);
17
- }
18
- await this.generateAdditionalFiles(ctx);
19
- return ctx.output;
20
- }
21
- async getServiceResult(ctx, service) {
22
- const existingResult = ctx.existingServiceResults.get(service.id);
23
- if (existingResult)
24
- return existingResult;
25
- const result = await this.generateService(ctx, service);
26
- (0, internal_utils_js_1.addSourceIfTest)(ctx.config, result, () => service.$src ? `${service.$src.file}#${service.$src.path}` : `tag:${service.name}`);
27
- this.addServiceResult(ctx, service, result);
28
- return result;
29
- }
30
- // deno-lint-ignore no-unused-vars
31
- generateAdditionalFiles(ctx) {
32
- // Override if needed
33
- }
34
- }
35
- exports.OpenApiServicesGenerationProviderBase = OpenApiServicesGenerationProvi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C;CACtE;AAED,MAAM,MAAM,2BAA2B,CACrC,MAAM,SAAS,qBAAqB,GAAG,qBAAqB,EAC5D,OAAO,SAAS,sBAAsB,GAAG,sBAAsB,EAC/D,OAAO,SAAS,SAAS,GAAG,SAAS,IACnC,CAAC,OAAO,EAAE,uBAAuB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import type { OpenApiDocument } from '../parse/openapi-types.js';
2
- import type { Deref } from '../parse/types.js';
3
- import type { OpenApiCollectorData } from './types.js';
4
- export declare function collectOpenApi(apis: Deref<OpenApiDocument>[]): OpenApiCollectorData;
5
- //# sourceMappingURL=collector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../../src/src/collect/collector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAQhB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAIvD,wBAAgB,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,eAAe,CAAC,EAAE,GAAG,oBAAoB,CAUnF"}
@@ -1,122 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.collectOpenApi = collectOpenApi;
4
- const helpers_js_1 = require("./helpers.js");
5
- function collectOpenApi(apis) {
6
- const data = {
7
- documents: [],
8
- schemas: new Map(),
9
- endpoints: new Map(),
10
- };
11
- collectDocument(data, apis);
12
- return data;
13
- }
14
- const jsonSchemaProperties = ['$id', 'allOf', 'anyOf', 'oneOf', 'enum', 'not', 'properties', 'title', 'type'];
15
- function collectDocument(data, documents) {
16
- (0, helpers_js_1.collect)(data, documents, (data, document) => {
17
- var _a, _b, _c, _d, _e;
18
- data.documents.push(document);
19
- collectPaths(data, document.paths);
20
- (0, helpers_js_1.collectRecord)(data, (_a = document.components) === null || _a === void 0 ? void 0 : _a.schemas, collectSchema);
21
- (0, helpers_js_1.collectRecord)(data, document.definitions, collectSchema);
22
- (0, helpers_js_1.collectRecord)(data, (_b = document.components) === null || _b === void 0 ? void 0 : _b.parameters, collectParameter);
23
- (0, helpers_js_1.collectRecord)(data, document.parameters, collectParameter);
24
- (0, helpers_js_1.collectRecord)(data, (_c = document.components) === null || _c === void 0 ? void 0 : _c.requestBodies, collectRequestBody);
25
- (0, helpers_js_1.collectRecord)(data, (_d = document.components) === null || _d === void 0 ? void 0 : _d.responses, collectResponse);
26
- (0, helpers_js_1.collectRecord)(data, document.responses, collectResponse);
27
- (0, helpers_js_1.collectRecord)(data, (_e = document.components) === null || _e === void 0 ? void 0 : _e.headers, collectHeader);
28
- if (Object.keys(document).some((key) => jsonSchemaProperties.includes(key))) {
29
- collectSchema(data, document);
30
- }
31
- });
32
- }
33
- function collectPaths(data, paths) {
34
- (0, helpers_js_1.collect)(data, paths, (data, path) => {
35
- (0, helpers_js_1.collectRecord)(data, path, collectPathItem);
36
- });
37
- }
38
- function collectPathItem(data, pathItems, path) {
39
- (0, helpers_js_1.collect)(data, pathItems, (data, pathItem) => {
40
- collectParameter(data, pathItem.parameters);
41
- for (const m of ['get', 'put', 'post', 'delete', 'options', 'head', 'patch', 'trace']) {
42
- const operation = pathItem[m];
43
- if (!operation)
44
- continue;
45
- const key = `${operation.$src.file}#${operation.$src.path}`;
46
- if (data.endpoints.has(key))
47
- continue;
48
- data.endpoints.set(key, {
49
- path,
50
- method: m,
51
- pathItem,
52
- operation,
53
- });
54
- collectParameter(data, operation.parameters);
55
- collectRequestBody(data, operation.requestBody);
56
- (0, helpers_js_1.collectRecord)(data, operation.responses, collectResponse);
57
- }
58
- });
59
- }
60
- function collectSchema(data, schemas) {
61
- (0, helpers_js_1.collect)(data, schemas, (data, schema) => {
62
- var _a;
63
- const key = `${schema.$src.file}#${schema.$src.path}`;
64
- if (data.schemas.has(key))
65
- return;
66
- data.schemas.set(key, schema);
67
- collectSchema(data, schema.allOf);
68
- collectSchema(data, schema.anyOf);
69
- collectSchema(data, schema.oneOf);
70
- collectSchema(data, schema.items);
71
- collectSchema(data, schema.not);
72
- (0, helpers_js_1.collectRecord)(data, schema.properties, collectSchema);
73
- (0, helpers_js_1.collectRecord)(data, schema.patternProperties, collectSchema);
74
- (0, helpers_js_1.collectRecord)(data, schema.dependencies, collectSchema);
75
- (0, helpers_js_1.collectRecord)(data, schema.definitions, collectSchema);
76
- if (typeof schema.additionalProperties === 'object') {
77
- collectSchema(data, schema.additionalProperties);
78
- }
79
- if (typeof schema.additionalItems === 'object') {
80
- collectSchema(data, schema.additionalItems);
81
- }
82
- if (typeof schema.discriminator === 'object') {
83
- (0, helpers_js_1.collectRecord)(data, (_a = schema.discriminator) === null || _a === void 0 ? void 0 : _a.mapping, collectSchema);
84
- }
85
- });
86
- }
87
- function collectParameter(data, parameters) {
88
- (0, helpers_js_1.collect)(data, parameters, (data, parameter) => {
89
- collectSchema(data, parameter.schema);
90
- });
91
- }
92
- function collectMediaType(data, mediaTypes) {
93
- (0, helpers_js_1.collect)(data, mediaTypes, (data, mediaType) => {
94
- collectSchema(data, mediaType.schema);
95
- });
96
- }
97
- function collectRequestBody(data, requestBody) {
98
- (0, helpers_js_1.collect)(data, requestBody, (data, requestBody) => {
99
- (0, helpers_js_1.collectRecord)(data, requestBody.content, collectMediaType);
100
- });
101
- }
102
- function isSchema(obj) {
103
- return obj && typeof obj === 'object' && obj['type'] !== undefined;
104
- }
105
- function collectResponse(data, responses) {
106
- (0, helpers_js_1.collect)(data, responses, (data, responses) => {
107
- (0, helpers_js_1.collectRecord)(data, responses.content, collectMediaType);
108
- (0, helpers_js_1.collect)(data, responses.headers, (data, header) => {
109
- if (isSchema(header)) {
110
- collectSchema(data, header);
111
- }
112
- else {
113
- collectHeader(data, header);
114
- }
115
- });
116
- });
117
- }
118
- function collectHeader(data, headers) {
119
- (0, helpers_js_1.collect)(data, headers, (data, headers) => {
120
- collectSchema(data, headers.schema);
121
- });
122
- }
@@ -1,5 +0,0 @@
1
- import type { Nullable } from '../utils/type.utils.js';
2
- import type { OpenApiCollectorData } from './types.js';
3
- export declare function collect<T extends Record<`x-${string}`, unknown>>(data: OpenApiCollectorData, obj: Nullable<T | Nullable<T>[]>, func: (data: OpenApiCollectorData, obj: NonNullable<T>) => void): void;
4
- export declare function collectRecord<T extends Record<`x-${string}`, unknown>>(data: OpenApiCollectorData, obj: Nullable<Record<string, Nullable<T>>>, func: (data: OpenApiCollectorData, obj: NonNullable<T>, key: string) => void): void;
5
- //# sourceMappingURL=helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/src/collect/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,OAAO,CAAC,EAC9D,IAAI,EAAE,oBAAoB,EAC1B,GAAG,EAAE,QAAQ,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAChC,IAAI,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,QAahE;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,OAAO,CAAC,EACpE,IAAI,EAAE,oBAAoB,EAC1B,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAC1C,IAAI,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,QAU7E"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.collect = collect;
4
- exports.collectRecord = collectRecord;
5
- const internal_utils_js_1 = require("../internal-utils.js");
6
- function collect(data, obj, func) {
7
- if (!obj)
8
- return;
9
- if (Array.isArray(obj)) {
10
- for (const o of obj) {
11
- if (!o)
12
- continue;
13
- if (o['x-ignore'])
14
- continue;
15
- func(data, o);
16
- }
17
- }
18
- else {
19
- if (obj['x-ignore'])
20
- return;
21
- func(data, obj);
22
- }
23
- }
24
- function collectRecord(data, obj, func) {
25
- if (!obj)
26
- return;
27
- for (const key in obj) {
28
- if (!(0, internal_utils_js_1.isOpenApiObjectProperty)(key))
29
- continue;
30
- const value = obj[key];
31
- if (!value)
32
- continue;
33
- if (value['x-ignore'])
34
- continue;
35
- func(data, value, key);
36
- }
37
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/collect/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IACjC,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC;IACpC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;IAC3C,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC;CACtD,CAAC"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export declare function isOpenApiObjectProperty<T extends string>(propertyName: T): propertyName is Exclude<T, `$${string}` | `x-${string}`>;
2
- //# sourceMappingURL=internal-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal-utils.d.ts","sourceRoot":"","sources":["../../src/src/internal-utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACtD,YAAY,EAAE,CAAC,GACd,YAAY,IAAI,OAAO,CAAC,CAAC,EAAE,IAAI,MAAM,EAAE,GAAG,KAAK,MAAM,EAAE,CAAC,CAE1D"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isOpenApiObjectProperty = isOpenApiObjectProperty;
4
- function isOpenApiObjectProperty(propertyName) {
5
- return !propertyName.startsWith('$') && !propertyName.startsWith('x-');
6
- }
@@ -1,4 +0,0 @@
1
- import type { OpenApiObject } from './openapi-types.js';
2
- import type { Deref, DerefSource } from './types.js';
3
- export declare function createDerefProxy<T extends OpenApiObject<string>>(obj: T, source: DerefSource<T>, ref?: Deref<T>): Deref<T>;
4
- //# sourceMappingURL=deref-proxy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deref-proxy.d.ts","sourceRoot":"","sources":["../../../src/src/parse/deref-proxy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAErD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,EAC9D,GAAG,EAAE,CAAC,EACN,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,EACtB,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,GACb,KAAK,CAAC,CAAC,CAAC,CAEV"}
@@ -1,71 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createDerefProxy = createDerefProxy;
4
- const common_utils_js_1 = require("../utils/common.utils.js");
5
- function createDerefProxy(obj, source, ref) {
6
- return new Proxy(obj, new DerefProxyHandler(source, ref));
7
- }
8
- const propertiesNotDerivedFromRef = ['title'];
9
- class DerefProxyHandler {
10
- constructor(_source, _ref) {
11
- Object.defineProperty(this, "_source", {
12
- enumerable: true,
13
- configurable: true,
14
- writable: true,
15
- value: _source
16
- });
17
- Object.defineProperty(this, "_ref", {
18
- enumerable: true,
19
- configurable: true,
20
- writable: true,
21
- value: _ref
22
- });
23
- Object.defineProperty(this, "_overwrittenValues", {
24
- enumerable: true,
25
- configurable: true,
26
- writable: true,
27
- value: {}
28
- });
29
- }
30
- get(target, prop) {
31
- var _a;
32
- if (prop === '$ref') {
33
- return this._ref;
34
- }
35
- else if (prop === '$src') {
36
- return this._source;
37
- }
38
- if (this._overwrittenValues[prop] !== undefined) {
39
- return this._overwrittenValues[prop];
40
- }
41
- if (target[prop] !== undefined) {
42
- return target[prop];
43
- }
44
- return propertiesNotDerivedFromRef.includes(prop)
45
- ? undefined
46
- : (_a = this._ref) === null || _a === void 0 ? void 0 : _a[prop];
47
- }
48
- set(_target, prop, value) {
49
- if (prop === '$ref' && (typeof value === 'object' || typeof value === 'undefined')) {
50
- this._ref = !value ? undefined : value;
51
- return true;
52
- }
53
- if (prop === '$src') {
54
- return false;
55
- }
56
- this._overwrittenValues[prop] = value;
57
- return true;
58
- }
59
- has(target, prop) {
60
- return prop in target || (!(0, common_utils_js_1.isNullish)(this._ref) && prop in this._ref);
61
- }
62
- ownKeys(target) {
63
- return Array.from(new Set([
64
- ...Object.getOwnPropertyNames(target),
65
- ...Object.getOwnPropertySymbols(target),
66
- ...(!(0, common_utils_js_1.isNullish)(this._ref) ? Object.keys(this._ref) : []),
67
- '$ref',
68
- '$src',
69
- ]));
70
- }
71
- }