@quadnix/octo 0.0.23 → 0.0.25

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 (294) hide show
  1. package/dist/app.type.d.ts +116 -1
  2. package/dist/app.type.js +21 -0
  3. package/dist/app.type.js.map +1 -1
  4. package/dist/decorators/anchor.decorator.d.ts +1 -1
  5. package/dist/decorators/anchor.decorator.js +1 -1
  6. package/dist/decorators/enable-hook.decorator.d.ts +5 -0
  7. package/dist/decorators/enable-hook.decorator.js +5 -0
  8. package/dist/decorators/enable-hook.decorator.js.map +1 -1
  9. package/dist/decorators/event-source.decorator.d.ts +4 -0
  10. package/dist/decorators/event-source.decorator.js +5 -6
  11. package/dist/decorators/event-source.decorator.js.map +1 -1
  12. package/dist/decorators/model.decorator.d.ts +17 -4
  13. package/dist/decorators/model.decorator.js +17 -4
  14. package/dist/decorators/model.decorator.js.map +1 -1
  15. package/dist/decorators/on-event.decorator.js +1 -6
  16. package/dist/decorators/on-event.decorator.js.map +1 -1
  17. package/dist/decorators/overlay.decorator.d.ts +14 -5
  18. package/dist/decorators/overlay.decorator.js +14 -5
  19. package/dist/decorators/overlay.decorator.js.map +1 -1
  20. package/dist/decorators/resource.decorator.d.ts +15 -5
  21. package/dist/decorators/resource.decorator.js +15 -5
  22. package/dist/decorators/resource.decorator.js.map +1 -1
  23. package/dist/decorators/validate.decorator.d.ts +8 -0
  24. package/dist/decorators/validate.decorator.js +8 -0
  25. package/dist/decorators/validate.decorator.js.map +1 -1
  26. package/dist/errors/container.error.d.ts +9 -0
  27. package/dist/errors/container.error.js +9 -0
  28. package/dist/errors/container.error.js.map +1 -1
  29. package/dist/errors/input.error.d.ts +38 -0
  30. package/dist/errors/input.error.js +38 -0
  31. package/dist/errors/input.error.js.map +1 -1
  32. package/dist/errors/module.error.d.ts +3 -0
  33. package/dist/errors/module.error.js +3 -0
  34. package/dist/errors/module.error.js.map +1 -1
  35. package/dist/errors/node.error.d.ts +27 -0
  36. package/dist/errors/node.error.js +27 -0
  37. package/dist/errors/node.error.js.map +1 -1
  38. package/dist/errors/schema.error.d.ts +3 -0
  39. package/dist/errors/schema.error.js +3 -0
  40. package/dist/errors/schema.error.js.map +1 -1
  41. package/dist/errors/transaction.error.d.ts +21 -0
  42. package/dist/errors/transaction.error.js +23 -3
  43. package/dist/errors/transaction.error.js.map +1 -1
  44. package/dist/events/action.event.d.ts +2 -1
  45. package/dist/events/action.event.js +2 -1
  46. package/dist/events/action.event.js.map +1 -1
  47. package/dist/events/event.model.d.ts +5 -3
  48. package/dist/events/event.model.js +3 -1
  49. package/dist/events/event.model.js.map +1 -1
  50. package/dist/events/hook/commit.hook.event.d.ts +6 -3
  51. package/dist/events/hook/commit.hook.event.js +6 -3
  52. package/dist/events/hook/commit.hook.event.js.map +1 -1
  53. package/dist/events/hook/hook.event.d.ts +2 -1
  54. package/dist/events/hook/hook.event.js +2 -1
  55. package/dist/events/hook/hook.event.js.map +1 -1
  56. package/dist/events/hook/model.hook.event.d.ts +6 -3
  57. package/dist/events/hook/model.hook.event.js +6 -3
  58. package/dist/events/hook/model.hook.event.js.map +1 -1
  59. package/dist/events/hook/resource.hook.event.d.ts +6 -3
  60. package/dist/events/hook/resource.hook.event.js +6 -3
  61. package/dist/events/hook/resource.hook.event.js.map +1 -1
  62. package/dist/events/module.event.d.ts +2 -1
  63. package/dist/events/module.event.js +2 -1
  64. package/dist/events/module.event.js.map +1 -1
  65. package/dist/events/registration.event.d.ts +14 -7
  66. package/dist/events/registration.event.js +14 -7
  67. package/dist/events/registration.event.js.map +1 -1
  68. package/dist/events/serialization.event.d.ts +12 -6
  69. package/dist/events/serialization.event.js +12 -6
  70. package/dist/events/serialization.event.js.map +1 -1
  71. package/dist/events/transaction.event.d.ts +53 -10
  72. package/dist/events/transaction.event.js +36 -8
  73. package/dist/events/transaction.event.js.map +1 -1
  74. package/dist/functions/container/container.d.ts +2 -0
  75. package/dist/functions/container/container.js +2 -0
  76. package/dist/functions/container/container.js.map +1 -1
  77. package/dist/functions/container/test-container.d.ts +2 -0
  78. package/dist/functions/container/test-container.js +2 -0
  79. package/dist/functions/container/test-container.js.map +1 -1
  80. package/dist/functions/dependency/dependency.d.ts +9 -0
  81. package/dist/functions/dependency/dependency.js +6 -0
  82. package/dist/functions/dependency/dependency.js.map +1 -1
  83. package/dist/functions/diff/diff-metadata.d.ts +3 -0
  84. package/dist/functions/diff/diff-metadata.js +3 -0
  85. package/dist/functions/diff/diff-metadata.js.map +1 -1
  86. package/dist/functions/diff/diff.d.ts +8 -1
  87. package/dist/functions/diff/diff.js +7 -0
  88. package/dist/functions/diff/diff.js.map +1 -1
  89. package/dist/functions/diff/diff.utility.d.ts +3 -0
  90. package/dist/functions/diff/diff.utility.js +5 -2
  91. package/dist/functions/diff/diff.utility.js.map +1 -1
  92. package/dist/functions/hook/commit.hook.d.ts +3 -0
  93. package/dist/functions/hook/commit.hook.js +3 -0
  94. package/dist/functions/hook/commit.hook.js.map +1 -1
  95. package/dist/functions/hook/hook.interface.d.ts +3 -0
  96. package/dist/functions/hook/model-action.hook.d.ts +3 -0
  97. package/dist/functions/hook/model-action.hook.js +3 -0
  98. package/dist/functions/hook/model-action.hook.js.map +1 -1
  99. package/dist/functions/hook/resource-action.hook.d.ts +5 -2
  100. package/dist/functions/hook/resource-action.hook.js +5 -1
  101. package/dist/functions/hook/resource-action.hook.js.map +1 -1
  102. package/dist/functions/node/node-action.abstract.d.ts +3 -0
  103. package/dist/functions/node/node-action.abstract.js +3 -0
  104. package/dist/functions/node/node-action.abstract.js.map +1 -1
  105. package/dist/functions/node/node.abstract.d.ts +3 -1
  106. package/dist/functions/node/node.abstract.js +3 -1
  107. package/dist/functions/node/node.abstract.js.map +1 -1
  108. package/dist/functions/node/node.interface.d.ts +4 -0
  109. package/dist/functions/schema/schema.d.ts +17 -0
  110. package/dist/functions/schema/schema.js +18 -1
  111. package/dist/functions/schema/schema.js.map +1 -1
  112. package/dist/index.d.ts +1 -1
  113. package/dist/index.js +1 -1
  114. package/dist/index.js.map +1 -1
  115. package/dist/main.d.ts +6 -1
  116. package/dist/main.js +14 -1
  117. package/dist/main.js.map +1 -1
  118. package/dist/models/account/account.model.d.ts +3 -0
  119. package/dist/models/account/account.model.js +5 -1
  120. package/dist/models/account/account.model.js.map +1 -1
  121. package/dist/models/account/account.schema.d.ts +6 -0
  122. package/dist/models/account/account.schema.js +6 -0
  123. package/dist/models/account/account.schema.js.map +1 -1
  124. package/dist/models/app/app.model.d.ts +3 -1
  125. package/dist/models/app/app.model.js +3 -1
  126. package/dist/models/app/app.model.js.map +1 -1
  127. package/dist/models/app/app.schema.d.ts +3 -0
  128. package/dist/models/app/app.schema.js +3 -0
  129. package/dist/models/app/app.schema.js.map +1 -1
  130. package/dist/models/deployment/deployment.model.d.ts +3 -1
  131. package/dist/models/deployment/deployment.model.js +3 -1
  132. package/dist/models/deployment/deployment.model.js.map +1 -1
  133. package/dist/models/deployment/deployment.schema.d.ts +3 -0
  134. package/dist/models/deployment/deployment.schema.js +3 -0
  135. package/dist/models/deployment/deployment.schema.js.map +1 -1
  136. package/dist/models/environment/environment.model.d.ts +3 -1
  137. package/dist/models/environment/environment.model.js +3 -1
  138. package/dist/models/environment/environment.model.js.map +1 -1
  139. package/dist/models/environment/environment.schema.d.ts +3 -0
  140. package/dist/models/environment/environment.schema.js +3 -0
  141. package/dist/models/environment/environment.schema.js.map +1 -1
  142. package/dist/models/execution/execution.model.d.ts +3 -1
  143. package/dist/models/execution/execution.model.js +3 -1
  144. package/dist/models/execution/execution.model.js.map +1 -1
  145. package/dist/models/execution/execution.schema.d.ts +3 -0
  146. package/dist/models/execution/execution.schema.js +3 -0
  147. package/dist/models/execution/execution.schema.js.map +1 -1
  148. package/dist/models/filesystem/filesystem.model.d.ts +3 -0
  149. package/dist/models/filesystem/filesystem.model.js +3 -0
  150. package/dist/models/filesystem/filesystem.model.js.map +1 -1
  151. package/dist/models/filesystem/filesystem.schema.d.ts +3 -0
  152. package/dist/models/filesystem/filesystem.schema.js +3 -0
  153. package/dist/models/filesystem/filesystem.schema.js.map +1 -1
  154. package/dist/models/image/image.model.d.ts +3 -1
  155. package/dist/models/image/image.model.js +3 -1
  156. package/dist/models/image/image.model.js.map +1 -1
  157. package/dist/models/image/image.schema.d.ts +3 -0
  158. package/dist/models/image/image.schema.js +4 -1
  159. package/dist/models/image/image.schema.js.map +1 -1
  160. package/dist/models/model-action.interface.d.ts +2 -0
  161. package/dist/models/model.abstract.d.ts +3 -0
  162. package/dist/models/model.abstract.js +3 -0
  163. package/dist/models/model.abstract.js.map +1 -1
  164. package/dist/models/model.interface.d.ts +5 -0
  165. package/dist/models/pipeline/pipeline.model.d.ts +3 -1
  166. package/dist/models/pipeline/pipeline.model.js +3 -1
  167. package/dist/models/pipeline/pipeline.model.js.map +1 -1
  168. package/dist/models/pipeline/pipeline.schema.d.ts +3 -0
  169. package/dist/models/pipeline/pipeline.schema.js +3 -0
  170. package/dist/models/pipeline/pipeline.schema.js.map +1 -1
  171. package/dist/models/region/region.model.d.ts +3 -1
  172. package/dist/models/region/region.model.js +3 -1
  173. package/dist/models/region/region.model.js.map +1 -1
  174. package/dist/models/region/region.schema.d.ts +3 -0
  175. package/dist/models/region/region.schema.js +3 -0
  176. package/dist/models/region/region.schema.js.map +1 -1
  177. package/dist/models/server/server.model.d.ts +3 -1
  178. package/dist/models/server/server.model.js +3 -1
  179. package/dist/models/server/server.model.js.map +1 -1
  180. package/dist/models/server/server.schema.d.ts +3 -0
  181. package/dist/models/server/server.schema.js +3 -0
  182. package/dist/models/server/server.schema.js.map +1 -1
  183. package/dist/models/service/service.model.d.ts +3 -1
  184. package/dist/models/service/service.model.js +3 -1
  185. package/dist/models/service/service.model.js.map +1 -1
  186. package/dist/models/service/service.schema.d.ts +3 -0
  187. package/dist/models/service/service.schema.js +3 -0
  188. package/dist/models/service/service.schema.js.map +1 -1
  189. package/dist/models/subnet/subnet.model.d.ts +3 -1
  190. package/dist/models/subnet/subnet.model.js +3 -1
  191. package/dist/models/subnet/subnet.model.js.map +1 -1
  192. package/dist/models/subnet/subnet.schema.d.ts +5 -0
  193. package/dist/models/subnet/subnet.schema.js +5 -0
  194. package/dist/models/subnet/subnet.schema.js.map +1 -1
  195. package/dist/modules/module.abstract.d.ts +3 -0
  196. package/dist/modules/module.abstract.js +3 -0
  197. package/dist/modules/module.abstract.js.map +1 -1
  198. package/dist/modules/module.container.d.ts +6 -0
  199. package/dist/modules/module.container.js +11 -0
  200. package/dist/modules/module.container.js.map +1 -1
  201. package/dist/modules/module.interface.d.ts +3 -0
  202. package/dist/modules/test-module.container.d.ts +8 -0
  203. package/dist/modules/test-module.container.js +14 -6
  204. package/dist/modules/test-module.container.js.map +1 -1
  205. package/dist/overlays/anchor.abstract.d.ts +3 -0
  206. package/dist/overlays/anchor.abstract.js +4 -1
  207. package/dist/overlays/anchor.abstract.js.map +1 -1
  208. package/dist/overlays/anchor.interface.d.ts +3 -0
  209. package/dist/overlays/anchor.schema.d.ts +7 -1
  210. package/dist/overlays/anchor.schema.js +3 -0
  211. package/dist/overlays/anchor.schema.js.map +1 -1
  212. package/dist/overlays/overlay-data.repository.d.ts +6 -0
  213. package/dist/overlays/overlay-data.repository.js +6 -0
  214. package/dist/overlays/overlay-data.repository.js.map +1 -1
  215. package/dist/overlays/overlay.abstract.d.ts +3 -0
  216. package/dist/overlays/overlay.abstract.js +6 -0
  217. package/dist/overlays/overlay.abstract.js.map +1 -1
  218. package/dist/overlays/overlay.interface.d.ts +3 -0
  219. package/dist/overlays/overlay.schema.d.ts +3 -0
  220. package/dist/overlays/overlay.schema.js +3 -0
  221. package/dist/overlays/overlay.schema.js.map +1 -1
  222. package/dist/resources/resource-action.interface.d.ts +5 -2
  223. package/dist/resources/resource-data.repository.d.ts +7 -0
  224. package/dist/resources/resource-data.repository.js +13 -0
  225. package/dist/resources/resource-data.repository.js.map +1 -1
  226. package/dist/resources/resource.abstract.d.ts +4 -0
  227. package/dist/resources/resource.abstract.js +13 -2
  228. package/dist/resources/resource.abstract.js.map +1 -1
  229. package/dist/resources/resource.interface.d.ts +6 -0
  230. package/dist/resources/resource.schema.d.ts +3 -0
  231. package/dist/resources/resource.schema.js +3 -0
  232. package/dist/resources/resource.schema.js.map +1 -1
  233. package/dist/services/capture/capture.service.d.ts +7 -0
  234. package/dist/services/capture/capture.service.js +9 -0
  235. package/dist/services/capture/capture.service.js.map +1 -1
  236. package/dist/services/event/event.service.d.ts +8 -1
  237. package/dist/services/event/event.service.js +14 -4
  238. package/dist/services/event/event.service.js.map +1 -1
  239. package/dist/services/input/input.service.d.ts +6 -0
  240. package/dist/services/input/input.service.js +18 -12
  241. package/dist/services/input/input.service.js.map +1 -1
  242. package/dist/services/schema-translation/schema-translation.service.d.ts +6 -0
  243. package/dist/services/schema-translation/schema-translation.service.js +6 -0
  244. package/dist/services/schema-translation/schema-translation.service.js.map +1 -1
  245. package/dist/services/serialization/model/model-serialization.service.d.ts +6 -0
  246. package/dist/services/serialization/model/model-serialization.service.js +29 -8
  247. package/dist/services/serialization/model/model-serialization.service.js.map +1 -1
  248. package/dist/services/serialization/resource/resource-serialization.service.d.ts +6 -0
  249. package/dist/services/serialization/resource/resource-serialization.service.js +6 -0
  250. package/dist/services/serialization/resource/resource-serialization.service.js.map +1 -1
  251. package/dist/services/state-management/local.state-provider.d.ts +12 -0
  252. package/dist/services/state-management/local.state-provider.js +62 -0
  253. package/dist/services/state-management/local.state-provider.js.map +1 -1
  254. package/dist/services/state-management/state-management.service.d.ts +13 -0
  255. package/dist/services/state-management/state-management.service.js +21 -0
  256. package/dist/services/state-management/state-management.service.js.map +1 -1
  257. package/dist/services/state-management/state-provider.interface.d.ts +10 -0
  258. package/dist/services/state-management/test.state-provider.d.ts +11 -0
  259. package/dist/services/state-management/test.state-provider.js +44 -0
  260. package/dist/services/state-management/test.state-provider.js.map +1 -1
  261. package/dist/services/transaction/transaction.service.d.ts +8 -1
  262. package/dist/services/transaction/transaction.service.js +88 -13
  263. package/dist/services/transaction/transaction.service.js.map +1 -1
  264. package/dist/services/validation/validation.service.d.ts +6 -0
  265. package/dist/services/validation/validation.service.js +6 -0
  266. package/dist/services/validation/validation.service.js.map +1 -1
  267. package/dist/utilities/array/array.utility.d.ts +3 -0
  268. package/dist/utilities/array/array.utility.js +3 -0
  269. package/dist/utilities/array/array.utility.js.map +1 -1
  270. package/dist/utilities/cidr/cidr.utility.d.ts +3 -0
  271. package/dist/utilities/cidr/cidr.utility.js +3 -0
  272. package/dist/utilities/cidr/cidr.utility.js.map +1 -1
  273. package/dist/utilities/node/node.utility.d.ts +3 -0
  274. package/dist/utilities/node/node.utility.js +3 -0
  275. package/dist/utilities/node/node.utility.js.map +1 -1
  276. package/dist/utilities/object/object.utility.d.ts +3 -0
  277. package/dist/utilities/object/object.utility.js +4 -1
  278. package/dist/utilities/object/object.utility.js.map +1 -1
  279. package/dist/utilities/test-helpers/test-classes.d.ts +27 -0
  280. package/dist/utilities/test-helpers/test-classes.js +27 -0
  281. package/dist/utilities/test-helpers/test-classes.js.map +1 -1
  282. package/dist/utilities/test-helpers/test-models.d.ts +6 -0
  283. package/dist/utilities/test-helpers/test-models.js +6 -0
  284. package/dist/utilities/test-helpers/test-models.js.map +1 -1
  285. package/dist/utilities/test-helpers/test-overlays.d.ts +3 -0
  286. package/dist/utilities/test-helpers/test-overlays.js +3 -0
  287. package/dist/utilities/test-helpers/test-overlays.js.map +1 -1
  288. package/dist/utilities/test-helpers/test-resources.d.ts +9 -0
  289. package/dist/utilities/test-helpers/test-resources.js +10 -1
  290. package/dist/utilities/test-helpers/test-resources.js.map +1 -1
  291. package/dist/utilities/validation/validation.utility.d.ts +3 -0
  292. package/dist/utilities/validation/validation.utility.js +3 -0
  293. package/dist/utilities/validation/validation.utility.js.map +1 -1
  294. package/package.json +2 -2
