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