@contractspec/example.workflow-system 1.48.0 → 1.48.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/approval/approval.enum.d.ts +3 -3
- package/dist/approval/approval.event.d.ts +31 -31
- package/dist/approval/approval.operations.d.ts +133 -133
- package/dist/approval/approval.schema.d.ts +24 -24
- 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.event.d.ts +10 -10
- package/dist/instance/instance.operations.d.ts +8 -8
- package/dist/presentations/index.d.ts +23 -23
- package/dist/workflow/workflow.event.d.ts +33 -33
- package/dist/workflow/workflow.event.d.ts.map +1 -1
- package/dist/workflow/workflow.operations.d.ts +246 -246
- package/dist/workflow/workflow.schema.d.ts +63 -63
- package/dist/workflow/workflow.schema.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema401 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/approval/approval.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* An approval request.
|
|
6
6
|
*/
|
|
7
|
-
declare const ApprovalRequestModel:
|
|
7
|
+
declare const ApprovalRequestModel: _contractspec_lib_schema401.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _contractspec_lib_schema401.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
workflowInstanceId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _contractspec_lib_schema401.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
stepExecutionId: {
|
|
17
|
-
type:
|
|
17
|
+
type: _contractspec_lib_schema401.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
approverId: {
|
|
21
|
-
type:
|
|
21
|
+
type: _contractspec_lib_schema401.FieldType<string, string>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
approverRole: {
|
|
25
|
-
type:
|
|
25
|
+
type: _contractspec_lib_schema401.FieldType<string, string>;
|
|
26
26
|
isOptional: true;
|
|
27
27
|
};
|
|
28
28
|
title: {
|
|
29
|
-
type:
|
|
29
|
+
type: _contractspec_lib_schema401.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
description: {
|
|
33
|
-
type:
|
|
33
|
+
type: _contractspec_lib_schema401.FieldType<string, string>;
|
|
34
34
|
isOptional: true;
|
|
35
35
|
};
|
|
36
36
|
status: {
|
|
37
|
-
type:
|
|
37
|
+
type: _contractspec_lib_schema401.EnumType<[string, string, string, string, string, string, string]>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
decision: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema401.EnumType<[string, string, string, string, string]>;
|
|
42
42
|
isOptional: true;
|
|
43
43
|
};
|
|
44
44
|
decisionComment: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema401.FieldType<string, string>;
|
|
46
46
|
isOptional: true;
|
|
47
47
|
};
|
|
48
48
|
decidedAt: {
|
|
49
|
-
type:
|
|
49
|
+
type: _contractspec_lib_schema401.FieldType<Date, string>;
|
|
50
50
|
isOptional: true;
|
|
51
51
|
};
|
|
52
52
|
dueAt: {
|
|
53
|
-
type:
|
|
53
|
+
type: _contractspec_lib_schema401.FieldType<Date, string>;
|
|
54
54
|
isOptional: true;
|
|
55
55
|
};
|
|
56
56
|
contextSnapshot: {
|
|
57
|
-
type:
|
|
57
|
+
type: _contractspec_lib_schema401.FieldType<unknown, unknown>;
|
|
58
58
|
isOptional: true;
|
|
59
59
|
};
|
|
60
60
|
sequenceOrder: {
|
|
61
|
-
type:
|
|
61
|
+
type: _contractspec_lib_schema401.FieldType<number, number>;
|
|
62
62
|
isOptional: false;
|
|
63
63
|
};
|
|
64
64
|
createdAt: {
|
|
65
|
-
type:
|
|
65
|
+
type: _contractspec_lib_schema401.FieldType<Date, string>;
|
|
66
66
|
isOptional: false;
|
|
67
67
|
};
|
|
68
68
|
}>;
|
|
69
69
|
/**
|
|
70
70
|
* A comment on an approval.
|
|
71
71
|
*/
|
|
72
|
-
declare const ApprovalCommentModel:
|
|
72
|
+
declare const ApprovalCommentModel: _contractspec_lib_schema401.SchemaModel<{
|
|
73
73
|
id: {
|
|
74
|
-
type:
|
|
74
|
+
type: _contractspec_lib_schema401.FieldType<string, string>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
approvalRequestId: {
|
|
78
|
-
type:
|
|
78
|
+
type: _contractspec_lib_schema401.FieldType<string, string>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
authorId: {
|
|
82
|
-
type:
|
|
82
|
+
type: _contractspec_lib_schema401.FieldType<string, string>;
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
content: {
|
|
86
|
-
type:
|
|
86
|
+
type: _contractspec_lib_schema401.FieldType<string, string>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
isInternal: {
|
|
90
|
-
type:
|
|
90
|
+
type: _contractspec_lib_schema401.FieldType<boolean, boolean>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
createdAt: {
|
|
94
|
-
type:
|
|
94
|
+
type: _contractspec_lib_schema401.FieldType<Date, string>;
|
|
95
95
|
isOptional: false;
|
|
96
96
|
};
|
|
97
97
|
}>;
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema192 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_schema192.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Step execution status enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const StepExecutionStatusEnum:
|
|
11
|
+
declare const StepExecutionStatusEnum: _contractspec_lib_schema192.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_schema192.EntitySpec<{
|
|
19
|
+
id: _contractspec_lib_schema192.EntityScalarField;
|
|
20
|
+
workflowDefinitionId: _contractspec_lib_schema192.EntityScalarField;
|
|
21
|
+
referenceId: _contractspec_lib_schema192.EntityScalarField;
|
|
22
|
+
referenceType: _contractspec_lib_schema192.EntityScalarField;
|
|
23
|
+
status: _contractspec_lib_schema192.EntityEnumField;
|
|
24
|
+
currentStepId: _contractspec_lib_schema192.EntityScalarField;
|
|
25
|
+
contextData: _contractspec_lib_schema192.EntityScalarField;
|
|
26
|
+
triggeredBy: _contractspec_lib_schema192.EntityScalarField;
|
|
27
|
+
triggerSource: _contractspec_lib_schema192.EntityScalarField;
|
|
28
|
+
organizationId: _contractspec_lib_schema192.EntityScalarField;
|
|
29
|
+
priority: _contractspec_lib_schema192.EntityScalarField;
|
|
30
|
+
dueAt: _contractspec_lib_schema192.EntityScalarField;
|
|
31
|
+
outcome: _contractspec_lib_schema192.EntityScalarField;
|
|
32
|
+
resultData: _contractspec_lib_schema192.EntityScalarField;
|
|
33
|
+
errorMessage: _contractspec_lib_schema192.EntityScalarField;
|
|
34
|
+
createdAt: _contractspec_lib_schema192.EntityScalarField;
|
|
35
|
+
updatedAt: _contractspec_lib_schema192.EntityScalarField;
|
|
36
|
+
startedAt: _contractspec_lib_schema192.EntityScalarField;
|
|
37
|
+
completedAt: _contractspec_lib_schema192.EntityScalarField;
|
|
38
|
+
workflowDefinition: _contractspec_lib_schema192.EntityRelationField;
|
|
39
|
+
currentStep: _contractspec_lib_schema192.EntityRelationField;
|
|
40
|
+
stepExecutions: _contractspec_lib_schema192.EntityRelationField;
|
|
41
|
+
approvalRequests: _contractspec_lib_schema192.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_schema192.EntitySpec<{
|
|
47
|
+
id: _contractspec_lib_schema192.EntityScalarField;
|
|
48
|
+
workflowInstanceId: _contractspec_lib_schema192.EntityScalarField;
|
|
49
|
+
workflowStepId: _contractspec_lib_schema192.EntityScalarField;
|
|
50
|
+
status: _contractspec_lib_schema192.EntityEnumField;
|
|
51
|
+
executionOrder: _contractspec_lib_schema192.EntityScalarField;
|
|
52
|
+
inputData: _contractspec_lib_schema192.EntityScalarField;
|
|
53
|
+
outputData: _contractspec_lib_schema192.EntityScalarField;
|
|
54
|
+
actionTaken: _contractspec_lib_schema192.EntityScalarField;
|
|
55
|
+
transitionedTo: _contractspec_lib_schema192.EntityScalarField;
|
|
56
|
+
executedBy: _contractspec_lib_schema192.EntityScalarField;
|
|
57
|
+
errorMessage: _contractspec_lib_schema192.EntityScalarField;
|
|
58
|
+
errorDetails: _contractspec_lib_schema192.EntityScalarField;
|
|
59
|
+
retryCount: _contractspec_lib_schema192.EntityScalarField;
|
|
60
|
+
createdAt: _contractspec_lib_schema192.EntityScalarField;
|
|
61
|
+
updatedAt: _contractspec_lib_schema192.EntityScalarField;
|
|
62
|
+
startedAt: _contractspec_lib_schema192.EntityScalarField;
|
|
63
|
+
completedAt: _contractspec_lib_schema192.EntityScalarField;
|
|
64
|
+
workflowInstance: _contractspec_lib_schema192.EntityRelationField;
|
|
65
|
+
workflowStep: _contractspec_lib_schema192.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_schema370 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_schema370.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Approval mode enum - how approvals are handled.
|
|
10
10
|
*/
|
|
11
|
-
declare const ApprovalModeEnum:
|
|
11
|
+
declare const ApprovalModeEnum: _contractspec_lib_schema370.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_schema370.EntitySpec<{
|
|
19
|
+
id: _contractspec_lib_schema370.EntityScalarField;
|
|
20
|
+
workflowDefinitionId: _contractspec_lib_schema370.EntityScalarField;
|
|
21
|
+
name: _contractspec_lib_schema370.EntityScalarField;
|
|
22
|
+
key: _contractspec_lib_schema370.EntityScalarField;
|
|
23
|
+
description: _contractspec_lib_schema370.EntityScalarField;
|
|
24
|
+
type: _contractspec_lib_schema370.EntityEnumField;
|
|
25
|
+
position: _contractspec_lib_schema370.EntityScalarField;
|
|
26
|
+
transitions: _contractspec_lib_schema370.EntityScalarField;
|
|
27
|
+
approvalMode: _contractspec_lib_schema370.EntityEnumField;
|
|
28
|
+
approverRoles: _contractspec_lib_schema370.EntityScalarField;
|
|
29
|
+
approverUserIds: _contractspec_lib_schema370.EntityScalarField;
|
|
30
|
+
escalationConfig: _contractspec_lib_schema370.EntityScalarField;
|
|
31
|
+
assigneeRoles: _contractspec_lib_schema370.EntityScalarField;
|
|
32
|
+
taskTemplate: _contractspec_lib_schema370.EntityScalarField;
|
|
33
|
+
conditionExpression: _contractspec_lib_schema370.EntityScalarField;
|
|
34
|
+
waitDuration: _contractspec_lib_schema370.EntityScalarField;
|
|
35
|
+
waitForEvent: _contractspec_lib_schema370.EntityScalarField;
|
|
36
|
+
actionType: _contractspec_lib_schema370.EntityScalarField;
|
|
37
|
+
actionConfig: _contractspec_lib_schema370.EntityScalarField;
|
|
38
|
+
timeoutSeconds: _contractspec_lib_schema370.EntityScalarField;
|
|
39
|
+
slaSeconds: _contractspec_lib_schema370.EntityScalarField;
|
|
40
|
+
notifyOnEnter: _contractspec_lib_schema370.EntityScalarField;
|
|
41
|
+
notifyOnExit: _contractspec_lib_schema370.EntityScalarField;
|
|
42
|
+
metadata: _contractspec_lib_schema370.EntityScalarField;
|
|
43
|
+
createdAt: _contractspec_lib_schema370.EntityScalarField;
|
|
44
|
+
updatedAt: _contractspec_lib_schema370.EntityScalarField;
|
|
45
|
+
workflowDefinition: _contractspec_lib_schema370.EntityRelationField;
|
|
46
|
+
executions: _contractspec_lib_schema370.EntityRelationField;
|
|
47
47
|
}>;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { ApprovalModeEnum, StepTypeEnum, WorkflowStepEntity };
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema424 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_schema424.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_schema424.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_schema424.EntitySpec<{
|
|
19
|
+
id: _contractspec_lib_schema424.EntityScalarField;
|
|
20
|
+
name: _contractspec_lib_schema424.EntityScalarField;
|
|
21
|
+
key: _contractspec_lib_schema424.EntityScalarField;
|
|
22
|
+
description: _contractspec_lib_schema424.EntityScalarField;
|
|
23
|
+
version: _contractspec_lib_schema424.EntityScalarField;
|
|
24
|
+
status: _contractspec_lib_schema424.EntityEnumField;
|
|
25
|
+
triggerType: _contractspec_lib_schema424.EntityEnumField;
|
|
26
|
+
triggerConfig: _contractspec_lib_schema424.EntityScalarField;
|
|
27
|
+
initialStepId: _contractspec_lib_schema424.EntityScalarField;
|
|
28
|
+
featureFlagKey: _contractspec_lib_schema424.EntityScalarField;
|
|
29
|
+
settings: _contractspec_lib_schema424.EntityScalarField;
|
|
30
|
+
metadata: _contractspec_lib_schema424.EntityScalarField;
|
|
31
|
+
organizationId: _contractspec_lib_schema424.EntityScalarField;
|
|
32
|
+
createdBy: _contractspec_lib_schema424.EntityScalarField;
|
|
33
|
+
createdAt: _contractspec_lib_schema424.EntityScalarField;
|
|
34
|
+
updatedAt: _contractspec_lib_schema424.EntityScalarField;
|
|
35
|
+
publishedAt: _contractspec_lib_schema424.EntityScalarField;
|
|
36
|
+
steps: _contractspec_lib_schema424.EntityRelationField;
|
|
37
|
+
instances: _contractspec_lib_schema424.EntityRelationField;
|
|
38
38
|
}>;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { WorkflowDefinitionEntity, WorkflowStatusEnum, WorkflowTriggerTypeEnum };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts35 from "@contractspec/lib.contracts";
|
|
2
2
|
import * as _contractspec_lib_schema447 from "@contractspec/lib.schema";
|
|
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:
|
|
8
|
+
declare const InstanceStartedEvent: _contractspec_lib_contracts35.EventSpec<_contractspec_lib_schema447.SchemaModel<{
|
|
9
9
|
instanceId: {
|
|
10
10
|
type: _contractspec_lib_schema447.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
@@ -46,7 +46,7 @@ declare const InstanceStartedEvent: _contractspec_lib_contracts13.EventSpec<_con
|
|
|
46
46
|
/**
|
|
47
47
|
* StepEnteredEvent - A workflow instance has entered a new step.
|
|
48
48
|
*/
|
|
49
|
-
declare const StepEnteredEvent:
|
|
49
|
+
declare const StepEnteredEvent: _contractspec_lib_contracts35.EventSpec<_contractspec_lib_schema447.SchemaModel<{
|
|
50
50
|
instanceId: {
|
|
51
51
|
type: _contractspec_lib_schema447.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
@@ -79,7 +79,7 @@ declare const StepEnteredEvent: _contractspec_lib_contracts13.EventSpec<_contrac
|
|
|
79
79
|
/**
|
|
80
80
|
* StepExitedEvent - A workflow instance has exited a step.
|
|
81
81
|
*/
|
|
82
|
-
declare const StepExitedEvent:
|
|
82
|
+
declare const StepExitedEvent: _contractspec_lib_contracts35.EventSpec<_contractspec_lib_schema447.SchemaModel<{
|
|
83
83
|
instanceId: {
|
|
84
84
|
type: _contractspec_lib_schema447.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
@@ -112,7 +112,7 @@ declare const StepExitedEvent: _contractspec_lib_contracts13.EventSpec<_contract
|
|
|
112
112
|
/**
|
|
113
113
|
* InstanceCompletedEvent - A workflow instance has completed.
|
|
114
114
|
*/
|
|
115
|
-
declare const InstanceCompletedEvent:
|
|
115
|
+
declare const InstanceCompletedEvent: _contractspec_lib_contracts35.EventSpec<_contractspec_lib_schema447.SchemaModel<{
|
|
116
116
|
instanceId: {
|
|
117
117
|
type: _contractspec_lib_schema447.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
@@ -149,7 +149,7 @@ declare const InstanceCompletedEvent: _contractspec_lib_contracts13.EventSpec<_c
|
|
|
149
149
|
/**
|
|
150
150
|
* InstanceCancelledEvent - A workflow instance has been cancelled.
|
|
151
151
|
*/
|
|
152
|
-
declare const InstanceCancelledEvent:
|
|
152
|
+
declare const InstanceCancelledEvent: _contractspec_lib_contracts35.EventSpec<_contractspec_lib_schema447.SchemaModel<{
|
|
153
153
|
instanceId: {
|
|
154
154
|
type: _contractspec_lib_schema447.FieldType<string, string>;
|
|
155
155
|
isOptional: false;
|
|
@@ -190,7 +190,7 @@ declare const InstanceCancelledEvent: _contractspec_lib_contracts13.EventSpec<_c
|
|
|
190
190
|
/**
|
|
191
191
|
* InstancePausedEvent - A workflow instance has been paused.
|
|
192
192
|
*/
|
|
193
|
-
declare const InstancePausedEvent:
|
|
193
|
+
declare const InstancePausedEvent: _contractspec_lib_contracts35.EventSpec<_contractspec_lib_schema447.SchemaModel<{
|
|
194
194
|
instanceId: {
|
|
195
195
|
type: _contractspec_lib_schema447.FieldType<string, string>;
|
|
196
196
|
isOptional: false;
|
|
@@ -231,7 +231,7 @@ declare const InstancePausedEvent: _contractspec_lib_contracts13.EventSpec<_cont
|
|
|
231
231
|
/**
|
|
232
232
|
* InstanceResumedEvent - A workflow instance has been resumed.
|
|
233
233
|
*/
|
|
234
|
-
declare const InstanceResumedEvent:
|
|
234
|
+
declare const InstanceResumedEvent: _contractspec_lib_contracts35.EventSpec<_contractspec_lib_schema447.SchemaModel<{
|
|
235
235
|
instanceId: {
|
|
236
236
|
type: _contractspec_lib_schema447.FieldType<string, string>;
|
|
237
237
|
isOptional: false;
|
|
@@ -272,7 +272,7 @@ declare const InstanceResumedEvent: _contractspec_lib_contracts13.EventSpec<_con
|
|
|
272
272
|
/**
|
|
273
273
|
* InstanceFailedEvent - A workflow instance has failed.
|
|
274
274
|
*/
|
|
275
|
-
declare const InstanceFailedEvent:
|
|
275
|
+
declare const InstanceFailedEvent: _contractspec_lib_contracts35.EventSpec<_contractspec_lib_schema447.SchemaModel<{
|
|
276
276
|
instanceId: {
|
|
277
277
|
type: _contractspec_lib_schema447.FieldType<string, string>;
|
|
278
278
|
isOptional: false;
|
|
@@ -313,7 +313,7 @@ declare const InstanceFailedEvent: _contractspec_lib_contracts13.EventSpec<_cont
|
|
|
313
313
|
/**
|
|
314
314
|
* InstanceTimedOutEvent - A workflow instance has timed out.
|
|
315
315
|
*/
|
|
316
|
-
declare const InstanceTimedOutEvent:
|
|
316
|
+
declare const InstanceTimedOutEvent: _contractspec_lib_contracts35.EventSpec<_contractspec_lib_schema447.SchemaModel<{
|
|
317
317
|
instanceId: {
|
|
318
318
|
type: _contractspec_lib_schema447.FieldType<string, string>;
|
|
319
319
|
isOptional: false;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts44 from "@contractspec/lib.contracts";
|
|
2
2
|
import * as _contractspec_lib_schema532 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/instance/instance.operations.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Start a new workflow instance.
|
|
7
7
|
*/
|
|
8
|
-
declare const StartWorkflowContract:
|
|
8
|
+
declare const StartWorkflowContract: _contractspec_lib_contracts44.OperationSpec<_contractspec_lib_schema532.SchemaModel<{
|
|
9
9
|
workflowKey: {
|
|
10
10
|
type: _contractspec_lib_schema532.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
@@ -177,7 +177,7 @@ declare const StartWorkflowContract: _contractspec_lib_contracts22.OperationSpec
|
|
|
177
177
|
/**
|
|
178
178
|
* Transition workflow to next step.
|
|
179
179
|
*/
|
|
180
|
-
declare const TransitionWorkflowContract:
|
|
180
|
+
declare const TransitionWorkflowContract: _contractspec_lib_contracts44.OperationSpec<_contractspec_lib_schema532.SchemaModel<{
|
|
181
181
|
instanceId: {
|
|
182
182
|
type: _contractspec_lib_schema532.FieldType<string, string>;
|
|
183
183
|
isOptional: false;
|
|
@@ -362,7 +362,7 @@ declare const TransitionWorkflowContract: _contractspec_lib_contracts22.Operatio
|
|
|
362
362
|
/**
|
|
363
363
|
* Pause a running workflow.
|
|
364
364
|
*/
|
|
365
|
-
declare const PauseWorkflowContract:
|
|
365
|
+
declare const PauseWorkflowContract: _contractspec_lib_contracts44.OperationSpec<_contractspec_lib_schema532.SchemaModel<{
|
|
366
366
|
instanceId: {
|
|
367
367
|
type: _contractspec_lib_schema532.FieldType<string, string>;
|
|
368
368
|
isOptional: false;
|
|
@@ -518,7 +518,7 @@ declare const PauseWorkflowContract: _contractspec_lib_contracts22.OperationSpec
|
|
|
518
518
|
/**
|
|
519
519
|
* Resume a paused workflow.
|
|
520
520
|
*/
|
|
521
|
-
declare const ResumeWorkflowContract:
|
|
521
|
+
declare const ResumeWorkflowContract: _contractspec_lib_contracts44.OperationSpec<_contractspec_lib_schema532.SchemaModel<{
|
|
522
522
|
instanceId: {
|
|
523
523
|
type: _contractspec_lib_schema532.FieldType<string, string>;
|
|
524
524
|
isOptional: false;
|
|
@@ -674,7 +674,7 @@ declare const ResumeWorkflowContract: _contractspec_lib_contracts22.OperationSpe
|
|
|
674
674
|
/**
|
|
675
675
|
* Cancel a workflow instance.
|
|
676
676
|
*/
|
|
677
|
-
declare const CancelWorkflowContract:
|
|
677
|
+
declare const CancelWorkflowContract: _contractspec_lib_contracts44.OperationSpec<_contractspec_lib_schema532.SchemaModel<{
|
|
678
678
|
instanceId: {
|
|
679
679
|
type: _contractspec_lib_schema532.FieldType<string, string>;
|
|
680
680
|
isOptional: false;
|
|
@@ -830,7 +830,7 @@ declare const CancelWorkflowContract: _contractspec_lib_contracts22.OperationSpe
|
|
|
830
830
|
/**
|
|
831
831
|
* List workflow instances.
|
|
832
832
|
*/
|
|
833
|
-
declare const ListInstancesContract:
|
|
833
|
+
declare const ListInstancesContract: _contractspec_lib_contracts44.OperationSpec<_contractspec_lib_schema532.SchemaModel<{
|
|
834
834
|
workflowKey: {
|
|
835
835
|
type: _contractspec_lib_schema532.FieldType<string, string>;
|
|
836
836
|
isOptional: true;
|
|
@@ -944,7 +944,7 @@ declare const ListInstancesContract: _contractspec_lib_contracts22.OperationSpec
|
|
|
944
944
|
/**
|
|
945
945
|
* Get a single workflow instance.
|
|
946
946
|
*/
|
|
947
|
-
declare const GetInstanceContract:
|
|
947
|
+
declare const GetInstanceContract: _contractspec_lib_contracts44.OperationSpec<_contractspec_lib_schema532.SchemaModel<{
|
|
948
948
|
instanceId: {
|
|
949
949
|
type: _contractspec_lib_schema532.FieldType<string, string>;
|
|
950
950
|
isOptional: false;
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts13 from "@contractspec/lib.contracts";
|
|
2
2
|
|
|
3
3
|
//#region src/presentations/index.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Workflow designer canvas for building workflows.
|
|
6
6
|
*/
|
|
7
|
-
declare const WorkflowDesignerPresentation:
|
|
7
|
+
declare const WorkflowDesignerPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
8
8
|
/**
|
|
9
9
|
* List of workflow definitions.
|
|
10
10
|
*/
|
|
11
|
-
declare const WorkflowListPresentation:
|
|
11
|
+
declare const WorkflowListPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
12
12
|
/**
|
|
13
13
|
* Workflow definition detail view.
|
|
14
14
|
*/
|
|
15
|
-
declare const WorkflowDetailPresentation:
|
|
15
|
+
declare const WorkflowDetailPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
16
16
|
/**
|
|
17
17
|
* List of running workflow instances.
|
|
18
18
|
*/
|
|
19
|
-
declare const InstanceListPresentation:
|
|
19
|
+
declare const InstanceListPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
20
20
|
/**
|
|
21
21
|
* Workflow instance detail view with timeline.
|
|
22
22
|
*/
|
|
23
|
-
declare const InstanceDetailPresentation:
|
|
23
|
+
declare const InstanceDetailPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
24
24
|
/**
|
|
25
25
|
* Workflow progress tracker widget.
|
|
26
26
|
*/
|
|
27
|
-
declare const ProgressTrackerPresentation:
|
|
27
|
+
declare const ProgressTrackerPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
28
28
|
/**
|
|
29
29
|
* Approval inbox - list of pending approvals.
|
|
30
30
|
*/
|
|
31
|
-
declare const ApprovalInboxPresentation:
|
|
31
|
+
declare const ApprovalInboxPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
32
32
|
/**
|
|
33
33
|
* Approval request detail view.
|
|
34
34
|
*/
|
|
35
|
-
declare const ApprovalDetailPresentation:
|
|
35
|
+
declare const ApprovalDetailPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
36
36
|
/**
|
|
37
37
|
* Approval decision form.
|
|
38
38
|
*/
|
|
39
|
-
declare const ApprovalFormPresentation:
|
|
39
|
+
declare const ApprovalFormPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
40
40
|
/**
|
|
41
41
|
* Pending approvals count badge.
|
|
42
42
|
*/
|
|
43
|
-
declare const PendingApprovalsBadgePresentation:
|
|
43
|
+
declare const PendingApprovalsBadgePresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
44
44
|
/**
|
|
45
45
|
* Workflow metrics dashboard widget.
|
|
46
46
|
*/
|
|
47
|
-
declare const WorkflowMetricsPresentation:
|
|
47
|
+
declare const WorkflowMetricsPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
48
48
|
declare const WorkflowSystemPresentations: {
|
|
49
|
-
WorkflowDesignerPresentation:
|
|
50
|
-
WorkflowListPresentation:
|
|
51
|
-
WorkflowDetailPresentation:
|
|
52
|
-
InstanceListPresentation:
|
|
53
|
-
InstanceDetailPresentation:
|
|
54
|
-
ProgressTrackerPresentation:
|
|
55
|
-
ApprovalInboxPresentation:
|
|
56
|
-
ApprovalDetailPresentation:
|
|
57
|
-
ApprovalFormPresentation:
|
|
58
|
-
PendingApprovalsBadgePresentation:
|
|
59
|
-
WorkflowMetricsPresentation:
|
|
49
|
+
WorkflowDesignerPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
50
|
+
WorkflowListPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
51
|
+
WorkflowDetailPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
52
|
+
InstanceListPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
53
|
+
InstanceDetailPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
54
|
+
ProgressTrackerPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
55
|
+
ApprovalInboxPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
56
|
+
ApprovalDetailPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
57
|
+
ApprovalFormPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
58
|
+
PendingApprovalsBadgePresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
59
|
+
WorkflowMetricsPresentation: _contractspec_lib_contracts13.PresentationSpec;
|
|
60
60
|
};
|
|
61
61
|
//#endregion
|
|
62
62
|
export { ApprovalDetailPresentation, ApprovalFormPresentation, ApprovalInboxPresentation, InstanceDetailPresentation, InstanceListPresentation, PendingApprovalsBadgePresentation, ProgressTrackerPresentation, WorkflowDesignerPresentation, WorkflowDetailPresentation, WorkflowListPresentation, WorkflowMetricsPresentation, WorkflowSystemPresentations };
|