@loopstack/common 0.18.0 → 0.19.0-rc.0

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 (233) hide show
  1. package/dist/constants/auth.constants.d.ts +1 -0
  2. package/dist/constants/auth.constants.d.ts.map +1 -0
  3. package/dist/constants/auth.constants.js +1 -0
  4. package/dist/constants/auth.constants.js.map +1 -0
  5. package/dist/constants/index.d.ts +1 -0
  6. package/dist/constants/index.d.ts.map +1 -0
  7. package/dist/constants/index.js +1 -0
  8. package/dist/constants/index.js.map +1 -0
  9. package/dist/decorators/ai-provider.decorator.d.ts +1 -0
  10. package/dist/decorators/ai-provider.decorator.d.ts.map +1 -0
  11. package/dist/decorators/ai-provider.decorator.js +1 -0
  12. package/dist/decorators/ai-provider.decorator.js.map +1 -0
  13. package/dist/decorators/block.decorator.d.ts +30 -19
  14. package/dist/decorators/block.decorator.d.ts.map +1 -0
  15. package/dist/decorators/block.decorator.js +59 -74
  16. package/dist/decorators/block.decorator.js.map +1 -0
  17. package/dist/decorators/capability-decorator.d.ts +1 -0
  18. package/dist/decorators/capability-decorator.d.ts.map +1 -0
  19. package/dist/decorators/capability-decorator.js +1 -0
  20. package/dist/decorators/capability-decorator.js.map +1 -0
  21. package/dist/decorators/current-user.decorator.d.ts +1 -0
  22. package/dist/decorators/current-user.decorator.d.ts.map +1 -0
  23. package/dist/decorators/current-user.decorator.js +1 -0
  24. package/dist/decorators/current-user.decorator.js.map +1 -0
  25. package/dist/decorators/index.d.ts +1 -0
  26. package/dist/decorators/index.d.ts.map +1 -0
  27. package/dist/decorators/index.js +1 -0
  28. package/dist/decorators/index.js.map +1 -0
  29. package/dist/decorators/public.decorator.d.ts +1 -0
  30. package/dist/decorators/public.decorator.d.ts.map +1 -0
  31. package/dist/decorators/public.decorator.js +1 -0
  32. package/dist/decorators/public.decorator.js.map +1 -0
  33. package/dist/decorators/roles.decorator.d.ts +1 -0
  34. package/dist/decorators/roles.decorator.d.ts.map +1 -0
  35. package/dist/decorators/roles.decorator.js +1 -0
  36. package/dist/decorators/roles.decorator.js.map +1 -0
  37. package/dist/decorators/state-machine-validator.decorator.d.ts +1 -0
  38. package/dist/decorators/state-machine-validator.decorator.d.ts.map +1 -0
  39. package/dist/decorators/state-machine-validator.decorator.js +1 -0
  40. package/dist/decorators/state-machine-validator.decorator.js.map +1 -0
  41. package/dist/dtos/block-execution-context.dto.d.ts +38 -0
  42. package/dist/dtos/block-execution-context.dto.d.ts.map +1 -0
  43. package/dist/dtos/block-execution-context.dto.js +58 -0
  44. package/dist/dtos/block-execution-context.dto.js.map +1 -0
  45. package/dist/dtos/execution-context.d.ts +14 -0
  46. package/dist/dtos/execution-context.d.ts.map +1 -0
  47. package/dist/dtos/execution-context.js +16 -0
  48. package/dist/dtos/execution-context.js.map +1 -0
  49. package/dist/dtos/index.d.ts +5 -0
  50. package/dist/dtos/index.d.ts.map +1 -0
  51. package/dist/dtos/index.js +21 -0
  52. package/dist/dtos/index.js.map +1 -0
  53. package/dist/dtos/workflow-state.dto.d.ts +35 -0
  54. package/dist/dtos/workflow-state.dto.d.ts.map +1 -0
  55. package/dist/dtos/workflow-state.dto.js +58 -0
  56. package/dist/dtos/workflow-state.dto.js.map +1 -0
  57. package/dist/dtos/workflow-transition.dto.d.ts +10 -0
  58. package/dist/dtos/workflow-transition.dto.d.ts.map +1 -0
  59. package/dist/dtos/workflow-transition.dto.js +15 -0
  60. package/dist/dtos/workflow-transition.dto.js.map +1 -0
  61. package/dist/entities/document.entity.d.ts +1 -0
  62. package/dist/entities/document.entity.d.ts.map +1 -0
  63. package/dist/entities/document.entity.js +1 -0
  64. package/dist/entities/document.entity.js.map +1 -0
  65. package/dist/entities/event-subscriber.entity.d.ts +1 -0
  66. package/dist/entities/event-subscriber.entity.d.ts.map +1 -0
  67. package/dist/entities/event-subscriber.entity.js +1 -0
  68. package/dist/entities/event-subscriber.entity.js.map +1 -0
  69. package/dist/entities/index.d.ts +1 -0
  70. package/dist/entities/index.d.ts.map +1 -0
  71. package/dist/entities/index.js +1 -0
  72. package/dist/entities/index.js.map +1 -0
  73. package/dist/entities/namespace.entity.d.ts +1 -0
  74. package/dist/entities/namespace.entity.d.ts.map +1 -0
  75. package/dist/entities/namespace.entity.js +1 -0
  76. package/dist/entities/namespace.entity.js.map +1 -0
  77. package/dist/entities/permission.entity.d.ts +1 -0
  78. package/dist/entities/permission.entity.d.ts.map +1 -0
  79. package/dist/entities/permission.entity.js +1 -0
  80. package/dist/entities/permission.entity.js.map +1 -0
  81. package/dist/entities/pipeline.entity.d.ts +1 -0
  82. package/dist/entities/pipeline.entity.d.ts.map +1 -0
  83. package/dist/entities/pipeline.entity.js +1 -0
  84. package/dist/entities/pipeline.entity.js.map +1 -0
  85. package/dist/entities/role.entity.d.ts +1 -0
  86. package/dist/entities/role.entity.d.ts.map +1 -0
  87. package/dist/entities/role.entity.js +1 -0
  88. package/dist/entities/role.entity.js.map +1 -0
  89. package/dist/entities/user.entity.d.ts +1 -0
  90. package/dist/entities/user.entity.d.ts.map +1 -0
  91. package/dist/entities/user.entity.js +1 -0
  92. package/dist/entities/user.entity.js.map +1 -0
  93. package/dist/entities/workflow.entity.d.ts +1 -0
  94. package/dist/entities/workflow.entity.d.ts.map +1 -0
  95. package/dist/entities/workflow.entity.js +2 -1
  96. package/dist/entities/workflow.entity.js.map +1 -0
  97. package/dist/entities/workspace.entity.d.ts +1 -0
  98. package/dist/entities/workspace.entity.d.ts.map +1 -0
  99. package/dist/entities/workspace.entity.js +1 -0
  100. package/dist/entities/workspace.entity.js.map +1 -0
  101. package/dist/enums/index.d.ts +1 -0
  102. package/dist/enums/index.d.ts.map +1 -0
  103. package/dist/enums/index.js +1 -0
  104. package/dist/enums/index.js.map +1 -0
  105. package/dist/enums/pipeline-state.d.ts +1 -0
  106. package/dist/enums/pipeline-state.d.ts.map +1 -0
  107. package/dist/enums/pipeline-state.js +1 -0
  108. package/dist/enums/pipeline-state.js.map +1 -0
  109. package/dist/enums/user-type.enum.d.ts +1 -0
  110. package/dist/enums/user-type.enum.d.ts.map +1 -0
  111. package/dist/enums/user-type.enum.js +1 -0
  112. package/dist/enums/user-type.enum.js.map +1 -0
  113. package/dist/enums/workflow-state.enum.d.ts +1 -0
  114. package/dist/enums/workflow-state.enum.d.ts.map +1 -0
  115. package/dist/enums/workflow-state.enum.js +1 -0
  116. package/dist/enums/workflow-state.enum.js.map +1 -0
  117. package/dist/index.d.ts +2 -0
  118. package/dist/index.d.ts.map +1 -0
  119. package/dist/index.js +2 -0
  120. package/dist/index.js.map +1 -0
  121. package/dist/interfaces/ai-provider.interface.d.ts +1 -0
  122. package/dist/interfaces/ai-provider.interface.d.ts.map +1 -0
  123. package/dist/interfaces/ai-provider.interface.js +1 -0
  124. package/dist/interfaces/ai-provider.interface.js.map +1 -0
  125. package/dist/interfaces/block-context.type.d.ts +3 -0
  126. package/dist/interfaces/block-context.type.d.ts.map +1 -0
  127. package/dist/interfaces/block-context.type.js +3 -0
  128. package/dist/interfaces/block-context.type.js.map +1 -0
  129. package/dist/interfaces/block.interface.d.ts +12 -5
  130. package/dist/interfaces/block.interface.d.ts.map +1 -0
  131. package/dist/interfaces/block.interface.js +1 -0
  132. package/dist/interfaces/block.interface.js.map +1 -0
  133. package/dist/interfaces/current-user.interface.d.ts +1 -0
  134. package/dist/interfaces/current-user.interface.d.ts.map +1 -0
  135. package/dist/interfaces/current-user.interface.js +1 -0
  136. package/dist/interfaces/current-user.interface.js.map +1 -0
  137. package/dist/interfaces/handler.interface.d.ts +1 -0
  138. package/dist/interfaces/handler.interface.d.ts.map +1 -0
  139. package/dist/interfaces/handler.interface.js +1 -0
  140. package/dist/interfaces/handler.interface.js.map +1 -0
  141. package/dist/interfaces/index.d.ts +7 -0
  142. package/dist/interfaces/index.d.ts.map +1 -0
  143. package/dist/interfaces/index.js +7 -0
  144. package/dist/interfaces/index.js.map +1 -0
  145. package/dist/interfaces/jwt-payload.interface.d.ts +1 -0
  146. package/dist/interfaces/jwt-payload.interface.d.ts.map +1 -0
  147. package/dist/interfaces/jwt-payload.interface.js +1 -0
  148. package/dist/interfaces/jwt-payload.interface.js.map +1 -0
  149. package/dist/interfaces/permission.interface.d.ts +1 -0
  150. package/dist/interfaces/permission.interface.d.ts.map +1 -0
  151. package/dist/interfaces/permission.interface.js +1 -0
  152. package/dist/interfaces/permission.interface.js.map +1 -0
  153. package/dist/interfaces/persistence-state.interface.d.ts +4 -0
  154. package/dist/interfaces/persistence-state.interface.d.ts.map +1 -0
  155. package/dist/interfaces/persistence-state.interface.js +3 -0
  156. package/dist/interfaces/persistence-state.interface.js.map +1 -0
  157. package/dist/interfaces/role.interface.d.ts +1 -0
  158. package/dist/interfaces/role.interface.d.ts.map +1 -0
  159. package/dist/interfaces/role.interface.js +1 -0
  160. package/dist/interfaces/role.interface.js.map +1 -0
  161. package/dist/interfaces/sso-response.interface.d.ts +1 -0
  162. package/dist/interfaces/sso-response.interface.d.ts.map +1 -0
  163. package/dist/interfaces/sso-response.interface.js +1 -0
  164. package/dist/interfaces/sso-response.interface.js.map +1 -0
  165. package/dist/interfaces/sso-validate-code.interface.d.ts +1 -0
  166. package/dist/interfaces/sso-validate-code.interface.d.ts.map +1 -0
  167. package/dist/interfaces/sso-validate-code.interface.js +1 -0
  168. package/dist/interfaces/sso-validate-code.interface.js.map +1 -0
  169. package/dist/interfaces/state-machine-validator-result.interface.d.ts +1 -0
  170. package/dist/interfaces/state-machine-validator-result.interface.d.ts.map +1 -0
  171. package/dist/interfaces/state-machine-validator-result.interface.js +1 -0
  172. package/dist/interfaces/state-machine-validator-result.interface.js.map +1 -0
  173. package/dist/interfaces/state-machine-validator.interface.d.ts +1 -0
  174. package/dist/interfaces/state-machine-validator.interface.d.ts.map +1 -0
  175. package/dist/interfaces/state-machine-validator.interface.js +1 -0
  176. package/dist/interfaces/state-machine-validator.interface.js.map +1 -0
  177. package/dist/interfaces/transition-results.types.d.ts +1 -0
  178. package/dist/interfaces/transition-results.types.d.ts.map +1 -0
  179. package/dist/interfaces/transition-results.types.js +1 -0
  180. package/dist/interfaces/transition-results.types.js.map +1 -0
  181. package/dist/interfaces/user.interface.d.ts +1 -0
  182. package/dist/interfaces/user.interface.d.ts.map +1 -0
  183. package/dist/interfaces/user.interface.js +1 -0
  184. package/dist/interfaces/user.interface.js.map +1 -0
  185. package/dist/interfaces/workflow-execution.interface.d.ts +11 -0
  186. package/dist/interfaces/workflow-execution.interface.d.ts.map +1 -0
  187. package/dist/interfaces/workflow-execution.interface.js +3 -0
  188. package/dist/interfaces/workflow-execution.interface.js.map +1 -0
  189. package/dist/interfaces/workflow-memento-data.interfate.d.ts +8 -0
  190. package/dist/interfaces/workflow-memento-data.interfate.d.ts.map +1 -0
  191. package/dist/interfaces/workflow-memento-data.interfate.js +3 -0
  192. package/dist/interfaces/workflow-memento-data.interfate.js.map +1 -0
  193. package/dist/interfaces/workflow-metadata.interface.d.ts +9 -0
  194. package/dist/interfaces/workflow-metadata.interface.d.ts.map +1 -0
  195. package/dist/interfaces/workflow-metadata.interface.js +3 -0
  196. package/dist/interfaces/workflow-metadata.interface.js.map +1 -0
  197. package/dist/interfaces/workflow-state.interface.d.ts +18 -0
  198. package/dist/interfaces/workflow-state.interface.d.ts.map +1 -0
  199. package/dist/interfaces/workflow-state.interface.js +3 -0
  200. package/dist/interfaces/workflow-state.interface.js.map +1 -0
  201. package/dist/utils/block-config.builder.d.ts +2 -1
  202. package/dist/utils/block-config.builder.d.ts.map +1 -0
  203. package/dist/utils/block-config.builder.js +1 -0
  204. package/dist/utils/block-config.builder.js.map +1 -0
  205. package/dist/utils/block-metadata.utils.d.ts +26 -0
  206. package/dist/utils/block-metadata.utils.d.ts.map +1 -0
  207. package/dist/utils/block-metadata.utils.js +104 -0
  208. package/dist/utils/block-metadata.utils.js.map +1 -0
  209. package/dist/utils/create-hash.util.d.ts +1 -0
  210. package/dist/utils/create-hash.util.d.ts.map +1 -0
  211. package/dist/utils/create-hash.util.js +1 -0
  212. package/dist/utils/create-hash.util.js.map +1 -0
  213. package/dist/utils/index.d.ts +2 -0
  214. package/dist/utils/index.d.ts.map +1 -0
  215. package/dist/utils/index.js +2 -0
  216. package/dist/utils/index.js.map +1 -0
  217. package/dist/utils/normalize-deep-serialize.util.d.ts +1 -0
  218. package/dist/utils/normalize-deep-serialize.util.d.ts.map +1 -0
  219. package/dist/utils/normalize-deep-serialize.util.js +2 -4
  220. package/dist/utils/normalize-deep-serialize.util.js.map +1 -0
  221. package/dist/utils/normalize-object.d.ts +1 -0
  222. package/dist/utils/normalize-object.d.ts.map +1 -0
  223. package/dist/utils/normalize-object.js +1 -0
  224. package/dist/utils/normalize-object.js.map +1 -0
  225. package/dist/utils/object-fingerprint.util.d.ts +1 -0
  226. package/dist/utils/object-fingerprint.util.d.ts.map +1 -0
  227. package/dist/utils/object-fingerprint.util.js +1 -0
  228. package/dist/utils/object-fingerprint.util.js.map +1 -0
  229. package/dist/utils/stable-json-transformer.d.ts +1 -0
  230. package/dist/utils/stable-json-transformer.d.ts.map +1 -0
  231. package/dist/utils/stable-json-transformer.js +1 -0
  232. package/dist/utils/stable-json-transformer.js.map +1 -0
  233. package/package.json +8 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"current-user.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/current-user.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=current-user.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"current-user.interface.js","sourceRoot":"","sources":["../../src/interfaces/current-user.interface.ts"],"names":[],"mappings":""}
