@skmtc/core 0.0.799 → 0.0.802

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 (251) hide show
  1. package/esm/context/CoreContext.d.ts +0 -3
  2. package/esm/context/CoreContext.d.ts.map +1 -1
  3. package/esm/context/CoreContext.js +12 -17
  4. package/esm/context/GenerateContext.d.ts +35 -3
  5. package/esm/context/GenerateContext.d.ts.map +1 -1
  6. package/esm/context/GenerateContext.js +21 -1
  7. package/esm/context/ParseContext.d.ts +64 -3
  8. package/esm/context/ParseContext.d.ts.map +1 -1
  9. package/esm/context/ParseContext.js +61 -0
  10. package/esm/context/RenderContext.d.ts +151 -2
  11. package/esm/context/RenderContext.d.ts.map +1 -1
  12. package/esm/context/RenderContext.js +185 -11
  13. package/esm/context/ResultsHandler.d.ts +10 -3
  14. package/esm/context/ResultsHandler.d.ts.map +1 -1
  15. package/esm/context/types.d.ts +30 -0
  16. package/esm/context/types.d.ts.map +1 -1
  17. package/esm/dsl/model/ModelBase.d.ts +1 -1
  18. package/esm/dsl/model/ModelBase.d.ts.map +1 -1
  19. package/esm/dsl/model/ModelDriver.d.ts +62 -0
  20. package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
  21. package/esm/dsl/model/ModelDriver.js +63 -1
  22. package/esm/dsl/model/toModelBase.d.ts +66 -0
  23. package/esm/dsl/model/toModelBase.d.ts.map +1 -1
  24. package/esm/dsl/model/toModelBase.js +46 -0
  25. package/esm/dsl/model/toModelEntry.d.ts +63 -0
  26. package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
  27. package/esm/dsl/model/toModelEntry.js +63 -0
  28. package/esm/dsl/model/types.d.ts +51 -4
  29. package/esm/dsl/model/types.d.ts.map +1 -1
  30. package/esm/dsl/operation/OperationBase.d.ts +3 -3
  31. package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
  32. package/esm/dsl/operation/OperationDriver.d.ts +48 -0
  33. package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
  34. package/esm/dsl/operation/OperationDriver.js +49 -1
  35. package/esm/dsl/operation/types.d.ts +61 -3
  36. package/esm/dsl/operation/types.d.ts.map +1 -1
  37. package/esm/helpers/isEmpty.d.ts +1 -1
  38. package/esm/helpers/isEmpty.d.ts.map +1 -1
  39. package/esm/helpers/tracer.d.ts +1 -1
  40. package/esm/helpers/tracer.d.ts.map +1 -1
  41. package/esm/helpers/tracer.js +1 -1
  42. package/esm/mod.d.ts +51 -0
  43. package/esm/mod.d.ts.map +1 -1
  44. package/esm/mod.js +51 -0
  45. package/esm/oas/array/array-types.d.ts +20 -11
  46. package/esm/oas/array/array-types.d.ts.map +1 -1
  47. package/esm/oas/array/array-types.js +10 -0
  48. package/esm/oas/array/toArray.d.ts +111 -0
  49. package/esm/oas/array/toArray.d.ts.map +1 -1
  50. package/esm/oas/array/toArray.js +115 -3
  51. package/esm/oas/boolean/boolean-types.d.ts +1 -7
  52. package/esm/oas/boolean/boolean-types.d.ts.map +1 -1
  53. package/esm/oas/components/components-types.d.ts +19 -0
  54. package/esm/oas/components/components-types.d.ts.map +1 -0
  55. package/esm/oas/components/components-types.js +21 -0
  56. package/esm/oas/contact/contact-types.d.ts +9 -0
  57. package/esm/oas/contact/contact-types.d.ts.map +1 -0
  58. package/esm/oas/contact/contact-types.js +7 -0
  59. package/esm/oas/discriminator/discriminator-types.d.ts +1 -5
  60. package/esm/oas/discriminator/discriminator-types.d.ts.map +1 -1
  61. package/esm/oas/document/document-types.d.ts +16 -0
  62. package/esm/oas/document/document-types.d.ts.map +1 -0
  63. package/esm/oas/document/document-types.js +18 -0
  64. package/esm/oas/example/example-types.d.ts +1 -6
  65. package/esm/oas/example/example-types.d.ts.map +1 -1
  66. package/esm/oas/header/header-types.d.ts +50 -0
  67. package/esm/oas/header/header-types.d.ts.map +1 -0
  68. package/esm/oas/header/header-types.js +30 -0
  69. package/esm/oas/info/info-types.d.ts +14 -0
  70. package/esm/oas/info/info-types.d.ts.map +1 -0
  71. package/esm/oas/info/info-types.js +13 -0
  72. package/esm/oas/integer/integer-types.d.ts +3 -17
  73. package/esm/oas/integer/integer-types.d.ts.map +1 -1
  74. package/esm/oas/license/license-types.d.ts +9 -0
  75. package/esm/oas/license/license-types.d.ts.map +1 -0
  76. package/esm/oas/license/license-types.js +7 -0
  77. package/esm/oas/mediaType/mediaType-types.d.ts +1 -11
  78. package/esm/oas/mediaType/mediaType-types.d.ts.map +1 -1
  79. package/esm/oas/number/number-types.d.ts +2 -16
  80. package/esm/oas/number/number-types.d.ts.map +1 -1
  81. package/esm/oas/operation/Operation.d.ts +47 -2
  82. package/esm/oas/operation/Operation.d.ts.map +1 -1
  83. package/esm/oas/operation/Operation.js +43 -0
  84. package/esm/oas/operation/operation-types.d.ts +22 -0
  85. package/esm/oas/operation/operation-types.d.ts.map +1 -0
  86. package/esm/oas/operation/operation-types.js +35 -0
  87. package/esm/oas/parameter/parameter-types.d.ts +3 -58
  88. package/esm/oas/parameter/parameter-types.d.ts.map +1 -1
  89. package/esm/oas/pathItem/pathItem-types.d.ts +12 -0
  90. package/esm/oas/pathItem/pathItem-types.d.ts.map +1 -0
  91. package/esm/oas/pathItem/pathItem-types.js +12 -0
  92. package/esm/oas/ref/Ref.d.ts +49 -2
  93. package/esm/oas/ref/Ref.d.ts.map +1 -1
  94. package/esm/oas/ref/Ref.js +28 -0
  95. package/esm/oas/requestBody/requestBody-types.d.ts +10 -0
  96. package/esm/oas/requestBody/requestBody-types.d.ts.map +1 -0
  97. package/esm/oas/requestBody/requestBody-types.js +9 -0
  98. package/esm/oas/response/response-types.d.ts +12 -0
  99. package/esm/oas/response/response-types.d.ts.map +1 -0
  100. package/esm/oas/response/response-types.js +11 -0
  101. package/esm/oas/schema/toSchemasV3.js +2 -2
  102. package/esm/oas/server/toServerV3.d.ts.map +1 -1
  103. package/esm/oas/string/string-types.d.ts +2 -29
  104. package/esm/oas/string/string-types.d.ts.map +1 -1
  105. package/esm/oas/string/toString.d.ts +125 -1
  106. package/esm/oas/string/toString.d.ts.map +1 -1
  107. package/esm/oas/string/toString.js +119 -0
  108. package/esm/oas/tag/tag-types.d.ts +8 -0
  109. package/esm/oas/tag/tag-types.d.ts.map +1 -0
  110. package/esm/oas/tag/tag-types.js +8 -0
  111. package/esm/oas/union/union-types.d.ts +1 -12
  112. package/esm/oas/union/union-types.d.ts.map +1 -1
  113. package/esm/oas/unknown/unknown-types.d.ts +1 -7
  114. package/esm/oas/unknown/unknown-types.d.ts.map +1 -1
  115. package/esm/types/Preview.d.ts +37 -0
  116. package/esm/types/Preview.d.ts.map +1 -1
  117. package/esm/types/Preview.js +37 -0
  118. package/esm/types/Settings.d.ts +35 -0
  119. package/esm/types/Settings.d.ts.map +1 -1
  120. package/esm/types/Settings.js +27 -0
  121. package/esm/typescript/FunctionParameter.d.ts +4 -4
  122. package/esm/typescript/FunctionParameter.d.ts.map +1 -1
  123. package/esm/typescript/List.d.ts +104 -5
  124. package/esm/typescript/List.d.ts.map +1 -1
  125. package/esm/typescript/List.js +75 -0
  126. package/package.json +1 -1
  127. package/script/context/CoreContext.d.ts +0 -3
  128. package/script/context/CoreContext.d.ts.map +1 -1
  129. package/script/context/CoreContext.js +12 -17
  130. package/script/context/GenerateContext.d.ts +35 -3
  131. package/script/context/GenerateContext.d.ts.map +1 -1
  132. package/script/context/GenerateContext.js +21 -1
  133. package/script/context/ParseContext.d.ts +64 -3
  134. package/script/context/ParseContext.d.ts.map +1 -1
  135. package/script/context/ParseContext.js +61 -0
  136. package/script/context/RenderContext.d.ts +151 -2
  137. package/script/context/RenderContext.d.ts.map +1 -1
  138. package/script/context/RenderContext.js +185 -11
  139. package/script/context/ResultsHandler.d.ts +10 -3
  140. package/script/context/ResultsHandler.d.ts.map +1 -1
  141. package/script/context/types.d.ts +30 -0
  142. package/script/context/types.d.ts.map +1 -1
  143. package/script/dsl/model/ModelBase.d.ts +1 -1
  144. package/script/dsl/model/ModelBase.d.ts.map +1 -1
  145. package/script/dsl/model/ModelDriver.d.ts +62 -0
  146. package/script/dsl/model/ModelDriver.d.ts.map +1 -1
  147. package/script/dsl/model/ModelDriver.js +63 -1
  148. package/script/dsl/model/toModelBase.d.ts +66 -0
  149. package/script/dsl/model/toModelBase.d.ts.map +1 -1
  150. package/script/dsl/model/toModelBase.js +46 -0
  151. package/script/dsl/model/toModelEntry.d.ts +63 -0
  152. package/script/dsl/model/toModelEntry.d.ts.map +1 -1
  153. package/script/dsl/model/toModelEntry.js +63 -0
  154. package/script/dsl/model/types.d.ts +51 -4
  155. package/script/dsl/model/types.d.ts.map +1 -1
  156. package/script/dsl/operation/OperationBase.d.ts +3 -3
  157. package/script/dsl/operation/OperationBase.d.ts.map +1 -1
  158. package/script/dsl/operation/OperationDriver.d.ts +48 -0
  159. package/script/dsl/operation/OperationDriver.d.ts.map +1 -1
  160. package/script/dsl/operation/OperationDriver.js +49 -1
  161. package/script/dsl/operation/types.d.ts +61 -3
  162. package/script/dsl/operation/types.d.ts.map +1 -1
  163. package/script/helpers/isEmpty.d.ts +1 -1
  164. package/script/helpers/isEmpty.d.ts.map +1 -1
  165. package/script/helpers/tracer.d.ts +1 -1
  166. package/script/helpers/tracer.d.ts.map +1 -1
  167. package/script/helpers/tracer.js +1 -1
  168. package/script/mod.d.ts +51 -0
  169. package/script/mod.d.ts.map +1 -1
  170. package/script/mod.js +51 -0
  171. package/script/oas/array/array-types.d.ts +20 -11
  172. package/script/oas/array/array-types.d.ts.map +1 -1
  173. package/script/oas/array/array-types.js +11 -1
  174. package/script/oas/array/toArray.d.ts +111 -0
  175. package/script/oas/array/toArray.d.ts.map +1 -1
  176. package/script/oas/array/toArray.js +114 -2
  177. package/script/oas/boolean/boolean-types.d.ts +1 -7
  178. package/script/oas/boolean/boolean-types.d.ts.map +1 -1
  179. package/script/oas/components/components-types.d.ts +19 -0
  180. package/script/oas/components/components-types.d.ts.map +1 -0
  181. package/script/oas/components/components-types.js +57 -0
  182. package/script/oas/contact/contact-types.d.ts +9 -0
  183. package/script/oas/contact/contact-types.d.ts.map +1 -0
  184. package/script/oas/contact/contact-types.js +43 -0
  185. package/script/oas/discriminator/discriminator-types.d.ts +1 -5
  186. package/script/oas/discriminator/discriminator-types.d.ts.map +1 -1
  187. package/script/oas/document/document-types.d.ts +16 -0
  188. package/script/oas/document/document-types.d.ts.map +1 -0
  189. package/script/oas/document/document-types.js +54 -0
  190. package/script/oas/example/example-types.d.ts +1 -6
  191. package/script/oas/example/example-types.d.ts.map +1 -1
  192. package/script/oas/header/header-types.d.ts +50 -0
  193. package/script/oas/header/header-types.d.ts.map +1 -0
  194. package/script/oas/header/header-types.js +66 -0
  195. package/script/oas/info/info-types.d.ts +14 -0
  196. package/script/oas/info/info-types.d.ts.map +1 -0
  197. package/script/oas/info/info-types.js +49 -0
  198. package/script/oas/integer/integer-types.d.ts +3 -17
  199. package/script/oas/integer/integer-types.d.ts.map +1 -1
  200. package/script/oas/license/license-types.d.ts +9 -0
  201. package/script/oas/license/license-types.d.ts.map +1 -0
  202. package/script/oas/license/license-types.js +43 -0
  203. package/script/oas/mediaType/mediaType-types.d.ts +1 -11
  204. package/script/oas/mediaType/mediaType-types.d.ts.map +1 -1
  205. package/script/oas/number/number-types.d.ts +2 -16
  206. package/script/oas/number/number-types.d.ts.map +1 -1
  207. package/script/oas/operation/Operation.d.ts +47 -2
  208. package/script/oas/operation/Operation.d.ts.map +1 -1
  209. package/script/oas/operation/Operation.js +43 -0
  210. package/script/oas/operation/operation-types.d.ts +22 -0
  211. package/script/oas/operation/operation-types.d.ts.map +1 -0
  212. package/script/oas/operation/operation-types.js +71 -0
  213. package/script/oas/parameter/parameter-types.d.ts +3 -58
  214. package/script/oas/parameter/parameter-types.d.ts.map +1 -1
  215. package/script/oas/pathItem/pathItem-types.d.ts +12 -0
  216. package/script/oas/pathItem/pathItem-types.d.ts.map +1 -0
  217. package/script/oas/pathItem/pathItem-types.js +48 -0
  218. package/script/oas/ref/Ref.d.ts +49 -2
  219. package/script/oas/ref/Ref.d.ts.map +1 -1
  220. package/script/oas/ref/Ref.js +28 -0
  221. package/script/oas/requestBody/requestBody-types.d.ts +10 -0
  222. package/script/oas/requestBody/requestBody-types.d.ts.map +1 -0
  223. package/script/oas/requestBody/requestBody-types.js +45 -0
  224. package/script/oas/response/response-types.d.ts +12 -0
  225. package/script/oas/response/response-types.d.ts.map +1 -0
  226. package/script/oas/response/response-types.js +47 -0
  227. package/script/oas/schema/toSchemasV3.js +2 -2
  228. package/script/oas/server/toServerV3.d.ts.map +1 -1
  229. package/script/oas/string/string-types.d.ts +2 -29
  230. package/script/oas/string/string-types.d.ts.map +1 -1
  231. package/script/oas/string/toString.d.ts +125 -1
  232. package/script/oas/string/toString.d.ts.map +1 -1
  233. package/script/oas/string/toString.js +119 -0
  234. package/script/oas/tag/tag-types.d.ts +8 -0
  235. package/script/oas/tag/tag-types.d.ts.map +1 -0
  236. package/script/oas/tag/tag-types.js +44 -0
  237. package/script/oas/union/union-types.d.ts +1 -12
  238. package/script/oas/union/union-types.d.ts.map +1 -1
  239. package/script/oas/unknown/unknown-types.d.ts +1 -7
  240. package/script/oas/unknown/unknown-types.d.ts.map +1 -1
  241. package/script/types/Preview.d.ts +37 -0
  242. package/script/types/Preview.d.ts.map +1 -1
  243. package/script/types/Preview.js +37 -0
  244. package/script/types/Settings.d.ts +35 -0
  245. package/script/types/Settings.d.ts.map +1 -1
  246. package/script/types/Settings.js +27 -0
  247. package/script/typescript/FunctionParameter.d.ts +4 -4
  248. package/script/typescript/FunctionParameter.d.ts.map +1 -1
  249. package/script/typescript/List.d.ts +104 -5
  250. package/script/typescript/List.d.ts.map +1 -1
  251. package/script/typescript/List.js +75 -0
