@aws-sdk/client-swf 3.301.0 → 3.303.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.
@@ -2,64 +2,55 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WorkflowExecutionAlreadyStartedFault = exports.TooManyTagsFault = exports.TypeAlreadyExistsFault = exports.LimitExceededFault = exports.DomainAlreadyExistsFault = exports.ExecutionStatus = exports.DomainDeprecatedFault = exports.TypeDeprecatedFault = exports.DefaultUndefinedFault = exports.WorkflowExecutionTerminatedCause = exports.WorkflowExecutionCancelRequestedCause = exports.StartTimerFailedCause = exports.StartLambdaFunctionFailedCause = exports.StartChildWorkflowExecutionFailedCause = exports.SignalExternalWorkflowExecutionFailedCause = exports.ScheduleLambdaFunctionFailedCause = exports.ScheduleActivityTaskFailedCause = exports.RequestCancelExternalWorkflowExecutionFailedCause = exports.RequestCancelActivityTaskFailedCause = exports.RecordMarkerFailedCause = exports.LambdaFunctionTimeoutType = exports.FailWorkflowExecutionFailedCause = exports.EventType = exports.DecisionTaskTimeoutType = exports.DecisionType = exports.UnknownResourceFault = exports.OperationNotPermittedFault = exports.ContinueAsNewWorkflowExecutionFailedCause = exports.CompleteWorkflowExecutionFailedCause = exports.CloseStatus = exports.WorkflowExecutionTimeoutType = exports.ChildPolicy = exports.CancelWorkflowExecutionFailedCause = exports.CancelTimerFailedCause = exports.RegistrationStatus = exports.ActivityTaskTimeoutType = void 0;
4
4
  const SWFServiceException_1 = require("./SWFServiceException");