@@ -9,3 +9,4 @@ export type ToolResult<TData = any> = {
9
9
  error?: string;
10
10
  effects?: ToolSideEffects;
11
11
  };
12
+ //# sourceMappingURL=handler.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/handler.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,WAAW,eAAe;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,cAAc,EAAE,CAAC;CACzC;AAED,MAAM,MAAM,UAAU,CAAC,KAAK,GAAG,GAAG,IAAI;IACpC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACjC,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=handler.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.interface.js","sourceRoot":"","sources":["../../src/interfaces/handler.interface.ts"],"names":[],"mappings":""}
@@ -11,3 +11,10 @@ export * from './sso-response.interface.js';
11
11
  export * from './state-machine-validator-result.interface.js';
12
12
  export * from './jwt-payload.interface.js';
13
13
  export * from './current-user.interface.js';
14
+ export * from './persistence-state.interface.js';
15
+ export * from './block-context.type.js';
16
+ export * from './workflow-execution.interface.js';
17
+ export * from './workflow-memento-data.interfate.js';
18
+ export * from './workflow-metadata.interface.js';
19
+ export * from './workflow-state.interface.js';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC"}
@@ -27,3 +27,10 @@ __exportStar(require("./sso-response.interface.js"), exports);
27
27
  __exportStar(require("./state-machine-validator-result.interface.js"), exports);
