@lssm/example.workflow-system 0.0.0-canary-20251217073102 → 0.0.0-canary-20251217083314
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.enum.d.ts +3 -3
- package/dist/approval/approval.event.d.ts +31 -31
- package/dist/entities/approval.d.ts +36 -36
- package/dist/entities/index.d.ts +127 -127
- package/dist/entities/instance.d.ts +47 -47
- package/dist/entities/step.d.ts +32 -32
- package/dist/entities/workflow.d.ts +23 -23
- package/dist/instance/instance.contracts.d.ts +256 -256
- package/dist/instance/instance.enum.d.ts +2 -2
- package/dist/instance/instance.event.d.ts +87 -87
- package/dist/instance/instance.schema.d.ts +54 -54
- package/dist/workflow/workflow.contracts.d.ts +246 -246
- package/dist/workflow/workflow.enum.d.ts +5 -5
- package/dist/workflow/workflow.event.d.ts +33 -33
- package/dist/workflow/workflow.schema.d.ts +63 -63
- package/package.json +11 -11
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema393 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/instance.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Instance status enum - lifecycle of a workflow instance.
|
|
6
6
|
*/
|
|
7
|
-
declare const InstanceStatusEnum:
|
|
7
|
+
declare const InstanceStatusEnum: _lssm_lib_schema393.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Step execution status enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const StepExecutionStatusEnum:
|
|
11
|
+
declare const StepExecutionStatusEnum: _lssm_lib_schema393.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* WorkflowInstance entity - a running instance of a workflow.
|
|
14
14
|
*
|
|
15
15
|
* When a workflow is triggered, an instance is created. The instance
|
|
16
16
|
* tracks the current state and all data associated with this execution.
|
|
17
17
|
*/
|
|
18
|
-
declare const WorkflowInstanceEntity:
|
|
19
|
-
id:
|
|
20
|
-
workflowDefinitionId:
|
|
21
|
-
referenceId:
|
|
22
|
-
referenceType:
|
|
23
|
-
status:
|
|
24
|
-
currentStepId:
|
|
25
|
-
contextData:
|
|
26
|
-
triggeredBy:
|
|
27
|
-
triggerSource:
|
|
28
|
-
organizationId:
|
|
29
|
-
priority:
|
|
30
|
-
dueAt:
|
|
31
|
-
outcome:
|
|
32
|
-
resultData:
|
|
33
|
-
errorMessage:
|
|
34
|
-
createdAt:
|
|
35
|
-
updatedAt:
|
|
36
|
-
startedAt:
|
|
37
|
-
completedAt:
|
|
38
|
-
workflowDefinition:
|
|
39
|
-
currentStep:
|
|
40
|
-
stepExecutions:
|
|
41
|
-
approvalRequests:
|
|
18
|
+
declare const WorkflowInstanceEntity: _lssm_lib_schema393.EntitySpec<{
|
|
19
|
+
id: _lssm_lib_schema393.EntityScalarField;
|
|
20
|
+
workflowDefinitionId: _lssm_lib_schema393.EntityScalarField;
|
|
21
|
+
referenceId: _lssm_lib_schema393.EntityScalarField;
|
|
22
|
+
referenceType: _lssm_lib_schema393.EntityScalarField;
|
|
23
|
+
status: _lssm_lib_schema393.EntityEnumField;
|
|
24
|
+
currentStepId: _lssm_lib_schema393.EntityScalarField;
|
|
25
|
+
contextData: _lssm_lib_schema393.EntityScalarField;
|
|
26
|
+
triggeredBy: _lssm_lib_schema393.EntityScalarField;
|
|
27
|
+
triggerSource: _lssm_lib_schema393.EntityScalarField;
|
|
28
|
+
organizationId: _lssm_lib_schema393.EntityScalarField;
|
|
29
|
+
priority: _lssm_lib_schema393.EntityScalarField;
|
|
30
|
+
dueAt: _lssm_lib_schema393.EntityScalarField;
|
|
31
|
+
outcome: _lssm_lib_schema393.EntityScalarField;
|
|
32
|
+
resultData: _lssm_lib_schema393.EntityScalarField;
|
|
33
|
+
errorMessage: _lssm_lib_schema393.EntityScalarField;
|
|
34
|
+
createdAt: _lssm_lib_schema393.EntityScalarField;
|
|
35
|
+
updatedAt: _lssm_lib_schema393.EntityScalarField;
|
|
36
|
+
startedAt: _lssm_lib_schema393.EntityScalarField;
|
|
37
|
+
completedAt: _lssm_lib_schema393.EntityScalarField;
|
|
38
|
+
workflowDefinition: _lssm_lib_schema393.EntityRelationField;
|
|
39
|
+
currentStep: _lssm_lib_schema393.EntityRelationField;
|
|
40
|
+
stepExecutions: _lssm_lib_schema393.EntityRelationField;
|
|
41
|
+
approvalRequests: _lssm_lib_schema393.EntityRelationField;
|
|
42
42
|
}>;
|
|
43
43
|
/**
|
|
44
44
|
* StepExecution entity - tracks execution of a step within an instance.
|
|
45
45
|
*/
|
|
46
|
-
declare const StepExecutionEntity:
|
|
47
|
-
id:
|
|
48
|
-
workflowInstanceId:
|
|
49
|
-
workflowStepId:
|
|
50
|
-
status:
|
|
51
|
-
executionOrder:
|
|
52
|
-
inputData:
|
|
53
|
-
outputData:
|
|
54
|
-
actionTaken:
|
|
55
|
-
transitionedTo:
|
|
56
|
-
executedBy:
|
|
57
|
-
errorMessage:
|
|
58
|
-
errorDetails:
|
|
59
|
-
retryCount:
|
|
60
|
-
createdAt:
|
|
61
|
-
updatedAt:
|
|
62
|
-
startedAt:
|
|
63
|
-
completedAt:
|
|
64
|
-
workflowInstance:
|
|
65
|
-
workflowStep:
|
|
46
|
+
declare const StepExecutionEntity: _lssm_lib_schema393.EntitySpec<{
|
|
47
|
+
id: _lssm_lib_schema393.EntityScalarField;
|
|
48
|
+
workflowInstanceId: _lssm_lib_schema393.EntityScalarField;
|
|
49
|
+
workflowStepId: _lssm_lib_schema393.EntityScalarField;
|
|
50
|
+
status: _lssm_lib_schema393.EntityEnumField;
|
|
51
|
+
executionOrder: _lssm_lib_schema393.EntityScalarField;
|
|
52
|
+
inputData: _lssm_lib_schema393.EntityScalarField;
|
|
53
|
+
outputData: _lssm_lib_schema393.EntityScalarField;
|
|
54
|
+
actionTaken: _lssm_lib_schema393.EntityScalarField;
|
|
55
|
+
transitionedTo: _lssm_lib_schema393.EntityScalarField;
|
|
56
|
+
executedBy: _lssm_lib_schema393.EntityScalarField;
|
|
57
|
+
errorMessage: _lssm_lib_schema393.EntityScalarField;
|
|
58
|
+
errorDetails: _lssm_lib_schema393.EntityScalarField;
|
|
59
|
+
retryCount: _lssm_lib_schema393.EntityScalarField;
|
|
60
|
+
createdAt: _lssm_lib_schema393.EntityScalarField;
|
|
61
|
+
updatedAt: _lssm_lib_schema393.EntityScalarField;
|
|
62
|
+
startedAt: _lssm_lib_schema393.EntityScalarField;
|
|
63
|
+
completedAt: _lssm_lib_schema393.EntityScalarField;
|
|
64
|
+
workflowInstance: _lssm_lib_schema393.EntityRelationField;
|
|
65
|
+
workflowStep: _lssm_lib_schema393.EntityRelationField;
|
|
66
66
|
}>;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { InstanceStatusEnum, StepExecutionEntity, StepExecutionStatusEnum, WorkflowInstanceEntity };
|
package/dist/entities/step.d.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema974 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/step.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Step type enum - what kind of step this is.
|
|
6
6
|
*/
|
|
7
|
-
declare const StepTypeEnum:
|
|
7
|
+
declare const StepTypeEnum: _lssm_lib_schema974.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Approval mode enum - how approvals are handled.
|
|
10
10
|
*/
|
|
11
|
-
declare const ApprovalModeEnum:
|
|
11
|
+
declare const ApprovalModeEnum: _lssm_lib_schema974.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* WorkflowStep entity - defines a step in a workflow.
|
|
14
14
|
*
|
|
15
15
|
* Each step represents a state in the workflow state machine,
|
|
16
16
|
* with transitions defined by the `transitions` JSON field.
|
|
17
17
|
*/
|
|
18
|
-
declare const WorkflowStepEntity:
|
|
19
|
-
id:
|
|
20
|
-
workflowDefinitionId:
|
|
21
|
-
name:
|
|
22
|
-
key:
|
|
23
|
-
description:
|
|
24
|
-
type:
|
|
25
|
-
position:
|
|
26
|
-
transitions:
|
|
27
|
-
approvalMode:
|
|
28
|
-
approverRoles:
|
|
29
|
-
approverUserIds:
|
|
30
|
-
escalationConfig:
|
|
31
|
-
assigneeRoles:
|
|
32
|
-
taskTemplate:
|
|
33
|
-
conditionExpression:
|
|
34
|
-
waitDuration:
|
|
35
|
-
waitForEvent:
|
|
36
|
-
actionType:
|
|
37
|
-
actionConfig:
|
|
38
|
-
timeoutSeconds:
|
|
39
|
-
slaSeconds:
|
|
40
|
-
notifyOnEnter:
|
|
41
|
-
notifyOnExit:
|
|
42
|
-
metadata:
|
|
43
|
-
createdAt:
|
|
44
|
-
updatedAt:
|
|
45
|
-
workflowDefinition:
|
|
46
|
-
executions:
|
|
18
|
+
declare const WorkflowStepEntity: _lssm_lib_schema974.EntitySpec<{
|
|
19
|
+
id: _lssm_lib_schema974.EntityScalarField;
|
|
20
|
+
workflowDefinitionId: _lssm_lib_schema974.EntityScalarField;
|
|
21
|
+
name: _lssm_lib_schema974.EntityScalarField;
|
|
22
|
+
key: _lssm_lib_schema974.EntityScalarField;
|
|
23
|
+
description: _lssm_lib_schema974.EntityScalarField;
|
|
24
|
+
type: _lssm_lib_schema974.EntityEnumField;
|
|
25
|
+
position: _lssm_lib_schema974.EntityScalarField;
|
|
26
|
+
transitions: _lssm_lib_schema974.EntityScalarField;
|
|
27
|
+
approvalMode: _lssm_lib_schema974.EntityEnumField;
|
|
28
|
+
approverRoles: _lssm_lib_schema974.EntityScalarField;
|
|
29
|
+
approverUserIds: _lssm_lib_schema974.EntityScalarField;
|
|
30
|
+
escalationConfig: _lssm_lib_schema974.EntityScalarField;
|
|
31
|
+
assigneeRoles: _lssm_lib_schema974.EntityScalarField;
|
|
32
|
+
taskTemplate: _lssm_lib_schema974.EntityScalarField;
|
|
33
|
+
conditionExpression: _lssm_lib_schema974.EntityScalarField;
|
|
34
|
+
waitDuration: _lssm_lib_schema974.EntityScalarField;
|
|
35
|
+
waitForEvent: _lssm_lib_schema974.EntityScalarField;
|
|
36
|
+
actionType: _lssm_lib_schema974.EntityScalarField;
|
|
37
|
+
actionConfig: _lssm_lib_schema974.EntityScalarField;
|
|
38
|
+
timeoutSeconds: _lssm_lib_schema974.EntityScalarField;
|
|
39
|
+
slaSeconds: _lssm_lib_schema974.EntityScalarField;
|
|
40
|
+
notifyOnEnter: _lssm_lib_schema974.EntityScalarField;
|
|
41
|
+
notifyOnExit: _lssm_lib_schema974.EntityScalarField;
|
|
42
|
+
metadata: _lssm_lib_schema974.EntityScalarField;
|
|
43
|
+
createdAt: _lssm_lib_schema974.EntityScalarField;
|
|
44
|
+
updatedAt: _lssm_lib_schema974.EntityScalarField;
|
|
45
|
+
workflowDefinition: _lssm_lib_schema974.EntityRelationField;
|
|
46
|
+
executions: _lssm_lib_schema974.EntityRelationField;
|
|
47
47
|
}>;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { ApprovalModeEnum, StepTypeEnum, WorkflowStepEntity };
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema439 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/workflow.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Workflow status enum - the lifecycle state of a workflow definition.
|
|
6
6
|
*/
|
|
7
|
-
declare const WorkflowStatusEnum:
|
|
7
|
+
declare const WorkflowStatusEnum: _lssm_lib_schema439.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Workflow trigger type enum - what initiates a workflow.
|
|
10
10
|
*/
|
|
11
|
-
declare const WorkflowTriggerTypeEnum:
|
|
11
|
+
declare const WorkflowTriggerTypeEnum: _lssm_lib_schema439.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* WorkflowDefinition entity - defines a workflow blueprint.
|
|
14
14
|
*
|
|
15
15
|
* A workflow definition specifies the structure, steps, and rules
|
|
16
16
|
* for a business process. Instances are created from definitions.
|
|
17
17
|
*/
|
|
18
|
-
declare const WorkflowDefinitionEntity:
|
|
19
|
-
id:
|
|
20
|
-
name:
|
|
21
|
-
key:
|
|
22
|
-
description:
|
|
23
|
-
version:
|
|
24
|
-
status:
|
|
25
|
-
triggerType:
|
|
26
|
-
triggerConfig:
|
|
27
|
-
initialStepId:
|
|
28
|
-
featureFlagKey:
|
|
29
|
-
settings:
|
|
30
|
-
metadata:
|
|
31
|
-
organizationId:
|
|
32
|
-
createdBy:
|
|
33
|
-
createdAt:
|
|
34
|
-
updatedAt:
|
|
35
|
-
publishedAt:
|
|
36
|
-
steps:
|
|
37
|
-
instances:
|
|
18
|
+
declare const WorkflowDefinitionEntity: _lssm_lib_schema439.EntitySpec<{
|
|
19
|
+
id: _lssm_lib_schema439.EntityScalarField;
|
|
20
|
+
name: _lssm_lib_schema439.EntityScalarField;
|
|
21
|
+
key: _lssm_lib_schema439.EntityScalarField;
|
|
22
|
+
description: _lssm_lib_schema439.EntityScalarField;
|
|
23
|
+
version: _lssm_lib_schema439.EntityScalarField;
|
|
24
|
+
status: _lssm_lib_schema439.EntityEnumField;
|
|
25
|
+
triggerType: _lssm_lib_schema439.EntityEnumField;
|
|
26
|
+
triggerConfig: _lssm_lib_schema439.EntityScalarField;
|
|
27
|
+
initialStepId: _lssm_lib_schema439.EntityScalarField;
|
|
28
|
+
featureFlagKey: _lssm_lib_schema439.EntityScalarField;
|
|
29
|
+
settings: _lssm_lib_schema439.EntityScalarField;
|
|
30
|
+
metadata: _lssm_lib_schema439.EntityScalarField;
|
|
31
|
+
organizationId: _lssm_lib_schema439.EntityScalarField;
|
|
32
|
+
createdBy: _lssm_lib_schema439.EntityScalarField;
|
|
33
|
+
createdAt: _lssm_lib_schema439.EntityScalarField;
|
|
34
|
+
updatedAt: _lssm_lib_schema439.EntityScalarField;
|
|
35
|
+
publishedAt: _lssm_lib_schema439.EntityScalarField;
|
|
36
|
+
steps: _lssm_lib_schema439.EntityRelationField;
|
|
37
|
+
instances: _lssm_lib_schema439.EntityRelationField;
|
|
38
38
|
}>;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { WorkflowDefinitionEntity, WorkflowStatusEnum, WorkflowTriggerTypeEnum };
|