@contractspec/example.workflow-system 1.57.0 → 1.58.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,535 +1,529 @@
|
|
|
1
|
-
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
2
|
-
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
3
|
-
|
|
4
|
-
//#region src/approval/approval.operations.d.ts
|
|
5
1
|
/**
|
|
6
2
|
* Approve or reject an approval request.
|
|
7
3
|
*/
|
|
8
|
-
declare const SubmitDecisionContract:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}>,
|
|
26
|
-
id: {
|
|
27
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
28
|
-
isOptional: false;
|
|
29
|
-
};
|
|
30
|
-
workflowInstanceId: {
|
|
31
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
32
|
-
isOptional: false;
|
|
33
|
-
};
|
|
34
|
-
stepExecutionId: {
|
|
35
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
36
|
-
isOptional: false;
|
|
37
|
-
};
|
|
38
|
-
approverId: {
|
|
39
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
40
|
-
isOptional: false;
|
|
41
|
-
};
|
|
42
|
-
approverRole: {
|
|
43
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
44
|
-
isOptional: true;
|
|
45
|
-
};
|
|
46
|
-
title: {
|
|
47
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
48
|
-
isOptional: false;
|
|
49
|
-
};
|
|
50
|
-
description: {
|
|
51
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
52
|
-
isOptional: true;
|
|
53
|
-
};
|
|
54
|
-
status: {
|
|
55
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
56
|
-
isOptional: false;
|
|
57
|
-
};
|
|
58
|
-
decision: {
|
|
59
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
60
|
-
isOptional: true;
|
|
61
|
-
};
|
|
62
|
-
decisionComment: {
|
|
63
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
64
|
-
isOptional: true;
|
|
65
|
-
};
|
|
66
|
-
decidedAt: {
|
|
67
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
68
|
-
isOptional: true;
|
|
69
|
-
};
|
|
70
|
-
dueAt: {
|
|
71
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
72
|
-
isOptional: true;
|
|
73
|
-
};
|
|
74
|
-
contextSnapshot: {
|
|
75
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
76
|
-
isOptional: true;
|
|
77
|
-
};
|
|
78
|
-
sequenceOrder: {
|
|
79
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
80
|
-
isOptional: false;
|
|
81
|
-
};
|
|
82
|
-
createdAt: {
|
|
83
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
84
|
-
isOptional: false;
|
|
85
|
-
};
|
|
86
|
-
}>, {
|
|
87
|
-
key: string;
|
|
88
|
-
version: string;
|
|
89
|
-
when: string;
|
|
90
|
-
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
4
|
+
export declare const SubmitDecisionContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
|
+
requestId: {
|
|
6
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
|
+
isOptional: false;
|
|
8
|
+
};
|
|
9
|
+
decision: {
|
|
10
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
comment: {
|
|
14
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
15
|
+
isOptional: true;
|
|
16
|
+
};
|
|
17
|
+
data: {
|
|
18
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
19
|
+
isOptional: true;
|
|
20
|
+
};
|
|
21
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
91
22
|
id: {
|
|
92
|
-
|
|
93
|
-
|
|
23
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
24
|
+
isOptional: false;
|
|
94
25
|
};
|
|
95
26
|
workflowInstanceId: {
|
|
96
|
-
|
|
97
|
-
|
|
27
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
28
|
+
isOptional: false;
|
|
98
29
|
};
|
|
99
30
|
stepExecutionId: {
|
|
100
|
-
|
|
101
|
-
|
|
31
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
32
|
+
isOptional: false;
|
|
102
33
|
};
|
|
103
34
|
approverId: {
|
|
104
|
-
|
|
105
|
-
|
|
35
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
36
|
+
isOptional: false;
|
|
106
37
|
};
|
|
107
38
|
approverRole: {
|
|
108
|
-
|
|
109
|
-
|
|
39
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
40
|
+
isOptional: true;
|
|
110
41
|
};
|
|
111
42
|
title: {
|
|
112
|
-
|
|
113
|
-
|
|
43
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
114
45
|
};
|
|
115
46
|
description: {
|
|
116
|
-
|
|
117
|
-
|
|
47
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
48
|
+
isOptional: true;
|
|
118
49
|
};
|
|
119
50
|
status: {
|
|
120
|
-
|
|
121
|
-
|
|
51
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string]>;
|
|
52
|
+
isOptional: false;
|
|
122
53
|
};
|
|
123
54
|
decision: {
|
|
124
|
-
|
|
125
|
-
|
|
55
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
|
|
56
|
+
isOptional: true;
|
|
126
57
|
};
|
|
127
58
|
decisionComment: {
|
|
128
|
-
|
|
129
|
-
|
|
59
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
60
|
+
isOptional: true;
|
|
130
61
|
};
|
|
131
62
|
decidedAt: {
|
|
132
|
-
|
|
133
|
-
|
|
63
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
64
|
+
isOptional: true;
|
|
134
65
|
};
|
|
135
66
|
dueAt: {
|
|
136
|
-
|
|
137
|
-
|
|
67
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
68
|
+
isOptional: true;
|
|
138
69
|
};
|
|
139
70
|
contextSnapshot: {
|
|
140
|
-
|
|
141
|
-
|
|
71
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
72
|
+
isOptional: true;
|
|
142
73
|
};
|
|
143
74
|
sequenceOrder: {
|
|
144
|
-
|
|
145
|
-
|
|
75
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
76
|
+
isOptional: false;
|
|
146
77
|
};
|
|
147
78
|
createdAt: {
|
|
148
|
-
|
|
149
|
-
|
|
79
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
80
|
+
isOptional: false;
|
|
150
81
|
};
|
|
151
|
-
|
|
82
|
+
}>, {
|
|
83
|
+
key: string;
|
|
84
|
+
version: string;
|
|
85
|
+
when: string;
|
|
86
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
87
|
+
id: {
|
|
88
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
89
|
+
isOptional: false;
|
|
90
|
+
};
|
|
91
|
+
workflowInstanceId: {
|
|
92
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
93
|
+
isOptional: false;
|
|
94
|
+
};
|
|
95
|
+
stepExecutionId: {
|
|
96
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
97
|
+
isOptional: false;
|
|
98
|
+
};
|
|
99
|
+
approverId: {
|
|
100
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
101
|
+
isOptional: false;
|
|
102
|
+
};
|
|
103
|
+
approverRole: {
|
|
104
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
105
|
+
isOptional: true;
|
|
106
|
+
};
|
|
107
|
+
title: {
|
|
108
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
109
|
+
isOptional: false;
|
|
110
|
+
};
|
|
111
|
+
description: {
|
|
112
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
113
|
+
isOptional: true;
|
|
114
|
+
};
|
|
115
|
+
status: {
|
|
116
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string]>;
|
|
117
|
+
isOptional: false;
|
|
118
|
+
};
|
|
119
|
+
decision: {
|
|
120
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
|
|
121
|
+
isOptional: true;
|
|
122
|
+
};
|
|
123
|
+
decisionComment: {
|
|
124
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
125
|
+
isOptional: true;
|
|
126
|
+
};
|
|
127
|
+
decidedAt: {
|
|
128
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
129
|
+
isOptional: true;
|
|
130
|
+
};
|
|
131
|
+
dueAt: {
|
|
132
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
133
|
+
isOptional: true;
|
|
134
|
+
};
|
|
135
|
+
contextSnapshot: {
|
|
136
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
137
|
+
isOptional: true;
|
|
138
|
+
};
|
|
139
|
+
sequenceOrder: {
|
|
140
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
141
|
+
isOptional: false;
|
|
142
|
+
};
|
|
143
|
+
createdAt: {
|
|
144
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
145
|
+
isOptional: false;
|
|
146
|
+
};
|
|
147
|
+
}>;
|
|
152
148
|
}[]>;
|
|
153
149
|
/**
|
|
154
150
|
* Delegate an approval to another user.
|
|
155
151
|
*/
|
|
156
|
-
declare const DelegateApprovalContract:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}>,
|
|
170
|
-
id: {
|
|
171
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
172
|
-
isOptional: false;
|
|
173
|
-
};
|
|
174
|
-
workflowInstanceId: {
|
|
175
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
176
|
-
isOptional: false;
|
|
177
|
-
};
|
|
178
|
-
stepExecutionId: {
|
|
179
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
180
|
-
isOptional: false;
|
|
181
|
-
};
|
|
182
|
-
approverId: {
|
|
183
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
184
|
-
isOptional: false;
|
|
185
|
-
};
|
|
186
|
-
approverRole: {
|
|
187
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
188
|
-
isOptional: true;
|
|
189
|
-
};
|
|
190
|
-
title: {
|
|
191
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
192
|
-
isOptional: false;
|
|
193
|
-
};
|
|
194
|
-
description: {
|
|
195
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
196
|
-
isOptional: true;
|
|
197
|
-
};
|
|
198
|
-
status: {
|
|
199
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
200
|
-
isOptional: false;
|
|
201
|
-
};
|
|
202
|
-
decision: {
|
|
203
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
204
|
-
isOptional: true;
|
|
205
|
-
};
|
|
206
|
-
decisionComment: {
|
|
207
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
208
|
-
isOptional: true;
|
|
209
|
-
};
|
|
210
|
-
decidedAt: {
|
|
211
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
212
|
-
isOptional: true;
|
|
213
|
-
};
|
|
214
|
-
dueAt: {
|
|
215
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
216
|
-
isOptional: true;
|
|
217
|
-
};
|
|
218
|
-
contextSnapshot: {
|
|
219
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
220
|
-
isOptional: true;
|
|
221
|
-
};
|
|
222
|
-
sequenceOrder: {
|
|
223
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
224
|
-
isOptional: false;
|
|
225
|
-
};
|
|
226
|
-
createdAt: {
|
|
227
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
228
|
-
isOptional: false;
|
|
229
|
-
};
|
|
230
|
-
}>, {
|
|
231
|
-
key: string;
|
|
232
|
-
version: string;
|
|
233
|
-
when: string;
|
|
234
|
-
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
152
|
+
export declare const DelegateApprovalContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
153
|
+
requestId: {
|
|
154
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
155
|
+
isOptional: false;
|
|
156
|
+
};
|
|
157
|
+
delegateTo: {
|
|
158
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
159
|
+
isOptional: false;
|
|
160
|
+
};
|
|
161
|
+
reason: {
|
|
162
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
163
|
+
isOptional: true;
|
|
164
|
+
};
|
|
165
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
235
166
|
id: {
|
|
236
|
-
|
|
237
|
-
|
|
167
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
168
|
+
isOptional: false;
|
|
238
169
|
};
|
|
239
170
|
workflowInstanceId: {
|
|
240
|
-
|
|
241
|
-
|
|
171
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
172
|
+
isOptional: false;
|
|
242
173
|
};
|
|
243
174
|
stepExecutionId: {
|
|
244
|
-
|
|
245
|
-
|
|
175
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
176
|
+
isOptional: false;
|
|
246
177
|
};
|
|
247
178
|
approverId: {
|
|
248
|
-
|
|
249
|
-
|
|
179
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
180
|
+
isOptional: false;
|
|
250
181
|
};
|
|
251
182
|
approverRole: {
|
|
252
|
-
|
|
253
|
-
|
|
183
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
184
|
+
isOptional: true;
|
|
254
185
|
};
|
|
255
186
|
title: {
|
|
256
|
-
|
|
257
|
-
|
|
187
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
188
|
+
isOptional: false;
|
|
258
189
|
};
|
|
259
190
|
description: {
|
|
260
|
-
|
|
261
|
-
|
|
191
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
192
|
+
isOptional: true;
|
|
262
193
|
};
|
|
263
194
|
status: {
|
|
264
|
-
|
|
265
|
-
|
|
195
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string]>;
|
|
196
|
+
isOptional: false;
|
|
266
197
|
};
|
|
267
198
|
decision: {
|
|
268
|
-
|
|
269
|
-
|
|
199
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
|
|
200
|
+
isOptional: true;
|
|
270
201
|
};
|
|
271
202
|
decisionComment: {
|
|
272
|
-
|
|
273
|
-
|
|
203
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
204
|
+
isOptional: true;
|
|
274
205
|
};
|
|
275
206
|
decidedAt: {
|
|
276
|
-
|
|
277
|
-
|
|
207
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
208
|
+
isOptional: true;
|
|
278
209
|
};
|
|
279
210
|
dueAt: {
|
|
280
|
-
|
|
281
|
-
|
|
211
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
212
|
+
isOptional: true;
|
|
282
213
|
};
|
|
283
214
|
contextSnapshot: {
|
|
284
|
-
|
|
285
|
-
|
|
215
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
216
|
+
isOptional: true;
|
|
286
217
|
};
|
|
287
218
|
sequenceOrder: {
|
|
288
|
-
|
|
289
|
-
|
|
219
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
220
|
+
isOptional: false;
|
|
290
221
|
};
|
|
291
222
|
createdAt: {
|
|
292
|
-
|
|
293
|
-
|
|
223
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
224
|
+
isOptional: false;
|
|
294
225
|
};
|
|
295
|
-
|
|
226
|
+
}>, {
|
|
227
|
+
key: string;
|
|
228
|
+
version: string;
|
|
229
|
+
when: string;
|
|
230
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
231
|
+
id: {
|
|
232
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
233
|
+
isOptional: false;
|
|
234
|
+
};
|
|
235
|
+
workflowInstanceId: {
|
|
236
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
237
|
+
isOptional: false;
|
|
238
|
+
};
|
|
239
|
+
stepExecutionId: {
|
|
240
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
241
|
+
isOptional: false;
|
|
242
|
+
};
|
|
243
|
+
approverId: {
|
|
244
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
245
|
+
isOptional: false;
|
|
246
|
+
};
|
|
247
|
+
approverRole: {
|
|
248
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
249
|
+
isOptional: true;
|
|
250
|
+
};
|
|
251
|
+
title: {
|
|
252
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
253
|
+
isOptional: false;
|
|
254
|
+
};
|
|
255
|
+
description: {
|
|
256
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
257
|
+
isOptional: true;
|
|
258
|
+
};
|
|
259
|
+
status: {
|
|
260
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string]>;
|
|
261
|
+
isOptional: false;
|
|
262
|
+
};
|
|
263
|
+
decision: {
|
|
264
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
|
|
265
|
+
isOptional: true;
|
|
266
|
+
};
|
|
267
|
+
decisionComment: {
|
|
268
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
269
|
+
isOptional: true;
|
|
270
|
+
};
|
|
271
|
+
decidedAt: {
|
|
272
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
273
|
+
isOptional: true;
|
|
274
|
+
};
|
|
275
|
+
dueAt: {
|
|
276
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
277
|
+
isOptional: true;
|
|
278
|
+
};
|
|
279
|
+
contextSnapshot: {
|
|
280
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
281
|
+
isOptional: true;
|
|
282
|
+
};
|
|
283
|
+
sequenceOrder: {
|
|
284
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
285
|
+
isOptional: false;
|
|
286
|
+
};
|
|
287
|
+
createdAt: {
|
|
288
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
289
|
+
isOptional: false;
|
|
290
|
+
};
|
|
291
|
+
}>;
|
|
296
292
|
}[]>;
|
|
297
293
|
/**
|
|
298
294
|
* Add a comment to an approval request.
|
|
299
295
|
*/
|
|
300
|
-
declare const AddApprovalCommentContract:
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}>,
|
|
314
|
-
id: {
|
|
315
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
316
|
-
isOptional: false;
|
|
317
|
-
};
|
|
318
|
-
approvalRequestId: {
|
|
319
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
320
|
-
isOptional: false;
|
|
321
|
-
};
|
|
322
|
-
authorId: {
|
|
323
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
324
|
-
isOptional: false;
|
|
325
|
-
};
|
|
326
|
-
content: {
|
|
327
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
328
|
-
isOptional: false;
|
|
329
|
-
};
|
|
330
|
-
isInternal: {
|
|
331
|
-
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
332
|
-
isOptional: false;
|
|
333
|
-
};
|
|
334
|
-
createdAt: {
|
|
335
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
336
|
-
isOptional: false;
|
|
337
|
-
};
|
|
338
|
-
}>, {
|
|
339
|
-
key: string;
|
|
340
|
-
version: string;
|
|
341
|
-
when: string;
|
|
342
|
-
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
296
|
+
export declare const AddApprovalCommentContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
297
|
+
requestId: {
|
|
298
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
299
|
+
isOptional: false;
|
|
300
|
+
};
|
|
301
|
+
content: {
|
|
302
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
303
|
+
isOptional: false;
|
|
304
|
+
};
|
|
305
|
+
isInternal: {
|
|
306
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
307
|
+
isOptional: true;
|
|
308
|
+
};
|
|
309
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
343
310
|
id: {
|
|
344
|
-
|
|
345
|
-
|
|
311
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
312
|
+
isOptional: false;
|
|
346
313
|
};
|
|
347
314
|
approvalRequestId: {
|
|
348
|
-
|
|
349
|
-
|
|
315
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
316
|
+
isOptional: false;
|
|
350
317
|
};
|
|
351
318
|
authorId: {
|
|
352
|
-
|
|
353
|
-
|
|
319
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
320
|
+
isOptional: false;
|
|
354
321
|
};
|
|
355
322
|
content: {
|
|
356
|
-
|
|
357
|
-
|
|
323
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
324
|
+
isOptional: false;
|
|
358
325
|
};
|
|
359
326
|
isInternal: {
|
|
360
|
-
|
|
361
|
-
|
|
327
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
328
|
+
isOptional: false;
|
|
362
329
|
};
|
|
363
330
|
createdAt: {
|
|
364
|
-
|
|
365
|
-
|
|
331
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
332
|
+
isOptional: false;
|
|
366
333
|
};
|
|
367
|
-
|
|
334
|
+
}>, {
|
|
335
|
+
key: string;
|
|
336
|
+
version: string;
|
|
337
|
+
when: string;
|
|
338
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
339
|
+
id: {
|
|
340
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
341
|
+
isOptional: false;
|
|
342
|
+
};
|
|
343
|
+
approvalRequestId: {
|
|
344
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
345
|
+
isOptional: false;
|
|
346
|
+
};
|
|
347
|
+
authorId: {
|
|
348
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
349
|
+
isOptional: false;
|
|
350
|
+
};
|
|
351
|
+
content: {
|
|
352
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
353
|
+
isOptional: false;
|
|
354
|
+
};
|
|
355
|
+
isInternal: {
|
|
356
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
357
|
+
isOptional: false;
|
|
358
|
+
};
|
|
359
|
+
createdAt: {
|
|
360
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
361
|
+
isOptional: false;
|
|
362
|
+
};
|
|
363
|
+
}>;
|
|
368
364
|
}[]>;
|
|
369
365
|
/**
|
|
370
366
|
* List approvals assigned to the current user.
|
|
371
367
|
*/
|
|
372
|
-
declare const ListMyApprovalsContract:
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}>,
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
368
|
+
export declare const ListMyApprovalsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
369
|
+
status: {
|
|
370
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string]>;
|
|
371
|
+
isOptional: true;
|
|
372
|
+
};
|
|
373
|
+
limit: {
|
|
374
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
375
|
+
isOptional: true;
|
|
376
|
+
defaultValue: number;
|
|
377
|
+
};
|
|
378
|
+
offset: {
|
|
379
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
380
|
+
isOptional: true;
|
|
381
|
+
defaultValue: number;
|
|
382
|
+
};
|
|
383
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
384
|
+
requests: {
|
|
385
|
+
type: import("@contractspec/lib.schema").SchemaModel<{
|
|
386
|
+
id: {
|
|
387
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
388
|
+
isOptional: false;
|
|
389
|
+
};
|
|
390
|
+
workflowInstanceId: {
|
|
391
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
392
|
+
isOptional: false;
|
|
393
|
+
};
|
|
394
|
+
stepExecutionId: {
|
|
395
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
396
|
+
isOptional: false;
|
|
397
|
+
};
|
|
398
|
+
approverId: {
|
|
399
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
400
|
+
isOptional: false;
|
|
401
|
+
};
|
|
402
|
+
approverRole: {
|
|
403
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
404
|
+
isOptional: true;
|
|
405
|
+
};
|
|
406
|
+
title: {
|
|
407
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
408
|
+
isOptional: false;
|
|
409
|
+
};
|
|
410
|
+
description: {
|
|
411
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
412
|
+
isOptional: true;
|
|
413
|
+
};
|
|
414
|
+
status: {
|
|
415
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string]>;
|
|
416
|
+
isOptional: false;
|
|
417
|
+
};
|
|
418
|
+
decision: {
|
|
419
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
|
|
420
|
+
isOptional: true;
|
|
421
|
+
};
|
|
422
|
+
decisionComment: {
|
|
423
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
424
|
+
isOptional: true;
|
|
425
|
+
};
|
|
426
|
+
decidedAt: {
|
|
427
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
428
|
+
isOptional: true;
|
|
429
|
+
};
|
|
430
|
+
dueAt: {
|
|
431
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
432
|
+
isOptional: true;
|
|
433
|
+
};
|
|
434
|
+
contextSnapshot: {
|
|
435
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
436
|
+
isOptional: true;
|
|
437
|
+
};
|
|
438
|
+
sequenceOrder: {
|
|
439
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
440
|
+
isOptional: false;
|
|
441
|
+
};
|
|
442
|
+
createdAt: {
|
|
443
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
444
|
+
isOptional: false;
|
|
445
|
+
};
|
|
446
|
+
}>;
|
|
447
|
+
isArray: true;
|
|
448
|
+
isOptional: false;
|
|
449
|
+
};
|
|
450
|
+
total: {
|
|
451
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
452
|
+
isOptional: false;
|
|
453
|
+
};
|
|
454
|
+
pendingCount: {
|
|
455
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
456
|
+
isOptional: false;
|
|
457
|
+
};
|
|
458
|
+
}>, undefined>;
|
|
459
|
+
/**
|
|
460
|
+
* Get a single approval request.
|
|
461
|
+
*/
|
|
462
|
+
export declare const GetApprovalContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
463
|
+
requestId: {
|
|
464
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
465
|
+
isOptional: false;
|
|
466
|
+
};
|
|
467
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
468
|
+
id: {
|
|
469
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
470
|
+
isOptional: false;
|
|
471
|
+
};
|
|
472
|
+
workflowInstanceId: {
|
|
473
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
474
|
+
isOptional: false;
|
|
475
|
+
};
|
|
476
|
+
stepExecutionId: {
|
|
477
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
478
|
+
isOptional: false;
|
|
479
|
+
};
|
|
480
|
+
approverId: {
|
|
481
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
482
|
+
isOptional: false;
|
|
483
|
+
};
|
|
484
|
+
approverRole: {
|
|
485
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
408
486
|
isOptional: true;
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
type:
|
|
487
|
+
};
|
|
488
|
+
title: {
|
|
489
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
412
490
|
isOptional: false;
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
type:
|
|
491
|
+
};
|
|
492
|
+
description: {
|
|
493
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
416
494
|
isOptional: true;
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
type:
|
|
495
|
+
};
|
|
496
|
+
status: {
|
|
497
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string]>;
|
|
420
498
|
isOptional: false;
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
type:
|
|
499
|
+
};
|
|
500
|
+
decision: {
|
|
501
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
|
|
424
502
|
isOptional: true;
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
type:
|
|
503
|
+
};
|
|
504
|
+
decisionComment: {
|
|
505
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
428
506
|
isOptional: true;
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
type:
|
|
507
|
+
};
|
|
508
|
+
decidedAt: {
|
|
509
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
432
510
|
isOptional: true;
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
type:
|
|
511
|
+
};
|
|
512
|
+
dueAt: {
|
|
513
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
436
514
|
isOptional: true;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
type:
|
|
515
|
+
};
|
|
516
|
+
contextSnapshot: {
|
|
517
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
440
518
|
isOptional: true;
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
type:
|
|
519
|
+
};
|
|
520
|
+
sequenceOrder: {
|
|
521
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
444
522
|
isOptional: false;
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
type:
|
|
523
|
+
};
|
|
524
|
+
createdAt: {
|
|
525
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
448
526
|
isOptional: false;
|
|
449
|
-
|
|
450
|
-
}>;
|
|
451
|
-
isArray: true;
|
|
452
|
-
isOptional: false;
|
|
453
|
-
};
|
|
454
|
-
total: {
|
|
455
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
456
|
-
isOptional: false;
|
|
457
|
-
};
|
|
458
|
-
pendingCount: {
|
|
459
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
460
|
-
isOptional: false;
|
|
461
|
-
};
|
|
462
|
-
}>, undefined>;
|
|
463
|
-
/**
|
|
464
|
-
* Get a single approval request.
|
|
465
|
-
*/
|
|
466
|
-
declare const GetApprovalContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
467
|
-
requestId: {
|
|
468
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
469
|
-
isOptional: false;
|
|
470
|
-
};
|
|
471
|
-
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
472
|
-
id: {
|
|
473
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
474
|
-
isOptional: false;
|
|
475
|
-
};
|
|
476
|
-
workflowInstanceId: {
|
|
477
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
478
|
-
isOptional: false;
|
|
479
|
-
};
|
|
480
|
-
stepExecutionId: {
|
|
481
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
482
|
-
isOptional: false;
|
|
483
|
-
};
|
|
484
|
-
approverId: {
|
|
485
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
486
|
-
isOptional: false;
|
|
487
|
-
};
|
|
488
|
-
approverRole: {
|
|
489
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
490
|
-
isOptional: true;
|
|
491
|
-
};
|
|
492
|
-
title: {
|
|
493
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
494
|
-
isOptional: false;
|
|
495
|
-
};
|
|
496
|
-
description: {
|
|
497
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
498
|
-
isOptional: true;
|
|
499
|
-
};
|
|
500
|
-
status: {
|
|
501
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
502
|
-
isOptional: false;
|
|
503
|
-
};
|
|
504
|
-
decision: {
|
|
505
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
506
|
-
isOptional: true;
|
|
507
|
-
};
|
|
508
|
-
decisionComment: {
|
|
509
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
510
|
-
isOptional: true;
|
|
511
|
-
};
|
|
512
|
-
decidedAt: {
|
|
513
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
514
|
-
isOptional: true;
|
|
515
|
-
};
|
|
516
|
-
dueAt: {
|
|
517
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
518
|
-
isOptional: true;
|
|
519
|
-
};
|
|
520
|
-
contextSnapshot: {
|
|
521
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
522
|
-
isOptional: true;
|
|
523
|
-
};
|
|
524
|
-
sequenceOrder: {
|
|
525
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
526
|
-
isOptional: false;
|
|
527
|
-
};
|
|
528
|
-
createdAt: {
|
|
529
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
530
|
-
isOptional: false;
|
|
531
|
-
};
|
|
527
|
+
};
|
|
532
528
|
}>, undefined>;
|
|
533
|
-
//#endregion
|
|
534
|
-
export { AddApprovalCommentContract, DelegateApprovalContract, GetApprovalContract, ListMyApprovalsContract, SubmitDecisionContract };
|
|
535
529
|
//# sourceMappingURL=approval.operations.d.ts.map
|