@contractspec/example.workflow-system 1.45.6 → 1.46.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.
- 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.enum.d.ts +2 -2
- package/dist/instance/instance.event.d.ts +86 -86
- package/dist/workflow/workflow.enum.d.ts +5 -5
- package/dist/workflow/workflow.event.d.ts +32 -32
- package/package.json +5 -5
package/dist/entities/index.d.ts
CHANGED
|
@@ -2,136 +2,136 @@ import { ApprovalCommentEntity, ApprovalDecisionEnum, ApprovalRequestEntity, App
|
|
|
2
2
|
import { WorkflowDefinitionEntity, WorkflowStatusEnum, WorkflowTriggerTypeEnum } from "./workflow.js";
|
|
3
3
|
import { ApprovalModeEnum, StepTypeEnum, WorkflowStepEntity } from "./step.js";
|
|
4
4
|
import { InstanceStatusEnum, StepExecutionEntity, StepExecutionStatusEnum, WorkflowInstanceEntity } from "./instance.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _contractspec_lib_schema284 from "@contractspec/lib.schema";
|
|
6
6
|
import { ModuleSchemaContribution } from "@contractspec/lib.schema";
|
|
7
7
|
|
|
8
8
|
//#region src/entities/index.d.ts
|
|
9
|
-
declare const workflowSystemEntities: (
|
|
10
|
-
id:
|
|
11
|
-
workflowInstanceId:
|
|
12
|
-
stepExecutionId:
|
|
13
|
-
approverId:
|
|
14
|
-
approverRole:
|
|
15
|
-
title:
|
|
16
|
-
description:
|
|
17
|
-
status:
|
|
18
|
-
decision:
|
|
19
|
-
decisionComment:
|
|
20
|
-
decidedAt:
|
|
21
|
-
delegatedTo:
|
|
22
|
-
delegationReason:
|
|
23
|
-
escalationLevel:
|
|
24
|
-
escalatedAt:
|
|
25
|
-
dueAt:
|
|
26
|
-
reminderSentAt:
|
|
27
|
-
contextSnapshot:
|
|
28
|
-
sequenceOrder:
|
|
29
|
-
createdAt:
|
|
30
|
-
updatedAt:
|
|
31
|
-
workflowInstance:
|
|
32
|
-
stepExecution:
|
|
33
|
-
}> |
|
|
34
|
-
id:
|
|
35
|
-
approvalRequestId:
|
|
36
|
-
authorId:
|
|
37
|
-
content:
|
|
38
|
-
isInternal:
|
|
39
|
-
createdAt:
|
|
40
|
-
updatedAt:
|
|
41
|
-
approvalRequest:
|
|
42
|
-
}> |
|
|
43
|
-
id:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
9
|
+
declare const workflowSystemEntities: (_contractspec_lib_schema284.EntitySpec<{
|
|
10
|
+
id: _contractspec_lib_schema284.EntityScalarField;
|
|
11
|
+
workflowInstanceId: _contractspec_lib_schema284.EntityScalarField;
|
|
12
|
+
stepExecutionId: _contractspec_lib_schema284.EntityScalarField;
|
|
13
|
+
approverId: _contractspec_lib_schema284.EntityScalarField;
|
|
14
|
+
approverRole: _contractspec_lib_schema284.EntityScalarField;
|
|
15
|
+
title: _contractspec_lib_schema284.EntityScalarField;
|
|
16
|
+
description: _contractspec_lib_schema284.EntityScalarField;
|
|
17
|
+
status: _contractspec_lib_schema284.EntityEnumField;
|
|
18
|
+
decision: _contractspec_lib_schema284.EntityEnumField;
|
|
19
|
+
decisionComment: _contractspec_lib_schema284.EntityScalarField;
|
|
20
|
+
decidedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
21
|
+
delegatedTo: _contractspec_lib_schema284.EntityScalarField;
|
|
22
|
+
delegationReason: _contractspec_lib_schema284.EntityScalarField;
|
|
23
|
+
escalationLevel: _contractspec_lib_schema284.EntityScalarField;
|
|
24
|
+
escalatedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
25
|
+
dueAt: _contractspec_lib_schema284.EntityScalarField;
|
|
26
|
+
reminderSentAt: _contractspec_lib_schema284.EntityScalarField;
|
|
27
|
+
contextSnapshot: _contractspec_lib_schema284.EntityScalarField;
|
|
28
|
+
sequenceOrder: _contractspec_lib_schema284.EntityScalarField;
|
|
29
|
+
createdAt: _contractspec_lib_schema284.EntityScalarField;
|
|
30
|
+
updatedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
31
|
+
workflowInstance: _contractspec_lib_schema284.EntityRelationField;
|
|
32
|
+
stepExecution: _contractspec_lib_schema284.EntityRelationField;
|
|
33
|
+
}> | _contractspec_lib_schema284.EntitySpec<{
|
|
34
|
+
id: _contractspec_lib_schema284.EntityScalarField;
|
|
35
|
+
approvalRequestId: _contractspec_lib_schema284.EntityScalarField;
|
|
36
|
+
authorId: _contractspec_lib_schema284.EntityScalarField;
|
|
37
|
+
content: _contractspec_lib_schema284.EntityScalarField;
|
|
38
|
+
isInternal: _contractspec_lib_schema284.EntityScalarField;
|
|
39
|
+
createdAt: _contractspec_lib_schema284.EntityScalarField;
|
|
40
|
+
updatedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
41
|
+
approvalRequest: _contractspec_lib_schema284.EntityRelationField;
|
|
42
|
+
}> | _contractspec_lib_schema284.EntitySpec<{
|
|
43
|
+
id: _contractspec_lib_schema284.EntityScalarField;
|
|
44
|
+
name: _contractspec_lib_schema284.EntityScalarField;
|
|
45
|
+
key: _contractspec_lib_schema284.EntityScalarField;
|
|
46
|
+
description: _contractspec_lib_schema284.EntityScalarField;
|
|
47
|
+
version: _contractspec_lib_schema284.EntityScalarField;
|
|
48
|
+
status: _contractspec_lib_schema284.EntityEnumField;
|
|
49
|
+
triggerType: _contractspec_lib_schema284.EntityEnumField;
|
|
50
|
+
triggerConfig: _contractspec_lib_schema284.EntityScalarField;
|
|
51
|
+
initialStepId: _contractspec_lib_schema284.EntityScalarField;
|
|
52
|
+
featureFlagKey: _contractspec_lib_schema284.EntityScalarField;
|
|
53
|
+
settings: _contractspec_lib_schema284.EntityScalarField;
|
|
54
|
+
metadata: _contractspec_lib_schema284.EntityScalarField;
|
|
55
|
+
organizationId: _contractspec_lib_schema284.EntityScalarField;
|
|
56
|
+
createdBy: _contractspec_lib_schema284.EntityScalarField;
|
|
57
|
+
createdAt: _contractspec_lib_schema284.EntityScalarField;
|
|
58
|
+
updatedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
59
|
+
publishedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
60
|
+
steps: _contractspec_lib_schema284.EntityRelationField;
|
|
61
|
+
instances: _contractspec_lib_schema284.EntityRelationField;
|
|
62
|
+
}> | _contractspec_lib_schema284.EntitySpec<{
|
|
63
|
+
id: _contractspec_lib_schema284.EntityScalarField;
|
|
64
|
+
workflowDefinitionId: _contractspec_lib_schema284.EntityScalarField;
|
|
65
|
+
name: _contractspec_lib_schema284.EntityScalarField;
|
|
66
|
+
key: _contractspec_lib_schema284.EntityScalarField;
|
|
67
|
+
description: _contractspec_lib_schema284.EntityScalarField;
|
|
68
|
+
type: _contractspec_lib_schema284.EntityEnumField;
|
|
69
|
+
position: _contractspec_lib_schema284.EntityScalarField;
|
|
70
|
+
transitions: _contractspec_lib_schema284.EntityScalarField;
|
|
71
|
+
approvalMode: _contractspec_lib_schema284.EntityEnumField;
|
|
72
|
+
approverRoles: _contractspec_lib_schema284.EntityScalarField;
|
|
73
|
+
approverUserIds: _contractspec_lib_schema284.EntityScalarField;
|
|
74
|
+
escalationConfig: _contractspec_lib_schema284.EntityScalarField;
|
|
75
|
+
assigneeRoles: _contractspec_lib_schema284.EntityScalarField;
|
|
76
|
+
taskTemplate: _contractspec_lib_schema284.EntityScalarField;
|
|
77
|
+
conditionExpression: _contractspec_lib_schema284.EntityScalarField;
|
|
78
|
+
waitDuration: _contractspec_lib_schema284.EntityScalarField;
|
|
79
|
+
waitForEvent: _contractspec_lib_schema284.EntityScalarField;
|
|
80
|
+
actionType: _contractspec_lib_schema284.EntityScalarField;
|
|
81
|
+
actionConfig: _contractspec_lib_schema284.EntityScalarField;
|
|
82
|
+
timeoutSeconds: _contractspec_lib_schema284.EntityScalarField;
|
|
83
|
+
slaSeconds: _contractspec_lib_schema284.EntityScalarField;
|
|
84
|
+
notifyOnEnter: _contractspec_lib_schema284.EntityScalarField;
|
|
85
|
+
notifyOnExit: _contractspec_lib_schema284.EntityScalarField;
|
|
86
|
+
metadata: _contractspec_lib_schema284.EntityScalarField;
|
|
87
|
+
createdAt: _contractspec_lib_schema284.EntityScalarField;
|
|
88
|
+
updatedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
89
|
+
workflowDefinition: _contractspec_lib_schema284.EntityRelationField;
|
|
90
|
+
executions: _contractspec_lib_schema284.EntityRelationField;
|
|
91
|
+
}> | _contractspec_lib_schema284.EntitySpec<{
|
|
92
|
+
id: _contractspec_lib_schema284.EntityScalarField;
|
|
93
|
+
workflowDefinitionId: _contractspec_lib_schema284.EntityScalarField;
|
|
94
|
+
referenceId: _contractspec_lib_schema284.EntityScalarField;
|
|
95
|
+
referenceType: _contractspec_lib_schema284.EntityScalarField;
|
|
96
|
+
status: _contractspec_lib_schema284.EntityEnumField;
|
|
97
|
+
currentStepId: _contractspec_lib_schema284.EntityScalarField;
|
|
98
|
+
contextData: _contractspec_lib_schema284.EntityScalarField;
|
|
99
|
+
triggeredBy: _contractspec_lib_schema284.EntityScalarField;
|
|
100
|
+
triggerSource: _contractspec_lib_schema284.EntityScalarField;
|
|
101
|
+
organizationId: _contractspec_lib_schema284.EntityScalarField;
|
|
102
|
+
priority: _contractspec_lib_schema284.EntityScalarField;
|
|
103
|
+
dueAt: _contractspec_lib_schema284.EntityScalarField;
|
|
104
|
+
outcome: _contractspec_lib_schema284.EntityScalarField;
|
|
105
|
+
resultData: _contractspec_lib_schema284.EntityScalarField;
|
|
106
|
+
errorMessage: _contractspec_lib_schema284.EntityScalarField;
|
|
107
|
+
createdAt: _contractspec_lib_schema284.EntityScalarField;
|
|
108
|
+
updatedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
109
|
+
startedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
110
|
+
completedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
111
|
+
workflowDefinition: _contractspec_lib_schema284.EntityRelationField;
|
|
112
|
+
currentStep: _contractspec_lib_schema284.EntityRelationField;
|
|
113
|
+
stepExecutions: _contractspec_lib_schema284.EntityRelationField;
|
|
114
|
+
approvalRequests: _contractspec_lib_schema284.EntityRelationField;
|
|
115
|
+
}> | _contractspec_lib_schema284.EntitySpec<{
|
|
116
|
+
id: _contractspec_lib_schema284.EntityScalarField;
|
|
117
|
+
workflowInstanceId: _contractspec_lib_schema284.EntityScalarField;
|
|
118
|
+
workflowStepId: _contractspec_lib_schema284.EntityScalarField;
|
|
119
|
+
status: _contractspec_lib_schema284.EntityEnumField;
|
|
120
|
+
executionOrder: _contractspec_lib_schema284.EntityScalarField;
|
|
121
|
+
inputData: _contractspec_lib_schema284.EntityScalarField;
|
|
122
|
+
outputData: _contractspec_lib_schema284.EntityScalarField;
|
|
123
|
+
actionTaken: _contractspec_lib_schema284.EntityScalarField;
|
|
124
|
+
transitionedTo: _contractspec_lib_schema284.EntityScalarField;
|
|
125
|
+
executedBy: _contractspec_lib_schema284.EntityScalarField;
|
|
126
|
+
errorMessage: _contractspec_lib_schema284.EntityScalarField;
|
|
127
|
+
errorDetails: _contractspec_lib_schema284.EntityScalarField;
|
|
128
|
+
retryCount: _contractspec_lib_schema284.EntityScalarField;
|
|
129
|
+
createdAt: _contractspec_lib_schema284.EntityScalarField;
|
|
130
|
+
updatedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
131
|
+
startedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
132
|
+
completedAt: _contractspec_lib_schema284.EntityScalarField;
|
|
133
|
+
workflowInstance: _contractspec_lib_schema284.EntityRelationField;
|
|
134
|
+
workflowStep: _contractspec_lib_schema284.EntityRelationField;
|
|
135
135
|
}>)[];
|
|
136
136
|
declare const workflowSystemSchemaContribution: ModuleSchemaContribution;
|
|
137
137
|
//#endregion
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema410 from "@contractspec/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: _contractspec_lib_schema410.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Step execution status enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const StepExecutionStatusEnum:
|
|
11
|
+
declare const StepExecutionStatusEnum: _contractspec_lib_schema410.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: _contractspec_lib_schema410.EntitySpec<{
|
|
19
|
+
id: _contractspec_lib_schema410.EntityScalarField;
|
|
20
|
+
workflowDefinitionId: _contractspec_lib_schema410.EntityScalarField;
|
|
21
|
+
referenceId: _contractspec_lib_schema410.EntityScalarField;
|
|
22
|
+
referenceType: _contractspec_lib_schema410.EntityScalarField;
|
|
23
|
+
status: _contractspec_lib_schema410.EntityEnumField;
|
|
24
|
+
currentStepId: _contractspec_lib_schema410.EntityScalarField;
|
|
25
|
+
contextData: _contractspec_lib_schema410.EntityScalarField;
|
|
26
|
+
triggeredBy: _contractspec_lib_schema410.EntityScalarField;
|
|
27
|
+
triggerSource: _contractspec_lib_schema410.EntityScalarField;
|
|
28
|
+
organizationId: _contractspec_lib_schema410.EntityScalarField;
|
|
29
|
+
priority: _contractspec_lib_schema410.EntityScalarField;
|
|
30
|
+
dueAt: _contractspec_lib_schema410.EntityScalarField;
|
|
31
|
+
outcome: _contractspec_lib_schema410.EntityScalarField;
|
|
32
|
+
resultData: _contractspec_lib_schema410.EntityScalarField;
|
|
33
|
+
errorMessage: _contractspec_lib_schema410.EntityScalarField;
|
|
34
|
+
createdAt: _contractspec_lib_schema410.EntityScalarField;
|
|
35
|
+
updatedAt: _contractspec_lib_schema410.EntityScalarField;
|
|
36
|
+
startedAt: _contractspec_lib_schema410.EntityScalarField;
|
|
37
|
+
completedAt: _contractspec_lib_schema410.EntityScalarField;
|
|
38
|
+
workflowDefinition: _contractspec_lib_schema410.EntityRelationField;
|
|
39
|
+
currentStep: _contractspec_lib_schema410.EntityRelationField;
|
|
40
|
+
stepExecutions: _contractspec_lib_schema410.EntityRelationField;
|
|
41
|
+
approvalRequests: _contractspec_lib_schema410.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: _contractspec_lib_schema410.EntitySpec<{
|
|
47
|
+
id: _contractspec_lib_schema410.EntityScalarField;
|
|
48
|
+
workflowInstanceId: _contractspec_lib_schema410.EntityScalarField;
|
|
49
|
+
workflowStepId: _contractspec_lib_schema410.EntityScalarField;
|
|
50
|
+
status: _contractspec_lib_schema410.EntityEnumField;
|
|
51
|
+
executionOrder: _contractspec_lib_schema410.EntityScalarField;
|
|
52
|
+
inputData: _contractspec_lib_schema410.EntityScalarField;
|
|
53
|
+
outputData: _contractspec_lib_schema410.EntityScalarField;
|
|
54
|
+
actionTaken: _contractspec_lib_schema410.EntityScalarField;
|
|
55
|
+
transitionedTo: _contractspec_lib_schema410.EntityScalarField;
|
|
56
|
+
executedBy: _contractspec_lib_schema410.EntityScalarField;
|
|
57
|
+
errorMessage: _contractspec_lib_schema410.EntityScalarField;
|
|
58
|
+
errorDetails: _contractspec_lib_schema410.EntityScalarField;
|
|
59
|
+
retryCount: _contractspec_lib_schema410.EntityScalarField;
|
|
60
|
+
createdAt: _contractspec_lib_schema410.EntityScalarField;
|
|
61
|
+
updatedAt: _contractspec_lib_schema410.EntityScalarField;
|
|
62
|
+
startedAt: _contractspec_lib_schema410.EntityScalarField;
|
|
63
|
+
completedAt: _contractspec_lib_schema410.EntityScalarField;
|
|
64
|
+
workflowInstance: _contractspec_lib_schema410.EntityRelationField;
|
|
65
|
+
workflowStep: _contractspec_lib_schema410.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 _contractspec_lib_schema456 from "@contractspec/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: _contractspec_lib_schema456.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Approval mode enum - how approvals are handled.
|
|
10
10
|
*/
|
|
11
|
-
declare const ApprovalModeEnum:
|
|
11
|
+
declare const ApprovalModeEnum: _contractspec_lib_schema456.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: _contractspec_lib_schema456.EntitySpec<{
|
|
19
|
+
id: _contractspec_lib_schema456.EntityScalarField;
|
|
20
|
+
workflowDefinitionId: _contractspec_lib_schema456.EntityScalarField;
|
|
21
|
+
name: _contractspec_lib_schema456.EntityScalarField;
|
|
22
|
+
key: _contractspec_lib_schema456.EntityScalarField;
|
|
23
|
+
description: _contractspec_lib_schema456.EntityScalarField;
|
|
24
|
+
type: _contractspec_lib_schema456.EntityEnumField;
|
|
25
|
+
position: _contractspec_lib_schema456.EntityScalarField;
|
|
26
|
+
transitions: _contractspec_lib_schema456.EntityScalarField;
|
|
27
|
+
approvalMode: _contractspec_lib_schema456.EntityEnumField;
|
|
28
|
+
approverRoles: _contractspec_lib_schema456.EntityScalarField;
|
|
29
|
+
approverUserIds: _contractspec_lib_schema456.EntityScalarField;
|
|
30
|
+
escalationConfig: _contractspec_lib_schema456.EntityScalarField;
|
|
31
|
+
assigneeRoles: _contractspec_lib_schema456.EntityScalarField;
|
|
32
|
+
taskTemplate: _contractspec_lib_schema456.EntityScalarField;
|
|
33
|
+
conditionExpression: _contractspec_lib_schema456.EntityScalarField;
|
|
34
|
+
waitDuration: _contractspec_lib_schema456.EntityScalarField;
|
|
35
|
+
waitForEvent: _contractspec_lib_schema456.EntityScalarField;
|
|
36
|
+
actionType: _contractspec_lib_schema456.EntityScalarField;
|
|
37
|
+
actionConfig: _contractspec_lib_schema456.EntityScalarField;
|
|
38
|
+
timeoutSeconds: _contractspec_lib_schema456.EntityScalarField;
|
|
39
|
+
slaSeconds: _contractspec_lib_schema456.EntityScalarField;
|
|
40
|
+
notifyOnEnter: _contractspec_lib_schema456.EntityScalarField;
|
|
41
|
+
notifyOnExit: _contractspec_lib_schema456.EntityScalarField;
|
|
42
|
+
metadata: _contractspec_lib_schema456.EntityScalarField;
|
|
43
|
+
createdAt: _contractspec_lib_schema456.EntityScalarField;
|
|
44
|
+
updatedAt: _contractspec_lib_schema456.EntityScalarField;
|
|
45
|
+
workflowDefinition: _contractspec_lib_schema456.EntityRelationField;
|
|
46
|
+
executions: _contractspec_lib_schema456.EntityRelationField;
|
|
47
47
|
}>;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { ApprovalModeEnum, StepTypeEnum, WorkflowStepEntity };
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema572 from "@contractspec/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: _contractspec_lib_schema572.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Workflow trigger type enum - what initiates a workflow.
|
|
10
10
|
*/
|
|
11
|
-
declare const WorkflowTriggerTypeEnum:
|
|
11
|
+
declare const WorkflowTriggerTypeEnum: _contractspec_lib_schema572.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: _contractspec_lib_schema572.EntitySpec<{
|
|
19
|
+
id: _contractspec_lib_schema572.EntityScalarField;
|
|
20
|
+
name: _contractspec_lib_schema572.EntityScalarField;
|
|
21
|
+
key: _contractspec_lib_schema572.EntityScalarField;
|
|
22
|
+
description: _contractspec_lib_schema572.EntityScalarField;
|
|
23
|
+
version: _contractspec_lib_schema572.EntityScalarField;
|
|
24
|
+
status: _contractspec_lib_schema572.EntityEnumField;
|
|
25
|
+
triggerType: _contractspec_lib_schema572.EntityEnumField;
|
|
26
|
+
triggerConfig: _contractspec_lib_schema572.EntityScalarField;
|
|
27
|
+
initialStepId: _contractspec_lib_schema572.EntityScalarField;
|
|
28
|
+
featureFlagKey: _contractspec_lib_schema572.EntityScalarField;
|
|
29
|
+
settings: _contractspec_lib_schema572.EntityScalarField;
|
|
30
|
+
metadata: _contractspec_lib_schema572.EntityScalarField;
|
|
31
|
+
organizationId: _contractspec_lib_schema572.EntityScalarField;
|
|
32
|
+
createdBy: _contractspec_lib_schema572.EntityScalarField;
|
|
33
|
+
createdAt: _contractspec_lib_schema572.EntityScalarField;
|
|
34
|
+
updatedAt: _contractspec_lib_schema572.EntityScalarField;
|
|
35
|
+
publishedAt: _contractspec_lib_schema572.EntityScalarField;
|
|
36
|
+
steps: _contractspec_lib_schema572.EntityRelationField;
|
|
37
|
+
instances: _contractspec_lib_schema572.EntityRelationField;
|
|
38
38
|
}>;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { WorkflowDefinitionEntity, WorkflowStatusEnum, WorkflowTriggerTypeEnum };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema283 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/instance/instance.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Instance status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const InstanceStatusEnum:
|
|
7
|
+
declare const InstanceStatusEnum: _contractspec_lib_schema283.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { InstanceStatusEnum };
|
|
10
10
|
//# sourceMappingURL=instance.enum.d.ts.map
|
|
@@ -1,353 +1,353 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema487 from "@contractspec/lib.schema";
|
|
2
2
|
import * as _contractspec_lib_contracts8 from "@contractspec/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/instance/instance.event.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* InstanceStartedEvent - A new workflow instance has been started.
|
|
7
7
|
*/
|
|
8
|
-
declare const InstanceStartedEvent: _contractspec_lib_contracts8.EventSpec<
|
|
8
|
+
declare const InstanceStartedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
|
|
9
9
|
instanceId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
workflowId: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
workflowKey: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
status: {
|
|
22
|
-
type:
|
|
22
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
referenceId: {
|
|
26
|
-
type:
|
|
26
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
29
|
referenceType: {
|
|
30
|
-
type:
|
|
30
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
31
31
|
isOptional: true;
|
|
32
32
|
};
|
|
33
33
|
triggeredBy: {
|
|
34
|
-
type:
|
|
34
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
35
35
|
isOptional: false;
|
|
36
36
|
};
|
|
37
37
|
organizationId: {
|
|
38
|
-
type:
|
|
38
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
39
39
|
isOptional: false;
|
|
40
40
|
};
|
|
41
41
|
timestamp: {
|
|
42
|
-
type:
|
|
42
|
+
type: _contractspec_lib_schema487.FieldType<Date, string>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
}>>;
|
|
46
46
|
/**
|
|
47
47
|
* StepEnteredEvent - A workflow instance has entered a new step.
|
|
48
48
|
*/
|
|
49
|
-
declare const StepEnteredEvent: _contractspec_lib_contracts8.EventSpec<
|
|
49
|
+
declare const StepEnteredEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
|
|
50
50
|
instanceId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
workflowId: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
fromStepKey: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
toStepKey: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
action: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
68
68
|
isOptional: true;
|
|
69
69
|
};
|
|
70
70
|
executedBy: {
|
|
71
|
-
type:
|
|
71
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
timestamp: {
|
|
75
|
-
type:
|
|
75
|
+
type: _contractspec_lib_schema487.FieldType<Date, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
}>>;
|
|
79
79
|
/**
|
|
80
80
|
* StepExitedEvent - A workflow instance has exited a step.
|
|
81
81
|
*/
|
|
82
|
-
declare const StepExitedEvent: _contractspec_lib_contracts8.EventSpec<
|
|
82
|
+
declare const StepExitedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
|
|
83
83
|
instanceId: {
|
|
84
|
-
type:
|
|
84
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
workflowId: {
|
|
88
|
-
type:
|
|
88
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
fromStepKey: {
|
|
92
|
-
type:
|
|
92
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
93
93
|
isOptional: true;
|
|
94
94
|
};
|
|
95
95
|
toStepKey: {
|
|
96
|
-
type:
|
|
96
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
action: {
|
|
100
|
-
type:
|
|
100
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
101
101
|
isOptional: true;
|
|
102
102
|
};
|
|
103
103
|
executedBy: {
|
|
104
|
-
type:
|
|
104
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
timestamp: {
|
|
108
|
-
type:
|
|
108
|
+
type: _contractspec_lib_schema487.FieldType<Date, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
}>>;
|
|
112
112
|
/**
|
|
113
113
|
* InstanceCompletedEvent - A workflow instance has completed.
|
|
114
114
|
*/
|
|
115
|
-
declare const InstanceCompletedEvent: _contractspec_lib_contracts8.EventSpec<
|
|
115
|
+
declare const InstanceCompletedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
|
|
116
116
|
instanceId: {
|
|
117
|
-
type:
|
|
117
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
workflowId: {
|
|
121
|
-
type:
|
|
121
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
workflowKey: {
|
|
125
|
-
type:
|
|
125
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
outcome: {
|
|
129
|
-
type:
|
|
129
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
130
130
|
isOptional: false;
|
|
131
131
|
};
|
|
132
132
|
referenceId: {
|
|
133
|
-
type:
|
|
133
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
134
134
|
isOptional: true;
|
|
135
135
|
};
|
|
136
136
|
referenceType: {
|
|
137
|
-
type:
|
|
137
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
138
138
|
isOptional: true;
|
|
139
139
|
};
|
|
140
140
|
duration: {
|
|
141
|
-
type:
|
|
141
|
+
type: _contractspec_lib_schema487.FieldType<number, number>;
|
|
142
142
|
isOptional: false;
|
|
143
143
|
};
|
|
144
144
|
timestamp: {
|
|
145
|
-
type:
|
|
145
|
+
type: _contractspec_lib_schema487.FieldType<Date, string>;
|
|
146
146
|
isOptional: false;
|
|
147
147
|
};
|
|
148
148
|
}>>;
|
|
149
149
|
/**
|
|
150
150
|
* InstanceCancelledEvent - A workflow instance has been cancelled.
|
|
151
151
|
*/
|
|
152
|
-
declare const InstanceCancelledEvent: _contractspec_lib_contracts8.EventSpec<
|
|
152
|
+
declare const InstanceCancelledEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
|
|
153
153
|
instanceId: {
|
|
154
|
-
type:
|
|
154
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
155
155
|
isOptional: false;
|
|
156
156
|
};
|
|
157
157
|
workflowId: {
|
|
158
|
-
type:
|
|
158
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
159
159
|
isOptional: false;
|
|
160
160
|
};
|
|
161
161
|
workflowKey: {
|
|
162
|
-
type:
|
|
162
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
status: {
|
|
166
|
-
type:
|
|
166
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
167
167
|
isOptional: false;
|
|
168
168
|
};
|
|
169
169
|
referenceId: {
|
|
170
|
-
type:
|
|
170
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
171
171
|
isOptional: true;
|
|
172
172
|
};
|
|
173
173
|
referenceType: {
|
|
174
|
-
type:
|
|
174
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
175
175
|
isOptional: true;
|
|
176
176
|
};
|
|
177
177
|
triggeredBy: {
|
|
178
|
-
type:
|
|
178
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
179
179
|
isOptional: false;
|
|
180
180
|
};
|
|
181
181
|
organizationId: {
|
|
182
|
-
type:
|
|
182
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
183
183
|
isOptional: false;
|
|
184
184
|
};
|
|
185
185
|
timestamp: {
|
|
186
|
-
type:
|
|
186
|
+
type: _contractspec_lib_schema487.FieldType<Date, string>;
|
|
187
187
|
isOptional: false;
|
|
188
188
|
};
|
|
189
189
|
}>>;
|
|
190
190
|
/**
|
|
191
191
|
* InstancePausedEvent - A workflow instance has been paused.
|
|
192
192
|
*/
|
|
193
|
-
declare const InstancePausedEvent: _contractspec_lib_contracts8.EventSpec<
|
|
193
|
+
declare const InstancePausedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
|
|
194
194
|
instanceId: {
|
|
195
|
-
type:
|
|
195
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
196
196
|
isOptional: false;
|
|
197
197
|
};
|
|
198
198
|
workflowId: {
|
|
199
|
-
type:
|
|
199
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
200
200
|
isOptional: false;
|
|
201
201
|
};
|
|
202
202
|
workflowKey: {
|
|
203
|
-
type:
|
|
203
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
204
204
|
isOptional: false;
|
|
205
205
|
};
|
|
206
206
|
status: {
|
|
207
|
-
type:
|
|
207
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
208
208
|
isOptional: false;
|
|
209
209
|
};
|
|
210
210
|
referenceId: {
|
|
211
|
-
type:
|
|
211
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
212
212
|
isOptional: true;
|
|
213
213
|
};
|
|
214
214
|
referenceType: {
|
|
215
|
-
type:
|
|
215
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
216
216
|
isOptional: true;
|
|
217
217
|
};
|
|
218
218
|
triggeredBy: {
|
|
219
|
-
type:
|
|
219
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
220
220
|
isOptional: false;
|
|
221
221
|
};
|
|
222
222
|
organizationId: {
|
|
223
|
-
type:
|
|
223
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
224
224
|
isOptional: false;
|
|
225
225
|
};
|
|
226
226
|
timestamp: {
|
|
227
|
-
type:
|
|
227
|
+
type: _contractspec_lib_schema487.FieldType<Date, string>;
|
|
228
228
|
isOptional: false;
|
|
229
229
|
};
|
|
230
230
|
}>>;
|
|
231
231
|
/**
|
|
232
232
|
* InstanceResumedEvent - A workflow instance has been resumed.
|
|
233
233
|
*/
|
|
234
|
-
declare const InstanceResumedEvent: _contractspec_lib_contracts8.EventSpec<
|
|
234
|
+
declare const InstanceResumedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
|
|
235
235
|
instanceId: {
|
|
236
|
-
type:
|
|
236
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
workflowId: {
|
|
240
|
-
type:
|
|
240
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
241
241
|
isOptional: false;
|
|
242
242
|
};
|
|
243
243
|
workflowKey: {
|
|
244
|
-
type:
|
|
244
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
status: {
|
|
248
|
-
type:
|
|
248
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
referenceId: {
|
|
252
|
-
type:
|
|
252
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
253
253
|
isOptional: true;
|
|
254
254
|
};
|
|
255
255
|
referenceType: {
|
|
256
|
-
type:
|
|
256
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
257
257
|
isOptional: true;
|
|
258
258
|
};
|
|
259
259
|
triggeredBy: {
|
|
260
|
-
type:
|
|
260
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
261
261
|
isOptional: false;
|
|
262
262
|
};
|
|
263
263
|
organizationId: {
|
|
264
|
-
type:
|
|
264
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
265
265
|
isOptional: false;
|
|
266
266
|
};
|
|
267
267
|
timestamp: {
|
|
268
|
-
type:
|
|
268
|
+
type: _contractspec_lib_schema487.FieldType<Date, string>;
|
|
269
269
|
isOptional: false;
|
|
270
270
|
};
|
|
271
271
|
}>>;
|
|
272
272
|
/**
|
|
273
273
|
* InstanceFailedEvent - A workflow instance has failed.
|
|
274
274
|
*/
|
|
275
|
-
declare const InstanceFailedEvent: _contractspec_lib_contracts8.EventSpec<
|
|
275
|
+
declare const InstanceFailedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
|
|
276
276
|
instanceId: {
|
|
277
|
-
type:
|
|
277
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
278
278
|
isOptional: false;
|
|
279
279
|
};
|
|
280
280
|
workflowId: {
|
|
281
|
-
type:
|
|
281
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
282
282
|
isOptional: false;
|
|
283
283
|
};
|
|
284
284
|
workflowKey: {
|
|
285
|
-
type:
|
|
285
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
286
286
|
isOptional: false;
|
|
287
287
|
};
|
|
288
288
|
status: {
|
|
289
|
-
type:
|
|
289
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
290
290
|
isOptional: false;
|
|
291
291
|
};
|
|
292
292
|
referenceId: {
|
|
293
|
-
type:
|
|
293
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
294
294
|
isOptional: true;
|
|
295
295
|
};
|
|
296
296
|
referenceType: {
|
|
297
|
-
type:
|
|
297
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
298
298
|
isOptional: true;
|
|
299
299
|
};
|
|
300
300
|
triggeredBy: {
|
|
301
|
-
type:
|
|
301
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
302
302
|
isOptional: false;
|
|
303
303
|
};
|
|
304
304
|
organizationId: {
|
|
305
|
-
type:
|
|
305
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
306
306
|
isOptional: false;
|
|
307
307
|
};
|
|
308
308
|
timestamp: {
|
|
309
|
-
type:
|
|
309
|
+
type: _contractspec_lib_schema487.FieldType<Date, string>;
|
|
310
310
|
isOptional: false;
|
|
311
311
|
};
|
|
312
312
|
}>>;
|
|
313
313
|
/**
|
|
314
314
|
* InstanceTimedOutEvent - A workflow instance has timed out.
|
|
315
315
|
*/
|
|
316
|
-
declare const InstanceTimedOutEvent: _contractspec_lib_contracts8.EventSpec<
|
|
316
|
+
declare const InstanceTimedOutEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
|
|
317
317
|
instanceId: {
|
|
318
|
-
type:
|
|
318
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
319
319
|
isOptional: false;
|
|
320
320
|
};
|
|
321
321
|
workflowId: {
|
|
322
|
-
type:
|
|
322
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
323
323
|
isOptional: false;
|
|
324
324
|
};
|
|
325
325
|
workflowKey: {
|
|
326
|
-
type:
|
|
326
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
327
327
|
isOptional: false;
|
|
328
328
|
};
|
|
329
329
|
status: {
|
|
330
|
-
type:
|
|
330
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
331
331
|
isOptional: false;
|
|
332
332
|
};
|
|
333
333
|
referenceId: {
|
|
334
|
-
type:
|
|
334
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
335
335
|
isOptional: true;
|
|
336
336
|
};
|
|
337
337
|
referenceType: {
|
|
338
|
-
type:
|
|
338
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
339
339
|
isOptional: true;
|
|
340
340
|
};
|
|
341
341
|
triggeredBy: {
|
|
342
|
-
type:
|
|
342
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
343
343
|
isOptional: false;
|
|
344
344
|
};
|
|
345
345
|
organizationId: {
|
|
346
|
-
type:
|
|
346
|
+
type: _contractspec_lib_schema487.FieldType<string, string>;
|
|
347
347
|
isOptional: false;
|
|
348
348
|
};
|
|
349
349
|
timestamp: {
|
|
350
|
-
type:
|
|
350
|
+
type: _contractspec_lib_schema487.FieldType<Date, string>;
|
|
351
351
|
isOptional: false;
|
|
352
352
|
};
|
|
353
353
|
}>>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema932 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/workflow/workflow.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Workflow status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const WorkflowStatusEnum:
|
|
7
|
+
declare const WorkflowStatusEnum: _contractspec_lib_schema932.EnumType<[string, string, string, string]>;
|
|
8
8
|
/**
|
|
9
9
|
* Trigger type enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const TriggerTypeEnum:
|
|
11
|
+
declare const TriggerTypeEnum: _contractspec_lib_schema932.EnumType<[string, string, string, string]>;
|
|
12
12
|
/**
|
|
13
13
|
* Step type enum.
|
|
14
14
|
*/
|
|
15
|
-
declare const StepTypeEnum:
|
|
15
|
+
declare const StepTypeEnum: _contractspec_lib_schema932.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
16
16
|
/**
|
|
17
17
|
* Approval mode enum.
|
|
18
18
|
*/
|
|
19
|
-
declare const ApprovalModeEnum:
|
|
19
|
+
declare const ApprovalModeEnum: _contractspec_lib_schema932.EnumType<[string, string, string, string]>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { ApprovalModeEnum, StepTypeEnum, TriggerTypeEnum, WorkflowStatusEnum };
|
|
22
22
|
//# sourceMappingURL=workflow.enum.d.ts.map
|
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema901 from "@contractspec/lib.schema";
|
|
2
2
|
import * as _contractspec_lib_contracts24 from "@contractspec/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/workflow/workflow.event.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* WorkflowCreatedEvent - A new workflow definition has been created.
|
|
7
7
|
*/
|
|
8
|
-
declare const WorkflowCreatedEvent: _contractspec_lib_contracts24.EventSpec<
|
|
8
|
+
declare const WorkflowCreatedEvent: _contractspec_lib_contracts24.EventSpec<_contractspec_lib_schema901.SchemaModel<{
|
|
9
9
|
workflowId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
key: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
name: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
version: {
|
|
22
|
-
type:
|
|
22
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
organizationId: {
|
|
26
|
-
type:
|
|
26
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
createdBy: {
|
|
30
|
-
type:
|
|
30
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
31
31
|
isOptional: false;
|
|
32
32
|
};
|
|
33
33
|
timestamp: {
|
|
34
|
-
type:
|
|
34
|
+
type: _contractspec_lib_schema901.FieldType<Date, string>;
|
|
35
35
|
isOptional: false;
|
|
36
36
|
};
|
|
37
37
|
}>>;
|
|
38
38
|
/**
|
|
39
39
|
* WorkflowUpdatedEvent - A workflow definition has been updated.
|
|
40
40
|
*/
|
|
41
|
-
declare const WorkflowUpdatedEvent: _contractspec_lib_contracts24.EventSpec<
|
|
41
|
+
declare const WorkflowUpdatedEvent: _contractspec_lib_contracts24.EventSpec<_contractspec_lib_schema901.SchemaModel<{
|
|
42
42
|
workflowId: {
|
|
43
|
-
type:
|
|
43
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
key: {
|
|
47
|
-
type:
|
|
47
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
name: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
version: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
organizationId: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
createdBy: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
timestamp: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema901.FieldType<Date, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
}>>;
|
|
71
71
|
/**
|
|
72
72
|
* WorkflowPublishedEvent - A workflow definition has been published.
|
|
73
73
|
*/
|
|
74
|
-
declare const WorkflowPublishedEvent: _contractspec_lib_contracts24.EventSpec<
|
|
74
|
+
declare const WorkflowPublishedEvent: _contractspec_lib_contracts24.EventSpec<_contractspec_lib_schema901.SchemaModel<{
|
|
75
75
|
workflowId: {
|
|
76
|
-
type:
|
|
76
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
key: {
|
|
80
|
-
type:
|
|
80
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
name: {
|
|
84
|
-
type:
|
|
84
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
version: {
|
|
88
|
-
type:
|
|
88
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
organizationId: {
|
|
92
|
-
type:
|
|
92
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
createdBy: {
|
|
96
|
-
type:
|
|
96
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
timestamp: {
|
|
100
|
-
type:
|
|
100
|
+
type: _contractspec_lib_schema901.FieldType<Date, string>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
}>>;
|
|
104
104
|
/**
|
|
105
105
|
* StepAddedEvent - A step has been added to a workflow definition.
|
|
106
106
|
*/
|
|
107
|
-
declare const StepAddedEvent: _contractspec_lib_contracts24.EventSpec<
|
|
107
|
+
declare const StepAddedEvent: _contractspec_lib_contracts24.EventSpec<_contractspec_lib_schema901.SchemaModel<{
|
|
108
108
|
stepId: {
|
|
109
|
-
type:
|
|
109
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
workflowId: {
|
|
113
|
-
type:
|
|
113
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
114
114
|
isOptional: false;
|
|
115
115
|
};
|
|
116
116
|
stepKey: {
|
|
117
|
-
type:
|
|
117
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
stepType: {
|
|
121
|
-
type:
|
|
121
|
+
type: _contractspec_lib_schema901.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
position: {
|
|
125
|
-
type:
|
|
125
|
+
type: _contractspec_lib_schema901.FieldType<number, number>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
timestamp: {
|
|
129
|
-
type:
|
|
129
|
+
type: _contractspec_lib_schema901.FieldType<Date, string>;
|
|
130
130
|
isOptional: false;
|
|
131
131
|
};
|
|
132
132
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.workflow-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.1",
|
|
4
4
|
"description": "Workflow and approval system example for ContractSpec - State machine with role-based transitions",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"lint:check": "eslint src"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@contractspec/lib.schema": "1.
|
|
22
|
-
"@contractspec/lib.contracts": "1.
|
|
21
|
+
"@contractspec/lib.schema": "1.46.1",
|
|
22
|
+
"@contractspec/lib.contracts": "1.46.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@contractspec/tool.typescript": "1.
|
|
26
|
-
"@contractspec/tool.tsdown": "1.
|
|
25
|
+
"@contractspec/tool.typescript": "1.46.1",
|
|
26
|
+
"@contractspec/tool.tsdown": "1.46.1",
|
|
27
27
|
"typescript": "^5.9.3"
|
|
28
28
|
},
|
|
29
29
|
"exports": {
|