@aws-sdk/client-swf 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_0.js +2 -2
- package/dist-es/SWF.js +157 -150
- package/dist-es/SWFClient.js +28 -22
- package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js +28 -21
- package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js +28 -21
- package/dist-es/commands/CountPendingActivityTasksCommand.js +28 -21
- package/dist-es/commands/CountPendingDecisionTasksCommand.js +28 -21
- package/dist-es/commands/DeprecateActivityTypeCommand.js +29 -22
- package/dist-es/commands/DeprecateDomainCommand.js +29 -22
- package/dist-es/commands/DeprecateWorkflowTypeCommand.js +29 -22
- package/dist-es/commands/DescribeActivityTypeCommand.js +28 -21
- package/dist-es/commands/DescribeDomainCommand.js +28 -21
- package/dist-es/commands/DescribeWorkflowExecutionCommand.js +28 -21
- package/dist-es/commands/DescribeWorkflowTypeCommand.js +28 -21
- package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js +28 -21
- package/dist-es/commands/ListActivityTypesCommand.js +28 -21
- package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js +28 -21
- package/dist-es/commands/ListDomainsCommand.js +28 -21
- package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ListWorkflowTypesCommand.js +28 -21
- package/dist-es/commands/PollForActivityTaskCommand.js +28 -21
- package/dist-es/commands/PollForDecisionTaskCommand.js +28 -21
- package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js +28 -21
- package/dist-es/commands/RegisterActivityTypeCommand.js +29 -22
- package/dist-es/commands/RegisterDomainCommand.js +29 -22
- package/dist-es/commands/RegisterWorkflowTypeCommand.js +29 -22
- package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js +29 -22
- package/dist-es/commands/RespondActivityTaskCanceledCommand.js +29 -22
- package/dist-es/commands/RespondActivityTaskCompletedCommand.js +29 -22
- package/dist-es/commands/RespondActivityTaskFailedCommand.js +29 -22
- package/dist-es/commands/RespondDecisionTaskCompletedCommand.js +29 -22
- package/dist-es/commands/SignalWorkflowExecutionCommand.js +29 -22
- package/dist-es/commands/StartWorkflowExecutionCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/TerminateWorkflowExecutionCommand.js +29 -22
- package/dist-es/commands/UndeprecateActivityTypeCommand.js +29 -22
- package/dist-es/commands/UndeprecateDomainCommand.js +29 -22
- package/dist-es/commands/UndeprecateWorkflowTypeCommand.js +29 -22
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SWFServiceException.js +10 -5
- package/dist-es/models/models_0.js +252 -533
- package/dist-es/pagination/GetWorkflowExecutionHistoryPaginator.js +68 -25
- package/dist-es/pagination/ListActivityTypesPaginator.js +68 -25
- package/dist-es/pagination/ListClosedWorkflowExecutionsPaginator.js +68 -25
- package/dist-es/pagination/ListDomainsPaginator.js +68 -25
- package/dist-es/pagination/ListOpenWorkflowExecutionsPaginator.js +68 -25
- package/dist-es/pagination/ListWorkflowTypesPaginator.js +68 -25
- package/dist-es/pagination/PollForDecisionTaskPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_0.js +3017 -2433
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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 };
|