@contractspec/example.workflow-system 1.57.0 → 1.59.0
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 +2 -7
- package/dist/approval/approval.enum.d.ts.map +1 -1
- package/dist/approval/approval.enum.js +20 -26
- package/dist/approval/approval.event.d.ts +108 -114
- package/dist/approval/approval.event.d.ts.map +1 -1
- package/dist/approval/approval.event.js +103 -210
- package/dist/approval/approval.handler.d.ts +17 -18
- package/dist/approval/approval.handler.d.ts.map +1 -1
- package/dist/approval/approval.operations.d.ts +429 -435
- package/dist/approval/approval.operations.d.ts.map +1 -1
- package/dist/approval/approval.operations.js +364 -339
- package/dist/approval/approval.schema.d.ts +86 -91
- package/dist/approval/approval.schema.d.ts.map +1 -1
- package/dist/approval/approval.schema.js +71 -107
- package/dist/approval/index.d.ts +8 -5
- package/dist/approval/index.d.ts.map +1 -0
- package/dist/approval/index.js +484 -5
- package/dist/browser/approval/approval.enum.js +22 -0
- package/dist/browser/approval/approval.event.js +112 -0
- package/dist/browser/approval/approval.operations.js +369 -0
- package/dist/browser/approval/approval.schema.js +73 -0
- package/dist/browser/approval/index.js +484 -0
- package/dist/browser/docs/index.js +103 -0
- package/dist/browser/docs/workflow-system.docblock.js +103 -0
- package/dist/browser/entities/approval.js +119 -0
- package/dist/browser/entities/index.js +508 -0
- package/dist/browser/entities/instance.js +161 -0
- package/dist/browser/entities/step.js +124 -0
- package/dist/browser/entities/workflow.js +82 -0
- package/dist/browser/example.js +42 -0
- package/dist/browser/handlers/index.js +253 -0
- package/dist/browser/handlers/workflow.handlers.js +253 -0
- package/dist/browser/index.js +3120 -0
- package/dist/browser/instance/index.js +677 -0
- package/dist/browser/instance/instance.enum.js +15 -0
- package/dist/browser/instance/instance.event.js +164 -0
- package/dist/browser/instance/instance.handler.js +356 -0
- package/dist/browser/instance/instance.operations.js +9 -0
- package/dist/browser/instance/instance.schema.js +101 -0
- package/dist/browser/presentations/index.js +109 -0
- package/dist/browser/seeders/index.js +3 -0
- package/dist/browser/shared/index.js +3 -0
- package/dist/browser/shared/mock-data.js +11 -0
- package/dist/browser/shared/types.js +0 -0
- package/dist/browser/state-machine/index.js +6 -0
- package/dist/browser/tests/operations.test-spec.js +6 -0
- package/dist/browser/ui/WorkflowDashboard.js +3 -0
- package/dist/browser/ui/hooks/index.js +50 -0
- package/dist/browser/ui/hooks/useWorkflowList.js +50 -0
- package/dist/browser/ui/index.js +54 -0
- package/dist/browser/ui/renderers/index.js +227 -0
- package/dist/browser/ui/renderers/workflow.markdown.js +227 -0
- package/dist/browser/workflow/index.js +21 -0
- package/dist/browser/workflow/workflow.enum.js +36 -0
- package/dist/browser/workflow/workflow.event.js +6 -0
- package/dist/browser/workflow/workflow.handler.js +5 -0
- package/dist/browser/workflow/workflow.operations.js +8 -0
- package/dist/browser/workflow/workflow.schema.js +151 -0
- package/dist/browser/workflow-system.capability.js +5 -0
- package/dist/browser/workflow-system.feature.js +3 -0
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +104 -1
- package/dist/docs/workflow-system.docblock.d.ts +2 -1
- package/dist/docs/workflow-system.docblock.d.ts.map +1 -0
- package/dist/docs/workflow-system.docblock.js +45 -56
- package/dist/entities/approval.d.ts +35 -40
- package/dist/entities/approval.d.ts.map +1 -1
- package/dist/entities/approval.js +116 -124
- package/dist/entities/index.d.ts +132 -137
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +506 -29
- package/dist/entities/instance.d.ts +46 -51
- package/dist/entities/instance.d.ts.map +1 -1
- package/dist/entities/instance.js +158 -164
- package/dist/entities/step.d.ts +31 -36
- package/dist/entities/step.d.ts.map +1 -1
- package/dist/entities/step.js +122 -132
- package/dist/entities/workflow.d.ts +22 -27
- package/dist/entities/workflow.d.ts.map +1 -1
- package/dist/entities/workflow.js +80 -99
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +41 -55
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +254 -3
- package/dist/handlers/workflow.handlers.d.ts +107 -106
- package/dist/handlers/workflow.handlers.d.ts.map +1 -1
- package/dist/handlers/workflow.handlers.js +237 -246
- package/dist/index.d.ts +15 -26
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3121 -26
- package/dist/instance/index.d.ts +8 -5
- package/dist/instance/index.d.ts.map +1 -0
- package/dist/instance/index.js +677 -5
- package/dist/instance/instance.enum.d.ts +1 -6
- package/dist/instance/instance.enum.d.ts.map +1 -1
- package/dist/instance/instance.enum.js +14 -18
- package/dist/instance/instance.event.d.ts +313 -319
- package/dist/instance/instance.event.d.ts.map +1 -1
- package/dist/instance/instance.event.js +151 -279
- package/dist/instance/instance.handler.d.ts +21 -22
- package/dist/instance/instance.handler.d.ts.map +1 -1
- package/dist/instance/instance.handler.js +352 -89
- package/dist/instance/instance.operations.d.ts +819 -825
- package/dist/instance/instance.operations.d.ts.map +1 -1
- package/dist/instance/instance.operations.js +10 -464
- package/dist/instance/instance.schema.d.ts +196 -201
- package/dist/instance/instance.schema.d.ts.map +1 -1
- package/dist/instance/instance.schema.js +97 -167
- package/dist/presentations/index.d.ts +23 -28
- package/dist/presentations/index.d.ts.map +1 -1
- package/dist/presentations/index.js +104 -334
- package/dist/seeders/index.d.ts +4 -8
- package/dist/seeders/index.d.ts.map +1 -1
- package/dist/seeders/index.js +4 -19
- package/dist/shared/index.d.ts +6 -3
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +4 -3
- package/dist/shared/mock-data.d.ts +16 -16
- package/dist/shared/mock-data.d.ts.map +1 -1
- package/dist/shared/mock-data.js +11 -11
- package/dist/shared/types.d.ts +69 -72
- package/dist/shared/types.d.ts.map +1 -1
- package/dist/shared/types.js +1 -0
- package/dist/state-machine/index.d.ts +92 -95
- package/dist/state-machine/index.d.ts.map +1 -1
- package/dist/state-machine/index.js +6 -157
- package/dist/tests/operations.test-spec.d.ts +4 -9
- package/dist/tests/operations.test-spec.d.ts.map +1 -1
- package/dist/tests/operations.test-spec.js +7 -123
- package/dist/ui/WorkflowDashboard.d.ts +1 -6
- package/dist/ui/WorkflowDashboard.d.ts.map +1 -1
- package/dist/ui/WorkflowDashboard.js +3 -222
- package/dist/ui/hooks/index.d.ts +2 -2
- package/dist/ui/hooks/index.d.ts.map +1 -0
- package/dist/ui/hooks/index.js +51 -5
- package/dist/ui/hooks/useWorkflowList.d.ts +15 -19
- package/dist/ui/hooks/useWorkflowList.d.ts.map +1 -1
- package/dist/ui/hooks/useWorkflowList.js +47 -51
- package/dist/ui/index.d.ts +7 -6
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +55 -6
- package/dist/ui/renderers/index.d.ts +2 -2
- package/dist/ui/renderers/index.d.ts.map +1 -0
- package/dist/ui/renderers/index.js +227 -2
- package/dist/ui/renderers/workflow.markdown.d.ts +13 -14
- package/dist/ui/renderers/workflow.markdown.d.ts.map +1 -1
- package/dist/ui/renderers/workflow.markdown.js +223 -229
- package/dist/workflow/index.d.ts +8 -5
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/index.js +22 -6
- package/dist/workflow/workflow.enum.d.ts +4 -9
- package/dist/workflow/workflow.enum.d.ts.map +1 -1
- package/dist/workflow/workflow.enum.js +32 -42
- package/dist/workflow/workflow.event.d.ts +112 -118
- package/dist/workflow/workflow.event.d.ts.map +1 -1
- package/dist/workflow/workflow.event.js +7 -150
- package/dist/workflow/workflow.handler.d.ts +23 -24
- package/dist/workflow/workflow.handler.d.ts.map +1 -1
- package/dist/workflow/workflow.handler.js +6 -66
- package/dist/workflow/workflow.operations.d.ts +847 -853
- package/dist/workflow/workflow.operations.d.ts.map +1 -1
- package/dist/workflow/workflow.operations.js +9 -345
- package/dist/workflow/workflow.schema.d.ts +229 -234
- package/dist/workflow/workflow.schema.d.ts.map +1 -1
- package/dist/workflow/workflow.schema.js +146 -243
- package/dist/workflow-system.capability.d.ts +3 -8
- package/dist/workflow-system.capability.d.ts.map +1 -1
- package/dist/workflow-system.capability.js +6 -34
- package/dist/workflow-system.feature.d.ts +1 -6
- package/dist/workflow-system.feature.d.ts.map +1 -1
- package/dist/workflow-system.feature.js +4 -346
- package/package.json +415 -93
- package/dist/approval/approval.enum.js.map +0 -1
- package/dist/approval/approval.event.js.map +0 -1
- package/dist/approval/approval.handler.js +0 -72
- package/dist/approval/approval.handler.js.map +0 -1
- package/dist/approval/approval.operations.js.map +0 -1
- package/dist/approval/approval.schema.js.map +0 -1
- package/dist/docs/workflow-system.docblock.js.map +0 -1
- package/dist/entities/approval.js.map +0 -1
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/instance.js.map +0 -1
- package/dist/entities/step.js.map +0 -1
- package/dist/entities/workflow.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/handlers/workflow.handlers.js.map +0 -1
- package/dist/instance/instance.enum.js.map +0 -1
- package/dist/instance/instance.event.js.map +0 -1
- package/dist/instance/instance.handler.js.map +0 -1
- package/dist/instance/instance.operations.js.map +0 -1
- package/dist/instance/instance.schema.js.map +0 -1
- package/dist/presentations/index.js.map +0 -1
- package/dist/seeders/index.js.map +0 -1
- package/dist/shared/mock-data.js.map +0 -1
- package/dist/state-machine/index.js.map +0 -1
- package/dist/tests/operations.test-spec.js.map +0 -1
- package/dist/ui/WorkflowDashboard.js.map +0 -1
- package/dist/ui/hooks/useWorkflowList.js.map +0 -1
- package/dist/ui/renderers/workflow.markdown.js.map +0 -1
- package/dist/workflow/workflow.enum.js.map +0 -1
- package/dist/workflow/workflow.event.js.map +0 -1
- package/dist/workflow/workflow.handler.js.map +0 -1
- package/dist/workflow/workflow.operations.js.map +0 -1
- package/dist/workflow/workflow.schema.js.map +0 -1
- package/dist/workflow-system.capability.js.map +0 -1
- package/dist/workflow-system.feature.js.map +0 -1
|
@@ -1,1024 +1,1018 @@
|
|
|
1
|
-
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
2
|
-
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
3
|
-
|
|
4
|
-
//#region src/instance/instance.operations.d.ts
|
|
5
1
|
/**
|
|
6
2
|
* Start a new workflow instance.
|
|
7
3
|
*/
|
|
8
|
-
declare const StartWorkflowContract:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}>,
|
|
34
|
-
id: {
|
|
35
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
36
|
-
isOptional: false;
|
|
37
|
-
};
|
|
38
|
-
workflowDefinitionId: {
|
|
39
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
40
|
-
isOptional: false;
|
|
41
|
-
};
|
|
42
|
-
referenceId: {
|
|
43
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
44
|
-
isOptional: true;
|
|
45
|
-
};
|
|
46
|
-
referenceType: {
|
|
47
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
48
|
-
isOptional: true;
|
|
49
|
-
};
|
|
50
|
-
status: {
|
|
51
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
52
|
-
isOptional: false;
|
|
53
|
-
};
|
|
54
|
-
currentStepId: {
|
|
55
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
56
|
-
isOptional: true;
|
|
57
|
-
};
|
|
58
|
-
contextData: {
|
|
59
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
60
|
-
isOptional: true;
|
|
61
|
-
};
|
|
62
|
-
triggeredBy: {
|
|
63
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
64
|
-
isOptional: false;
|
|
65
|
-
};
|
|
66
|
-
organizationId: {
|
|
67
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
68
|
-
isOptional: false;
|
|
69
|
-
};
|
|
70
|
-
priority: {
|
|
71
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
72
|
-
isOptional: false;
|
|
73
|
-
};
|
|
74
|
-
dueAt: {
|
|
75
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
76
|
-
isOptional: true;
|
|
77
|
-
};
|
|
78
|
-
outcome: {
|
|
79
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
80
|
-
isOptional: true;
|
|
81
|
-
};
|
|
82
|
-
resultData: {
|
|
83
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
84
|
-
isOptional: true;
|
|
85
|
-
};
|
|
86
|
-
errorMessage: {
|
|
87
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
88
|
-
isOptional: true;
|
|
89
|
-
};
|
|
90
|
-
createdAt: {
|
|
91
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
92
|
-
isOptional: false;
|
|
93
|
-
};
|
|
94
|
-
startedAt: {
|
|
95
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
96
|
-
isOptional: true;
|
|
97
|
-
};
|
|
98
|
-
completedAt: {
|
|
99
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
100
|
-
isOptional: true;
|
|
101
|
-
};
|
|
102
|
-
}>, {
|
|
103
|
-
key: string;
|
|
104
|
-
version: string;
|
|
105
|
-
when: string;
|
|
106
|
-
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
4
|
+
export declare const StartWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
|
+
workflowKey: {
|
|
6
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
|
+
isOptional: false;
|
|
8
|
+
};
|
|
9
|
+
contextData: {
|
|
10
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
11
|
+
isOptional: true;
|
|
12
|
+
};
|
|
13
|
+
referenceId: {
|
|
14
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
15
|
+
isOptional: true;
|
|
16
|
+
};
|
|
17
|
+
referenceType: {
|
|
18
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
19
|
+
isOptional: true;
|
|
20
|
+
};
|
|
21
|
+
priority: {
|
|
22
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
23
|
+
isOptional: true;
|
|
24
|
+
};
|
|
25
|
+
dueAt: {
|
|
26
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
27
|
+
isOptional: true;
|
|
28
|
+
};
|
|
29
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
107
30
|
id: {
|
|
108
|
-
|
|
109
|
-
|
|
31
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
32
|
+
isOptional: false;
|
|
110
33
|
};
|
|
111
34
|
workflowDefinitionId: {
|
|
112
|
-
|
|
113
|
-
|
|
35
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
36
|
+
isOptional: false;
|
|
114
37
|
};
|
|
115
38
|
referenceId: {
|
|
116
|
-
|
|
117
|
-
|
|
39
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
40
|
+
isOptional: true;
|
|
118
41
|
};
|
|
119
42
|
referenceType: {
|
|
120
|
-
|
|
121
|
-
|
|
43
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
44
|
+
isOptional: true;
|
|
122
45
|
};
|
|
123
46
|
status: {
|
|
124
|
-
|
|
125
|
-
|
|
47
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
48
|
+
isOptional: false;
|
|
126
49
|
};
|
|
127
50
|
currentStepId: {
|
|
128
|
-
|
|
129
|
-
|
|
51
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
52
|
+
isOptional: true;
|
|
130
53
|
};
|
|
131
54
|
contextData: {
|
|
132
|
-
|
|
133
|
-
|
|
55
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
56
|
+
isOptional: true;
|
|
134
57
|
};
|
|
135
58
|
triggeredBy: {
|
|
136
|
-
|
|
137
|
-
|
|
59
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
60
|
+
isOptional: false;
|
|
138
61
|
};
|
|
139
62
|
organizationId: {
|
|
140
|
-
|
|
141
|
-
|
|
63
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
64
|
+
isOptional: false;
|
|
142
65
|
};
|
|
143
66
|
priority: {
|
|
144
|
-
|
|
145
|
-
|
|
67
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
68
|
+
isOptional: false;
|
|
146
69
|
};
|
|
147
70
|
dueAt: {
|
|
148
|
-
|
|
149
|
-
|
|
71
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
72
|
+
isOptional: true;
|
|
150
73
|
};
|
|
151
74
|
outcome: {
|
|
152
|
-
|
|
153
|
-
|
|
75
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
76
|
+
isOptional: true;
|
|
154
77
|
};
|
|
155
78
|
resultData: {
|
|
156
|
-
|
|
157
|
-
|
|
79
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
80
|
+
isOptional: true;
|
|
158
81
|
};
|
|
159
82
|
errorMessage: {
|
|
160
|
-
|
|
161
|
-
|
|
83
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
84
|
+
isOptional: true;
|
|
162
85
|
};
|
|
163
86
|
createdAt: {
|
|
164
|
-
|
|
165
|
-
|
|
87
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
88
|
+
isOptional: false;
|
|
166
89
|
};
|
|
167
90
|
startedAt: {
|
|
168
|
-
|
|
169
|
-
|
|
91
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
92
|
+
isOptional: true;
|
|
170
93
|
};
|
|
171
94
|
completedAt: {
|
|
172
|
-
|
|
173
|
-
|
|
95
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
96
|
+
isOptional: true;
|
|
174
97
|
};
|
|
175
|
-
|
|
98
|
+
}>, {
|
|
99
|
+
key: string;
|
|
100
|
+
version: string;
|
|
101
|
+
when: string;
|
|
102
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
103
|
+
id: {
|
|
104
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
105
|
+
isOptional: false;
|
|
106
|
+
};
|
|
107
|
+
workflowDefinitionId: {
|
|
108
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
109
|
+
isOptional: false;
|
|
110
|
+
};
|
|
111
|
+
referenceId: {
|
|
112
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
113
|
+
isOptional: true;
|
|
114
|
+
};
|
|
115
|
+
referenceType: {
|
|
116
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
117
|
+
isOptional: true;
|
|
118
|
+
};
|
|
119
|
+
status: {
|
|
120
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
121
|
+
isOptional: false;
|
|
122
|
+
};
|
|
123
|
+
currentStepId: {
|
|
124
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
125
|
+
isOptional: true;
|
|
126
|
+
};
|
|
127
|
+
contextData: {
|
|
128
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
129
|
+
isOptional: true;
|
|
130
|
+
};
|
|
131
|
+
triggeredBy: {
|
|
132
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
133
|
+
isOptional: false;
|
|
134
|
+
};
|
|
135
|
+
organizationId: {
|
|
136
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
137
|
+
isOptional: false;
|
|
138
|
+
};
|
|
139
|
+
priority: {
|
|
140
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
141
|
+
isOptional: false;
|
|
142
|
+
};
|
|
143
|
+
dueAt: {
|
|
144
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
145
|
+
isOptional: true;
|
|
146
|
+
};
|
|
147
|
+
outcome: {
|
|
148
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
149
|
+
isOptional: true;
|
|
150
|
+
};
|
|
151
|
+
resultData: {
|
|
152
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
153
|
+
isOptional: true;
|
|
154
|
+
};
|
|
155
|
+
errorMessage: {
|
|
156
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
157
|
+
isOptional: true;
|
|
158
|
+
};
|
|
159
|
+
createdAt: {
|
|
160
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
161
|
+
isOptional: false;
|
|
162
|
+
};
|
|
163
|
+
startedAt: {
|
|
164
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
165
|
+
isOptional: true;
|
|
166
|
+
};
|
|
167
|
+
completedAt: {
|
|
168
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
169
|
+
isOptional: true;
|
|
170
|
+
};
|
|
171
|
+
}>;
|
|
176
172
|
}[]>;
|
|
177
173
|
/**
|
|
178
174
|
* Transition workflow to next step.
|
|
179
175
|
*/
|
|
180
|
-
declare const TransitionWorkflowContract:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
isOptional: false;
|
|
184
|
-
};
|
|
185
|
-
action: {
|
|
186
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
187
|
-
isOptional: false;
|
|
188
|
-
};
|
|
189
|
-
data: {
|
|
190
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
191
|
-
isOptional: true;
|
|
192
|
-
};
|
|
193
|
-
comment: {
|
|
194
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
195
|
-
isOptional: true;
|
|
196
|
-
};
|
|
197
|
-
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
198
|
-
success: {
|
|
199
|
-
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
200
|
-
isOptional: false;
|
|
201
|
-
};
|
|
202
|
-
instance: {
|
|
203
|
-
type: _contractspec_lib_schema0.SchemaModel<{
|
|
204
|
-
id: {
|
|
205
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
206
|
-
isOptional: false;
|
|
207
|
-
};
|
|
208
|
-
workflowDefinitionId: {
|
|
209
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
176
|
+
export declare const TransitionWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
177
|
+
instanceId: {
|
|
178
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
210
179
|
isOptional: false;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
type:
|
|
214
|
-
isOptional: true;
|
|
215
|
-
};
|
|
216
|
-
referenceType: {
|
|
217
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
218
|
-
isOptional: true;
|
|
219
|
-
};
|
|
220
|
-
status: {
|
|
221
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
180
|
+
};
|
|
181
|
+
action: {
|
|
182
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
222
183
|
isOptional: false;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
type:
|
|
184
|
+
};
|
|
185
|
+
data: {
|
|
186
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
226
187
|
isOptional: true;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
type:
|
|
188
|
+
};
|
|
189
|
+
comment: {
|
|
190
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
230
191
|
isOptional: true;
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
};
|
|
236
|
-
organizationId: {
|
|
237
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
192
|
+
};
|
|
193
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
194
|
+
success: {
|
|
195
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
238
196
|
isOptional: false;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
type:
|
|
197
|
+
};
|
|
198
|
+
instance: {
|
|
199
|
+
type: import("@contractspec/lib.schema").SchemaModel<{
|
|
200
|
+
id: {
|
|
201
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
202
|
+
isOptional: false;
|
|
203
|
+
};
|
|
204
|
+
workflowDefinitionId: {
|
|
205
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
206
|
+
isOptional: false;
|
|
207
|
+
};
|
|
208
|
+
referenceId: {
|
|
209
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
210
|
+
isOptional: true;
|
|
211
|
+
};
|
|
212
|
+
referenceType: {
|
|
213
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
214
|
+
isOptional: true;
|
|
215
|
+
};
|
|
216
|
+
status: {
|
|
217
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
218
|
+
isOptional: false;
|
|
219
|
+
};
|
|
220
|
+
currentStepId: {
|
|
221
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
222
|
+
isOptional: true;
|
|
223
|
+
};
|
|
224
|
+
contextData: {
|
|
225
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
226
|
+
isOptional: true;
|
|
227
|
+
};
|
|
228
|
+
triggeredBy: {
|
|
229
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
230
|
+
isOptional: false;
|
|
231
|
+
};
|
|
232
|
+
organizationId: {
|
|
233
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
234
|
+
isOptional: false;
|
|
235
|
+
};
|
|
236
|
+
priority: {
|
|
237
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
238
|
+
isOptional: false;
|
|
239
|
+
};
|
|
240
|
+
dueAt: {
|
|
241
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
242
|
+
isOptional: true;
|
|
243
|
+
};
|
|
244
|
+
outcome: {
|
|
245
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
246
|
+
isOptional: true;
|
|
247
|
+
};
|
|
248
|
+
resultData: {
|
|
249
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
250
|
+
isOptional: true;
|
|
251
|
+
};
|
|
252
|
+
errorMessage: {
|
|
253
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
254
|
+
isOptional: true;
|
|
255
|
+
};
|
|
256
|
+
createdAt: {
|
|
257
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
258
|
+
isOptional: false;
|
|
259
|
+
};
|
|
260
|
+
startedAt: {
|
|
261
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
262
|
+
isOptional: true;
|
|
263
|
+
};
|
|
264
|
+
completedAt: {
|
|
265
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
266
|
+
isOptional: true;
|
|
267
|
+
};
|
|
268
|
+
}>;
|
|
242
269
|
isOptional: false;
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
type:
|
|
246
|
-
isOptional: true;
|
|
247
|
-
};
|
|
248
|
-
outcome: {
|
|
249
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
270
|
+
};
|
|
271
|
+
previousStepKey: {
|
|
272
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
250
273
|
isOptional: true;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
type:
|
|
274
|
+
};
|
|
275
|
+
currentStepKey: {
|
|
276
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
254
277
|
isOptional: true;
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
type:
|
|
278
|
+
};
|
|
279
|
+
message: {
|
|
280
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
258
281
|
isOptional: true;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
282
|
+
};
|
|
283
|
+
}>, {
|
|
284
|
+
key: string;
|
|
285
|
+
version: string;
|
|
286
|
+
when: string;
|
|
287
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
288
|
+
id: {
|
|
289
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
290
|
+
isOptional: false;
|
|
291
|
+
};
|
|
292
|
+
workflowDefinitionId: {
|
|
293
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
294
|
+
isOptional: false;
|
|
295
|
+
};
|
|
296
|
+
referenceId: {
|
|
297
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
298
|
+
isOptional: true;
|
|
299
|
+
};
|
|
300
|
+
referenceType: {
|
|
301
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
302
|
+
isOptional: true;
|
|
303
|
+
};
|
|
304
|
+
status: {
|
|
305
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
306
|
+
isOptional: false;
|
|
307
|
+
};
|
|
308
|
+
currentStepId: {
|
|
309
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
310
|
+
isOptional: true;
|
|
311
|
+
};
|
|
312
|
+
contextData: {
|
|
313
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
314
|
+
isOptional: true;
|
|
315
|
+
};
|
|
316
|
+
triggeredBy: {
|
|
317
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
318
|
+
isOptional: false;
|
|
319
|
+
};
|
|
320
|
+
organizationId: {
|
|
321
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
322
|
+
isOptional: false;
|
|
323
|
+
};
|
|
324
|
+
priority: {
|
|
325
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
326
|
+
isOptional: false;
|
|
327
|
+
};
|
|
328
|
+
dueAt: {
|
|
329
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
330
|
+
isOptional: true;
|
|
331
|
+
};
|
|
332
|
+
outcome: {
|
|
333
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
334
|
+
isOptional: true;
|
|
335
|
+
};
|
|
336
|
+
resultData: {
|
|
337
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
338
|
+
isOptional: true;
|
|
339
|
+
};
|
|
340
|
+
errorMessage: {
|
|
341
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
342
|
+
isOptional: true;
|
|
343
|
+
};
|
|
344
|
+
createdAt: {
|
|
345
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
346
|
+
isOptional: false;
|
|
347
|
+
};
|
|
348
|
+
startedAt: {
|
|
349
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
350
|
+
isOptional: true;
|
|
351
|
+
};
|
|
352
|
+
completedAt: {
|
|
353
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
354
|
+
isOptional: true;
|
|
355
|
+
};
|
|
356
|
+
}>;
|
|
357
|
+
}[]>;
|
|
358
|
+
/**
|
|
359
|
+
* Pause a running workflow.
|
|
360
|
+
*/
|
|
361
|
+
export declare const PauseWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
362
|
+
instanceId: {
|
|
363
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
262
364
|
isOptional: false;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
type:
|
|
266
|
-
isOptional: true;
|
|
267
|
-
};
|
|
268
|
-
completedAt: {
|
|
269
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
365
|
+
};
|
|
366
|
+
reason: {
|
|
367
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
270
368
|
isOptional: true;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
isOptional: false;
|
|
274
|
-
};
|
|
275
|
-
previousStepKey: {
|
|
276
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
277
|
-
isOptional: true;
|
|
278
|
-
};
|
|
279
|
-
currentStepKey: {
|
|
280
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
281
|
-
isOptional: true;
|
|
282
|
-
};
|
|
283
|
-
message: {
|
|
284
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
285
|
-
isOptional: true;
|
|
286
|
-
};
|
|
287
|
-
}>, {
|
|
288
|
-
key: string;
|
|
289
|
-
version: string;
|
|
290
|
-
when: string;
|
|
291
|
-
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
369
|
+
};
|
|
370
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
292
371
|
id: {
|
|
293
|
-
|
|
294
|
-
|
|
372
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
373
|
+
isOptional: false;
|
|
295
374
|
};
|
|
296
375
|
workflowDefinitionId: {
|
|
297
|
-
|
|
298
|
-
|
|
376
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
377
|
+
isOptional: false;
|
|
299
378
|
};
|
|
300
379
|
referenceId: {
|
|
301
|
-
|
|
302
|
-
|
|
380
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
381
|
+
isOptional: true;
|
|
303
382
|
};
|
|
304
383
|
referenceType: {
|
|
305
|
-
|
|
306
|
-
|
|
384
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
385
|
+
isOptional: true;
|
|
307
386
|
};
|
|
308
387
|
status: {
|
|
309
|
-
|
|
310
|
-
|
|
388
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
389
|
+
isOptional: false;
|
|
311
390
|
};
|
|
312
391
|
currentStepId: {
|
|
313
|
-
|
|
314
|
-
|
|
392
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
393
|
+
isOptional: true;
|
|
315
394
|
};
|
|
316
395
|
contextData: {
|
|
317
|
-
|
|
318
|
-
|
|
396
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
397
|
+
isOptional: true;
|
|
319
398
|
};
|
|
320
399
|
triggeredBy: {
|
|
321
|
-
|
|
322
|
-
|
|
400
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
401
|
+
isOptional: false;
|
|
323
402
|
};
|
|
324
403
|
organizationId: {
|
|
325
|
-
|
|
326
|
-
|
|
404
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
405
|
+
isOptional: false;
|
|
327
406
|
};
|
|
328
407
|
priority: {
|
|
329
|
-
|
|
330
|
-
|
|
408
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
409
|
+
isOptional: false;
|
|
331
410
|
};
|
|
332
411
|
dueAt: {
|
|
333
|
-
|
|
334
|
-
|
|
412
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
413
|
+
isOptional: true;
|
|
335
414
|
};
|
|
336
415
|
outcome: {
|
|
337
|
-
|
|
338
|
-
|
|
416
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
417
|
+
isOptional: true;
|
|
339
418
|
};
|
|
340
419
|
resultData: {
|
|
341
|
-
|
|
342
|
-
|
|
420
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
421
|
+
isOptional: true;
|
|
343
422
|
};
|
|
344
423
|
errorMessage: {
|
|
345
|
-
|
|
346
|
-
|
|
424
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
425
|
+
isOptional: true;
|
|
347
426
|
};
|
|
348
427
|
createdAt: {
|
|
349
|
-
|
|
350
|
-
|
|
428
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
429
|
+
isOptional: false;
|
|
351
430
|
};
|
|
352
431
|
startedAt: {
|
|
353
|
-
|
|
354
|
-
|
|
432
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
433
|
+
isOptional: true;
|
|
355
434
|
};
|
|
356
435
|
completedAt: {
|
|
357
|
-
|
|
358
|
-
|
|
436
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
437
|
+
isOptional: true;
|
|
359
438
|
};
|
|
360
|
-
|
|
439
|
+
}>, {
|
|
440
|
+
key: string;
|
|
441
|
+
version: string;
|
|
442
|
+
when: string;
|
|
443
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
444
|
+
id: {
|
|
445
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
446
|
+
isOptional: false;
|
|
447
|
+
};
|
|
448
|
+
workflowDefinitionId: {
|
|
449
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
450
|
+
isOptional: false;
|
|
451
|
+
};
|
|
452
|
+
referenceId: {
|
|
453
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
454
|
+
isOptional: true;
|
|
455
|
+
};
|
|
456
|
+
referenceType: {
|
|
457
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
458
|
+
isOptional: true;
|
|
459
|
+
};
|
|
460
|
+
status: {
|
|
461
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
462
|
+
isOptional: false;
|
|
463
|
+
};
|
|
464
|
+
currentStepId: {
|
|
465
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
466
|
+
isOptional: true;
|
|
467
|
+
};
|
|
468
|
+
contextData: {
|
|
469
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
470
|
+
isOptional: true;
|
|
471
|
+
};
|
|
472
|
+
triggeredBy: {
|
|
473
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
474
|
+
isOptional: false;
|
|
475
|
+
};
|
|
476
|
+
organizationId: {
|
|
477
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
478
|
+
isOptional: false;
|
|
479
|
+
};
|
|
480
|
+
priority: {
|
|
481
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
482
|
+
isOptional: false;
|
|
483
|
+
};
|
|
484
|
+
dueAt: {
|
|
485
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
486
|
+
isOptional: true;
|
|
487
|
+
};
|
|
488
|
+
outcome: {
|
|
489
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
490
|
+
isOptional: true;
|
|
491
|
+
};
|
|
492
|
+
resultData: {
|
|
493
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
494
|
+
isOptional: true;
|
|
495
|
+
};
|
|
496
|
+
errorMessage: {
|
|
497
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
498
|
+
isOptional: true;
|
|
499
|
+
};
|
|
500
|
+
createdAt: {
|
|
501
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
502
|
+
isOptional: false;
|
|
503
|
+
};
|
|
504
|
+
startedAt: {
|
|
505
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
506
|
+
isOptional: true;
|
|
507
|
+
};
|
|
508
|
+
completedAt: {
|
|
509
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
510
|
+
isOptional: true;
|
|
511
|
+
};
|
|
512
|
+
}>;
|
|
361
513
|
}[]>;
|
|
362
514
|
/**
|
|
363
|
-
*
|
|
515
|
+
* Resume a paused workflow.
|
|
364
516
|
*/
|
|
365
|
-
declare const
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}>,
|
|
375
|
-
id: {
|
|
376
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
377
|
-
isOptional: false;
|
|
378
|
-
};
|
|
379
|
-
workflowDefinitionId: {
|
|
380
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
381
|
-
isOptional: false;
|
|
382
|
-
};
|
|
383
|
-
referenceId: {
|
|
384
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
385
|
-
isOptional: true;
|
|
386
|
-
};
|
|
387
|
-
referenceType: {
|
|
388
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
389
|
-
isOptional: true;
|
|
390
|
-
};
|
|
391
|
-
status: {
|
|
392
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
393
|
-
isOptional: false;
|
|
394
|
-
};
|
|
395
|
-
currentStepId: {
|
|
396
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
397
|
-
isOptional: true;
|
|
398
|
-
};
|
|
399
|
-
contextData: {
|
|
400
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
401
|
-
isOptional: true;
|
|
402
|
-
};
|
|
403
|
-
triggeredBy: {
|
|
404
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
405
|
-
isOptional: false;
|
|
406
|
-
};
|
|
407
|
-
organizationId: {
|
|
408
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
409
|
-
isOptional: false;
|
|
410
|
-
};
|
|
411
|
-
priority: {
|
|
412
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
413
|
-
isOptional: false;
|
|
414
|
-
};
|
|
415
|
-
dueAt: {
|
|
416
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
417
|
-
isOptional: true;
|
|
418
|
-
};
|
|
419
|
-
outcome: {
|
|
420
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
421
|
-
isOptional: true;
|
|
422
|
-
};
|
|
423
|
-
resultData: {
|
|
424
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
425
|
-
isOptional: true;
|
|
426
|
-
};
|
|
427
|
-
errorMessage: {
|
|
428
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
429
|
-
isOptional: true;
|
|
430
|
-
};
|
|
431
|
-
createdAt: {
|
|
432
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
433
|
-
isOptional: false;
|
|
434
|
-
};
|
|
435
|
-
startedAt: {
|
|
436
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
437
|
-
isOptional: true;
|
|
438
|
-
};
|
|
439
|
-
completedAt: {
|
|
440
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
441
|
-
isOptional: true;
|
|
442
|
-
};
|
|
443
|
-
}>, {
|
|
444
|
-
key: string;
|
|
445
|
-
version: string;
|
|
446
|
-
when: string;
|
|
447
|
-
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
517
|
+
export declare const ResumeWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
518
|
+
instanceId: {
|
|
519
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
520
|
+
isOptional: false;
|
|
521
|
+
};
|
|
522
|
+
reason: {
|
|
523
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
524
|
+
isOptional: true;
|
|
525
|
+
};
|
|
526
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
448
527
|
id: {
|
|
449
|
-
|
|
450
|
-
|
|
528
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
529
|
+
isOptional: false;
|
|
451
530
|
};
|
|
452
531
|
workflowDefinitionId: {
|
|
453
|
-
|
|
454
|
-
|
|
532
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
533
|
+
isOptional: false;
|
|
455
534
|
};
|
|
456
535
|
referenceId: {
|
|
457
|
-
|
|
458
|
-
|
|
536
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
537
|
+
isOptional: true;
|
|
459
538
|
};
|
|
460
539
|
referenceType: {
|
|
461
|
-
|
|
462
|
-
|
|
540
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
541
|
+
isOptional: true;
|
|
463
542
|
};
|
|
464
543
|
status: {
|
|
465
|
-
|
|
466
|
-
|
|
544
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
545
|
+
isOptional: false;
|
|
467
546
|
};
|
|
468
547
|
currentStepId: {
|
|
469
|
-
|
|
470
|
-
|
|
548
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
549
|
+
isOptional: true;
|
|
471
550
|
};
|
|
472
551
|
contextData: {
|
|
473
|
-
|
|
474
|
-
|
|
552
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
553
|
+
isOptional: true;
|
|
475
554
|
};
|
|
476
555
|
triggeredBy: {
|
|
477
|
-
|
|
478
|
-
|
|
556
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
557
|
+
isOptional: false;
|
|
479
558
|
};
|
|
480
559
|
organizationId: {
|
|
481
|
-
|
|
482
|
-
|
|
560
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
561
|
+
isOptional: false;
|
|
483
562
|
};
|
|
484
563
|
priority: {
|
|
485
|
-
|
|
486
|
-
|
|
564
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
565
|
+
isOptional: false;
|
|
487
566
|
};
|
|
488
567
|
dueAt: {
|
|
489
|
-
|
|
490
|
-
|
|
568
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
569
|
+
isOptional: true;
|
|
491
570
|
};
|
|
492
571
|
outcome: {
|
|
493
|
-
|
|
494
|
-
|
|
572
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
573
|
+
isOptional: true;
|
|
495
574
|
};
|
|
496
575
|
resultData: {
|
|
497
|
-
|
|
498
|
-
|
|
576
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
577
|
+
isOptional: true;
|
|
499
578
|
};
|
|
500
579
|
errorMessage: {
|
|
501
|
-
|
|
502
|
-
|
|
580
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
581
|
+
isOptional: true;
|
|
503
582
|
};
|
|
504
583
|
createdAt: {
|
|
505
|
-
|
|
506
|
-
|
|
584
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
585
|
+
isOptional: false;
|
|
507
586
|
};
|
|
508
587
|
startedAt: {
|
|
509
|
-
|
|
510
|
-
|
|
588
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
589
|
+
isOptional: true;
|
|
511
590
|
};
|
|
512
591
|
completedAt: {
|
|
513
|
-
|
|
514
|
-
|
|
592
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
593
|
+
isOptional: true;
|
|
515
594
|
};
|
|
516
|
-
|
|
595
|
+
}>, {
|
|
596
|
+
key: string;
|
|
597
|
+
version: string;
|
|
598
|
+
when: string;
|
|
599
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
600
|
+
id: {
|
|
601
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
602
|
+
isOptional: false;
|
|
603
|
+
};
|
|
604
|
+
workflowDefinitionId: {
|
|
605
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
606
|
+
isOptional: false;
|
|
607
|
+
};
|
|
608
|
+
referenceId: {
|
|
609
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
610
|
+
isOptional: true;
|
|
611
|
+
};
|
|
612
|
+
referenceType: {
|
|
613
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
614
|
+
isOptional: true;
|
|
615
|
+
};
|
|
616
|
+
status: {
|
|
617
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
618
|
+
isOptional: false;
|
|
619
|
+
};
|
|
620
|
+
currentStepId: {
|
|
621
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
622
|
+
isOptional: true;
|
|
623
|
+
};
|
|
624
|
+
contextData: {
|
|
625
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
626
|
+
isOptional: true;
|
|
627
|
+
};
|
|
628
|
+
triggeredBy: {
|
|
629
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
630
|
+
isOptional: false;
|
|
631
|
+
};
|
|
632
|
+
organizationId: {
|
|
633
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
634
|
+
isOptional: false;
|
|
635
|
+
};
|
|
636
|
+
priority: {
|
|
637
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
638
|
+
isOptional: false;
|
|
639
|
+
};
|
|
640
|
+
dueAt: {
|
|
641
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
642
|
+
isOptional: true;
|
|
643
|
+
};
|
|
644
|
+
outcome: {
|
|
645
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
646
|
+
isOptional: true;
|
|
647
|
+
};
|
|
648
|
+
resultData: {
|
|
649
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
650
|
+
isOptional: true;
|
|
651
|
+
};
|
|
652
|
+
errorMessage: {
|
|
653
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
654
|
+
isOptional: true;
|
|
655
|
+
};
|
|
656
|
+
createdAt: {
|
|
657
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
658
|
+
isOptional: false;
|
|
659
|
+
};
|
|
660
|
+
startedAt: {
|
|
661
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
662
|
+
isOptional: true;
|
|
663
|
+
};
|
|
664
|
+
completedAt: {
|
|
665
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
666
|
+
isOptional: true;
|
|
667
|
+
};
|
|
668
|
+
}>;
|
|
517
669
|
}[]>;
|
|
518
670
|
/**
|
|
519
|
-
*
|
|
671
|
+
* Cancel a workflow instance.
|
|
520
672
|
*/
|
|
521
|
-
declare const
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}>,
|
|
531
|
-
id: {
|
|
532
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
533
|
-
isOptional: false;
|
|
534
|
-
};
|
|
535
|
-
workflowDefinitionId: {
|
|
536
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
537
|
-
isOptional: false;
|
|
538
|
-
};
|
|
539
|
-
referenceId: {
|
|
540
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
541
|
-
isOptional: true;
|
|
542
|
-
};
|
|
543
|
-
referenceType: {
|
|
544
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
545
|
-
isOptional: true;
|
|
546
|
-
};
|
|
547
|
-
status: {
|
|
548
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
549
|
-
isOptional: false;
|
|
550
|
-
};
|
|
551
|
-
currentStepId: {
|
|
552
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
553
|
-
isOptional: true;
|
|
554
|
-
};
|
|
555
|
-
contextData: {
|
|
556
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
557
|
-
isOptional: true;
|
|
558
|
-
};
|
|
559
|
-
triggeredBy: {
|
|
560
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
561
|
-
isOptional: false;
|
|
562
|
-
};
|
|
563
|
-
organizationId: {
|
|
564
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
565
|
-
isOptional: false;
|
|
566
|
-
};
|
|
567
|
-
priority: {
|
|
568
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
569
|
-
isOptional: false;
|
|
570
|
-
};
|
|
571
|
-
dueAt: {
|
|
572
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
573
|
-
isOptional: true;
|
|
574
|
-
};
|
|
575
|
-
outcome: {
|
|
576
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
577
|
-
isOptional: true;
|
|
578
|
-
};
|
|
579
|
-
resultData: {
|
|
580
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
581
|
-
isOptional: true;
|
|
582
|
-
};
|
|
583
|
-
errorMessage: {
|
|
584
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
585
|
-
isOptional: true;
|
|
586
|
-
};
|
|
587
|
-
createdAt: {
|
|
588
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
589
|
-
isOptional: false;
|
|
590
|
-
};
|
|
591
|
-
startedAt: {
|
|
592
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
593
|
-
isOptional: true;
|
|
594
|
-
};
|
|
595
|
-
completedAt: {
|
|
596
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
597
|
-
isOptional: true;
|
|
598
|
-
};
|
|
599
|
-
}>, {
|
|
600
|
-
key: string;
|
|
601
|
-
version: string;
|
|
602
|
-
when: string;
|
|
603
|
-
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
673
|
+
export declare const CancelWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
674
|
+
instanceId: {
|
|
675
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
676
|
+
isOptional: false;
|
|
677
|
+
};
|
|
678
|
+
reason: {
|
|
679
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
680
|
+
isOptional: false;
|
|
681
|
+
};
|
|
682
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
604
683
|
id: {
|
|
605
|
-
|
|
606
|
-
|
|
684
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
685
|
+
isOptional: false;
|
|
607
686
|
};
|
|
608
687
|
workflowDefinitionId: {
|
|
609
|
-
|
|
610
|
-
|
|
688
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
689
|
+
isOptional: false;
|
|
611
690
|
};
|
|
612
691
|
referenceId: {
|
|
613
|
-
|
|
614
|
-
|
|
692
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
693
|
+
isOptional: true;
|
|
615
694
|
};
|
|
616
695
|
referenceType: {
|
|
617
|
-
|
|
618
|
-
|
|
696
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
697
|
+
isOptional: true;
|
|
619
698
|
};
|
|
620
699
|
status: {
|
|
621
|
-
|
|
622
|
-
|
|
700
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
701
|
+
isOptional: false;
|
|
623
702
|
};
|
|
624
703
|
currentStepId: {
|
|
625
|
-
|
|
626
|
-
|
|
704
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
705
|
+
isOptional: true;
|
|
627
706
|
};
|
|
628
707
|
contextData: {
|
|
629
|
-
|
|
630
|
-
|
|
708
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
709
|
+
isOptional: true;
|
|
631
710
|
};
|
|
632
711
|
triggeredBy: {
|
|
633
|
-
|
|
634
|
-
|
|
712
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
713
|
+
isOptional: false;
|
|
635
714
|
};
|
|
636
715
|
organizationId: {
|
|
637
|
-
|
|
638
|
-
|
|
716
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
717
|
+
isOptional: false;
|
|
639
718
|
};
|
|
640
719
|
priority: {
|
|
641
|
-
|
|
642
|
-
|
|
720
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
721
|
+
isOptional: false;
|
|
643
722
|
};
|
|
644
723
|
dueAt: {
|
|
645
|
-
|
|
646
|
-
|
|
724
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
725
|
+
isOptional: true;
|
|
647
726
|
};
|
|
648
727
|
outcome: {
|
|
649
|
-
|
|
650
|
-
|
|
728
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
729
|
+
isOptional: true;
|
|
651
730
|
};
|
|
652
731
|
resultData: {
|
|
653
|
-
|
|
654
|
-
|
|
732
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
733
|
+
isOptional: true;
|
|
655
734
|
};
|
|
656
735
|
errorMessage: {
|
|
657
|
-
|
|
658
|
-
|
|
736
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
737
|
+
isOptional: true;
|
|
659
738
|
};
|
|
660
739
|
createdAt: {
|
|
661
|
-
|
|
662
|
-
|
|
740
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
741
|
+
isOptional: false;
|
|
663
742
|
};
|
|
664
743
|
startedAt: {
|
|
665
|
-
|
|
666
|
-
|
|
744
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
745
|
+
isOptional: true;
|
|
667
746
|
};
|
|
668
747
|
completedAt: {
|
|
669
|
-
|
|
670
|
-
|
|
748
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
749
|
+
isOptional: true;
|
|
671
750
|
};
|
|
672
|
-
|
|
751
|
+
}>, {
|
|
752
|
+
key: string;
|
|
753
|
+
version: string;
|
|
754
|
+
when: string;
|
|
755
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
756
|
+
id: {
|
|
757
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
758
|
+
isOptional: false;
|
|
759
|
+
};
|
|
760
|
+
workflowDefinitionId: {
|
|
761
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
762
|
+
isOptional: false;
|
|
763
|
+
};
|
|
764
|
+
referenceId: {
|
|
765
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
766
|
+
isOptional: true;
|
|
767
|
+
};
|
|
768
|
+
referenceType: {
|
|
769
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
770
|
+
isOptional: true;
|
|
771
|
+
};
|
|
772
|
+
status: {
|
|
773
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
774
|
+
isOptional: false;
|
|
775
|
+
};
|
|
776
|
+
currentStepId: {
|
|
777
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
778
|
+
isOptional: true;
|
|
779
|
+
};
|
|
780
|
+
contextData: {
|
|
781
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
782
|
+
isOptional: true;
|
|
783
|
+
};
|
|
784
|
+
triggeredBy: {
|
|
785
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
786
|
+
isOptional: false;
|
|
787
|
+
};
|
|
788
|
+
organizationId: {
|
|
789
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
790
|
+
isOptional: false;
|
|
791
|
+
};
|
|
792
|
+
priority: {
|
|
793
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
794
|
+
isOptional: false;
|
|
795
|
+
};
|
|
796
|
+
dueAt: {
|
|
797
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
798
|
+
isOptional: true;
|
|
799
|
+
};
|
|
800
|
+
outcome: {
|
|
801
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
802
|
+
isOptional: true;
|
|
803
|
+
};
|
|
804
|
+
resultData: {
|
|
805
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
806
|
+
isOptional: true;
|
|
807
|
+
};
|
|
808
|
+
errorMessage: {
|
|
809
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
810
|
+
isOptional: true;
|
|
811
|
+
};
|
|
812
|
+
createdAt: {
|
|
813
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
814
|
+
isOptional: false;
|
|
815
|
+
};
|
|
816
|
+
startedAt: {
|
|
817
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
818
|
+
isOptional: true;
|
|
819
|
+
};
|
|
820
|
+
completedAt: {
|
|
821
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
822
|
+
isOptional: true;
|
|
823
|
+
};
|
|
824
|
+
}>;
|
|
673
825
|
}[]>;
|
|
674
826
|
/**
|
|
675
|
-
*
|
|
827
|
+
* List workflow instances.
|
|
676
828
|
*/
|
|
677
|
-
declare const
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
829
|
+
export declare const ListInstancesContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
830
|
+
workflowKey: {
|
|
831
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
832
|
+
isOptional: true;
|
|
833
|
+
};
|
|
834
|
+
status: {
|
|
835
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
836
|
+
isOptional: true;
|
|
837
|
+
};
|
|
838
|
+
referenceType: {
|
|
839
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
840
|
+
isOptional: true;
|
|
841
|
+
};
|
|
842
|
+
referenceId: {
|
|
843
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
844
|
+
isOptional: true;
|
|
845
|
+
};
|
|
846
|
+
triggeredBy: {
|
|
847
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
848
|
+
isOptional: true;
|
|
849
|
+
};
|
|
850
|
+
limit: {
|
|
851
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
852
|
+
isOptional: true;
|
|
853
|
+
defaultValue: number;
|
|
854
|
+
};
|
|
855
|
+
offset: {
|
|
856
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
857
|
+
isOptional: true;
|
|
858
|
+
defaultValue: number;
|
|
859
|
+
};
|
|
860
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
861
|
+
instances: {
|
|
862
|
+
type: import("@contractspec/lib.schema").SchemaModel<{
|
|
863
|
+
id: {
|
|
864
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
865
|
+
isOptional: false;
|
|
866
|
+
};
|
|
867
|
+
workflowDefinitionId: {
|
|
868
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
869
|
+
isOptional: false;
|
|
870
|
+
};
|
|
871
|
+
referenceId: {
|
|
872
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
873
|
+
isOptional: true;
|
|
874
|
+
};
|
|
875
|
+
referenceType: {
|
|
876
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
877
|
+
isOptional: true;
|
|
878
|
+
};
|
|
879
|
+
status: {
|
|
880
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
881
|
+
isOptional: false;
|
|
882
|
+
};
|
|
883
|
+
currentStepId: {
|
|
884
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
885
|
+
isOptional: true;
|
|
886
|
+
};
|
|
887
|
+
contextData: {
|
|
888
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
889
|
+
isOptional: true;
|
|
890
|
+
};
|
|
891
|
+
triggeredBy: {
|
|
892
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
893
|
+
isOptional: false;
|
|
894
|
+
};
|
|
895
|
+
organizationId: {
|
|
896
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
897
|
+
isOptional: false;
|
|
898
|
+
};
|
|
899
|
+
priority: {
|
|
900
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
901
|
+
isOptional: false;
|
|
902
|
+
};
|
|
903
|
+
dueAt: {
|
|
904
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
905
|
+
isOptional: true;
|
|
906
|
+
};
|
|
907
|
+
outcome: {
|
|
908
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
909
|
+
isOptional: true;
|
|
910
|
+
};
|
|
911
|
+
resultData: {
|
|
912
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
913
|
+
isOptional: true;
|
|
914
|
+
};
|
|
915
|
+
errorMessage: {
|
|
916
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
917
|
+
isOptional: true;
|
|
918
|
+
};
|
|
919
|
+
createdAt: {
|
|
920
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
921
|
+
isOptional: false;
|
|
922
|
+
};
|
|
923
|
+
startedAt: {
|
|
924
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
925
|
+
isOptional: true;
|
|
926
|
+
};
|
|
927
|
+
completedAt: {
|
|
928
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
929
|
+
isOptional: true;
|
|
930
|
+
};
|
|
931
|
+
}>;
|
|
932
|
+
isArray: true;
|
|
933
|
+
isOptional: false;
|
|
934
|
+
};
|
|
935
|
+
total: {
|
|
936
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
937
|
+
isOptional: false;
|
|
938
|
+
};
|
|
939
|
+
}>, undefined>;
|
|
940
|
+
/**
|
|
941
|
+
* Get a single workflow instance.
|
|
942
|
+
*/
|
|
943
|
+
export declare const GetInstanceContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
944
|
+
instanceId: {
|
|
945
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
946
|
+
isOptional: false;
|
|
947
|
+
};
|
|
948
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
760
949
|
id: {
|
|
761
|
-
|
|
762
|
-
|
|
950
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
951
|
+
isOptional: false;
|
|
763
952
|
};
|
|
764
953
|
workflowDefinitionId: {
|
|
765
|
-
|
|
766
|
-
|
|
954
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
955
|
+
isOptional: false;
|
|
767
956
|
};
|
|
768
957
|
referenceId: {
|
|
769
|
-
|
|
770
|
-
|
|
958
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
959
|
+
isOptional: true;
|
|
771
960
|
};
|
|
772
961
|
referenceType: {
|
|
773
|
-
|
|
774
|
-
|
|
962
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
963
|
+
isOptional: true;
|
|
775
964
|
};
|
|
776
965
|
status: {
|
|
777
|
-
|
|
778
|
-
|
|
966
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
967
|
+
isOptional: false;
|
|
779
968
|
};
|
|
780
969
|
currentStepId: {
|
|
781
|
-
|
|
782
|
-
|
|
970
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
971
|
+
isOptional: true;
|
|
783
972
|
};
|
|
784
973
|
contextData: {
|
|
785
|
-
|
|
786
|
-
|
|
974
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
975
|
+
isOptional: true;
|
|
787
976
|
};
|
|
788
977
|
triggeredBy: {
|
|
789
|
-
|
|
790
|
-
|
|
978
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
979
|
+
isOptional: false;
|
|
791
980
|
};
|
|
792
981
|
organizationId: {
|
|
793
|
-
|
|
794
|
-
|
|
982
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
983
|
+
isOptional: false;
|
|
795
984
|
};
|
|
796
985
|
priority: {
|
|
797
|
-
|
|
798
|
-
|
|
986
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
987
|
+
isOptional: false;
|
|
799
988
|
};
|
|
800
989
|
dueAt: {
|
|
801
|
-
|
|
802
|
-
|
|
990
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
991
|
+
isOptional: true;
|
|
803
992
|
};
|
|
804
993
|
outcome: {
|
|
805
|
-
|
|
806
|
-
|
|
994
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
995
|
+
isOptional: true;
|
|
807
996
|
};
|
|
808
997
|
resultData: {
|
|
809
|
-
|
|
810
|
-
|
|
998
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
999
|
+
isOptional: true;
|
|
811
1000
|
};
|
|
812
1001
|
errorMessage: {
|
|
813
|
-
|
|
814
|
-
|
|
1002
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
1003
|
+
isOptional: true;
|
|
815
1004
|
};
|
|
816
1005
|
createdAt: {
|
|
817
|
-
|
|
818
|
-
|
|
1006
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
1007
|
+
isOptional: false;
|
|
819
1008
|
};
|
|
820
1009
|
startedAt: {
|
|
821
|
-
|
|
822
|
-
|
|
1010
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
1011
|
+
isOptional: true;
|
|
823
1012
|
};
|
|
824
1013
|
completedAt: {
|
|
825
|
-
|
|
826
|
-
isOptional: true;
|
|
827
|
-
};
|
|
828
|
-
}>;
|
|
829
|
-
}[]>;
|
|
830
|
-
/**
|
|
831
|
-
* List workflow instances.
|
|
832
|
-
*/
|
|
833
|
-
declare const ListInstancesContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
834
|
-
workflowKey: {
|
|
835
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
836
|
-
isOptional: true;
|
|
837
|
-
};
|
|
838
|
-
status: {
|
|
839
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
840
|
-
isOptional: true;
|
|
841
|
-
};
|
|
842
|
-
referenceType: {
|
|
843
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
844
|
-
isOptional: true;
|
|
845
|
-
};
|
|
846
|
-
referenceId: {
|
|
847
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
848
|
-
isOptional: true;
|
|
849
|
-
};
|
|
850
|
-
triggeredBy: {
|
|
851
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
852
|
-
isOptional: true;
|
|
853
|
-
};
|
|
854
|
-
limit: {
|
|
855
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
856
|
-
isOptional: true;
|
|
857
|
-
defaultValue: number;
|
|
858
|
-
};
|
|
859
|
-
offset: {
|
|
860
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
861
|
-
isOptional: true;
|
|
862
|
-
defaultValue: number;
|
|
863
|
-
};
|
|
864
|
-
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
865
|
-
instances: {
|
|
866
|
-
type: _contractspec_lib_schema0.SchemaModel<{
|
|
867
|
-
id: {
|
|
868
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
869
|
-
isOptional: false;
|
|
870
|
-
};
|
|
871
|
-
workflowDefinitionId: {
|
|
872
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
873
|
-
isOptional: false;
|
|
874
|
-
};
|
|
875
|
-
referenceId: {
|
|
876
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
877
|
-
isOptional: true;
|
|
878
|
-
};
|
|
879
|
-
referenceType: {
|
|
880
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
881
|
-
isOptional: true;
|
|
882
|
-
};
|
|
883
|
-
status: {
|
|
884
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
885
|
-
isOptional: false;
|
|
886
|
-
};
|
|
887
|
-
currentStepId: {
|
|
888
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
889
|
-
isOptional: true;
|
|
890
|
-
};
|
|
891
|
-
contextData: {
|
|
892
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
893
|
-
isOptional: true;
|
|
894
|
-
};
|
|
895
|
-
triggeredBy: {
|
|
896
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
897
|
-
isOptional: false;
|
|
898
|
-
};
|
|
899
|
-
organizationId: {
|
|
900
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
901
|
-
isOptional: false;
|
|
902
|
-
};
|
|
903
|
-
priority: {
|
|
904
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
905
|
-
isOptional: false;
|
|
906
|
-
};
|
|
907
|
-
dueAt: {
|
|
908
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
1014
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
909
1015
|
isOptional: true;
|
|
910
|
-
|
|
911
|
-
outcome: {
|
|
912
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
913
|
-
isOptional: true;
|
|
914
|
-
};
|
|
915
|
-
resultData: {
|
|
916
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
917
|
-
isOptional: true;
|
|
918
|
-
};
|
|
919
|
-
errorMessage: {
|
|
920
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
921
|
-
isOptional: true;
|
|
922
|
-
};
|
|
923
|
-
createdAt: {
|
|
924
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
925
|
-
isOptional: false;
|
|
926
|
-
};
|
|
927
|
-
startedAt: {
|
|
928
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
929
|
-
isOptional: true;
|
|
930
|
-
};
|
|
931
|
-
completedAt: {
|
|
932
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
933
|
-
isOptional: true;
|
|
934
|
-
};
|
|
935
|
-
}>;
|
|
936
|
-
isArray: true;
|
|
937
|
-
isOptional: false;
|
|
938
|
-
};
|
|
939
|
-
total: {
|
|
940
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
941
|
-
isOptional: false;
|
|
942
|
-
};
|
|
943
|
-
}>, undefined>;
|
|
944
|
-
/**
|
|
945
|
-
* Get a single workflow instance.
|
|
946
|
-
*/
|
|
947
|
-
declare const GetInstanceContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
948
|
-
instanceId: {
|
|
949
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
950
|
-
isOptional: false;
|
|
951
|
-
};
|
|
952
|
-
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
953
|
-
id: {
|
|
954
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
955
|
-
isOptional: false;
|
|
956
|
-
};
|
|
957
|
-
workflowDefinitionId: {
|
|
958
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
959
|
-
isOptional: false;
|
|
960
|
-
};
|
|
961
|
-
referenceId: {
|
|
962
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
963
|
-
isOptional: true;
|
|
964
|
-
};
|
|
965
|
-
referenceType: {
|
|
966
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
967
|
-
isOptional: true;
|
|
968
|
-
};
|
|
969
|
-
status: {
|
|
970
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
971
|
-
isOptional: false;
|
|
972
|
-
};
|
|
973
|
-
currentStepId: {
|
|
974
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
975
|
-
isOptional: true;
|
|
976
|
-
};
|
|
977
|
-
contextData: {
|
|
978
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
979
|
-
isOptional: true;
|
|
980
|
-
};
|
|
981
|
-
triggeredBy: {
|
|
982
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
983
|
-
isOptional: false;
|
|
984
|
-
};
|
|
985
|
-
organizationId: {
|
|
986
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
987
|
-
isOptional: false;
|
|
988
|
-
};
|
|
989
|
-
priority: {
|
|
990
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
991
|
-
isOptional: false;
|
|
992
|
-
};
|
|
993
|
-
dueAt: {
|
|
994
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
995
|
-
isOptional: true;
|
|
996
|
-
};
|
|
997
|
-
outcome: {
|
|
998
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
999
|
-
isOptional: true;
|
|
1000
|
-
};
|
|
1001
|
-
resultData: {
|
|
1002
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
1003
|
-
isOptional: true;
|
|
1004
|
-
};
|
|
1005
|
-
errorMessage: {
|
|
1006
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
1007
|
-
isOptional: true;
|
|
1008
|
-
};
|
|
1009
|
-
createdAt: {
|
|
1010
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
1011
|
-
isOptional: false;
|
|
1012
|
-
};
|
|
1013
|
-
startedAt: {
|
|
1014
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
1015
|
-
isOptional: true;
|
|
1016
|
-
};
|
|
1017
|
-
completedAt: {
|
|
1018
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
1019
|
-
isOptional: true;
|
|
1020
|
-
};
|
|
1016
|
+
};
|
|
1021
1017
|
}>, undefined>;
|
|
1022
|
-
//#endregion
|
|
1023
|
-
export { CancelWorkflowContract, GetInstanceContract, ListInstancesContract, PauseWorkflowContract, ResumeWorkflowContract, StartWorkflowContract, TransitionWorkflowContract };
|
|
1024
1018
|
//# sourceMappingURL=instance.operations.d.ts.map
|