@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.
- package/dist/approval/approval.contracts.d.ts +134 -134
- package/dist/approval/approval.contracts.js +250 -1
- package/dist/approval/approval.enum.d.ts +3 -3
- package/dist/approval/approval.enum.js +29 -1
- package/dist/approval/approval.event.d.ts +32 -32
- package/dist/approval/approval.event.js +186 -1
- package/dist/approval/approval.handler.js +71 -1
- package/dist/approval/approval.schema.d.ts +24 -24
- package/dist/approval/approval.schema.js +111 -1
- package/dist/approval/index.js +6 -1
- package/dist/docs/index.js +1 -1
- package/dist/docs/workflow-system.docblock.js +61 -5
- package/dist/entities/approval.d.ts +36 -36
- package/dist/entities/approval.js +128 -1
- package/dist/entities/index.d.ts +127 -127
- package/dist/entities/index.js +31 -1
- package/dist/entities/instance.d.ts +47 -47
- package/dist/entities/instance.js +168 -1
- package/dist/entities/step.d.ts +32 -32
- package/dist/entities/step.js +135 -1
- package/dist/entities/workflow.d.ts +23 -23
- package/dist/entities/workflow.js +102 -1
- package/dist/example.js +50 -1
- package/dist/index.js +19 -1
- package/dist/instance/index.js +6 -1
- package/dist/instance/instance.contracts.d.ts +256 -256
- package/dist/instance/instance.contracts.js +334 -1
- package/dist/instance/instance.enum.d.ts +2 -2
- package/dist/instance/instance.enum.js +20 -1
- package/dist/instance/instance.event.d.ts +87 -87
- package/dist/instance/instance.event.js +214 -1
- package/dist/instance/instance.handler.js +93 -1
- package/dist/instance/instance.schema.d.ts +54 -54
- package/dist/instance/instance.schema.js +173 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +88 -1
- package/dist/libs/contracts/dist/client/index.js +5 -1
- package/dist/libs/contracts/dist/client/react/feature-render.js +2 -1
- package/dist/libs/contracts/dist/client/react/form-render.js +4 -1
- package/dist/libs/contracts/dist/client/react/index.js +4 -1
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +60 -1
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -76
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -350
- package/dist/libs/contracts/dist/docs/index.js +29 -1
- package/dist/libs/contracts/dist/docs/presentations.js +71 -1
- package/dist/libs/contracts/dist/docs/registry.js +44 -1
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -383
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -68
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -140
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -86
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +24 -2
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +21 -2
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -213
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +73 -5
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -262
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +24 -2
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +23 -2
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +25 -16
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +22 -2
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +40 -36
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +23 -2
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +36 -3
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +36 -3
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -1
- package/dist/libs/contracts/dist/events.js +10 -1
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -1
- package/dist/libs/contracts/dist/index.js +71 -1
- package/dist/libs/contracts/dist/install.js +2 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +377 -1
- package/dist/libs/contracts/dist/integrations/index.js +18 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +228 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +159 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +210 -1
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +242 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +13 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -1
- package/dist/libs/contracts/dist/integrations/providers/index.js +11 -1
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -1
- package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -1
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -1
- package/dist/libs/contracts/dist/jsonschema.js +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +306 -1
- package/dist/libs/contracts/dist/knowledge/index.js +7 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -1
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -1
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -1
- package/dist/libs/contracts/dist/llm/exporters.js +19 -1
- package/dist/libs/contracts/dist/llm/index.js +2 -1
- package/dist/libs/contracts/dist/llm/prompts.js +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js +196 -1
- package/dist/libs/contracts/dist/openapi.js +1 -1
- package/dist/libs/contracts/dist/ownership.js +21 -1
- package/dist/libs/contracts/dist/presentations.js +1 -1
- package/dist/libs/contracts/dist/presentations.v2.js +11 -1
- package/dist/libs/contracts/dist/prompt.js +1 -1
- package/dist/libs/contracts/dist/promptRegistry.js +1 -1
- package/dist/libs/contracts/dist/regenerator/index.js +1 -1
- package/dist/libs/contracts/dist/regenerator/service.js +6 -1
- package/dist/libs/contracts/dist/registry.js +2 -1
- package/dist/libs/contracts/dist/resources.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -1
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +49 -1
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +236 -1
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +39 -1
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -1
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/index.js +6 -1
- package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -1
- package/dist/libs/contracts/dist/server/index.js +8 -1
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -1
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -1
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -1
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -1
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -1
- package/dist/libs/contracts/dist/server/provider-mcp.js +1 -1
- package/dist/libs/contracts/dist/server/rest-elysia.js +1 -1
- package/dist/libs/contracts/dist/server/rest-express.js +1 -1
- package/dist/libs/contracts/dist/server/rest-generic.js +1 -1
- package/dist/libs/contracts/dist/server/rest-next-app.js +1 -1
- package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -1
- package/dist/libs/contracts/dist/spec.js +34 -1
- package/dist/libs/contracts/dist/telemetry/index.js +1 -1
- package/dist/libs/contracts/dist/telemetry/tracker.js +1 -1
- package/dist/libs/contracts/dist/tests/index.js +1 -1
- package/dist/libs/contracts/dist/tests/runner.js +2 -1
- package/dist/libs/contracts/dist/workflow/index.js +1 -1
- package/dist/libs/contracts/dist/workflow/runner.js +1 -1
- package/dist/libs/schema/dist/EnumType.js +56 -1
- package/dist/libs/schema/dist/FieldType.js +49 -1
- package/dist/libs/schema/dist/ScalarTypeEnum.js +236 -1
- package/dist/libs/schema/dist/SchemaModel.js +39 -1
- package/dist/libs/schema/dist/entity/defineEntity.js +236 -1
- package/dist/libs/schema/dist/entity/index.js +2 -1
- package/dist/libs/schema/dist/entity/types.js +1 -1
- package/dist/libs/schema/dist/index.js +6 -1
- package/dist/presentations/index.js +291 -1
- package/dist/shared/index.js +3 -1
- package/dist/shared/mock-data.js +11 -1
- package/dist/state-machine/index.js +157 -1
- package/dist/workflow/index.js +6 -1
- package/dist/workflow/workflow.contracts.d.ts +246 -246
- package/dist/workflow/workflow.contracts.js +239 -1
- package/dist/workflow/workflow.enum.d.ts +5 -5
- package/dist/workflow/workflow.enum.js +47 -1
- package/dist/workflow/workflow.event.d.ts +33 -33
- package/dist/workflow/workflow.event.js +116 -1
- package/dist/workflow/workflow.handler.js +65 -1
- package/dist/workflow/workflow.schema.d.ts +63 -63
- package/dist/workflow/workflow.schema.js +250 -1
- package/dist/workflow-system.feature.js +337 -1
- package/package.json +11 -11
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema338 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/workflow/workflow.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* A step in a workflow definition.
|
|
6
6
|
*/
|
|
7
|
-
declare const WorkflowStepModel:
|
|
7
|
+
declare const WorkflowStepModel: _lssm_lib_schema338.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
key: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
name: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
description: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
22
22
|
isOptional: true;
|
|
23
23
|
};
|
|
24
24
|
type: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema338.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
position: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema338.FieldType<number, number>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
transitions: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema338.FieldType<unknown, unknown>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
approvalMode: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema338.EnumType<[string, string, string, string]>;
|
|
38
38
|
isOptional: true;
|
|
39
39
|
};
|
|
40
40
|
approverRoles: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
42
42
|
isArray: true;
|
|
43
43
|
isOptional: true;
|
|
44
44
|
};
|
|
@@ -46,91 +46,91 @@ declare const WorkflowStepModel: _lssm_lib_schema952.SchemaModel<{
|
|
|
46
46
|
/**
|
|
47
47
|
* A workflow definition.
|
|
48
48
|
*/
|
|
49
|
-
declare const WorkflowDefinitionModel:
|
|
49
|
+
declare const WorkflowDefinitionModel: _lssm_lib_schema338.SchemaModel<{
|
|
50
50
|
id: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
name: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
key: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
description: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
64
64
|
isOptional: true;
|
|
65
65
|
};
|
|
66
66
|
version: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema338.FieldType<number, number>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
status: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema338.EnumType<[string, string, string, string]>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
triggerType: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema338.EnumType<[string, string, string, string]>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
initialStepId: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
80
80
|
isOptional: true;
|
|
81
81
|
};
|
|
82
82
|
featureFlagKey: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
84
84
|
isOptional: true;
|
|
85
85
|
};
|
|
86
86
|
organizationId: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
88
88
|
isOptional: false;
|
|
89
89
|
};
|
|
90
90
|
createdAt: {
|
|
91
|
-
type:
|
|
91
|
+
type: _lssm_lib_schema338.FieldType<Date, string>;
|
|
92
92
|
isOptional: false;
|
|
93
93
|
};
|
|
94
94
|
updatedAt: {
|
|
95
|
-
type:
|
|
95
|
+
type: _lssm_lib_schema338.FieldType<Date, string>;
|
|
96
96
|
isOptional: false;
|
|
97
97
|
};
|
|
98
98
|
steps: {
|
|
99
|
-
type:
|
|
99
|
+
type: _lssm_lib_schema338.SchemaModel<{
|
|
100
100
|
id: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
key: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
name: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
description: {
|
|
113
|
-
type:
|
|
113
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
114
114
|
isOptional: true;
|
|
115
115
|
};
|
|
116
116
|
type: {
|
|
117
|
-
type:
|
|
117
|
+
type: _lssm_lib_schema338.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
position: {
|
|
121
|
-
type:
|
|
121
|
+
type: _lssm_lib_schema338.FieldType<number, number>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
transitions: {
|
|
125
|
-
type:
|
|
125
|
+
type: _lssm_lib_schema338.FieldType<unknown, unknown>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
approvalMode: {
|
|
129
|
-
type:
|
|
129
|
+
type: _lssm_lib_schema338.EnumType<[string, string, string, string]>;
|
|
130
130
|
isOptional: true;
|
|
131
131
|
};
|
|
132
132
|
approverRoles: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
134
134
|
isArray: true;
|
|
135
135
|
isOptional: true;
|
|
136
136
|
};
|
|
@@ -142,121 +142,121 @@ declare const WorkflowDefinitionModel: _lssm_lib_schema952.SchemaModel<{
|
|
|
142
142
|
/**
|
|
143
143
|
* Input for creating a workflow definition.
|
|
144
144
|
*/
|
|
145
|
-
declare const CreateWorkflowInputModel:
|
|
145
|
+
declare const CreateWorkflowInputModel: _lssm_lib_schema338.SchemaModel<{
|
|
146
146
|
name: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
key: {
|
|
151
|
-
type:
|
|
151
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
152
152
|
isOptional: false;
|
|
153
153
|
};
|
|
154
154
|
description: {
|
|
155
|
-
type:
|
|
155
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
156
156
|
isOptional: true;
|
|
157
157
|
};
|
|
158
158
|
triggerType: {
|
|
159
|
-
type:
|
|
159
|
+
type: _lssm_lib_schema338.EnumType<[string, string, string, string]>;
|
|
160
160
|
isOptional: true;
|
|
161
161
|
};
|
|
162
162
|
triggerConfig: {
|
|
163
|
-
type:
|
|
163
|
+
type: _lssm_lib_schema338.FieldType<unknown, unknown>;
|
|
164
164
|
isOptional: true;
|
|
165
165
|
};
|
|
166
166
|
featureFlagKey: {
|
|
167
|
-
type:
|
|
167
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
168
168
|
isOptional: true;
|
|
169
169
|
};
|
|
170
170
|
settings: {
|
|
171
|
-
type:
|
|
171
|
+
type: _lssm_lib_schema338.FieldType<unknown, unknown>;
|
|
172
172
|
isOptional: true;
|
|
173
173
|
};
|
|
174
174
|
}>;
|
|
175
175
|
/**
|
|
176
176
|
* Input for updating a workflow definition.
|
|
177
177
|
*/
|
|
178
|
-
declare const UpdateWorkflowInputModel:
|
|
178
|
+
declare const UpdateWorkflowInputModel: _lssm_lib_schema338.SchemaModel<{
|
|
179
179
|
workflowId: {
|
|
180
|
-
type:
|
|
180
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
181
181
|
isOptional: false;
|
|
182
182
|
};
|
|
183
183
|
name: {
|
|
184
|
-
type:
|
|
184
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
185
185
|
isOptional: true;
|
|
186
186
|
};
|
|
187
187
|
description: {
|
|
188
|
-
type:
|
|
188
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
189
189
|
isOptional: true;
|
|
190
190
|
};
|
|
191
191
|
triggerType: {
|
|
192
|
-
type:
|
|
192
|
+
type: _lssm_lib_schema338.EnumType<[string, string, string, string]>;
|
|
193
193
|
isOptional: true;
|
|
194
194
|
};
|
|
195
195
|
triggerConfig: {
|
|
196
|
-
type:
|
|
196
|
+
type: _lssm_lib_schema338.FieldType<unknown, unknown>;
|
|
197
197
|
isOptional: true;
|
|
198
198
|
};
|
|
199
199
|
featureFlagKey: {
|
|
200
|
-
type:
|
|
200
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
201
201
|
isOptional: true;
|
|
202
202
|
};
|
|
203
203
|
settings: {
|
|
204
|
-
type:
|
|
204
|
+
type: _lssm_lib_schema338.FieldType<unknown, unknown>;
|
|
205
205
|
isOptional: true;
|
|
206
206
|
};
|
|
207
207
|
}>;
|
|
208
208
|
/**
|
|
209
209
|
* Input for adding a step to a workflow.
|
|
210
210
|
*/
|
|
211
|
-
declare const AddStepInputModel:
|
|
211
|
+
declare const AddStepInputModel: _lssm_lib_schema338.SchemaModel<{
|
|
212
212
|
workflowId: {
|
|
213
|
-
type:
|
|
213
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
214
214
|
isOptional: false;
|
|
215
215
|
};
|
|
216
216
|
key: {
|
|
217
|
-
type:
|
|
217
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
218
218
|
isOptional: false;
|
|
219
219
|
};
|
|
220
220
|
name: {
|
|
221
|
-
type:
|
|
221
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
222
222
|
isOptional: false;
|
|
223
223
|
};
|
|
224
224
|
description: {
|
|
225
|
-
type:
|
|
225
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
226
226
|
isOptional: true;
|
|
227
227
|
};
|
|
228
228
|
type: {
|
|
229
|
-
type:
|
|
229
|
+
type: _lssm_lib_schema338.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
230
230
|
isOptional: false;
|
|
231
231
|
};
|
|
232
232
|
position: {
|
|
233
|
-
type:
|
|
233
|
+
type: _lssm_lib_schema338.FieldType<number, number>;
|
|
234
234
|
isOptional: true;
|
|
235
235
|
};
|
|
236
236
|
transitions: {
|
|
237
|
-
type:
|
|
237
|
+
type: _lssm_lib_schema338.FieldType<unknown, unknown>;
|
|
238
238
|
isOptional: false;
|
|
239
239
|
};
|
|
240
240
|
approvalMode: {
|
|
241
|
-
type:
|
|
241
|
+
type: _lssm_lib_schema338.EnumType<[string, string, string, string]>;
|
|
242
242
|
isOptional: true;
|
|
243
243
|
};
|
|
244
244
|
approverRoles: {
|
|
245
|
-
type:
|
|
245
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
246
246
|
isArray: true;
|
|
247
247
|
isOptional: true;
|
|
248
248
|
};
|
|
249
249
|
approverUserIds: {
|
|
250
|
-
type:
|
|
250
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
251
251
|
isArray: true;
|
|
252
252
|
isOptional: true;
|
|
253
253
|
};
|
|
254
254
|
timeoutSeconds: {
|
|
255
|
-
type:
|
|
255
|
+
type: _lssm_lib_schema338.FieldType<number, number>;
|
|
256
256
|
isOptional: true;
|
|
257
257
|
};
|
|
258
258
|
slaSeconds: {
|
|
259
|
-
type:
|
|
259
|
+
type: _lssm_lib_schema338.FieldType<number, number>;
|
|
260
260
|
isOptional: true;
|
|
261
261
|
};
|
|
262
262
|
}>;
|
|
@@ -1 +1,250 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { ScalarTypeEnum } from "../libs/schema/dist/ScalarTypeEnum.js";
|
|
2
|
+
import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
|
|
3
|
+
import "../libs/schema/dist/index.js";
|
|
4
|
+
import { ApprovalModeEnum, StepTypeEnum, TriggerTypeEnum, WorkflowStatusEnum } from "./workflow.enum.js";
|
|
5
|
+
|
|
6
|
+
//#region src/workflow/workflow.schema.ts
|
|
7
|
+
/**
|
|
8
|
+
* A step in a workflow definition.
|
|
9
|
+
*/
|
|
10
|
+
const WorkflowStepModel = defineSchemaModel({
|
|
11
|
+
name: "WorkflowStepModel",
|
|
12
|
+
description: "A step in a workflow definition",
|
|
13
|
+
fields: {
|
|
14
|
+
id: {
|
|
15
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
16
|
+
isOptional: false
|
|
17
|
+
},
|
|
18
|
+
key: {
|
|
19
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
20
|
+
isOptional: false
|
|
21
|
+
},
|
|
22
|
+
name: {
|
|
23
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
24
|
+
isOptional: false
|
|
25
|
+
},
|
|
26
|
+
description: {
|
|
27
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
28
|
+
isOptional: true
|
|
29
|
+
},
|
|
30
|
+
type: {
|
|
31
|
+
type: StepTypeEnum,
|
|
32
|
+
isOptional: false
|
|
33
|
+
},
|
|
34
|
+
position: {
|
|
35
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
36
|
+
isOptional: false
|
|
37
|
+
},
|
|
38
|
+
transitions: {
|
|
39
|
+
type: ScalarTypeEnum.JSON(),
|
|
40
|
+
isOptional: false
|
|
41
|
+
},
|
|
42
|
+
approvalMode: {
|
|
43
|
+
type: ApprovalModeEnum,
|
|
44
|
+
isOptional: true
|
|
45
|
+
},
|
|
46
|
+
approverRoles: {
|
|
47
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
48
|
+
isArray: true,
|
|
49
|
+
isOptional: true
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* A workflow definition.
|
|
55
|
+
*/
|
|
56
|
+
const WorkflowDefinitionModel = defineSchemaModel({
|
|
57
|
+
name: "WorkflowDefinitionModel",
|
|
58
|
+
description: "A workflow definition",
|
|
59
|
+
fields: {
|
|
60
|
+
id: {
|
|
61
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
62
|
+
isOptional: false
|
|
63
|
+
},
|
|
64
|
+
name: {
|
|
65
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
66
|
+
isOptional: false
|
|
67
|
+
},
|
|
68
|
+
key: {
|
|
69
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
70
|
+
isOptional: false
|
|
71
|
+
},
|
|
72
|
+
description: {
|
|
73
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
74
|
+
isOptional: true
|
|
75
|
+
},
|
|
76
|
+
version: {
|
|
77
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
78
|
+
isOptional: false
|
|
79
|
+
},
|
|
80
|
+
status: {
|
|
81
|
+
type: WorkflowStatusEnum,
|
|
82
|
+
isOptional: false
|
|
83
|
+
},
|
|
84
|
+
triggerType: {
|
|
85
|
+
type: TriggerTypeEnum,
|
|
86
|
+
isOptional: false
|
|
87
|
+
},
|
|
88
|
+
initialStepId: {
|
|
89
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
90
|
+
isOptional: true
|
|
91
|
+
},
|
|
92
|
+
featureFlagKey: {
|
|
93
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
94
|
+
isOptional: true
|
|
95
|
+
},
|
|
96
|
+
organizationId: {
|
|
97
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
98
|
+
isOptional: false
|
|
99
|
+
},
|
|
100
|
+
createdAt: {
|
|
101
|
+
type: ScalarTypeEnum.DateTime(),
|
|
102
|
+
isOptional: false
|
|
103
|
+
},
|
|
104
|
+
updatedAt: {
|
|
105
|
+
type: ScalarTypeEnum.DateTime(),
|
|
106
|
+
isOptional: false
|
|
107
|
+
},
|
|
108
|
+
steps: {
|
|
109
|
+
type: WorkflowStepModel,
|
|
110
|
+
isArray: true,
|
|
111
|
+
isOptional: true
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
/**
|
|
116
|
+
* Input for creating a workflow definition.
|
|
117
|
+
*/
|
|
118
|
+
const CreateWorkflowInputModel = defineSchemaModel({
|
|
119
|
+
name: "CreateWorkflowInput",
|
|
120
|
+
description: "Input for creating a workflow definition",
|
|
121
|
+
fields: {
|
|
122
|
+
name: {
|
|
123
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
124
|
+
isOptional: false
|
|
125
|
+
},
|
|
126
|
+
key: {
|
|
127
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
128
|
+
isOptional: false
|
|
129
|
+
},
|
|
130
|
+
description: {
|
|
131
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
132
|
+
isOptional: true
|
|
133
|
+
},
|
|
134
|
+
triggerType: {
|
|
135
|
+
type: TriggerTypeEnum,
|
|
136
|
+
isOptional: true
|
|
137
|
+
},
|
|
138
|
+
triggerConfig: {
|
|
139
|
+
type: ScalarTypeEnum.JSON(),
|
|
140
|
+
isOptional: true
|
|
141
|
+
},
|
|
142
|
+
featureFlagKey: {
|
|
143
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
144
|
+
isOptional: true
|
|
145
|
+
},
|
|
146
|
+
settings: {
|
|
147
|
+
type: ScalarTypeEnum.JSON(),
|
|
148
|
+
isOptional: true
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
/**
|
|
153
|
+
* Input for updating a workflow definition.
|
|
154
|
+
*/
|
|
155
|
+
const UpdateWorkflowInputModel = defineSchemaModel({
|
|
156
|
+
name: "UpdateWorkflowInput",
|
|
157
|
+
description: "Input for updating a workflow definition",
|
|
158
|
+
fields: {
|
|
159
|
+
workflowId: {
|
|
160
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
161
|
+
isOptional: false
|
|
162
|
+
},
|
|
163
|
+
name: {
|
|
164
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
165
|
+
isOptional: true
|
|
166
|
+
},
|
|
167
|
+
description: {
|
|
168
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
169
|
+
isOptional: true
|
|
170
|
+
},
|
|
171
|
+
triggerType: {
|
|
172
|
+
type: TriggerTypeEnum,
|
|
173
|
+
isOptional: true
|
|
174
|
+
},
|
|
175
|
+
triggerConfig: {
|
|
176
|
+
type: ScalarTypeEnum.JSON(),
|
|
177
|
+
isOptional: true
|
|
178
|
+
},
|
|
179
|
+
featureFlagKey: {
|
|
180
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
181
|
+
isOptional: true
|
|
182
|
+
},
|
|
183
|
+
settings: {
|
|
184
|
+
type: ScalarTypeEnum.JSON(),
|
|
185
|
+
isOptional: true
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
/**
|
|
190
|
+
* Input for adding a step to a workflow.
|
|
191
|
+
*/
|
|
192
|
+
const AddStepInputModel = defineSchemaModel({
|
|
193
|
+
name: "AddStepInput",
|
|
194
|
+
description: "Input for adding a step to a workflow",
|
|
195
|
+
fields: {
|
|
196
|
+
workflowId: {
|
|
197
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
198
|
+
isOptional: false
|
|
199
|
+
},
|
|
200
|
+
key: {
|
|
201
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
202
|
+
isOptional: false
|
|
203
|
+
},
|
|
204
|
+
name: {
|
|
205
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
206
|
+
isOptional: false
|
|
207
|
+
},
|
|
208
|
+
description: {
|
|
209
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
210
|
+
isOptional: true
|
|
211
|
+
},
|
|
212
|
+
type: {
|
|
213
|
+
type: StepTypeEnum,
|
|
214
|
+
isOptional: false
|
|
215
|
+
},
|
|
216
|
+
position: {
|
|
217
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
218
|
+
isOptional: true
|
|
219
|
+
},
|
|
220
|
+
transitions: {
|
|
221
|
+
type: ScalarTypeEnum.JSON(),
|
|
222
|
+
isOptional: false
|
|
223
|
+
},
|
|
224
|
+
approvalMode: {
|
|
225
|
+
type: ApprovalModeEnum,
|
|
226
|
+
isOptional: true
|
|
227
|
+
},
|
|
228
|
+
approverRoles: {
|
|
229
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
230
|
+
isArray: true,
|
|
231
|
+
isOptional: true
|
|
232
|
+
},
|
|
233
|
+
approverUserIds: {
|
|
234
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
235
|
+
isArray: true,
|
|
236
|
+
isOptional: true
|
|
237
|
+
},
|
|
238
|
+
timeoutSeconds: {
|
|
239
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
240
|
+
isOptional: true
|
|
241
|
+
},
|
|
242
|
+
slaSeconds: {
|
|
243
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
244
|
+
isOptional: true
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
//#endregion
|
|
250
|
+
export { AddStepInputModel, CreateWorkflowInputModel, UpdateWorkflowInputModel, WorkflowDefinitionModel, WorkflowStepModel };
|