@lssm/example.workflow-system 0.0.0-canary-20251217083314 → 1.41.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/dist/approval/approval.contracts.js +1 -250
  2. package/dist/approval/approval.enum.js +1 -29
  3. package/dist/approval/approval.event.js +1 -186
  4. package/dist/approval/approval.handler.js +1 -71
  5. package/dist/approval/approval.schema.js +1 -111
  6. package/dist/approval/index.js +1 -6
  7. package/dist/docs/index.js +1 -1
  8. package/dist/docs/workflow-system.docblock.js +5 -61
  9. package/dist/entities/approval.js +1 -128
  10. package/dist/entities/index.js +1 -31
  11. package/dist/entities/instance.js +1 -168
  12. package/dist/entities/step.js +1 -135
  13. package/dist/entities/workflow.js +1 -102
  14. package/dist/example.js +1 -50
  15. package/dist/index.js +1 -19
  16. package/dist/instance/index.js +1 -6
  17. package/dist/instance/instance.contracts.js +1 -334
  18. package/dist/instance/instance.enum.js +1 -20
  19. package/dist/instance/instance.event.js +1 -214
  20. package/dist/instance/instance.handler.js +1 -93
  21. package/dist/instance/instance.schema.js +1 -173
  22. package/dist/presentations/index.js +1 -291
  23. package/dist/shared/index.js +1 -3
  24. package/dist/shared/mock-data.js +1 -11
  25. package/dist/state-machine/index.js +1 -157
  26. package/dist/workflow/index.js +1 -6
  27. package/dist/workflow/workflow.contracts.js +1 -239
  28. package/dist/workflow/workflow.enum.js +1 -47
  29. package/dist/workflow/workflow.event.js +1 -116
  30. package/dist/workflow/workflow.handler.js +1 -65
  31. package/dist/workflow/workflow.schema.js +1 -250
  32. package/dist/workflow-system.feature.js +1 -337
  33. package/package.json +44 -44
  34. package/dist/approval/approval.contracts.d.ts +0 -534
  35. package/dist/approval/approval.enum.d.ts +0 -13
  36. package/dist/approval/approval.event.d.ts +0 -130
  37. package/dist/approval/approval.handler.d.ts +0 -22
  38. package/dist/approval/approval.schema.d.ts +0 -99
  39. package/dist/approval/index.d.ts +0 -5
  40. package/dist/docs/index.d.ts +0 -1
  41. package/dist/docs/workflow-system.docblock.d.ts +0 -1
  42. package/dist/entities/approval.d.ts +0 -57
  43. package/dist/entities/index.d.ts +0 -138
  44. package/dist/entities/instance.d.ts +0 -68
  45. package/dist/entities/step.d.ts +0 -49
  46. package/dist/entities/workflow.d.ts +0 -40
  47. package/dist/example.d.ts +0 -39
  48. package/dist/index.d.ts +0 -16
  49. package/dist/instance/index.d.ts +0 -5
  50. package/dist/instance/instance.contracts.d.ts +0 -1023
  51. package/dist/instance/instance.enum.d.ts +0 -9
  52. package/dist/instance/instance.event.d.ts +0 -355
  53. package/dist/instance/instance.handler.d.ts +0 -26
  54. package/dist/instance/instance.schema.d.ts +0 -222
  55. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -88
  56. package/dist/libs/contracts/dist/client/index.js +0 -5
  57. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
  58. package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
  59. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  60. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  61. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -60
  62. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  63. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
  64. package/dist/libs/contracts/dist/docs/index.js +0 -29
  65. package/dist/libs/contracts/dist/docs/presentations.js +0 -71
  66. package/dist/libs/contracts/dist/docs/registry.js +0 -44
  67. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  68. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  69. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  70. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  71. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  72. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  73. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  74. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
  75. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  76. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
  77. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  78. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
  79. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
  80. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  81. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  82. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
  83. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
  84. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  85. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
  86. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
  87. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  88. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  89. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  90. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  91. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  92. package/dist/libs/contracts/dist/events.js +0 -10
  93. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  94. package/dist/libs/contracts/dist/index.js +0 -71
  95. package/dist/libs/contracts/dist/install.js +0 -2
  96. package/dist/libs/contracts/dist/integrations/contracts.js +0 -377
  97. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  98. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  99. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  100. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  101. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  102. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -242
  103. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -13
  104. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
  105. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
  106. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
  107. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
  108. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  109. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
  110. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
  111. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
  112. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
  113. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  114. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
  115. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
  116. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  117. package/dist/libs/contracts/dist/knowledge/contracts.js +0 -306
  118. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  119. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
  120. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
  121. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
  122. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  123. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
  124. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
  125. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
  126. package/dist/libs/contracts/dist/llm/exporters.js +0 -19
  127. package/dist/libs/contracts/dist/llm/index.js +0 -2
  128. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  129. package/dist/libs/contracts/dist/onboarding-base.js +0 -196
  130. package/dist/libs/contracts/dist/openapi.js +0 -1
  131. package/dist/libs/contracts/dist/ownership.js +0 -21
  132. package/dist/libs/contracts/dist/presentations.js +0 -1
  133. package/dist/libs/contracts/dist/presentations.v2.js +0 -11
  134. package/dist/libs/contracts/dist/prompt.js +0 -1
  135. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  136. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  137. package/dist/libs/contracts/dist/regenerator/service.js +0 -6
  138. package/dist/libs/contracts/dist/registry.js +0 -2
  139. package/dist/libs/contracts/dist/resources.js +0 -1
  140. package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
  141. package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
  142. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  143. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -39
  144. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  145. package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
  146. package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
  147. package/dist/libs/contracts/dist/schema/dist/index.js +0 -6
  148. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  149. package/dist/libs/contracts/dist/server/index.js +0 -8
  150. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  151. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
  152. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  153. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  154. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  155. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  156. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  157. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  158. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  159. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  160. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  161. package/dist/libs/contracts/dist/spec.js +0 -34
  162. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  163. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  164. package/dist/libs/contracts/dist/tests/index.js +0 -1
  165. package/dist/libs/contracts/dist/tests/runner.js +0 -2
  166. package/dist/libs/contracts/dist/workflow/index.js +0 -1
  167. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  168. package/dist/libs/schema/dist/EnumType.js +0 -56
  169. package/dist/libs/schema/dist/FieldType.js +0 -49
  170. package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
  171. package/dist/libs/schema/dist/SchemaModel.js +0 -39
  172. package/dist/libs/schema/dist/entity/defineEntity.js +0 -236
  173. package/dist/libs/schema/dist/entity/index.js +0 -2
  174. package/dist/libs/schema/dist/entity/types.js +0 -1
  175. package/dist/libs/schema/dist/index.js +0 -6
  176. package/dist/presentations/index.d.ts +0 -63
  177. package/dist/shared/index.d.ts +0 -3
  178. package/dist/shared/mock-data.d.ts +0 -18
  179. package/dist/shared/types.d.ts +0 -80
  180. package/dist/state-machine/index.d.ts +0 -147
  181. package/dist/workflow/index.d.ts +0 -5
  182. package/dist/workflow/workflow.contracts.d.ts +0 -1010
  183. package/dist/workflow/workflow.enum.d.ts +0 -21
  184. package/dist/workflow/workflow.event.d.ts +0 -134
  185. package/dist/workflow/workflow.handler.d.ts +0 -28
  186. package/dist/workflow/workflow.schema.d.ts +0 -264
  187. package/dist/workflow-system.feature.d.ts +0 -11