28
28
  __exportStar(require("./jwt-payload.interface.js"), exports);
29
29
  __exportStar(require("./current-user.interface.js"), exports);
30
+ __exportStar(require("./persistence-state.interface.js"), exports);
31
+ __exportStar(require("./block-context.type.js"), exports);
32
+ __exportStar(require("./workflow-execution.interface.js"), exports);
33
+ __exportStar(require("./workflow-memento-data.interfate.js"), exports);
34
+ __exportStar(require("./workflow-metadata.interface.js"), exports);
35
+ __exportStar(require("./workflow-state.interface.js"), exports);
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yEAAuD;AACvD,yDAAuC;AACvC,4DAA0C;AAC1C,sDAAoC;AACpC,sDAAoC;AACpC,6DAA2C;AAC3C,uDAAqC;AACrC,gEAA8C;AAC9C,mEAAiD;AACjD,8DAA4C;AAC5C,gFAA8D;AAC9D,6DAA2C;AAC3C,8DAA4C;AAC5C,mEAAiD;AACjD,0DAAwC;AACxC,oEAAkD;AAClD,uEAAqD;AACrD,mEAAiD;AACjD,gEAA8C"}
@@ -7,3 +7,4 @@ export interface JwtPayloadInterface {
7
7
  iat?: number;
8
8
  exp?: number;
9
9
  }