@@ -4,17 +4,27 @@ import { AResource } from '../resources/resource.abstract.js';
4
4
  import { ResourceSerializationService } from '../services/serialization/resource/resource-serialization.service.js';
5
5
  import { ValidationUtility } from '../utilities/validation/validation.utility.js';
6
6
  /**
7
- * A `@Resource` is a class decorator to be placed on top of a class that represents a resource.
8
- * - A resource must extend the {@link AResource} class.
7
+ * A `@Resource` is a class decorator and must be placed on top of a class representing a resource.
8
+ * - A resource must also extend the {@link AResource} class.
9
+ * - For type safety, the type of resource being decorated is passed to the decorator.
9
10
  *
10
11
  * @example
11
12
  * ```ts
12
- * @Resource('my-package', 'my-name')
13
- * export class MyResource extends AResource<MyResource> { ... }
13
+ * @Resource<MyResource>('@example', 'my-name', MyResourceSchema)
14
+ * export class MyResource extends AResource<MyResourceSchema, MyResource> { ... }
14
15
  * ```
16
+ *
15
17
  * @group Decorators
18
+ *
19
+ * @param packageName - The name of the package under which the resource is registered.
20
+ * Selecting a unique package name helps avoid collisions between same resource class names across different libraries.
21
+ * You will reuse the same package name throughout your library for different Octo components you create.
22
+ * @param resourceName - a string that uniquely represents the name of the resource.
23
+ * @param schema - The schema of the resource.
24
+ *
16
25
  * @returns The decorated class.
17
- * @see Definition of [Resources](http://localhost:3000/docs/fundamentals/resources).
26
+ *
27
+ * @see Definition of [Resources](/docs/fundamentals/resources).
18
28
  */
