@aws-sdk/client-connectcampaigns 3.315.0 → 3.319.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConnectCampaigns = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateCampaignCommand_1 = require("./commands/CreateCampaignCommand");
|
|
5
6
|
const DeleteCampaignCommand_1 = require("./commands/DeleteCampaignCommand");
|
|
6
7
|
const DeleteConnectInstanceConfigCommand_1 = require("./commands/DeleteConnectInstanceConfigCommand");
|
|
@@ -24,314 +25,31 @@ const UpdateCampaignDialerConfigCommand_1 = require("./commands/UpdateCampaignDi
|
|
|
24
25
|
const UpdateCampaignNameCommand_1 = require("./commands/UpdateCampaignNameCommand");
|
|
25
26
|
const UpdateCampaignOutboundCallConfigCommand_1 = require("./commands/UpdateCampaignOutboundCallConfigCommand");
|
|
26
27
|
const ConnectCampaignsClient_1 = require("./ConnectCampaignsClient");
|
|
28
|
+
const commands = {
|
|
29
|
+
CreateCampaignCommand: CreateCampaignCommand_1.CreateCampaignCommand,
|
|
30
|
+
DeleteCampaignCommand: DeleteCampaignCommand_1.DeleteCampaignCommand,
|
|
31
|
+
DeleteConnectInstanceConfigCommand: DeleteConnectInstanceConfigCommand_1.DeleteConnectInstanceConfigCommand,
|
|
32
|
+
DeleteInstanceOnboardingJobCommand: DeleteInstanceOnboardingJobCommand_1.DeleteInstanceOnboardingJobCommand,
|
|
33
|
+
DescribeCampaignCommand: DescribeCampaignCommand_1.DescribeCampaignCommand,
|
|
34
|
+
GetCampaignStateCommand: GetCampaignStateCommand_1.GetCampaignStateCommand,
|
|
35
|
+
GetCampaignStateBatchCommand: GetCampaignStateBatchCommand_1.GetCampaignStateBatchCommand,
|
|
36
|
+
GetConnectInstanceConfigCommand: GetConnectInstanceConfigCommand_1.GetConnectInstanceConfigCommand,
|
|
37
|
+
GetInstanceOnboardingJobStatusCommand: GetInstanceOnboardingJobStatusCommand_1.GetInstanceOnboardingJobStatusCommand,
|
|
38
|
+
ListCampaignsCommand: ListCampaignsCommand_1.ListCampaignsCommand,
|
|
39
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
40
|
+
PauseCampaignCommand: PauseCampaignCommand_1.PauseCampaignCommand,
|
|
41
|
+
PutDialRequestBatchCommand: PutDialRequestBatchCommand_1.PutDialRequestBatchCommand,
|
|
42
|
+
ResumeCampaignCommand: ResumeCampaignCommand_1.ResumeCampaignCommand,
|
|
43
|
+
StartCampaignCommand: StartCampaignCommand_1.StartCampaignCommand,
|
|
44
|
+
StartInstanceOnboardingJobCommand: StartInstanceOnboardingJobCommand_1.StartInstanceOnboardingJobCommand,
|
|
45
|
+
StopCampaignCommand: StopCampaignCommand_1.StopCampaignCommand,
|
|
46
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
47
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
48
|
+
UpdateCampaignDialerConfigCommand: UpdateCampaignDialerConfigCommand_1.UpdateCampaignDialerConfigCommand,
|
|
49
|
+
UpdateCampaignNameCommand: UpdateCampaignNameCommand_1.UpdateCampaignNameCommand,
|
|
50
|
+
UpdateCampaignOutboundCallConfigCommand: UpdateCampaignOutboundCallConfigCommand_1.UpdateCampaignOutboundCallConfigCommand,
|
|
51
|
+
};
|
|
27
52
|
class ConnectCampaigns extends ConnectCampaignsClient_1.ConnectCampaignsClient {
|
|
28
|
-
createCampaign(args, optionsOrCb, cb) {
|
|
29
|
-
const command = new CreateCampaignCommand_1.CreateCampaignCommand(args);
|
|
30
|
-
if (typeof optionsOrCb === "function") {
|
|
31
|
-
this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
else if (typeof cb === "function") {
|
|
34
|
-
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
36
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
deleteCampaign(args, optionsOrCb, cb) {
|
|
43
|
-
const command = new DeleteCampaignCommand_1.DeleteCampaignCommand(args);
|
|
44
|
-
if (typeof optionsOrCb === "function") {
|
|
45
|
-
this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
else if (typeof cb === "function") {
|
|
48
|
-
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
50
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
deleteConnectInstanceConfig(args, optionsOrCb, cb) {
|
|
57
|
-
const command = new DeleteConnectInstanceConfigCommand_1.DeleteConnectInstanceConfigCommand(args);
|
|
58
|
-
if (typeof optionsOrCb === "function") {
|
|
59
|
-
this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
else if (typeof cb === "function") {
|
|
62
|
-
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
64
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
deleteInstanceOnboardingJob(args, optionsOrCb, cb) {
|
|
71
|
-
const command = new DeleteInstanceOnboardingJobCommand_1.DeleteInstanceOnboardingJobCommand(args);
|
|
72
|
-
if (typeof optionsOrCb === "function") {
|
|
73
|
-
this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
else if (typeof cb === "function") {
|
|
76
|
-
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
78
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return this.send(command, optionsOrCb);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
describeCampaign(args, optionsOrCb, cb) {
|
|
85
|
-
const command = new DescribeCampaignCommand_1.DescribeCampaignCommand(args);
|
|
86
|
-
if (typeof optionsOrCb === "function") {
|
|
87
|
-
this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
else if (typeof cb === "function") {
|
|
90
|
-
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
92
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
return this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
getCampaignState(args, optionsOrCb, cb) {
|
|
99
|
-
const command = new GetCampaignStateCommand_1.GetCampaignStateCommand(args);
|
|
100
|
-
if (typeof optionsOrCb === "function") {
|
|
101
|
-
this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
else if (typeof cb === "function") {
|
|
104
|
-
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
106
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
return this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
getCampaignStateBatch(args, optionsOrCb, cb) {
|
|
113
|
-
const command = new GetCampaignStateBatchCommand_1.GetCampaignStateBatchCommand(args);
|
|
114
|
-
if (typeof optionsOrCb === "function") {
|
|
115
|
-
this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
else if (typeof cb === "function") {
|
|
118
|
-
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
120
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
return this.send(command, optionsOrCb);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
getConnectInstanceConfig(args, optionsOrCb, cb) {
|
|
127
|
-
const command = new GetConnectInstanceConfigCommand_1.GetConnectInstanceConfigCommand(args);
|
|
128
|
-
if (typeof optionsOrCb === "function") {
|
|
129
|
-
this.send(command, optionsOrCb);
|
|
130
|
-
}
|
|
131
|
-
else if (typeof cb === "function") {
|
|
132
|
-
if (typeof optionsOrCb !== "object")
|
|
133
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
134
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
return this.send(command, optionsOrCb);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
getInstanceOnboardingJobStatus(args, optionsOrCb, cb) {
|
|
141
|
-
const command = new GetInstanceOnboardingJobStatusCommand_1.GetInstanceOnboardingJobStatusCommand(args);
|
|
142
|
-
if (typeof optionsOrCb === "function") {
|
|
143
|
-
this.send(command, optionsOrCb);
|
|
144
|
-
}
|
|
145
|
-
else if (typeof cb === "function") {
|
|
146
|
-
if (typeof optionsOrCb !== "object")
|
|
147
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
148
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
return this.send(command, optionsOrCb);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
listCampaigns(args, optionsOrCb, cb) {
|
|
155
|
-
const command = new ListCampaignsCommand_1.ListCampaignsCommand(args);
|
|
156
|
-
if (typeof optionsOrCb === "function") {
|
|
157
|
-
this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
else if (typeof cb === "function") {
|
|
160
|
-
if (typeof optionsOrCb !== "object")
|
|
161
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
162
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
return this.send(command, optionsOrCb);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
169
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
170
|
-
if (typeof optionsOrCb === "function") {
|
|
171
|
-
this.send(command, optionsOrCb);
|
|
172
|
-
}
|
|
173
|
-
else if (typeof cb === "function") {
|
|
174
|
-
if (typeof optionsOrCb !== "object")
|
|
175
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
176
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
return this.send(command, optionsOrCb);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
pauseCampaign(args, optionsOrCb, cb) {
|
|
183
|
-
const command = new PauseCampaignCommand_1.PauseCampaignCommand(args);
|
|
184
|
-
if (typeof optionsOrCb === "function") {
|
|
185
|
-
this.send(command, optionsOrCb);
|
|
186
|
-
}
|
|
187
|
-
else if (typeof cb === "function") {
|
|
188
|
-
if (typeof optionsOrCb !== "object")
|
|
189
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
190
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
return this.send(command, optionsOrCb);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
putDialRequestBatch(args, optionsOrCb, cb) {
|
|
197
|
-
const command = new PutDialRequestBatchCommand_1.PutDialRequestBatchCommand(args);
|
|
198
|
-
if (typeof optionsOrCb === "function") {
|
|
199
|
-
this.send(command, optionsOrCb);
|
|
200
|
-
}
|
|
201
|
-
else if (typeof cb === "function") {
|
|
202
|
-
if (typeof optionsOrCb !== "object")
|
|
203
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
204
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
return this.send(command, optionsOrCb);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
resumeCampaign(args, optionsOrCb, cb) {
|
|
211
|
-
const command = new ResumeCampaignCommand_1.ResumeCampaignCommand(args);
|
|
212
|
-
if (typeof optionsOrCb === "function") {
|
|
213
|
-
this.send(command, optionsOrCb);
|
|
214
|
-
}
|
|
215
|
-
else if (typeof cb === "function") {
|
|
216
|
-
if (typeof optionsOrCb !== "object")
|
|
217
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
218
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
219
|
-
}
|
|
220
|
-
else {
|
|
221
|
-
return this.send(command, optionsOrCb);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
startCampaign(args, optionsOrCb, cb) {
|
|
225
|
-
const command = new StartCampaignCommand_1.StartCampaignCommand(args);
|
|
226
|
-
if (typeof optionsOrCb === "function") {
|
|
227
|
-
this.send(command, optionsOrCb);
|
|
228
|
-
}
|
|
229
|
-
else if (typeof cb === "function") {
|
|
230
|
-
if (typeof optionsOrCb !== "object")
|
|
231
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
232
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
return this.send(command, optionsOrCb);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
startInstanceOnboardingJob(args, optionsOrCb, cb) {
|
|
239
|
-
const command = new StartInstanceOnboardingJobCommand_1.StartInstanceOnboardingJobCommand(args);
|
|
240
|
-
if (typeof optionsOrCb === "function") {
|
|
241
|
-
this.send(command, optionsOrCb);
|
|
242
|
-
}
|
|
243
|
-
else if (typeof cb === "function") {
|
|
244
|
-
if (typeof optionsOrCb !== "object")
|
|
245
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
246
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
247
|
-
}
|
|
248
|
-
else {
|
|
249
|
-
return this.send(command, optionsOrCb);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
stopCampaign(args, optionsOrCb, cb) {
|
|
253
|
-
const command = new StopCampaignCommand_1.StopCampaignCommand(args);
|
|
254
|
-
if (typeof optionsOrCb === "function") {
|
|
255
|
-
this.send(command, optionsOrCb);
|
|
256
|
-
}
|
|
257
|
-
else if (typeof cb === "function") {
|
|
258
|
-
if (typeof optionsOrCb !== "object")
|
|
259
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
260
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
261
|
-
}
|
|
262
|
-
else {
|
|
263
|
-
return this.send(command, optionsOrCb);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
tagResource(args, optionsOrCb, cb) {
|
|
267
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
268
|
-
if (typeof optionsOrCb === "function") {
|
|
269
|
-
this.send(command, optionsOrCb);
|
|
270
|
-
}
|
|
271
|
-
else if (typeof cb === "function") {
|
|
272
|
-
if (typeof optionsOrCb !== "object")
|
|
273
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
274
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
275
|
-
}
|
|
276
|
-
else {
|
|
277
|
-
return this.send(command, optionsOrCb);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
untagResource(args, optionsOrCb, cb) {
|
|
281
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
282
|
-
if (typeof optionsOrCb === "function") {
|
|
283
|
-
this.send(command, optionsOrCb);
|
|
284
|
-
}
|
|
285
|
-
else if (typeof cb === "function") {
|
|
286
|
-
if (typeof optionsOrCb !== "object")
|
|
287
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
288
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
289
|
-
}
|
|
290
|
-
else {
|
|
291
|
-
return this.send(command, optionsOrCb);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
updateCampaignDialerConfig(args, optionsOrCb, cb) {
|
|
295
|
-
const command = new UpdateCampaignDialerConfigCommand_1.UpdateCampaignDialerConfigCommand(args);
|
|
296
|
-
if (typeof optionsOrCb === "function") {
|
|
297
|
-
this.send(command, optionsOrCb);
|
|
298
|
-
}
|
|
299
|
-
else if (typeof cb === "function") {
|
|
300
|
-
if (typeof optionsOrCb !== "object")
|
|
301
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
302
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
303
|
-
}
|
|
304
|
-
else {
|
|
305
|
-
return this.send(command, optionsOrCb);
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
updateCampaignName(args, optionsOrCb, cb) {
|
|
309
|
-
const command = new UpdateCampaignNameCommand_1.UpdateCampaignNameCommand(args);
|
|
310
|
-
if (typeof optionsOrCb === "function") {
|
|
311
|
-
this.send(command, optionsOrCb);
|
|
312
|
-
}
|
|
313
|
-
else if (typeof cb === "function") {
|
|
314
|
-
if (typeof optionsOrCb !== "object")
|
|
315
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
316
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
317
|
-
}
|
|
318
|
-
else {
|
|
319
|
-
return this.send(command, optionsOrCb);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
updateCampaignOutboundCallConfig(args, optionsOrCb, cb) {
|
|
323
|
-
const command = new UpdateCampaignOutboundCallConfigCommand_1.UpdateCampaignOutboundCallConfigCommand(args);
|
|
324
|
-
if (typeof optionsOrCb === "function") {
|
|
325
|
-
this.send(command, optionsOrCb);
|
|
326
|
-
}
|
|
327
|
-
else if (typeof cb === "function") {
|
|
328
|
-
if (typeof optionsOrCb !== "object")
|
|
329
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
330
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
331
|
-
}
|
|
332
|
-
else {
|
|
333
|
-
return this.send(command, optionsOrCb);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
53
|
}
|
|
337
54
|
exports.ConnectCampaigns = ConnectCampaigns;
|
|
55
|
+
(0, smithy_client_1.createAggregatedClient)(commands, ConnectCampaigns);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateCampaignCommand, } from "./commands/CreateCampaignCommand";
|
|
2
3
|
import { DeleteCampaignCommand, } from "./commands/DeleteCampaignCommand";
|
|
3
4
|
import { DeleteConnectInstanceConfigCommand, } from "./commands/DeleteConnectInstanceConfigCommand";
|
|
@@ -21,313 +22,30 @@ import { UpdateCampaignDialerConfigCommand, } from "./commands/UpdateCampaignDia
|
|
|
21
22
|
import { UpdateCampaignNameCommand, } from "./commands/UpdateCampaignNameCommand";
|
|
22
23
|
import { UpdateCampaignOutboundCallConfigCommand, } from "./commands/UpdateCampaignOutboundCallConfigCommand";
|
|
23
24
|
import { ConnectCampaignsClient } from "./ConnectCampaignsClient";
|
|
25
|
+
const commands = {
|
|
26
|
+
CreateCampaignCommand,
|
|
27
|
+
DeleteCampaignCommand,
|
|
28
|
+
DeleteConnectInstanceConfigCommand,
|
|
29
|
+
DeleteInstanceOnboardingJobCommand,
|
|
30
|
+
DescribeCampaignCommand,
|
|
31
|
+
GetCampaignStateCommand,
|
|
32
|
+
GetCampaignStateBatchCommand,
|
|
33
|
+
GetConnectInstanceConfigCommand,
|
|
34
|
+
GetInstanceOnboardingJobStatusCommand,
|
|
35
|
+
ListCampaignsCommand,
|
|
36
|
+
ListTagsForResourceCommand,
|
|
37
|
+
PauseCampaignCommand,
|
|
38
|
+
PutDialRequestBatchCommand,
|
|
39
|
+
ResumeCampaignCommand,
|
|
40
|
+
StartCampaignCommand,
|
|
41
|
+
StartInstanceOnboardingJobCommand,
|
|
42
|
+
StopCampaignCommand,
|
|
43
|
+
TagResourceCommand,
|
|
44
|
+
UntagResourceCommand,
|
|
45
|
+
UpdateCampaignDialerConfigCommand,
|
|
46
|
+
UpdateCampaignNameCommand,
|
|
47
|
+
UpdateCampaignOutboundCallConfigCommand,
|
|
48
|
+
};
|
|
24
49
|
export class ConnectCampaigns extends ConnectCampaignsClient {
|
|
25
|
-
createCampaign(args, optionsOrCb, cb) {
|
|
26
|
-
const command = new CreateCampaignCommand(args);
|
|
27
|
-
if (typeof optionsOrCb === "function") {
|
|
28
|
-
this.send(command, optionsOrCb);
|
|
29
|
-
}
|
|
30
|
-
else if (typeof cb === "function") {
|
|
31
|
-
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return this.send(command, optionsOrCb);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
deleteCampaign(args, optionsOrCb, cb) {
|
|
40
|
-
const command = new DeleteCampaignCommand(args);
|
|
41
|
-
if (typeof optionsOrCb === "function") {
|
|
42
|
-
this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
else if (typeof cb === "function") {
|
|
45
|
-
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
deleteConnectInstanceConfig(args, optionsOrCb, cb) {
|
|
54
|
-
const command = new DeleteConnectInstanceConfigCommand(args);
|
|
55
|
-
if (typeof optionsOrCb === "function") {
|
|
56
|
-
this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
else if (typeof cb === "function") {
|
|
59
|
-
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
61
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
return this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
deleteInstanceOnboardingJob(args, optionsOrCb, cb) {
|
|
68
|
-
const command = new DeleteInstanceOnboardingJobCommand(args);
|
|
69
|
-
if (typeof optionsOrCb === "function") {
|
|
70
|
-
this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
else if (typeof cb === "function") {
|
|
73
|
-
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
75
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
describeCampaign(args, optionsOrCb, cb) {
|
|
82
|
-
const command = new DescribeCampaignCommand(args);
|
|
83
|
-
if (typeof optionsOrCb === "function") {
|
|
84
|
-
this.send(command, optionsOrCb);
|
|
85
|
-
}
|
|
86
|
-
else if (typeof cb === "function") {
|
|
87
|
-
if (typeof optionsOrCb !== "object")
|
|
88
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
89
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
return this.send(command, optionsOrCb);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
getCampaignState(args, optionsOrCb, cb) {
|
|
96
|
-
const command = new GetCampaignStateCommand(args);
|
|
97
|
-
if (typeof optionsOrCb === "function") {
|
|
98
|
-
this.send(command, optionsOrCb);
|
|
99
|
-
}
|
|
100
|
-
else if (typeof cb === "function") {
|
|
101
|
-
if (typeof optionsOrCb !== "object")
|
|
102
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
103
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
return this.send(command, optionsOrCb);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
getCampaignStateBatch(args, optionsOrCb, cb) {
|
|
110
|
-
const command = new GetCampaignStateBatchCommand(args);
|
|
111
|
-
if (typeof optionsOrCb === "function") {
|
|
112
|
-
this.send(command, optionsOrCb);
|
|
113
|
-
}
|
|
114
|
-
else if (typeof cb === "function") {
|
|
115
|
-
if (typeof optionsOrCb !== "object")
|
|
116
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
117
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
return this.send(command, optionsOrCb);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
getConnectInstanceConfig(args, optionsOrCb, cb) {
|
|
124
|
-
const command = new GetConnectInstanceConfigCommand(args);
|
|
125
|
-
if (typeof optionsOrCb === "function") {
|
|
126
|
-
this.send(command, optionsOrCb);
|
|
127
|
-
}
|
|
128
|
-
else if (typeof cb === "function") {
|
|
129
|
-
if (typeof optionsOrCb !== "object")
|
|
130
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
131
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
return this.send(command, optionsOrCb);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
getInstanceOnboardingJobStatus(args, optionsOrCb, cb) {
|
|
138
|
-
const command = new GetInstanceOnboardingJobStatusCommand(args);
|
|
139
|
-
if (typeof optionsOrCb === "function") {
|
|
140
|
-
this.send(command, optionsOrCb);
|
|
141
|
-
}
|
|
142
|
-
else if (typeof cb === "function") {
|
|
143
|
-
if (typeof optionsOrCb !== "object")
|
|
144
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
145
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
return this.send(command, optionsOrCb);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
listCampaigns(args, optionsOrCb, cb) {
|
|
152
|
-
const command = new ListCampaignsCommand(args);
|
|
153
|
-
if (typeof optionsOrCb === "function") {
|
|
154
|
-
this.send(command, optionsOrCb);
|
|
155
|
-
}
|
|
156
|
-
else if (typeof cb === "function") {
|
|
157
|
-
if (typeof optionsOrCb !== "object")
|
|
158
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
159
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
return this.send(command, optionsOrCb);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
166
|
-
const command = new ListTagsForResourceCommand(args);
|
|
167
|
-
if (typeof optionsOrCb === "function") {
|
|
168
|
-
this.send(command, optionsOrCb);
|
|
169
|
-
}
|
|
170
|
-
else if (typeof cb === "function") {
|
|
171
|
-
if (typeof optionsOrCb !== "object")
|
|
172
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
173
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
return this.send(command, optionsOrCb);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
pauseCampaign(args, optionsOrCb, cb) {
|
|
180
|
-
const command = new PauseCampaignCommand(args);
|
|
181
|
-
if (typeof optionsOrCb === "function") {
|
|
182
|
-
this.send(command, optionsOrCb);
|
|
183
|
-
}
|
|
184
|
-
else if (typeof cb === "function") {
|
|
185
|
-
if (typeof optionsOrCb !== "object")
|
|
186
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
187
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
return this.send(command, optionsOrCb);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
putDialRequestBatch(args, optionsOrCb, cb) {
|
|
194
|
-
const command = new PutDialRequestBatchCommand(args);
|
|
195
|
-
if (typeof optionsOrCb === "function") {
|
|
196
|
-
this.send(command, optionsOrCb);
|
|
197
|
-
}
|
|
198
|
-
else if (typeof cb === "function") {
|
|
199
|
-
if (typeof optionsOrCb !== "object")
|
|
200
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
201
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
return this.send(command, optionsOrCb);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
resumeCampaign(args, optionsOrCb, cb) {
|
|
208
|
-
const command = new ResumeCampaignCommand(args);
|
|
209
|
-
if (typeof optionsOrCb === "function") {
|
|
210
|
-
this.send(command, optionsOrCb);
|
|
211
|
-
}
|
|
212
|
-
else if (typeof cb === "function") {
|
|
213
|
-
if (typeof optionsOrCb !== "object")
|
|
214
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
215
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
return this.send(command, optionsOrCb);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
startCampaign(args, optionsOrCb, cb) {
|
|
222
|
-
const command = new StartCampaignCommand(args);
|
|
223
|
-
if (typeof optionsOrCb === "function") {
|
|
224
|
-
this.send(command, optionsOrCb);
|
|
225
|
-
}
|
|
226
|
-
else if (typeof cb === "function") {
|
|
227
|
-
if (typeof optionsOrCb !== "object")
|
|
228
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
229
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
return this.send(command, optionsOrCb);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
startInstanceOnboardingJob(args, optionsOrCb, cb) {
|
|
236
|
-
const command = new StartInstanceOnboardingJobCommand(args);
|
|
237
|
-
if (typeof optionsOrCb === "function") {
|
|
238
|
-
this.send(command, optionsOrCb);
|
|
239
|
-
}
|
|
240
|
-
else if (typeof cb === "function") {
|
|
241
|
-
if (typeof optionsOrCb !== "object")
|
|
242
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
243
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
return this.send(command, optionsOrCb);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
stopCampaign(args, optionsOrCb, cb) {
|
|
250
|
-
const command = new StopCampaignCommand(args);
|
|
251
|
-
if (typeof optionsOrCb === "function") {
|
|
252
|
-
this.send(command, optionsOrCb);
|
|
253
|
-
}
|
|
254
|
-
else if (typeof cb === "function") {
|
|
255
|
-
if (typeof optionsOrCb !== "object")
|
|
256
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
257
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
258
|
-
}
|
|
259
|
-
else {
|
|
260
|
-
return this.send(command, optionsOrCb);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
tagResource(args, optionsOrCb, cb) {
|
|
264
|
-
const command = new TagResourceCommand(args);
|
|
265
|
-
if (typeof optionsOrCb === "function") {
|
|
266
|
-
this.send(command, optionsOrCb);
|
|
267
|
-
}
|
|
268
|
-
else if (typeof cb === "function") {
|
|
269
|
-
if (typeof optionsOrCb !== "object")
|
|
270
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
271
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
272
|
-
}
|
|
273
|
-
else {
|
|
274
|
-
return this.send(command, optionsOrCb);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
untagResource(args, optionsOrCb, cb) {
|
|
278
|
-
const command = new UntagResourceCommand(args);
|
|
279
|
-
if (typeof optionsOrCb === "function") {
|
|
280
|
-
this.send(command, optionsOrCb);
|
|
281
|
-
}
|
|
282
|
-
else if (typeof cb === "function") {
|
|
283
|
-
if (typeof optionsOrCb !== "object")
|
|
284
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
285
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
286
|
-
}
|
|
287
|
-
else {
|
|
288
|
-
return this.send(command, optionsOrCb);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
updateCampaignDialerConfig(args, optionsOrCb, cb) {
|
|
292
|
-
const command = new UpdateCampaignDialerConfigCommand(args);
|
|
293
|
-
if (typeof optionsOrCb === "function") {
|
|
294
|
-
this.send(command, optionsOrCb);
|
|
295
|
-
}
|
|
296
|
-
else if (typeof cb === "function") {
|
|
297
|
-
if (typeof optionsOrCb !== "object")
|
|
298
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
299
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
300
|
-
}
|
|
301
|
-
else {
|
|
302
|
-
return this.send(command, optionsOrCb);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
updateCampaignName(args, optionsOrCb, cb) {
|
|
306
|
-
const command = new UpdateCampaignNameCommand(args);
|
|
307
|
-
if (typeof optionsOrCb === "function") {
|
|
308
|
-
this.send(command, optionsOrCb);
|
|
309
|
-
}
|
|
310
|
-
else if (typeof cb === "function") {
|
|
311
|
-
if (typeof optionsOrCb !== "object")
|
|
312
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
313
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
314
|
-
}
|
|
315
|
-
else {
|
|
316
|
-
return this.send(command, optionsOrCb);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
updateCampaignOutboundCallConfig(args, optionsOrCb, cb) {
|
|
320
|
-
const command = new UpdateCampaignOutboundCallConfigCommand(args);
|
|
321
|
-
if (typeof optionsOrCb === "function") {
|
|
322
|
-
this.send(command, optionsOrCb);
|
|
323
|
-
}
|
|
324
|
-
else if (typeof cb === "function") {
|
|
325
|
-
if (typeof optionsOrCb !== "object")
|
|
326
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
327
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
328
|
-
}
|
|
329
|
-
else {
|
|
330
|
-
return this.send(command, optionsOrCb);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
50
|
}
|
|
51
|
+
createAggregatedClient(commands, ConnectCampaigns);
|
|
@@ -22,163 +22,143 @@ import { UpdateCampaignDialerConfigCommandInput, UpdateCampaignDialerConfigComma
|
|
|
22
22
|
import { UpdateCampaignNameCommandInput, UpdateCampaignNameCommandOutput } from "./commands/UpdateCampaignNameCommand";
|
|
23
23
|
import { UpdateCampaignOutboundCallConfigCommandInput, UpdateCampaignOutboundCallConfigCommandOutput } from "./commands/UpdateCampaignOutboundCallConfigCommand";
|
|
24
24
|
import { ConnectCampaignsClient } from "./ConnectCampaignsClient";
|
|
25
|
-
|
|
26
|
-
* @public
|
|
27
|
-
* Provide APIs to create and manage Amazon Connect Campaigns.
|
|
28
|
-
*/
|
|
29
|
-
export declare class ConnectCampaigns extends ConnectCampaignsClient {
|
|
25
|
+
export interface ConnectCampaigns {
|
|
30
26
|
/**
|
|
31
|
-
* @
|
|
32
|
-
* Creates a campaign for the specified Amazon Connect account. This API is idempotent.
|
|
27
|
+
* @see {@link CreateCampaignCommand}
|
|
33
28
|
*/
|
|
34
29
|
createCampaign(args: CreateCampaignCommandInput, options?: __HttpHandlerOptions): Promise<CreateCampaignCommandOutput>;
|
|
35
30
|
createCampaign(args: CreateCampaignCommandInput, cb: (err: any, data?: CreateCampaignCommandOutput) => void): void;
|
|
36
31
|
createCampaign(args: CreateCampaignCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCampaignCommandOutput) => void): void;
|
|
37
32
|
/**
|
|
38
|
-
* @
|
|
39
|
-
* Deletes a campaign from the specified Amazon Connect account.
|
|
33
|
+
* @see {@link DeleteCampaignCommand}
|
|
40
34
|
*/
|
|
41
35
|
deleteCampaign(args: DeleteCampaignCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCampaignCommandOutput>;
|
|
42
36
|
deleteCampaign(args: DeleteCampaignCommandInput, cb: (err: any, data?: DeleteCampaignCommandOutput) => void): void;
|
|
43
37
|
deleteCampaign(args: DeleteCampaignCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCampaignCommandOutput) => void): void;
|
|
44
38
|
/**
|
|
45
|
-
* @
|
|
46
|
-
* Deletes a connect instance config from the specified AWS account.
|
|
39
|
+
* @see {@link DeleteConnectInstanceConfigCommand}
|
|
47
40
|
*/
|
|
48
41
|
deleteConnectInstanceConfig(args: DeleteConnectInstanceConfigCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConnectInstanceConfigCommandOutput>;
|
|
49
42
|
deleteConnectInstanceConfig(args: DeleteConnectInstanceConfigCommandInput, cb: (err: any, data?: DeleteConnectInstanceConfigCommandOutput) => void): void;
|
|
50
43
|
deleteConnectInstanceConfig(args: DeleteConnectInstanceConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConnectInstanceConfigCommandOutput) => void): void;
|
|
51
44
|
/**
|
|
52
|
-
* @
|
|
53
|
-
* Delete the Connect Campaigns onboarding job for the specified Amazon Connect instance.
|
|
45
|
+
* @see {@link DeleteInstanceOnboardingJobCommand}
|
|
54
46
|
*/
|
|
55
47
|
deleteInstanceOnboardingJob(args: DeleteInstanceOnboardingJobCommandInput, options?: __HttpHandlerOptions): Promise<DeleteInstanceOnboardingJobCommandOutput>;
|
|
56
48
|
deleteInstanceOnboardingJob(args: DeleteInstanceOnboardingJobCommandInput, cb: (err: any, data?: DeleteInstanceOnboardingJobCommandOutput) => void): void;
|
|
57
49
|
deleteInstanceOnboardingJob(args: DeleteInstanceOnboardingJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteInstanceOnboardingJobCommandOutput) => void): void;
|
|
58
50
|
/**
|
|
59
|
-
* @
|
|
60
|
-
* Describes the specific campaign.
|
|
51
|
+
* @see {@link DescribeCampaignCommand}
|
|
61
52
|
*/
|
|
62
53
|
describeCampaign(args: DescribeCampaignCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCampaignCommandOutput>;
|
|
63
54
|
describeCampaign(args: DescribeCampaignCommandInput, cb: (err: any, data?: DescribeCampaignCommandOutput) => void): void;
|
|
64
55
|
describeCampaign(args: DescribeCampaignCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCampaignCommandOutput) => void): void;
|
|
65
56
|
/**
|
|
66
|
-
* @
|
|
67
|
-
* Get state of a campaign for the specified Amazon Connect account.
|
|
57
|
+
* @see {@link GetCampaignStateCommand}
|
|
68
58
|
*/
|
|
69
59
|
getCampaignState(args: GetCampaignStateCommandInput, options?: __HttpHandlerOptions): Promise<GetCampaignStateCommandOutput>;
|
|
70
60
|
getCampaignState(args: GetCampaignStateCommandInput, cb: (err: any, data?: GetCampaignStateCommandOutput) => void): void;
|
|
71
61
|
getCampaignState(args: GetCampaignStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCampaignStateCommandOutput) => void): void;
|
|
72
62
|
/**
|
|
73
|
-
* @
|
|
74
|
-
* Get state of campaigns for the specified Amazon Connect account.
|
|
63
|
+
* @see {@link GetCampaignStateBatchCommand}
|
|
75
64
|
*/
|
|
76
65
|
getCampaignStateBatch(args: GetCampaignStateBatchCommandInput, options?: __HttpHandlerOptions): Promise<GetCampaignStateBatchCommandOutput>;
|
|
77
66
|
getCampaignStateBatch(args: GetCampaignStateBatchCommandInput, cb: (err: any, data?: GetCampaignStateBatchCommandOutput) => void): void;
|
|
78
67
|
getCampaignStateBatch(args: GetCampaignStateBatchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCampaignStateBatchCommandOutput) => void): void;
|
|
79
68
|
/**
|
|
80
|
-
* @
|
|
81
|
-
* Get the specific Connect instance config.
|
|
69
|
+
* @see {@link GetConnectInstanceConfigCommand}
|
|
82
70
|
*/
|
|
83
71
|
getConnectInstanceConfig(args: GetConnectInstanceConfigCommandInput, options?: __HttpHandlerOptions): Promise<GetConnectInstanceConfigCommandOutput>;
|
|
84
72
|
getConnectInstanceConfig(args: GetConnectInstanceConfigCommandInput, cb: (err: any, data?: GetConnectInstanceConfigCommandOutput) => void): void;
|
|
85
73
|
getConnectInstanceConfig(args: GetConnectInstanceConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConnectInstanceConfigCommandOutput) => void): void;
|
|
86
74
|
/**
|
|
87
|
-
* @
|
|
88
|
-
* Get the specific instance onboarding job status.
|
|
75
|
+
* @see {@link GetInstanceOnboardingJobStatusCommand}
|
|
89
76
|
*/
|
|
90
77
|
getInstanceOnboardingJobStatus(args: GetInstanceOnboardingJobStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetInstanceOnboardingJobStatusCommandOutput>;
|
|
91
78
|
getInstanceOnboardingJobStatus(args: GetInstanceOnboardingJobStatusCommandInput, cb: (err: any, data?: GetInstanceOnboardingJobStatusCommandOutput) => void): void;
|
|
92
79
|
getInstanceOnboardingJobStatus(args: GetInstanceOnboardingJobStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInstanceOnboardingJobStatusCommandOutput) => void): void;
|
|
93
80
|
/**
|
|
94
|
-
* @
|
|
95
|
-
* Provides summary information about the campaigns under the specified Amazon Connect account.
|
|
81
|
+
* @see {@link ListCampaignsCommand}
|
|
96
82
|
*/
|
|
97
83
|
listCampaigns(args: ListCampaignsCommandInput, options?: __HttpHandlerOptions): Promise<ListCampaignsCommandOutput>;
|
|
98
84
|
listCampaigns(args: ListCampaignsCommandInput, cb: (err: any, data?: ListCampaignsCommandOutput) => void): void;
|
|
99
85
|
listCampaigns(args: ListCampaignsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCampaignsCommandOutput) => void): void;
|
|
100
86
|
/**
|
|
101
|
-
* @
|
|
102
|
-
* List tags for a resource.
|
|
87
|
+
* @see {@link ListTagsForResourceCommand}
|
|
103
88
|
*/
|
|
104
89
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
105
90
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
106
91
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
107
92
|
/**
|
|
108
|
-
* @
|
|
109
|
-
* Pauses a campaign for the specified Amazon Connect account.
|
|
93
|
+
* @see {@link PauseCampaignCommand}
|
|
110
94
|
*/
|
|
111
95
|
pauseCampaign(args: PauseCampaignCommandInput, options?: __HttpHandlerOptions): Promise<PauseCampaignCommandOutput>;
|
|
112
96
|
pauseCampaign(args: PauseCampaignCommandInput, cb: (err: any, data?: PauseCampaignCommandOutput) => void): void;
|
|
113
97
|
pauseCampaign(args: PauseCampaignCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PauseCampaignCommandOutput) => void): void;
|
|
114
98
|
/**
|
|
115
|
-
* @
|
|
116
|
-
* Creates dials requests for the specified campaign Amazon Connect account. This API is idempotent.
|
|
99
|
+
* @see {@link PutDialRequestBatchCommand}
|
|
117
100
|
*/
|
|
118
101
|
putDialRequestBatch(args: PutDialRequestBatchCommandInput, options?: __HttpHandlerOptions): Promise<PutDialRequestBatchCommandOutput>;
|
|
119
102
|
putDialRequestBatch(args: PutDialRequestBatchCommandInput, cb: (err: any, data?: PutDialRequestBatchCommandOutput) => void): void;
|
|
120
103
|
putDialRequestBatch(args: PutDialRequestBatchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutDialRequestBatchCommandOutput) => void): void;
|
|
121
104
|
/**
|
|
122
|
-
* @
|
|
123
|
-
* Stops a campaign for the specified Amazon Connect account.
|
|
105
|
+
* @see {@link ResumeCampaignCommand}
|
|
124
106
|
*/
|
|
125
107
|
resumeCampaign(args: ResumeCampaignCommandInput, options?: __HttpHandlerOptions): Promise<ResumeCampaignCommandOutput>;
|
|
126
108
|
resumeCampaign(args: ResumeCampaignCommandInput, cb: (err: any, data?: ResumeCampaignCommandOutput) => void): void;
|
|
127
109
|
resumeCampaign(args: ResumeCampaignCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResumeCampaignCommandOutput) => void): void;
|
|
128
110
|
/**
|
|
129
|
-
* @
|
|
130
|
-
* Starts a campaign for the specified Amazon Connect account.
|
|
111
|
+
* @see {@link StartCampaignCommand}
|
|
131
112
|
*/
|
|
132
113
|
startCampaign(args: StartCampaignCommandInput, options?: __HttpHandlerOptions): Promise<StartCampaignCommandOutput>;
|
|
133
114
|
startCampaign(args: StartCampaignCommandInput, cb: (err: any, data?: StartCampaignCommandOutput) => void): void;
|
|
134
115
|
startCampaign(args: StartCampaignCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCampaignCommandOutput) => void): void;
|
|
135
116
|
/**
|
|
136
|
-
* @
|
|
137
|
-
* Onboard the specific Amazon Connect instance to Connect Campaigns.
|
|
117
|
+
* @see {@link StartInstanceOnboardingJobCommand}
|
|
138
118
|
*/
|
|
139
119
|
startInstanceOnboardingJob(args: StartInstanceOnboardingJobCommandInput, options?: __HttpHandlerOptions): Promise<StartInstanceOnboardingJobCommandOutput>;
|
|
140
120
|
startInstanceOnboardingJob(args: StartInstanceOnboardingJobCommandInput, cb: (err: any, data?: StartInstanceOnboardingJobCommandOutput) => void): void;
|
|
141
121
|
startInstanceOnboardingJob(args: StartInstanceOnboardingJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartInstanceOnboardingJobCommandOutput) => void): void;
|
|
142
122
|
/**
|
|
143
|
-
* @
|
|
144
|
-
* Stops a campaign for the specified Amazon Connect account.
|
|
123
|
+
* @see {@link StopCampaignCommand}
|
|
145
124
|
*/
|
|
146
125
|
stopCampaign(args: StopCampaignCommandInput, options?: __HttpHandlerOptions): Promise<StopCampaignCommandOutput>;
|
|
147
126
|
stopCampaign(args: StopCampaignCommandInput, cb: (err: any, data?: StopCampaignCommandOutput) => void): void;
|
|
148
127
|
stopCampaign(args: StopCampaignCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopCampaignCommandOutput) => void): void;
|
|
149
128
|
/**
|
|
150
|
-
* @
|
|
151
|
-
* Tag a resource.
|
|
129
|
+
* @see {@link TagResourceCommand}
|
|
152
130
|
*/
|
|
153
131
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
154
132
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
155
133
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
156
134
|
/**
|
|
157
|
-
* @
|
|
158
|
-
* Untag a resource.
|
|
135
|
+
* @see {@link UntagResourceCommand}
|
|
159
136
|
*/
|
|
160
137
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
161
138
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
162
139
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
163
140
|
/**
|
|
164
|
-
* @
|
|
165
|
-
* Updates the dialer config of a campaign. This API is idempotent.
|
|
141
|
+
* @see {@link UpdateCampaignDialerConfigCommand}
|
|
166
142
|
*/
|
|
167
143
|
updateCampaignDialerConfig(args: UpdateCampaignDialerConfigCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCampaignDialerConfigCommandOutput>;
|
|
168
144
|
updateCampaignDialerConfig(args: UpdateCampaignDialerConfigCommandInput, cb: (err: any, data?: UpdateCampaignDialerConfigCommandOutput) => void): void;
|
|
169
145
|
updateCampaignDialerConfig(args: UpdateCampaignDialerConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCampaignDialerConfigCommandOutput) => void): void;
|
|
170
146
|
/**
|
|
171
|
-
* @
|
|
172
|
-
* Updates the name of a campaign. This API is idempotent.
|
|
147
|
+
* @see {@link UpdateCampaignNameCommand}
|
|
173
148
|
*/
|
|
174
149
|
updateCampaignName(args: UpdateCampaignNameCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCampaignNameCommandOutput>;
|
|
175
150
|
updateCampaignName(args: UpdateCampaignNameCommandInput, cb: (err: any, data?: UpdateCampaignNameCommandOutput) => void): void;
|
|
176
151
|
updateCampaignName(args: UpdateCampaignNameCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCampaignNameCommandOutput) => void): void;
|
|
177
152
|
/**
|
|
178
|
-
* @
|
|
179
|
-
* Updates the outbound call config of a campaign. This API is idempotent.
|
|
153
|
+
* @see {@link UpdateCampaignOutboundCallConfigCommand}
|
|
180
154
|
*/
|
|
181
155
|
updateCampaignOutboundCallConfig(args: UpdateCampaignOutboundCallConfigCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCampaignOutboundCallConfigCommandOutput>;
|
|
182
156
|
updateCampaignOutboundCallConfig(args: UpdateCampaignOutboundCallConfigCommandInput, cb: (err: any, data?: UpdateCampaignOutboundCallConfigCommandOutput) => void): void;
|
|
183
157
|
updateCampaignOutboundCallConfig(args: UpdateCampaignOutboundCallConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCampaignOutboundCallConfigCommandOutput) => void): void;
|
|
184
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
* Provide APIs to create and manage Amazon Connect Campaigns.
|
|
162
|
+
*/
|
|
163
|
+
export declare class ConnectCampaigns extends ConnectCampaignsClient implements ConnectCampaigns {
|
|
164
|
+
}
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
UpdateCampaignOutboundCallConfigCommandOutput,
|
|
89
89
|
} from "./commands/UpdateCampaignOutboundCallConfigCommand";
|
|
90
90
|
import { ConnectCampaignsClient } from "./ConnectCampaignsClient";
|
|
91
|
-
export
|
|
91
|
+
export interface ConnectCampaigns {
|
|
92
92
|
createCampaign(
|
|
93
93
|
args: CreateCampaignCommandInput,
|
|
94
94
|
options?: __HttpHandlerOptions
|
|
@@ -376,3 +376,6 @@ export declare class ConnectCampaigns extends ConnectCampaignsClient {
|
|
|
376
376
|
cb: (err: any, data?: UpdateCampaignOutboundCallConfigCommandOutput) => void
|
|
377
377
|
): void;
|
|
378
378
|
}
|
|
379
|
+
export declare class ConnectCampaigns
|
|
380
|
+
extends ConnectCampaignsClient
|
|
381
|
+
implements ConnectCampaigns {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-connectcampaigns",
|
|
3
3
|
"description": "AWS SDK for JavaScript Connectcampaigns Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|