@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,223 +1,218 @@
|
|
|
1
|
-
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
2
|
-
|
|
3
|
-
//#region src/instance/instance.schema.d.ts
|
|
4
1
|
/**
|
|
5
2
|
* A running workflow instance.
|
|
6
3
|
*/
|
|
7
|
-
declare const WorkflowInstanceModel:
|
|
8
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
4
|
+
export declare const WorkflowInstanceModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
5
|
+
id: {
|
|
6
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
|
+
isOptional: false;
|
|
8
|
+
};
|
|
9
|
+
workflowDefinitionId: {
|
|
10
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
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
|
+
status: {
|
|
22
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
23
|
+
isOptional: false;
|
|
24
|
+
};
|
|
25
|
+
currentStepId: {
|
|
26
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
27
|
+
isOptional: true;
|
|
28
|
+
};
|
|
29
|
+
contextData: {
|
|
30
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
31
|
+
isOptional: true;
|
|
32
|
+
};
|
|
33
|
+
triggeredBy: {
|
|
34
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
35
|
+
isOptional: false;
|
|
36
|
+
};
|
|
37
|
+
organizationId: {
|
|
38
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
39
|
+
isOptional: false;
|
|
40
|
+
};
|
|
41
|
+
priority: {
|
|
42
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
43
|
+
isOptional: false;
|
|
44
|
+
};
|
|
45
|
+
dueAt: {
|
|
46
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
47
|
+
isOptional: true;
|
|
48
|
+
};
|
|
49
|
+
outcome: {
|
|
50
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
51
|
+
isOptional: true;
|
|
52
|
+
};
|
|
53
|
+
resultData: {
|
|
54
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
55
|
+
isOptional: true;
|
|
56
|
+
};
|
|
57
|
+
errorMessage: {
|
|
58
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
59
|
+
isOptional: true;
|
|
60
|
+
};
|
|
61
|
+
createdAt: {
|
|
62
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
63
|
+
isOptional: false;
|
|
64
|
+
};
|
|
65
|
+
startedAt: {
|
|
66
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
67
|
+
isOptional: true;
|
|
68
|
+
};
|
|
69
|
+
completedAt: {
|
|
70
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
71
|
+
isOptional: true;
|
|
72
|
+
};
|
|
76
73
|
}>;
|
|
77
74
|
/**
|
|
78
75
|
* Input for starting a workflow.
|
|
79
76
|
*/
|
|
80
|
-
declare const StartWorkflowInputModel:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
77
|
+
export declare const StartWorkflowInputModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
78
|
+
workflowKey: {
|
|
79
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
80
|
+
isOptional: false;
|
|
81
|
+
};
|
|
82
|
+
contextData: {
|
|
83
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
84
|
+
isOptional: true;
|
|
85
|
+
};
|
|
86
|
+
referenceId: {
|
|
87
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
88
|
+
isOptional: true;
|
|
89
|
+
};
|
|
90
|
+
referenceType: {
|
|
91
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
92
|
+
isOptional: true;
|
|
93
|
+
};
|
|
94
|
+
priority: {
|
|
95
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
96
|
+
isOptional: true;
|
|
97
|
+
};
|
|
98
|
+
dueAt: {
|
|
99
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
100
|
+
isOptional: true;
|
|
101
|
+
};
|
|
105
102
|
}>;
|
|
106
103
|
/**
|
|
107
104
|
* Input for transitioning a workflow.
|
|
108
105
|
*/
|
|
109
|
-
declare const TransitionInputModel:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
isOptional: false;
|
|
113
|
-
};
|
|
114
|
-
action: {
|
|
115
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
116
|
-
isOptional: false;
|
|
117
|
-
};
|
|
118
|
-
data: {
|
|
119
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
120
|
-
isOptional: true;
|
|
121
|
-
};
|
|
122
|
-
comment: {
|
|
123
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
124
|
-
isOptional: true;
|
|
125
|
-
};
|
|
126
|
-
}>;
|
|
127
|
-
/**
|
|
128
|
-
* Result of a workflow transition.
|
|
129
|
-
*/
|
|
130
|
-
declare const TransitionResultModel: _contractspec_lib_schema0.SchemaModel<{
|
|
131
|
-
success: {
|
|
132
|
-
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
133
|
-
isOptional: false;
|
|
134
|
-
};
|
|
135
|
-
instance: {
|
|
136
|
-
type: _contractspec_lib_schema0.SchemaModel<{
|
|
137
|
-
id: {
|
|
138
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
139
|
-
isOptional: false;
|
|
140
|
-
};
|
|
141
|
-
workflowDefinitionId: {
|
|
142
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
106
|
+
export declare const TransitionInputModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
107
|
+
instanceId: {
|
|
108
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
143
109
|
isOptional: false;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
type:
|
|
147
|
-
isOptional: true;
|
|
148
|
-
};
|
|
149
|
-
referenceType: {
|
|
150
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
151
|
-
isOptional: true;
|
|
152
|
-
};
|
|
153
|
-
status: {
|
|
154
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
110
|
+
};
|
|
111
|
+
action: {
|
|
112
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
155
113
|
isOptional: false;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
type:
|
|
114
|
+
};
|
|
115
|
+
data: {
|
|
116
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
159
117
|
isOptional: true;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
type:
|
|
118
|
+
};
|
|
119
|
+
comment: {
|
|
120
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
163
121
|
isOptional: true;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
122
|
+
};
|
|
123
|
+
}>;
|
|
124
|
+
/**
|
|
125
|
+
* Result of a workflow transition.
|
|
126
|
+
*/
|
|
127
|
+
export declare const TransitionResultModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
128
|
+
success: {
|
|
129
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
171
130
|
isOptional: false;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
type:
|
|
131
|
+
};
|
|
132
|
+
instance: {
|
|
133
|
+
type: import("@contractspec/lib.schema").SchemaModel<{
|
|
134
|
+
id: {
|
|
135
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
136
|
+
isOptional: false;
|
|
137
|
+
};
|
|
138
|
+
workflowDefinitionId: {
|
|
139
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
140
|
+
isOptional: false;
|
|
141
|
+
};
|
|
142
|
+
referenceId: {
|
|
143
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
144
|
+
isOptional: true;
|
|
145
|
+
};
|
|
146
|
+
referenceType: {
|
|
147
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
148
|
+
isOptional: true;
|
|
149
|
+
};
|
|
150
|
+
status: {
|
|
151
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
|
|
152
|
+
isOptional: false;
|
|
153
|
+
};
|
|
154
|
+
currentStepId: {
|
|
155
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
156
|
+
isOptional: true;
|
|
157
|
+
};
|
|
158
|
+
contextData: {
|
|
159
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
160
|
+
isOptional: true;
|
|
161
|
+
};
|
|
162
|
+
triggeredBy: {
|
|
163
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
164
|
+
isOptional: false;
|
|
165
|
+
};
|
|
166
|
+
organizationId: {
|
|
167
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
168
|
+
isOptional: false;
|
|
169
|
+
};
|
|
170
|
+
priority: {
|
|
171
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
172
|
+
isOptional: false;
|
|
173
|
+
};
|
|
174
|
+
dueAt: {
|
|
175
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
176
|
+
isOptional: true;
|
|
177
|
+
};
|
|
178
|
+
outcome: {
|
|
179
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
180
|
+
isOptional: true;
|
|
181
|
+
};
|
|
182
|
+
resultData: {
|
|
183
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
184
|
+
isOptional: true;
|
|
185
|
+
};
|
|
186
|
+
errorMessage: {
|
|
187
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
188
|
+
isOptional: true;
|
|
189
|
+
};
|
|
190
|
+
createdAt: {
|
|
191
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
192
|
+
isOptional: false;
|
|
193
|
+
};
|
|
194
|
+
startedAt: {
|
|
195
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
196
|
+
isOptional: true;
|
|
197
|
+
};
|
|
198
|
+
completedAt: {
|
|
199
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
200
|
+
isOptional: true;
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
175
203
|
isOptional: false;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
type:
|
|
204
|
+
};
|
|
205
|
+
previousStepKey: {
|
|
206
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
179
207
|
isOptional: true;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
type:
|
|
208
|
+
};
|
|
209
|
+
currentStepKey: {
|
|
210
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
183
211
|
isOptional: true;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
type:
|
|
212
|
+
};
|
|
213
|
+
message: {
|
|
214
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
187
215
|
isOptional: true;
|
|
188
|
-
|
|
189
|
-
errorMessage: {
|
|
190
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
191
|
-
isOptional: true;
|
|
192
|
-
};
|
|
193
|
-
createdAt: {
|
|
194
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
195
|
-
isOptional: false;
|
|
196
|
-
};
|
|
197
|
-
startedAt: {
|
|
198
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
199
|
-
isOptional: true;
|
|
200
|
-
};
|
|
201
|
-
completedAt: {
|
|
202
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
203
|
-
isOptional: true;
|
|
204
|
-
};
|
|
205
|
-
}>;
|
|
206
|
-
isOptional: false;
|
|
207
|
-
};
|
|
208
|
-
previousStepKey: {
|
|
209
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
210
|
-
isOptional: true;
|
|
211
|
-
};
|
|
212
|
-
currentStepKey: {
|
|
213
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
214
|
-
isOptional: true;
|
|
215
|
-
};
|
|
216
|
-
message: {
|
|
217
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
218
|
-
isOptional: true;
|
|
219
|
-
};
|
|
216
|
+
};
|
|
220
217
|
}>;
|
|
221
|
-
//#endregion
|
|
222
|
-
export { StartWorkflowInputModel, TransitionInputModel, TransitionResultModel, WorkflowInstanceModel };
|
|
223
218
|
//# sourceMappingURL=instance.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance.schema.d.ts","
|
|
1
|
+
{"version":3,"file":"instance.schema.d.ts","sourceRoot":"","sources":["../../src/instance/instance.schema.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqChC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;EAclC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;EAS/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBhC,CAAC"}
|