@contractspec/example.workflow-system 1.45.6 → 1.46.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,136 +2,136 @@ import { ApprovalCommentEntity, ApprovalDecisionEnum, ApprovalRequestEntity, App
2
2
  import { WorkflowDefinitionEntity, WorkflowStatusEnum, WorkflowTriggerTypeEnum } from "./workflow.js";
3
3
  import { ApprovalModeEnum, StepTypeEnum, WorkflowStepEntity } from "./step.js";
4
4
  import { InstanceStatusEnum, StepExecutionEntity, StepExecutionStatusEnum, WorkflowInstanceEntity } from "./instance.js";
5
- import * as _contractspec_lib_schema329 from "@contractspec/lib.schema";
5
+ import * as _contractspec_lib_schema284 from "@contractspec/lib.schema";
6
6
  import { ModuleSchemaContribution } from "@contractspec/lib.schema";
7
7
 
8
8
  //#region src/entities/index.d.ts
9
- declare const workflowSystemEntities: (_contractspec_lib_schema329.EntitySpec<{
10
- id: _contractspec_lib_schema329.EntityScalarField;
11
- workflowInstanceId: _contractspec_lib_schema329.EntityScalarField;
12
- stepExecutionId: _contractspec_lib_schema329.EntityScalarField;
13
- approverId: _contractspec_lib_schema329.EntityScalarField;
14
- approverRole: _contractspec_lib_schema329.EntityScalarField;
15
- title: _contractspec_lib_schema329.EntityScalarField;
16
- description: _contractspec_lib_schema329.EntityScalarField;
17
- status: _contractspec_lib_schema329.EntityEnumField;
18
- decision: _contractspec_lib_schema329.EntityEnumField;
19
- decisionComment: _contractspec_lib_schema329.EntityScalarField;
20
- decidedAt: _contractspec_lib_schema329.EntityScalarField;
21
- delegatedTo: _contractspec_lib_schema329.EntityScalarField;
22
- delegationReason: _contractspec_lib_schema329.EntityScalarField;
23
- escalationLevel: _contractspec_lib_schema329.EntityScalarField;
24
- escalatedAt: _contractspec_lib_schema329.EntityScalarField;
25
- dueAt: _contractspec_lib_schema329.EntityScalarField;
26
- reminderSentAt: _contractspec_lib_schema329.EntityScalarField;
27
- contextSnapshot: _contractspec_lib_schema329.EntityScalarField;
28
- sequenceOrder: _contractspec_lib_schema329.EntityScalarField;
29
- createdAt: _contractspec_lib_schema329.EntityScalarField;
30
- updatedAt: _contractspec_lib_schema329.EntityScalarField;
31
- workflowInstance: _contractspec_lib_schema329.EntityRelationField;
32
- stepExecution: _contractspec_lib_schema329.EntityRelationField;
33
- }> | _contractspec_lib_schema329.EntitySpec<{
34
- id: _contractspec_lib_schema329.EntityScalarField;
35
- approvalRequestId: _contractspec_lib_schema329.EntityScalarField;
36
- authorId: _contractspec_lib_schema329.EntityScalarField;
37
- content: _contractspec_lib_schema329.EntityScalarField;
38
- isInternal: _contractspec_lib_schema329.EntityScalarField;
39
- createdAt: _contractspec_lib_schema329.EntityScalarField;
40
- updatedAt: _contractspec_lib_schema329.EntityScalarField;
41
- approvalRequest: _contractspec_lib_schema329.EntityRelationField;
42
- }> | _contractspec_lib_schema329.EntitySpec<{
43
- id: _contractspec_lib_schema329.EntityScalarField;
44
- workflowDefinitionId: _contractspec_lib_schema329.EntityScalarField;
45
- referenceId: _contractspec_lib_schema329.EntityScalarField;
46
- referenceType: _contractspec_lib_schema329.EntityScalarField;
47
- status: _contractspec_lib_schema329.EntityEnumField;
48
- currentStepId: _contractspec_lib_schema329.EntityScalarField;
49
- contextData: _contractspec_lib_schema329.EntityScalarField;
50
- triggeredBy: _contractspec_lib_schema329.EntityScalarField;
51
- triggerSource: _contractspec_lib_schema329.EntityScalarField;
52
- organizationId: _contractspec_lib_schema329.EntityScalarField;
53
- priority: _contractspec_lib_schema329.EntityScalarField;
54
- dueAt: _contractspec_lib_schema329.EntityScalarField;
55
- outcome: _contractspec_lib_schema329.EntityScalarField;
56
- resultData: _contractspec_lib_schema329.EntityScalarField;
57
- errorMessage: _contractspec_lib_schema329.EntityScalarField;
58
- createdAt: _contractspec_lib_schema329.EntityScalarField;
59
- updatedAt: _contractspec_lib_schema329.EntityScalarField;
60
- startedAt: _contractspec_lib_schema329.EntityScalarField;
61
- completedAt: _contractspec_lib_schema329.EntityScalarField;
62
- workflowDefinition: _contractspec_lib_schema329.EntityRelationField;
63
- currentStep: _contractspec_lib_schema329.EntityRelationField;
64
- stepExecutions: _contractspec_lib_schema329.EntityRelationField;
65
- approvalRequests: _contractspec_lib_schema329.EntityRelationField;
66
- }> | _contractspec_lib_schema329.EntitySpec<{
67
- id: _contractspec_lib_schema329.EntityScalarField;
68
- workflowInstanceId: _contractspec_lib_schema329.EntityScalarField;
69
- workflowStepId: _contractspec_lib_schema329.EntityScalarField;
70
- status: _contractspec_lib_schema329.EntityEnumField;
71
- executionOrder: _contractspec_lib_schema329.EntityScalarField;
72
- inputData: _contractspec_lib_schema329.EntityScalarField;
73
- outputData: _contractspec_lib_schema329.EntityScalarField;
74
- actionTaken: _contractspec_lib_schema329.EntityScalarField;
75
- transitionedTo: _contractspec_lib_schema329.EntityScalarField;
76
- executedBy: _contractspec_lib_schema329.EntityScalarField;
77
- errorMessage: _contractspec_lib_schema329.EntityScalarField;
78
- errorDetails: _contractspec_lib_schema329.EntityScalarField;
79
- retryCount: _contractspec_lib_schema329.EntityScalarField;
80
- createdAt: _contractspec_lib_schema329.EntityScalarField;
81
- updatedAt: _contractspec_lib_schema329.EntityScalarField;
82
- startedAt: _contractspec_lib_schema329.EntityScalarField;
83
- completedAt: _contractspec_lib_schema329.EntityScalarField;
84
- workflowInstance: _contractspec_lib_schema329.EntityRelationField;
85
- workflowStep: _contractspec_lib_schema329.EntityRelationField;
86
- }> | _contractspec_lib_schema329.EntitySpec<{
87
- id: _contractspec_lib_schema329.EntityScalarField;
88
- name: _contractspec_lib_schema329.EntityScalarField;
89
- key: _contractspec_lib_schema329.EntityScalarField;
90
- description: _contractspec_lib_schema329.EntityScalarField;
91
- version: _contractspec_lib_schema329.EntityScalarField;
92
- status: _contractspec_lib_schema329.EntityEnumField;
93
- triggerType: _contractspec_lib_schema329.EntityEnumField;
94
- triggerConfig: _contractspec_lib_schema329.EntityScalarField;
95
- initialStepId: _contractspec_lib_schema329.EntityScalarField;
96
- featureFlagKey: _contractspec_lib_schema329.EntityScalarField;
97
- settings: _contractspec_lib_schema329.EntityScalarField;
98
- metadata: _contractspec_lib_schema329.EntityScalarField;
99
- organizationId: _contractspec_lib_schema329.EntityScalarField;
100
- createdBy: _contractspec_lib_schema329.EntityScalarField;
101
- createdAt: _contractspec_lib_schema329.EntityScalarField;
102
- updatedAt: _contractspec_lib_schema329.EntityScalarField;
103
- publishedAt: _contractspec_lib_schema329.EntityScalarField;
104
- steps: _contractspec_lib_schema329.EntityRelationField;
105
- instances: _contractspec_lib_schema329.EntityRelationField;
106
- }> | _contractspec_lib_schema329.EntitySpec<{
107
- id: _contractspec_lib_schema329.EntityScalarField;
108
- workflowDefinitionId: _contractspec_lib_schema329.EntityScalarField;
109
- name: _contractspec_lib_schema329.EntityScalarField;
110
- key: _contractspec_lib_schema329.EntityScalarField;
111
- description: _contractspec_lib_schema329.EntityScalarField;
112
- type: _contractspec_lib_schema329.EntityEnumField;
113
- position: _contractspec_lib_schema329.EntityScalarField;
114
- transitions: _contractspec_lib_schema329.EntityScalarField;
115
- approvalMode: _contractspec_lib_schema329.EntityEnumField;
116
- approverRoles: _contractspec_lib_schema329.EntityScalarField;
117
- approverUserIds: _contractspec_lib_schema329.EntityScalarField;
118
- escalationConfig: _contractspec_lib_schema329.EntityScalarField;
119
- assigneeRoles: _contractspec_lib_schema329.EntityScalarField;
120
- taskTemplate: _contractspec_lib_schema329.EntityScalarField;
121
- conditionExpression: _contractspec_lib_schema329.EntityScalarField;
122
- waitDuration: _contractspec_lib_schema329.EntityScalarField;
123
- waitForEvent: _contractspec_lib_schema329.EntityScalarField;
124
- actionType: _contractspec_lib_schema329.EntityScalarField;
125
- actionConfig: _contractspec_lib_schema329.EntityScalarField;
126
- timeoutSeconds: _contractspec_lib_schema329.EntityScalarField;
127
- slaSeconds: _contractspec_lib_schema329.EntityScalarField;
128
- notifyOnEnter: _contractspec_lib_schema329.EntityScalarField;
129
- notifyOnExit: _contractspec_lib_schema329.EntityScalarField;
130
- metadata: _contractspec_lib_schema329.EntityScalarField;
131
- createdAt: _contractspec_lib_schema329.EntityScalarField;
132
- updatedAt: _contractspec_lib_schema329.EntityScalarField;
133
- workflowDefinition: _contractspec_lib_schema329.EntityRelationField;
134
- executions: _contractspec_lib_schema329.EntityRelationField;
9
+ declare const workflowSystemEntities: (_contractspec_lib_schema284.EntitySpec<{
10
+ id: _contractspec_lib_schema284.EntityScalarField;
11
+ workflowInstanceId: _contractspec_lib_schema284.EntityScalarField;
12
+ stepExecutionId: _contractspec_lib_schema284.EntityScalarField;
13
+ approverId: _contractspec_lib_schema284.EntityScalarField;
14
+ approverRole: _contractspec_lib_schema284.EntityScalarField;
15
+ title: _contractspec_lib_schema284.EntityScalarField;
16
+ description: _contractspec_lib_schema284.EntityScalarField;
17
+ status: _contractspec_lib_schema284.EntityEnumField;
18
+ decision: _contractspec_lib_schema284.EntityEnumField;
19
+ decisionComment: _contractspec_lib_schema284.EntityScalarField;
20
+ decidedAt: _contractspec_lib_schema284.EntityScalarField;
21
+ delegatedTo: _contractspec_lib_schema284.EntityScalarField;
22
+ delegationReason: _contractspec_lib_schema284.EntityScalarField;
23
+ escalationLevel: _contractspec_lib_schema284.EntityScalarField;
24
+ escalatedAt: _contractspec_lib_schema284.EntityScalarField;
25
+ dueAt: _contractspec_lib_schema284.EntityScalarField;
26
+ reminderSentAt: _contractspec_lib_schema284.EntityScalarField;
27
+ contextSnapshot: _contractspec_lib_schema284.EntityScalarField;
28
+ sequenceOrder: _contractspec_lib_schema284.EntityScalarField;
29
+ createdAt: _contractspec_lib_schema284.EntityScalarField;
30
+ updatedAt: _contractspec_lib_schema284.EntityScalarField;
31
+ workflowInstance: _contractspec_lib_schema284.EntityRelationField;
32
+ stepExecution: _contractspec_lib_schema284.EntityRelationField;
33
+ }> | _contractspec_lib_schema284.EntitySpec<{
34
+ id: _contractspec_lib_schema284.EntityScalarField;
35
+ approvalRequestId: _contractspec_lib_schema284.EntityScalarField;
36
+ authorId: _contractspec_lib_schema284.EntityScalarField;
37
+ content: _contractspec_lib_schema284.EntityScalarField;
38
+ isInternal: _contractspec_lib_schema284.EntityScalarField;
39
+ createdAt: _contractspec_lib_schema284.EntityScalarField;
40
+ updatedAt: _contractspec_lib_schema284.EntityScalarField;
41
+ approvalRequest: _contractspec_lib_schema284.EntityRelationField;
42
+ }> | _contractspec_lib_schema284.EntitySpec<{
43
+ id: _contractspec_lib_schema284.EntityScalarField;
44
+ name: _contractspec_lib_schema284.EntityScalarField;
45
+ key: _contractspec_lib_schema284.EntityScalarField;
46
+ description: _contractspec_lib_schema284.EntityScalarField;
47
+ version: _contractspec_lib_schema284.EntityScalarField;
48
+ status: _contractspec_lib_schema284.EntityEnumField;
49
+ triggerType: _contractspec_lib_schema284.EntityEnumField;
50
+ triggerConfig: _contractspec_lib_schema284.EntityScalarField;
51
+ initialStepId: _contractspec_lib_schema284.EntityScalarField;
52
+ featureFlagKey: _contractspec_lib_schema284.EntityScalarField;
53
+ settings: _contractspec_lib_schema284.EntityScalarField;
54
+ metadata: _contractspec_lib_schema284.EntityScalarField;
55
+ organizationId: _contractspec_lib_schema284.EntityScalarField;
56
+ createdBy: _contractspec_lib_schema284.EntityScalarField;
57
+ createdAt: _contractspec_lib_schema284.EntityScalarField;
58
+ updatedAt: _contractspec_lib_schema284.EntityScalarField;
59
+ publishedAt: _contractspec_lib_schema284.EntityScalarField;
60
+ steps: _contractspec_lib_schema284.EntityRelationField;
61
+ instances: _contractspec_lib_schema284.EntityRelationField;
62
+ }> | _contractspec_lib_schema284.EntitySpec<{
63
+ id: _contractspec_lib_schema284.EntityScalarField;
64
+ workflowDefinitionId: _contractspec_lib_schema284.EntityScalarField;
65
+ name: _contractspec_lib_schema284.EntityScalarField;
66
+ key: _contractspec_lib_schema284.EntityScalarField;
67
+ description: _contractspec_lib_schema284.EntityScalarField;
68
+ type: _contractspec_lib_schema284.EntityEnumField;
69
+ position: _contractspec_lib_schema284.EntityScalarField;
70
+ transitions: _contractspec_lib_schema284.EntityScalarField;
71
+ approvalMode: _contractspec_lib_schema284.EntityEnumField;
72
+ approverRoles: _contractspec_lib_schema284.EntityScalarField;
73
+ approverUserIds: _contractspec_lib_schema284.EntityScalarField;
74
+ escalationConfig: _contractspec_lib_schema284.EntityScalarField;
75
+ assigneeRoles: _contractspec_lib_schema284.EntityScalarField;
76
+ taskTemplate: _contractspec_lib_schema284.EntityScalarField;
77
+ conditionExpression: _contractspec_lib_schema284.EntityScalarField;
78
+ waitDuration: _contractspec_lib_schema284.EntityScalarField;
79
+ waitForEvent: _contractspec_lib_schema284.EntityScalarField;
80
+ actionType: _contractspec_lib_schema284.EntityScalarField;
81
+ actionConfig: _contractspec_lib_schema284.EntityScalarField;
82
+ timeoutSeconds: _contractspec_lib_schema284.EntityScalarField;
83
+ slaSeconds: _contractspec_lib_schema284.EntityScalarField;
84
+ notifyOnEnter: _contractspec_lib_schema284.EntityScalarField;
85
+ notifyOnExit: _contractspec_lib_schema284.EntityScalarField;
86
+ metadata: _contractspec_lib_schema284.EntityScalarField;
87
+ createdAt: _contractspec_lib_schema284.EntityScalarField;
88
+ updatedAt: _contractspec_lib_schema284.EntityScalarField;
89
+ workflowDefinition: _contractspec_lib_schema284.EntityRelationField;
90
+ executions: _contractspec_lib_schema284.EntityRelationField;
91
+ }> | _contractspec_lib_schema284.EntitySpec<{
92
+ id: _contractspec_lib_schema284.EntityScalarField;
93
+ workflowDefinitionId: _contractspec_lib_schema284.EntityScalarField;
94
+ referenceId: _contractspec_lib_schema284.EntityScalarField;
95
+ referenceType: _contractspec_lib_schema284.EntityScalarField;
96
+ status: _contractspec_lib_schema284.EntityEnumField;
97
+ currentStepId: _contractspec_lib_schema284.EntityScalarField;
98
+ contextData: _contractspec_lib_schema284.EntityScalarField;
99
+ triggeredBy: _contractspec_lib_schema284.EntityScalarField;
100
+ triggerSource: _contractspec_lib_schema284.EntityScalarField;
101
+ organizationId: _contractspec_lib_schema284.EntityScalarField;
102
+ priority: _contractspec_lib_schema284.EntityScalarField;
103
+ dueAt: _contractspec_lib_schema284.EntityScalarField;
104
+ outcome: _contractspec_lib_schema284.EntityScalarField;
105
+ resultData: _contractspec_lib_schema284.EntityScalarField;
106
+ errorMessage: _contractspec_lib_schema284.EntityScalarField;
107
+ createdAt: _contractspec_lib_schema284.EntityScalarField;
108
+ updatedAt: _contractspec_lib_schema284.EntityScalarField;
109
+ startedAt: _contractspec_lib_schema284.EntityScalarField;
110
+ completedAt: _contractspec_lib_schema284.EntityScalarField;
111
+ workflowDefinition: _contractspec_lib_schema284.EntityRelationField;
112
+ currentStep: _contractspec_lib_schema284.EntityRelationField;
113
+ stepExecutions: _contractspec_lib_schema284.EntityRelationField;
114
+ approvalRequests: _contractspec_lib_schema284.EntityRelationField;
115
+ }> | _contractspec_lib_schema284.EntitySpec<{
116
+ id: _contractspec_lib_schema284.EntityScalarField;
117
+ workflowInstanceId: _contractspec_lib_schema284.EntityScalarField;
118
+ workflowStepId: _contractspec_lib_schema284.EntityScalarField;
119
+ status: _contractspec_lib_schema284.EntityEnumField;
120
+ executionOrder: _contractspec_lib_schema284.EntityScalarField;
121
+ inputData: _contractspec_lib_schema284.EntityScalarField;
122
+ outputData: _contractspec_lib_schema284.EntityScalarField;
123
+ actionTaken: _contractspec_lib_schema284.EntityScalarField;
124
+ transitionedTo: _contractspec_lib_schema284.EntityScalarField;
125
+ executedBy: _contractspec_lib_schema284.EntityScalarField;
126
+ errorMessage: _contractspec_lib_schema284.EntityScalarField;
127
+ errorDetails: _contractspec_lib_schema284.EntityScalarField;
128
+ retryCount: _contractspec_lib_schema284.EntityScalarField;
129
+ createdAt: _contractspec_lib_schema284.EntityScalarField;
130
+ updatedAt: _contractspec_lib_schema284.EntityScalarField;
131
+ startedAt: _contractspec_lib_schema284.EntityScalarField;
132
+ completedAt: _contractspec_lib_schema284.EntityScalarField;
133
+ workflowInstance: _contractspec_lib_schema284.EntityRelationField;
134
+ workflowStep: _contractspec_lib_schema284.EntityRelationField;
135
135
  }>)[];
136
136
  declare const workflowSystemSchemaContribution: ModuleSchemaContribution;
137
137
  //#endregion
@@ -1,68 +1,68 @@
1
- import * as _contractspec_lib_schema283 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema410 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/entities/instance.d.ts
4
4
  /**
5
5
  * Instance status enum - lifecycle of a workflow instance.
6
6
  */
7
- declare const InstanceStatusEnum: _contractspec_lib_schema283.EntityEnumDef;
7
+ declare const InstanceStatusEnum: _contractspec_lib_schema410.EntityEnumDef;
8
8
  /**
9
9
  * Step execution status enum.
10
10
  */
11
- declare const StepExecutionStatusEnum: _contractspec_lib_schema283.EntityEnumDef;
11
+ declare const StepExecutionStatusEnum: _contractspec_lib_schema410.EntityEnumDef;
12
12
  /**
13
13
  * WorkflowInstance entity - a running instance of a workflow.
14
14
  *
15
15
  * When a workflow is triggered, an instance is created. The instance
16
16
  * tracks the current state and all data associated with this execution.
17
17
  */
18
- declare const WorkflowInstanceEntity: _contractspec_lib_schema283.EntitySpec<{
19
- id: _contractspec_lib_schema283.EntityScalarField;
20
- workflowDefinitionId: _contractspec_lib_schema283.EntityScalarField;
21
- referenceId: _contractspec_lib_schema283.EntityScalarField;
22
- referenceType: _contractspec_lib_schema283.EntityScalarField;
23
- status: _contractspec_lib_schema283.EntityEnumField;
24
- currentStepId: _contractspec_lib_schema283.EntityScalarField;
25
- contextData: _contractspec_lib_schema283.EntityScalarField;
26
- triggeredBy: _contractspec_lib_schema283.EntityScalarField;
27
- triggerSource: _contractspec_lib_schema283.EntityScalarField;
28
- organizationId: _contractspec_lib_schema283.EntityScalarField;
29
- priority: _contractspec_lib_schema283.EntityScalarField;
30
- dueAt: _contractspec_lib_schema283.EntityScalarField;
31
- outcome: _contractspec_lib_schema283.EntityScalarField;
32
- resultData: _contractspec_lib_schema283.EntityScalarField;
33
- errorMessage: _contractspec_lib_schema283.EntityScalarField;
34
- createdAt: _contractspec_lib_schema283.EntityScalarField;
35
- updatedAt: _contractspec_lib_schema283.EntityScalarField;
36
- startedAt: _contractspec_lib_schema283.EntityScalarField;
37
- completedAt: _contractspec_lib_schema283.EntityScalarField;
38
- workflowDefinition: _contractspec_lib_schema283.EntityRelationField;
39
- currentStep: _contractspec_lib_schema283.EntityRelationField;
40
- stepExecutions: _contractspec_lib_schema283.EntityRelationField;
41
- approvalRequests: _contractspec_lib_schema283.EntityRelationField;
18
+ declare const WorkflowInstanceEntity: _contractspec_lib_schema410.EntitySpec<{
19
+ id: _contractspec_lib_schema410.EntityScalarField;
20
+ workflowDefinitionId: _contractspec_lib_schema410.EntityScalarField;
21
+ referenceId: _contractspec_lib_schema410.EntityScalarField;
22
+ referenceType: _contractspec_lib_schema410.EntityScalarField;
23
+ status: _contractspec_lib_schema410.EntityEnumField;
24
+ currentStepId: _contractspec_lib_schema410.EntityScalarField;
25
+ contextData: _contractspec_lib_schema410.EntityScalarField;
26
+ triggeredBy: _contractspec_lib_schema410.EntityScalarField;
27
+ triggerSource: _contractspec_lib_schema410.EntityScalarField;
28
+ organizationId: _contractspec_lib_schema410.EntityScalarField;
29
+ priority: _contractspec_lib_schema410.EntityScalarField;
30
+ dueAt: _contractspec_lib_schema410.EntityScalarField;
31
+ outcome: _contractspec_lib_schema410.EntityScalarField;
32
+ resultData: _contractspec_lib_schema410.EntityScalarField;
33
+ errorMessage: _contractspec_lib_schema410.EntityScalarField;
34
+ createdAt: _contractspec_lib_schema410.EntityScalarField;
35
+ updatedAt: _contractspec_lib_schema410.EntityScalarField;
36
+ startedAt: _contractspec_lib_schema410.EntityScalarField;
37
+ completedAt: _contractspec_lib_schema410.EntityScalarField;
38
+ workflowDefinition: _contractspec_lib_schema410.EntityRelationField;
39
+ currentStep: _contractspec_lib_schema410.EntityRelationField;
40
+ stepExecutions: _contractspec_lib_schema410.EntityRelationField;
41
+ approvalRequests: _contractspec_lib_schema410.EntityRelationField;
42
42
  }>;
43
43
  /**
44
44
  * StepExecution entity - tracks execution of a step within an instance.
45
45
  */
46
- declare const StepExecutionEntity: _contractspec_lib_schema283.EntitySpec<{
47
- id: _contractspec_lib_schema283.EntityScalarField;
48
- workflowInstanceId: _contractspec_lib_schema283.EntityScalarField;
49
- workflowStepId: _contractspec_lib_schema283.EntityScalarField;
50
- status: _contractspec_lib_schema283.EntityEnumField;
51
- executionOrder: _contractspec_lib_schema283.EntityScalarField;
52
- inputData: _contractspec_lib_schema283.EntityScalarField;
53
- outputData: _contractspec_lib_schema283.EntityScalarField;
54
- actionTaken: _contractspec_lib_schema283.EntityScalarField;
55
- transitionedTo: _contractspec_lib_schema283.EntityScalarField;
56
- executedBy: _contractspec_lib_schema283.EntityScalarField;
57
- errorMessage: _contractspec_lib_schema283.EntityScalarField;
58
- errorDetails: _contractspec_lib_schema283.EntityScalarField;
59
- retryCount: _contractspec_lib_schema283.EntityScalarField;
60
- createdAt: _contractspec_lib_schema283.EntityScalarField;
61
- updatedAt: _contractspec_lib_schema283.EntityScalarField;
62
- startedAt: _contractspec_lib_schema283.EntityScalarField;
63
- completedAt: _contractspec_lib_schema283.EntityScalarField;
64
- workflowInstance: _contractspec_lib_schema283.EntityRelationField;
65
- workflowStep: _contractspec_lib_schema283.EntityRelationField;
46
+ declare const StepExecutionEntity: _contractspec_lib_schema410.EntitySpec<{
47
+ id: _contractspec_lib_schema410.EntityScalarField;
48
+ workflowInstanceId: _contractspec_lib_schema410.EntityScalarField;
49
+ workflowStepId: _contractspec_lib_schema410.EntityScalarField;
50
+ status: _contractspec_lib_schema410.EntityEnumField;
51
+ executionOrder: _contractspec_lib_schema410.EntityScalarField;
52
+ inputData: _contractspec_lib_schema410.EntityScalarField;
53
+ outputData: _contractspec_lib_schema410.EntityScalarField;
54
+ actionTaken: _contractspec_lib_schema410.EntityScalarField;
55
+ transitionedTo: _contractspec_lib_schema410.EntityScalarField;
56
+ executedBy: _contractspec_lib_schema410.EntityScalarField;
57
+ errorMessage: _contractspec_lib_schema410.EntityScalarField;
58
+ errorDetails: _contractspec_lib_schema410.EntityScalarField;
59
+ retryCount: _contractspec_lib_schema410.EntityScalarField;
60
+ createdAt: _contractspec_lib_schema410.EntityScalarField;
61
+ updatedAt: _contractspec_lib_schema410.EntityScalarField;
62
+ startedAt: _contractspec_lib_schema410.EntityScalarField;
63
+ completedAt: _contractspec_lib_schema410.EntityScalarField;
64
+ workflowInstance: _contractspec_lib_schema410.EntityRelationField;
65
+ workflowStep: _contractspec_lib_schema410.EntityRelationField;
66
66
  }>;
67
67
  //#endregion
68
68
  export { InstanceStatusEnum, StepExecutionEntity, StepExecutionStatusEnum, WorkflowInstanceEntity };
@@ -1,49 +1,49 @@
1
- import * as _contractspec_lib_schema455 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema456 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/entities/step.d.ts
4
4
  /**
5
5
  * Step type enum - what kind of step this is.
6
6
  */
7
- declare const StepTypeEnum: _contractspec_lib_schema455.EntityEnumDef;
7
+ declare const StepTypeEnum: _contractspec_lib_schema456.EntityEnumDef;
8
8
  /**
9
9
  * Approval mode enum - how approvals are handled.
10
10
  */
11
- declare const ApprovalModeEnum: _contractspec_lib_schema455.EntityEnumDef;
11
+ declare const ApprovalModeEnum: _contractspec_lib_schema456.EntityEnumDef;
12
12
  /**
13
13
  * WorkflowStep entity - defines a step in a workflow.
14
14
  *
15
15
  * Each step represents a state in the workflow state machine,
16
16
  * with transitions defined by the `transitions` JSON field.
17
17
  */
18
- declare const WorkflowStepEntity: _contractspec_lib_schema455.EntitySpec<{
19
- id: _contractspec_lib_schema455.EntityScalarField;
20
- workflowDefinitionId: _contractspec_lib_schema455.EntityScalarField;
21
- name: _contractspec_lib_schema455.EntityScalarField;
22
- key: _contractspec_lib_schema455.EntityScalarField;
23
- description: _contractspec_lib_schema455.EntityScalarField;
24
- type: _contractspec_lib_schema455.EntityEnumField;
25
- position: _contractspec_lib_schema455.EntityScalarField;
26
- transitions: _contractspec_lib_schema455.EntityScalarField;
27
- approvalMode: _contractspec_lib_schema455.EntityEnumField;
28
- approverRoles: _contractspec_lib_schema455.EntityScalarField;
29
- approverUserIds: _contractspec_lib_schema455.EntityScalarField;
30
- escalationConfig: _contractspec_lib_schema455.EntityScalarField;
31
- assigneeRoles: _contractspec_lib_schema455.EntityScalarField;
32
- taskTemplate: _contractspec_lib_schema455.EntityScalarField;
33
- conditionExpression: _contractspec_lib_schema455.EntityScalarField;
34
- waitDuration: _contractspec_lib_schema455.EntityScalarField;
35
- waitForEvent: _contractspec_lib_schema455.EntityScalarField;
36
- actionType: _contractspec_lib_schema455.EntityScalarField;
37
- actionConfig: _contractspec_lib_schema455.EntityScalarField;
38
- timeoutSeconds: _contractspec_lib_schema455.EntityScalarField;
39
- slaSeconds: _contractspec_lib_schema455.EntityScalarField;
40
- notifyOnEnter: _contractspec_lib_schema455.EntityScalarField;
41
- notifyOnExit: _contractspec_lib_schema455.EntityScalarField;
42
- metadata: _contractspec_lib_schema455.EntityScalarField;
43
- createdAt: _contractspec_lib_schema455.EntityScalarField;
44
- updatedAt: _contractspec_lib_schema455.EntityScalarField;
45
- workflowDefinition: _contractspec_lib_schema455.EntityRelationField;
46
- executions: _contractspec_lib_schema455.EntityRelationField;
18
+ declare const WorkflowStepEntity: _contractspec_lib_schema456.EntitySpec<{
19
+ id: _contractspec_lib_schema456.EntityScalarField;
20
+ workflowDefinitionId: _contractspec_lib_schema456.EntityScalarField;
21
+ name: _contractspec_lib_schema456.EntityScalarField;
22
+ key: _contractspec_lib_schema456.EntityScalarField;
23
+ description: _contractspec_lib_schema456.EntityScalarField;
24
+ type: _contractspec_lib_schema456.EntityEnumField;
25
+ position: _contractspec_lib_schema456.EntityScalarField;
26
+ transitions: _contractspec_lib_schema456.EntityScalarField;
27
+ approvalMode: _contractspec_lib_schema456.EntityEnumField;
28
+ approverRoles: _contractspec_lib_schema456.EntityScalarField;
29
+ approverUserIds: _contractspec_lib_schema456.EntityScalarField;
30
+ escalationConfig: _contractspec_lib_schema456.EntityScalarField;
31
+ assigneeRoles: _contractspec_lib_schema456.EntityScalarField;
32
+ taskTemplate: _contractspec_lib_schema456.EntityScalarField;
33
+ conditionExpression: _contractspec_lib_schema456.EntityScalarField;
34
+ waitDuration: _contractspec_lib_schema456.EntityScalarField;
35
+ waitForEvent: _contractspec_lib_schema456.EntityScalarField;
36
+ actionType: _contractspec_lib_schema456.EntityScalarField;
37
+ actionConfig: _contractspec_lib_schema456.EntityScalarField;
38
+ timeoutSeconds: _contractspec_lib_schema456.EntityScalarField;
39
+ slaSeconds: _contractspec_lib_schema456.EntityScalarField;
40
+ notifyOnEnter: _contractspec_lib_schema456.EntityScalarField;
41
+ notifyOnExit: _contractspec_lib_schema456.EntityScalarField;
42
+ metadata: _contractspec_lib_schema456.EntityScalarField;
43
+ createdAt: _contractspec_lib_schema456.EntityScalarField;
44
+ updatedAt: _contractspec_lib_schema456.EntityScalarField;
45
+ workflowDefinition: _contractspec_lib_schema456.EntityRelationField;
46
+ executions: _contractspec_lib_schema456.EntityRelationField;
47
47
  }>;
48
48
  //#endregion
49
49
  export { ApprovalModeEnum, StepTypeEnum, WorkflowStepEntity };
@@ -1,40 +1,40 @@
1
- import * as _contractspec_lib_schema486 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema572 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/entities/workflow.d.ts
4
4
  /**
5
5
  * Workflow status enum - the lifecycle state of a workflow definition.
6
6
  */
7
- declare const WorkflowStatusEnum: _contractspec_lib_schema486.EntityEnumDef;
7
+ declare const WorkflowStatusEnum: _contractspec_lib_schema572.EntityEnumDef;
8
8
  /**
9
9
  * Workflow trigger type enum - what initiates a workflow.
10
10
  */
11
- declare const WorkflowTriggerTypeEnum: _contractspec_lib_schema486.EntityEnumDef;
11
+ declare const WorkflowTriggerTypeEnum: _contractspec_lib_schema572.EntityEnumDef;
12
12
  /**
13
13
  * WorkflowDefinition entity - defines a workflow blueprint.
14
14
  *
15
15
  * A workflow definition specifies the structure, steps, and rules
16
16
  * for a business process. Instances are created from definitions.
17
17
  */
18
- declare const WorkflowDefinitionEntity: _contractspec_lib_schema486.EntitySpec<{
19
- id: _contractspec_lib_schema486.EntityScalarField;
20
- name: _contractspec_lib_schema486.EntityScalarField;
21
- key: _contractspec_lib_schema486.EntityScalarField;
22
- description: _contractspec_lib_schema486.EntityScalarField;
23
- version: _contractspec_lib_schema486.EntityScalarField;
24
- status: _contractspec_lib_schema486.EntityEnumField;
25
- triggerType: _contractspec_lib_schema486.EntityEnumField;
26
- triggerConfig: _contractspec_lib_schema486.EntityScalarField;
27
- initialStepId: _contractspec_lib_schema486.EntityScalarField;
28
- featureFlagKey: _contractspec_lib_schema486.EntityScalarField;
29
- settings: _contractspec_lib_schema486.EntityScalarField;
30
- metadata: _contractspec_lib_schema486.EntityScalarField;
31
- organizationId: _contractspec_lib_schema486.EntityScalarField;
32
- createdBy: _contractspec_lib_schema486.EntityScalarField;
33
- createdAt: _contractspec_lib_schema486.EntityScalarField;
34
- updatedAt: _contractspec_lib_schema486.EntityScalarField;
35
- publishedAt: _contractspec_lib_schema486.EntityScalarField;
36
- steps: _contractspec_lib_schema486.EntityRelationField;
37
- instances: _contractspec_lib_schema486.EntityRelationField;
18
+ declare const WorkflowDefinitionEntity: _contractspec_lib_schema572.EntitySpec<{
19
+ id: _contractspec_lib_schema572.EntityScalarField;
20
+ name: _contractspec_lib_schema572.EntityScalarField;
21
+ key: _contractspec_lib_schema572.EntityScalarField;
22
+ description: _contractspec_lib_schema572.EntityScalarField;
23
+ version: _contractspec_lib_schema572.EntityScalarField;
24
+ status: _contractspec_lib_schema572.EntityEnumField;
25
+ triggerType: _contractspec_lib_schema572.EntityEnumField;
26
+ triggerConfig: _contractspec_lib_schema572.EntityScalarField;
27
+ initialStepId: _contractspec_lib_schema572.EntityScalarField;
28
+ featureFlagKey: _contractspec_lib_schema572.EntityScalarField;
29
+ settings: _contractspec_lib_schema572.EntityScalarField;
30
+ metadata: _contractspec_lib_schema572.EntityScalarField;
31
+ organizationId: _contractspec_lib_schema572.EntityScalarField;
32
+ createdBy: _contractspec_lib_schema572.EntityScalarField;
33
+ createdAt: _contractspec_lib_schema572.EntityScalarField;
34
+ updatedAt: _contractspec_lib_schema572.EntityScalarField;
35
+ publishedAt: _contractspec_lib_schema572.EntityScalarField;
36
+ steps: _contractspec_lib_schema572.EntityRelationField;
37
+ instances: _contractspec_lib_schema572.EntityRelationField;
38
38
  }>;
39
39
  //#endregion
40
40
  export { WorkflowDefinitionEntity, WorkflowStatusEnum, WorkflowTriggerTypeEnum };
@@ -1,10 +1,10 @@
1
- import * as _contractspec_lib_schema508 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema283 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/instance/instance.enum.d.ts
4
4
  /**
5
5
  * Instance status enum.
6
6
  */
7
- declare const InstanceStatusEnum: _contractspec_lib_schema508.EnumType<[string, string, string, string, string, string, string, string]>;
7
+ declare const InstanceStatusEnum: _contractspec_lib_schema283.EnumType<[string, string, string, string, string, string, string, string]>;
8
8
  //#endregion
9
9
  export { InstanceStatusEnum };
10
10
  //# sourceMappingURL=instance.enum.d.ts.map
@@ -1,353 +1,353 @@
1
- import * as _contractspec_lib_schema509 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema487 from "@contractspec/lib.schema";
2
2
  import * as _contractspec_lib_contracts8 from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/instance/instance.event.d.ts
5
5
  /**
6
6
  * InstanceStartedEvent - A new workflow instance has been started.
7
7
  */
8
- declare const InstanceStartedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
8
+ declare const InstanceStartedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
9
9
  instanceId: {
10
- type: _contractspec_lib_schema509.FieldType<string, string>;
10
+ type: _contractspec_lib_schema487.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  workflowId: {
14
- type: _contractspec_lib_schema509.FieldType<string, string>;
14
+ type: _contractspec_lib_schema487.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  workflowKey: {
18
- type: _contractspec_lib_schema509.FieldType<string, string>;
18
+ type: _contractspec_lib_schema487.FieldType<string, string>;
19
19
  isOptional: false;
20
20
  };
21
21
  status: {
22
- type: _contractspec_lib_schema509.FieldType<string, string>;
22
+ type: _contractspec_lib_schema487.FieldType<string, string>;
23
23
  isOptional: false;
24
24
  };
25
25
  referenceId: {
26
- type: _contractspec_lib_schema509.FieldType<string, string>;
26
+ type: _contractspec_lib_schema487.FieldType<string, string>;
27
27
  isOptional: true;
28
28
  };
29
29
  referenceType: {
30
- type: _contractspec_lib_schema509.FieldType<string, string>;
30
+ type: _contractspec_lib_schema487.FieldType<string, string>;
31
31
  isOptional: true;
32
32
  };
33
33
  triggeredBy: {
34
- type: _contractspec_lib_schema509.FieldType<string, string>;
34
+ type: _contractspec_lib_schema487.FieldType<string, string>;
35
35
  isOptional: false;
36
36
  };
37
37
  organizationId: {
38
- type: _contractspec_lib_schema509.FieldType<string, string>;
38
+ type: _contractspec_lib_schema487.FieldType<string, string>;
39
39
  isOptional: false;
40
40
  };
41
41
  timestamp: {
42
- type: _contractspec_lib_schema509.FieldType<Date, string>;
42
+ type: _contractspec_lib_schema487.FieldType<Date, string>;
43
43
  isOptional: false;
44
44
  };
45
45
  }>>;
46
46
  /**
47
47
  * StepEnteredEvent - A workflow instance has entered a new step.
48
48
  */
49
- declare const StepEnteredEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
49
+ declare const StepEnteredEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
50
50
  instanceId: {
51
- type: _contractspec_lib_schema509.FieldType<string, string>;
51
+ type: _contractspec_lib_schema487.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  workflowId: {
55
- type: _contractspec_lib_schema509.FieldType<string, string>;
55
+ type: _contractspec_lib_schema487.FieldType<string, string>;
56
56
  isOptional: false;
57
57
  };
58
58
  fromStepKey: {
59
- type: _contractspec_lib_schema509.FieldType<string, string>;
59
+ type: _contractspec_lib_schema487.FieldType<string, string>;
60
60
  isOptional: true;
61
61
  };
62
62
  toStepKey: {
63
- type: _contractspec_lib_schema509.FieldType<string, string>;
63
+ type: _contractspec_lib_schema487.FieldType<string, string>;
64
64
  isOptional: false;
65
65
  };
66
66
  action: {
67
- type: _contractspec_lib_schema509.FieldType<string, string>;
67
+ type: _contractspec_lib_schema487.FieldType<string, string>;
68
68
  isOptional: true;
69
69
  };
70
70
  executedBy: {
71
- type: _contractspec_lib_schema509.FieldType<string, string>;
71
+ type: _contractspec_lib_schema487.FieldType<string, string>;
72
72
  isOptional: false;
73
73
  };
74
74
  timestamp: {
75
- type: _contractspec_lib_schema509.FieldType<Date, string>;
75
+ type: _contractspec_lib_schema487.FieldType<Date, string>;
76
76
  isOptional: false;
77
77
  };
78
78
  }>>;
79
79
  /**
80
80
  * StepExitedEvent - A workflow instance has exited a step.
81
81
  */
82
- declare const StepExitedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
82
+ declare const StepExitedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
83
83
  instanceId: {
84
- type: _contractspec_lib_schema509.FieldType<string, string>;
84
+ type: _contractspec_lib_schema487.FieldType<string, string>;
85
85
  isOptional: false;
86
86
  };
87
87
  workflowId: {
88
- type: _contractspec_lib_schema509.FieldType<string, string>;
88
+ type: _contractspec_lib_schema487.FieldType<string, string>;
89
89
  isOptional: false;
90
90
  };
91
91
  fromStepKey: {
92
- type: _contractspec_lib_schema509.FieldType<string, string>;
92
+ type: _contractspec_lib_schema487.FieldType<string, string>;
93
93
  isOptional: true;
94
94
  };
95
95
  toStepKey: {
96
- type: _contractspec_lib_schema509.FieldType<string, string>;
96
+ type: _contractspec_lib_schema487.FieldType<string, string>;
97
97
  isOptional: false;
98
98
  };
99
99
  action: {
100
- type: _contractspec_lib_schema509.FieldType<string, string>;
100
+ type: _contractspec_lib_schema487.FieldType<string, string>;
101
101
  isOptional: true;
102
102
  };
103
103
  executedBy: {
104
- type: _contractspec_lib_schema509.FieldType<string, string>;
104
+ type: _contractspec_lib_schema487.FieldType<string, string>;
105
105
  isOptional: false;
106
106
  };
107
107
  timestamp: {
108
- type: _contractspec_lib_schema509.FieldType<Date, string>;
108
+ type: _contractspec_lib_schema487.FieldType<Date, string>;
109
109
  isOptional: false;
110
110
  };
111
111
  }>>;
112
112
  /**
113
113
  * InstanceCompletedEvent - A workflow instance has completed.
114
114
  */
115
- declare const InstanceCompletedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
115
+ declare const InstanceCompletedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
116
116
  instanceId: {
117
- type: _contractspec_lib_schema509.FieldType<string, string>;
117
+ type: _contractspec_lib_schema487.FieldType<string, string>;
118
118
  isOptional: false;
119
119
  };
120
120
  workflowId: {
121
- type: _contractspec_lib_schema509.FieldType<string, string>;
121
+ type: _contractspec_lib_schema487.FieldType<string, string>;
122
122
  isOptional: false;
123
123
  };
124
124
  workflowKey: {
125
- type: _contractspec_lib_schema509.FieldType<string, string>;
125
+ type: _contractspec_lib_schema487.FieldType<string, string>;
126
126
  isOptional: false;
127
127
  };
128
128
  outcome: {
129
- type: _contractspec_lib_schema509.FieldType<string, string>;
129
+ type: _contractspec_lib_schema487.FieldType<string, string>;
130
130
  isOptional: false;
131
131
  };
132
132
  referenceId: {
133
- type: _contractspec_lib_schema509.FieldType<string, string>;
133
+ type: _contractspec_lib_schema487.FieldType<string, string>;
134
134
  isOptional: true;
135
135
  };
136
136
  referenceType: {
137
- type: _contractspec_lib_schema509.FieldType<string, string>;
137
+ type: _contractspec_lib_schema487.FieldType<string, string>;
138
138
  isOptional: true;
139
139
  };
140
140
  duration: {
141
- type: _contractspec_lib_schema509.FieldType<number, number>;
141
+ type: _contractspec_lib_schema487.FieldType<number, number>;
142
142
  isOptional: false;
143
143
  };
144
144
  timestamp: {
145
- type: _contractspec_lib_schema509.FieldType<Date, string>;
145
+ type: _contractspec_lib_schema487.FieldType<Date, string>;
146
146
  isOptional: false;
147
147
  };
148
148
  }>>;
149
149
  /**
150
150
  * InstanceCancelledEvent - A workflow instance has been cancelled.
151
151
  */
152
- declare const InstanceCancelledEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
152
+ declare const InstanceCancelledEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
153
153
  instanceId: {
154
- type: _contractspec_lib_schema509.FieldType<string, string>;
154
+ type: _contractspec_lib_schema487.FieldType<string, string>;
155
155
  isOptional: false;
156
156
  };
157
157
  workflowId: {
158
- type: _contractspec_lib_schema509.FieldType<string, string>;
158
+ type: _contractspec_lib_schema487.FieldType<string, string>;
159
159
  isOptional: false;
160
160
  };
161
161
  workflowKey: {
162
- type: _contractspec_lib_schema509.FieldType<string, string>;
162
+ type: _contractspec_lib_schema487.FieldType<string, string>;
163
163
  isOptional: false;
164
164
  };
165
165
  status: {
166
- type: _contractspec_lib_schema509.FieldType<string, string>;
166
+ type: _contractspec_lib_schema487.FieldType<string, string>;
167
167
  isOptional: false;
168
168
  };
169
169
  referenceId: {
170
- type: _contractspec_lib_schema509.FieldType<string, string>;
170
+ type: _contractspec_lib_schema487.FieldType<string, string>;
171
171
  isOptional: true;
172
172
  };
173
173
  referenceType: {
174
- type: _contractspec_lib_schema509.FieldType<string, string>;
174
+ type: _contractspec_lib_schema487.FieldType<string, string>;
175
175
  isOptional: true;
176
176
  };
177
177
  triggeredBy: {
178
- type: _contractspec_lib_schema509.FieldType<string, string>;
178
+ type: _contractspec_lib_schema487.FieldType<string, string>;
179
179
  isOptional: false;
180
180
  };
181
181
  organizationId: {
182
- type: _contractspec_lib_schema509.FieldType<string, string>;
182
+ type: _contractspec_lib_schema487.FieldType<string, string>;
183
183
  isOptional: false;
184
184
  };
185
185
  timestamp: {
186
- type: _contractspec_lib_schema509.FieldType<Date, string>;
186
+ type: _contractspec_lib_schema487.FieldType<Date, string>;
187
187
  isOptional: false;
188
188
  };
189
189
  }>>;
190
190
  /**
191
191
  * InstancePausedEvent - A workflow instance has been paused.
192
192
  */
193
- declare const InstancePausedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
193
+ declare const InstancePausedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
194
194
  instanceId: {
195
- type: _contractspec_lib_schema509.FieldType<string, string>;
195
+ type: _contractspec_lib_schema487.FieldType<string, string>;
196
196
  isOptional: false;
197
197
  };
198
198
  workflowId: {
199
- type: _contractspec_lib_schema509.FieldType<string, string>;
199
+ type: _contractspec_lib_schema487.FieldType<string, string>;
200
200
  isOptional: false;
201
201
  };
202
202
  workflowKey: {
203
- type: _contractspec_lib_schema509.FieldType<string, string>;
203
+ type: _contractspec_lib_schema487.FieldType<string, string>;
204
204
  isOptional: false;
205
205
  };
206
206
  status: {
207
- type: _contractspec_lib_schema509.FieldType<string, string>;
207
+ type: _contractspec_lib_schema487.FieldType<string, string>;
208
208
  isOptional: false;
209
209
  };
210
210
  referenceId: {
211
- type: _contractspec_lib_schema509.FieldType<string, string>;
211
+ type: _contractspec_lib_schema487.FieldType<string, string>;
212
212
  isOptional: true;
213
213
  };
214
214
  referenceType: {
215
- type: _contractspec_lib_schema509.FieldType<string, string>;
215
+ type: _contractspec_lib_schema487.FieldType<string, string>;
216
216
  isOptional: true;
217
217
  };
218
218
  triggeredBy: {
219
- type: _contractspec_lib_schema509.FieldType<string, string>;
219
+ type: _contractspec_lib_schema487.FieldType<string, string>;
220
220
  isOptional: false;
221
221
  };
222
222
  organizationId: {
223
- type: _contractspec_lib_schema509.FieldType<string, string>;
223
+ type: _contractspec_lib_schema487.FieldType<string, string>;
224
224
  isOptional: false;
225
225
  };
226
226
  timestamp: {
227
- type: _contractspec_lib_schema509.FieldType<Date, string>;
227
+ type: _contractspec_lib_schema487.FieldType<Date, string>;
228
228
  isOptional: false;
229
229
  };
230
230
  }>>;
231
231
  /**
232
232
  * InstanceResumedEvent - A workflow instance has been resumed.
233
233
  */
234
- declare const InstanceResumedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
234
+ declare const InstanceResumedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
235
235
  instanceId: {
236
- type: _contractspec_lib_schema509.FieldType<string, string>;
236
+ type: _contractspec_lib_schema487.FieldType<string, string>;
237
237
  isOptional: false;
238
238
  };
239
239
  workflowId: {
240
- type: _contractspec_lib_schema509.FieldType<string, string>;
240
+ type: _contractspec_lib_schema487.FieldType<string, string>;
241
241
  isOptional: false;
242
242
  };
243
243
  workflowKey: {
244
- type: _contractspec_lib_schema509.FieldType<string, string>;
244
+ type: _contractspec_lib_schema487.FieldType<string, string>;
245
245
  isOptional: false;
246
246
  };
247
247
  status: {
248
- type: _contractspec_lib_schema509.FieldType<string, string>;
248
+ type: _contractspec_lib_schema487.FieldType<string, string>;
249
249
  isOptional: false;
250
250
  };
251
251
  referenceId: {
252
- type: _contractspec_lib_schema509.FieldType<string, string>;
252
+ type: _contractspec_lib_schema487.FieldType<string, string>;
253
253
  isOptional: true;
254
254
  };
255
255
  referenceType: {
256
- type: _contractspec_lib_schema509.FieldType<string, string>;
256
+ type: _contractspec_lib_schema487.FieldType<string, string>;
257
257
  isOptional: true;
258
258
  };
259
259
  triggeredBy: {
260
- type: _contractspec_lib_schema509.FieldType<string, string>;
260
+ type: _contractspec_lib_schema487.FieldType<string, string>;
261
261
  isOptional: false;
262
262
  };
263
263
  organizationId: {
264
- type: _contractspec_lib_schema509.FieldType<string, string>;
264
+ type: _contractspec_lib_schema487.FieldType<string, string>;
265
265
  isOptional: false;
266
266
  };
267
267
  timestamp: {
268
- type: _contractspec_lib_schema509.FieldType<Date, string>;
268
+ type: _contractspec_lib_schema487.FieldType<Date, string>;
269
269
  isOptional: false;
270
270
  };
271
271
  }>>;
272
272
  /**
273
273
  * InstanceFailedEvent - A workflow instance has failed.
274
274
  */
275
- declare const InstanceFailedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
275
+ declare const InstanceFailedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
276
276
  instanceId: {
277
- type: _contractspec_lib_schema509.FieldType<string, string>;
277
+ type: _contractspec_lib_schema487.FieldType<string, string>;
278
278
  isOptional: false;
279
279
  };
280
280
  workflowId: {
281
- type: _contractspec_lib_schema509.FieldType<string, string>;
281
+ type: _contractspec_lib_schema487.FieldType<string, string>;
282
282
  isOptional: false;
283
283
  };
284
284
  workflowKey: {
285
- type: _contractspec_lib_schema509.FieldType<string, string>;
285
+ type: _contractspec_lib_schema487.FieldType<string, string>;
286
286
  isOptional: false;
287
287
  };
288
288
  status: {
289
- type: _contractspec_lib_schema509.FieldType<string, string>;
289
+ type: _contractspec_lib_schema487.FieldType<string, string>;
290
290
  isOptional: false;
291
291
  };
292
292
  referenceId: {
293
- type: _contractspec_lib_schema509.FieldType<string, string>;
293
+ type: _contractspec_lib_schema487.FieldType<string, string>;
294
294
  isOptional: true;
295
295
  };
296
296
  referenceType: {
297
- type: _contractspec_lib_schema509.FieldType<string, string>;
297
+ type: _contractspec_lib_schema487.FieldType<string, string>;
298
298
  isOptional: true;
299
299
  };
300
300
  triggeredBy: {
301
- type: _contractspec_lib_schema509.FieldType<string, string>;
301
+ type: _contractspec_lib_schema487.FieldType<string, string>;
302
302
  isOptional: false;
303
303
  };
304
304
  organizationId: {
305
- type: _contractspec_lib_schema509.FieldType<string, string>;
305
+ type: _contractspec_lib_schema487.FieldType<string, string>;
306
306
  isOptional: false;
307
307
  };
308
308
  timestamp: {
309
- type: _contractspec_lib_schema509.FieldType<Date, string>;
309
+ type: _contractspec_lib_schema487.FieldType<Date, string>;
310
310
  isOptional: false;
311
311
  };
312
312
  }>>;
313
313
  /**
314
314
  * InstanceTimedOutEvent - A workflow instance has timed out.
315
315
  */
316
- declare const InstanceTimedOutEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
316
+ declare const InstanceTimedOutEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema487.SchemaModel<{
317
317
  instanceId: {
318
- type: _contractspec_lib_schema509.FieldType<string, string>;
318
+ type: _contractspec_lib_schema487.FieldType<string, string>;
319
319
  isOptional: false;
320
320
  };
321
321
  workflowId: {
322
- type: _contractspec_lib_schema509.FieldType<string, string>;
322
+ type: _contractspec_lib_schema487.FieldType<string, string>;
323
323
  isOptional: false;
324
324
  };
325
325
  workflowKey: {
326
- type: _contractspec_lib_schema509.FieldType<string, string>;
326
+ type: _contractspec_lib_schema487.FieldType<string, string>;
327
327
  isOptional: false;
328
328
  };
329
329
  status: {
330
- type: _contractspec_lib_schema509.FieldType<string, string>;
330
+ type: _contractspec_lib_schema487.FieldType<string, string>;
331
331
  isOptional: false;
332
332
  };
333
333
  referenceId: {
334
- type: _contractspec_lib_schema509.FieldType<string, string>;
334
+ type: _contractspec_lib_schema487.FieldType<string, string>;
335
335
  isOptional: true;
336
336
  };
337
337
  referenceType: {
338
- type: _contractspec_lib_schema509.FieldType<string, string>;
338
+ type: _contractspec_lib_schema487.FieldType<string, string>;
339
339
  isOptional: true;
340
340
  };
341
341
  triggeredBy: {
342
- type: _contractspec_lib_schema509.FieldType<string, string>;
342
+ type: _contractspec_lib_schema487.FieldType<string, string>;
343
343
  isOptional: false;
344
344
  };
345
345
  organizationId: {
346
- type: _contractspec_lib_schema509.FieldType<string, string>;
346
+ type: _contractspec_lib_schema487.FieldType<string, string>;
347
347
  isOptional: false;
348
348
  };
349
349
  timestamp: {
350
- type: _contractspec_lib_schema509.FieldType<Date, string>;
350
+ type: _contractspec_lib_schema487.FieldType<Date, string>;
351
351
  isOptional: false;
352
352
  };
353
353
  }>>;
@@ -1,22 +1,22 @@
1
- import * as _contractspec_lib_schema901 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema932 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/workflow/workflow.enum.d.ts
4
4
  /**
5
5
  * Workflow status enum.
6
6
  */
7
- declare const WorkflowStatusEnum: _contractspec_lib_schema901.EnumType<[string, string, string, string]>;
7
+ declare const WorkflowStatusEnum: _contractspec_lib_schema932.EnumType<[string, string, string, string]>;
8
8
  /**
9
9
  * Trigger type enum.
10
10
  */
11
- declare const TriggerTypeEnum: _contractspec_lib_schema901.EnumType<[string, string, string, string]>;
11
+ declare const TriggerTypeEnum: _contractspec_lib_schema932.EnumType<[string, string, string, string]>;
12
12
  /**
13
13
  * Step type enum.
14
14
  */
15
- declare const StepTypeEnum: _contractspec_lib_schema901.EnumType<[string, string, string, string, string, string, string, string]>;
15
+ declare const StepTypeEnum: _contractspec_lib_schema932.EnumType<[string, string, string, string, string, string, string, string]>;
16
16
  /**
17
17
  * Approval mode enum.
18
18
  */
19
- declare const ApprovalModeEnum: _contractspec_lib_schema901.EnumType<[string, string, string, string]>;
19
+ declare const ApprovalModeEnum: _contractspec_lib_schema932.EnumType<[string, string, string, string]>;
20
20
  //#endregion
21
21
  export { ApprovalModeEnum, StepTypeEnum, TriggerTypeEnum, WorkflowStatusEnum };
22
22
  //# sourceMappingURL=workflow.enum.d.ts.map
@@ -1,132 +1,132 @@
1
- import * as _contractspec_lib_schema905 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema901 from "@contractspec/lib.schema";
2
2
  import * as _contractspec_lib_contracts24 from "@contractspec/lib.contracts";
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: _contractspec_lib_contracts24.EventSpec<_contractspec_lib_schema905.SchemaModel<{
8
+ declare const WorkflowCreatedEvent: _contractspec_lib_contracts24.EventSpec<_contractspec_lib_schema901.SchemaModel<{
9
9
  workflowId: {
10
- type: _contractspec_lib_schema905.FieldType<string, string>;
10
+ type: _contractspec_lib_schema901.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  key: {
14
- type: _contractspec_lib_schema905.FieldType<string, string>;
14
+ type: _contractspec_lib_schema901.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  name: {
18
- type: _contractspec_lib_schema905.FieldType<string, string>;
18
+ type: _contractspec_lib_schema901.FieldType<string, string>;
19
19
  isOptional: false;
20
20
  };
21
21
  version: {
22
- type: _contractspec_lib_schema905.FieldType<string, string>;
22
+ type: _contractspec_lib_schema901.FieldType<string, string>;
23
23
  isOptional: false;
24
24
  };
25
25
  organizationId: {
26
- type: _contractspec_lib_schema905.FieldType<string, string>;
26
+ type: _contractspec_lib_schema901.FieldType<string, string>;
27
27
  isOptional: false;
28
28
  };
29
29
  createdBy: {
30
- type: _contractspec_lib_schema905.FieldType<string, string>;
30
+ type: _contractspec_lib_schema901.FieldType<string, string>;
31
31
  isOptional: false;
32
32
  };
33
33
  timestamp: {
34
- type: _contractspec_lib_schema905.FieldType<Date, string>;
34
+ type: _contractspec_lib_schema901.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: _contractspec_lib_contracts24.EventSpec<_contractspec_lib_schema905.SchemaModel<{
41
+ declare const WorkflowUpdatedEvent: _contractspec_lib_contracts24.EventSpec<_contractspec_lib_schema901.SchemaModel<{
42
42
  workflowId: {
43
- type: _contractspec_lib_schema905.FieldType<string, string>;
43
+ type: _contractspec_lib_schema901.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  key: {
47
- type: _contractspec_lib_schema905.FieldType<string, string>;
47
+ type: _contractspec_lib_schema901.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  name: {
51
- type: _contractspec_lib_schema905.FieldType<string, string>;
51
+ type: _contractspec_lib_schema901.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  version: {
55
- type: _contractspec_lib_schema905.FieldType<string, string>;
55
+ type: _contractspec_lib_schema901.FieldType<string, string>;
56
56
  isOptional: false;
57
57
  };
58
58
  organizationId: {
59
- type: _contractspec_lib_schema905.FieldType<string, string>;
59
+ type: _contractspec_lib_schema901.FieldType<string, string>;
60
60
  isOptional: false;
61
61
  };
62
62
  createdBy: {
63
- type: _contractspec_lib_schema905.FieldType<string, string>;
63
+ type: _contractspec_lib_schema901.FieldType<string, string>;
64
64
  isOptional: false;
65
65
  };
66
66
  timestamp: {
67
- type: _contractspec_lib_schema905.FieldType<Date, string>;
67
+ type: _contractspec_lib_schema901.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: _contractspec_lib_contracts24.EventSpec<_contractspec_lib_schema905.SchemaModel<{
74
+ declare const WorkflowPublishedEvent: _contractspec_lib_contracts24.EventSpec<_contractspec_lib_schema901.SchemaModel<{
75
75
  workflowId: {
76
- type: _contractspec_lib_schema905.FieldType<string, string>;
76
+ type: _contractspec_lib_schema901.FieldType<string, string>;
77
77
  isOptional: false;
78
78
  };
79
79
  key: {
80
- type: _contractspec_lib_schema905.FieldType<string, string>;
80
+ type: _contractspec_lib_schema901.FieldType<string, string>;
81
81
  isOptional: false;
82
82
  };
83
83
  name: {
84
- type: _contractspec_lib_schema905.FieldType<string, string>;
84
+ type: _contractspec_lib_schema901.FieldType<string, string>;
85
85
  isOptional: false;
86
86
  };
87
87
  version: {
88
- type: _contractspec_lib_schema905.FieldType<string, string>;
88
+ type: _contractspec_lib_schema901.FieldType<string, string>;
89
89
  isOptional: false;
90
90
  };
91
91
  organizationId: {
92
- type: _contractspec_lib_schema905.FieldType<string, string>;
92
+ type: _contractspec_lib_schema901.FieldType<string, string>;
93
93
  isOptional: false;
94
94
  };
95
95
  createdBy: {
96
- type: _contractspec_lib_schema905.FieldType<string, string>;
96
+ type: _contractspec_lib_schema901.FieldType<string, string>;
97
97
  isOptional: false;
98
98
  };
99
99
  timestamp: {
100
- type: _contractspec_lib_schema905.FieldType<Date, string>;
100
+ type: _contractspec_lib_schema901.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: _contractspec_lib_contracts24.EventSpec<_contractspec_lib_schema905.SchemaModel<{
107
+ declare const StepAddedEvent: _contractspec_lib_contracts24.EventSpec<_contractspec_lib_schema901.SchemaModel<{
108
108
  stepId: {
109
- type: _contractspec_lib_schema905.FieldType<string, string>;
109
+ type: _contractspec_lib_schema901.FieldType<string, string>;
110
110
  isOptional: false;
111
111
  };
112
112
  workflowId: {
113
- type: _contractspec_lib_schema905.FieldType<string, string>;
113
+ type: _contractspec_lib_schema901.FieldType<string, string>;
114
114
  isOptional: false;
115
115
  };
116
116
  stepKey: {
117
- type: _contractspec_lib_schema905.FieldType<string, string>;
117
+ type: _contractspec_lib_schema901.FieldType<string, string>;
118
118
  isOptional: false;
119
119
  };
120
120
  stepType: {
121
- type: _contractspec_lib_schema905.FieldType<string, string>;
121
+ type: _contractspec_lib_schema901.FieldType<string, string>;
122
122
  isOptional: false;
123
123
  };
124
124
  position: {
125
- type: _contractspec_lib_schema905.FieldType<number, number>;
125
+ type: _contractspec_lib_schema901.FieldType<number, number>;
126
126
  isOptional: false;
127
127
  };
128
128
  timestamp: {
129
- type: _contractspec_lib_schema905.FieldType<Date, string>;
129
+ type: _contractspec_lib_schema901.FieldType<Date, string>;
130
130
  isOptional: false;
131
131
  };
132
132
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.workflow-system",
3
- "version": "1.45.6",
3
+ "version": "1.46.1",
4
4
  "description": "Workflow and approval system example for ContractSpec - State machine with role-based transitions",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,12 +18,12 @@
18
18
  "lint:check": "eslint src"
19
19
  },
20
20
  "dependencies": {
21
- "@contractspec/lib.schema": "1.45.6",
22
- "@contractspec/lib.contracts": "1.45.6"
21
+ "@contractspec/lib.schema": "1.46.1",
22
+ "@contractspec/lib.contracts": "1.46.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@contractspec/tool.typescript": "1.45.6",
26
- "@contractspec/tool.tsdown": "1.45.6",
25
+ "@contractspec/tool.typescript": "1.46.1",
26
+ "@contractspec/tool.tsdown": "1.46.1",
27
27
  "typescript": "^5.9.3"
28
28
  },
29
29
  "exports": {