@@ -5,7 +5,6 @@ import type { PrettierConfigType } from '../types/PrettierConfig.js';
5
5
  import type { OasDocument } from '../oas/document/Document.js';
6
6
  import type { ClientSettings } from '../types/Settings.js';
7
7
  import type { ResultType } from '../types/Results.js';
8
- import * as log from '../deps/jsr.io/@std/log/0.224.14/mod.js';
9
8
  import type { GeneratorsMapContainer } from '../types/GeneratorType.js';
10
9
  import type { OpenAPIV3 } from 'openapi-types';
11
10
  import type { RenderResult } from './types.js';
@@ -123,8 +122,6 @@ export type ToArtifactsArgs = {
123
122
  */
124
123
  export declare class CoreContext {
125
124
  #private;
126
- /** Logger instance for the context */
127
- logger: log.Logger;
128
125
  /** Whether to suppress console output */
129
126
  silent: boolean;
130
127
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"CoreContext.d.ts","sourceRoot":"","sources":["../../src/context/CoreContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,GAAG,MAAM,yCAAyC,CAAA;AAQ9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,yCAAyC;IACzC,IAAI,EAAE,OAAO,CAAA;IACb,iEAAiE;IACjE,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,4CAA4C;IAC5C,IAAI,EAAE,UAAU,CAAA;IAChB,gEAAgE;IAChE,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED;;;;;G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ACnB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAAG,MAAM,CAQnF"}
@@ -9,7 +9,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
9
9
  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");
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
- var _CoreContext_instances, _CoreContext_phase, _CoreContext_results, _CoreContext_stackTrail, _CoreContext_setupLogger, _CoreContext_setupParsePhase, _CoreContext_setupGeneratePhase, _CoreContext_setupRenderPhase;
12
+ var _CoreContext_instances, _CoreContext_logger, _CoreContext_phase, _CoreContext_results, _CoreContext_stackTrail, _CoreContext_setupLogger, _CoreContext_setupParsePhase, _CoreContext_setupGeneratePhase, _CoreContext_setupRenderPhase;
13
13
  import { GenerateContext } from './GenerateContext.js';
14
14
  import { RenderContext } from './RenderContext.js';
15
15
  import { ParseContext } from './ParseContext.js';
@@ -94,12 +94,7 @@ export class CoreContext {
94
94
  constructor({ spanId, logsPath, silent }) {
95
95
  _CoreContext_instances.add(this);
96
96
  /** Logger instance for the context */
97
- Object.defineProperty(this, "logger", {
98
- enumerable: true,
99
- configurable: true,
100
- writable: true,
101
- value: void 0
102
- });
97
+ _CoreContext_logger.set(this, void 0);
103
98
  /** Current execution phase for pipeline tracking */
104
99
  _CoreContext_phase.set(this, void 0);
105
100
  /** Results log for tracking generation outcomes */
@@ -115,7 +110,7 @@ export class CoreContext {
115
110
  });
116
111
  __classPrivateFieldSet(this, _CoreContext_stackTrail, new StackTrail([spanId]), "f");
117
112
  __classPrivateFieldSet(this, _CoreContext_results, new ResultsLog(), "f");
118
- this.logger = __classPrivateFieldGet(this, _CoreContext_instances, "m", _CoreContext_setupLogger).call(this, { spanId, logsPath });
113
+ __classPrivateFieldSet(this, _CoreContext_logger, __classPrivateFieldGet(this, _CoreContext_instances, "m", _CoreContext_setupLogger).call(this, { spanId, logsPath }), "f");
119
114
  this.silent = silent;
120
115
  }
121
116
  /**
@@ -242,7 +237,7 @@ export class CoreContext {
242
237
  }), "f");
243
238
  return __classPrivateFieldGet(this, _CoreContext_phase, "f").context.toArtifacts();
244
239
  });
245
- this.logger.debug(`${files.size} files generated`);
240
+ __classPrivateFieldGet(this, _CoreContext_logger, "f").debug(`${files.size} files generated`);
246
241
  const renderOutput = await this.trace('render', async () => {
247
242
  __classPrivateFieldSet(this, _CoreContext_phase, __classPrivateFieldGet(this, _CoreContext_instances, "m", _CoreContext_setupRenderPhase).call(this, {
248
243
  files,
@@ -260,7 +255,7 @@ export class CoreContext {
260
255
  }
261
256
  catch (error) {
262
257
  console.error(error);
263
- this.logger.error(error);
258
+ __classPrivateFieldGet(this, _CoreContext_logger, "f").error(error);
264
259
  Sentry.captureException(error);
265
260
  return {
266
261
  artifacts: {},
@@ -271,7 +266,7 @@ export class CoreContext {
271
266
  };
272
267
  }
273
268
  finally {
274
- this.logger.handlers.forEach(handler => {
269
+ __classPrivateFieldGet(this, _CoreContext_logger, "f").handlers.forEach(handler => {
275
270
  if (handler instanceof log.FileHandler) {
276
271
  handler.flush();
277
272
  }
@@ -308,8 +303,8 @@ export class CoreContext {
308
303
  */
309
304
  trace(token, fn) {
310
305
  console.log('trace', token);
311
- this.logger.info('trace', token);
312
- return tracer(__classPrivateFieldGet(this, _CoreContext_stackTrail, "f"), token, fn, this.logger);
306
+ __classPrivateFieldGet(this, _CoreContext_logger, "f").info('trace', token);
307
+ return tracer(__classPrivateFieldGet(this, _CoreContext_stackTrail, "f"), token, fn, __classPrivateFieldGet(this, _CoreContext_logger, "f"));
313
308
  }
314
309
  /**
315
310
  * Captures a result at the current execution position in the stack trail.
@@ -343,7 +338,7 @@ export class CoreContext {
343
338
  __classPrivateFieldGet(this, _CoreContext_results, "f").capture(__classPrivateFieldGet(this, _CoreContext_stackTrail, "f").toString(), result);
344
339
  }
345
340
  }
346
- _CoreContext_phase = new WeakMap(), _CoreContext_results = new WeakMap(), _CoreContext_stackTrail = new WeakMap(), _CoreContext_instances = new WeakSet(), _CoreContext_setupLogger = function _CoreContext_setupLogger({ spanId, logsPath }) {
341
+ _CoreContext_logger = new WeakMap(), _CoreContext_phase = new WeakMap(), _CoreContext_results = new WeakMap(), _CoreContext_stackTrail = new WeakMap(), _CoreContext_instances = new WeakSet(), _CoreContext_setupLogger = function _CoreContext_setupLogger({ spanId, logsPath }) {
347
342
  const filename = join(logsPath ?? '', `${spanId}.txt`);
348
343
  log.setup({
349
344
  handlers: {
@@ -382,7 +377,7 @@ _CoreContext_phase = new WeakMap(), _CoreContext_results = new WeakMap(), _CoreC
382
377
  }, _CoreContext_setupParsePhase = function _CoreContext_setupParsePhase(documentObject) {
383
378
  const parseContext = new ParseContext({
384
379
  documentObject,
385
- logger: this.logger,
380
+ logger: __classPrivateFieldGet(this, _CoreContext_logger, "f"),
386
381
  stackTrail: __classPrivateFieldGet(this, _CoreContext_stackTrail, "f"),
387
382
  silent: this.silent
388
383
  });
@@ -391,7 +386,7 @@ _CoreContext_phase = new WeakMap(), _CoreContext_results = new WeakMap(), _CoreC
391
386
  const generateContext = new GenerateContext({
392
387
  oasDocument,
393
388
  settings,
394
- logger: this.logger,
389
+ logger: __classPrivateFieldGet(this, _CoreContext_logger, "f"),
395
390
  stackTrail: __classPrivateFieldGet(this, _CoreContext_stackTrail, "f"),
396
391
  captureCurrentResult: this.captureCurrentResult.bind(this),
397
392
  toGeneratorConfigMap
@@ -404,7 +399,7 @@ _CoreContext_phase = new WeakMap(), _CoreContext_results = new WeakMap(), _CoreC
404
399
  mappings,
405
400
  prettierConfig: prettier,
406
401
  basePath,
407
- logger: this.logger,
402
+ logger: __classPrivateFieldGet(this, _CoreContext_logger, "f"),
408
403
  stackTrail: __classPrivateFieldGet(this, _CoreContext_stackTrail, "f"),
409
404
  captureCurrentResult: this.captureCurrentResult.bind(this)
410
405
  });
@@ -256,11 +256,23 @@ export type InsertModelOptions<T extends GenerationType> = {
256
256
  * @template EnrichmentType - The enrichment data type
257
257
  */
258
258
  export type InsertReturn<V extends GeneratedValue, T extends GenerationType, EnrichmentType> = Inserted<V, T, EnrichmentType>;
259
- type ToOperationSettingsArgs<V, EnrichmentType = undefined> = {
259
+ /**
260
+ * Arguments for generating operation content settings.
261
+ *
262
+ * @template V - The value type for the operation
263
+ * @template EnrichmentType - Optional enrichment type for the operation
264
+ */
265
+ export type ToOperationSettingsArgs<V, EnrichmentType = undefined> = {
260
266
  operation: OasOperation;
261
267
  insertable: OperationInsertable<V, EnrichmentType>;
262
268
  };
263
- type BuildModelSettingsArgs<V, EnrichmentType = undefined> = {
269
+ /**
270
+ * Arguments for building model content settings.
271
+ *
272
+ * @template V - The value type for the model
273
+ * @template EnrichmentType - Optional enrichment type for the model
274
+ */
275
+ export type BuildModelSettingsArgs<V, EnrichmentType = undefined> = {
264
276
  refName: RefName;
265
277
  insertable: ModelInsertable<V, EnrichmentType>;
266
278
  };
@@ -390,6 +402,13 @@ export declare class GenerateContext {
390
402
  * @internal
391
403
  */
392
404
  toArtifacts(): GenerateResult;
405
+ /**
406
+ * Executes a function within a traced context for debugging and monitoring.
407
+ *
408
+ * @param token - Trace identifier or path segments
409
+ * @param fn - Function to execute within the trace context
410
+ * @returns The result of the traced function execution
411
+ */
393
412
  trace<T>(token: string | string[], fn: () => T): T;
394
413
  /**
395
414
  * Create and register a definition with the given `identifier` at `destinationPath`.
@@ -397,7 +416,12 @@ export declare class GenerateContext {
397
416
  * @experimental
398
417
  */
399
418
  defineAndRegister<V extends GeneratedValue>({ identifier, value, destinationPath, noExport }: DefineAndRegisterArgs<V>): Definition<V>;
400
- /** @experimental */
419
+ /**
420
+ * Registers JSON content for output to a file.
421
+ *
422
+ * @experimental This method is experimental and may change in future versions
423
+ * @param args - Registration arguments with destination path and JSON content
424
+ */
401
425
  registerJson({ destinationPath, json }: RegisterJsonArgs): void;
402
426
  /**
403
427
  * Insert supplied `imports` and `definitions` into file at `destinationPath`.
@@ -426,6 +450,14 @@ export declare class GenerateContext {
426
450
  * @mutates this.files
427
451
  */
428
452
  insertOperation<V extends GeneratedValue, T extends GenerationType, EnrichmentType = undefined>(insertable: OperationInsertable<V, EnrichmentType>, operation: OasOperation, { generation, destinationPath, noExport }?: InsertOperationOptions<T>): Inserted<V, T, EnrichmentType>;
453
+ /**
454
+ * Inserts a normalized model definition into the generation context.
455
+ *
456
+ * @param insertable - Model insertable configuration with prototype and transform functions
457
+ * @param schema - OAS schema, reference, or void type to generate model from
458
+ * @param options - Insertion options including generation type and destination
459
+ * @returns Inserted model instance with settings and definition
460
+ */
429
461
  insertNormalisedModel<V extends GeneratedValue, Schema extends OasSchema | OasRef<'schema'> | OasVoid, EnrichmentType>(insertable: ModelInsertable<V, EnrichmentType>, { schema, fallbackName, destinationPath }: InsertNormalisedModelArgs<Schema>, { noExport }?: InsertNormalisedModelOptions): InsertNormalisedModelReturn<V, Schema>;
430
462
  /**
431
463
  * Insert model into the output file with path `destinationPath`.
@@ -1 +1 @@
1
- {"version":3,"file":"GenerateContext.d.ts","sourceRoot":"","sources":["../../src/context/GenerateContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,sBAAsB,CAAA;AACjG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAmB,mBAAmB,EAAE,MAAM,2BA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cAAc,CAAC,GAAG,eAAe,CAAC,cAAc,CAAC;IAQ/E;;;;;;;;OAQG;IACH,sBAAsB,CAAC,CAAC,EAAE,cAAc,EAAE,EACxC,OAAO,EACP,UAAU,EACX,EAAE,sBAAsB,CAAC,CAAC,EAAE,cAAc,CAAC,GAAG,eAAe,CAAC,cAAc,CAAC;IAuB9E;;;;;OAKG;IACH,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;IAYzF;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS;CAOvE;AAED,KAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,YAAY,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,4BAG/B,qBAAqB,KAAG,eAKzB,CAAA;AAEF,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,GAAI,0BAA0B,iBAAiB,KAAG,WAI1E,CAAA"}
@@ -216,6 +216,13 @@ export class GenerateContext {
216
216
  mappings: __classPrivateFieldGet(this, _GenerateContext_mappings, "f")
217
217
  };
218
218
  }
219
+ /**
220
+ * Executes a function within a traced context for debugging and monitoring.
221
+ *
222
+ * @param token - Trace identifier or path segments
223
+ * @param fn - Function to execute within the trace context
224
+ * @returns The result of the traced function execution
225
+ */
219
226
  trace(token, fn) {
220
227
  return tracer(this.stackTrail, token, fn, this.logger);
221
228
  }
@@ -244,7 +251,12 @@ export class GenerateContext {
244
251
  noExport
245
252
  });
246
253
  }
247
- /** @experimental */
254
+ /**
255
+ * Registers JSON content for output to a file.
256
+ *
257
+ * @experimental This method is experimental and may change in future versions
258
+ * @param args - Registration arguments with destination path and JSON content
259
+ */
248
260
  registerJson({ destinationPath, json }) {
249
261
  const currentFile = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_getFile).call(this, destinationPath);
250
262
  invariant(currentFile instanceof JsonFile, `File at "${destinationPath}" is not a "JsonFile" type`);
@@ -324,6 +336,14 @@ export class GenerateContext {
324
336
  });
325
337
  return new Inserted({ settings, definition });
326
338
  }
339
+ /**
340
+ * Inserts a normalized model definition into the generation context.
341
+ *
342
+ * @param insertable - Model insertable configuration with prototype and transform functions
343
+ * @param schema - OAS schema, reference, or void type to generate model from
344
+ * @param options - Insertion options including generation type and destination
345
+ * @returns Inserted model instance with settings and definition
346
+ */
327
347
  insertNormalisedModel(insertable, { schema, fallbackName, destinationPath }, { noExport = false } = {}) {
328
348
  if (schema.isRef()) {
329
349
  const { definition } = this.insertModel(insertable, schema.toRefName(), {
@@ -30,7 +30,7 @@ export type ParseReturn = {
30
30
  /**
31
31
  * Base type for parse warning messages.
32
32
  */
33
- type ParseWarningBase = {
33
+ export type ParseWarningBase = {
34
34
  /** Issue severity level */
35
35
  level: 'warning';
36
36
  /** Warning message */
@@ -39,7 +39,7 @@ type ParseWarningBase = {
39
39
  /**
40
40
  * Base type for parse error messages.
41
41
  */
42
- type ParseErrorBase = {
42
+ export type ParseErrorBase = {
43
43
  /** Issue severity level */
44
44
  level: 'error';
45
45
  /** The error that occurred */
@@ -48,7 +48,7 @@ type ParseErrorBase = {
48
48
  /**
49
49
  * Base union type for parse issues.
50
50
  */
51
- type ParseIssueBase = ParseErrorBase | ParseWarningBase;
51
+ export type ParseIssueBase = ParseErrorBase | ParseWarningBase;
52
52
  /**
53
53
  * Arguments for logging issues with a specific key.
54
54
  */
@@ -253,17 +253,78 @@ export declare class ParseContext {
253
253
  issues: ParseIssue[];
254
254
  /** Whether to suppress console output during parsing */
255
255
  silent: boolean;
256
+ /**
257
+ * Creates a new ParseContext instance for the parsing phase.
258
+ *
259
+ * @param args - Constructor arguments including document object, logger, and options
260
+ */
256
261
  constructor({ documentObject, logger, stackTrail, silent }: ConstructorArgs);
262
+ /**
263
+ * Parses the OpenAPI v3 document and returns the internal OAS document representation.
264
+ *
265
+ * @returns Parsed OAS document with all components and operations
266
+ */
257
267
  parse(): OasDocument;
268
+ /**
269
+ * Removes items from the parsed document that encountered errors during parsing.
270
+ */
258
271
  removeErroredItems(): void;
272
+ /**
273
+ * Registers a reference ($ref) with its associated stack trail for error tracking.
274
+ *
275
+ * @param stackTrail - Current processing context stack trail
276
+ * @param $ref - OpenAPI reference string to register
277
+ */
259
278
  registerRef(stackTrail: StackTrail, $ref: string): void;
279
+ /**
280
+ * Registers an error that occurred while processing a reference.
281
+ *
282
+ * @param error - Error that occurred during reference processing
283
+ * @param $ref - Reference string that caused the error (if available)
284
+ */
260
285
  registerRefError(error: Error, $ref: string | undefined): void;
286
+ /**
287
+ * Executes a function within a traced context for debugging and monitoring.
288
+ *
289
+ * @param token - Trace identifier or path segments
290
+ * @param fn - Function to execute within the trace context
291
+ * @returns The result of the traced function execution
292
+ */
261
293
  trace<T>(token: string | string[], fn: () => T): T;
294
+ /**
295
+ * Logs warnings for fields that were skipped during parsing.
296
+ *
297
+ * @param args - Arguments containing skipped fields and parent context
298
+ */
262
299
  logSkippedFields({ skipped, parent, parentType }: LogSkippedValuesArgs): void;
300
+ /**
301
+ * Attempts to parse a value with optional error handling and logging.
302
+ *
303
+ * @param args - Parsing arguments including schema and error handling
304
+ * @returns Parsed value or undefined if parsing fails
305
+ */
263
306
  provisionalParse<T>({ key, value, parent, schema, toMessage, type }: ProvisionalParseArgs<T>): T | undefined;
307
+ /**
308
+ * Logs a parsing issue with associated key context.
309
+ *
310
+ * @param args - Issue arguments including key, parent object, and issue details
311
+ */
264
312
  logIssue({ key, parent, type, ...issue }: LogIssueArgs): void;
313
+ /**
314
+ * Logs a parsing issue without specific key context.
315
+ *
316
+ * @param args - Issue arguments including parent object and issue details
317
+ */
265
318
  logIssueNoKey({ parent, type, ...issue }: LogIssueNoKeyArgs): void;
266
319
  }
320
+ /**
321
+ * Parses an OpenAPI v3 schema from string format (JSON or YAML).
322
+ *
323
+ * Automatically detects the format based on content and parses accordingly.
324
+ *
325
+ * @param schema - Schema string in JSON or YAML format
326
+ * @returns Parsed OpenAPI v3 document object
327
+ */
267
328
  export declare const parseSchema: (schema: string) => OpenAPIV3.Document;
268
329
  export {};
269
330
  //# sourceMappingURL=ParseContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ParseContext.d.ts","sourceRoot":"","sources":["../../src/context/ParseContext.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAG9C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,KAAK,KAAK,GAAG,MAAM,yCAAyC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C;;GAEG;AACH,KAAK,eAAe,GAAG;IACrB,uCAAuC;IACvC,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAA;IAClC,4CAA4C;IAC5C,MAAM,EAAE,GAAG,CAAC,MAAM,CAAA;IAClB,0CAA0C;IAC1C,UAAU,EAAE,UAAU,CAAA;IACtB,yCAAyC;IACzC,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,8BAA8B;IAC9B,WAAW,EAAE,WAAW,CAAA;IACxB,0CAA0C;IAC1C,MAAM,EAAE,UAAU,EAAE,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,KAAK,gBAAgB,GAAG;IACtB,2BAA2B;IAC3B,KAAK,EAAE,SAAS,CAAA;IAChB,sBAAsB;IACtB,O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CAAC,QAMtD,CAAA"}
@@ -125,6 +125,11 @@ import * as v from 'valibot';
125
125
  * ```
126
126
  */
127
127
  export class ParseContext {
128
+ /**
129
+ * Creates a new ParseContext instance for the parsing phase.
130
+ *
131
+ * @param args - Constructor arguments including document object, logger, and options
132
+ */
128
133
  constructor({ documentObject, logger, stackTrail, silent = true }) {
129
134
  /** The original OpenAPI v3 document being parsed */
130
135
  Object.defineProperty(this, "documentObject", {
@@ -179,6 +184,11 @@ export class ParseContext {
179
184
  __classPrivateFieldSet(this, _ParseContext_refStackTrails, {}, "f");
180
185
  __classPrivateFieldSet(this, _ParseContext_refErrors, {}, "f");
181
186
  }
187
+ /**
188
+ * Parses the OpenAPI v3 document and returns the internal OAS document representation.
189
+ *
190
+ * @returns Parsed OAS document with all components and operations
191
+ */
182
192
  parse() {
183
193
  this.oasDocument.fields = toDocumentFieldsV3({
184
194
  documentObject: this.documentObject,
@@ -187,6 +197,9 @@ export class ParseContext {
187
197
  this.removeErroredItems();
188
198
  return this.oasDocument;
189
199
  }
200
+ /**
201
+ * Removes items from the parsed document that encountered errors during parsing.
202
+ */
190
203
  removeErroredItems() {
191
204
  Object.entries(__classPrivateFieldGet(this, _ParseContext_refErrors, "f")).forEach(([$ref, errors]) => {
192
205
  errors.forEach(error => {
@@ -205,19 +218,43 @@ export class ParseContext {
205
218
  });
206
219
  });
207
220
  }
221
+ /**
222
+ * Registers a reference ($ref) with its associated stack trail for error tracking.
223
+ *
224
+ * @param stackTrail - Current processing context stack trail
225
+ * @param $ref - OpenAPI reference string to register
226
+ */
208
227
  registerRef(stackTrail, $ref) {
209
228
  const refStackTrails = __classPrivateFieldGet(this, _ParseContext_refStackTrails, "f")[$ref];
210
229
  refStackTrails ? refStackTrails.push(stackTrail) : (__classPrivateFieldGet(this, _ParseContext_refStackTrails, "f")[$ref] = [stackTrail]);
211
230
  }
231
+ /**
232
+ * Registers an error that occurred while processing a reference.
233
+ *
234
+ * @param error - Error that occurred during reference processing
235
+ * @param $ref - Reference string that caused the error (if available)
236
+ */
212
237
  registerRefError(error, $ref) {
213
238
  if ($ref) {
214
239
  const refErrors = __classPrivateFieldGet(this, _ParseContext_refErrors, "f")[$ref];
215
240
  refErrors ? refErrors.push(error) : (__classPrivateFieldGet(this, _ParseContext_refErrors, "f")[$ref] = [error]);
216
241
  }
217
242
  }
243
+ /**
244
+ * Executes a function within a traced context for debugging and monitoring.
245
+ *
246
+ * @param token - Trace identifier or path segments
247
+ * @param fn - Function to execute within the trace context
248
+ * @returns The result of the traced function execution
249
+ */
218
250
  trace(token, fn) {
219
251
  return tracer(this.stackTrail, token, fn, this.logger);
220
252
  }
253
+ /**
254
+ * Logs warnings for fields that were skipped during parsing.
255
+ *
256
+ * @param args - Arguments containing skipped fields and parent context
257
+ */
221
258
  logSkippedFields({ skipped, parent, parentType }) {
222
259
  Object.keys(skipped).forEach(key => {
223
260
  this.logIssue({
@@ -229,6 +266,12 @@ export class ParseContext {
229
266
  });
230
267
  });
231
268
  }
269
+ /**
270
+ * Attempts to parse a value with optional error handling and logging.
271
+ *
272
+ * @param args - Parsing arguments including schema and error handling
273
+ * @returns Parsed value or undefined if parsing fails
274
+ */
232
275
  provisionalParse({ key, value, parent, schema, toMessage, type }) {
233
276
  const parsed = v.safeParse(v.optional(schema), value);
234
277
  if (parsed.success) {
@@ -242,9 +285,19 @@ export class ParseContext {
242
285
  type
243
286
  });
244
287
  }
288
+ /**
289
+ * Logs a parsing issue with associated key context.
290
+ *
291
+ * @param args - Issue arguments including key, parent object, and issue details
292
+ */
245
293
  logIssue({ key, parent, type, ...issue }) {
246
294
  this.trace(key, () => this.logIssueNoKey({ parent, type, ...issue }));
247
295
  }
296
+ /**
297
+ * Logs a parsing issue without specific key context.
298
+ *
299
+ * @param args - Issue arguments including parent object and issue details
300
+ */
248
301
  logIssueNoKey({ parent, type, ...issue }) {
249
302
  if (issue.level === 'error') {
250
303
  this.registerRefError(issue.error, this.stackTrail.toStackRef());
@@ -266,6 +319,14 @@ export class ParseContext {
266
319
  }
267
320
  }
268
321
  _ParseContext_refStackTrails = new WeakMap(), _ParseContext_refErrors = new WeakMap();
322
+ /**
323
+ * Parses an OpenAPI v3 schema from string format (JSON or YAML).
324
+ *
325
+ * Automatically detects the format based on content and parses accordingly.
326
+ *
327
+ * @param schema - Schema string in JSON or YAML format
328
+ * @returns Parsed OpenAPI v3 document object
329
+ */
269
330
  export const parseSchema = (schema) => {
270
331
  if (schema.trimStart().startsWith('{')) {
271
332
  return JSON.parse(schema);