10
+ //# sourceMappingURL=jwt-payload.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jwt-payload.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/jwt-payload.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=jwt-payload.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jwt-payload.interface.js","sourceRoot":"","sources":["../../src/interfaces/jwt-payload.interface.ts"],"names":[],"mappings":""}
@@ -5,3 +5,4 @@ export interface PermissionInterface {
5
5
  action: string;
6
6
  description?: string;
7
7
  }
8
+ //# sourceMappingURL=permission.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/permission.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=permission.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission.interface.js","sourceRoot":"","sources":["../../src/interfaces/permission.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface PersistenceState {
2
+ documentsUpdated: boolean;
3
+ }
4
+ //# sourceMappingURL=persistence-state.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"persistence-state.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/persistence-state.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,OAAO,CAAC;CAC3B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=persistence-state.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"persistence-state.interface.js","sourceRoot":"","sources":["../../src/interfaces/persistence-state.interface.ts"],"names":[],"mappings":""}
@@ -5,3 +5,4 @@ export interface RoleInterface {
5
5
  description?: string;
6
6
  permissions: PermissionInterface[];
7
7
  }
8
+ //# sourceMappingURL=role.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/role.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,mBAAmB,EAAE,CAAC;CACpC"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=role.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role.interface.js","sourceRoot":"","sources":["../../src/interfaces/role.interface.ts"],"names":[],"mappings":""}
@@ -20,3 +20,4 @@ export interface IErrorResponse {
20
20
  timestamp: Date;
21
21
  correlationId?: string;
22
22
  }
