@contractspec/example.workflow-system 0.0.0-canary-20260119224015 → 0.0.0-canary-20260119225944
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.event.d.ts +5 -5
- package/dist/approval/approval.operations.d.ts +6 -6
- package/dist/workflow/workflow.event.d.ts +33 -33
- package/dist/workflow/workflow.event.d.ts.map +1 -1
- package/dist/workflow/workflow.operations.d.ts +246 -246
- package/dist/workflow/workflow.schema.d.ts +63 -63
- package/dist/workflow/workflow.schema.d.ts.map +1 -1
- package/dist/workflow-system.capability.d.ts +4 -4
- package/dist/workflow-system.feature.d.ts +2 -2
- package/dist/workflow-system.feature.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
2
2
|
import * as _contractspec_lib_schema1 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/approval/approval.event.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* ApprovalRequestedEvent - An approval has been requested.
|
|
7
7
|
*/
|
|
8
|
-
declare const ApprovalRequestedEvent:
|
|
8
|
+
declare const ApprovalRequestedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema1.SchemaModel<{
|
|
9
9
|
requestId: {
|
|
10
10
|
type: _contractspec_lib_schema1.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
@@ -42,7 +42,7 @@ declare const ApprovalRequestedEvent: _contractspec_lib_contracts4.EventSpec<_co
|
|
|
42
42
|
/**
|
|
43
43
|
* ApprovalDecidedEvent - An approval decision has been made.
|
|
44
44
|
*/
|
|
45
|
-
declare const ApprovalDecidedEvent:
|
|
45
|
+
declare const ApprovalDecidedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema1.SchemaModel<{
|
|
46
46
|
requestId: {
|
|
47
47
|
type: _contractspec_lib_schema1.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
@@ -71,7 +71,7 @@ declare const ApprovalDecidedEvent: _contractspec_lib_contracts4.EventSpec<_cont
|
|
|
71
71
|
/**
|
|
72
72
|
* ApprovalDelegatedEvent - An approval has been delegated.
|
|
73
73
|
*/
|
|
74
|
-
declare const ApprovalDelegatedEvent:
|
|
74
|
+
declare const ApprovalDelegatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema1.SchemaModel<{
|
|
75
75
|
requestId: {
|
|
76
76
|
type: _contractspec_lib_schema1.FieldType<string, string>;
|
|
77
77
|
isOptional: false;
|
|
@@ -100,7 +100,7 @@ declare const ApprovalDelegatedEvent: _contractspec_lib_contracts4.EventSpec<_co
|
|
|
100
100
|
/**
|
|
101
101
|
* ApprovalEscalatedEvent - An approval has been escalated.
|
|
102
102
|
*/
|
|
103
|
-
declare const ApprovalEscalatedEvent:
|
|
103
|
+
declare const ApprovalEscalatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema1.SchemaModel<{
|
|
104
104
|
requestId: {
|
|
105
105
|
type: _contractspec_lib_schema1.FieldType<string, string>;
|
|
106
106
|
isOptional: false;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts7 from "@contractspec/lib.contracts";
|
|
2
2
|
import * as _contractspec_lib_schema31 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/approval/approval.operations.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Approve or reject an approval request.
|
|
7
7
|
*/
|
|
8
|
-
declare const SubmitDecisionContract:
|
|
8
|
+
declare const SubmitDecisionContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema31.SchemaModel<{
|
|
9
9
|
requestId: {
|
|
10
10
|
type: _contractspec_lib_schema31.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
@@ -153,7 +153,7 @@ declare const SubmitDecisionContract: _contractspec_lib_contracts8.OperationSpec
|
|
|
153
153
|
/**
|
|
154
154
|
* Delegate an approval to another user.
|
|
155
155
|
*/
|
|
156
|
-
declare const DelegateApprovalContract:
|
|
156
|
+
declare const DelegateApprovalContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema31.SchemaModel<{
|
|
157
157
|
requestId: {
|
|
158
158
|
type: _contractspec_lib_schema31.FieldType<string, string>;
|
|
159
159
|
isOptional: false;
|
|
@@ -297,7 +297,7 @@ declare const DelegateApprovalContract: _contractspec_lib_contracts8.OperationSp
|
|
|
297
297
|
/**
|
|
298
298
|
* Add a comment to an approval request.
|
|
299
299
|
*/
|
|
300
|
-
declare const AddApprovalCommentContract:
|
|
300
|
+
declare const AddApprovalCommentContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema31.SchemaModel<{
|
|
301
301
|
requestId: {
|
|
302
302
|
type: _contractspec_lib_schema31.FieldType<string, string>;
|
|
303
303
|
isOptional: false;
|
|
@@ -369,7 +369,7 @@ declare const AddApprovalCommentContract: _contractspec_lib_contracts8.Operation
|
|
|
369
369
|
/**
|
|
370
370
|
* List approvals assigned to the current user.
|
|
371
371
|
*/
|
|
372
|
-
declare const ListMyApprovalsContract:
|
|
372
|
+
declare const ListMyApprovalsContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema31.SchemaModel<{
|
|
373
373
|
status: {
|
|
374
374
|
type: _contractspec_lib_schema31.EnumType<[string, string, string, string, string, string, string]>;
|
|
375
375
|
isOptional: true;
|
|
@@ -463,7 +463,7 @@ declare const ListMyApprovalsContract: _contractspec_lib_contracts8.OperationSpe
|
|
|
463
463
|
/**
|
|
464
464
|
* Get a single approval request.
|
|
465
465
|
*/
|
|
466
|
-
declare const GetApprovalContract:
|
|
466
|
+
declare const GetApprovalContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema31.SchemaModel<{
|
|
467
467
|
requestId: {
|
|
468
468
|
type: _contractspec_lib_schema31.FieldType<string, string>;
|
|
469
469
|
isOptional: false;
|
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts61 from "@contractspec/lib.contracts";
|
|
2
|
+
import * as _contractspec_lib_schema1087 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/workflow/workflow.event.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* WorkflowCreatedEvent - A new workflow definition has been created.
|
|
7
7
|
*/
|
|
8
|
-
declare const WorkflowCreatedEvent:
|
|
8
|
+
declare const WorkflowCreatedEvent: _contractspec_lib_contracts61.EventSpec<_contractspec_lib_schema1087.SchemaModel<{
|
|
9
9
|
workflowId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
key: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
name: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
version: {
|
|
22
|
-
type:
|
|
22
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
organizationId: {
|
|
26
|
-
type:
|
|
26
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
createdBy: {
|
|
30
|
-
type:
|
|
30
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
31
31
|
isOptional: false;
|
|
32
32
|
};
|
|
33
33
|
timestamp: {
|
|
34
|
-
type:
|
|
34
|
+
type: _contractspec_lib_schema1087.FieldType<Date, string>;
|
|
35
35
|
isOptional: false;
|
|
36
36
|
};
|
|
37
37
|
}>>;
|
|
38
38
|
/**
|
|
39
39
|
* WorkflowUpdatedEvent - A workflow definition has been updated.
|
|
40
40
|
*/
|
|
41
|
-
declare const WorkflowUpdatedEvent:
|
|
41
|
+
declare const WorkflowUpdatedEvent: _contractspec_lib_contracts61.EventSpec<_contractspec_lib_schema1087.SchemaModel<{
|
|
42
42
|
workflowId: {
|
|
43
|
-
type:
|
|
43
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
key: {
|
|
47
|
-
type:
|
|
47
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
name: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
version: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
organizationId: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
createdBy: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
timestamp: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema1087.FieldType<Date, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
}>>;
|
|
71
71
|
/**
|
|
72
72
|
* WorkflowPublishedEvent - A workflow definition has been published.
|
|
73
73
|
*/
|
|
74
|
-
declare const WorkflowPublishedEvent:
|
|
74
|
+
declare const WorkflowPublishedEvent: _contractspec_lib_contracts61.EventSpec<_contractspec_lib_schema1087.SchemaModel<{
|
|
75
75
|
workflowId: {
|
|
76
|
-
type:
|
|
76
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
key: {
|
|
80
|
-
type:
|
|
80
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
name: {
|
|
84
|
-
type:
|
|
84
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
version: {
|
|
88
|
-
type:
|
|
88
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
organizationId: {
|
|
92
|
-
type:
|
|
92
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
createdBy: {
|
|
96
|
-
type:
|
|
96
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
timestamp: {
|
|
100
|
-
type:
|
|
100
|
+
type: _contractspec_lib_schema1087.FieldType<Date, string>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
}>>;
|
|
104
104
|
/**
|
|
105
105
|
* StepAddedEvent - A step has been added to a workflow definition.
|
|
106
106
|
*/
|
|
107
|
-
declare const StepAddedEvent:
|
|
107
|
+
declare const StepAddedEvent: _contractspec_lib_contracts61.EventSpec<_contractspec_lib_schema1087.SchemaModel<{
|
|
108
108
|
stepId: {
|
|
109
|
-
type:
|
|
109
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
workflowId: {
|
|
113
|
-
type:
|
|
113
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
114
114
|
isOptional: false;
|
|
115
115
|
};
|
|
116
116
|
stepKey: {
|
|
117
|
-
type:
|
|
117
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
stepType: {
|
|
121
|
-
type:
|
|
121
|
+
type: _contractspec_lib_schema1087.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
position: {
|
|
125
|
-
type:
|
|
125
|
+
type: _contractspec_lib_schema1087.FieldType<number, number>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
timestamp: {
|
|
129
|
-
type:
|
|
129
|
+
type: _contractspec_lib_schema1087.FieldType<Date, string>;
|
|
130
130
|
isOptional: false;
|
|
131
131
|
};
|
|
132
132
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.event.d.ts","names":[],"sources":["../../src/workflow/workflow.event.ts"],"sourcesContent":[],"mappings":";;;;;;;cA0Ca,sBAAoB,6BAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"workflow.event.d.ts","names":[],"sources":["../../src/workflow/workflow.event.ts"],"sourcesContent":[],"mappings":";;;;;;;cA0Ca,sBAAoB,6BAAA,CAAA,uCAAA;EAApB,UAAA,EAAA;IAUX,IAAA,EAAA,4BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;gDAV+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAepB,OAAA,EAAA;IAUX,IAAA,wCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;gDAV+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAepB,SAAA,EAAA;IAUX,IAAA,wCAAA,KAAA,EAAA,MAAA,CAAA;;;;;;;cAzBW,sBAAoB,6BAAA,CAAA,uCAAA;;IAeE,IAAA,EALjC,4BAAA,CAAA,SAKiC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAetB,CAAA;EAUX,GAAA,EAAA;;;;;;;;EAVyB,OAAA,EAAA;IAAA,IAAA,wCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;cAfd,wBAAsB,6BAAA,CAAA,uCAAA;;UAUjC,4BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,gBAAc,6BAAA,CAAA,uCAAA;;UAUzB,4BAAA,CAAA"}
|