19
29
  export function Resource(packageName, resourceName, schema) {
20
30
  const container = Container.getInstance();
@@ -1 +1 @@
1
- {"version":3,"file":"resource.decorator.js","sourceRoot":"","sources":["../../src/decorators/resource.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,QAAQ,EAA6C,MAAM,gBAAgB,CAAC;AACzG,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sEAAsE,CAAC;AACpH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,QAAQ,CACtB,WAAmB,EACnB,YAAoB,EACpB,MAAwC;IAExC,MAAM,SAAS,GAAG,SAAS,CAAC,W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AO,CAAC,CAAC;IACrD,CAAC,CAAC;AACJ,CAAC"}
@@ -5,5 +5,13 @@ type ValidationOptions<T> = {
5
5
  [key in ValidationType]?: ValidationTypeOptions[key];
6
6
  };
7
7
  };
8
+ /**
9
+ * A `@Validate` is a property decorator to validate a property.
10
+ * It is typically used in {@link Schema} to validate schema properties.
11
+ *
12
+ * @group Decorators
13
+ *
14
+ * @see Techniques for [Validation](/docs/techniques/validation).
15
+ */
8
16
  export declare function Validate<T>(validators: ValidationOptions<T> | ValidationOptions<T>[], transform?: (value: any) => any): (target: any, propertyKey: string) => void;
9
17
  export {};
@@ -1,5 +1,13 @@
1
1
  import { ValidationTransactionError } from '../errors/index.js';
2
2
  import { ValidationService } from '../services/validation/validation.service.js';
3
+ /**
4
+ * A `@Validate` is a property decorator to validate a property.
5
+ * It is typically used in {@link Schema} to validate schema properties.
6
+ *
7
+ * @group Decorators
8
+ *
9
+ * @see Techniques for [Validation](/docs/techniques/validation).
10
+ */
3
11
  export function Validate(validators, transform) {
4
12
  return function (target, propertyKey) {
5
13
  const symbol = Symbol();
@@ -1 +1 @@
1
- {"version":3,"file":"validate.decorator.js","sourceRoot":"","sources":["../../src/decorators/validate.decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAOjF,MAAM,UAAU,QAAQ,CACtB,UAAyD,EACzD,SAA+B;IAE/B,OAAO,UAAU,MAAW,EAAE,WAAmB;QAC/C,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC;QAExB,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE;YACzC,UAAU,EAAE,IAAI;YAChB,GAAG,EAAE;gBACH,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;YACtB,CAAC;YACD,GAAG,EAAE,UAAU,QAAa;gBAC1B,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;oBAC3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J,CAAC"}
@@ -1,11 +1,20 @@
1
1
  import type { Constructable } from '../app.type.js';
2
+ /**
3
+ * @group Errors/Container
4
+ */
2
5
  export declare class ContainerError extends Error {
3
6
  readonly type: string;
4
7
  constructor(message: string, type: Constructable<unknown> | string);
5
8
  }
9
+ /**
10
+ * @group Errors/Container
11
+ */
6
12
  export declare class ContainerRegistrationError extends ContainerError {
7
13
  constructor(message: string, type: Constructable<unknown> | string);
8
14
  }
15
+ /**
16
+ * @group Errors/Container
17
+ */
9
18
  export declare class ContainerResolutionError extends ContainerError {
10
19
  constructor(message: string, type: Constructable<unknown> | string);
11
20
  }
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @group Errors/Container
3
+ */
1
4
  export class ContainerError extends Error {
2
5
  constructor(message, type) {
3
6
  super(message);
@@ -5,12 +8,18 @@ export class ContainerError extends Error {
5
8
  Object.setPrototypeOf(this, ContainerError.prototype);
6
9
  }
7
10
  }
11
+ /**
12
+ * @group Errors/Container
13
+ */
8
14
  export class ContainerRegistrationError extends ContainerError {
9
15
  constructor(message, type) {
10
16
  super(message, type);
11
17
  Object.setPrototypeOf(this, ContainerRegistrationError.prototype);
12
18
  }
13
19
  }
20
+ /**
21
+ * @group Errors/Container
22
+ */
14
23
  export class ContainerResolutionError extends ContainerError {
15
24
  constructor(message, type) {
16
25
  super(message, type);
@@ -1 +1 @@
1
- {"version":3,"file":"container.error.js","sourceRoot":"","sources":["../../src/errors/container.error.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,cAAe,SAAQ,KAAK;IAGvC,YAAY,OAAe,EAAE,IAAqC;QAChE,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,IAAI,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAExD,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACxD,CAAC;CACF;A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SAAS,CAAC,CAAC;IAClE,CAAC;CACF"}
@@ -1,11 +1,49 @@
1
+ /**
2
+ * Parent error class for all input errors.
3
+ *
4
+ * @group Errors/Input
5
+ */
1
6
  export declare class InputError extends Error {
7
+ /**
8
+ * Creates a new instance.
9
+ *
10
+ * @param message The error message.
11
+ */
2
12
  constructor(message: string);
3
13
  }
14
+ /**
15
+ * Error class for input registration errors.
16
+ * This error is thrown when an input key cannot be registered,
17
+ * either because it has already been registered, or is not a valid input key,
18
+ * or is not a valid input value.
19
+ *
20
+ * @group Errors/Input
21
+ */
4
22
  export declare class InputRegistrationError extends InputError {
5
23
  readonly inputKey: string;
24
+ /**
25
+ * Creates a new instance.
26
+ *
27
+ * @param message The error message.
28
+ * @param inputKey The input key for which the error occurred.
29
+ */
6
30
  constructor(message: string, inputKey: string);
7
31
  }
32
+ /**
33
+ * Error class for input resolution errors.
34
+ * This error is thrown when an input key cannot be resolved at runtime.
35
+ * Some common reasons include invalid values found during resolution,
36
+ * or invalid references used to resolve the input key.
37
+ *
38
+ * @group Errors/Input
39
+ */
8
40
  export declare class InputResolutionError extends InputError {
9
41
  readonly inputKey: string;
42
+ /**
43
+ * Creates a new instance.
44
+ *
45
+ * @param message The error message.
46
+ * @param inputKey The input key for which the error occurred.
47
+ */
10
48
  constructor(message: string, inputKey: string);
11
49
  }
@@ -1,17 +1,55 @@
1
+ /**
2
+ * Parent error class for all input errors.
3
+ *
4
+ * @group Errors/Input
5
+ */
1
6
  export class InputError extends Error {
7
+ /**
8
+ * Creates a new instance.
9
+ *
10
+ * @param message The error message.
11
+ */
2
12
  constructor(message) {
3
13
  super(message);
4
14
  Object.setPrototypeOf(this, InputError.prototype);
5
15
  }
6
16
  }
17
+ /**
18
+ * Error class for input registration errors.
19
+ * This error is thrown when an input key cannot be registered,
20
+ * either because it has already been registered, or is not a valid input key,
21
+ * or is not a valid input value.
22
+ *
23
+ * @group Errors/Input
24
+ */
7
25
  export class InputRegistrationError extends InputError {
26
+ /**
27
+ * Creates a new instance.
28
+ *
29
+ * @param message The error message.
30
+ * @param inputKey The input key for which the error occurred.
31
+ */
8
32
  constructor(message, inputKey) {
9
33
  super(message);
10
34
  this.inputKey = inputKey;
11
35
  Object.setPrototypeOf(this, InputRegistrationError.prototype);
12
36
  }
13
37
  }
38
+ /**
39
+ * Error class for input resolution errors.
40
+ * This error is thrown when an input key cannot be resolved at runtime.
41
+ * Some common reasons include invalid values found during resolution,
42
+ * or invalid references used to resolve the input key.
43
+ *
44
+ * @group Errors/Input
45
+ */
14
46
  export class InputResolutionError extends InputError {
47
+ /**
48
+ * Creates a new instance.
49
+ *
50
+ * @param message The error message.
51
+ * @param inputKey The input key for which the error occurred.
52
+ */
15
53
  constructor(message, inputKey) {
16
54
  super(message);
17
55
  this.inputKey = inputKey;
@@ -1 +1 @@
1
- {"version":3,"file":"input.error.js","sourceRoot":"","sources":["../../src/errors/input.error.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,UAAW,SAAQ,KAAK;IACnC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IACpD,CAAC;CACF;AAED,MAAM,OAAO,sBAAuB,SAAQ,UAAU;IAGpD,YAAY,OAAe,EAAE,QAAgB;QAC3C,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAChE,CAAC;CACF;AAED,MAAM,OAAO,oBAAqB,SAAQ,UAAU;IAGlD,YAAY,OAAe,EAAE,QAAgB;QAC3C,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAC9D,CAAC;CACF"}
1
+ {"version":3,"file":"input.error.js","sourceRoot":"","sources":["../../src/errors/input.error.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK;IACnC;;;;OAIG;IACH,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IACpD,CAAC;CACF;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,sBAAuB,SAAQ,UAAU;IAGpD;;;;;OAKG;IACH,YAAY,OAAe,EAAE,QAAgB;QAC3C,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAChE,CAAC;CACF;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,oBAAqB,SAAQ,UAAU;IAGlD;;;;;OAKG;IACH,YAAY,OAAe,EAAE,QAAgB;QAC3C,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAC9D,CAAC;CACF"}
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @group Errors/Module
3
+ */
1
4
  export declare class ModuleError extends Error {
2
5
  readonly module: string;
3
6
  constructor(message: string, moduleName: string);
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @group Errors/Module
3
+ */
1
4
  export class ModuleError extends Error {
2
5
  constructor(message, moduleName) {
3
6
  super(message);
@@ -1 +1 @@
1
- {"version":3,"file":"module.error.js","sourceRoot":"","sources":["../../src/errors/module.error.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,WAAY,SAAQ,KAAK;IAGpC,YAAY,OAAe,EAAE,UAAkB;QAC7C,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC;QAEzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;CACF"}
1
+ {"version":3,"file":"module.error.js","sourceRoot":"","sources":["../../src/errors/module.error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK;IAGpC,YAAY,OAAe,EAAE,UAAkB;QAC7C,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC;QAEzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;CACF"}
@@ -2,34 +2,61 @@ import type { UnknownModel, UnknownNode, UnknownOverlay, UnknownResource } from
2
2
  import type { Dependency, IDependency } from '../functions/dependency/dependency.js';
3
3
  import type { Diff } from '../functions/diff/diff.js';
4
4
  import type { AResource } from '../resources/resource.abstract.js';
5
+ /**
6
+ * @group Errors/Node
7
+ */
5
8
  export declare class DependencyError extends Error {
6
9
  readonly dependency: IDependency;
7
10
  constructor(message: string, dependency: Dependency);
8
11
  }
12
+ /**
13
+ * @group Errors/Node
14
+ */
9
15
  export declare class NodeUnsynthError extends Error {
10
16
  readonly subject: string;
11
17
  constructor(message: string, subject: string);
12
18
  }
19
+ /**
20
+ * @group Errors/Node
21
+ */
13
22
  export declare class NodeError extends Error {
14
23
  readonly node: string;
15
24
  constructor(message: string, node: typeof AResource | UnknownNode);
16
25
  }
26
+ /**
27
+ * @group Errors/Node
28
+ */
17
29
  export declare class ContextNodeError extends NodeError {
18
30
  constructor(message: string, node: UnknownNode);
19
31
  }
32
+ /**
33
+ * @group Errors/Node
34
+ */
20
35
  export declare class ModelError extends NodeError {
21
36
  constructor(message: string, model: UnknownModel);
22
37
  }
38
+ /**
39
+ * @group Errors/Node
40
+ */
23
41
  export declare class OverlayError extends NodeError {
24
42
  constructor(message: string, overlay: UnknownOverlay);
25
43
  }
44
+ /**
45
+ * @group Errors/Node
46
+ */
26
47
  export declare class ResourceError extends NodeError {
27
48
  constructor(message: string, resource: typeof AResource | UnknownResource);
28
49
  }
50
+ /**
51
+ * @group Errors/Node
52
+ */
29
53
  export declare class DiffInverseResourceError extends ResourceError {
30
54
  readonly diff: ReturnType<Diff['toJSON']>;
31
55
  constructor(message: string, resource: UnknownResource, diff: Diff);
32
56
  }
57
+ /**
58
+ * @group Errors/Node
59
+ */
33
60
  export declare class RemoveResourceError extends ResourceError {
34
61
  readonly childrenResources: string[];
35
62
  constructor(message: string, resource: UnknownResource, childrenResources: UnknownResource[]);
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @group Errors/Node
3
+ */
1
4
  export class DependencyError extends Error {
2
5
  constructor(message, dependency) {
3
6
  super(message);
@@ -5,6 +8,9 @@ export class DependencyError extends Error {
5
8
  Object.setPrototypeOf(this, DependencyError.prototype);
6
9
  }
7
10
  }
11
+ /**
12
+ * @group Errors/Node
13
+ */
8
14
  export class NodeUnsynthError extends Error {
9
15
  constructor(message, subject) {
10
16
  super(message);
@@ -12,6 +18,9 @@ export class NodeUnsynthError extends Error {
12
18
  Object.setPrototypeOf(this, NodeUnsynthError.prototype);
13
19
  }
14
20
  }
21
+ /**
22
+ * @group Errors/Node
23
+ */
15
24
  export class NodeError extends Error {
16
25
  constructor(message, node) {
17
26
  super(message);
@@ -19,30 +28,45 @@ export class NodeError extends Error {
19
28
  Object.setPrototypeOf(this, NodeError.prototype);
20
29
  }
21
30
  }
31
+ /**
32
+ * @group Errors/Node
33
+ */
22
34
  export class ContextNodeError extends NodeError {
23
35
  constructor(message, node) {
24
36
  super(message, node);
25
37
  Object.setPrototypeOf(this, ContextNodeError.prototype);
26
38
  }
27
39
  }
40
+ /**
41
+ * @group Errors/Node
42
+ */
28
43
  export class ModelError extends NodeError {
29
44
  constructor(message, model) {
30
45
  super(message, model);
31
46
  Object.setPrototypeOf(this, ModelError.prototype);
32
47
  }
33
48
  }
49
+ /**
50
+ * @group Errors/Node
51
+ */
34
52
  export class OverlayError extends NodeError {
35
53
  constructor(message, overlay) {
36
54
  super(message, overlay);
37
55
  Object.setPrototypeOf(this, OverlayError.prototype);
38
56
  }
39
57
  }
58
+ /**
59
+ * @group Errors/Node
60
+ */
40
61
  export class ResourceError extends NodeError {
41
62
  constructor(message, resource) {
42
63
  super(message, resource);
43
64
  Object.setPrototypeOf(this, ResourceError.prototype);
44
65
  }
45
66
  }
67
+ /**
68
+ * @group Errors/Node
69
+ */
46
70
  export class DiffInverseResourceError extends ResourceError {
47
71
  constructor(message, resource, diff) {
48
72
  super(message, resource);
@@ -50,6 +74,9 @@ export class DiffInverseResourceError extends ResourceError {
50
74
  Object.setPrototypeOf(this, DiffInverseResourceError.prototype);
51
75
  }
52
76
  }
77
+ /**
78
+ * @group Errors/Node
79
+ */
53
80
  export class RemoveResourceError extends ResourceError {
54
81
  constructor(message, resource, childrenResources) {
55
82
  super(message, resource);
@@ -1 +1 @@
1
- {"version":3,"file":"node.error.js","sourceRoot":"","sources":["../../src/errors/node.error.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAGxC,YAAY,OAAe,EAAE,UAAsB;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC;QAErC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACzD,CAAC;CACF;AAED,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IAGzC,YAAY,OAAe,EAAE,OAAe;QAC1C,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC1D,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CAAC;QAEzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAE1B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAClE,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,aAAa;IAGpD,YAAY,OAAe,EAAE,QAAyB,EAAE,iBAAoC;QAC1F,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAEzB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAE,CAAC,CAAC,WAA4B,CAAC,SAAS,CAAC,CAAC;QAEjG,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC;CACF"}
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @group Errors/Schema
3
+ */
1
4
  export declare class SchemaError extends Error {
2
5
  readonly schemaClassName: string;
3
6
  constructor(message: string, schemaClassName: string);
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @group Errors/Schema
3
+ */
1
4
  export class SchemaError extends Error {
2
5
  constructor(message, schemaClassName) {
3
6
  super(message);
@@ -1 +1 @@
1
- {"version":3,"file":"schema.error.js","sourceRoot":"","sources":["../../src/errors/schema.error.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,WAAY,SAAQ,KAAK;IAGpC,YAAY,OAAe,EAAE,eAAuB;QAClD,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QAEvC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;CACF"}
1
+ {"version":3,"file":"schema.error.js","sourceRoot":"","sources":["../../src/errors/schema.error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK;IAGpC,YAAY,OAAe,EAAE,eAAuB;QAClD,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QAEvC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;CACF"}
@@ -1,34 +1,55 @@
1
1
  import type { IUnknownModelAction, UnknownResource } from '../app.type.js';
2
2
  import type { Diff } from '../functions/diff/diff.js';
3
3
  import type { ValidationService } from '../services/validation/validation.service.js';
4
+ /**
5
+ * @group Errors/Transaction
6
+ */
4
7
  export declare class TransactionError extends Error {
5
8
  constructor(message: string);
6
9
  }
10
+ /**
11
+ * @group Errors/Transaction
12
+ */
7
13
  export declare class DiffsOnDirtyResourcesTransactionError extends TransactionError {
8
14
  readonly diffs: ReturnType<Diff['toJSON']>[];
9
15
  readonly dirtyResources: UnknownResource[];
10
16
  constructor(message: string, diffs: Diff[], dirtyResources: UnknownResource[]);
11
17
  }
18
+ /**
19
+ * @group Errors/Transaction
20
+ */
12
21
  export declare class InputNotFoundTransactionError extends TransactionError {
13
22
  readonly action: string;
14
23
  readonly diff: ReturnType<Diff['toJSON']>;
15
24
  readonly key: string;
16
25
  constructor(message: string, action: IUnknownModelAction, diff: Diff, key: string);
17
26
  }
27
+ /**
28
+ * @group Errors/Transaction
29
+ */
18
30
  export declare class NoMatchingActionFoundTransactionError extends TransactionError {
19
31
  readonly diff: ReturnType<Diff['toJSON']>;
20
32
  constructor(message: string, diff: Diff);
21
33
  }
34
+ /**
35
+ * @group Errors/Transaction
36
+ */
22
37
  export declare class ResourceActionExceptionTransactionError extends TransactionError {
23
38
  readonly actionClassName: string;
24
39
  readonly diff: ReturnType<Diff['toJSON']>;
25
40
  constructor(message: string, originalError: Error, diff: Diff, actionClassName: string);
26
41
  }
42
+ /**
43
+ * @group Errors/Transaction
44
+ */
27
45
  export declare class ResourceActionTimeoutTransactionError extends TransactionError {
28
46
  readonly actionClassName: string;
29
47
  readonly diff: ReturnType<Diff['toJSON']>;
30
48
  constructor(message: string, diff: Diff, actionClassName: string);
31
49
  }
50
+ /**
51
+ * @group Errors/Transaction
52
+ */
32
53
  export declare class ValidationTransactionError extends TransactionError {
33
54
  errors: ReturnType<ValidationService['validate']>;
34
55
  constructor(message: string, errors: ReturnType<ValidationService['validate']>);
@@ -1,9 +1,15 @@
1
+ /**
2
+ * @group Errors/Transaction
3
+ */
1
4
  export class TransactionError extends Error {
2
5
  constructor(message) {
3
6
  super(message);
4
7
  Object.setPrototypeOf(this, TransactionError.prototype);
5
8
  }
6
9
  }
10
+ /**
11
+ * @group Errors/Transaction
12
+ */
7
13
  export class DiffsOnDirtyResourcesTransactionError extends TransactionError {
8
14
  constructor(message, diffs, dirtyResources) {
9
15
  super(message);
@@ -12,6 +18,9 @@ export class DiffsOnDirtyResourcesTransactionError extends TransactionError {
12
18
  Object.setPrototypeOf(this, DiffsOnDirtyResourcesTransactionError.prototype);
13
19
  }
14
20
  }
21
+ /**
22
+ * @group Errors/Transaction
23
+ */
15
24
  export class InputNotFoundTransactionError extends TransactionError {
16
25
  constructor(message, action, diff, key) {
17
26
  super(message);
@@ -21,6 +30,9 @@ export class InputNotFoundTransactionError extends TransactionError {
21
30
  Object.setPrototypeOf(this, InputNotFoundTransactionError.prototype);
22
31
  }
23
32
  }
33
+ /**
34
+ * @group Errors/Transaction
35
+ */
24
36
  export class NoMatchingActionFoundTransactionError extends TransactionError {
25
37
  constructor(message, diff) {
26
38
  super(message);
@@ -28,18 +40,23 @@ export class NoMatchingActionFoundTransactionError extends TransactionError {
28
40
  Object.setPrototypeOf(this, NoMatchingActionFoundTransactionError.prototype);
29
41
  }
30
42
  }
43
+ /**
44
+ * @group Errors/Transaction
45
+ */
31
46
  export class ResourceActionExceptionTransactionError extends TransactionError {
32
47
  constructor(message, originalError, diff, actionClassName) {
33
48
  super(message);
34
49
  this.actionClassName = actionClassName;
35
50
  this.diff = diff.toJSON();
36
51
  Object.setPrototypeOf(this, ResourceActionExceptionTransactionError.prototype);
37
- Object.defineProperties(this, Object.getOwnPropertyDescriptors(originalError));
38
- if (Error.captureStackTrace) {
39
- Error.captureStackTrace(this, this.constructor);
52
+ if (originalError?.stack) {
53
+ this.stack = `${this.stack}\n\nCaused by: ${originalError.stack}`;
40
54
  }
41
55
  }
42
56
  }
57
+ /**
58
+ * @group Errors/Transaction
59
+ */
43
60
  export class ResourceActionTimeoutTransactionError extends TransactionError {
44
61
  constructor(message, diff, actionClassName) {
45
62
  super(message);
@@ -48,6 +65,9 @@ export class ResourceActionTimeoutTransactionError extends TransactionError {
48
65
  Object.setPrototypeOf(this, ResourceActionTimeoutTransactionError.prototype);
49
66
  }
50
67
  }
68
+ /**
69
+ * @group Errors/Transaction
70
+ */
51
71
  export class ValidationTransactionError extends TransactionError {
52
72
  constructor(message, errors) {
53
73
  super(message);
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.error.js","sourceRoot":"","sources":["../../src/errors/transaction.error.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC1D,CAAC;CACF;AAED,MAAM,OAAO,qCAAsC,SAAQ,gBAAgB;IAIzE,YAAY,OAAe,EAAE,KAAa,EAAE,cAAiC;QAC3E,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;QAE3D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,qCAAqC,CAAC,SAA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CAAC;QACpE,CAAC;IACH,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,qCAAsC,SAAQ,gBAAgB;IAIzE,YAAY,OAAe,EAAE,IAAU,EAAE,eAAuB;QAC9D,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAE1B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,qCAAqC,CAAC,SAAS,CAAC,CAAC;IAC/E,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,0BAA2B,SAAQ,gBAAgB;IAG9D,YAAY,OAAe,EAAE,MAAiD;QAC5E,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC;IACpE,CAAC;CACF"}
@@ -3,7 +3,8 @@ import { Event } from './event.model.js';
3
3
  * The ActionEvent class is the superclass for all events within actions.
4
4
  * This can be used to emit log events within actions.
5
5
  *
6
- * @group Events
6
+ * @group Events/Action
7
+ *
7
8
  * @returns The Event instance.
8
9
  */
9
10
  export declare class ActionEvent extends Event<{
@@ -3,7 +3,8 @@ import { Event } from './event.model.js';
3
3
  * The ActionEvent class is the superclass for all events within actions.
4
4
  * This can be used to emit log events within actions.
5
5
  *
6
- * @group Events
6
+ * @group Events/Action
7
+ *
7
8
  * @returns The Event instance.
8
9
  */
9
10
  export class ActionEvent extends Event {
@@ -1 +1 @@
1
- {"version":3,"file":"action.event.js","sourceRoot":"","sources":["../../src/events/action.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,OAAO,WAAY,SAAQ,KAA6D;CAAG"}
1
+ {"version":3,"file":"action.event.js","sourceRoot":"","sources":["../../src/events/action.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,OAAO,WAAY,SAAQ,KAA6D;CAAG"}
@@ -9,15 +9,17 @@ import type { EventService } from '../services/event/event.service.js';
9
9
  * const myEvent = new Event<{ value: string }>('event name', { value: 'my payload' });
10
10
  * EventService.getInstance().emit(myEvent);
11
11
  * ```
12
+ *
12
13
  * @group Events
14
+ *
13
15
  * @returns The Event instance.
14
16
  */
15
- export declare class Event<T> {
17
+ export declare class Event<T = undefined> {
16
18
  readonly header: {
17
19
  timestamp: number;
18
20
  };
19
- readonly name: string | undefined;
20
- readonly payload: T | undefined;
21
+ readonly name: string;
22
+ readonly payload: T;
21
23
  constructor(name?: string, payload?: T);
22
24
  /**
23
25
  * The `registrar()` method is explicitly called by the {@link EventSource} decorator for a method