@contractspec/example.workflow-system 1.44.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.
Files changed (121) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +124 -0
  3. package/dist/approval/approval.enum.d.ts +14 -0
  4. package/dist/approval/approval.enum.d.ts.map +1 -0
  5. package/dist/approval/approval.enum.js +29 -0
  6. package/dist/approval/approval.enum.js.map +1 -0
  7. package/dist/approval/approval.event.d.ts +131 -0
  8. package/dist/approval/approval.event.d.ts.map +1 -0
  9. package/dist/approval/approval.event.js +220 -0
  10. package/dist/approval/approval.event.js.map +1 -0
  11. package/dist/approval/approval.handler.d.ts +23 -0
  12. package/dist/approval/approval.handler.d.ts.map +1 -0
  13. package/dist/approval/approval.handler.js +72 -0
  14. package/dist/approval/approval.handler.js.map +1 -0
  15. package/dist/approval/approval.operations.d.ts +535 -0
  16. package/dist/approval/approval.operations.d.ts.map +1 -0
  17. package/dist/approval/approval.operations.js +345 -0
  18. package/dist/approval/approval.operations.js.map +1 -0
  19. package/dist/approval/approval.schema.d.ts +100 -0
  20. package/dist/approval/approval.schema.d.ts.map +1 -0
  21. package/dist/approval/approval.schema.js +110 -0
  22. package/dist/approval/approval.schema.js.map +1 -0
  23. package/dist/approval/index.d.ts +5 -0
  24. package/dist/approval/index.js +6 -0
  25. package/dist/docs/index.d.ts +1 -0
  26. package/dist/docs/index.js +1 -0
  27. package/dist/docs/workflow-system.docblock.d.ts +1 -0
  28. package/dist/docs/workflow-system.docblock.js +115 -0
  29. package/dist/docs/workflow-system.docblock.js.map +1 -0
  30. package/dist/entities/approval.d.ts +58 -0
  31. package/dist/entities/approval.d.ts.map +1 -0
  32. package/dist/entities/approval.js +128 -0
  33. package/dist/entities/approval.js.map +1 -0
  34. package/dist/entities/index.d.ts +139 -0
  35. package/dist/entities/index.d.ts.map +1 -0
  36. package/dist/entities/index.js +32 -0
  37. package/dist/entities/index.js.map +1 -0
  38. package/dist/entities/instance.d.ts +69 -0
  39. package/dist/entities/instance.d.ts.map +1 -0
  40. package/dist/entities/instance.js +168 -0
  41. package/dist/entities/instance.js.map +1 -0
  42. package/dist/entities/step.d.ts +50 -0
  43. package/dist/entities/step.d.ts.map +1 -0
  44. package/dist/entities/step.js +135 -0
  45. package/dist/entities/step.js.map +1 -0
  46. package/dist/entities/workflow.d.ts +41 -0
  47. package/dist/entities/workflow.d.ts.map +1 -0
  48. package/dist/entities/workflow.js +102 -0
  49. package/dist/entities/workflow.js.map +1 -0
  50. package/dist/example.d.ts +40 -0
  51. package/dist/example.d.ts.map +1 -0
  52. package/dist/example.js +51 -0
  53. package/dist/example.js.map +1 -0
  54. package/dist/index.d.ts +21 -0
  55. package/dist/index.js +21 -0
  56. package/dist/instance/index.d.ts +5 -0
  57. package/dist/instance/index.js +6 -0
  58. package/dist/instance/instance.enum.d.ts +10 -0
  59. package/dist/instance/instance.enum.d.ts.map +1 -0
  60. package/dist/instance/instance.enum.js +20 -0
  61. package/dist/instance/instance.enum.js.map +1 -0
  62. package/dist/instance/instance.event.d.ts +356 -0
  63. package/dist/instance/instance.event.d.ts.map +1 -0
  64. package/dist/instance/instance.event.js +293 -0
  65. package/dist/instance/instance.event.js.map +1 -0
  66. package/dist/instance/instance.handler.d.ts +27 -0
  67. package/dist/instance/instance.handler.d.ts.map +1 -0
  68. package/dist/instance/instance.handler.js +94 -0
  69. package/dist/instance/instance.handler.js.map +1 -0
  70. package/dist/instance/instance.operations.d.ts +1024 -0
  71. package/dist/instance/instance.operations.d.ts.map +1 -0
  72. package/dist/instance/instance.operations.js +464 -0
  73. package/dist/instance/instance.operations.js.map +1 -0
  74. package/dist/instance/instance.schema.d.ts +223 -0
  75. package/dist/instance/instance.schema.d.ts.map +1 -0
  76. package/dist/instance/instance.schema.js +172 -0
  77. package/dist/instance/instance.schema.js.map +1 -0
  78. package/dist/presentations/index.d.ts +64 -0
  79. package/dist/presentations/index.d.ts.map +1 -0
  80. package/dist/presentations/index.js +337 -0
  81. package/dist/presentations/index.js.map +1 -0
  82. package/dist/shared/index.d.ts +3 -0
  83. package/dist/shared/index.js +3 -0
  84. package/dist/shared/mock-data.d.ts +19 -0
  85. package/dist/shared/mock-data.d.ts.map +1 -0
  86. package/dist/shared/mock-data.js +12 -0
  87. package/dist/shared/mock-data.js.map +1 -0
  88. package/dist/shared/types.d.ts +81 -0
  89. package/dist/shared/types.d.ts.map +1 -0
  90. package/dist/shared/types.js +0 -0
  91. package/dist/state-machine/index.d.ts +148 -0
  92. package/dist/state-machine/index.d.ts.map +1 -0
  93. package/dist/state-machine/index.js +158 -0
  94. package/dist/state-machine/index.js.map +1 -0
  95. package/dist/workflow/index.d.ts +5 -0
  96. package/dist/workflow/index.js +6 -0
  97. package/dist/workflow/workflow.enum.d.ts +22 -0
  98. package/dist/workflow/workflow.enum.d.ts.map +1 -0
  99. package/dist/workflow/workflow.enum.js +47 -0
  100. package/dist/workflow/workflow.enum.js.map +1 -0
  101. package/dist/workflow/workflow.event.d.ts +135 -0
  102. package/dist/workflow/workflow.event.d.ts.map +1 -0
  103. package/dist/workflow/workflow.event.js +150 -0
  104. package/dist/workflow/workflow.event.js.map +1 -0
  105. package/dist/workflow/workflow.handler.d.ts +29 -0
  106. package/dist/workflow/workflow.handler.d.ts.map +1 -0
  107. package/dist/workflow/workflow.handler.js +66 -0
  108. package/dist/workflow/workflow.handler.js.map +1 -0
  109. package/dist/workflow/workflow.operations.d.ts +1011 -0
  110. package/dist/workflow/workflow.operations.d.ts.map +1 -0
  111. package/dist/workflow/workflow.operations.js +345 -0
  112. package/dist/workflow/workflow.operations.js.map +1 -0
  113. package/dist/workflow/workflow.schema.d.ts +265 -0
  114. package/dist/workflow/workflow.schema.d.ts.map +1 -0
  115. package/dist/workflow/workflow.schema.js +249 -0
  116. package/dist/workflow/workflow.schema.js.map +1 -0
  117. package/dist/workflow-system.feature.d.ts +12 -0
  118. package/dist/workflow-system.feature.d.ts.map +1 -0
  119. package/dist/workflow-system.feature.js +339 -0
  120. package/dist/workflow-system.feature.js.map +1 -0
  121. package/package.json +124 -0