5
- var ActivityTaskTimeoutType;
6
- (function (ActivityTaskTimeoutType) {
7
- ActivityTaskTimeoutType["HEARTBEAT"] = "HEARTBEAT";
8
- ActivityTaskTimeoutType["SCHEDULE_TO_CLOSE"] = "SCHEDULE_TO_CLOSE";
9
- ActivityTaskTimeoutType["SCHEDULE_TO_START"] = "SCHEDULE_TO_START";
10
- ActivityTaskTimeoutType["START_TO_CLOSE"] = "START_TO_CLOSE";
11
- })(ActivityTaskTimeoutType = exports.ActivityTaskTimeoutType || (exports.ActivityTaskTimeoutType = {}));
12
- var RegistrationStatus;
13
- (function (RegistrationStatus) {
14
- RegistrationStatus["DEPRECATED"] = "DEPRECATED";
15
- RegistrationStatus["REGISTERED"] = "REGISTERED";
16
- })(RegistrationStatus = exports.RegistrationStatus || (exports.RegistrationStatus = {}));
17
- var CancelTimerFailedCause;
18
- (function (CancelTimerFailedCause) {
19
- CancelTimerFailedCause["OPERATION_NOT_PERMITTED"] = "OPERATION_NOT_PERMITTED";
20
- CancelTimerFailedCause["TIMER_ID_UNKNOWN"] = "TIMER_ID_UNKNOWN";
21
- })(CancelTimerFailedCause = exports.CancelTimerFailedCause || (exports.CancelTimerFailedCause = {}));
22
- var CancelWorkflowExecutionFailedCause;
23
- (function (CancelWorkflowExecutionFailedCause) {
24
- CancelWorkflowExecutionFailedCause["OPERATION_NOT_PERMITTED"] = "OPERATION_NOT_PERMITTED";
25
- CancelWorkflowExecutionFailedCause["UNHANDLED_DECISION"] = "UNHANDLED_DECISION";
26
- })(CancelWorkflowExecutionFailedCause = exports.CancelWorkflowExecutionFailedCause || (exports.CancelWorkflowExecutionFailedCause = {}));
27
- var ChildPolicy;
28
- (function (ChildPolicy) {
29
- ChildPolicy["ABANDON"] = "ABANDON";
30
- ChildPolicy["REQUEST_CANCEL"] = "REQUEST_CANCEL";
31
- ChildPolicy["TERMINATE"] = "TERMINATE";
32
- })(ChildPolicy = exports.ChildPolicy || (exports.ChildPolicy = {}));
33
- var WorkflowExecutionTimeoutType;
34
- (function (WorkflowExecutionTimeoutType) {
35
- WorkflowExecutionTimeoutType["START_TO_CLOSE"] = "START_TO_CLOSE";
36
- })(WorkflowExecutionTimeoutType = exports.WorkflowExecutionTimeoutType || (exports.WorkflowExecutionTimeoutType = {}));
37
- var CloseStatus;
38
- (function (CloseStatus) {
39
- CloseStatus["CANCELED"] = "CANCELED";
40
- CloseStatus["COMPLETED"] = "COMPLETED";
41
- CloseStatus["CONTINUED_AS_NEW"] = "CONTINUED_AS_NEW";
42
- CloseStatus["FAILED"] = "FAILED";
43
- CloseStatus["TERMINATED"] = "TERMINATED";
44
- CloseStatus["TIMED_OUT"] = "TIMED_OUT";
45
- })(CloseStatus = exports.CloseStatus || (exports.CloseStatus = {}));
46
- var CompleteWorkflowExecutionFailedCause;
47
- (function (CompleteWorkflowExecutionFailedCause) {
48
- CompleteWorkflowExecutionFailedCause["OPERATION_NOT_PERMITTED"] = "OPERATION_NOT_PERMITTED";
49
- CompleteWorkflowExecutionFailedCause["UNHANDLED_DECISION"] = "UNHANDLED_DECISION";
50
- })(CompleteWorkflowExecutionFailedCause = exports.CompleteWorkflowExecutionFailedCause || (exports.CompleteWorkflowExecutionFailedCause = {}));
51
- var ContinueAsNewWorkflowExecutionFailedCause;
52
- (function (ContinueAsNewWorkflowExecutionFailedCause) {
53
- ContinueAsNewWorkflowExecutionFailedCause["CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED"] = "CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED";
54
- ContinueAsNewWorkflowExecutionFailedCause["DEFAULT_CHILD_POLICY_UNDEFINED"] = "DEFAULT_CHILD_POLICY_UNDEFINED";
55
- ContinueAsNewWorkflowExecutionFailedCause["DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"] = "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED";
56
- ContinueAsNewWorkflowExecutionFailedCause["DEFAULT_TASK_LIST_UNDEFINED"] = "DEFAULT_TASK_LIST_UNDEFINED";
57
- ContinueAsNewWorkflowExecutionFailedCause["DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"] = "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED";
58
- ContinueAsNewWorkflowExecutionFailedCause["OPERATION_NOT_PERMITTED"] = "OPERATION_NOT_PERMITTED";
59
- ContinueAsNewWorkflowExecutionFailedCause["UNHANDLED_DECISION"] = "UNHANDLED_DECISION";
60
- ContinueAsNewWorkflowExecutionFailedCause["WORKFLOW_TYPE_DEPRECATED"] = "WORKFLOW_TYPE_DEPRECATED";
61
- ContinueAsNewWorkflowExecutionFailedCause["WORKFLOW_TYPE_DOES_NOT_EXIST"] = "WORKFLOW_TYPE_DOES_NOT_EXIST";
62
- })(ContinueAsNewWorkflowExecutionFailedCause = exports.ContinueAsNewWorkflowExecutionFailedCause || (exports.ContinueAsNewWorkflowExecutionFailedCause = {}));
5
+ exports.ActivityTaskTimeoutType = {
6
+ HEARTBEAT: "HEARTBEAT",
7
+ SCHEDULE_TO_CLOSE: "SCHEDULE_TO_CLOSE",
8
+ SCHEDULE_TO_START: "SCHEDULE_TO_START",
9
+ START_TO_CLOSE: "START_TO_CLOSE",
10
+ };
11
+ exports.RegistrationStatus = {
12
+ DEPRECATED: "DEPRECATED",
13
+ REGISTERED: "REGISTERED",
14
+ };
15
+ exports.CancelTimerFailedCause = {
16
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
17
+ TIMER_ID_UNKNOWN: "TIMER_ID_UNKNOWN",
18
+ };
19
+ exports.CancelWorkflowExecutionFailedCause = {
20
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
21
+ UNHANDLED_DECISION: "UNHANDLED_DECISION",
22
+ };
23
+ exports.ChildPolicy = {
24
+ ABANDON: "ABANDON",
25
+ REQUEST_CANCEL: "REQUEST_CANCEL",
26
+ TERMINATE: "TERMINATE",
27
+ };
28
+ exports.WorkflowExecutionTimeoutType = {
29
+ START_TO_CLOSE: "START_TO_CLOSE",
30
+ };
31
+ exports.CloseStatus = {
32
+ CANCELED: "CANCELED",
33
+ COMPLETED: "COMPLETED",
34
+ CONTINUED_AS_NEW: "CONTINUED_AS_NEW",
35
+ FAILED: "FAILED",
36
+ TERMINATED: "TERMINATED",
37
+ TIMED_OUT: "TIMED_OUT",
38
+ };
39
+ exports.CompleteWorkflowExecutionFailedCause = {
40
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
41
+ UNHANDLED_DECISION: "UNHANDLED_DECISION",
42
+ };
43
+ exports.ContinueAsNewWorkflowExecutionFailedCause = {
44
+ CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED: "CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED",
45
+ DEFAULT_CHILD_POLICY_UNDEFINED: "DEFAULT_CHILD_POLICY_UNDEFINED",
46
+ DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED",
47
+ DEFAULT_TASK_LIST_UNDEFINED: "DEFAULT_TASK_LIST_UNDEFINED",
48
+ DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED",
49
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
50
+ UNHANDLED_DECISION: "UNHANDLED_DECISION",
51
+ WORKFLOW_TYPE_DEPRECATED: "WORKFLOW_TYPE_DEPRECATED",
52
+ WORKFLOW_TYPE_DOES_NOT_EXIST: "WORKFLOW_TYPE_DOES_NOT_EXIST",
53
+ };
63
54
  class OperationNotPermittedFault extends SWFServiceException_1.SWFServiceException {
64
55
  constructor(opts) {
65
56
  super({
@@ -86,169 +77,153 @@ class UnknownResourceFault extends SWFServiceException_1.SWFServiceException {
86
77
  }
87
78
  }
88
79
  exports.UnknownResourceFault = UnknownResourceFault;
89
- var DecisionType;
90
- (function (DecisionType) {
91
- DecisionType["CancelTimer"] = "CancelTimer";
92
- DecisionType["CancelWorkflowExecution"] = "CancelWorkflowExecution";
93
- DecisionType["CompleteWorkflowExecution"] = "CompleteWorkflowExecution";
94
- DecisionType["ContinueAsNewWorkflowExecution"] = "ContinueAsNewWorkflowExecution";
95
- DecisionType["FailWorkflowExecution"] = "FailWorkflowExecution";
96
- DecisionType["RecordMarker"] = "RecordMarker";
97
- DecisionType["RequestCancelActivityTask"] = "RequestCancelActivityTask";
98
- DecisionType["RequestCancelExternalWorkflowExecution"] = "RequestCancelExternalWorkflowExecution";
99
- DecisionType["ScheduleActivityTask"] = "ScheduleActivityTask";
100
- DecisionType["ScheduleLambdaFunction"] = "ScheduleLambdaFunction";
101
- DecisionType["SignalExternalWorkflowExecution"] = "SignalExternalWorkflowExecution";
102
- DecisionType["StartChildWorkflowExecution"] = "StartChildWorkflowExecution";
103
- DecisionType["StartTimer"] = "StartTimer";
104
- })(DecisionType = exports.DecisionType || (exports.DecisionType = {}));
105
- var DecisionTaskTimeoutType;
106
- (function (DecisionTaskTimeoutType) {
107
- DecisionTaskTimeoutType["START_TO_CLOSE"] = "START_TO_CLOSE";
108
- })(DecisionTaskTimeoutType = exports.DecisionTaskTimeoutType || (exports.DecisionTaskTimeoutType = {}));
109
- var EventType;
110
- (function (EventType) {
111
- EventType["ActivityTaskCancelRequested"] = "ActivityTaskCancelRequested";
112
- EventType["ActivityTaskCanceled"] = "ActivityTaskCanceled";
113
- EventType["ActivityTaskCompleted"] = "ActivityTaskCompleted";
114
- EventType["ActivityTaskFailed"] = "ActivityTaskFailed";
115
- EventType["ActivityTaskScheduled"] = "ActivityTaskScheduled";
116
- EventType["ActivityTaskStarted"] = "ActivityTaskStarted";
117
- EventType["ActivityTaskTimedOut"] = "ActivityTaskTimedOut";
118
- EventType["CancelTimerFailed"] = "CancelTimerFailed";
119
- EventType["CancelWorkflowExecutionFailed"] = "CancelWorkflowExecutionFailed";
120
- EventType["ChildWorkflowExecutionCanceled"] = "ChildWorkflowExecutionCanceled";
121
- EventType["ChildWorkflowExecutionCompleted"] = "ChildWorkflowExecutionCompleted";
122
- EventType["ChildWorkflowExecutionFailed"] = "ChildWorkflowExecutionFailed";
123
- EventType["ChildWorkflowExecutionStarted"] = "ChildWorkflowExecutionStarted";
124
- EventType["ChildWorkflowExecutionTerminated"] = "ChildWorkflowExecutionTerminated";
125
- EventType["ChildWorkflowExecutionTimedOut"] = "ChildWorkflowExecutionTimedOut";
126
- EventType["CompleteWorkflowExecutionFailed"] = "CompleteWorkflowExecutionFailed";
127
- EventType["ContinueAsNewWorkflowExecutionFailed"] = "ContinueAsNewWorkflowExecutionFailed";
128
- EventType["DecisionTaskCompleted"] = "DecisionTaskCompleted";
129
- EventType["DecisionTaskScheduled"] = "DecisionTaskScheduled";
130
- EventType["DecisionTaskStarted"] = "DecisionTaskStarted";
131
- EventType["DecisionTaskTimedOut"] = "DecisionTaskTimedOut";
132
- EventType["ExternalWorkflowExecutionCancelRequested"] = "ExternalWorkflowExecutionCancelRequested";
133
- EventType["ExternalWorkflowExecutionSignaled"] = "ExternalWorkflowExecutionSignaled";
134
- EventType["FailWorkflowExecutionFailed"] = "FailWorkflowExecutionFailed";
135
- EventType["LambdaFunctionCompleted"] = "LambdaFunctionCompleted";
136
- EventType["LambdaFunctionFailed"] = "LambdaFunctionFailed";
137
- EventType["LambdaFunctionScheduled"] = "LambdaFunctionScheduled";
138
- EventType["LambdaFunctionStarted"] = "LambdaFunctionStarted";
139
- EventType["LambdaFunctionTimedOut"] = "LambdaFunctionTimedOut";
140
- EventType["MarkerRecorded"] = "MarkerRecorded";
141
- EventType["RecordMarkerFailed"] = "RecordMarkerFailed";
142
- EventType["RequestCancelActivityTaskFailed"] = "RequestCancelActivityTaskFailed";
143
- EventType["RequestCancelExternalWorkflowExecutionFailed"] = "RequestCancelExternalWorkflowExecutionFailed";
144
- EventType["RequestCancelExternalWorkflowExecutionInitiated"] = "RequestCancelExternalWorkflowExecutionInitiated";
145
- EventType["ScheduleActivityTaskFailed"] = "ScheduleActivityTaskFailed";
146
- EventType["ScheduleLambdaFunctionFailed"] = "ScheduleLambdaFunctionFailed";
147
- EventType["SignalExternalWorkflowExecutionFailed"] = "SignalExternalWorkflowExecutionFailed";
148
- EventType["SignalExternalWorkflowExecutionInitiated"] = "SignalExternalWorkflowExecutionInitiated";
149
- EventType["StartChildWorkflowExecutionFailed"] = "StartChildWorkflowExecutionFailed";
150
- EventType["StartChildWorkflowExecutionInitiated"] = "StartChildWorkflowExecutionInitiated";
151
- EventType["StartLambdaFunctionFailed"] = "StartLambdaFunctionFailed";
152
- EventType["StartTimerFailed"] = "StartTimerFailed";
153
- EventType["TimerCanceled"] = "TimerCanceled";
154
- EventType["TimerFired"] = "TimerFired";
155
- EventType["TimerStarted"] = "TimerStarted";
156
- EventType["WorkflowExecutionCancelRequested"] = "WorkflowExecutionCancelRequested";
157
- EventType["WorkflowExecutionCanceled"] = "WorkflowExecutionCanceled";
158
- EventType["WorkflowExecutionCompleted"] = "WorkflowExecutionCompleted";
159
- EventType["WorkflowExecutionContinuedAsNew"] = "WorkflowExecutionContinuedAsNew";
160
- EventType["WorkflowExecutionFailed"] = "WorkflowExecutionFailed";
161
- EventType["WorkflowExecutionSignaled"] = "WorkflowExecutionSignaled";
162
- EventType["WorkflowExecutionStarted"] = "WorkflowExecutionStarted";
163
- EventType["WorkflowExecutionTerminated"] = "WorkflowExecutionTerminated";
164
- EventType["WorkflowExecutionTimedOut"] = "WorkflowExecutionTimedOut";
165
- })(EventType = exports.EventType || (exports.EventType = {}));
166
- var FailWorkflowExecutionFailedCause;
167
- (function (FailWorkflowExecutionFailedCause) {
168
- FailWorkflowExecutionFailedCause["OPERATION_NOT_PERMITTED"] = "OPERATION_NOT_PERMITTED";
169
- FailWorkflowExecutionFailedCause["UNHANDLED_DECISION"] = "UNHANDLED_DECISION";
170
- })(FailWorkflowExecutionFailedCause = exports.FailWorkflowExecutionFailedCause || (exports.FailWorkflowExecutionFailedCause = {}));
171
- var LambdaFunctionTimeoutType;
172
- (function (LambdaFunctionTimeoutType) {
173
- LambdaFunctionTimeoutType["START_TO_CLOSE"] = "START_TO_CLOSE";
174
- })(LambdaFunctionTimeoutType = exports.LambdaFunctionTimeoutType || (exports.LambdaFunctionTimeoutType = {}));
175
- var RecordMarkerFailedCause;
176
- (function (RecordMarkerFailedCause) {
177
- RecordMarkerFailedCause["OPERATION_NOT_PERMITTED"] = "OPERATION_NOT_PERMITTED";
178
- })(RecordMarkerFailedCause = exports.RecordMarkerFailedCause || (exports.RecordMarkerFailedCause = {}));
179
- var RequestCancelActivityTaskFailedCause;
180
- (function (RequestCancelActivityTaskFailedCause) {
181
- RequestCancelActivityTaskFailedCause["ACTIVITY_ID_UNKNOWN"] = "ACTIVITY_ID_UNKNOWN";
182
- RequestCancelActivityTaskFailedCause["OPERATION_NOT_PERMITTED"] = "OPERATION_NOT_PERMITTED";
183
- })(RequestCancelActivityTaskFailedCause = exports.RequestCancelActivityTaskFailedCause || (exports.RequestCancelActivityTaskFailedCause = {}));
184
- var RequestCancelExternalWorkflowExecutionFailedCause;
185
- (function (RequestCancelExternalWorkflowExecutionFailedCause) {
186
- RequestCancelExternalWorkflowExecutionFailedCause["OPERATION_NOT_PERMITTED"] = "OPERATION_NOT_PERMITTED";
187
- RequestCancelExternalWorkflowExecutionFailedCause["REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"] = "REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED";
188
- RequestCancelExternalWorkflowExecutionFailedCause["UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"] = "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION";
189
- })(RequestCancelExternalWorkflowExecutionFailedCause = exports.RequestCancelExternalWorkflowExecutionFailedCause || (exports.RequestCancelExternalWorkflowExecutionFailedCause = {}));
190
- var ScheduleActivityTaskFailedCause;
191
- (function (ScheduleActivityTaskFailedCause) {
192
- ScheduleActivityTaskFailedCause["ACTIVITY_CREATION_RATE_EXCEEDED"] = "ACTIVITY_CREATION_RATE_EXCEEDED";
193
- ScheduleActivityTaskFailedCause["ACTIVITY_ID_ALREADY_IN_USE"] = "ACTIVITY_ID_ALREADY_IN_USE";
194
- ScheduleActivityTaskFailedCause["ACTIVITY_TYPE_DEPRECATED"] = "ACTIVITY_TYPE_DEPRECATED";
195
- ScheduleActivityTaskFailedCause["ACTIVITY_TYPE_DOES_NOT_EXIST"] = "ACTIVITY_TYPE_DOES_NOT_EXIST";
196
- ScheduleActivityTaskFailedCause["DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED"] = "DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED";
197
- ScheduleActivityTaskFailedCause["DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED"] = "DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED";
198
- ScheduleActivityTaskFailedCause["DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED"] = "DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED";
199
- ScheduleActivityTaskFailedCause["DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED"] = "DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED";
200
- ScheduleActivityTaskFailedCause["DEFAULT_TASK_LIST_UNDEFINED"] = "DEFAULT_TASK_LIST_UNDEFINED";
201
- ScheduleActivityTaskFailedCause["OPEN_ACTIVITIES_LIMIT_EXCEEDED"] = "OPEN_ACTIVITIES_LIMIT_EXCEEDED";
202
- ScheduleActivityTaskFailedCause["OPERATION_NOT_PERMITTED"] = "OPERATION_NOT_PERMITTED";
203
- })(ScheduleActivityTaskFailedCause = exports.ScheduleActivityTaskFailedCause || (exports.ScheduleActivityTaskFailedCause = {}));
204
- var ScheduleLambdaFunctionFailedCause;
205
- (function (ScheduleLambdaFunctionFailedCause) {
206
- ScheduleLambdaFunctionFailedCause["ID_ALREADY_IN_USE"] = "ID_ALREADY_IN_USE";
207
- ScheduleLambdaFunctionFailedCause["LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED"] = "LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED";
208
- ScheduleLambdaFunctionFailedCause["LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION"] = "LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION";
209
- ScheduleLambdaFunctionFailedCause["OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED"] = "OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED";
210
- })(ScheduleLambdaFunctionFailedCause = exports.ScheduleLambdaFunctionFailedCause || (exports.ScheduleLambdaFunctionFailedCause = {}));
211
- var SignalExternalWorkflowExecutionFailedCause;
212
- (function (SignalExternalWorkflowExecutionFailedCause) {
213
- SignalExternalWorkflowExecutionFailedCause["OPERATION_NOT_PERMITTED"] = "OPERATION_NOT_PERMITTED";
214
- SignalExternalWorkflowExecutionFailedCause["SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"] = "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED";
215
- SignalExternalWorkflowExecutionFailedCause["UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"] = "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION";
216
- })(SignalExternalWorkflowExecutionFailedCause = exports.SignalExternalWorkflowExecutionFailedCause || (exports.SignalExternalWorkflowExecutionFailedCause = {}));
217
- var StartChildWorkflowExecutionFailedCause;
218
- (function (StartChildWorkflowExecutionFailedCause) {
219
- StartChildWorkflowExecutionFailedCause["CHILD_CREATION_RATE_EXCEEDED"] = "CHILD_CREATION_RATE_EXCEEDED";
220
- StartChildWorkflowExecutionFailedCause["DEFAULT_CHILD_POLICY_UNDEFINED"] = "DEFAULT_CHILD_POLICY_UNDEFINED";
221
- StartChildWorkflowExecutionFailedCause["DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"] = "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED";
222
- StartChildWorkflowExecutionFailedCause["DEFAULT_TASK_LIST_UNDEFINED"] = "DEFAULT_TASK_LIST_UNDEFINED";
223
- StartChildWorkflowExecutionFailedCause["DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"] = "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED";
224
- StartChildWorkflowExecutionFailedCause["OPEN_CHILDREN_LIMIT_EXCEEDED"] = "OPEN_CHILDREN_LIMIT_EXCEEDED";
225
- StartChildWorkflowExecutionFailedCause["OPEN_WORKFLOWS_LIMIT_EXCEEDED"] = "OPEN_WORKFLOWS_LIMIT_EXCEEDED";
226
- StartChildWorkflowExecutionFailedCause["OPERATION_NOT_PERMITTED"] = "OPERATION_NOT_PERMITTED";
227
- StartChildWorkflowExecutionFailedCause["WORKFLOW_ALREADY_RUNNING"] = "WORKFLOW_ALREADY_RUNNING";
228
- StartChildWorkflowExecutionFailedCause["WORKFLOW_TYPE_DEPRECATED"] = "WORKFLOW_TYPE_DEPRECATED";
229
- StartChildWorkflowExecutionFailedCause["WORKFLOW_TYPE_DOES_NOT_EXIST"] = "WORKFLOW_TYPE_DOES_NOT_EXIST";
230
- })(StartChildWorkflowExecutionFailedCause = exports.StartChildWorkflowExecutionFailedCause || (exports.StartChildWorkflowExecutionFailedCause = {}));
231
- var StartLambdaFunctionFailedCause;
232
- (function (StartLambdaFunctionFailedCause) {
233
- StartLambdaFunctionFailedCause["ASSUME_ROLE_FAILED"] = "ASSUME_ROLE_FAILED";
234
- })(StartLambdaFunctionFailedCause = exports.StartLambdaFunctionFailedCause || (exports.StartLambdaFunctionFailedCause = {}));
235
- var StartTimerFailedCause;
236
- (function (StartTimerFailedCause) {
237
- StartTimerFailedCause["OPEN_TIMERS_LIMIT_EXCEEDED"] = "OPEN_TIMERS_LIMIT_EXCEEDED";
238
- StartTimerFailedCause["OPERATION_NOT_PERMITTED"] = "OPERATION_NOT_PERMITTED";
239
- StartTimerFailedCause["TIMER_CREATION_RATE_EXCEEDED"] = "TIMER_CREATION_RATE_EXCEEDED";
240
- StartTimerFailedCause["TIMER_ID_ALREADY_IN_USE"] = "TIMER_ID_ALREADY_IN_USE";
241
- })(StartTimerFailedCause = exports.StartTimerFailedCause || (exports.StartTimerFailedCause = {}));
242
- var WorkflowExecutionCancelRequestedCause;
243
- (function (WorkflowExecutionCancelRequestedCause) {
244
- WorkflowExecutionCancelRequestedCause["CHILD_POLICY_APPLIED"] = "CHILD_POLICY_APPLIED";
245
- })(WorkflowExecutionCancelRequestedCause = exports.WorkflowExecutionCancelRequestedCause || (exports.WorkflowExecutionCancelRequestedCause = {}));
246
- var WorkflowExecutionTerminatedCause;
247
- (function (WorkflowExecutionTerminatedCause) {
248
- WorkflowExecutionTerminatedCause["CHILD_POLICY_APPLIED"] = "CHILD_POLICY_APPLIED";
249
- WorkflowExecutionTerminatedCause["EVENT_LIMIT_EXCEEDED"] = "EVENT_LIMIT_EXCEEDED";
250
- WorkflowExecutionTerminatedCause["OPERATOR_INITIATED"] = "OPERATOR_INITIATED";
251
- })(WorkflowExecutionTerminatedCause = exports.WorkflowExecutionTerminatedCause || (exports.WorkflowExecutionTerminatedCause = {}));
80
+ exports.DecisionType = {
81
+ CancelTimer: "CancelTimer",
82
+ CancelWorkflowExecution: "CancelWorkflowExecution",
83
+ CompleteWorkflowExecution: "CompleteWorkflowExecution",
84
+ ContinueAsNewWorkflowExecution: "ContinueAsNewWorkflowExecution",
85
+ FailWorkflowExecution: "FailWorkflowExecution",
86
+ RecordMarker: "RecordMarker",
87
+ RequestCancelActivityTask: "RequestCancelActivityTask",
88
+ RequestCancelExternalWorkflowExecution: "RequestCancelExternalWorkflowExecution",
89
+ ScheduleActivityTask: "ScheduleActivityTask",
90
+ ScheduleLambdaFunction: "ScheduleLambdaFunction",
91
+ SignalExternalWorkflowExecution: "SignalExternalWorkflowExecution",
92
+ StartChildWorkflowExecution: "StartChildWorkflowExecution",
93
+ StartTimer: "StartTimer",
94
+ };
95
+ exports.DecisionTaskTimeoutType = {
96
+ START_TO_CLOSE: "START_TO_CLOSE",
97
+ };
98
+ exports.EventType = {
99
+ ActivityTaskCancelRequested: "ActivityTaskCancelRequested",
100
+ ActivityTaskCanceled: "ActivityTaskCanceled",
101
+ ActivityTaskCompleted: "ActivityTaskCompleted",
102
+ ActivityTaskFailed: "ActivityTaskFailed",
103
+ ActivityTaskScheduled: "ActivityTaskScheduled",
104
+ ActivityTaskStarted: "ActivityTaskStarted",
105
+ ActivityTaskTimedOut: "ActivityTaskTimedOut",
106
+ CancelTimerFailed: "CancelTimerFailed",
107
+ CancelWorkflowExecutionFailed: "CancelWorkflowExecutionFailed",
108
+ ChildWorkflowExecutionCanceled: "ChildWorkflowExecutionCanceled",
109
+ ChildWorkflowExecutionCompleted: "ChildWorkflowExecutionCompleted",
110
+ ChildWorkflowExecutionFailed: "ChildWorkflowExecutionFailed",
111
+ ChildWorkflowExecutionStarted: "ChildWorkflowExecutionStarted",
112
+ ChildWorkflowExecutionTerminated: "ChildWorkflowExecutionTerminated",
113
+ ChildWorkflowExecutionTimedOut: "ChildWorkflowExecutionTimedOut",
114
+ CompleteWorkflowExecutionFailed: "CompleteWorkflowExecutionFailed",
115
+ ContinueAsNewWorkflowExecutionFailed: "ContinueAsNewWorkflowExecutionFailed",
116
+ DecisionTaskCompleted: "DecisionTaskCompleted",
117
+ DecisionTaskScheduled: "DecisionTaskScheduled",
118
+ DecisionTaskStarted: "DecisionTaskStarted",
119
+ DecisionTaskTimedOut: "DecisionTaskTimedOut",
120
+ ExternalWorkflowExecutionCancelRequested: "ExternalWorkflowExecutionCancelRequested",
121
+ ExternalWorkflowExecutionSignaled: "ExternalWorkflowExecutionSignaled",
122
+ FailWorkflowExecutionFailed: "FailWorkflowExecutionFailed",
123
+ LambdaFunctionCompleted: "LambdaFunctionCompleted",
124
+ LambdaFunctionFailed: "LambdaFunctionFailed",
125
+ LambdaFunctionScheduled: "LambdaFunctionScheduled",
126
+ LambdaFunctionStarted: "LambdaFunctionStarted",
127
+ LambdaFunctionTimedOut: "LambdaFunctionTimedOut",
128
+ MarkerRecorded: "MarkerRecorded",
129
+ RecordMarkerFailed: "RecordMarkerFailed",
130
+ RequestCancelActivityTaskFailed: "RequestCancelActivityTaskFailed",
131
+ RequestCancelExternalWorkflowExecutionFailed: "RequestCancelExternalWorkflowExecutionFailed",
132
+ RequestCancelExternalWorkflowExecutionInitiated: "RequestCancelExternalWorkflowExecutionInitiated",
133
+ ScheduleActivityTaskFailed: "ScheduleActivityTaskFailed",
134
+ ScheduleLambdaFunctionFailed: "ScheduleLambdaFunctionFailed",
135
+ SignalExternalWorkflowExecutionFailed: "SignalExternalWorkflowExecutionFailed",
136
+ SignalExternalWorkflowExecutionInitiated: "SignalExternalWorkflowExecutionInitiated",
137
+ StartChildWorkflowExecutionFailed: "StartChildWorkflowExecutionFailed",
138
+ StartChildWorkflowExecutionInitiated: "StartChildWorkflowExecutionInitiated",
139
+ StartLambdaFunctionFailed: "StartLambdaFunctionFailed",
140
+ StartTimerFailed: "StartTimerFailed",
141
+ TimerCanceled: "TimerCanceled",
142
+ TimerFired: "TimerFired",
143
+ TimerStarted: "TimerStarted",
144
+ WorkflowExecutionCancelRequested: "WorkflowExecutionCancelRequested",
145
+ WorkflowExecutionCanceled: "WorkflowExecutionCanceled",
146
+ WorkflowExecutionCompleted: "WorkflowExecutionCompleted",
147
+ WorkflowExecutionContinuedAsNew: "WorkflowExecutionContinuedAsNew",
148
+ WorkflowExecutionFailed: "WorkflowExecutionFailed",
149
+ WorkflowExecutionSignaled: "WorkflowExecutionSignaled",
150
+ WorkflowExecutionStarted: "WorkflowExecutionStarted",
151
+ WorkflowExecutionTerminated: "WorkflowExecutionTerminated",
152
+ WorkflowExecutionTimedOut: "WorkflowExecutionTimedOut",
153
+ };
154
+ exports.FailWorkflowExecutionFailedCause = {
155
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
156
+ UNHANDLED_DECISION: "UNHANDLED_DECISION",
157
+ };
158
+ exports.LambdaFunctionTimeoutType = {
159
+ START_TO_CLOSE: "START_TO_CLOSE",
160
+ };
161
+ exports.RecordMarkerFailedCause = {
162
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
163
+ };
164
+ exports.RequestCancelActivityTaskFailedCause = {
165
+ ACTIVITY_ID_UNKNOWN: "ACTIVITY_ID_UNKNOWN",
166
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
167
+ };
168
+ exports.RequestCancelExternalWorkflowExecutionFailedCause = {
169
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
170
+ REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED: "REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED",
171
+ UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION: "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION",
172
+ };
173
+ exports.ScheduleActivityTaskFailedCause = {
174
+ ACTIVITY_CREATION_RATE_EXCEEDED: "ACTIVITY_CREATION_RATE_EXCEEDED",
175
+ ACTIVITY_ID_ALREADY_IN_USE: "ACTIVITY_ID_ALREADY_IN_USE",
176
+ ACTIVITY_TYPE_DEPRECATED: "ACTIVITY_TYPE_DEPRECATED",
177
+ ACTIVITY_TYPE_DOES_NOT_EXIST: "ACTIVITY_TYPE_DOES_NOT_EXIST",
178
+ DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED: "DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED",
179
+ DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED",
180
+ DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED: "DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED",
181
+ DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED",
182
+ DEFAULT_TASK_LIST_UNDEFINED: "DEFAULT_TASK_LIST_UNDEFINED",
183
+ OPEN_ACTIVITIES_LIMIT_EXCEEDED: "OPEN_ACTIVITIES_LIMIT_EXCEEDED",
184
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
185
+ };
186
+ exports.ScheduleLambdaFunctionFailedCause = {
187
+ ID_ALREADY_IN_USE: "ID_ALREADY_IN_USE",
188
+ LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED: "LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED",
189
+ LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION: "LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION",
190
+ OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED: "OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED",
191
+ };
192
+ exports.SignalExternalWorkflowExecutionFailedCause = {
193
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
194
+ SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED: "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED",
195
+ UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION: "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION",
196
+ };
197
+ exports.StartChildWorkflowExecutionFailedCause = {
198
+ CHILD_CREATION_RATE_EXCEEDED: "CHILD_CREATION_RATE_EXCEEDED",
199
+ DEFAULT_CHILD_POLICY_UNDEFINED: "DEFAULT_CHILD_POLICY_UNDEFINED",
200
+ DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED",
201
+ DEFAULT_TASK_LIST_UNDEFINED: "DEFAULT_TASK_LIST_UNDEFINED",
202
+ DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED",
203
+ OPEN_CHILDREN_LIMIT_EXCEEDED: "OPEN_CHILDREN_LIMIT_EXCEEDED",
204
+ OPEN_WORKFLOWS_LIMIT_EXCEEDED: "OPEN_WORKFLOWS_LIMIT_EXCEEDED",
205
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
206
+ WORKFLOW_ALREADY_RUNNING: "WORKFLOW_ALREADY_RUNNING",
207
+ WORKFLOW_TYPE_DEPRECATED: "WORKFLOW_TYPE_DEPRECATED",
208
+ WORKFLOW_TYPE_DOES_NOT_EXIST: "WORKFLOW_TYPE_DOES_NOT_EXIST",
209
+ };
210
+ exports.StartLambdaFunctionFailedCause = {
211
+ ASSUME_ROLE_FAILED: "ASSUME_ROLE_FAILED",
212
+ };
213
+ exports.StartTimerFailedCause = {
214
+ OPEN_TIMERS_LIMIT_EXCEEDED: "OPEN_TIMERS_LIMIT_EXCEEDED",
215
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
216
+ TIMER_CREATION_RATE_EXCEEDED: "TIMER_CREATION_RATE_EXCEEDED",
217
+ TIMER_ID_ALREADY_IN_USE: "TIMER_ID_ALREADY_IN_USE",
218
+ };
219
+ exports.WorkflowExecutionCancelRequestedCause = {
220
+ CHILD_POLICY_APPLIED: "CHILD_POLICY_APPLIED",
221
+ };
222
+ exports.WorkflowExecutionTerminatedCause = {
223
+ CHILD_POLICY_APPLIED: "CHILD_POLICY_APPLIED",
224
+ EVENT_LIMIT_EXCEEDED: "EVENT_LIMIT_EXCEEDED",
225
+ OPERATOR_INITIATED: "OPERATOR_INITIATED",
226
+ };
252
227
  class DefaultUndefinedFault extends SWFServiceException_1.SWFServiceException {
253
228
  constructor(opts) {
254
229
  super({
@@ -288,11 +263,10 @@ class DomainDeprecatedFault extends SWFServiceException_1.SWFServiceException {
288
263
  }
289
264
  }
290
265
  exports.DomainDeprecatedFault = DomainDeprecatedFault;
291
- var ExecutionStatus;
292
- (function (ExecutionStatus) {
293
- ExecutionStatus["CLOSED"] = "CLOSED";
294
- ExecutionStatus["OPEN"] = "OPEN";
295
- })(ExecutionStatus = exports.ExecutionStatus || (exports.ExecutionStatus = {}));
266
+ exports.ExecutionStatus = {
267
+ CLOSED: "CLOSED",
268
+ OPEN: "OPEN",
269
+ };
296
270
  class DomainAlreadyExistsFault extends SWFServiceException_1.SWFServiceException {
297
271
  constructor(opts) {
298
272
  super({