@aws-sdk/client-swf 3.183.0 → 3.186.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 (57) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_json1_0.js +2 -2
  3. package/dist-es/SWF.js +157 -150
  4. package/dist-es/SWFClient.js +28 -22
  5. package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js +28 -21
  6. package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js +28 -21
  7. package/dist-es/commands/CountPendingActivityTasksCommand.js +28 -21
  8. package/dist-es/commands/CountPendingDecisionTasksCommand.js +28 -21
  9. package/dist-es/commands/DeprecateActivityTypeCommand.js +29 -22
  10. package/dist-es/commands/DeprecateDomainCommand.js +29 -22
  11. package/dist-es/commands/DeprecateWorkflowTypeCommand.js +29 -22
  12. package/dist-es/commands/DescribeActivityTypeCommand.js +28 -21
  13. package/dist-es/commands/DescribeDomainCommand.js +28 -21
  14. package/dist-es/commands/DescribeWorkflowExecutionCommand.js +28 -21
  15. package/dist-es/commands/DescribeWorkflowTypeCommand.js +28 -21
  16. package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js +28 -21
  17. package/dist-es/commands/ListActivityTypesCommand.js +28 -21
  18. package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js +28 -21
  19. package/dist-es/commands/ListDomainsCommand.js +28 -21
  20. package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js +28 -21
  21. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  22. package/dist-es/commands/ListWorkflowTypesCommand.js +28 -21
  23. package/dist-es/commands/PollForActivityTaskCommand.js +28 -21
  24. package/dist-es/commands/PollForDecisionTaskCommand.js +28 -21
  25. package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js +28 -21
  26. package/dist-es/commands/RegisterActivityTypeCommand.js +29 -22
  27. package/dist-es/commands/RegisterDomainCommand.js +29 -22
  28. package/dist-es/commands/RegisterWorkflowTypeCommand.js +29 -22
  29. package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js +29 -22
  30. package/dist-es/commands/RespondActivityTaskCanceledCommand.js +29 -22
  31. package/dist-es/commands/RespondActivityTaskCompletedCommand.js +29 -22
  32. package/dist-es/commands/RespondActivityTaskFailedCommand.js +29 -22
  33. package/dist-es/commands/RespondDecisionTaskCompletedCommand.js +29 -22
  34. package/dist-es/commands/SignalWorkflowExecutionCommand.js +29 -22
  35. package/dist-es/commands/StartWorkflowExecutionCommand.js +28 -21
  36. package/dist-es/commands/TagResourceCommand.js +29 -22
  37. package/dist-es/commands/TerminateWorkflowExecutionCommand.js +29 -22
  38. package/dist-es/commands/UndeprecateActivityTypeCommand.js +29 -22
  39. package/dist-es/commands/UndeprecateDomainCommand.js +29 -22
  40. package/dist-es/commands/UndeprecateWorkflowTypeCommand.js +29 -22
  41. package/dist-es/commands/UntagResourceCommand.js +29 -22
  42. package/dist-es/endpoints.js +8 -8
  43. package/dist-es/models/SWFServiceException.js +10 -5
  44. package/dist-es/models/models_0.js +252 -533
  45. package/dist-es/pagination/GetWorkflowExecutionHistoryPaginator.js +68 -25
  46. package/dist-es/pagination/ListActivityTypesPaginator.js +68 -25
  47. package/dist-es/pagination/ListClosedWorkflowExecutionsPaginator.js +68 -25
  48. package/dist-es/pagination/ListDomainsPaginator.js +68 -25
  49. package/dist-es/pagination/ListOpenWorkflowExecutionsPaginator.js +68 -25
  50. package/dist-es/pagination/ListWorkflowTypesPaginator.js +68 -25
  51. package/dist-es/pagination/PollForDecisionTaskPaginator.js +68 -25
  52. package/dist-es/protocols/Aws_json1_0.js +3017 -2433
  53. package/dist-es/runtimeConfig.browser.js +12 -26
  54. package/dist-es/runtimeConfig.js +12 -30
  55. package/dist-es/runtimeConfig.native.js +5 -8
  56. package/dist-es/runtimeConfig.shared.js +11 -8
  57. package/package.json +33 -33