23
+ //# sourceMappingURL=sso-response.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sso-response.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/sso-response.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,GAAG;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,0BAA0B,CAAC,CAAC;AAE7E,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;AAEhE,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sso-response.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sso-response.interface.js","sourceRoot":"","sources":["../../src/interfaces/sso-response.interface.ts"],"names":[],"mappings":""}
@@ -2,3 +2,4 @@ export interface SsoValidateCodeInterface {
2
2
  code: string;
3
3
  clientId: string;
4
4
  }
5
+ //# sourceMappingURL=sso-validate-code.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sso-validate-code.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/sso-validate-code.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sso-validate-code.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sso-validate-code.interface.js","sourceRoot":"","sources":["../../src/interfaces/sso-validate-code.interface.ts"],"names":[],"mappings":""}
@@ -2,3 +2,4 @@ export interface StateMachineValidatorResultInterface {
2
2
  valid: boolean;
3
3
  hashRecordUpdates: Record<string, string>;
4
4
  }
5
+ //# sourceMappingURL=state-machine-validator-result.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state-machine-validator-result.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/state-machine-validator-result.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oCAAoC;IACnD,KAAK,EAAE,OAAO,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3C"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=state-machine-validator-result.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state-machine-validator-result.interface.js","sourceRoot":"","sources":["../../src/interfaces/state-machine-validator-result.interface.ts"],"names":[],"mappings":""}
@@ -6,3 +6,4 @@ export interface StateMachineValidatorInterface {
6
6
  hash?: string;
7
7
  };
8
8
  }
9
+ //# sourceMappingURL=state-machine-validator.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state-machine-validator.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/state-machine-validator.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CACN,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GACpC;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACvD"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=state-machine-validator.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state-machine-validator.interface.js","sourceRoot":"","sources":["../../src/interfaces/state-machine-validator.interface.ts"],"names":[],"mappings":""}
@@ -4,3 +4,4 @@ export type ToolResultLookup = Record<string, ToolResult>;
4
4
  export type TransitionResultLookup = Record<string, {
5
5
  toolResults: ToolResultLookup;
6
6
  }>;
7
+ //# sourceMappingURL=transition-results.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transition-results.types.d.ts","sourceRoot":"","sources":["../../src/interfaces/transition-results.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEnD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG,MAAM,CACzC,MAAM,EACN;IACE,WAAW,EAAE,gBAAgB,CAAC;CAC/B,CACF,CAAC"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=transition-results.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transition-results.types.js","sourceRoot":"","sources":["../../src/interfaces/transition-results.types.ts"],"names":[],"mappings":""}
@@ -10,3 +10,4 @@ export interface UserInterface {
10
10
  createdAt: Date;
11
11
  updatedAt: Date;
12
12
  }