@@ -0,0 +1,21 @@
1
+ import { ApprovalDecisionEnum, ApprovalStatusEnum } from "./approval/approval.enum.js";
2
+ import { ApprovalDecidedEvent, ApprovalDelegatedEvent, ApprovalEscalatedEvent, ApprovalRequestedEvent } from "./approval/approval.event.js";
3
+ import { ApprovalRequestRecord, HandlerContext, WorkflowDefinitionRecord, WorkflowInstanceRecord, WorkflowStepRecord } from "./shared/types.js";
4
+ import { AddApprovalCommentContract, DelegateApprovalContract, GetApprovalContract, ListMyApprovalsContract, SubmitDecisionContract } from "./approval/approval.operations.js";
5
+ import { ApprovalCommentModel, ApprovalRequestModel } from "./approval/approval.schema.js";
6
+ import "./approval/index.js";
7
+ import { ApprovalModeEnum, StepTypeEnum, TriggerTypeEnum, WorkflowStatusEnum } from "./workflow/workflow.enum.js";
8
+ import { AddStepInputModel, CreateWorkflowInputModel, UpdateWorkflowInputModel, WorkflowDefinitionModel, WorkflowStepModel } from "./workflow/workflow.schema.js";
9
+ import { AddStepContract, CreateWorkflowContract, GetWorkflowContract, ListWorkflowsContract, PublishWorkflowContract, UpdateWorkflowContract } from "./workflow/workflow.operations.js";
10
+ import { StepAddedEvent, WorkflowCreatedEvent, WorkflowPublishedEvent, WorkflowUpdatedEvent } from "./workflow/workflow.event.js";
11
+ import "./workflow/index.js";
12
+ import { InstanceStatusEnum } from "./instance/instance.enum.js";
13
+ import { StartWorkflowInputModel, TransitionInputModel, TransitionResultModel, WorkflowInstanceModel } from "./instance/instance.schema.js";
14
+ import { CancelWorkflowContract, GetInstanceContract, ListInstancesContract, PauseWorkflowContract, ResumeWorkflowContract, StartWorkflowContract, TransitionWorkflowContract } from "./instance/instance.operations.js";
15
+ import { InstanceCancelledEvent, InstanceCompletedEvent, InstanceFailedEvent, InstancePausedEvent, InstanceResumedEvent, InstanceStartedEvent, InstanceTimedOutEvent, StepEnteredEvent, StepExitedEvent } from "./instance/instance.event.js";
16
+ import "./instance/index.js";
17
+ import { mockDataStore } from "./shared/mock-data.js";
18
+ import { BasicStateMachineEngine, IStateMachineEngine, StateMachineDefinition, StateMachineState, StateMachineStep, TransitionContext, TransitionDefinition, TransitionResult, buildStateMachineDefinition, createInitialState, createStateMachineEngine } from "./state-machine/index.js";
19
+ import { ApprovalDetailPresentation, ApprovalFormPresentation, ApprovalInboxPresentation, InstanceDetailPresentation, InstanceListPresentation, PendingApprovalsBadgePresentation, ProgressTrackerPresentation, WorkflowDesignerPresentation, WorkflowDetailPresentation, WorkflowListPresentation, WorkflowMetricsPresentation, WorkflowSystemPresentations } from "./presentations/index.js";
20
+ import { WorkflowSystemFeature } from "./workflow-system.feature.js";
21
+ export { AddApprovalCommentContract, AddStepContract, AddStepInputModel, ApprovalCommentModel, ApprovalDecidedEvent, ApprovalDecisionEnum, ApprovalDelegatedEvent, ApprovalDetailPresentation, ApprovalEscalatedEvent, ApprovalFormPresentation, ApprovalInboxPresentation, ApprovalModeEnum, ApprovalRequestModel, ApprovalRequestRecord, ApprovalRequestedEvent, ApprovalStatusEnum, BasicStateMachineEngine, CancelWorkflowContract, CreateWorkflowContract, CreateWorkflowInputModel, DelegateApprovalContract, GetApprovalContract, GetInstanceContract, GetWorkflowContract, HandlerContext, IStateMachineEngine, InstanceCancelledEvent, InstanceCompletedEvent, InstanceDetailPresentation, InstanceFailedEvent, InstanceListPresentation, InstancePausedEvent, InstanceResumedEvent, InstanceStartedEvent, InstanceStatusEnum, InstanceTimedOutEvent, ListInstancesContract, ListMyApprovalsContract, ListWorkflowsContract, PauseWorkflowContract, PendingApprovalsBadgePresentation, ProgressTrackerPresentation, PublishWorkflowContract, ResumeWorkflowContract, StartWorkflowContract, StartWorkflowInputModel, StateMachineDefinition, StateMachineState, StateMachineStep, StepAddedEvent, StepEnteredEvent, StepExitedEvent, StepTypeEnum, SubmitDecisionContract, TransitionContext, TransitionDefinition, TransitionInputModel, TransitionResult, TransitionResultModel, TransitionWorkflowContract, TriggerTypeEnum, UpdateWorkflowContract, UpdateWorkflowInputModel, WorkflowCreatedEvent, WorkflowDefinitionModel, WorkflowDefinitionRecord, WorkflowDesignerPresentation, WorkflowDetailPresentation, WorkflowInstanceModel, WorkflowInstanceRecord, WorkflowListPresentation, WorkflowMetricsPresentation, WorkflowPublishedEvent, WorkflowStatusEnum, WorkflowStepModel, WorkflowStepRecord, WorkflowSystemFeature, WorkflowSystemPresentations, WorkflowUpdatedEvent, buildStateMachineDefinition, createInitialState, createStateMachineEngine, mockDataStore };
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ import { ApprovalModeEnum, StepTypeEnum, TriggerTypeEnum, WorkflowStatusEnum } from "./workflow/workflow.enum.js";
2
+ import { AddStepInputModel, CreateWorkflowInputModel, UpdateWorkflowInputModel, WorkflowDefinitionModel, WorkflowStepModel } from "./workflow/workflow.schema.js";
3
+ import { AddStepContract, CreateWorkflowContract, GetWorkflowContract, ListWorkflowsContract, PublishWorkflowContract, UpdateWorkflowContract } from "./workflow/workflow.operations.js";
4
+ import { StepAddedEvent, WorkflowCreatedEvent, WorkflowPublishedEvent, WorkflowUpdatedEvent } from "./workflow/workflow.event.js";
5
+ import "./workflow/index.js";
6
+ import { InstanceStatusEnum } from "./instance/instance.enum.js";
7
+ import { StartWorkflowInputModel, TransitionInputModel, TransitionResultModel, WorkflowInstanceModel } from "./instance/instance.schema.js";
8
+ import { CancelWorkflowContract, GetInstanceContract, ListInstancesContract, PauseWorkflowContract, ResumeWorkflowContract, StartWorkflowContract, TransitionWorkflowContract } from "./instance/instance.operations.js";
9
+ import { InstanceCancelledEvent, InstanceCompletedEvent, InstanceFailedEvent, InstancePausedEvent, InstanceResumedEvent, InstanceStartedEvent, InstanceTimedOutEvent, StepEnteredEvent, StepExitedEvent } from "./instance/instance.event.js";
10
+ import "./instance/index.js";
11
+ import { ApprovalDecisionEnum, ApprovalStatusEnum } from "./approval/approval.enum.js";
12
+ import { ApprovalCommentModel, ApprovalRequestModel } from "./approval/approval.schema.js";
13
+ import { AddApprovalCommentContract, DelegateApprovalContract, GetApprovalContract, ListMyApprovalsContract, SubmitDecisionContract } from "./approval/approval.operations.js";
14
+ import { ApprovalDecidedEvent, ApprovalDelegatedEvent, ApprovalEscalatedEvent, ApprovalRequestedEvent } from "./approval/approval.event.js";
15
+ import "./approval/index.js";
16
+ import { mockDataStore } from "./shared/mock-data.js";
17
+ import { BasicStateMachineEngine, buildStateMachineDefinition, createInitialState, createStateMachineEngine } from "./state-machine/index.js";
18
+ import { ApprovalDetailPresentation, ApprovalFormPresentation, ApprovalInboxPresentation, InstanceDetailPresentation, InstanceListPresentation, PendingApprovalsBadgePresentation, ProgressTrackerPresentation, WorkflowDesignerPresentation, WorkflowDetailPresentation, WorkflowListPresentation, WorkflowMetricsPresentation, WorkflowSystemPresentations } from "./presentations/index.js";
19
+ import { WorkflowSystemFeature } from "./workflow-system.feature.js";
20
+
21
+ export { AddApprovalCommentContract, AddStepContract, AddStepInputModel, ApprovalCommentModel, ApprovalDecidedEvent, ApprovalDecisionEnum, ApprovalDelegatedEvent, ApprovalDetailPresentation, ApprovalEscalatedEvent, ApprovalFormPresentation, ApprovalInboxPresentation, ApprovalModeEnum, ApprovalRequestModel, ApprovalRequestedEvent, ApprovalStatusEnum, BasicStateMachineEngine, CancelWorkflowContract, CreateWorkflowContract, CreateWorkflowInputModel, DelegateApprovalContract, GetApprovalContract, GetInstanceContract, GetWorkflowContract, InstanceCancelledEvent, InstanceCompletedEvent, InstanceDetailPresentation, InstanceFailedEvent, InstanceListPresentation, InstancePausedEvent, InstanceResumedEvent, InstanceStartedEvent, InstanceStatusEnum, InstanceTimedOutEvent, ListInstancesContract, ListMyApprovalsContract, ListWorkflowsContract, PauseWorkflowContract, PendingApprovalsBadgePresentation, ProgressTrackerPresentation, PublishWorkflowContract, ResumeWorkflowContract, StartWorkflowContract, StartWorkflowInputModel, StepAddedEvent, StepEnteredEvent, StepExitedEvent, StepTypeEnum, SubmitDecisionContract, TransitionInputModel, TransitionResultModel, TransitionWorkflowContract, TriggerTypeEnum, UpdateWorkflowContract, UpdateWorkflowInputModel, WorkflowCreatedEvent, WorkflowDefinitionModel, WorkflowDesignerPresentation, WorkflowDetailPresentation, WorkflowInstanceModel, WorkflowListPresentation, WorkflowMetricsPresentation, WorkflowPublishedEvent, WorkflowStatusEnum, WorkflowStepModel, WorkflowSystemFeature, WorkflowSystemPresentations, WorkflowUpdatedEvent, buildStateMachineDefinition, createInitialState, createStateMachineEngine, mockDataStore };
@@ -0,0 +1,5 @@
1
+ import { InstanceStatusEnum } from "./instance.enum.js";
2
+ import { StartWorkflowInputModel, TransitionInputModel, TransitionResultModel, WorkflowInstanceModel } from "./instance.schema.js";
3
+ import { CancelWorkflowContract, GetInstanceContract, ListInstancesContract, PauseWorkflowContract, ResumeWorkflowContract, StartWorkflowContract, TransitionWorkflowContract } from "./instance.operations.js";
4
+ import { InstanceCancelledEvent, InstanceCompletedEvent, InstanceFailedEvent, InstancePausedEvent, InstanceResumedEvent, InstanceStartedEvent, InstanceTimedOutEvent, StepEnteredEvent, StepExitedEvent } from "./instance.event.js";
5
+ export { CancelWorkflowContract, GetInstanceContract, InstanceCancelledEvent, InstanceCompletedEvent, InstanceFailedEvent, InstancePausedEvent, InstanceResumedEvent, InstanceStartedEvent, InstanceStatusEnum, InstanceTimedOutEvent, ListInstancesContract, PauseWorkflowContract, ResumeWorkflowContract, StartWorkflowContract, StartWorkflowInputModel, StepEnteredEvent, StepExitedEvent, TransitionInputModel, TransitionResultModel, TransitionWorkflowContract, WorkflowInstanceModel };
@@ -0,0 +1,6 @@
1
+ import { InstanceStatusEnum } from "./instance.enum.js";
2
+ import { StartWorkflowInputModel, TransitionInputModel, TransitionResultModel, WorkflowInstanceModel } from "./instance.schema.js";
3
+ import { CancelWorkflowContract, GetInstanceContract, ListInstancesContract, PauseWorkflowContract, ResumeWorkflowContract, StartWorkflowContract, TransitionWorkflowContract } from "./instance.operations.js";
4
+ import { InstanceCancelledEvent, InstanceCompletedEvent, InstanceFailedEvent, InstancePausedEvent, InstanceResumedEvent, InstanceStartedEvent, InstanceTimedOutEvent, StepEnteredEvent, StepExitedEvent } from "./instance.event.js";
5
+
6
+ export { CancelWorkflowContract, GetInstanceContract, InstanceCancelledEvent, InstanceCompletedEvent, InstanceFailedEvent, InstancePausedEvent, InstanceResumedEvent, InstanceStartedEvent, InstanceStatusEnum, InstanceTimedOutEvent, ListInstancesContract, PauseWorkflowContract, ResumeWorkflowContract, StartWorkflowContract, StartWorkflowInputModel, StepEnteredEvent, StepExitedEvent, TransitionInputModel, TransitionResultModel, TransitionWorkflowContract, WorkflowInstanceModel };
@@ -0,0 +1,10 @@
1
+ import * as _contractspec_lib_schema508 from "@contractspec/lib.schema";
2
+
3
+ //#region src/instance/instance.enum.d.ts
4
+ /**
5
+ * Instance status enum.
6
+ */
7
+ declare const InstanceStatusEnum: _contractspec_lib_schema508.EnumType<[string, string, string, string, string, string, string, string]>;
8
+ //#endregion
9
+ export { InstanceStatusEnum };
10
+ //# sourceMappingURL=instance.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance.enum.d.ts","names":[],"sources":["../../src/instance/instance.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,kBASX,EAAA,2BAAA,CAT6B,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { defineEnum } from "@contractspec/lib.schema";
2
+
3
+ //#region src/instance/instance.enum.ts
4
+ /**
5
+ * Instance status enum.
6
+ */
7
+ const InstanceStatusEnum = defineEnum("InstanceStatus", [
8
+ "PENDING",
9
+ "RUNNING",
10
+ "WAITING",
11
+ "PAUSED",
12
+ "COMPLETED",
13
+ "CANCELLED",
14
+ "FAILED",
15
+ "TIMEOUT"
16
+ ]);
17
+
18
+ //#endregion
19
+ export { InstanceStatusEnum };
20
+ //# sourceMappingURL=instance.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance.enum.js","names":[],"sources":["../../src/instance/instance.enum.ts"],"sourcesContent":["import { defineEnum } from '@contractspec/lib.schema';\n\n/**\n * Instance status enum.\n */\nexport const InstanceStatusEnum = defineEnum('InstanceStatus', [\n 'PENDING',\n 'RUNNING',\n 'WAITING',\n 'PAUSED',\n 'COMPLETED',\n 'CANCELLED',\n 'FAILED',\n 'TIMEOUT',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,qBAAqB,WAAW,kBAAkB;CAC7D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD,CAAC"}
@@ -0,0 +1,356 @@
1
+ import * as _contractspec_lib_schema509 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_contracts8 from "@contractspec/lib.contracts";
3
+
4
+ //#region src/instance/instance.event.d.ts
5
+ /**
6
+ * InstanceStartedEvent - A new workflow instance has been started.
7
+ */
8
+ declare const InstanceStartedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
9
+ instanceId: {
10
+ type: _contractspec_lib_schema509.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ workflowId: {
14
+ type: _contractspec_lib_schema509.FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ workflowKey: {
18
+ type: _contractspec_lib_schema509.FieldType<string, string>;
19
+ isOptional: false;
20
+ };
21
+ status: {
22
+ type: _contractspec_lib_schema509.FieldType<string, string>;
23
+ isOptional: false;
24
+ };
25
+ referenceId: {
26
+ type: _contractspec_lib_schema509.FieldType<string, string>;
27
+ isOptional: true;
28
+ };
29
+ referenceType: {
30
+ type: _contractspec_lib_schema509.FieldType<string, string>;
31
+ isOptional: true;
32
+ };
33
+ triggeredBy: {
34
+ type: _contractspec_lib_schema509.FieldType<string, string>;
35
+ isOptional: false;
36
+ };
37
+ organizationId: {
38
+ type: _contractspec_lib_schema509.FieldType<string, string>;
39
+ isOptional: false;
40
+ };
41
+ timestamp: {
42
+ type: _contractspec_lib_schema509.FieldType<Date, string>;
43
+ isOptional: false;
44
+ };
45
+ }>>;
46
+ /**
47
+ * StepEnteredEvent - A workflow instance has entered a new step.
48
+ */
49
+ declare const StepEnteredEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
50
+ instanceId: {
51
+ type: _contractspec_lib_schema509.FieldType<string, string>;
52
+ isOptional: false;
53
+ };
54
+ workflowId: {
55
+ type: _contractspec_lib_schema509.FieldType<string, string>;
56
+ isOptional: false;
57
+ };
58
+ fromStepKey: {
59
+ type: _contractspec_lib_schema509.FieldType<string, string>;
60
+ isOptional: true;
61
+ };
62
+ toStepKey: {
63
+ type: _contractspec_lib_schema509.FieldType<string, string>;
64
+ isOptional: false;
65
+ };
66
+ action: {
67
+ type: _contractspec_lib_schema509.FieldType<string, string>;
68
+ isOptional: true;
69
+ };
70
+ executedBy: {
71
+ type: _contractspec_lib_schema509.FieldType<string, string>;
72
+ isOptional: false;
73
+ };
74
+ timestamp: {
75
+ type: _contractspec_lib_schema509.FieldType<Date, string>;
76
+ isOptional: false;
77
+ };
78
+ }>>;
79
+ /**
80
+ * StepExitedEvent - A workflow instance has exited a step.
81
+ */
82
+ declare const StepExitedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
83
+ instanceId: {
84
+ type: _contractspec_lib_schema509.FieldType<string, string>;
85
+ isOptional: false;
86
+ };
87
+ workflowId: {
88
+ type: _contractspec_lib_schema509.FieldType<string, string>;
89
+ isOptional: false;
90
+ };
91
+ fromStepKey: {
92
+ type: _contractspec_lib_schema509.FieldType<string, string>;
93
+ isOptional: true;
94
+ };
95
+ toStepKey: {
96
+ type: _contractspec_lib_schema509.FieldType<string, string>;
97
+ isOptional: false;
98
+ };
99
+ action: {
100
+ type: _contractspec_lib_schema509.FieldType<string, string>;
101
+ isOptional: true;
102
+ };
103
+ executedBy: {
104
+ type: _contractspec_lib_schema509.FieldType<string, string>;
105
+ isOptional: false;
106
+ };
107
+ timestamp: {
108
+ type: _contractspec_lib_schema509.FieldType<Date, string>;
109
+ isOptional: false;
110
+ };
111
+ }>>;
112
+ /**
113
+ * InstanceCompletedEvent - A workflow instance has completed.
114
+ */
115
+ declare const InstanceCompletedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
116
+ instanceId: {
117
+ type: _contractspec_lib_schema509.FieldType<string, string>;
118
+ isOptional: false;
119
+ };
120
+ workflowId: {
121
+ type: _contractspec_lib_schema509.FieldType<string, string>;
122
+ isOptional: false;
123
+ };
124
+ workflowKey: {
125
+ type: _contractspec_lib_schema509.FieldType<string, string>;
126
+ isOptional: false;
127
+ };
128
+ outcome: {
129
+ type: _contractspec_lib_schema509.FieldType<string, string>;
130
+ isOptional: false;
131
+ };
132
+ referenceId: {
133
+ type: _contractspec_lib_schema509.FieldType<string, string>;
134
+ isOptional: true;
135
+ };
136
+ referenceType: {
137
+ type: _contractspec_lib_schema509.FieldType<string, string>;
138
+ isOptional: true;
139
+ };
140
+ duration: {
141
+ type: _contractspec_lib_schema509.FieldType<number, number>;
142
+ isOptional: false;
143
+ };
144
+ timestamp: {
145
+ type: _contractspec_lib_schema509.FieldType<Date, string>;
146
+ isOptional: false;
147
+ };
148
+ }>>;
149
+ /**
150
+ * InstanceCancelledEvent - A workflow instance has been cancelled.
151
+ */
152
+ declare const InstanceCancelledEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
153
+ instanceId: {
154
+ type: _contractspec_lib_schema509.FieldType<string, string>;
155
+ isOptional: false;
156
+ };
157
+ workflowId: {
158
+ type: _contractspec_lib_schema509.FieldType<string, string>;
159
+ isOptional: false;
160
+ };
161
+ workflowKey: {
162
+ type: _contractspec_lib_schema509.FieldType<string, string>;
163
+ isOptional: false;
164
+ };
165
+ status: {
166
+ type: _contractspec_lib_schema509.FieldType<string, string>;
167
+ isOptional: false;
168
+ };
169
+ referenceId: {
170
+ type: _contractspec_lib_schema509.FieldType<string, string>;
171
+ isOptional: true;
172
+ };
173
+ referenceType: {
174
+ type: _contractspec_lib_schema509.FieldType<string, string>;
175
+ isOptional: true;
176
+ };
177
+ triggeredBy: {
178
+ type: _contractspec_lib_schema509.FieldType<string, string>;
179
+ isOptional: false;
180
+ };
181
+ organizationId: {
182
+ type: _contractspec_lib_schema509.FieldType<string, string>;
183
+ isOptional: false;
184
+ };
185
+ timestamp: {
186
+ type: _contractspec_lib_schema509.FieldType<Date, string>;
187
+ isOptional: false;
188
+ };
189
+ }>>;
190
+ /**
191
+ * InstancePausedEvent - A workflow instance has been paused.
192
+ */
193
+ declare const InstancePausedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
194
+ instanceId: {
195
+ type: _contractspec_lib_schema509.FieldType<string, string>;
196
+ isOptional: false;
197
+ };
198
+ workflowId: {
199
+ type: _contractspec_lib_schema509.FieldType<string, string>;
200
+ isOptional: false;
201
+ };
202
+ workflowKey: {
203
+ type: _contractspec_lib_schema509.FieldType<string, string>;
204
+ isOptional: false;
205
+ };
206
+ status: {
207
+ type: _contractspec_lib_schema509.FieldType<string, string>;
208
+ isOptional: false;
209
+ };
210
+ referenceId: {
211
+ type: _contractspec_lib_schema509.FieldType<string, string>;
212
+ isOptional: true;
213
+ };
214
+ referenceType: {
215
+ type: _contractspec_lib_schema509.FieldType<string, string>;
216
+ isOptional: true;
217
+ };
218
+ triggeredBy: {
219
+ type: _contractspec_lib_schema509.FieldType<string, string>;
220
+ isOptional: false;
221
+ };
222
+ organizationId: {
223
+ type: _contractspec_lib_schema509.FieldType<string, string>;
224
+ isOptional: false;
225
+ };
226
+ timestamp: {
227
+ type: _contractspec_lib_schema509.FieldType<Date, string>;
228
+ isOptional: false;
229
+ };
230
+ }>>;
231
+ /**
232
+ * InstanceResumedEvent - A workflow instance has been resumed.
233
+ */
234
+ declare const InstanceResumedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
235
+ instanceId: {
236
+ type: _contractspec_lib_schema509.FieldType<string, string>;
237
+ isOptional: false;
238
+ };
239
+ workflowId: {
240
+ type: _contractspec_lib_schema509.FieldType<string, string>;
241
+ isOptional: false;
242
+ };
243
+ workflowKey: {
244
+ type: _contractspec_lib_schema509.FieldType<string, string>;
245
+ isOptional: false;
246
+ };
247
+ status: {
248
+ type: _contractspec_lib_schema509.FieldType<string, string>;
249
+ isOptional: false;
250
+ };
251
+ referenceId: {
252
+ type: _contractspec_lib_schema509.FieldType<string, string>;
253
+ isOptional: true;
254
+ };
255
+ referenceType: {
256
+ type: _contractspec_lib_schema509.FieldType<string, string>;
257
+ isOptional: true;
258
+ };
259
+ triggeredBy: {
260
+ type: _contractspec_lib_schema509.FieldType<string, string>;
261
+ isOptional: false;
262
+ };
263
+ organizationId: {
264
+ type: _contractspec_lib_schema509.FieldType<string, string>;
265
+ isOptional: false;
266
+ };
267
+ timestamp: {
268
+ type: _contractspec_lib_schema509.FieldType<Date, string>;
269
+ isOptional: false;
270
+ };
271
+ }>>;
272
+ /**
273
+ * InstanceFailedEvent - A workflow instance has failed.
274
+ */
275
+ declare const InstanceFailedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
276
+ instanceId: {
277
+ type: _contractspec_lib_schema509.FieldType<string, string>;
278
+ isOptional: false;
279
+ };
280
+ workflowId: {
281
+ type: _contractspec_lib_schema509.FieldType<string, string>;
282
+ isOptional: false;
283
+ };
284
+ workflowKey: {
285
+ type: _contractspec_lib_schema509.FieldType<string, string>;
286
+ isOptional: false;
287
+ };
288
+ status: {
289
+ type: _contractspec_lib_schema509.FieldType<string, string>;
290
+ isOptional: false;
291
+ };
292
+ referenceId: {
293
+ type: _contractspec_lib_schema509.FieldType<string, string>;
294
+ isOptional: true;
295
+ };
296
+ referenceType: {
297
+ type: _contractspec_lib_schema509.FieldType<string, string>;
298
+ isOptional: true;
299
+ };
300
+ triggeredBy: {
301
+ type: _contractspec_lib_schema509.FieldType<string, string>;
302
+ isOptional: false;
303
+ };
304
+ organizationId: {
305
+ type: _contractspec_lib_schema509.FieldType<string, string>;
306
+ isOptional: false;
307
+ };
308
+ timestamp: {
309
+ type: _contractspec_lib_schema509.FieldType<Date, string>;
310
+ isOptional: false;
311
+ };
312
+ }>>;
313
+ /**
314
+ * InstanceTimedOutEvent - A workflow instance has timed out.
315
+ */
316
+ declare const InstanceTimedOutEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema509.SchemaModel<{
317
+ instanceId: {
318
+ type: _contractspec_lib_schema509.FieldType<string, string>;
319
+ isOptional: false;
320
+ };
321
+ workflowId: {
322
+ type: _contractspec_lib_schema509.FieldType<string, string>;
323
+ isOptional: false;
324
+ };
325
+ workflowKey: {
326
+ type: _contractspec_lib_schema509.FieldType<string, string>;
327
+ isOptional: false;
328
+ };
329
+ status: {
330
+ type: _contractspec_lib_schema509.FieldType<string, string>;
331
+ isOptional: false;
332
+ };
333
+ referenceId: {
334
+ type: _contractspec_lib_schema509.FieldType<string, string>;
335
+ isOptional: true;
336
+ };
337
+ referenceType: {
338
+ type: _contractspec_lib_schema509.FieldType<string, string>;
339
+ isOptional: true;
340
+ };
341
+ triggeredBy: {
342
+ type: _contractspec_lib_schema509.FieldType<string, string>;
343
+ isOptional: false;
344
+ };
345
+ organizationId: {
346
+ type: _contractspec_lib_schema509.FieldType<string, string>;
347
+ isOptional: false;
348
+ };
349
+ timestamp: {
350
+ type: _contractspec_lib_schema509.FieldType<Date, string>;
351
+ isOptional: false;
352
+ };
353
+ }>>;
354
+ //#endregion
355
+ export { InstanceCancelledEvent, InstanceCompletedEvent, InstanceFailedEvent, InstancePausedEvent, InstanceResumedEvent, InstanceStartedEvent, InstanceTimedOutEvent, StepEnteredEvent, StepExitedEvent };
356
+ //# sourceMappingURL=instance.event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance.event.d.ts","names":[],"sources":["../../src/instance/instance.event.ts"],"sourcesContent":[],"mappings":";;;;;;;cAqEa,sBAAoB,4BAAA,CAAA,sCAAA;EAApB,UAAA,EAAA;IAUX,IAAA,EAAA,2BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;EAV+B,MAAA,EAAA;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAepB,UAAA,EAAA,KAUX;EAAA,CAAA;;;;;;;;;EAV2B,WAAA,EAAA;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAehB,UAAA,EAAA,KAUX;EAAA,CAAA;;;;;;;;;CAV0B,CAAA,CAAA;;AAe5B;;cA9Ba,kBAAgB,4BAAA,CAAA,sCAAA;;UAU3B,2BAAA,CAAA;;;;;;;EAoBiC,WAAA,EAAA;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAetB,UAAA,EAAA,IAAA;EAUX,CAAA;;;;;;;;;;+CAViC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAetB,SAAA,EAAA;IAUX,IAAA,uCAAA,KAAA,EAAA,MAAA,CAAA;;;;;;;cAvDW,iBAAe,4BAAA,CAAA,sCAAA;;UAU1B,2BAAA,CAAA;;EAmC8B,CAAA;EAAA,UAAA,EAAA;IAenB,IAAA,uCAUX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;IAV+B,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;EAepB,CAAA;EAUX,UAAA,EAAA;;;;;;;;;;;;AAV8B,cA5DnB,sBA4DmB,EA5DG,4BAAA,CAAA,SA4DH,6BA5DG,WA4DH,CAAA;EAenB,UAAA,EAAA;IAUX,IAAA,EA3EA,2BAAA,CAAA,SA2EA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;EAVgC,OAAA,EAAA;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;cA5DrB,wBAAsB,4BAAA,CAAA,sCAAA;;UAUjC,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,qBAAmB,4BAAA,CAAA,sCAAA;;UAU9B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,sBAAoB,4BAAA,CAAA,sCAAA;;UAU/B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,qBAAmB,4BAAA,CAAA,sCAAA;;UAU9B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,uBAAqB,4BAAA,CAAA,sCAAA;;UAUhC,2BAAA,CAAA"}