@lssm/example.workflow-system 0.0.0-canary-20251217063201 → 0.0.0-canary-20251217073102

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 (171) hide show
  1. package/dist/approval/approval.contracts.d.ts +134 -134
  2. package/dist/approval/approval.contracts.js +250 -1
  3. package/dist/approval/approval.enum.d.ts +3 -3
  4. package/dist/approval/approval.enum.js +29 -1
  5. package/dist/approval/approval.event.d.ts +32 -32
  6. package/dist/approval/approval.event.js +186 -1
  7. package/dist/approval/approval.handler.js +71 -1
  8. package/dist/approval/approval.schema.d.ts +24 -24
  9. package/dist/approval/approval.schema.js +111 -1
  10. package/dist/approval/index.js +6 -1
  11. package/dist/docs/index.js +1 -1
  12. package/dist/docs/workflow-system.docblock.js +61 -5
  13. package/dist/entities/approval.d.ts +36 -36
  14. package/dist/entities/approval.js +128 -1
  15. package/dist/entities/index.d.ts +127 -127
  16. package/dist/entities/index.js +31 -1
  17. package/dist/entities/instance.d.ts +47 -47
  18. package/dist/entities/instance.js +168 -1
  19. package/dist/entities/step.d.ts +32 -32
  20. package/dist/entities/step.js +135 -1
  21. package/dist/entities/workflow.d.ts +23 -23
  22. package/dist/entities/workflow.js +102 -1
  23. package/dist/example.js +50 -1
  24. package/dist/index.js +19 -1
  25. package/dist/instance/index.js +6 -1
  26. package/dist/instance/instance.contracts.d.ts +256 -256
  27. package/dist/instance/instance.contracts.js +334 -1
  28. package/dist/instance/instance.enum.d.ts +2 -2
  29. package/dist/instance/instance.enum.js +20 -1
  30. package/dist/instance/instance.event.d.ts +87 -87
  31. package/dist/instance/instance.event.js +214 -1
  32. package/dist/instance/instance.handler.js +93 -1
  33. package/dist/instance/instance.schema.d.ts +54 -54
  34. package/dist/instance/instance.schema.js +173 -1
  35. package/dist/libs/contracts/dist/capabilities/openbanking.js +88 -1
  36. package/dist/libs/contracts/dist/client/index.js +5 -1
  37. package/dist/libs/contracts/dist/client/react/feature-render.js +2 -1
  38. package/dist/libs/contracts/dist/client/react/form-render.js +4 -1
  39. package/dist/libs/contracts/dist/client/react/index.js +4 -1
  40. package/dist/libs/contracts/dist/contract-registry/index.js +1 -1
  41. package/dist/libs/contracts/dist/contract-registry/schemas.js +60 -1
  42. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -76
  43. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -350
  44. package/dist/libs/contracts/dist/docs/index.js +29 -1
  45. package/dist/libs/contracts/dist/docs/presentations.js +71 -1
  46. package/dist/libs/contracts/dist/docs/registry.js +44 -1
  47. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -383
  48. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -68
  49. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -140
  50. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -86
  51. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -1
  52. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +24 -2
  53. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +21 -2
  54. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -213
  55. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +73 -5
  56. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -1
  57. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -1
  58. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -262
  59. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -1
  60. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +24 -2
  61. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +23 -2
  62. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +25 -16
  63. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -1
  64. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +22 -2
  65. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +40 -36
  66. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -1
  67. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +23 -2
  68. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +36 -3
  69. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -1
  70. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +36 -3
  71. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -1
  72. package/dist/libs/contracts/dist/events.js +10 -1
  73. package/dist/libs/contracts/dist/experiments/evaluator.js +1 -1
  74. package/dist/libs/contracts/dist/index.js +71 -1
  75. package/dist/libs/contracts/dist/install.js +2 -1
  76. package/dist/libs/contracts/dist/integrations/contracts.js +377 -1
  77. package/dist/libs/contracts/dist/integrations/index.js +18 -1
  78. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +228 -1
  79. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +159 -1
  80. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -1
  81. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +210 -1
  82. package/dist/libs/contracts/dist/integrations/openbanking/models.js +242 -1
  83. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +13 -1
  84. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -1
  85. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -1
  86. package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -1
  87. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -1
  88. package/dist/libs/contracts/dist/integrations/providers/index.js +11 -1
  89. package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -1
  90. package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -1
  91. package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -1
  92. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -1
  93. package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -1
  94. package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -1
  95. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -1
  96. package/dist/libs/contracts/dist/jsonschema.js +1 -1
  97. package/dist/libs/contracts/dist/knowledge/contracts.js +306 -1
  98. package/dist/libs/contracts/dist/knowledge/index.js +7 -1
  99. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -1
  100. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -1
  101. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -1
  102. package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -1
  103. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -1
  104. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -1
  105. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -1
  106. package/dist/libs/contracts/dist/llm/exporters.js +19 -1
  107. package/dist/libs/contracts/dist/llm/index.js +2 -1
  108. package/dist/libs/contracts/dist/llm/prompts.js +1 -1
  109. package/dist/libs/contracts/dist/onboarding-base.js +196 -1
  110. package/dist/libs/contracts/dist/openapi.js +1 -1
  111. package/dist/libs/contracts/dist/ownership.js +21 -1
  112. package/dist/libs/contracts/dist/presentations.js +1 -1
  113. package/dist/libs/contracts/dist/presentations.v2.js +11 -1
  114. package/dist/libs/contracts/dist/prompt.js +1 -1
  115. package/dist/libs/contracts/dist/promptRegistry.js +1 -1
  116. package/dist/libs/contracts/dist/regenerator/index.js +1 -1
  117. package/dist/libs/contracts/dist/regenerator/service.js +6 -1
  118. package/dist/libs/contracts/dist/registry.js +2 -1
  119. package/dist/libs/contracts/dist/resources.js +1 -1
  120. package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -1
  121. package/dist/libs/contracts/dist/schema/dist/FieldType.js +49 -1
  122. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +236 -1
  123. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +39 -1
  124. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -1
  125. package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -1
  126. package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -1
  127. package/dist/libs/contracts/dist/schema/dist/index.js +6 -1
  128. package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -1
  129. package/dist/libs/contracts/dist/server/index.js +8 -1
  130. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -1
  131. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -1
  132. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -1
  133. package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -1
  134. package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -1
  135. package/dist/libs/contracts/dist/server/provider-mcp.js +1 -1
  136. package/dist/libs/contracts/dist/server/rest-elysia.js +1 -1
  137. package/dist/libs/contracts/dist/server/rest-express.js +1 -1
  138. package/dist/libs/contracts/dist/server/rest-generic.js +1 -1
  139. package/dist/libs/contracts/dist/server/rest-next-app.js +1 -1
  140. package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -1
  141. package/dist/libs/contracts/dist/spec.js +34 -1
  142. package/dist/libs/contracts/dist/telemetry/index.js +1 -1
  143. package/dist/libs/contracts/dist/telemetry/tracker.js +1 -1
  144. package/dist/libs/contracts/dist/tests/index.js +1 -1
  145. package/dist/libs/contracts/dist/tests/runner.js +2 -1
  146. package/dist/libs/contracts/dist/workflow/index.js +1 -1
  147. package/dist/libs/contracts/dist/workflow/runner.js +1 -1
  148. package/dist/libs/schema/dist/EnumType.js +56 -1
  149. package/dist/libs/schema/dist/FieldType.js +49 -1
  150. package/dist/libs/schema/dist/ScalarTypeEnum.js +236 -1
  151. package/dist/libs/schema/dist/SchemaModel.js +39 -1
  152. package/dist/libs/schema/dist/entity/defineEntity.js +236 -1
  153. package/dist/libs/schema/dist/entity/index.js +2 -1
  154. package/dist/libs/schema/dist/entity/types.js +1 -1
  155. package/dist/libs/schema/dist/index.js +6 -1
  156. package/dist/presentations/index.js +291 -1
  157. package/dist/shared/index.js +3 -1
  158. package/dist/shared/mock-data.js +11 -1
  159. package/dist/state-machine/index.js +157 -1
  160. package/dist/workflow/index.js +6 -1
  161. package/dist/workflow/workflow.contracts.d.ts +246 -246
  162. package/dist/workflow/workflow.contracts.js +239 -1
  163. package/dist/workflow/workflow.enum.d.ts +5 -5
  164. package/dist/workflow/workflow.enum.js +47 -1
  165. package/dist/workflow/workflow.event.d.ts +33 -33
  166. package/dist/workflow/workflow.event.js +116 -1
  167. package/dist/workflow/workflow.handler.js +65 -1
  168. package/dist/workflow/workflow.schema.d.ts +63 -63
  169. package/dist/workflow/workflow.schema.js +250 -1
  170. package/dist/workflow-system.feature.js +337 -1
  171. package/package.json +11 -11