13
+ //# sourceMappingURL=user.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/user.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.interface.js","sourceRoot":"","sources":["../../src/interfaces/user.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { BlockExecutionContextDto, ExecutionContext } from '../dtos';
3
+ import { WorkflowEntity } from '../entities';
4
+ import { WorkflowStateInterface } from './workflow-state.interface';
5
+ export interface WorkflowExecution<TData extends z.ZodType = z.ZodObject> {
6
+ readonly context: BlockExecutionContextDto;
7
+ state: WorkflowStateInterface<TData>;
8
+ runtime: ExecutionContext;
9
+ entity: WorkflowEntity;
10
+ }
11
+ //# sourceMappingURL=workflow-execution.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-execution.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/workflow-execution.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,WAAW,iBAAiB,CAAC,KAAK,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,SAAS;IACtE,QAAQ,CAAC,OAAO,EAAE,wBAAwB,CAAC;IAC3C,KAAK,EAAE,sBAAsB,CAAC,KAAK,CAAC,CAAC;IACrC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,EAAE,cAAc,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=workflow-execution.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-execution.interface.js","sourceRoot":"","sources":["../../src/interfaces/workflow-execution.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { WorkflowMetadataInterface } from './workflow-metadata.interface';
2
+ export interface WorkflowMementoData<TData> {
3
+ data: Readonly<TData>;
4
+ metadata: Readonly<WorkflowMetadataInterface>;
5
+ timestamp: Date;
6
+ version: number;
7
+ }
8
+ //# sourceMappingURL=workflow-memento-data.interfate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-memento-data.interfate.d.ts","sourceRoot":"","sources":["../../src/interfaces/workflow-memento-data.interfate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,MAAM,WAAW,mBAAmB,CAAC,KAAK;IACxC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtB,QAAQ,EAAE,QAAQ,CAAC,yBAAyB,CAAC,CAAC;IAC9C,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=workflow-memento-data.interfate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-memento-data.interfate.js","sourceRoot":"","sources":["../../src/interfaces/workflow-memento-data.interfate.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { HistoryTransition } from '@loopstack/contracts/types';
2
+ import { DocumentEntity } from '../entities';
3
+ export interface WorkflowMetadataInterface {
4
+ documents: DocumentEntity[];
5
+ place: string;
6
+ tools: Record<string, any>;
7
+ transition?: HistoryTransition;
8
+ }
9
+ //# sourceMappingURL=workflow-metadata.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-metadata.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/workflow-metadata.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=workflow-metadata.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-metadata.interface.js","sourceRoot":"","sources":["../../src/interfaces/workflow-metadata.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ import { WorkflowMementoData } from './workflow-memento-data.interfate';
3
+ import { WorkflowMetadataInterface } from './workflow-metadata.interface';
4
+ export interface WorkflowStateInterface<TData extends z.ZodType, TInferred = z.infer<TData>> {
5
+ get<K extends keyof TInferred>(key: K): TInferred[K];
6
+ set<K extends keyof TInferred>(key: K, value: TInferred[K]): void;
7
+ update(partial: Partial<TInferred>): void;
8
+ getAll(): Readonly<TInferred>;
9
+ getAllMetadata(): Readonly<WorkflowMetadataInterface>;
10
+ getMetadata<K extends keyof WorkflowMetadataInterface>(key: K): WorkflowMetadataInterface[K];
11
+ setMetadata<K extends keyof WorkflowMetadataInterface>(key: K, value: WorkflowMetadataInterface[K]): void;
12
+ updateMetadata(partial: Partial<WorkflowMetadataInterface>): void;
13
+ checkpoint(): void;
14
+ serialize(): WorkflowMementoData<TInferred>[];
15
+ getHistory(): WorkflowMementoData<TInferred>[];
16
+ restoreToLatest(): boolean;
17
+ }
18
+ //# sourceMappingURL=workflow-state.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-state.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/workflow-state.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,MAAM,WAAW,sBAAsB,CAAC,KAAK,SAAS,CAAC,CAAC,OAAO,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;IACzF,GAAG,CAAC,CAAC,SAAS,MAAM,SAAS,EAAE,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;IACrD,GAAG,CAAC,CAAC,SAAS,MAAM,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAClE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAC1C,MAAM,IAAI,QAAQ,CAAC,SAAS,CAAC,CAAC;IAE9B,cAAc,IAAI,QAAQ,CAAC,yBAAyB,CAAC,CAAC;IACtD,WAAW,CAAC,CAAC,SAAS,MAAM,yBAAyB,EAAE,GAAG,EAAE,CAAC,GAAG,yBAAyB,CAAC,CAAC,CAAC,CAAC;IAC7F,WAAW,CAAC,CAAC,SAAS,MAAM,yBAAyB,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,yBAAyB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAC1G,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC;IAElE,UAAU,IAAI,IAAI,CAAC;IACnB,SAAS,IAAI,mBAAmB,CAAC,SAAS,CAAC,EAAE,CAAC;IAC9C,UAAU,IAAI,mBAAmB,CAAC,SAAS,CAAC,EAAE,CAAC;IAC/C,eAAe,IAAI,OAAO,CAAC;CAC5B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=workflow-state.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-state.interface.js","sourceRoot":"","sources":["../../src/interfaces/workflow-state.interface.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  import { BlockConfigType } from '@loopstack/contracts/types';
2
- import { BlockOptions } from '../interfaces';
2
+ import { BlockOptions } from '../decorators';
3
3
  export declare function buildConfig(options: BlockOptions, type?: string): BlockConfigType;
4
+ //# sourceMappingURL=block-config.builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-config.builder.d.ts","sourceRoot":"","sources":["../../src/utils/block-config.builder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAA8B,MAAM,4BAA4B,CAAC;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe,CAuBjF"}
@@ -37,3 +37,4 @@ function loadConfigFile(filePath) {
37
37
  config,
38
38
  };
39
39
  }