@@ -1,9 +0,0 @@
1
- import * as _lssm_lib_schema841 from "@lssm/lib.schema";
2
-
3
- //#region src/instance/instance.enum.d.ts
4
- /**
5
- * Instance status enum.
6
- */
7
- declare const InstanceStatusEnum: _lssm_lib_schema841.EnumType<[string, string, string, string, string, string, string, string]>;
8
- //#endregion
9
- export { InstanceStatusEnum };
@@ -1,355 +0,0 @@
1
- import * as _lssm_lib_schema1042 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts21 from "@lssm/lib.contracts";
3
-
4
- //#region src/instance/instance.event.d.ts
5
- /**
6
- * InstanceStartedEvent - A new workflow instance has been started.
7
- */
8
- declare const InstanceStartedEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema1042.SchemaModel<{
9
- instanceId: {
10
- type: _lssm_lib_schema1042.FieldType<string, string>;
11
- isOptional: false;
12
- };
13
- workflowId: {
14
- type: _lssm_lib_schema1042.FieldType<string, string>;
15
- isOptional: false;
16
- };
17
- workflowKey: {
18
- type: _lssm_lib_schema1042.FieldType<string, string>;
19
- isOptional: false;
20
- };
21
- status: {
22
- type: _lssm_lib_schema1042.FieldType<string, string>;
23
- isOptional: false;
24
- };
25
- referenceId: {
26
- type: _lssm_lib_schema1042.FieldType<string, string>;
27
- isOptional: true;
28
- };
29
- referenceType: {
30
- type: _lssm_lib_schema1042.FieldType<string, string>;
31
- isOptional: true;
32
- };
33
- triggeredBy: {
34
- type: _lssm_lib_schema1042.FieldType<string, string>;
35
- isOptional: false;
36
- };
37
- organizationId: {
38
- type: _lssm_lib_schema1042.FieldType<string, string>;
39
- isOptional: false;
40
- };
41
- timestamp: {
42
- type: _lssm_lib_schema1042.FieldType<Date, string>;
43
- isOptional: false;
44
- };
45
- }>>;
46
- /**
47
- * StepEnteredEvent - A workflow instance has entered a new step.
48
- */
49
- declare const StepEnteredEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema1042.SchemaModel<{
50
- instanceId: {
51
- type: _lssm_lib_schema1042.FieldType<string, string>;
52
- isOptional: false;
53
- };
54
- workflowId: {
55
- type: _lssm_lib_schema1042.FieldType<string, string>;
56
- isOptional: false;
57
- };
58
- fromStepKey: {
59
- type: _lssm_lib_schema1042.FieldType<string, string>;
60
- isOptional: true;
61
- };
62
- toStepKey: {
63
- type: _lssm_lib_schema1042.FieldType<string, string>;
64
- isOptional: false;
65
- };
66
- action: {
67
- type: _lssm_lib_schema1042.FieldType<string, string>;
68
- isOptional: true;
69
- };
70
- executedBy: {
71
- type: _lssm_lib_schema1042.FieldType<string, string>;
72
- isOptional: false;
73
- };
74
- timestamp: {
75
- type: _lssm_lib_schema1042.FieldType<Date, string>;
76
- isOptional: false;
77
- };
78
- }>>;
79
- /**
80
- * StepExitedEvent - A workflow instance has exited a step.
81
- */
82
- declare const StepExitedEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema1042.SchemaModel<{
83
- instanceId: {
84
- type: _lssm_lib_schema1042.FieldType<string, string>;
85
- isOptional: false;
86
- };
87
- workflowId: {
88
- type: _lssm_lib_schema1042.FieldType<string, string>;
89
- isOptional: false;
90
- };
91
- fromStepKey: {
92
- type: _lssm_lib_schema1042.FieldType<string, string>;
93
- isOptional: true;
94
- };
95
- toStepKey: {
96
- type: _lssm_lib_schema1042.FieldType<string, string>;
97
- isOptional: false;
98
- };
99
- action: {
100
- type: _lssm_lib_schema1042.FieldType<string, string>;
101
- isOptional: true;
102
- };
103
- executedBy: {
104
- type: _lssm_lib_schema1042.FieldType<string, string>;
105
- isOptional: false;
106
- };
107
- timestamp: {
108
- type: _lssm_lib_schema1042.FieldType<Date, string>;
109
- isOptional: false;
110
- };
111
- }>>;
112
- /**
113
- * InstanceCompletedEvent - A workflow instance has completed.
114
- */
115
- declare const InstanceCompletedEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema1042.SchemaModel<{
116
- instanceId: {
117
- type: _lssm_lib_schema1042.FieldType<string, string>;
118
- isOptional: false;
119
- };
120
- workflowId: {
121
- type: _lssm_lib_schema1042.FieldType<string, string>;
122
- isOptional: false;
123
- };
124
- workflowKey: {
125
- type: _lssm_lib_schema1042.FieldType<string, string>;
126
- isOptional: false;
127
- };
128
- outcome: {
129
- type: _lssm_lib_schema1042.FieldType<string, string>;
130
- isOptional: false;
131
- };
132
- referenceId: {
133
- type: _lssm_lib_schema1042.FieldType<string, string>;
134
- isOptional: true;
135
- };
136
- referenceType: {
137
- type: _lssm_lib_schema1042.FieldType<string, string>;
138
- isOptional: true;
139
- };
140
- duration: {
141
- type: _lssm_lib_schema1042.FieldType<number, number>;
142
- isOptional: false;
143
- };
144
- timestamp: {
145
- type: _lssm_lib_schema1042.FieldType<Date, string>;
146
- isOptional: false;
147
- };
148
- }>>;
149
- /**
150
- * InstanceCancelledEvent - A workflow instance has been cancelled.
151
- */
152
- declare const InstanceCancelledEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema1042.SchemaModel<{
153
- instanceId: {
154
- type: _lssm_lib_schema1042.FieldType<string, string>;
155
- isOptional: false;
156
- };
157
- workflowId: {
158
- type: _lssm_lib_schema1042.FieldType<string, string>;
159
- isOptional: false;
160
- };
161
- workflowKey: {
162
- type: _lssm_lib_schema1042.FieldType<string, string>;
163
- isOptional: false;
164
- };
165
- status: {
166
- type: _lssm_lib_schema1042.FieldType<string, string>;
167
- isOptional: false;
168
- };
169
- referenceId: {
170
- type: _lssm_lib_schema1042.FieldType<string, string>;
171
- isOptional: true;
172
- };
173
- referenceType: {
174
- type: _lssm_lib_schema1042.FieldType<string, string>;
175
- isOptional: true;
176
- };
177
- triggeredBy: {
178
- type: _lssm_lib_schema1042.FieldType<string, string>;
179
- isOptional: false;
180
- };
181
- organizationId: {
182
- type: _lssm_lib_schema1042.FieldType<string, string>;
183
- isOptional: false;
184
- };
185
- timestamp: {
186
- type: _lssm_lib_schema1042.FieldType<Date, string>;
187
- isOptional: false;
188
- };
189
- }>>;
190
- /**
191
- * InstancePausedEvent - A workflow instance has been paused.
192
- */
193
- declare const InstancePausedEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema1042.SchemaModel<{
194
- instanceId: {
195
- type: _lssm_lib_schema1042.FieldType<string, string>;
196
- isOptional: false;
197
- };
198
- workflowId: {
199
- type: _lssm_lib_schema1042.FieldType<string, string>;
200
- isOptional: false;
201
- };
202
- workflowKey: {
203
- type: _lssm_lib_schema1042.FieldType<string, string>;
204
- isOptional: false;
205
- };
206
- status: {
207
- type: _lssm_lib_schema1042.FieldType<string, string>;
208
- isOptional: false;
209
- };
210
- referenceId: {
211
- type: _lssm_lib_schema1042.FieldType<string, string>;
212
- isOptional: true;
213
- };
214
- referenceType: {
215
- type: _lssm_lib_schema1042.FieldType<string, string>;
216
- isOptional: true;
217
- };
218
- triggeredBy: {
219
- type: _lssm_lib_schema1042.FieldType<string, string>;
220
- isOptional: false;
221
- };
222
- organizationId: {
223
- type: _lssm_lib_schema1042.FieldType<string, string>;
224
- isOptional: false;
225
- };
226
- timestamp: {
227
- type: _lssm_lib_schema1042.FieldType<Date, string>;
228
- isOptional: false;
229
- };
230
- }>>;
231
- /**
232
- * InstanceResumedEvent - A workflow instance has been resumed.
233
- */
234
- declare const InstanceResumedEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema1042.SchemaModel<{
235
- instanceId: {
236
- type: _lssm_lib_schema1042.FieldType<string, string>;
237
- isOptional: false;
238
- };
239
- workflowId: {
240
- type: _lssm_lib_schema1042.FieldType<string, string>;
241
- isOptional: false;
242
- };
243
- workflowKey: {
244
- type: _lssm_lib_schema1042.FieldType<string, string>;
245
- isOptional: false;
246
- };
247
- status: {
248
- type: _lssm_lib_schema1042.FieldType<string, string>;
249
- isOptional: false;
250
- };
251
- referenceId: {
252
- type: _lssm_lib_schema1042.FieldType<string, string>;
253
- isOptional: true;
254
- };
255
- referenceType: {
256
- type: _lssm_lib_schema1042.FieldType<string, string>;
257
- isOptional: true;
258
- };
259
- triggeredBy: {
260
- type: _lssm_lib_schema1042.FieldType<string, string>;
261
- isOptional: false;
262
- };
263
- organizationId: {
264
- type: _lssm_lib_schema1042.FieldType<string, string>;
265
- isOptional: false;
266
- };
267
- timestamp: {
268
- type: _lssm_lib_schema1042.FieldType<Date, string>;
269
- isOptional: false;
270
- };
271
- }>>;
272
- /**
273
- * InstanceFailedEvent - A workflow instance has failed.
274
- */
275
- declare const InstanceFailedEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema1042.SchemaModel<{
276
- instanceId: {
277
- type: _lssm_lib_schema1042.FieldType<string, string>;
278
- isOptional: false;
279
- };
280
- workflowId: {
281
- type: _lssm_lib_schema1042.FieldType<string, string>;
282
- isOptional: false;
283
- };
284
- workflowKey: {
285
- type: _lssm_lib_schema1042.FieldType<string, string>;
286
- isOptional: false;
287
- };
288
- status: {
289
- type: _lssm_lib_schema1042.FieldType<string, string>;
290
- isOptional: false;
291
- };
292
- referenceId: {
293
- type: _lssm_lib_schema1042.FieldType<string, string>;
294
- isOptional: true;
295
- };
296
- referenceType: {
297
- type: _lssm_lib_schema1042.FieldType<string, string>;
298
- isOptional: true;
299
- };
300
- triggeredBy: {
301
- type: _lssm_lib_schema1042.FieldType<string, string>;
302
- isOptional: false;
303
- };
304
- organizationId: {
305
- type: _lssm_lib_schema1042.FieldType<string, string>;
306
- isOptional: false;
307
- };
308
- timestamp: {
309
- type: _lssm_lib_schema1042.FieldType<Date, string>;
310
- isOptional: false;
311
- };
312
- }>>;
313
- /**
314
- * InstanceTimedOutEvent - A workflow instance has timed out.
315
- */
316
- declare const InstanceTimedOutEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema1042.SchemaModel<{
317
- instanceId: {
318
- type: _lssm_lib_schema1042.FieldType<string, string>;
319
- isOptional: false;
320
- };
321
- workflowId: {
322
- type: _lssm_lib_schema1042.FieldType<string, string>;
323
- isOptional: false;
324
- };
325
- workflowKey: {
326
- type: _lssm_lib_schema1042.FieldType<string, string>;
327
- isOptional: false;
328
- };
329
- status: {
330
- type: _lssm_lib_schema1042.FieldType<string, string>;
331
- isOptional: false;
332
- };
333
- referenceId: {
334
- type: _lssm_lib_schema1042.FieldType<string, string>;
335
- isOptional: true;
336
- };
337
- referenceType: {
338
- type: _lssm_lib_schema1042.FieldType<string, string>;
339
- isOptional: true;
340
- };
341
- triggeredBy: {
342
- type: _lssm_lib_schema1042.FieldType<string, string>;
343
- isOptional: false;
344
- };
345
- organizationId: {
346
- type: _lssm_lib_schema1042.FieldType<string, string>;
347
- isOptional: false;
348
- };
349
- timestamp: {
350
- type: _lssm_lib_schema1042.FieldType<Date, string>;
351
- isOptional: false;
352
- };
353
- }>>;
354
- //#endregion
355
- export { InstanceCancelledEvent, InstanceCompletedEvent, InstanceFailedEvent, InstancePausedEvent, InstanceResumedEvent, InstanceStartedEvent, InstanceTimedOutEvent, StepEnteredEvent, StepExitedEvent };
@@ -1,26 +0,0 @@
1
- import { HandlerContext, WorkflowInstanceRecord } from "../shared/types.js";
2
-
3
- //#region src/instance/instance.handler.d.ts
4
-
5
- declare function handleStartWorkflow(input: {
6
- workflowKey: string;
7
- contextData?: Record<string, unknown>;
8
- referenceId?: string;
9
- referenceType?: string;
10
- priority?: number;
11
- dueAt?: Date;
12
- }, context: HandlerContext): Promise<WorkflowInstanceRecord>;
13
- declare function handleTransitionWorkflow(input: {
14
- instanceId: string;
15
- action: string;
16
- data?: Record<string, unknown>;
17
- comment?: string;
18
- }, context: HandlerContext): Promise<{
19
- success: boolean;
20
- instance: WorkflowInstanceRecord;
21
- previousStepKey?: string;
22
- currentStepKey?: string;
23
- message?: string;
24
- }>;
25
- //#endregion
26
- export { handleStartWorkflow, handleTransitionWorkflow };
@@ -1,222 +0,0 @@
1
- import * as _lssm_lib_schema340 from "@lssm/lib.schema";
2
-
3
- //#region src/instance/instance.schema.d.ts
4
- /**
5
- * A running workflow instance.
6
- */
7
- declare const WorkflowInstanceModel: _lssm_lib_schema340.SchemaModel<{
8
- id: {
9
- type: _lssm_lib_schema340.FieldType<string, string>;
10
- isOptional: false;
11
- };
12
- workflowDefinitionId: {
13
- type: _lssm_lib_schema340.FieldType<string, string>;
14
- isOptional: false;
15
- };
16
- referenceId: {
17
- type: _lssm_lib_schema340.FieldType<string, string>;
18
- isOptional: true;
19
- };
20
- referenceType: {
21
- type: _lssm_lib_schema340.FieldType<string, string>;
22
- isOptional: true;
23
- };
24
- status: {
25
- type: _lssm_lib_schema340.EnumType<[string, string, string, string, string, string, string, string]>;
26
- isOptional: false;
27
- };
28
- currentStepId: {
29
- type: _lssm_lib_schema340.FieldType<string, string>;
30
- isOptional: true;
31
- };
32
- contextData: {
33
- type: _lssm_lib_schema340.FieldType<unknown, unknown>;
34
- isOptional: true;
35
- };
36
- triggeredBy: {
37
- type: _lssm_lib_schema340.FieldType<string, string>;
38
- isOptional: false;
39
- };
40
- organizationId: {
41
- type: _lssm_lib_schema340.FieldType<string, string>;
42
- isOptional: false;
43
- };
44
- priority: {
45
- type: _lssm_lib_schema340.FieldType<number, number>;
46
- isOptional: false;
47
- };
48
- dueAt: {
49
- type: _lssm_lib_schema340.FieldType<Date, string>;
50
- isOptional: true;
51
- };
52
- outcome: {
53
- type: _lssm_lib_schema340.FieldType<string, string>;
54
- isOptional: true;
55
- };
56
- resultData: {
57
- type: _lssm_lib_schema340.FieldType<unknown, unknown>;
58
- isOptional: true;
59
- };
60
- errorMessage: {
61
- type: _lssm_lib_schema340.FieldType<string, string>;
62
- isOptional: true;
63
- };
64
- createdAt: {
65
- type: _lssm_lib_schema340.FieldType<Date, string>;
66
- isOptional: false;
67
- };
68
- startedAt: {
69
- type: _lssm_lib_schema340.FieldType<Date, string>;
70
- isOptional: true;
71
- };
72
- completedAt: {
73
- type: _lssm_lib_schema340.FieldType<Date, string>;
74
- isOptional: true;
75
- };
76
- }>;
77
- /**
78
- * Input for starting a workflow.
79
- */
80
- declare const StartWorkflowInputModel: _lssm_lib_schema340.SchemaModel<{
81
- workflowKey: {
82
- type: _lssm_lib_schema340.FieldType<string, string>;
83
- isOptional: false;
84
- };
85
- contextData: {
86
- type: _lssm_lib_schema340.FieldType<unknown, unknown>;
87
- isOptional: true;
88
- };
89
- referenceId: {
90
- type: _lssm_lib_schema340.FieldType<string, string>;
91
- isOptional: true;
92
- };
93
- referenceType: {
94
- type: _lssm_lib_schema340.FieldType<string, string>;
95
- isOptional: true;
96
- };
97
- priority: {
98
- type: _lssm_lib_schema340.FieldType<number, number>;
99
- isOptional: true;
100
- };
101
- dueAt: {
102
- type: _lssm_lib_schema340.FieldType<Date, string>;
103
- isOptional: true;
104
- };
105
- }>;
106
- /**
107
- * Input for transitioning a workflow.
108
- */
109
- declare const TransitionInputModel: _lssm_lib_schema340.SchemaModel<{
110
- instanceId: {
111
- type: _lssm_lib_schema340.FieldType<string, string>;
112
- isOptional: false;
113
- };
114
- action: {
115
- type: _lssm_lib_schema340.FieldType<string, string>;
116
- isOptional: false;
117
- };
118
- data: {
119
- type: _lssm_lib_schema340.FieldType<unknown, unknown>;
120
- isOptional: true;
121
- };
122
- comment: {
123
- type: _lssm_lib_schema340.FieldType<string, string>;
124
- isOptional: true;
125
- };
126
- }>;
127
- /**
128
- * Result of a workflow transition.
129
- */
130
- declare const TransitionResultModel: _lssm_lib_schema340.SchemaModel<{
131
- success: {
132
- type: _lssm_lib_schema340.FieldType<boolean, boolean>;
133
- isOptional: false;
134
- };
135
- instance: {
136
- type: _lssm_lib_schema340.SchemaModel<{
137
- id: {
138
- type: _lssm_lib_schema340.FieldType<string, string>;
139
- isOptional: false;
140
- };
141
- workflowDefinitionId: {
142
- type: _lssm_lib_schema340.FieldType<string, string>;
143
- isOptional: false;
144
- };
145
- referenceId: {
146
- type: _lssm_lib_schema340.FieldType<string, string>;
147
- isOptional: true;
148
- };
149
- referenceType: {
150
- type: _lssm_lib_schema340.FieldType<string, string>;
151
- isOptional: true;
152
- };
153
- status: {
154
- type: _lssm_lib_schema340.EnumType<[string, string, string, string, string, string, string, string]>;
155
- isOptional: false;
156
- };
157
- currentStepId: {
158
- type: _lssm_lib_schema340.FieldType<string, string>;
159
- isOptional: true;
160
- };
161
- contextData: {
162
- type: _lssm_lib_schema340.FieldType<unknown, unknown>;
163
- isOptional: true;
164
- };
165
- triggeredBy: {
166
- type: _lssm_lib_schema340.FieldType<string, string>;
167
- isOptional: false;
168
- };
169
- organizationId: {
170
- type: _lssm_lib_schema340.FieldType<string, string>;
171
- isOptional: false;
172
- };
173
- priority: {
174
- type: _lssm_lib_schema340.FieldType<number, number>;
175
- isOptional: false;
176
- };
177
- dueAt: {
178
- type: _lssm_lib_schema340.FieldType<Date, string>;
179
- isOptional: true;
180
- };
181
- outcome: {
182
- type: _lssm_lib_schema340.FieldType<string, string>;
183
- isOptional: true;
184
- };
185
- resultData: {
186
- type: _lssm_lib_schema340.FieldType<unknown, unknown>;
187
- isOptional: true;
188
- };
189
- errorMessage: {
190
- type: _lssm_lib_schema340.FieldType<string, string>;
191
- isOptional: true;
192
- };
193
- createdAt: {
194
- type: _lssm_lib_schema340.FieldType<Date, string>;
195
- isOptional: false;
196
- };
197
- startedAt: {
198
- type: _lssm_lib_schema340.FieldType<Date, string>;
199
- isOptional: true;
200
- };
201
- completedAt: {
202
- type: _lssm_lib_schema340.FieldType<Date, string>;
203
- isOptional: true;
204
- };
205
- }>;
206
- isOptional: false;
207
- };
208
- previousStepKey: {
209
- type: _lssm_lib_schema340.FieldType<string, string>;
210
- isOptional: true;
211
- };
212
- currentStepKey: {
213
- type: _lssm_lib_schema340.FieldType<string, string>;
214
- isOptional: true;
215
- };
216
- message: {
217
- type: _lssm_lib_schema340.FieldType<string, string>;
218
- isOptional: true;
219
- };
220
- }>;
221
- //#endregion
222
- export { StartWorkflowInputModel, TransitionInputModel, TransitionResultModel, WorkflowInstanceModel };
@@ -1,88 +0,0 @@
1
- import { StabilityEnum } from "../ownership.js";
2
-
3
- //#region ../../libs/contracts/dist/capabilities/openbanking.js
4
- const OWNERS = ["platform.finance"];
5
- const TAGS = ["open-banking", "finance"];
6
- const openBankingAccountsReadCapability = {
7
- meta: {
8
- key: "openbanking.accounts.read",
9
- version: 1,
10
- kind: "integration",
11
- title: "Open Banking Accounts (Read)",
12
- description: "Provides read-only access to linked bank accounts, including account summaries and metadata.",
13
- domain: "finance",
14
- owners: [...OWNERS],
15
- tags: [...TAGS],
16
- stability: StabilityEnum.Experimental
17
- },
18
- provides: [
19
- {
20
- surface: "operation",
21
- name: "openbanking.accounts.list",
22
- version: 1,
23
- description: "List bank accounts linked to a Powens open banking connection."
24
- },
25
- {
26
- surface: "operation",
27
- name: "openbanking.accounts.get",
28
- version: 1,
29
- description: "Retrieve the canonical bank account record for a specific account."
30
- },
31
- {
32
- surface: "operation",
33
- name: "openbanking.accounts.sync",
34
- version: 1,
35
- description: "Trigger a refresh of bank account metadata from the open banking provider."
36
- }
37
- ]
38
- };
39
- const openBankingTransactionsReadCapability = {
40
- meta: {
41
- key: "openbanking.transactions.read",
42
- version: 1,
43
- kind: "integration",
44
- title: "Open Banking Transactions (Read)",
45
- description: "Enables retrieval of transaction history for linked bank accounts via open banking providers.",
46
- domain: "finance",
47
- owners: [...OWNERS],
48
- tags: [...TAGS, "transactions"],
49
- stability: StabilityEnum.Experimental
50
- },
51
- provides: [{
52
- surface: "operation",
53
- name: "openbanking.transactions.list",
54
- version: 1,
55
- description: "List transactions for a given bank account with optional date filtering."
56
- }, {
57
- surface: "operation",
58
- name: "openbanking.transactions.sync",
59
- version: 1,
60
- description: "Synchronise transactions from the open banking provider into the canonical ledger."
61
- }]
62
- };
63
- const openBankingBalancesReadCapability = {
64
- meta: {
65
- key: "openbanking.balances.read",
66
- version: 1,
67
- kind: "integration",
68
- title: "Open Banking Balances (Read)",
69
- description: "Allows querying of current and available balances for linked bank accounts via open banking providers.",
70
- domain: "finance",
71
- owners: [...OWNERS],
72
- tags: [...TAGS, "balances"],
73
- stability: StabilityEnum.Experimental
74
- },
75
- provides: [{
76
- surface: "operation",
77
- name: "openbanking.balances.get",
78
- version: 1,
79
- description: "Retrieve the latest known balances for a specified bank account."
80
- }, {
81
- surface: "operation",
82
- name: "openbanking.balances.refresh",
83
- version: 1,
84
- description: "Force a balance refresh from the open banking provider."
85
- }]
86
- };
87
-
88
- //#endregion
@@ -1,5 +0,0 @@
1
- 'use client';
2
-
3
- import "./react/feature-render.js";
4
- import "./react/form-render.js";
5
- import "./react/index.js";
@@ -1,2 +0,0 @@
1
- import "../../presentations.v2.js";
2
- import "react";