package/dist-es/SWF.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CountClosedWorkflowExecutionsCommand, } from "./commands/CountClosedWorkflowExecutionsCommand";
2
3
  import { CountOpenWorkflowExecutionsCommand, } from "./commands/CountOpenWorkflowExecutionsCommand";
3
4
  import { CountPendingActivityTasksCommand, } from "./commands/CountPendingActivityTasksCommand";
@@ -36,523 +37,529 @@ import { UndeprecateDomainCommand, } from "./commands/UndeprecateDomainCommand";
36
37
  import { UndeprecateWorkflowTypeCommand, } from "./commands/UndeprecateWorkflowTypeCommand";
37
38
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
38
39
  import { SWFClient } from "./SWFClient";
39
- export class SWF extends SWFClient {
40
- countClosedWorkflowExecutions(args, optionsOrCb, cb) {
41
- const command = new CountClosedWorkflowExecutionsCommand(args);
40
+ var SWF = (function (_super) {
41
+ __extends(SWF, _super);
42
+ function SWF() {
43
+ return _super !== null && _super.apply(this, arguments) || this;
44
+ }
45
+ SWF.prototype.countClosedWorkflowExecutions = function (args, optionsOrCb, cb) {
46
+ var command = new CountClosedWorkflowExecutionsCommand(args);
42
47
  if (typeof optionsOrCb === "function") {
43
48
  this.send(command, optionsOrCb);
44
49
  }
45
50
  else if (typeof cb === "function") {
46
51
  if (typeof optionsOrCb !== "object")
47
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
48
53
  this.send(command, optionsOrCb || {}, cb);
49
54
  }
50
55
  else {
51
56
  return this.send(command, optionsOrCb);
52
57
  }
53
- }
54
- countOpenWorkflowExecutions(args, optionsOrCb, cb) {
55
- const command = new CountOpenWorkflowExecutionsCommand(args);
58
+ };
59
+ SWF.prototype.countOpenWorkflowExecutions = function (args, optionsOrCb, cb) {
60
+ var command = new CountOpenWorkflowExecutionsCommand(args);
56
61
  if (typeof optionsOrCb === "function") {
57
62
  this.send(command, optionsOrCb);
58
63
  }
59
64
  else if (typeof cb === "function") {
60
65
  if (typeof optionsOrCb !== "object")
61
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
62
67
  this.send(command, optionsOrCb || {}, cb);
63
68
  }
64
69
  else {
65
70
  return this.send(command, optionsOrCb);
66
71
  }
67
- }
68
- countPendingActivityTasks(args, optionsOrCb, cb) {
69
- const command = new CountPendingActivityTasksCommand(args);
72
+ };
73
+ SWF.prototype.countPendingActivityTasks = function (args, optionsOrCb, cb) {
74
+ var command = new CountPendingActivityTasksCommand(args);
70
75
  if (typeof optionsOrCb === "function") {
71
76
  this.send(command, optionsOrCb);
72
77
  }
73
78
  else if (typeof cb === "function") {
74
79
  if (typeof optionsOrCb !== "object")
75
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
76
81
  this.send(command, optionsOrCb || {}, cb);
77
82
  }
78
83
  else {
79
84
  return this.send(command, optionsOrCb);
80
85
  }
81
- }
82
- countPendingDecisionTasks(args, optionsOrCb, cb) {
83
- const command = new CountPendingDecisionTasksCommand(args);
86
+ };
87
+ SWF.prototype.countPendingDecisionTasks = function (args, optionsOrCb, cb) {
88
+ var command = new CountPendingDecisionTasksCommand(args);
84
89
  if (typeof optionsOrCb === "function") {
85
90
  this.send(command, optionsOrCb);
86
91
  }
87
92
  else if (typeof cb === "function") {
88
93
  if (typeof optionsOrCb !== "object")
89
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
90
95
  this.send(command, optionsOrCb || {}, cb);
91
96
  }
92
97
  else {
93
98
  return this.send(command, optionsOrCb);
94
99
  }
95
- }
96
- deprecateActivityType(args, optionsOrCb, cb) {
97
- const command = new DeprecateActivityTypeCommand(args);
100
+ };
101
+ SWF.prototype.deprecateActivityType = function (args, optionsOrCb, cb) {
102
+ var command = new DeprecateActivityTypeCommand(args);
98
103
  if (typeof optionsOrCb === "function") {
99
104
  this.send(command, optionsOrCb);
100
105
  }
101
106
  else if (typeof cb === "function") {
102
107
  if (typeof optionsOrCb !== "object")
103
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
104
109
  this.send(command, optionsOrCb || {}, cb);
105
110
  }
106
111
  else {
107
112
  return this.send(command, optionsOrCb);
108
113
  }
109
- }
110
- deprecateDomain(args, optionsOrCb, cb) {
111
- const command = new DeprecateDomainCommand(args);
114
+ };
115
+ SWF.prototype.deprecateDomain = function (args, optionsOrCb, cb) {
116
+ var command = new DeprecateDomainCommand(args);
112
117
  if (typeof optionsOrCb === "function") {
113
118
  this.send(command, optionsOrCb);
114
119
  }
115
120
  else if (typeof cb === "function") {
116
121
  if (typeof optionsOrCb !== "object")
117
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
118
123
  this.send(command, optionsOrCb || {}, cb);
119
124
  }
120
125
  else {
121
126
  return this.send(command, optionsOrCb);
122
127
  }
123
- }
124
- deprecateWorkflowType(args, optionsOrCb, cb) {
125
- const command = new DeprecateWorkflowTypeCommand(args);
128
+ };
129
+ SWF.prototype.deprecateWorkflowType = function (args, optionsOrCb, cb) {
130
+ var command = new DeprecateWorkflowTypeCommand(args);
126
131
  if (typeof optionsOrCb === "function") {
127
132
  this.send(command, optionsOrCb);
128
133
  }
129
134
  else if (typeof cb === "function") {
130
135
  if (typeof optionsOrCb !== "object")
131
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
132
137
  this.send(command, optionsOrCb || {}, cb);
133
138
  }
134
139
  else {
135
140
  return this.send(command, optionsOrCb);
136
141
  }
137
- }
138
- describeActivityType(args, optionsOrCb, cb) {
139
- const command = new DescribeActivityTypeCommand(args);
142
+ };
143
+ SWF.prototype.describeActivityType = function (args, optionsOrCb, cb) {
144
+ var command = new DescribeActivityTypeCommand(args);
140
145
  if (typeof optionsOrCb === "function") {
141
146
  this.send(command, optionsOrCb);
142
147
  }
143
148
  else if (typeof cb === "function") {
144
149
  if (typeof optionsOrCb !== "object")
145
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
146
151
  this.send(command, optionsOrCb || {}, cb);
147
152
  }
148
153
  else {
149
154
  return this.send(command, optionsOrCb);
150
155
  }
151
- }
152
- describeDomain(args, optionsOrCb, cb) {
153
- const command = new DescribeDomainCommand(args);
156
+ };
157
+ SWF.prototype.describeDomain = function (args, optionsOrCb, cb) {
158
+ var command = new DescribeDomainCommand(args);
154
159
  if (typeof optionsOrCb === "function") {
155
160
  this.send(command, optionsOrCb);
156
161
  }
157
162
  else if (typeof cb === "function") {
158
163
  if (typeof optionsOrCb !== "object")
159
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
160
165
  this.send(command, optionsOrCb || {}, cb);
161
166
  }
162
167
  else {
163
168
  return this.send(command, optionsOrCb);
164
169
  }
165
- }
166
- describeWorkflowExecution(args, optionsOrCb, cb) {
167
- const command = new DescribeWorkflowExecutionCommand(args);
170
+ };
171
+ SWF.prototype.describeWorkflowExecution = function (args, optionsOrCb, cb) {
172
+ var command = new DescribeWorkflowExecutionCommand(args);
168
173
  if (typeof optionsOrCb === "function") {
169
174
  this.send(command, optionsOrCb);
170
175
  }
171
176
  else if (typeof cb === "function") {
172
177
  if (typeof optionsOrCb !== "object")
173
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
174
179
  this.send(command, optionsOrCb || {}, cb);
175
180
  }
176
181
  else {
177
182
  return this.send(command, optionsOrCb);
178
183
  }
179
- }
180
- describeWorkflowType(args, optionsOrCb, cb) {
181
- const command = new DescribeWorkflowTypeCommand(args);
184
+ };
185
+ SWF.prototype.describeWorkflowType = function (args, optionsOrCb, cb) {
186
+ var command = new DescribeWorkflowTypeCommand(args);
182
187
  if (typeof optionsOrCb === "function") {
183
188
  this.send(command, optionsOrCb);
184
189
  }
185
190
  else if (typeof cb === "function") {
186
191
  if (typeof optionsOrCb !== "object")
187
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
188
193
  this.send(command, optionsOrCb || {}, cb);
189
194
  }
190
195
  else {
191
196
  return this.send(command, optionsOrCb);
192
197
  }
193
- }
194
- getWorkflowExecutionHistory(args, optionsOrCb, cb) {
195
- const command = new GetWorkflowExecutionHistoryCommand(args);
198
+ };
199
+ SWF.prototype.getWorkflowExecutionHistory = function (args, optionsOrCb, cb) {
200
+ var command = new GetWorkflowExecutionHistoryCommand(args);
196
201
  if (typeof optionsOrCb === "function") {
197
202
  this.send(command, optionsOrCb);
198
203
  }
199
204
  else if (typeof cb === "function") {
200
205
  if (typeof optionsOrCb !== "object")
201
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
206
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
202
207
  this.send(command, optionsOrCb || {}, cb);
203
208
  }
204
209
  else {
205
210
  return this.send(command, optionsOrCb);
206
211
  }
207
- }
208
- listActivityTypes(args, optionsOrCb, cb) {
209
- const command = new ListActivityTypesCommand(args);
212
+ };
213
+ SWF.prototype.listActivityTypes = function (args, optionsOrCb, cb) {
214
+ var command = new ListActivityTypesCommand(args);
210
215
  if (typeof optionsOrCb === "function") {
211
216
  this.send(command, optionsOrCb);
212
217
  }
213
218
  else if (typeof cb === "function") {
214
219
  if (typeof optionsOrCb !== "object")
215
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
220
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
216
221
  this.send(command, optionsOrCb || {}, cb);
217
222
  }
218
223
  else {
219
224
  return this.send(command, optionsOrCb);
220
225
  }
221
- }
222
- listClosedWorkflowExecutions(args, optionsOrCb, cb) {
223
- const command = new ListClosedWorkflowExecutionsCommand(args);
226
+ };
227
+ SWF.prototype.listClosedWorkflowExecutions = function (args, optionsOrCb, cb) {
228
+ var command = new ListClosedWorkflowExecutionsCommand(args);
224
229
  if (typeof optionsOrCb === "function") {
225
230
  this.send(command, optionsOrCb);
226
231
  }
227
232
  else if (typeof cb === "function") {
228
233
  if (typeof optionsOrCb !== "object")
229
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
234
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
230
235
  this.send(command, optionsOrCb || {}, cb);
231
236
  }
232
237
  else {
233
238
  return this.send(command, optionsOrCb);
234
239
  }
235
- }
236
- listDomains(args, optionsOrCb, cb) {
237
- const command = new ListDomainsCommand(args);
240
+ };
241
+ SWF.prototype.listDomains = function (args, optionsOrCb, cb) {
242
+ var command = new ListDomainsCommand(args);
238
243
  if (typeof optionsOrCb === "function") {
239
244
  this.send(command, optionsOrCb);
240
245
  }
241
246
  else if (typeof cb === "function") {
242
247
  if (typeof optionsOrCb !== "object")
243
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
248
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
244
249
  this.send(command, optionsOrCb || {}, cb);
245
250
  }
246
251
  else {
247
252
  return this.send(command, optionsOrCb);
248
253
  }
249
- }
250
- listOpenWorkflowExecutions(args, optionsOrCb, cb) {
251
- const command = new ListOpenWorkflowExecutionsCommand(args);
254
+ };
255
+ SWF.prototype.listOpenWorkflowExecutions = function (args, optionsOrCb, cb) {
256
+ var command = new ListOpenWorkflowExecutionsCommand(args);
252
257
  if (typeof optionsOrCb === "function") {
253
258
  this.send(command, optionsOrCb);
254
259
  }
255
260
  else if (typeof cb === "function") {
256
261
  if (typeof optionsOrCb !== "object")
257
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
262
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
258
263
  this.send(command, optionsOrCb || {}, cb);
259
264
  }
260
265
  else {
261
266
  return this.send(command, optionsOrCb);
262
267
  }
263
- }
264
- listTagsForResource(args, optionsOrCb, cb) {
265
- const command = new ListTagsForResourceCommand(args);
268
+ };
269
+ SWF.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
270
+ var command = new ListTagsForResourceCommand(args);
266
271
  if (typeof optionsOrCb === "function") {
267
272
  this.send(command, optionsOrCb);
268
273
  }
269
274
  else if (typeof cb === "function") {
270
275
  if (typeof optionsOrCb !== "object")
271
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
276
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
272
277
  this.send(command, optionsOrCb || {}, cb);
273
278
  }
274
279
  else {
275
280
  return this.send(command, optionsOrCb);
276
281
  }
277
- }
278
- listWorkflowTypes(args, optionsOrCb, cb) {
279
- const command = new ListWorkflowTypesCommand(args);
282
+ };
283
+ SWF.prototype.listWorkflowTypes = function (args, optionsOrCb, cb) {
284
+ var command = new ListWorkflowTypesCommand(args);
280
285
  if (typeof optionsOrCb === "function") {
281
286
  this.send(command, optionsOrCb);
282
287
  }
283
288
  else if (typeof cb === "function") {
284
289
  if (typeof optionsOrCb !== "object")
285
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
290
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
286
291
  this.send(command, optionsOrCb || {}, cb);
287
292
  }
288
293
  else {
289
294
  return this.send(command, optionsOrCb);
290
295
  }
291
- }
292
- pollForActivityTask(args, optionsOrCb, cb) {
293
- const command = new PollForActivityTaskCommand(args);
296
+ };
297
+ SWF.prototype.pollForActivityTask = function (args, optionsOrCb, cb) {
298
+ var command = new PollForActivityTaskCommand(args);
294
299
  if (typeof optionsOrCb === "function") {
295
300
  this.send(command, optionsOrCb);
296
301
  }
297
302
  else if (typeof cb === "function") {
298
303
  if (typeof optionsOrCb !== "object")
299
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
300
305
  this.send(command, optionsOrCb || {}, cb);
301
306
  }
302
307
  else {
303
308
  return this.send(command, optionsOrCb);
304
309
  }
305
- }
306
- pollForDecisionTask(args, optionsOrCb, cb) {
307
- const command = new PollForDecisionTaskCommand(args);
310
+ };
311
+ SWF.prototype.pollForDecisionTask = function (args, optionsOrCb, cb) {
312
+ var command = new PollForDecisionTaskCommand(args);
308
313
  if (typeof optionsOrCb === "function") {
309
314
  this.send(command, optionsOrCb);
310
315
  }
311
316
  else if (typeof cb === "function") {
312
317
  if (typeof optionsOrCb !== "object")
313
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
318
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
314
319
  this.send(command, optionsOrCb || {}, cb);
315
320
  }
316
321
  else {
317
322
  return this.send(command, optionsOrCb);
318
323
  }
319
- }
320
- recordActivityTaskHeartbeat(args, optionsOrCb, cb) {
321
- const command = new RecordActivityTaskHeartbeatCommand(args);
324
+ };
325
+ SWF.prototype.recordActivityTaskHeartbeat = function (args, optionsOrCb, cb) {
326
+ var command = new RecordActivityTaskHeartbeatCommand(args);
322
327
  if (typeof optionsOrCb === "function") {
323
328
  this.send(command, optionsOrCb);
324
329
  }
325
330
  else if (typeof cb === "function") {
326
331
  if (typeof optionsOrCb !== "object")
327
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
328
333
  this.send(command, optionsOrCb || {}, cb);
329
334
  }
330
335
  else {
331
336
  return this.send(command, optionsOrCb);
332
337
  }
333
- }
334
- registerActivityType(args, optionsOrCb, cb) {
335
- const command = new RegisterActivityTypeCommand(args);
338
+ };
339
+ SWF.prototype.registerActivityType = function (args, optionsOrCb, cb) {
340
+ var command = new RegisterActivityTypeCommand(args);
336
341
  if (typeof optionsOrCb === "function") {
337
342
  this.send(command, optionsOrCb);
338
343
  }
339
344
  else if (typeof cb === "function") {
340
345
  if (typeof optionsOrCb !== "object")
341
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
346
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
342
347
  this.send(command, optionsOrCb || {}, cb);
343
348
  }
344
349
  else {
345
350
  return this.send(command, optionsOrCb);
346
351
  }
347
- }
348
- registerDomain(args, optionsOrCb, cb) {
349
- const command = new RegisterDomainCommand(args);
352
+ };
353
+ SWF.prototype.registerDomain = function (args, optionsOrCb, cb) {
354
+ var command = new RegisterDomainCommand(args);
350
355
  if (typeof optionsOrCb === "function") {
351
356
  this.send(command, optionsOrCb);
352
357
  }
353
358
  else if (typeof cb === "function") {
354
359
  if (typeof optionsOrCb !== "object")
355
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
360
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
356
361
  this.send(command, optionsOrCb || {}, cb);
357
362
  }
358
363
  else {
359
364
  return this.send(command, optionsOrCb);
360
365
  }
361
- }
362
- registerWorkflowType(args, optionsOrCb, cb) {
363
- const command = new RegisterWorkflowTypeCommand(args);
366
+ };
367
+ SWF.prototype.registerWorkflowType = function (args, optionsOrCb, cb) {
368
+ var command = new RegisterWorkflowTypeCommand(args);
364
369
  if (typeof optionsOrCb === "function") {
365
370
  this.send(command, optionsOrCb);
366
371
  }
367
372
  else if (typeof cb === "function") {
368
373
  if (typeof optionsOrCb !== "object")
369
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
374
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
370
375
  this.send(command, optionsOrCb || {}, cb);
371
376
  }
372
377
  else {
373
378
  return this.send(command, optionsOrCb);
374
379
  }
375
- }
376
- requestCancelWorkflowExecution(args, optionsOrCb, cb) {
377
- const command = new RequestCancelWorkflowExecutionCommand(args);
380
+ };
381
+ SWF.prototype.requestCancelWorkflowExecution = function (args, optionsOrCb, cb) {
382
+ var command = new RequestCancelWorkflowExecutionCommand(args);
378
383
  if (typeof optionsOrCb === "function") {
379
384
  this.send(command, optionsOrCb);
380
385
  }
381
386
  else if (typeof cb === "function") {
382
387
  if (typeof optionsOrCb !== "object")
383
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
388
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
384
389
  this.send(command, optionsOrCb || {}, cb);
385
390
  }
386
391
  else {
387
392
  return this.send(command, optionsOrCb);
388
393
  }
389
- }
390
- respondActivityTaskCanceled(args, optionsOrCb, cb) {
391
- const command = new RespondActivityTaskCanceledCommand(args);
394
+ };
395
+ SWF.prototype.respondActivityTaskCanceled = function (args, optionsOrCb, cb) {
396
+ var command = new RespondActivityTaskCanceledCommand(args);
392
397
  if (typeof optionsOrCb === "function") {
393
398
  this.send(command, optionsOrCb);
394
399
  }
395
400
  else if (typeof cb === "function") {
396
401
  if (typeof optionsOrCb !== "object")
397
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
402
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
398
403
  this.send(command, optionsOrCb || {}, cb);
399
404
  }
400
405
  else {
401
406
  return this.send(command, optionsOrCb);
402
407
  }
403
- }
404
- respondActivityTaskCompleted(args, optionsOrCb, cb) {
405
- const command = new RespondActivityTaskCompletedCommand(args);
408
+ };
409
+ SWF.prototype.respondActivityTaskCompleted = function (args, optionsOrCb, cb) {
410
+ var command = new RespondActivityTaskCompletedCommand(args);
406
411
  if (typeof optionsOrCb === "function") {
407
412
  this.send(command, optionsOrCb);
408
413
  }
409
414
  else if (typeof cb === "function") {
410
415
  if (typeof optionsOrCb !== "object")
411
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
416
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
412
417
  this.send(command, optionsOrCb || {}, cb);
413
418
  }
414
419
  else {
415
420
  return this.send(command, optionsOrCb);
416
421
  }
417
- }
418
- respondActivityTaskFailed(args, optionsOrCb, cb) {
419
- const command = new RespondActivityTaskFailedCommand(args);
422
+ };
423
+ SWF.prototype.respondActivityTaskFailed = function (args, optionsOrCb, cb) {
424
+ var command = new RespondActivityTaskFailedCommand(args);
420
425
  if (typeof optionsOrCb === "function") {
421
426
  this.send(command, optionsOrCb);
422
427
  }
423
428
  else if (typeof cb === "function") {
424
429
  if (typeof optionsOrCb !== "object")
425
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
430
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
426
431
  this.send(command, optionsOrCb || {}, cb);
427
432
  }
428
433
  else {
429
434
  return this.send(command, optionsOrCb);
430
435
  }
431
- }
432
- respondDecisionTaskCompleted(args, optionsOrCb, cb) {
433
- const command = new RespondDecisionTaskCompletedCommand(args);
436
+ };
437
+ SWF.prototype.respondDecisionTaskCompleted = function (args, optionsOrCb, cb) {
438
+ var command = new RespondDecisionTaskCompletedCommand(args);
434
439
  if (typeof optionsOrCb === "function") {
435
440
  this.send(command, optionsOrCb);
436
441
  }
437
442
  else if (typeof cb === "function") {
438
443
  if (typeof optionsOrCb !== "object")
439
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
444
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
440
445
  this.send(command, optionsOrCb || {}, cb);
441
446
  }
442
447
  else {
443
448
  return this.send(command, optionsOrCb);
444
449
  }
445
- }
446
- signalWorkflowExecution(args, optionsOrCb, cb) {
447
- const command = new SignalWorkflowExecutionCommand(args);
450
+ };
451
+ SWF.prototype.signalWorkflowExecution = function (args, optionsOrCb, cb) {
452
+ var command = new SignalWorkflowExecutionCommand(args);
448
453
  if (typeof optionsOrCb === "function") {
449
454
  this.send(command, optionsOrCb);
450
455
  }
451
456
  else if (typeof cb === "function") {
452
457
  if (typeof optionsOrCb !== "object")
453
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
458
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
454
459
  this.send(command, optionsOrCb || {}, cb);
455
460
  }
456
461
  else {
457
462
  return this.send(command, optionsOrCb);
458
463
  }
459
- }
460
- startWorkflowExecution(args, optionsOrCb, cb) {
461
- const command = new StartWorkflowExecutionCommand(args);
464
+ };
465
+ SWF.prototype.startWorkflowExecution = function (args, optionsOrCb, cb) {
466
+ var command = new StartWorkflowExecutionCommand(args);
462
467
  if (typeof optionsOrCb === "function") {
463
468
  this.send(command, optionsOrCb);
464
469
  }
465
470
  else if (typeof cb === "function") {
466
471
  if (typeof optionsOrCb !== "object")
467
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
472
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
468
473
  this.send(command, optionsOrCb || {}, cb);
469
474
  }
470
475
  else {
471
476
  return this.send(command, optionsOrCb);
472
477
  }
473
- }
474
- tagResource(args, optionsOrCb, cb) {
475
- const command = new TagResourceCommand(args);
478
+ };
479
+ SWF.prototype.tagResource = function (args, optionsOrCb, cb) {
480
+ var command = new TagResourceCommand(args);
476
481
  if (typeof optionsOrCb === "function") {
477
482
  this.send(command, optionsOrCb);
478
483
  }
479
484
  else if (typeof cb === "function") {
480
485
  if (typeof optionsOrCb !== "object")
481
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
486
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
482
487
  this.send(command, optionsOrCb || {}, cb);
483
488
  }
484
489
  else {
485
490
  return this.send(command, optionsOrCb);
486
491
  }
487
- }
488
- terminateWorkflowExecution(args, optionsOrCb, cb) {
489
- const command = new TerminateWorkflowExecutionCommand(args);
492
+ };
493
+ SWF.prototype.terminateWorkflowExecution = function (args, optionsOrCb, cb) {
494
+ var command = new TerminateWorkflowExecutionCommand(args);
490
495
  if (typeof optionsOrCb === "function") {
491
496
  this.send(command, optionsOrCb);
492
497
  }
493
498
  else if (typeof cb === "function") {
494
499
  if (typeof optionsOrCb !== "object")
495
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
500
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
496
501
  this.send(command, optionsOrCb || {}, cb);
497
502
  }
498
503
  else {
499
504
  return this.send(command, optionsOrCb);
500
505
  }
501
- }
502
- undeprecateActivityType(args, optionsOrCb, cb) {
503
- const command = new UndeprecateActivityTypeCommand(args);
506
+ };
507
+ SWF.prototype.undeprecateActivityType = function (args, optionsOrCb, cb) {
508
+ var command = new UndeprecateActivityTypeCommand(args);
504
509
  if (typeof optionsOrCb === "function") {
505
510
  this.send(command, optionsOrCb);
506
511
  }
507
512
  else if (typeof cb === "function") {
508
513
  if (typeof optionsOrCb !== "object")
509
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
514
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
510
515
  this.send(command, optionsOrCb || {}, cb);
511
516
  }
512
517
  else {
513
518
  return this.send(command, optionsOrCb);
514
519
  }
515
- }
516
- undeprecateDomain(args, optionsOrCb, cb) {
517
- const command = new UndeprecateDomainCommand(args);
520
+ };
521
+ SWF.prototype.undeprecateDomain = function (args, optionsOrCb, cb) {
522
+ var command = new UndeprecateDomainCommand(args);
518
523
  if (typeof optionsOrCb === "function") {
519
524
  this.send(command, optionsOrCb);
520
525
  }
521
526
  else if (typeof cb === "function") {
522
527
  if (typeof optionsOrCb !== "object")
523
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
528
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
524
529
  this.send(command, optionsOrCb || {}, cb);
525
530
  }
526
531
  else {
527
532
  return this.send(command, optionsOrCb);
528
533
  }
529
- }
530
- undeprecateWorkflowType(args, optionsOrCb, cb) {
531
- const command = new UndeprecateWorkflowTypeCommand(args);
534
+ };
535
+ SWF.prototype.undeprecateWorkflowType = function (args, optionsOrCb, cb) {
536
+ var command = new UndeprecateWorkflowTypeCommand(args);
532
537
  if (typeof optionsOrCb === "function") {
533
538
  this.send(command, optionsOrCb);
534
539
  }
535
540
  else if (typeof cb === "function") {
536
541
  if (typeof optionsOrCb !== "object")
537
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
542
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
538
543
  this.send(command, optionsOrCb || {}, cb);
539
544
  }
540
545
  else {
541
546
  return this.send(command, optionsOrCb);
542
547
  }
543
- }
544
- untagResource(args, optionsOrCb, cb) {
545
- const command = new UntagResourceCommand(args);
548
+ };
549
+ SWF.prototype.untagResource = function (args, optionsOrCb, cb) {
550
+ var command = new UntagResourceCommand(args);
546
551
  if (typeof optionsOrCb === "function") {
547
552
  this.send(command, optionsOrCb);
548
553
  }
549
554
  else if (typeof cb === "function") {
550
555
  if (typeof optionsOrCb !== "object")
551
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
556
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
552
557
  this.send(command, optionsOrCb || {}, cb);
553
558
  }
554
559
  else {
555
560
  return this.send(command, optionsOrCb);
556
561
  }
557
- }
558
- }
562
+ };
563
+ return SWF;
564
+ }(SWFClient));
565
+ export { SWF };