40
+ //# sourceMappingURL=block-config.builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-config.builder.js","sourceRoot":"","sources":["../../src/utils/block-config.builder.ts"],"names":[],"mappings":";;;;;AAMA,kCAuBC;AA7BD,4CAAoB;AACpB,gDAAwB;AACxB,+BAA6B;AAI7B,SAAgB,WAAW,CAAC,OAAqB,EAAE,IAAa;IAC9D,MAAM,UAAU,GAA6B;QAC3C,GAAG,OAAO,CAAC,MAAM;KAClB,CAAC;IAEF,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,MAAM,YAAY,GAAG,cAAc,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,gCAAgC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;QACxE,CAAC;QAED,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,IAAI,EAAE,CAAC;QACT,UAAU,CAAC,IAAI,GAAG,IAA+B,CAAC;IACpD,CAAC;IAED,OAAO;QACL,IAAI,EAAE,UAAU,CAAC,IAAI,IAAI,WAAW;QACpC,WAAW,EAAE,UAAU,CAAC,WAAW,IAAI,EAAE;QACzC,GAAG,UAAU;KACK,CAAC;AACvB,CAAC;AAED,SAAS,cAAc,CAAC,QAAgB;IACtC,MAAM,GAAG,GAAG,YAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAE9C,MAAM,MAAM,GAAG,IAAA,YAAK,EAAC,GAAG,CAA6B,CAAC;IAEtD,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,cAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACrC,GAAG;QACH,MAAM;KACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ import { BlockConfigType } from '@loopstack/contracts/dist/types';
3
+ import { BlockOptions } from '../decorators';
4
+ type Constructor = Function & {
5
+ prototype: object;
6
+ };
7
+ export declare function getBlockConfig<T = BlockConfigType>(target: object | Constructor): T | undefined;
8
+ export declare function getBlockOptions(target: object | Constructor): BlockOptions | undefined;
9
+ export declare function getBlockTools(target: object | Constructor): string[];
10
+ export declare function getBlockDocuments(target: object | Constructor): string[];
11
+ export declare function getBlockWorkflows(target: object | Constructor): string[];
12
+ export declare function getBlockHelpers(target: object | Constructor): string[];
13
+ export declare function getBlockArgsSchema(target: object | Constructor): z.ZodType | undefined;
14
+ export declare function getBlockStateSchema(target: object | Constructor): z.ZodType | undefined;
15
+ export declare function getBlockResultSchema(target: object | Constructor): z.ZodType | undefined;
16
+ export declare function getBlockWorkflow<T = unknown>(target: object, name: string): T | undefined;
17
+ export declare function getBlockTool<T = unknown>(target: object, name: string): T | undefined;
18
+ export declare function getBlockDocument<T = unknown>(target: object, name: string): T | undefined;
19
+ export declare function getBlockHelper(target: object, name: string): ((...args: unknown[]) => unknown) | undefined;
20
+ export interface TemplateHelper {
21
+ name: string;
22
+ fn: (...args: unknown[]) => unknown;
23
+ }
24
+ export declare function getBlockTemplateHelpers(target: object): TemplateHelper[];
25
+ export {};
26
+ //# sourceMappingURL=block-metadata.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-metadata.utils.d.ts","sourceRoot":"","sources":["../../src/utils/block-metadata.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAGL,YAAY,EAOb,MAAM,eAAe,CAAC;AAIvB,KAAK,WAAW,GAAG,QAAQ,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAyBF,w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,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,GAAG,SAAS,CAK1G;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;CACrC;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,EAAE,CAcxE"}
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBlockConfig = getBlockConfig;
4
+ exports.getBlockOptions = getBlockOptions;
5
+ exports.getBlockTools = getBlockTools;
6
+ exports.getBlockDocuments = getBlockDocuments;
7
+ exports.getBlockWorkflows = getBlockWorkflows;
8
+ exports.getBlockHelpers = getBlockHelpers;
9
+ exports.getBlockArgsSchema = getBlockArgsSchema;
10
+ exports.getBlockStateSchema = getBlockStateSchema;
11
+ exports.getBlockResultSchema = getBlockResultSchema;
12
+ exports.getBlockWorkflow = getBlockWorkflow;
13
+ exports.getBlockTool = getBlockTool;
14
+ exports.getBlockDocument = getBlockDocument;
15
+ exports.getBlockHelper = getBlockHelper;
16
+ exports.getBlockTemplateHelpers = getBlockTemplateHelpers;
17
+ const decorators_1 = require("../decorators");
18
+ const block_config_builder_js_1 = require("./block-config.builder.js");
19
+ function getConstructor(target) {
20
+ if (typeof target === 'function') {
21
+ return target;
22
+ }
23
+ return target.constructor;
24
+ }
25
+ function getPrototype(target) {
26
+ if (typeof target === 'function') {
27
+ return target.prototype;
28
+ }
29
+ return Object.getPrototypeOf(target);
30
+ }
31
+ function getBlockConfig(target) {
32
+ const ctor = getConstructor(target);
33
+ const options = Reflect.getMetadata(decorators_1.BLOCK_CONFIG_METADATA_KEY, ctor);
34
+ return options ? (0, block_config_builder_js_1.buildConfig)(options) : undefined;
35
+ }
36
+ function getBlockOptions(target) {
37
+ const ctor = getConstructor(target);
38
+ return Reflect.getMetadata(decorators_1.BLOCK_CONFIG_METADATA_KEY, ctor);
39
+ }
40
+ function getBlockTools(target) {
41
+ const proto = getPrototype(target);
42
+ const keys = Reflect.getMetadata(decorators_1.INJECTED_TOOLS_METADATA_KEY, proto) ?? [];
43
+ return keys.map((key) => String(key));
44
+ }
45
+ function getBlockDocuments(target) {
46
+ const proto = getPrototype(target);
47
+ const keys = Reflect.getMetadata(decorators_1.INJECTED_DOCUMENTS_METADATA_KEY, proto) ?? [];
48
+ return keys.map((key) => String(key));
49
+ }
50
+ function getBlockWorkflows(target) {
51
+ const proto = getPrototype(target);
52
+ const keys = Reflect.getMetadata(decorators_1.INJECTED_WORKFLOWS_METADATA_KEY, proto) ?? [];
53
+ return keys.map((key) => String(key));
54
+ }
55
+ function getBlockHelpers(target) {
56
+ const proto = getPrototype(target);
57
+ const keys = Reflect.getMetadata(decorators_1.TEMPLATE_HELPER_METADATA_KEY, proto) ?? [];
58
+ return keys.map((key) => String(key));
59
+ }
60
+ function getBlockArgsSchema(target) {
61
+ const ctor = getConstructor(target);
62
+ return Reflect.getMetadata(decorators_1.ARGS_SCHEMA_METADATA_KEY, ctor);
63
+ }
64
+ function getBlockStateSchema(target) {
65
+ const ctor = getConstructor(target);
66
+ return Reflect.getMetadata(decorators_1.STATE_SCHEMA_METADATA_KEY, ctor);
67
+ }
68
+ function getBlockResultSchema(target) {
69
+ const ctor = getConstructor(target);
70
+ return Reflect.getMetadata(decorators_1.RESULT_SCHEMA_METADATA_KEY, ctor);
71
+ }
72
+ function getBlockWorkflow(target, name) {
73
+ const workflows = getBlockWorkflows(target);
74
+ return workflows.includes(name) ? target[name] : undefined;
75
+ }
76
+ function getBlockTool(target, name) {
77
+ const tools = getBlockTools(target);
78
+ return tools.includes(name) ? target[name] : undefined;
79
+ }
80
+ function getBlockDocument(target, name) {
81
+ const documents = getBlockDocuments(target);
82
+ return documents.includes(name) ? target[name] : undefined;
83
+ }
84
+ function getBlockHelper(target, name) {
85
+ const helpers = getBlockHelpers(target);
86
+ return helpers.includes(name)
87
+ ? target[name]
88
+ : undefined;
89
+ }
90
+ function getBlockTemplateHelpers(target) {
91
+ const proto = getPrototype(target);
92
+ const keys = Reflect.getMetadata(decorators_1.TEMPLATE_HELPER_METADATA_KEY, proto) ?? [];
93
+ const targetRecord = target;
94
+ const helpers = [];
95
+ for (const key of keys) {
96
+ const name = String(key);
97
+ const fn = targetRecord[name];
98
+ if (typeof fn === 'function') {
99
+ helpers.push({ name, fn: fn });
100
+ }
101
+ }
102
+ return helpers;
103
+ }
104
+ //# sourceMappingURL=block-metadata.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-metadata.utils.js","sourceRoot":"","sources":["../../src/utils/block-metadata.utils.ts"],"names":[],"mappings":";;AA2CA,wCAIC;AAKD,0CAGC;AAKD,sCAIC;AAKD,8CAIC;AAKD,8CAIC;AAKD,0CAIC;AAKD,gDAGC;AAKD,kDAGC;AAKD,oDAGC;AAKD,4CAGC;AAKD,oCAGC;AAKD,4CAGC;AAKD,wCAKC;AAOD,0DAcC;AAxKD,8CAUuB;AACvB,uEAAwD;AAUxD,SAAS,cAAc,CAAC,MAA4B;IAClD,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;QACjC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,MAAM,CAAC,WAA0B,CAAC;AAC3C,CAAC;AAKD,SAAS,YAAY,CAAC,MAA4B;IAChD,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;QACjC,OAAO,MAAM,CAAC,SAAmB,CAAC;IACpC,CAAC;IACD,OAAO,MAAM,CAAC,cAAc,CAAC,MAAM,CAAW,CAAC;AACjD,CAAC;AAKD,SAAgB,cAAc,CAAsB,MAA4B;IAC9E,MAAM,IAAI,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IACpC,MAAM,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,sC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ts","sourceRoot":"","sources":["../../src/utils/create-hash.util.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,GAAI,SAAS,GAAG,KAAG,MAGzC,CAAC"}
@@ -10,3 +10,4 @@ const createHash = (subject) => {
10
10
  return murmurhash_1.default.v3(jsonString).toString();
11
11
  };