@@ -1 +1,236 @@
1
- import*as e from"zod";function t(e){return e}function n(e){return e}const r={string(e){return{kind:`scalar`,type:`String`,...e}},int(e){return{kind:`scalar`,type:`Int`,...e}},float(e){return{kind:`scalar`,type:`Float`,...e}},boolean(e){return{kind:`scalar`,type:`Boolean`,...e}},dateTime(e){return{kind:`scalar`,type:`DateTime`,...e}},json(e){return{kind:`scalar`,type:`Json`,...e}},bigInt(e){return{kind:`scalar`,type:`BigInt`,...e}},decimal(e){return{kind:`scalar`,type:`Decimal`,...e}},bytes(e){return{kind:`scalar`,type:`Bytes`,...e}},id(e){return{kind:`scalar`,type:`String`,isId:!0,default:`cuid()`,...e}},uuid(e){return{kind:`scalar`,type:`String`,isId:!0,default:`uuid()`,...e}},autoIncrement(e){return{kind:`scalar`,type:`Int`,isId:!0,default:`autoincrement()`,...e}},createdAt(e){return{kind:`scalar`,type:`DateTime`,default:`now()`,...e}},updatedAt(e){return{kind:`scalar`,type:`DateTime`,updatedAt:!0,...e}},email(t){return{kind:`scalar`,type:`String`,zod:e.email(),...t}},url(t){return{kind:`scalar`,type:`String`,zod:e.url(),...t}},enum(e,t){return{kind:`enum`,enumName:e,...t}},inlineEnum(e,t,n){return{kind:`enum`,enumName:e,values:t,...n}},hasOne(e,t){return{kind:`relation`,type:`hasOne`,target:e,...t}},hasMany(e,t){return{kind:`relation`,type:`hasMany`,target:e,...t}},belongsTo(e,t,n,r){return{kind:`relation`,type:`belongsTo`,target:e,fields:t,references:n,...r}},foreignKey(e){return{kind:`scalar`,type:`String`,...e}}},i={on(e,t){return{fields:e,...t}},unique(e,t){return{fields:e,unique:!0,...t}},compound(e,t,n){return{fields:e,sort:t,...n}}};export{i,n,r,t};
1
+ import * as z$1 from "zod";
2
+
3
+ //#region ../../libs/schema/dist/entity/defineEntity.js
4
+ /**
5
+ * Helper to define a database entity with full type safety.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * const UserEntity = defineEntity({
10
+ * name: 'User',
11
+ * schema: 'lssm_sigil',
12
+ * description: 'A user of the platform.',
13
+ * fields: {
14
+ * id: field.id(),
15
+ * email: field.string({ isUnique: true, zod: z.string().email() }),
16
+ * name: field.string({ isOptional: true }),
17
+ * createdAt: field.createdAt(),
18
+ * updatedAt: field.updatedAt(),
19
+ * memberships: field.hasMany('Member'),
20
+ * },
21
+ * indexes: [{ fields: ['email'], unique: true }],
22
+ * });
23
+ * ```
24
+ */
25
+ function defineEntity(spec) {
26
+ return spec;
27
+ }
28
+ /**
29
+ * Helper to define an enum that can be shared across entities.
30
+ */
31
+ function defineEntityEnum(def) {
32
+ return def;
33
+ }
34
+ /**
35
+ * Field builder helpers for common field patterns.
36
+ */
37
+ const field = {
38
+ string(opts) {
39
+ return {
40
+ kind: "scalar",
41
+ type: "String",
42
+ ...opts
43
+ };
44
+ },
45
+ int(opts) {
46
+ return {
47
+ kind: "scalar",
48
+ type: "Int",
49
+ ...opts
50
+ };
51
+ },
52
+ float(opts) {
53
+ return {
54
+ kind: "scalar",
55
+ type: "Float",
56
+ ...opts
57
+ };
58
+ },
59
+ boolean(opts) {
60
+ return {
61
+ kind: "scalar",
62
+ type: "Boolean",
63
+ ...opts
64
+ };
65
+ },
66
+ dateTime(opts) {
67
+ return {
68
+ kind: "scalar",
69
+ type: "DateTime",
70
+ ...opts
71
+ };
72
+ },
73
+ json(opts) {
74
+ return {
75
+ kind: "scalar",
76
+ type: "Json",
77
+ ...opts
78
+ };
79
+ },
80
+ bigInt(opts) {
81
+ return {
82
+ kind: "scalar",
83
+ type: "BigInt",
84
+ ...opts
85
+ };
86
+ },
87
+ decimal(opts) {
88
+ return {
89
+ kind: "scalar",
90
+ type: "Decimal",
91
+ ...opts
92
+ };
93
+ },
94
+ bytes(opts) {
95
+ return {
96
+ kind: "scalar",
97
+ type: "Bytes",
98
+ ...opts
99
+ };
100
+ },
101
+ id(opts) {
102
+ return {
103
+ kind: "scalar",
104
+ type: "String",
105
+ isId: true,
106
+ default: "cuid()",
107
+ ...opts
108
+ };
109
+ },
110
+ uuid(opts) {
111
+ return {
112
+ kind: "scalar",
113
+ type: "String",
114
+ isId: true,
115
+ default: "uuid()",
116
+ ...opts
117
+ };
118
+ },
119
+ autoIncrement(opts) {
120
+ return {
121
+ kind: "scalar",
122
+ type: "Int",
123
+ isId: true,
124
+ default: "autoincrement()",
125
+ ...opts
126
+ };
127
+ },
128
+ createdAt(opts) {
129
+ return {
130
+ kind: "scalar",
131
+ type: "DateTime",
132
+ default: "now()",
133
+ ...opts
134
+ };
135
+ },
136
+ updatedAt(opts) {
137
+ return {
138
+ kind: "scalar",
139
+ type: "DateTime",
140
+ updatedAt: true,
141
+ ...opts
142
+ };
143
+ },
144
+ email(opts) {
145
+ return {
146
+ kind: "scalar",
147
+ type: "String",
148
+ zod: z$1.email(),
149
+ ...opts
150
+ };
151
+ },
152
+ url(opts) {
153
+ return {
154
+ kind: "scalar",
155
+ type: "String",
156
+ zod: z$1.url(),
157
+ ...opts
158
+ };
159
+ },
160
+ enum(enumName, opts) {
161
+ return {
162
+ kind: "enum",
163
+ enumName,
164
+ ...opts
165
+ };
166
+ },
167
+ inlineEnum(enumName, values, opts) {
168
+ return {
169
+ kind: "enum",
170
+ enumName,
171
+ values,
172
+ ...opts
173
+ };
174
+ },
175
+ hasOne(target, opts) {
176
+ return {
177
+ kind: "relation",
178
+ type: "hasOne",
179
+ target,
180
+ ...opts
181
+ };
182
+ },
183
+ hasMany(target, opts) {
184
+ return {
185
+ kind: "relation",
186
+ type: "hasMany",
187
+ target,
188
+ ...opts
189
+ };
190
+ },
191
+ belongsTo(target, fields, references, opts) {
192
+ return {
193
+ kind: "relation",
194
+ type: "belongsTo",
195
+ target,
196
+ fields,
197
+ references,
198
+ ...opts
199
+ };
200
+ },
201
+ foreignKey(opts) {
202
+ return {
203
+ kind: "scalar",
204
+ type: "String",
205
+ ...opts
206
+ };
207
+ }
208
+ };
209
+ /**
210
+ * Index builder helpers.
211
+ */
212
+ const index = {
213
+ on(fields, opts) {
214
+ return {
215
+ fields,
216
+ ...opts
217
+ };
218
+ },
219
+ unique(fields, opts) {
220
+ return {
221
+ fields,
222
+ unique: true,
223
+ ...opts
224
+ };
225
+ },
226
+ compound(fields, sort, opts) {
227
+ return {
228
+ fields,
229
+ sort,
230
+ ...opts
231
+ };
232
+ }
233
+ };
234
+
235
+ //#endregion
236
+ export { defineEntity, defineEntityEnum, field, index };
@@ -1 +1,2 @@
1
- import{i as e,n as t,r as n,t as r}from"./defineEntity.js";import"./types.js";
1
+ import { defineEntity, defineEntityEnum, field, index } from "./defineEntity.js";
2
+ import "./types.js";
@@ -1 +1 @@
1
- import"zod";
1
+ import "zod";
@@ -1 +1,6 @@
1
- import{n as e,r as t}from"./EnumType.js";import{t as n}from"./FieldType.js";import{l as r}from"./ScalarTypeEnum.js";import{n as i,t as a}from"./SchemaModel.js";import{i as o,n as s,r as c,t as l}from"./entity/defineEntity.js";import"./entity/index.js";
1
+ import { EnumType, defineEnum } from "./EnumType.js";
2
+ import { FieldType } from "./FieldType.js";
3
+ import { ScalarTypeEnum } from "./ScalarTypeEnum.js";
4
+ import { SchemaModel, defineSchemaModel } from "./SchemaModel.js";
5
+ import { defineEntity, defineEntityEnum, field, index } from "./entity/defineEntity.js";
6
+ import "./entity/index.js";
@@ -1 +1,291 @@
1
- import{WorkflowDefinitionModel as e}from"../workflow/workflow.schema.js";import{WorkflowInstanceModel as t}from"../instance/instance.schema.js";import{ApprovalRequestModel as n}from"../approval/approval.schema.js";const r={meta:{name:`workflow.designer`,version:1,description:`Visual workflow designer with drag-and-drop steps`,domain:`workflow-system`,owners:[`@workflow-team`],tags:[`workflow`,`designer`,`admin`]},source:{type:`component`,framework:`react`,componentKey:`WorkflowDesigner`,props:e},targets:[`react`],policy:{flags:[`workflow.designer.enabled`]}},i={meta:{name:`workflow.definition.list`,version:1,description:`List of workflow definitions with status and actions`,domain:`workflow-system`,owners:[`@workflow-team`],tags:[`workflow`,`list`,`admin`]},source:{type:`component`,framework:`react`,componentKey:`WorkflowDefinitionList`,props:e},targets:[`react`,`markdown`],policy:{flags:[`workflow.enabled`]}},a={meta:{name:`workflow.definition.detail`,version:1,description:`Detailed view of a workflow definition with steps`,domain:`workflow-system`,owners:[`@workflow-team`],tags:[`workflow`,`detail`]},source:{type:`component`,framework:`react`,componentKey:`WorkflowDefinitionDetail`,props:e},targets:[`react`,`markdown`],policy:{flags:[`workflow.enabled`]}},o={meta:{name:`workflow.instance.list`,version:1,description:`List of workflow instances with status and progress`,domain:`workflow-system`,owners:[`@workflow-team`],tags:[`workflow`,`instance`,`list`]},source:{type:`component`,framework:`react`,componentKey:`WorkflowInstanceList`,props:t},targets:[`react`,`markdown`],policy:{flags:[`workflow.enabled`]}},s={meta:{name:`workflow.instance.detail`,version:1,description:`Detailed view of a workflow instance with step timeline`,domain:`workflow-system`,owners:[`@workflow-team`],tags:[`workflow`,`instance`,`detail`,`timeline`]},source:{type:`component`,framework:`react`,componentKey:`WorkflowInstanceDetail`,props:t},targets:[`react`,`markdown`],policy:{flags:[`workflow.enabled`]}},c={meta:{name:`workflow.instance.progress`,version:1,description:`Visual progress tracker showing current step in workflow`,domain:`workflow-system`,owners:[`@workflow-team`],tags:[`workflow`,`progress`,`widget`]},source:{type:`component`,framework:`react`,componentKey:`WorkflowProgressTracker`,props:t},targets:[`react`],policy:{flags:[`workflow.enabled`]}},l={meta:{name:`workflow.approval.inbox`,version:1,description:`Inbox showing pending approval requests for current user`,domain:`workflow-system`,owners:[`@workflow-team`],tags:[`workflow`,`approval`,`inbox`]},source:{type:`component`,framework:`react`,componentKey:`ApprovalInbox`,props:n},targets:[`react`,`markdown`],policy:{flags:[`workflow.approvals.enabled`]}},u={meta:{name:`workflow.approval.detail`,version:1,description:`Detailed approval request view with context and actions`,domain:`workflow-system`,owners:[`@workflow-team`],tags:[`workflow`,`approval`,`detail`]},source:{type:`component`,framework:`react`,componentKey:`ApprovalRequestDetail`,props:n},targets:[`react`,`markdown`],policy:{flags:[`workflow.approvals.enabled`]}},d={meta:{name:`workflow.approval.form`,version:1,description:`Form for submitting approval decisions`,domain:`workflow-system`,owners:[`@workflow-team`],tags:[`workflow`,`approval`,`form`]},source:{type:`component`,framework:`react`,componentKey:`ApprovalDecisionForm`},targets:[`react`],policy:{flags:[`workflow.approvals.enabled`]}},f={meta:{name:`workflow.approval.badge`,version:1,description:`Badge showing count of pending approvals`,domain:`workflow-system`,owners:[`@workflow-team`],tags:[`workflow`,`approval`,`badge`,`widget`]},source:{type:`component`,framework:`react`,componentKey:`PendingApprovalsBadge`},targets:[`react`],policy:{flags:[`workflow.approvals.enabled`]}},p={meta:{name:`workflow.metrics`,version:1,description:`Dashboard widget showing workflow metrics and statistics`,domain:`workflow-system`,owners:[`@workflow-team`],tags:[`workflow`,`metrics`,`dashboard`]},source:{type:`component`,framework:`react`,componentKey:`WorkflowMetricsDashboard`},targets:[`react`,`markdown`],policy:{flags:[`workflow.metrics.enabled`]}},m={WorkflowDesignerPresentation:r,WorkflowListPresentation:i,WorkflowDetailPresentation:a,InstanceListPresentation:o,InstanceDetailPresentation:s,ProgressTrackerPresentation:c,ApprovalInboxPresentation:l,ApprovalDetailPresentation:u,ApprovalFormPresentation:d,PendingApprovalsBadgePresentation:f,WorkflowMetricsPresentation:p};export{u as ApprovalDetailPresentation,d as ApprovalFormPresentation,l as ApprovalInboxPresentation,s as InstanceDetailPresentation,o as InstanceListPresentation,f as PendingApprovalsBadgePresentation,c as ProgressTrackerPresentation,r as WorkflowDesignerPresentation,a as WorkflowDetailPresentation,i as WorkflowListPresentation,p as WorkflowMetricsPresentation,m as WorkflowSystemPresentations};
1
+ import { WorkflowDefinitionModel } from "../workflow/workflow.schema.js";
2
+ import { WorkflowInstanceModel } from "../instance/instance.schema.js";
3
+ import { ApprovalRequestModel } from "../approval/approval.schema.js";
4
+
5
+ //#region src/presentations/index.ts
6
+ /**
7
+ * Workflow designer canvas for building workflows.
8
+ */
9
+ const WorkflowDesignerPresentation = {
10
+ meta: {
11
+ name: "workflow.designer",
12
+ version: 1,
13
+ description: "Visual workflow designer with drag-and-drop steps",
14
+ domain: "workflow-system",
15
+ owners: ["@workflow-team"],
16
+ tags: [
17
+ "workflow",
18
+ "designer",
19
+ "admin"
20
+ ]
21
+ },
22
+ source: {
23
+ type: "component",
24
+ framework: "react",
25
+ componentKey: "WorkflowDesigner",
26
+ props: WorkflowDefinitionModel
27
+ },
28
+ targets: ["react"],
29
+ policy: { flags: ["workflow.designer.enabled"] }
30
+ };
31
+ /**
32
+ * List of workflow definitions.
33
+ */
34
+ const WorkflowListPresentation = {
35
+ meta: {
36
+ name: "workflow.definition.list",
37
+ version: 1,
38
+ description: "List of workflow definitions with status and actions",
39
+ domain: "workflow-system",
40
+ owners: ["@workflow-team"],
41
+ tags: [
42
+ "workflow",
43
+ "list",
44
+ "admin"
45
+ ]
46
+ },
47
+ source: {
48
+ type: "component",
49
+ framework: "react",
50
+ componentKey: "WorkflowDefinitionList",
51
+ props: WorkflowDefinitionModel
52
+ },
53
+ targets: ["react", "markdown"],
54
+ policy: { flags: ["workflow.enabled"] }
55
+ };
56
+ /**
57
+ * Workflow definition detail view.
58
+ */
59
+ const WorkflowDetailPresentation = {
60
+ meta: {
61
+ name: "workflow.definition.detail",
62
+ version: 1,
63
+ description: "Detailed view of a workflow definition with steps",
64
+ domain: "workflow-system",
65
+ owners: ["@workflow-team"],
66
+ tags: ["workflow", "detail"]
67
+ },
68
+ source: {
69
+ type: "component",
70
+ framework: "react",
71
+ componentKey: "WorkflowDefinitionDetail",
72
+ props: WorkflowDefinitionModel
73
+ },
74
+ targets: ["react", "markdown"],
75
+ policy: { flags: ["workflow.enabled"] }
76
+ };
77
+ /**
78
+ * List of running workflow instances.
79
+ */
80
+ const InstanceListPresentation = {
81
+ meta: {
82
+ name: "workflow.instance.list",
83
+ version: 1,
84
+ description: "List of workflow instances with status and progress",
85
+ domain: "workflow-system",
86
+ owners: ["@workflow-team"],
87
+ tags: [
88
+ "workflow",
89
+ "instance",
90
+ "list"
91
+ ]
92
+ },
93
+ source: {
94
+ type: "component",
95
+ framework: "react",
96
+ componentKey: "WorkflowInstanceList",
97
+ props: WorkflowInstanceModel
98
+ },
99
+ targets: ["react", "markdown"],
100
+ policy: { flags: ["workflow.enabled"] }
101
+ };
102
+ /**
103
+ * Workflow instance detail view with timeline.
104
+ */
105
+ const InstanceDetailPresentation = {
106
+ meta: {
107
+ name: "workflow.instance.detail",
108
+ version: 1,
109
+ description: "Detailed view of a workflow instance with step timeline",
110
+ domain: "workflow-system",
111
+ owners: ["@workflow-team"],
112
+ tags: [
113
+ "workflow",
114
+ "instance",
115
+ "detail",
116
+ "timeline"
117
+ ]
118
+ },
119
+ source: {
120
+ type: "component",
121
+ framework: "react",
122
+ componentKey: "WorkflowInstanceDetail",
123
+ props: WorkflowInstanceModel
124
+ },
125
+ targets: ["react", "markdown"],
126
+ policy: { flags: ["workflow.enabled"] }
127
+ };
128
+ /**
129
+ * Workflow progress tracker widget.
130
+ */
131
+ const ProgressTrackerPresentation = {
132
+ meta: {
133
+ name: "workflow.instance.progress",
134
+ version: 1,
135
+ description: "Visual progress tracker showing current step in workflow",
136
+ domain: "workflow-system",
137
+ owners: ["@workflow-team"],
138
+ tags: [
139
+ "workflow",
140
+ "progress",
141
+ "widget"
142
+ ]
143
+ },
144
+ source: {
145
+ type: "component",
146
+ framework: "react",
147
+ componentKey: "WorkflowProgressTracker",
148
+ props: WorkflowInstanceModel
149
+ },
150
+ targets: ["react"],
151
+ policy: { flags: ["workflow.enabled"] }
152
+ };
153
+ /**
154
+ * Approval inbox - list of pending approvals.
155
+ */
156
+ const ApprovalInboxPresentation = {
157
+ meta: {
158
+ name: "workflow.approval.inbox",
159
+ version: 1,
160
+ description: "Inbox showing pending approval requests for current user",
161
+ domain: "workflow-system",
162
+ owners: ["@workflow-team"],
163
+ tags: [
164
+ "workflow",
165
+ "approval",
166
+ "inbox"
167
+ ]
168
+ },
169
+ source: {
170
+ type: "component",
171
+ framework: "react",
172
+ componentKey: "ApprovalInbox",
173
+ props: ApprovalRequestModel
174
+ },
175
+ targets: ["react", "markdown"],
176
+ policy: { flags: ["workflow.approvals.enabled"] }
177
+ };
178
+ /**
179
+ * Approval request detail view.
180
+ */
181
+ const ApprovalDetailPresentation = {
182
+ meta: {
183
+ name: "workflow.approval.detail",
184
+ version: 1,
185
+ description: "Detailed approval request view with context and actions",
186
+ domain: "workflow-system",
187
+ owners: ["@workflow-team"],
188
+ tags: [
189
+ "workflow",
190
+ "approval",
191
+ "detail"
192
+ ]
193
+ },
194
+ source: {
195
+ type: "component",
196
+ framework: "react",
197
+ componentKey: "ApprovalRequestDetail",
198
+ props: ApprovalRequestModel
199
+ },
200
+ targets: ["react", "markdown"],
201
+ policy: { flags: ["workflow.approvals.enabled"] }
202
+ };
203
+ /**
204
+ * Approval decision form.
205
+ */
206
+ const ApprovalFormPresentation = {
207
+ meta: {
208
+ name: "workflow.approval.form",
209
+ version: 1,
210
+ description: "Form for submitting approval decisions",
211
+ domain: "workflow-system",
212
+ owners: ["@workflow-team"],
213
+ tags: [
214
+ "workflow",
215
+ "approval",
216
+ "form"
217
+ ]
218
+ },
219
+ source: {
220
+ type: "component",
221
+ framework: "react",
222
+ componentKey: "ApprovalDecisionForm"
223
+ },
224
+ targets: ["react"],
225
+ policy: { flags: ["workflow.approvals.enabled"] }
226
+ };
227
+ /**
228
+ * Pending approvals count badge.
229
+ */
230
+ const PendingApprovalsBadgePresentation = {
231
+ meta: {
232
+ name: "workflow.approval.badge",
233
+ version: 1,
234
+ description: "Badge showing count of pending approvals",
235
+ domain: "workflow-system",
236
+ owners: ["@workflow-team"],
237
+ tags: [
238
+ "workflow",
239
+ "approval",
240
+ "badge",
241
+ "widget"
242
+ ]
243
+ },
244
+ source: {
245
+ type: "component",
246
+ framework: "react",
247
+ componentKey: "PendingApprovalsBadge"
248
+ },
249
+ targets: ["react"],
250
+ policy: { flags: ["workflow.approvals.enabled"] }
251
+ };
252
+ /**
253
+ * Workflow metrics dashboard widget.
254
+ */
255
+ const WorkflowMetricsPresentation = {
256
+ meta: {
257
+ name: "workflow.metrics",
258
+ version: 1,
259
+ description: "Dashboard widget showing workflow metrics and statistics",
260
+ domain: "workflow-system",
261
+ owners: ["@workflow-team"],
262
+ tags: [
263
+ "workflow",
264
+ "metrics",
265
+ "dashboard"
266
+ ]
267
+ },
268
+ source: {
269
+ type: "component",
270
+ framework: "react",
271
+ componentKey: "WorkflowMetricsDashboard"
272
+ },
273
+ targets: ["react", "markdown"],
274
+ policy: { flags: ["workflow.metrics.enabled"] }
275
+ };
276
+ const WorkflowSystemPresentations = {
277
+ WorkflowDesignerPresentation,
278
+ WorkflowListPresentation,
279
+ WorkflowDetailPresentation,
280
+ InstanceListPresentation,
281
+ InstanceDetailPresentation,
282
+ ProgressTrackerPresentation,
283
+ ApprovalInboxPresentation,
284
+ ApprovalDetailPresentation,
285
+ ApprovalFormPresentation,
286
+ PendingApprovalsBadgePresentation,
287
+ WorkflowMetricsPresentation
288
+ };
289
+
290
+ //#endregion
291
+ export { ApprovalDetailPresentation, ApprovalFormPresentation, ApprovalInboxPresentation, InstanceDetailPresentation, InstanceListPresentation, PendingApprovalsBadgePresentation, ProgressTrackerPresentation, WorkflowDesignerPresentation, WorkflowDetailPresentation, WorkflowListPresentation, WorkflowMetricsPresentation, WorkflowSystemPresentations };
@@ -1 +1,3 @@
1
- import{mockDataStore as e}from"./mock-data.js";export{e as mockDataStore};
1
+ import { mockDataStore } from "./mock-data.js";
2
+
3
+ export { mockDataStore };
@@ -1 +1,11 @@
1
- const e={workflows:new Map,steps:new Map,instances:new Map,approvals:new Map,stepExecutions:new Map};export{e as mockDataStore};
1
+ //#region src/shared/mock-data.ts
2
+ const mockDataStore = {
3
+ workflows: /* @__PURE__ */ new Map(),
4
+ steps: /* @__PURE__ */ new Map(),
5
+ instances: /* @__PURE__ */ new Map(),
6
+ approvals: /* @__PURE__ */ new Map(),
7
+ stepExecutions: /* @__PURE__ */ new Map()
8
+ };
9
+
10
+ //#endregion
11
+ export { mockDataStore };