12
12
  exports.createHash = createHash;
13
+ //# sourceMappingURL=create-hash.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-hash.util.js","sourceRoot":"","sources":["../../src/utils/create-hash.util.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AAE7B,MAAM,UAAU,GAAG,CAAC,OAAY,EAAU,EAAE;IACjD,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,oBAAU,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC;AAC9C,CAAC,CAAC;AAHW,QAAA,UAAU,cAGrB"}
@@ -1,5 +1,7 @@
1
+ export * from './block-metadata.utils.js';
1
2
  export * from './create-hash.util.js';
2
3
  export * from './normalize-deep-serialize.util.js';
3
4
  export * from './normalize-object.js';
4
5
  export * from './object-fingerprint.util.js';
5
6
  export * from './stable-json-transformer.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC"}
@@ -14,8 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./block-metadata.utils.js"), exports);
17
18
  __exportStar(require("./create-hash.util.js"), exports);
18
19
  __exportStar(require("./normalize-deep-serialize.util.js"), exports);
19
20
  __exportStar(require("./normalize-object.js"), exports);
20
21
  __exportStar(require("./object-fingerprint.util.js"), exports);
21
22
  __exportStar(require("./stable-json-transformer.js"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,wDAAsC;AACtC,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,+DAA6C"}
@@ -1 +1,2 @@
1
1
  export declare function normalizeDeepSerializeUtil(obj: unknown): string;
2
+ //# sourceMappingURL=normalize-deep-serialize.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize-deep-serialize.util.d.ts","sourceRoot":"","sources":["../../src/utils/normalize-deep-serialize.util.ts"],"names":[],"mappings":"AAGA,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAe/D"}