@aws-sdk/client-pinpoint 3.186.0 → 3.188.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/Pinpoint.js +478 -485
- package/dist-es/PinpointClient.js +22 -28
- package/dist-es/commands/CreateAppCommand.js +21 -28
- package/dist-es/commands/CreateCampaignCommand.js +21 -28
- package/dist-es/commands/CreateEmailTemplateCommand.js +21 -28
- package/dist-es/commands/CreateExportJobCommand.js +21 -28
- package/dist-es/commands/CreateImportJobCommand.js +21 -28
- package/dist-es/commands/CreateInAppTemplateCommand.js +21 -28
- package/dist-es/commands/CreateJourneyCommand.js +21 -28
- package/dist-es/commands/CreatePushTemplateCommand.js +21 -28
- package/dist-es/commands/CreateRecommenderConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateSegmentCommand.js +21 -28
- package/dist-es/commands/CreateSmsTemplateCommand.js +21 -28
- package/dist-es/commands/CreateVoiceTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteAdmChannelCommand.js +21 -28
- package/dist-es/commands/DeleteApnsChannelCommand.js +21 -28
- package/dist-es/commands/DeleteApnsSandboxChannelCommand.js +21 -28
- package/dist-es/commands/DeleteApnsVoipChannelCommand.js +21 -28
- package/dist-es/commands/DeleteApnsVoipSandboxChannelCommand.js +21 -28
- package/dist-es/commands/DeleteAppCommand.js +21 -28
- package/dist-es/commands/DeleteBaiduChannelCommand.js +21 -28
- package/dist-es/commands/DeleteCampaignCommand.js +21 -28
- package/dist-es/commands/DeleteEmailChannelCommand.js +21 -28
- package/dist-es/commands/DeleteEmailTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteEndpointCommand.js +21 -28
- package/dist-es/commands/DeleteEventStreamCommand.js +21 -28
- package/dist-es/commands/DeleteGcmChannelCommand.js +21 -28
- package/dist-es/commands/DeleteInAppTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteJourneyCommand.js +21 -28
- package/dist-es/commands/DeletePushTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteRecommenderConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteSegmentCommand.js +21 -28
- package/dist-es/commands/DeleteSmsChannelCommand.js +21 -28
- package/dist-es/commands/DeleteSmsTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteUserEndpointsCommand.js +21 -28
- package/dist-es/commands/DeleteVoiceChannelCommand.js +21 -28
- package/dist-es/commands/DeleteVoiceTemplateCommand.js +21 -28
- package/dist-es/commands/GetAdmChannelCommand.js +21 -28
- package/dist-es/commands/GetApnsChannelCommand.js +21 -28
- package/dist-es/commands/GetApnsSandboxChannelCommand.js +21 -28
- package/dist-es/commands/GetApnsVoipChannelCommand.js +21 -28
- package/dist-es/commands/GetApnsVoipSandboxChannelCommand.js +21 -28
- package/dist-es/commands/GetAppCommand.js +21 -28
- package/dist-es/commands/GetApplicationDateRangeKpiCommand.js +21 -28
- package/dist-es/commands/GetApplicationSettingsCommand.js +21 -28
- package/dist-es/commands/GetAppsCommand.js +21 -28
- package/dist-es/commands/GetBaiduChannelCommand.js +21 -28
- package/dist-es/commands/GetCampaignActivitiesCommand.js +21 -28
- package/dist-es/commands/GetCampaignCommand.js +21 -28
- package/dist-es/commands/GetCampaignDateRangeKpiCommand.js +21 -28
- package/dist-es/commands/GetCampaignVersionCommand.js +21 -28
- package/dist-es/commands/GetCampaignVersionsCommand.js +21 -28
- package/dist-es/commands/GetCampaignsCommand.js +21 -28
- package/dist-es/commands/GetChannelsCommand.js +21 -28
- package/dist-es/commands/GetEmailChannelCommand.js +21 -28
- package/dist-es/commands/GetEmailTemplateCommand.js +21 -28
- package/dist-es/commands/GetEndpointCommand.js +21 -28
- package/dist-es/commands/GetEventStreamCommand.js +21 -28
- package/dist-es/commands/GetExportJobCommand.js +21 -28
- package/dist-es/commands/GetExportJobsCommand.js +21 -28
- package/dist-es/commands/GetGcmChannelCommand.js +21 -28
- package/dist-es/commands/GetImportJobCommand.js +21 -28
- package/dist-es/commands/GetImportJobsCommand.js +21 -28
- package/dist-es/commands/GetInAppMessagesCommand.js +21 -28
- package/dist-es/commands/GetInAppTemplateCommand.js +21 -28
- package/dist-es/commands/GetJourneyCommand.js +21 -28
- package/dist-es/commands/GetJourneyDateRangeKpiCommand.js +21 -28
- package/dist-es/commands/GetJourneyExecutionActivityMetricsCommand.js +21 -28
- package/dist-es/commands/GetJourneyExecutionMetricsCommand.js +21 -28
- package/dist-es/commands/GetPushTemplateCommand.js +21 -28
- package/dist-es/commands/GetRecommenderConfigurationCommand.js +21 -28
- package/dist-es/commands/GetRecommenderConfigurationsCommand.js +21 -28
- package/dist-es/commands/GetSegmentCommand.js +21 -28
- package/dist-es/commands/GetSegmentExportJobsCommand.js +21 -28
- package/dist-es/commands/GetSegmentImportJobsCommand.js +21 -28
- package/dist-es/commands/GetSegmentVersionCommand.js +21 -28
- package/dist-es/commands/GetSegmentVersionsCommand.js +21 -28
- package/dist-es/commands/GetSegmentsCommand.js +21 -28
- package/dist-es/commands/GetSmsChannelCommand.js +21 -28
- package/dist-es/commands/GetSmsTemplateCommand.js +21 -28
- package/dist-es/commands/GetUserEndpointsCommand.js +21 -28
- package/dist-es/commands/GetVoiceChannelCommand.js +21 -28
- package/dist-es/commands/GetVoiceTemplateCommand.js +21 -28
- package/dist-es/commands/ListJourneysCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTemplateVersionsCommand.js +21 -28
- package/dist-es/commands/ListTemplatesCommand.js +21 -28
- package/dist-es/commands/PhoneNumberValidateCommand.js +21 -28
- package/dist-es/commands/PutEventStreamCommand.js +21 -28
- package/dist-es/commands/PutEventsCommand.js +21 -28
- package/dist-es/commands/RemoveAttributesCommand.js +21 -28
- package/dist-es/commands/SendMessagesCommand.js +21 -28
- package/dist-es/commands/SendOTPMessageCommand.js +21 -28
- package/dist-es/commands/SendUsersMessagesCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateAdmChannelCommand.js +21 -28
- package/dist-es/commands/UpdateApnsChannelCommand.js +21 -28
- package/dist-es/commands/UpdateApnsSandboxChannelCommand.js +21 -28
- package/dist-es/commands/UpdateApnsVoipChannelCommand.js +21 -28
- package/dist-es/commands/UpdateApnsVoipSandboxChannelCommand.js +21 -28
- package/dist-es/commands/UpdateApplicationSettingsCommand.js +21 -28
- package/dist-es/commands/UpdateBaiduChannelCommand.js +21 -28
- package/dist-es/commands/UpdateCampaignCommand.js +21 -28
- package/dist-es/commands/UpdateEmailChannelCommand.js +21 -28
- package/dist-es/commands/UpdateEmailTemplateCommand.js +21 -28
- package/dist-es/commands/UpdateEndpointCommand.js +21 -28
- package/dist-es/commands/UpdateEndpointsBatchCommand.js +21 -28
- package/dist-es/commands/UpdateGcmChannelCommand.js +21 -28
- package/dist-es/commands/UpdateInAppTemplateCommand.js +21 -28
- package/dist-es/commands/UpdateJourneyCommand.js +21 -28
- package/dist-es/commands/UpdateJourneyStateCommand.js +21 -28
- package/dist-es/commands/UpdatePushTemplateCommand.js +21 -28
- package/dist-es/commands/UpdateRecommenderConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateSegmentCommand.js +21 -28
- package/dist-es/commands/UpdateSmsChannelCommand.js +21 -28
- package/dist-es/commands/UpdateSmsTemplateCommand.js +21 -28
- package/dist-es/commands/UpdateTemplateActiveVersionCommand.js +21 -28
- package/dist-es/commands/UpdateVoiceChannelCommand.js +21 -28
- package/dist-es/commands/UpdateVoiceTemplateCommand.js +21 -28
- package/dist-es/commands/VerifyOTPMessageCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/PinpointServiceException.js +5 -10
- package/dist-es/models/models_0.js +902 -371
- package/dist-es/models/models_1.js +516 -173
- package/dist-es/protocols/Aws_restJson1.js +10181 -13421
- 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/Pinpoint.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { CreateAppCommand } from "./commands/CreateAppCommand";
|
|
3
2
|
import { CreateCampaignCommand, } from "./commands/CreateCampaignCommand";
|
|
4
3
|
import { CreateEmailTemplateCommand, } from "./commands/CreateEmailTemplateCommand";
|
|
@@ -119,1677 +118,1671 @@ import { UpdateVoiceChannelCommand, } from "./commands/UpdateVoiceChannelCommand
|
|
|
119
118
|
import { UpdateVoiceTemplateCommand, } from "./commands/UpdateVoiceTemplateCommand";
|
|
120
119
|
import { VerifyOTPMessageCommand, } from "./commands/VerifyOTPMessageCommand";
|
|
121
120
|
import { PinpointClient } from "./PinpointClient";
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
126
|
-
}
|
|
127
|
-
Pinpoint.prototype.createApp = function (args, optionsOrCb, cb) {
|
|
128
|
-
var command = new CreateAppCommand(args);
|
|
121
|
+
export class Pinpoint extends PinpointClient {
|
|
122
|
+
createApp(args, optionsOrCb, cb) {
|
|
123
|
+
const command = new CreateAppCommand(args);
|
|
129
124
|
if (typeof optionsOrCb === "function") {
|
|
130
125
|
this.send(command, optionsOrCb);
|
|
131
126
|
}
|
|
132
127
|
else if (typeof cb === "function") {
|
|
133
128
|
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(
|
|
129
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
130
|
this.send(command, optionsOrCb || {}, cb);
|
|
136
131
|
}
|
|
137
132
|
else {
|
|
138
133
|
return this.send(command, optionsOrCb);
|
|
139
134
|
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
135
|
+
}
|
|
136
|
+
createCampaign(args, optionsOrCb, cb) {
|
|
137
|
+
const command = new CreateCampaignCommand(args);
|
|
143
138
|
if (typeof optionsOrCb === "function") {
|
|
144
139
|
this.send(command, optionsOrCb);
|
|
145
140
|
}
|
|
146
141
|
else if (typeof cb === "function") {
|
|
147
142
|
if (typeof optionsOrCb !== "object")
|
|
148
|
-
throw new Error(
|
|
143
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
149
144
|
this.send(command, optionsOrCb || {}, cb);
|
|
150
145
|
}
|
|
151
146
|
else {
|
|
152
147
|
return this.send(command, optionsOrCb);
|
|
153
148
|
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
149
|
+
}
|
|
150
|
+
createEmailTemplate(args, optionsOrCb, cb) {
|
|
151
|
+
const command = new CreateEmailTemplateCommand(args);
|
|
157
152
|
if (typeof optionsOrCb === "function") {
|
|
158
153
|
this.send(command, optionsOrCb);
|
|
159
154
|
}
|
|
160
155
|
else if (typeof cb === "function") {
|
|
161
156
|
if (typeof optionsOrCb !== "object")
|
|
162
|
-
throw new Error(
|
|
157
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
163
158
|
this.send(command, optionsOrCb || {}, cb);
|
|
164
159
|
}
|
|
165
160
|
else {
|
|
166
161
|
return this.send(command, optionsOrCb);
|
|
167
162
|
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
163
|
+
}
|
|
164
|
+
createExportJob(args, optionsOrCb, cb) {
|
|
165
|
+
const command = new CreateExportJobCommand(args);
|
|
171
166
|
if (typeof optionsOrCb === "function") {
|
|
172
167
|
this.send(command, optionsOrCb);
|
|
173
168
|
}
|
|
174
169
|
else if (typeof cb === "function") {
|
|
175
170
|
if (typeof optionsOrCb !== "object")
|
|
176
|
-
throw new Error(
|
|
171
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
177
172
|
this.send(command, optionsOrCb || {}, cb);
|
|
178
173
|
}
|
|
179
174
|
else {
|
|
180
175
|
return this.send(command, optionsOrCb);
|
|
181
176
|
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
177
|
+
}
|
|
178
|
+
createImportJob(args, optionsOrCb, cb) {
|
|
179
|
+
const command = new CreateImportJobCommand(args);
|
|
185
180
|
if (typeof optionsOrCb === "function") {
|
|
186
181
|
this.send(command, optionsOrCb);
|
|
187
182
|
}
|
|
188
183
|
else if (typeof cb === "function") {
|
|
189
184
|
if (typeof optionsOrCb !== "object")
|
|
190
|
-
throw new Error(
|
|
185
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
191
186
|
this.send(command, optionsOrCb || {}, cb);
|
|
192
187
|
}
|
|
193
188
|
else {
|
|
194
189
|
return this.send(command, optionsOrCb);
|
|
195
190
|
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
191
|
+
}
|
|
192
|
+
createInAppTemplate(args, optionsOrCb, cb) {
|
|
193
|
+
const command = new CreateInAppTemplateCommand(args);
|
|
199
194
|
if (typeof optionsOrCb === "function") {
|
|
200
195
|
this.send(command, optionsOrCb);
|
|
201
196
|
}
|
|
202
197
|
else if (typeof cb === "function") {
|
|
203
198
|
if (typeof optionsOrCb !== "object")
|
|
204
|
-
throw new Error(
|
|
199
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
205
200
|
this.send(command, optionsOrCb || {}, cb);
|
|
206
201
|
}
|
|
207
202
|
else {
|
|
208
203
|
return this.send(command, optionsOrCb);
|
|
209
204
|
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
}
|
|
206
|
+
createJourney(args, optionsOrCb, cb) {
|
|
207
|
+
const command = new CreateJourneyCommand(args);
|
|
213
208
|
if (typeof optionsOrCb === "function") {
|
|
214
209
|
this.send(command, optionsOrCb);
|
|
215
210
|
}
|
|
216
211
|
else if (typeof cb === "function") {
|
|
217
212
|
if (typeof optionsOrCb !== "object")
|
|
218
|
-
throw new Error(
|
|
213
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
219
214
|
this.send(command, optionsOrCb || {}, cb);
|
|
220
215
|
}
|
|
221
216
|
else {
|
|
222
217
|
return this.send(command, optionsOrCb);
|
|
223
218
|
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
|
|
219
|
+
}
|
|
220
|
+
createPushTemplate(args, optionsOrCb, cb) {
|
|
221
|
+
const command = new CreatePushTemplateCommand(args);
|
|
227
222
|
if (typeof optionsOrCb === "function") {
|
|
228
223
|
this.send(command, optionsOrCb);
|
|
229
224
|
}
|
|
230
225
|
else if (typeof cb === "function") {
|
|
231
226
|
if (typeof optionsOrCb !== "object")
|
|
232
|
-
throw new Error(
|
|
227
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
233
228
|
this.send(command, optionsOrCb || {}, cb);
|
|
234
229
|
}
|
|
235
230
|
else {
|
|
236
231
|
return this.send(command, optionsOrCb);
|
|
237
232
|
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
233
|
+
}
|
|
234
|
+
createRecommenderConfiguration(args, optionsOrCb, cb) {
|
|
235
|
+
const command = new CreateRecommenderConfigurationCommand(args);
|
|
241
236
|
if (typeof optionsOrCb === "function") {
|
|
242
237
|
this.send(command, optionsOrCb);
|
|
243
238
|
}
|
|
244
239
|
else if (typeof cb === "function") {
|
|
245
240
|
if (typeof optionsOrCb !== "object")
|
|
246
|
-
throw new Error(
|
|
241
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
247
242
|
this.send(command, optionsOrCb || {}, cb);
|
|
248
243
|
}
|
|
249
244
|
else {
|
|
250
245
|
return this.send(command, optionsOrCb);
|
|
251
246
|
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
|
|
247
|
+
}
|
|
248
|
+
createSegment(args, optionsOrCb, cb) {
|
|
249
|
+
const command = new CreateSegmentCommand(args);
|
|
255
250
|
if (typeof optionsOrCb === "function") {
|
|
256
251
|
this.send(command, optionsOrCb);
|
|
257
252
|
}
|
|
258
253
|
else if (typeof cb === "function") {
|
|
259
254
|
if (typeof optionsOrCb !== "object")
|
|
260
|
-
throw new Error(
|
|
255
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
261
256
|
this.send(command, optionsOrCb || {}, cb);
|
|
262
257
|
}
|
|
263
258
|
else {
|
|
264
259
|
return this.send(command, optionsOrCb);
|
|
265
260
|
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
|
|
261
|
+
}
|
|
262
|
+
createSmsTemplate(args, optionsOrCb, cb) {
|
|
263
|
+
const command = new CreateSmsTemplateCommand(args);
|
|
269
264
|
if (typeof optionsOrCb === "function") {
|
|
270
265
|
this.send(command, optionsOrCb);
|
|
271
266
|
}
|
|
272
267
|
else if (typeof cb === "function") {
|
|
273
268
|
if (typeof optionsOrCb !== "object")
|
|
274
|
-
throw new Error(
|
|
269
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
275
270
|
this.send(command, optionsOrCb || {}, cb);
|
|
276
271
|
}
|
|
277
272
|
else {
|
|
278
273
|
return this.send(command, optionsOrCb);
|
|
279
274
|
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
275
|
+
}
|
|
276
|
+
createVoiceTemplate(args, optionsOrCb, cb) {
|
|
277
|
+
const command = new CreateVoiceTemplateCommand(args);
|
|
283
278
|
if (typeof optionsOrCb === "function") {
|
|
284
279
|
this.send(command, optionsOrCb);
|
|
285
280
|
}
|
|
286
281
|
else if (typeof cb === "function") {
|
|
287
282
|
if (typeof optionsOrCb !== "object")
|
|
288
|
-
throw new Error(
|
|
283
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
289
284
|
this.send(command, optionsOrCb || {}, cb);
|
|
290
285
|
}
|
|
291
286
|
else {
|
|
292
287
|
return this.send(command, optionsOrCb);
|
|
293
288
|
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
|
|
289
|
+
}
|
|
290
|
+
deleteAdmChannel(args, optionsOrCb, cb) {
|
|
291
|
+
const command = new DeleteAdmChannelCommand(args);
|
|
297
292
|
if (typeof optionsOrCb === "function") {
|
|
298
293
|
this.send(command, optionsOrCb);
|
|
299
294
|
}
|
|
300
295
|
else if (typeof cb === "function") {
|
|
301
296
|
if (typeof optionsOrCb !== "object")
|
|
302
|
-
throw new Error(
|
|
297
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
303
298
|
this.send(command, optionsOrCb || {}, cb);
|
|
304
299
|
}
|
|
305
300
|
else {
|
|
306
301
|
return this.send(command, optionsOrCb);
|
|
307
302
|
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
303
|
+
}
|
|
304
|
+
deleteApnsChannel(args, optionsOrCb, cb) {
|
|
305
|
+
const command = new DeleteApnsChannelCommand(args);
|
|
311
306
|
if (typeof optionsOrCb === "function") {
|
|
312
307
|
this.send(command, optionsOrCb);
|
|
313
308
|
}
|
|
314
309
|
else if (typeof cb === "function") {
|
|
315
310
|
if (typeof optionsOrCb !== "object")
|
|
316
|
-
throw new Error(
|
|
311
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
317
312
|
this.send(command, optionsOrCb || {}, cb);
|
|
318
313
|
}
|
|
319
314
|
else {
|
|
320
315
|
return this.send(command, optionsOrCb);
|
|
321
316
|
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
|
|
317
|
+
}
|
|
318
|
+
deleteApnsSandboxChannel(args, optionsOrCb, cb) {
|
|
319
|
+
const command = new DeleteApnsSandboxChannelCommand(args);
|
|
325
320
|
if (typeof optionsOrCb === "function") {
|
|
326
321
|
this.send(command, optionsOrCb);
|
|
327
322
|
}
|
|
328
323
|
else if (typeof cb === "function") {
|
|
329
324
|
if (typeof optionsOrCb !== "object")
|
|
330
|
-
throw new Error(
|
|
325
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
331
326
|
this.send(command, optionsOrCb || {}, cb);
|
|
332
327
|
}
|
|
333
328
|
else {
|
|
334
329
|
return this.send(command, optionsOrCb);
|
|
335
330
|
}
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
|
|
331
|
+
}
|
|
332
|
+
deleteApnsVoipChannel(args, optionsOrCb, cb) {
|
|
333
|
+
const command = new DeleteApnsVoipChannelCommand(args);
|
|
339
334
|
if (typeof optionsOrCb === "function") {
|
|
340
335
|
this.send(command, optionsOrCb);
|
|
341
336
|
}
|
|
342
337
|
else if (typeof cb === "function") {
|
|
343
338
|
if (typeof optionsOrCb !== "object")
|
|
344
|
-
throw new Error(
|
|
339
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
345
340
|
this.send(command, optionsOrCb || {}, cb);
|
|
346
341
|
}
|
|
347
342
|
else {
|
|
348
343
|
return this.send(command, optionsOrCb);
|
|
349
344
|
}
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
|
|
345
|
+
}
|
|
346
|
+
deleteApnsVoipSandboxChannel(args, optionsOrCb, cb) {
|
|
347
|
+
const command = new DeleteApnsVoipSandboxChannelCommand(args);
|
|
353
348
|
if (typeof optionsOrCb === "function") {
|
|
354
349
|
this.send(command, optionsOrCb);
|
|
355
350
|
}
|
|
356
351
|
else if (typeof cb === "function") {
|
|
357
352
|
if (typeof optionsOrCb !== "object")
|
|
358
|
-
throw new Error(
|
|
353
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
359
354
|
this.send(command, optionsOrCb || {}, cb);
|
|
360
355
|
}
|
|
361
356
|
else {
|
|
362
357
|
return this.send(command, optionsOrCb);
|
|
363
358
|
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
|
|
359
|
+
}
|
|
360
|
+
deleteApp(args, optionsOrCb, cb) {
|
|
361
|
+
const command = new DeleteAppCommand(args);
|
|
367
362
|
if (typeof optionsOrCb === "function") {
|
|
368
363
|
this.send(command, optionsOrCb);
|
|
369
364
|
}
|
|
370
365
|
else if (typeof cb === "function") {
|
|
371
366
|
if (typeof optionsOrCb !== "object")
|
|
372
|
-
throw new Error(
|
|
367
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
373
368
|
this.send(command, optionsOrCb || {}, cb);
|
|
374
369
|
}
|
|
375
370
|
else {
|
|
376
371
|
return this.send(command, optionsOrCb);
|
|
377
372
|
}
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
|
|
373
|
+
}
|
|
374
|
+
deleteBaiduChannel(args, optionsOrCb, cb) {
|
|
375
|
+
const command = new DeleteBaiduChannelCommand(args);
|
|
381
376
|
if (typeof optionsOrCb === "function") {
|
|
382
377
|
this.send(command, optionsOrCb);
|
|
383
378
|
}
|
|
384
379
|
else if (typeof cb === "function") {
|
|
385
380
|
if (typeof optionsOrCb !== "object")
|
|
386
|
-
throw new Error(
|
|
381
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
387
382
|
this.send(command, optionsOrCb || {}, cb);
|
|
388
383
|
}
|
|
389
384
|
else {
|
|
390
385
|
return this.send(command, optionsOrCb);
|
|
391
386
|
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
|
|
387
|
+
}
|
|
388
|
+
deleteCampaign(args, optionsOrCb, cb) {
|
|
389
|
+
const command = new DeleteCampaignCommand(args);
|
|
395
390
|
if (typeof optionsOrCb === "function") {
|
|
396
391
|
this.send(command, optionsOrCb);
|
|
397
392
|
}
|
|
398
393
|
else if (typeof cb === "function") {
|
|
399
394
|
if (typeof optionsOrCb !== "object")
|
|
400
|
-
throw new Error(
|
|
395
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
401
396
|
this.send(command, optionsOrCb || {}, cb);
|
|
402
397
|
}
|
|
403
398
|
else {
|
|
404
399
|
return this.send(command, optionsOrCb);
|
|
405
400
|
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
|
|
401
|
+
}
|
|
402
|
+
deleteEmailChannel(args, optionsOrCb, cb) {
|
|
403
|
+
const command = new DeleteEmailChannelCommand(args);
|
|
409
404
|
if (typeof optionsOrCb === "function") {
|
|
410
405
|
this.send(command, optionsOrCb);
|
|
411
406
|
}
|
|
412
407
|
else if (typeof cb === "function") {
|
|
413
408
|
if (typeof optionsOrCb !== "object")
|
|
414
|
-
throw new Error(
|
|
409
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
415
410
|
this.send(command, optionsOrCb || {}, cb);
|
|
416
411
|
}
|
|
417
412
|
else {
|
|
418
413
|
return this.send(command, optionsOrCb);
|
|
419
414
|
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
|
|
415
|
+
}
|
|
416
|
+
deleteEmailTemplate(args, optionsOrCb, cb) {
|
|
417
|
+
const command = new DeleteEmailTemplateCommand(args);
|
|
423
418
|
if (typeof optionsOrCb === "function") {
|
|
424
419
|
this.send(command, optionsOrCb);
|
|
425
420
|
}
|
|
426
421
|
else if (typeof cb === "function") {
|
|
427
422
|
if (typeof optionsOrCb !== "object")
|
|
428
|
-
throw new Error(
|
|
423
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
429
424
|
this.send(command, optionsOrCb || {}, cb);
|
|
430
425
|
}
|
|
431
426
|
else {
|
|
432
427
|
return this.send(command, optionsOrCb);
|
|
433
428
|
}
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
|
|
429
|
+
}
|
|
430
|
+
deleteEndpoint(args, optionsOrCb, cb) {
|
|
431
|
+
const command = new DeleteEndpointCommand(args);
|
|
437
432
|
if (typeof optionsOrCb === "function") {
|
|
438
433
|
this.send(command, optionsOrCb);
|
|
439
434
|
}
|
|
440
435
|
else if (typeof cb === "function") {
|
|
441
436
|
if (typeof optionsOrCb !== "object")
|
|
442
|
-
throw new Error(
|
|
437
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
443
438
|
this.send(command, optionsOrCb || {}, cb);
|
|
444
439
|
}
|
|
445
440
|
else {
|
|
446
441
|
return this.send(command, optionsOrCb);
|
|
447
442
|
}
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
|
|
443
|
+
}
|
|
444
|
+
deleteEventStream(args, optionsOrCb, cb) {
|
|
445
|
+
const command = new DeleteEventStreamCommand(args);
|
|
451
446
|
if (typeof optionsOrCb === "function") {
|
|
452
447
|
this.send(command, optionsOrCb);
|
|
453
448
|
}
|
|
454
449
|
else if (typeof cb === "function") {
|
|
455
450
|
if (typeof optionsOrCb !== "object")
|
|
456
|
-
throw new Error(
|
|
451
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
457
452
|
this.send(command, optionsOrCb || {}, cb);
|
|
458
453
|
}
|
|
459
454
|
else {
|
|
460
455
|
return this.send(command, optionsOrCb);
|
|
461
456
|
}
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
|
|
457
|
+
}
|
|
458
|
+
deleteGcmChannel(args, optionsOrCb, cb) {
|
|
459
|
+
const command = new DeleteGcmChannelCommand(args);
|
|
465
460
|
if (typeof optionsOrCb === "function") {
|
|
466
461
|
this.send(command, optionsOrCb);
|
|
467
462
|
}
|
|
468
463
|
else if (typeof cb === "function") {
|
|
469
464
|
if (typeof optionsOrCb !== "object")
|
|
470
|
-
throw new Error(
|
|
465
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
471
466
|
this.send(command, optionsOrCb || {}, cb);
|
|
472
467
|
}
|
|
473
468
|
else {
|
|
474
469
|
return this.send(command, optionsOrCb);
|
|
475
470
|
}
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
|
|
471
|
+
}
|
|
472
|
+
deleteInAppTemplate(args, optionsOrCb, cb) {
|
|
473
|
+
const command = new DeleteInAppTemplateCommand(args);
|
|
479
474
|
if (typeof optionsOrCb === "function") {
|
|
480
475
|
this.send(command, optionsOrCb);
|
|
481
476
|
}
|
|
482
477
|
else if (typeof cb === "function") {
|
|
483
478
|
if (typeof optionsOrCb !== "object")
|
|
484
|
-
throw new Error(
|
|
479
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
485
480
|
this.send(command, optionsOrCb || {}, cb);
|
|
486
481
|
}
|
|
487
482
|
else {
|
|
488
483
|
return this.send(command, optionsOrCb);
|
|
489
484
|
}
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
|
|
485
|
+
}
|
|
486
|
+
deleteJourney(args, optionsOrCb, cb) {
|
|
487
|
+
const command = new DeleteJourneyCommand(args);
|
|
493
488
|
if (typeof optionsOrCb === "function") {
|
|
494
489
|
this.send(command, optionsOrCb);
|
|
495
490
|
}
|
|
496
491
|
else if (typeof cb === "function") {
|
|
497
492
|
if (typeof optionsOrCb !== "object")
|
|
498
|
-
throw new Error(
|
|
493
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
499
494
|
this.send(command, optionsOrCb || {}, cb);
|
|
500
495
|
}
|
|
501
496
|
else {
|
|
502
497
|
return this.send(command, optionsOrCb);
|
|
503
498
|
}
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
|
|
499
|
+
}
|
|
500
|
+
deletePushTemplate(args, optionsOrCb, cb) {
|
|
501
|
+
const command = new DeletePushTemplateCommand(args);
|
|
507
502
|
if (typeof optionsOrCb === "function") {
|
|
508
503
|
this.send(command, optionsOrCb);
|
|
509
504
|
}
|
|
510
505
|
else if (typeof cb === "function") {
|
|
511
506
|
if (typeof optionsOrCb !== "object")
|
|
512
|
-
throw new Error(
|
|
507
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
513
508
|
this.send(command, optionsOrCb || {}, cb);
|
|
514
509
|
}
|
|
515
510
|
else {
|
|
516
511
|
return this.send(command, optionsOrCb);
|
|
517
512
|
}
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
|
|
513
|
+
}
|
|
514
|
+
deleteRecommenderConfiguration(args, optionsOrCb, cb) {
|
|
515
|
+
const command = new DeleteRecommenderConfigurationCommand(args);
|
|
521
516
|
if (typeof optionsOrCb === "function") {
|
|
522
517
|
this.send(command, optionsOrCb);
|
|
523
518
|
}
|
|
524
519
|
else if (typeof cb === "function") {
|
|
525
520
|
if (typeof optionsOrCb !== "object")
|
|
526
|
-
throw new Error(
|
|
521
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
527
522
|
this.send(command, optionsOrCb || {}, cb);
|
|
528
523
|
}
|
|
529
524
|
else {
|
|
530
525
|
return this.send(command, optionsOrCb);
|
|
531
526
|
}
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
|
|
527
|
+
}
|
|
528
|
+
deleteSegment(args, optionsOrCb, cb) {
|
|
529
|
+
const command = new DeleteSegmentCommand(args);
|
|
535
530
|
if (typeof optionsOrCb === "function") {
|
|
536
531
|
this.send(command, optionsOrCb);
|
|
537
532
|
}
|
|
538
533
|
else if (typeof cb === "function") {
|
|
539
534
|
if (typeof optionsOrCb !== "object")
|
|
540
|
-
throw new Error(
|
|
535
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
541
536
|
this.send(command, optionsOrCb || {}, cb);
|
|
542
537
|
}
|
|
543
538
|
else {
|
|
544
539
|
return this.send(command, optionsOrCb);
|
|
545
540
|
}
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
|
|
541
|
+
}
|
|
542
|
+
deleteSmsChannel(args, optionsOrCb, cb) {
|
|
543
|
+
const command = new DeleteSmsChannelCommand(args);
|
|
549
544
|
if (typeof optionsOrCb === "function") {
|
|
550
545
|
this.send(command, optionsOrCb);
|
|
551
546
|
}
|
|
552
547
|
else if (typeof cb === "function") {
|
|
553
548
|
if (typeof optionsOrCb !== "object")
|
|
554
|
-
throw new Error(
|
|
549
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
555
550
|
this.send(command, optionsOrCb || {}, cb);
|
|
556
551
|
}
|
|
557
552
|
else {
|
|
558
553
|
return this.send(command, optionsOrCb);
|
|
559
554
|
}
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
|
|
555
|
+
}
|
|
556
|
+
deleteSmsTemplate(args, optionsOrCb, cb) {
|
|
557
|
+
const command = new DeleteSmsTemplateCommand(args);
|
|
563
558
|
if (typeof optionsOrCb === "function") {
|
|
564
559
|
this.send(command, optionsOrCb);
|
|
565
560
|
}
|
|
566
561
|
else if (typeof cb === "function") {
|
|
567
562
|
if (typeof optionsOrCb !== "object")
|
|
568
|
-
throw new Error(
|
|
563
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
569
564
|
this.send(command, optionsOrCb || {}, cb);
|
|
570
565
|
}
|
|
571
566
|
else {
|
|
572
567
|
return this.send(command, optionsOrCb);
|
|
573
568
|
}
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
|
|
569
|
+
}
|
|
570
|
+
deleteUserEndpoints(args, optionsOrCb, cb) {
|
|
571
|
+
const command = new DeleteUserEndpointsCommand(args);
|
|
577
572
|
if (typeof optionsOrCb === "function") {
|
|
578
573
|
this.send(command, optionsOrCb);
|
|
579
574
|
}
|
|
580
575
|
else if (typeof cb === "function") {
|
|
581
576
|
if (typeof optionsOrCb !== "object")
|
|
582
|
-
throw new Error(
|
|
577
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
583
578
|
this.send(command, optionsOrCb || {}, cb);
|
|
584
579
|
}
|
|
585
580
|
else {
|
|
586
581
|
return this.send(command, optionsOrCb);
|
|
587
582
|
}
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
|
|
583
|
+
}
|
|
584
|
+
deleteVoiceChannel(args, optionsOrCb, cb) {
|
|
585
|
+
const command = new DeleteVoiceChannelCommand(args);
|
|
591
586
|
if (typeof optionsOrCb === "function") {
|
|
592
587
|
this.send(command, optionsOrCb);
|
|
593
588
|
}
|
|
594
589
|
else if (typeof cb === "function") {
|
|
595
590
|
if (typeof optionsOrCb !== "object")
|
|
596
|
-
throw new Error(
|
|
591
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
597
592
|
this.send(command, optionsOrCb || {}, cb);
|
|
598
593
|
}
|
|
599
594
|
else {
|
|
600
595
|
return this.send(command, optionsOrCb);
|
|
601
596
|
}
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
|
|
597
|
+
}
|
|
598
|
+
deleteVoiceTemplate(args, optionsOrCb, cb) {
|
|
599
|
+
const command = new DeleteVoiceTemplateCommand(args);
|
|
605
600
|
if (typeof optionsOrCb === "function") {
|
|
606
601
|
this.send(command, optionsOrCb);
|
|
607
602
|
}
|
|
608
603
|
else if (typeof cb === "function") {
|
|
609
604
|
if (typeof optionsOrCb !== "object")
|
|
610
|
-
throw new Error(
|
|
605
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
611
606
|
this.send(command, optionsOrCb || {}, cb);
|
|
612
607
|
}
|
|
613
608
|
else {
|
|
614
609
|
return this.send(command, optionsOrCb);
|
|
615
610
|
}
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
|
|
611
|
+
}
|
|
612
|
+
getAdmChannel(args, optionsOrCb, cb) {
|
|
613
|
+
const command = new GetAdmChannelCommand(args);
|
|
619
614
|
if (typeof optionsOrCb === "function") {
|
|
620
615
|
this.send(command, optionsOrCb);
|
|
621
616
|
}
|
|
622
617
|
else if (typeof cb === "function") {
|
|
623
618
|
if (typeof optionsOrCb !== "object")
|
|
624
|
-
throw new Error(
|
|
619
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
625
620
|
this.send(command, optionsOrCb || {}, cb);
|
|
626
621
|
}
|
|
627
622
|
else {
|
|
628
623
|
return this.send(command, optionsOrCb);
|
|
629
624
|
}
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
|
|
625
|
+
}
|
|
626
|
+
getApnsChannel(args, optionsOrCb, cb) {
|
|
627
|
+
const command = new GetApnsChannelCommand(args);
|
|
633
628
|
if (typeof optionsOrCb === "function") {
|
|
634
629
|
this.send(command, optionsOrCb);
|
|
635
630
|
}
|
|
636
631
|
else if (typeof cb === "function") {
|
|
637
632
|
if (typeof optionsOrCb !== "object")
|
|
638
|
-
throw new Error(
|
|
633
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
639
634
|
this.send(command, optionsOrCb || {}, cb);
|
|
640
635
|
}
|
|
641
636
|
else {
|
|
642
637
|
return this.send(command, optionsOrCb);
|
|
643
638
|
}
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
|
|
639
|
+
}
|
|
640
|
+
getApnsSandboxChannel(args, optionsOrCb, cb) {
|
|
641
|
+
const command = new GetApnsSandboxChannelCommand(args);
|
|
647
642
|
if (typeof optionsOrCb === "function") {
|
|
648
643
|
this.send(command, optionsOrCb);
|
|
649
644
|
}
|
|
650
645
|
else if (typeof cb === "function") {
|
|
651
646
|
if (typeof optionsOrCb !== "object")
|
|
652
|
-
throw new Error(
|
|
647
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
653
648
|
this.send(command, optionsOrCb || {}, cb);
|
|
654
649
|
}
|
|
655
650
|
else {
|
|
656
651
|
return this.send(command, optionsOrCb);
|
|
657
652
|
}
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
|
|
653
|
+
}
|
|
654
|
+
getApnsVoipChannel(args, optionsOrCb, cb) {
|
|
655
|
+
const command = new GetApnsVoipChannelCommand(args);
|
|
661
656
|
if (typeof optionsOrCb === "function") {
|
|
662
657
|
this.send(command, optionsOrCb);
|
|
663
658
|
}
|
|
664
659
|
else if (typeof cb === "function") {
|
|
665
660
|
if (typeof optionsOrCb !== "object")
|
|
666
|
-
throw new Error(
|
|
661
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
667
662
|
this.send(command, optionsOrCb || {}, cb);
|
|
668
663
|
}
|
|
669
664
|
else {
|
|
670
665
|
return this.send(command, optionsOrCb);
|
|
671
666
|
}
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
|
|
667
|
+
}
|
|
668
|
+
getApnsVoipSandboxChannel(args, optionsOrCb, cb) {
|
|
669
|
+
const command = new GetApnsVoipSandboxChannelCommand(args);
|
|
675
670
|
if (typeof optionsOrCb === "function") {
|
|
676
671
|
this.send(command, optionsOrCb);
|
|
677
672
|
}
|
|
678
673
|
else if (typeof cb === "function") {
|
|
679
674
|
if (typeof optionsOrCb !== "object")
|
|
680
|
-
throw new Error(
|
|
675
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
681
676
|
this.send(command, optionsOrCb || {}, cb);
|
|
682
677
|
}
|
|
683
678
|
else {
|
|
684
679
|
return this.send(command, optionsOrCb);
|
|
685
680
|
}
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
|
|
681
|
+
}
|
|
682
|
+
getApp(args, optionsOrCb, cb) {
|
|
683
|
+
const command = new GetAppCommand(args);
|
|
689
684
|
if (typeof optionsOrCb === "function") {
|
|
690
685
|
this.send(command, optionsOrCb);
|
|
691
686
|
}
|
|
692
687
|
else if (typeof cb === "function") {
|
|
693
688
|
if (typeof optionsOrCb !== "object")
|
|
694
|
-
throw new Error(
|
|
689
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
695
690
|
this.send(command, optionsOrCb || {}, cb);
|
|
696
691
|
}
|
|
697
692
|
else {
|
|
698
693
|
return this.send(command, optionsOrCb);
|
|
699
694
|
}
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
|
|
695
|
+
}
|
|
696
|
+
getApplicationDateRangeKpi(args, optionsOrCb, cb) {
|
|
697
|
+
const command = new GetApplicationDateRangeKpiCommand(args);
|
|
703
698
|
if (typeof optionsOrCb === "function") {
|
|
704
699
|
this.send(command, optionsOrCb);
|
|
705
700
|
}
|
|
706
701
|
else if (typeof cb === "function") {
|
|
707
702
|
if (typeof optionsOrCb !== "object")
|
|
708
|
-
throw new Error(
|
|
703
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
709
704
|
this.send(command, optionsOrCb || {}, cb);
|
|
710
705
|
}
|
|
711
706
|
else {
|
|
712
707
|
return this.send(command, optionsOrCb);
|
|
713
708
|
}
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
|
|
709
|
+
}
|
|
710
|
+
getApplicationSettings(args, optionsOrCb, cb) {
|
|
711
|
+
const command = new GetApplicationSettingsCommand(args);
|
|
717
712
|
if (typeof optionsOrCb === "function") {
|
|
718
713
|
this.send(command, optionsOrCb);
|
|
719
714
|
}
|
|
720
715
|
else if (typeof cb === "function") {
|
|
721
716
|
if (typeof optionsOrCb !== "object")
|
|
722
|
-
throw new Error(
|
|
717
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
723
718
|
this.send(command, optionsOrCb || {}, cb);
|
|
724
719
|
}
|
|
725
720
|
else {
|
|
726
721
|
return this.send(command, optionsOrCb);
|
|
727
722
|
}
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
|
|
723
|
+
}
|
|
724
|
+
getApps(args, optionsOrCb, cb) {
|
|
725
|
+
const command = new GetAppsCommand(args);
|
|
731
726
|
if (typeof optionsOrCb === "function") {
|
|
732
727
|
this.send(command, optionsOrCb);
|
|
733
728
|
}
|
|
734
729
|
else if (typeof cb === "function") {
|
|
735
730
|
if (typeof optionsOrCb !== "object")
|
|
736
|
-
throw new Error(
|
|
731
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
737
732
|
this.send(command, optionsOrCb || {}, cb);
|
|
738
733
|
}
|
|
739
734
|
else {
|
|
740
735
|
return this.send(command, optionsOrCb);
|
|
741
736
|
}
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
|
|
737
|
+
}
|
|
738
|
+
getBaiduChannel(args, optionsOrCb, cb) {
|
|
739
|
+
const command = new GetBaiduChannelCommand(args);
|
|
745
740
|
if (typeof optionsOrCb === "function") {
|
|
746
741
|
this.send(command, optionsOrCb);
|
|
747
742
|
}
|
|
748
743
|
else if (typeof cb === "function") {
|
|
749
744
|
if (typeof optionsOrCb !== "object")
|
|
750
|
-
throw new Error(
|
|
745
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
751
746
|
this.send(command, optionsOrCb || {}, cb);
|
|
752
747
|
}
|
|
753
748
|
else {
|
|
754
749
|
return this.send(command, optionsOrCb);
|
|
755
750
|
}
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
|
|
751
|
+
}
|
|
752
|
+
getCampaign(args, optionsOrCb, cb) {
|
|
753
|
+
const command = new GetCampaignCommand(args);
|
|
759
754
|
if (typeof optionsOrCb === "function") {
|
|
760
755
|
this.send(command, optionsOrCb);
|
|
761
756
|
}
|
|
762
757
|
else if (typeof cb === "function") {
|
|
763
758
|
if (typeof optionsOrCb !== "object")
|
|
764
|
-
throw new Error(
|
|
759
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
765
760
|
this.send(command, optionsOrCb || {}, cb);
|
|
766
761
|
}
|
|
767
762
|
else {
|
|
768
763
|
return this.send(command, optionsOrCb);
|
|
769
764
|
}
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
|
|
765
|
+
}
|
|
766
|
+
getCampaignActivities(args, optionsOrCb, cb) {
|
|
767
|
+
const command = new GetCampaignActivitiesCommand(args);
|
|
773
768
|
if (typeof optionsOrCb === "function") {
|
|
774
769
|
this.send(command, optionsOrCb);
|
|
775
770
|
}
|
|
776
771
|
else if (typeof cb === "function") {
|
|
777
772
|
if (typeof optionsOrCb !== "object")
|
|
778
|
-
throw new Error(
|
|
773
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
779
774
|
this.send(command, optionsOrCb || {}, cb);
|
|
780
775
|
}
|
|
781
776
|
else {
|
|
782
777
|
return this.send(command, optionsOrCb);
|
|
783
778
|
}
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
|
|
779
|
+
}
|
|
780
|
+
getCampaignDateRangeKpi(args, optionsOrCb, cb) {
|
|
781
|
+
const command = new GetCampaignDateRangeKpiCommand(args);
|
|
787
782
|
if (typeof optionsOrCb === "function") {
|
|
788
783
|
this.send(command, optionsOrCb);
|
|
789
784
|
}
|
|
790
785
|
else if (typeof cb === "function") {
|
|
791
786
|
if (typeof optionsOrCb !== "object")
|
|
792
|
-
throw new Error(
|
|
787
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
793
788
|
this.send(command, optionsOrCb || {}, cb);
|
|
794
789
|
}
|
|
795
790
|
else {
|
|
796
791
|
return this.send(command, optionsOrCb);
|
|
797
792
|
}
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
|
|
793
|
+
}
|
|
794
|
+
getCampaigns(args, optionsOrCb, cb) {
|
|
795
|
+
const command = new GetCampaignsCommand(args);
|
|
801
796
|
if (typeof optionsOrCb === "function") {
|
|
802
797
|
this.send(command, optionsOrCb);
|
|
803
798
|
}
|
|
804
799
|
else if (typeof cb === "function") {
|
|
805
800
|
if (typeof optionsOrCb !== "object")
|
|
806
|
-
throw new Error(
|
|
801
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
807
802
|
this.send(command, optionsOrCb || {}, cb);
|
|
808
803
|
}
|
|
809
804
|
else {
|
|
810
805
|
return this.send(command, optionsOrCb);
|
|
811
806
|
}
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
|
|
807
|
+
}
|
|
808
|
+
getCampaignVersion(args, optionsOrCb, cb) {
|
|
809
|
+
const command = new GetCampaignVersionCommand(args);
|
|
815
810
|
if (typeof optionsOrCb === "function") {
|
|
816
811
|
this.send(command, optionsOrCb);
|
|
817
812
|
}
|
|
818
813
|
else if (typeof cb === "function") {
|
|
819
814
|
if (typeof optionsOrCb !== "object")
|
|
820
|
-
throw new Error(
|
|
815
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
821
816
|
this.send(command, optionsOrCb || {}, cb);
|
|
822
817
|
}
|
|
823
818
|
else {
|
|
824
819
|
return this.send(command, optionsOrCb);
|
|
825
820
|
}
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
|
|
821
|
+
}
|
|
822
|
+
getCampaignVersions(args, optionsOrCb, cb) {
|
|
823
|
+
const command = new GetCampaignVersionsCommand(args);
|
|
829
824
|
if (typeof optionsOrCb === "function") {
|
|
830
825
|
this.send(command, optionsOrCb);
|
|
831
826
|
}
|
|
832
827
|
else if (typeof cb === "function") {
|
|
833
828
|
if (typeof optionsOrCb !== "object")
|
|
834
|
-
throw new Error(
|
|
829
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
835
830
|
this.send(command, optionsOrCb || {}, cb);
|
|
836
831
|
}
|
|
837
832
|
else {
|
|
838
833
|
return this.send(command, optionsOrCb);
|
|
839
834
|
}
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
|
|
835
|
+
}
|
|
836
|
+
getChannels(args, optionsOrCb, cb) {
|
|
837
|
+
const command = new GetChannelsCommand(args);
|
|
843
838
|
if (typeof optionsOrCb === "function") {
|
|
844
839
|
this.send(command, optionsOrCb);
|
|
845
840
|
}
|
|
846
841
|
else if (typeof cb === "function") {
|
|
847
842
|
if (typeof optionsOrCb !== "object")
|
|
848
|
-
throw new Error(
|
|
843
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
849
844
|
this.send(command, optionsOrCb || {}, cb);
|
|
850
845
|
}
|
|
851
846
|
else {
|
|
852
847
|
return this.send(command, optionsOrCb);
|
|
853
848
|
}
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
|
|
849
|
+
}
|
|
850
|
+
getEmailChannel(args, optionsOrCb, cb) {
|
|
851
|
+
const command = new GetEmailChannelCommand(args);
|
|
857
852
|
if (typeof optionsOrCb === "function") {
|
|
858
853
|
this.send(command, optionsOrCb);
|
|
859
854
|
}
|
|
860
855
|
else if (typeof cb === "function") {
|
|
861
856
|
if (typeof optionsOrCb !== "object")
|
|
862
|
-
throw new Error(
|
|
857
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
863
858
|
this.send(command, optionsOrCb || {}, cb);
|
|
864
859
|
}
|
|
865
860
|
else {
|
|
866
861
|
return this.send(command, optionsOrCb);
|
|
867
862
|
}
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
|
|
863
|
+
}
|
|
864
|
+
getEmailTemplate(args, optionsOrCb, cb) {
|
|
865
|
+
const command = new GetEmailTemplateCommand(args);
|
|
871
866
|
if (typeof optionsOrCb === "function") {
|
|
872
867
|
this.send(command, optionsOrCb);
|
|
873
868
|
}
|
|
874
869
|
else if (typeof cb === "function") {
|
|
875
870
|
if (typeof optionsOrCb !== "object")
|
|
876
|
-
throw new Error(
|
|
871
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
877
872
|
this.send(command, optionsOrCb || {}, cb);
|
|
878
873
|
}
|
|
879
874
|
else {
|
|
880
875
|
return this.send(command, optionsOrCb);
|
|
881
876
|
}
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
|
|
877
|
+
}
|
|
878
|
+
getEndpoint(args, optionsOrCb, cb) {
|
|
879
|
+
const command = new GetEndpointCommand(args);
|
|
885
880
|
if (typeof optionsOrCb === "function") {
|
|
886
881
|
this.send(command, optionsOrCb);
|
|
887
882
|
}
|
|
888
883
|
else if (typeof cb === "function") {
|
|
889
884
|
if (typeof optionsOrCb !== "object")
|
|
890
|
-
throw new Error(
|
|
885
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
891
886
|
this.send(command, optionsOrCb || {}, cb);
|
|
892
887
|
}
|
|
893
888
|
else {
|
|
894
889
|
return this.send(command, optionsOrCb);
|
|
895
890
|
}
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
|
|
891
|
+
}
|
|
892
|
+
getEventStream(args, optionsOrCb, cb) {
|
|
893
|
+
const command = new GetEventStreamCommand(args);
|
|
899
894
|
if (typeof optionsOrCb === "function") {
|
|
900
895
|
this.send(command, optionsOrCb);
|
|
901
896
|
}
|
|
902
897
|
else if (typeof cb === "function") {
|
|
903
898
|
if (typeof optionsOrCb !== "object")
|
|
904
|
-
throw new Error(
|
|
899
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
905
900
|
this.send(command, optionsOrCb || {}, cb);
|
|
906
901
|
}
|
|
907
902
|
else {
|
|
908
903
|
return this.send(command, optionsOrCb);
|
|
909
904
|
}
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
|
|
905
|
+
}
|
|
906
|
+
getExportJob(args, optionsOrCb, cb) {
|
|
907
|
+
const command = new GetExportJobCommand(args);
|
|
913
908
|
if (typeof optionsOrCb === "function") {
|
|
914
909
|
this.send(command, optionsOrCb);
|
|
915
910
|
}
|
|
916
911
|
else if (typeof cb === "function") {
|
|
917
912
|
if (typeof optionsOrCb !== "object")
|
|
918
|
-
throw new Error(
|
|
913
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
919
914
|
this.send(command, optionsOrCb || {}, cb);
|
|
920
915
|
}
|
|
921
916
|
else {
|
|
922
917
|
return this.send(command, optionsOrCb);
|
|
923
918
|
}
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
|
|
919
|
+
}
|
|
920
|
+
getExportJobs(args, optionsOrCb, cb) {
|
|
921
|
+
const command = new GetExportJobsCommand(args);
|
|
927
922
|
if (typeof optionsOrCb === "function") {
|
|
928
923
|
this.send(command, optionsOrCb);
|
|
929
924
|
}
|
|
930
925
|
else if (typeof cb === "function") {
|
|
931
926
|
if (typeof optionsOrCb !== "object")
|
|
932
|
-
throw new Error(
|
|
927
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
933
928
|
this.send(command, optionsOrCb || {}, cb);
|
|
934
929
|
}
|
|
935
930
|
else {
|
|
936
931
|
return this.send(command, optionsOrCb);
|
|
937
932
|
}
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
|
|
933
|
+
}
|
|
934
|
+
getGcmChannel(args, optionsOrCb, cb) {
|
|
935
|
+
const command = new GetGcmChannelCommand(args);
|
|
941
936
|
if (typeof optionsOrCb === "function") {
|
|
942
937
|
this.send(command, optionsOrCb);
|
|
943
938
|
}
|
|
944
939
|
else if (typeof cb === "function") {
|
|
945
940
|
if (typeof optionsOrCb !== "object")
|
|
946
|
-
throw new Error(
|
|
941
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
947
942
|
this.send(command, optionsOrCb || {}, cb);
|
|
948
943
|
}
|
|
949
944
|
else {
|
|
950
945
|
return this.send(command, optionsOrCb);
|
|
951
946
|
}
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
|
|
947
|
+
}
|
|
948
|
+
getImportJob(args, optionsOrCb, cb) {
|
|
949
|
+
const command = new GetImportJobCommand(args);
|
|
955
950
|
if (typeof optionsOrCb === "function") {
|
|
956
951
|
this.send(command, optionsOrCb);
|
|
957
952
|
}
|
|
958
953
|
else if (typeof cb === "function") {
|
|
959
954
|
if (typeof optionsOrCb !== "object")
|
|
960
|
-
throw new Error(
|
|
955
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
961
956
|
this.send(command, optionsOrCb || {}, cb);
|
|
962
957
|
}
|
|
963
958
|
else {
|
|
964
959
|
return this.send(command, optionsOrCb);
|
|
965
960
|
}
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
|
|
961
|
+
}
|
|
962
|
+
getImportJobs(args, optionsOrCb, cb) {
|
|
963
|
+
const command = new GetImportJobsCommand(args);
|
|
969
964
|
if (typeof optionsOrCb === "function") {
|
|
970
965
|
this.send(command, optionsOrCb);
|
|
971
966
|
}
|
|
972
967
|
else if (typeof cb === "function") {
|
|
973
968
|
if (typeof optionsOrCb !== "object")
|
|
974
|
-
throw new Error(
|
|
969
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
975
970
|
this.send(command, optionsOrCb || {}, cb);
|
|
976
971
|
}
|
|
977
972
|
else {
|
|
978
973
|
return this.send(command, optionsOrCb);
|
|
979
974
|
}
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
|
|
975
|
+
}
|
|
976
|
+
getInAppMessages(args, optionsOrCb, cb) {
|
|
977
|
+
const command = new GetInAppMessagesCommand(args);
|
|
983
978
|
if (typeof optionsOrCb === "function") {
|
|
984
979
|
this.send(command, optionsOrCb);
|
|
985
980
|
}
|
|
986
981
|
else if (typeof cb === "function") {
|
|
987
982
|
if (typeof optionsOrCb !== "object")
|
|
988
|
-
throw new Error(
|
|
983
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
989
984
|
this.send(command, optionsOrCb || {}, cb);
|
|
990
985
|
}
|
|
991
986
|
else {
|
|
992
987
|
return this.send(command, optionsOrCb);
|
|
993
988
|
}
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
|
|
989
|
+
}
|
|
990
|
+
getInAppTemplate(args, optionsOrCb, cb) {
|
|
991
|
+
const command = new GetInAppTemplateCommand(args);
|
|
997
992
|
if (typeof optionsOrCb === "function") {
|
|
998
993
|
this.send(command, optionsOrCb);
|
|
999
994
|
}
|
|
1000
995
|
else if (typeof cb === "function") {
|
|
1001
996
|
if (typeof optionsOrCb !== "object")
|
|
1002
|
-
throw new Error(
|
|
997
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1003
998
|
this.send(command, optionsOrCb || {}, cb);
|
|
1004
999
|
}
|
|
1005
1000
|
else {
|
|
1006
1001
|
return this.send(command, optionsOrCb);
|
|
1007
1002
|
}
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
|
|
1003
|
+
}
|
|
1004
|
+
getJourney(args, optionsOrCb, cb) {
|
|
1005
|
+
const command = new GetJourneyCommand(args);
|
|
1011
1006
|
if (typeof optionsOrCb === "function") {
|
|
1012
1007
|
this.send(command, optionsOrCb);
|
|
1013
1008
|
}
|
|
1014
1009
|
else if (typeof cb === "function") {
|
|
1015
1010
|
if (typeof optionsOrCb !== "object")
|
|
1016
|
-
throw new Error(
|
|
1011
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1017
1012
|
this.send(command, optionsOrCb || {}, cb);
|
|
1018
1013
|
}
|
|
1019
1014
|
else {
|
|
1020
1015
|
return this.send(command, optionsOrCb);
|
|
1021
1016
|
}
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
|
|
1017
|
+
}
|
|
1018
|
+
getJourneyDateRangeKpi(args, optionsOrCb, cb) {
|
|
1019
|
+
const command = new GetJourneyDateRangeKpiCommand(args);
|
|
1025
1020
|
if (typeof optionsOrCb === "function") {
|
|
1026
1021
|
this.send(command, optionsOrCb);
|
|
1027
1022
|
}
|
|
1028
1023
|
else if (typeof cb === "function") {
|
|
1029
1024
|
if (typeof optionsOrCb !== "object")
|
|
1030
|
-
throw new Error(
|
|
1025
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1031
1026
|
this.send(command, optionsOrCb || {}, cb);
|
|
1032
1027
|
}
|
|
1033
1028
|
else {
|
|
1034
1029
|
return this.send(command, optionsOrCb);
|
|
1035
1030
|
}
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
|
|
1031
|
+
}
|
|
1032
|
+
getJourneyExecutionActivityMetrics(args, optionsOrCb, cb) {
|
|
1033
|
+
const command = new GetJourneyExecutionActivityMetricsCommand(args);
|
|
1039
1034
|
if (typeof optionsOrCb === "function") {
|
|
1040
1035
|
this.send(command, optionsOrCb);
|
|
1041
1036
|
}
|
|
1042
1037
|
else if (typeof cb === "function") {
|
|
1043
1038
|
if (typeof optionsOrCb !== "object")
|
|
1044
|
-
throw new Error(
|
|
1039
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1045
1040
|
this.send(command, optionsOrCb || {}, cb);
|
|
1046
1041
|
}
|
|
1047
1042
|
else {
|
|
1048
1043
|
return this.send(command, optionsOrCb);
|
|
1049
1044
|
}
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
|
|
1045
|
+
}
|
|
1046
|
+
getJourneyExecutionMetrics(args, optionsOrCb, cb) {
|
|
1047
|
+
const command = new GetJourneyExecutionMetricsCommand(args);
|
|
1053
1048
|
if (typeof optionsOrCb === "function") {
|
|
1054
1049
|
this.send(command, optionsOrCb);
|
|
1055
1050
|
}
|
|
1056
1051
|
else if (typeof cb === "function") {
|
|
1057
1052
|
if (typeof optionsOrCb !== "object")
|
|
1058
|
-
throw new Error(
|
|
1053
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1059
1054
|
this.send(command, optionsOrCb || {}, cb);
|
|
1060
1055
|
}
|
|
1061
1056
|
else {
|
|
1062
1057
|
return this.send(command, optionsOrCb);
|
|
1063
1058
|
}
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1059
|
+
}
|
|
1060
|
+
getPushTemplate(args, optionsOrCb, cb) {
|
|
1061
|
+
const command = new GetPushTemplateCommand(args);
|
|
1067
1062
|
if (typeof optionsOrCb === "function") {
|
|
1068
1063
|
this.send(command, optionsOrCb);
|
|
1069
1064
|
}
|
|
1070
1065
|
else if (typeof cb === "function") {
|
|
1071
1066
|
if (typeof optionsOrCb !== "object")
|
|
1072
|
-
throw new Error(
|
|
1067
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1073
1068
|
this.send(command, optionsOrCb || {}, cb);
|
|
1074
1069
|
}
|
|
1075
1070
|
else {
|
|
1076
1071
|
return this.send(command, optionsOrCb);
|
|
1077
1072
|
}
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
|
|
1073
|
+
}
|
|
1074
|
+
getRecommenderConfiguration(args, optionsOrCb, cb) {
|
|
1075
|
+
const command = new GetRecommenderConfigurationCommand(args);
|
|
1081
1076
|
if (typeof optionsOrCb === "function") {
|
|
1082
1077
|
this.send(command, optionsOrCb);
|
|
1083
1078
|
}
|
|
1084
1079
|
else if (typeof cb === "function") {
|
|
1085
1080
|
if (typeof optionsOrCb !== "object")
|
|
1086
|
-
throw new Error(
|
|
1081
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1087
1082
|
this.send(command, optionsOrCb || {}, cb);
|
|
1088
1083
|
}
|
|
1089
1084
|
else {
|
|
1090
1085
|
return this.send(command, optionsOrCb);
|
|
1091
1086
|
}
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
|
|
1087
|
+
}
|
|
1088
|
+
getRecommenderConfigurations(args, optionsOrCb, cb) {
|
|
1089
|
+
const command = new GetRecommenderConfigurationsCommand(args);
|
|
1095
1090
|
if (typeof optionsOrCb === "function") {
|
|
1096
1091
|
this.send(command, optionsOrCb);
|
|
1097
1092
|
}
|
|
1098
1093
|
else if (typeof cb === "function") {
|
|
1099
1094
|
if (typeof optionsOrCb !== "object")
|
|
1100
|
-
throw new Error(
|
|
1095
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1101
1096
|
this.send(command, optionsOrCb || {}, cb);
|
|
1102
1097
|
}
|
|
1103
1098
|
else {
|
|
1104
1099
|
return this.send(command, optionsOrCb);
|
|
1105
1100
|
}
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
|
|
1101
|
+
}
|
|
1102
|
+
getSegment(args, optionsOrCb, cb) {
|
|
1103
|
+
const command = new GetSegmentCommand(args);
|
|
1109
1104
|
if (typeof optionsOrCb === "function") {
|
|
1110
1105
|
this.send(command, optionsOrCb);
|
|
1111
1106
|
}
|
|
1112
1107
|
else if (typeof cb === "function") {
|
|
1113
1108
|
if (typeof optionsOrCb !== "object")
|
|
1114
|
-
throw new Error(
|
|
1109
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1115
1110
|
this.send(command, optionsOrCb || {}, cb);
|
|
1116
1111
|
}
|
|
1117
1112
|
else {
|
|
1118
1113
|
return this.send(command, optionsOrCb);
|
|
1119
1114
|
}
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
|
|
1115
|
+
}
|
|
1116
|
+
getSegmentExportJobs(args, optionsOrCb, cb) {
|
|
1117
|
+
const command = new GetSegmentExportJobsCommand(args);
|
|
1123
1118
|
if (typeof optionsOrCb === "function") {
|
|
1124
1119
|
this.send(command, optionsOrCb);
|
|
1125
1120
|
}
|
|
1126
1121
|
else if (typeof cb === "function") {
|
|
1127
1122
|
if (typeof optionsOrCb !== "object")
|
|
1128
|
-
throw new Error(
|
|
1123
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1129
1124
|
this.send(command, optionsOrCb || {}, cb);
|
|
1130
1125
|
}
|
|
1131
1126
|
else {
|
|
1132
1127
|
return this.send(command, optionsOrCb);
|
|
1133
1128
|
}
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
|
|
1129
|
+
}
|
|
1130
|
+
getSegmentImportJobs(args, optionsOrCb, cb) {
|
|
1131
|
+
const command = new GetSegmentImportJobsCommand(args);
|
|
1137
1132
|
if (typeof optionsOrCb === "function") {
|
|
1138
1133
|
this.send(command, optionsOrCb);
|
|
1139
1134
|
}
|
|
1140
1135
|
else if (typeof cb === "function") {
|
|
1141
1136
|
if (typeof optionsOrCb !== "object")
|
|
1142
|
-
throw new Error(
|
|
1137
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1143
1138
|
this.send(command, optionsOrCb || {}, cb);
|
|
1144
1139
|
}
|
|
1145
1140
|
else {
|
|
1146
1141
|
return this.send(command, optionsOrCb);
|
|
1147
1142
|
}
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
|
|
1143
|
+
}
|
|
1144
|
+
getSegments(args, optionsOrCb, cb) {
|
|
1145
|
+
const command = new GetSegmentsCommand(args);
|
|
1151
1146
|
if (typeof optionsOrCb === "function") {
|
|
1152
1147
|
this.send(command, optionsOrCb);
|
|
1153
1148
|
}
|
|
1154
1149
|
else if (typeof cb === "function") {
|
|
1155
1150
|
if (typeof optionsOrCb !== "object")
|
|
1156
|
-
throw new Error(
|
|
1151
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1157
1152
|
this.send(command, optionsOrCb || {}, cb);
|
|
1158
1153
|
}
|
|
1159
1154
|
else {
|
|
1160
1155
|
return this.send(command, optionsOrCb);
|
|
1161
1156
|
}
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
|
|
1157
|
+
}
|
|
1158
|
+
getSegmentVersion(args, optionsOrCb, cb) {
|
|
1159
|
+
const command = new GetSegmentVersionCommand(args);
|
|
1165
1160
|
if (typeof optionsOrCb === "function") {
|
|
1166
1161
|
this.send(command, optionsOrCb);
|
|
1167
1162
|
}
|
|
1168
1163
|
else if (typeof cb === "function") {
|
|
1169
1164
|
if (typeof optionsOrCb !== "object")
|
|
1170
|
-
throw new Error(
|
|
1165
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1171
1166
|
this.send(command, optionsOrCb || {}, cb);
|
|
1172
1167
|
}
|
|
1173
1168
|
else {
|
|
1174
1169
|
return this.send(command, optionsOrCb);
|
|
1175
1170
|
}
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
|
|
1171
|
+
}
|
|
1172
|
+
getSegmentVersions(args, optionsOrCb, cb) {
|
|
1173
|
+
const command = new GetSegmentVersionsCommand(args);
|
|
1179
1174
|
if (typeof optionsOrCb === "function") {
|
|
1180
1175
|
this.send(command, optionsOrCb);
|
|
1181
1176
|
}
|
|
1182
1177
|
else if (typeof cb === "function") {
|
|
1183
1178
|
if (typeof optionsOrCb !== "object")
|
|
1184
|
-
throw new Error(
|
|
1179
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1185
1180
|
this.send(command, optionsOrCb || {}, cb);
|
|
1186
1181
|
}
|
|
1187
1182
|
else {
|
|
1188
1183
|
return this.send(command, optionsOrCb);
|
|
1189
1184
|
}
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
|
|
1185
|
+
}
|
|
1186
|
+
getSmsChannel(args, optionsOrCb, cb) {
|
|
1187
|
+
const command = new GetSmsChannelCommand(args);
|
|
1193
1188
|
if (typeof optionsOrCb === "function") {
|
|
1194
1189
|
this.send(command, optionsOrCb);
|
|
1195
1190
|
}
|
|
1196
1191
|
else if (typeof cb === "function") {
|
|
1197
1192
|
if (typeof optionsOrCb !== "object")
|
|
1198
|
-
throw new Error(
|
|
1193
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1199
1194
|
this.send(command, optionsOrCb || {}, cb);
|
|
1200
1195
|
}
|
|
1201
1196
|
else {
|
|
1202
1197
|
return this.send(command, optionsOrCb);
|
|
1203
1198
|
}
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
|
|
1199
|
+
}
|
|
1200
|
+
getSmsTemplate(args, optionsOrCb, cb) {
|
|
1201
|
+
const command = new GetSmsTemplateCommand(args);
|
|
1207
1202
|
if (typeof optionsOrCb === "function") {
|
|
1208
1203
|
this.send(command, optionsOrCb);
|
|
1209
1204
|
}
|
|
1210
1205
|
else if (typeof cb === "function") {
|
|
1211
1206
|
if (typeof optionsOrCb !== "object")
|
|
1212
|
-
throw new Error(
|
|
1207
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1213
1208
|
this.send(command, optionsOrCb || {}, cb);
|
|
1214
1209
|
}
|
|
1215
1210
|
else {
|
|
1216
1211
|
return this.send(command, optionsOrCb);
|
|
1217
1212
|
}
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
|
|
1213
|
+
}
|
|
1214
|
+
getUserEndpoints(args, optionsOrCb, cb) {
|
|
1215
|
+
const command = new GetUserEndpointsCommand(args);
|
|
1221
1216
|
if (typeof optionsOrCb === "function") {
|
|
1222
1217
|
this.send(command, optionsOrCb);
|
|
1223
1218
|
}
|
|
1224
1219
|
else if (typeof cb === "function") {
|
|
1225
1220
|
if (typeof optionsOrCb !== "object")
|
|
1226
|
-
throw new Error(
|
|
1221
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1227
1222
|
this.send(command, optionsOrCb || {}, cb);
|
|
1228
1223
|
}
|
|
1229
1224
|
else {
|
|
1230
1225
|
return this.send(command, optionsOrCb);
|
|
1231
1226
|
}
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
|
|
1227
|
+
}
|
|
1228
|
+
getVoiceChannel(args, optionsOrCb, cb) {
|
|
1229
|
+
const command = new GetVoiceChannelCommand(args);
|
|
1235
1230
|
if (typeof optionsOrCb === "function") {
|
|
1236
1231
|
this.send(command, optionsOrCb);
|
|
1237
1232
|
}
|
|
1238
1233
|
else if (typeof cb === "function") {
|
|
1239
1234
|
if (typeof optionsOrCb !== "object")
|
|
1240
|
-
throw new Error(
|
|
1235
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1241
1236
|
this.send(command, optionsOrCb || {}, cb);
|
|
1242
1237
|
}
|
|
1243
1238
|
else {
|
|
1244
1239
|
return this.send(command, optionsOrCb);
|
|
1245
1240
|
}
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
|
|
1241
|
+
}
|
|
1242
|
+
getVoiceTemplate(args, optionsOrCb, cb) {
|
|
1243
|
+
const command = new GetVoiceTemplateCommand(args);
|
|
1249
1244
|
if (typeof optionsOrCb === "function") {
|
|
1250
1245
|
this.send(command, optionsOrCb);
|
|
1251
1246
|
}
|
|
1252
1247
|
else if (typeof cb === "function") {
|
|
1253
1248
|
if (typeof optionsOrCb !== "object")
|
|
1254
|
-
throw new Error(
|
|
1249
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1255
1250
|
this.send(command, optionsOrCb || {}, cb);
|
|
1256
1251
|
}
|
|
1257
1252
|
else {
|
|
1258
1253
|
return this.send(command, optionsOrCb);
|
|
1259
1254
|
}
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
|
|
1255
|
+
}
|
|
1256
|
+
listJourneys(args, optionsOrCb, cb) {
|
|
1257
|
+
const command = new ListJourneysCommand(args);
|
|
1263
1258
|
if (typeof optionsOrCb === "function") {
|
|
1264
1259
|
this.send(command, optionsOrCb);
|
|
1265
1260
|
}
|
|
1266
1261
|
else if (typeof cb === "function") {
|
|
1267
1262
|
if (typeof optionsOrCb !== "object")
|
|
1268
|
-
throw new Error(
|
|
1263
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1269
1264
|
this.send(command, optionsOrCb || {}, cb);
|
|
1270
1265
|
}
|
|
1271
1266
|
else {
|
|
1272
1267
|
return this.send(command, optionsOrCb);
|
|
1273
1268
|
}
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
|
|
1269
|
+
}
|
|
1270
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
1271
|
+
const command = new ListTagsForResourceCommand(args);
|
|
1277
1272
|
if (typeof optionsOrCb === "function") {
|
|
1278
1273
|
this.send(command, optionsOrCb);
|
|
1279
1274
|
}
|
|
1280
1275
|
else if (typeof cb === "function") {
|
|
1281
1276
|
if (typeof optionsOrCb !== "object")
|
|
1282
|
-
throw new Error(
|
|
1277
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1283
1278
|
this.send(command, optionsOrCb || {}, cb);
|
|
1284
1279
|
}
|
|
1285
1280
|
else {
|
|
1286
1281
|
return this.send(command, optionsOrCb);
|
|
1287
1282
|
}
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
|
|
1283
|
+
}
|
|
1284
|
+
listTemplates(args, optionsOrCb, cb) {
|
|
1285
|
+
const command = new ListTemplatesCommand(args);
|
|
1291
1286
|
if (typeof optionsOrCb === "function") {
|
|
1292
1287
|
this.send(command, optionsOrCb);
|
|
1293
1288
|
}
|
|
1294
1289
|
else if (typeof cb === "function") {
|
|
1295
1290
|
if (typeof optionsOrCb !== "object")
|
|
1296
|
-
throw new Error(
|
|
1291
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1297
1292
|
this.send(command, optionsOrCb || {}, cb);
|
|
1298
1293
|
}
|
|
1299
1294
|
else {
|
|
1300
1295
|
return this.send(command, optionsOrCb);
|
|
1301
1296
|
}
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
|
|
1297
|
+
}
|
|
1298
|
+
listTemplateVersions(args, optionsOrCb, cb) {
|
|
1299
|
+
const command = new ListTemplateVersionsCommand(args);
|
|
1305
1300
|
if (typeof optionsOrCb === "function") {
|
|
1306
1301
|
this.send(command, optionsOrCb);
|
|
1307
1302
|
}
|
|
1308
1303
|
else if (typeof cb === "function") {
|
|
1309
1304
|
if (typeof optionsOrCb !== "object")
|
|
1310
|
-
throw new Error(
|
|
1305
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1311
1306
|
this.send(command, optionsOrCb || {}, cb);
|
|
1312
1307
|
}
|
|
1313
1308
|
else {
|
|
1314
1309
|
return this.send(command, optionsOrCb);
|
|
1315
1310
|
}
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
|
|
1311
|
+
}
|
|
1312
|
+
phoneNumberValidate(args, optionsOrCb, cb) {
|
|
1313
|
+
const command = new PhoneNumberValidateCommand(args);
|
|
1319
1314
|
if (typeof optionsOrCb === "function") {
|
|
1320
1315
|
this.send(command, optionsOrCb);
|
|
1321
1316
|
}
|
|
1322
1317
|
else if (typeof cb === "function") {
|
|
1323
1318
|
if (typeof optionsOrCb !== "object")
|
|
1324
|
-
throw new Error(
|
|
1319
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1325
1320
|
this.send(command, optionsOrCb || {}, cb);
|
|
1326
1321
|
}
|
|
1327
1322
|
else {
|
|
1328
1323
|
return this.send(command, optionsOrCb);
|
|
1329
1324
|
}
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
|
|
1325
|
+
}
|
|
1326
|
+
putEvents(args, optionsOrCb, cb) {
|
|
1327
|
+
const command = new PutEventsCommand(args);
|
|
1333
1328
|
if (typeof optionsOrCb === "function") {
|
|
1334
1329
|
this.send(command, optionsOrCb);
|
|
1335
1330
|
}
|
|
1336
1331
|
else if (typeof cb === "function") {
|
|
1337
1332
|
if (typeof optionsOrCb !== "object")
|
|
1338
|
-
throw new Error(
|
|
1333
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1339
1334
|
this.send(command, optionsOrCb || {}, cb);
|
|
1340
1335
|
}
|
|
1341
1336
|
else {
|
|
1342
1337
|
return this.send(command, optionsOrCb);
|
|
1343
1338
|
}
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
|
|
1339
|
+
}
|
|
1340
|
+
putEventStream(args, optionsOrCb, cb) {
|
|
1341
|
+
const command = new PutEventStreamCommand(args);
|
|
1347
1342
|
if (typeof optionsOrCb === "function") {
|
|
1348
1343
|
this.send(command, optionsOrCb);
|
|
1349
1344
|
}
|
|
1350
1345
|
else if (typeof cb === "function") {
|
|
1351
1346
|
if (typeof optionsOrCb !== "object")
|
|
1352
|
-
throw new Error(
|
|
1347
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1353
1348
|
this.send(command, optionsOrCb || {}, cb);
|
|
1354
1349
|
}
|
|
1355
1350
|
else {
|
|
1356
1351
|
return this.send(command, optionsOrCb);
|
|
1357
1352
|
}
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
|
|
1353
|
+
}
|
|
1354
|
+
removeAttributes(args, optionsOrCb, cb) {
|
|
1355
|
+
const command = new RemoveAttributesCommand(args);
|
|
1361
1356
|
if (typeof optionsOrCb === "function") {
|
|
1362
1357
|
this.send(command, optionsOrCb);
|
|
1363
1358
|
}
|
|
1364
1359
|
else if (typeof cb === "function") {
|
|
1365
1360
|
if (typeof optionsOrCb !== "object")
|
|
1366
|
-
throw new Error(
|
|
1361
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1367
1362
|
this.send(command, optionsOrCb || {}, cb);
|
|
1368
1363
|
}
|
|
1369
1364
|
else {
|
|
1370
1365
|
return this.send(command, optionsOrCb);
|
|
1371
1366
|
}
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
|
|
1367
|
+
}
|
|
1368
|
+
sendMessages(args, optionsOrCb, cb) {
|
|
1369
|
+
const command = new SendMessagesCommand(args);
|
|
1375
1370
|
if (typeof optionsOrCb === "function") {
|
|
1376
1371
|
this.send(command, optionsOrCb);
|
|
1377
1372
|
}
|
|
1378
1373
|
else if (typeof cb === "function") {
|
|
1379
1374
|
if (typeof optionsOrCb !== "object")
|
|
1380
|
-
throw new Error(
|
|
1375
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1381
1376
|
this.send(command, optionsOrCb || {}, cb);
|
|
1382
1377
|
}
|
|
1383
1378
|
else {
|
|
1384
1379
|
return this.send(command, optionsOrCb);
|
|
1385
1380
|
}
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
|
|
1381
|
+
}
|
|
1382
|
+
sendOTPMessage(args, optionsOrCb, cb) {
|
|
1383
|
+
const command = new SendOTPMessageCommand(args);
|
|
1389
1384
|
if (typeof optionsOrCb === "function") {
|
|
1390
1385
|
this.send(command, optionsOrCb);
|
|
1391
1386
|
}
|
|
1392
1387
|
else if (typeof cb === "function") {
|
|
1393
1388
|
if (typeof optionsOrCb !== "object")
|
|
1394
|
-
throw new Error(
|
|
1389
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1395
1390
|
this.send(command, optionsOrCb || {}, cb);
|
|
1396
1391
|
}
|
|
1397
1392
|
else {
|
|
1398
1393
|
return this.send(command, optionsOrCb);
|
|
1399
1394
|
}
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
|
|
1395
|
+
}
|
|
1396
|
+
sendUsersMessages(args, optionsOrCb, cb) {
|
|
1397
|
+
const command = new SendUsersMessagesCommand(args);
|
|
1403
1398
|
if (typeof optionsOrCb === "function") {
|
|
1404
1399
|
this.send(command, optionsOrCb);
|
|
1405
1400
|
}
|
|
1406
1401
|
else if (typeof cb === "function") {
|
|
1407
1402
|
if (typeof optionsOrCb !== "object")
|
|
1408
|
-
throw new Error(
|
|
1403
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1409
1404
|
this.send(command, optionsOrCb || {}, cb);
|
|
1410
1405
|
}
|
|
1411
1406
|
else {
|
|
1412
1407
|
return this.send(command, optionsOrCb);
|
|
1413
1408
|
}
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
|
|
1409
|
+
}
|
|
1410
|
+
tagResource(args, optionsOrCb, cb) {
|
|
1411
|
+
const command = new TagResourceCommand(args);
|
|
1417
1412
|
if (typeof optionsOrCb === "function") {
|
|
1418
1413
|
this.send(command, optionsOrCb);
|
|
1419
1414
|
}
|
|
1420
1415
|
else if (typeof cb === "function") {
|
|
1421
1416
|
if (typeof optionsOrCb !== "object")
|
|
1422
|
-
throw new Error(
|
|
1417
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1423
1418
|
this.send(command, optionsOrCb || {}, cb);
|
|
1424
1419
|
}
|
|
1425
1420
|
else {
|
|
1426
1421
|
return this.send(command, optionsOrCb);
|
|
1427
1422
|
}
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
|
|
1423
|
+
}
|
|
1424
|
+
untagResource(args, optionsOrCb, cb) {
|
|
1425
|
+
const command = new UntagResourceCommand(args);
|
|
1431
1426
|
if (typeof optionsOrCb === "function") {
|
|
1432
1427
|
this.send(command, optionsOrCb);
|
|
1433
1428
|
}
|
|
1434
1429
|
else if (typeof cb === "function") {
|
|
1435
1430
|
if (typeof optionsOrCb !== "object")
|
|
1436
|
-
throw new Error(
|
|
1431
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1437
1432
|
this.send(command, optionsOrCb || {}, cb);
|
|
1438
1433
|
}
|
|
1439
1434
|
else {
|
|
1440
1435
|
return this.send(command, optionsOrCb);
|
|
1441
1436
|
}
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
|
|
1437
|
+
}
|
|
1438
|
+
updateAdmChannel(args, optionsOrCb, cb) {
|
|
1439
|
+
const command = new UpdateAdmChannelCommand(args);
|
|
1445
1440
|
if (typeof optionsOrCb === "function") {
|
|
1446
1441
|
this.send(command, optionsOrCb);
|
|
1447
1442
|
}
|
|
1448
1443
|
else if (typeof cb === "function") {
|
|
1449
1444
|
if (typeof optionsOrCb !== "object")
|
|
1450
|
-
throw new Error(
|
|
1445
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1451
1446
|
this.send(command, optionsOrCb || {}, cb);
|
|
1452
1447
|
}
|
|
1453
1448
|
else {
|
|
1454
1449
|
return this.send(command, optionsOrCb);
|
|
1455
1450
|
}
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
|
|
1451
|
+
}
|
|
1452
|
+
updateApnsChannel(args, optionsOrCb, cb) {
|
|
1453
|
+
const command = new UpdateApnsChannelCommand(args);
|
|
1459
1454
|
if (typeof optionsOrCb === "function") {
|
|
1460
1455
|
this.send(command, optionsOrCb);
|
|
1461
1456
|
}
|
|
1462
1457
|
else if (typeof cb === "function") {
|
|
1463
1458
|
if (typeof optionsOrCb !== "object")
|
|
1464
|
-
throw new Error(
|
|
1459
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1465
1460
|
this.send(command, optionsOrCb || {}, cb);
|
|
1466
1461
|
}
|
|
1467
1462
|
else {
|
|
1468
1463
|
return this.send(command, optionsOrCb);
|
|
1469
1464
|
}
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
|
|
1465
|
+
}
|
|
1466
|
+
updateApnsSandboxChannel(args, optionsOrCb, cb) {
|
|
1467
|
+
const command = new UpdateApnsSandboxChannelCommand(args);
|
|
1473
1468
|
if (typeof optionsOrCb === "function") {
|
|
1474
1469
|
this.send(command, optionsOrCb);
|
|
1475
1470
|
}
|
|
1476
1471
|
else if (typeof cb === "function") {
|
|
1477
1472
|
if (typeof optionsOrCb !== "object")
|
|
1478
|
-
throw new Error(
|
|
1473
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1479
1474
|
this.send(command, optionsOrCb || {}, cb);
|
|
1480
1475
|
}
|
|
1481
1476
|
else {
|
|
1482
1477
|
return this.send(command, optionsOrCb);
|
|
1483
1478
|
}
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
|
|
1479
|
+
}
|
|
1480
|
+
updateApnsVoipChannel(args, optionsOrCb, cb) {
|
|
1481
|
+
const command = new UpdateApnsVoipChannelCommand(args);
|
|
1487
1482
|
if (typeof optionsOrCb === "function") {
|
|
1488
1483
|
this.send(command, optionsOrCb);
|
|
1489
1484
|
}
|
|
1490
1485
|
else if (typeof cb === "function") {
|
|
1491
1486
|
if (typeof optionsOrCb !== "object")
|
|
1492
|
-
throw new Error(
|
|
1487
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1493
1488
|
this.send(command, optionsOrCb || {}, cb);
|
|
1494
1489
|
}
|
|
1495
1490
|
else {
|
|
1496
1491
|
return this.send(command, optionsOrCb);
|
|
1497
1492
|
}
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
|
|
1493
|
+
}
|
|
1494
|
+
updateApnsVoipSandboxChannel(args, optionsOrCb, cb) {
|
|
1495
|
+
const command = new UpdateApnsVoipSandboxChannelCommand(args);
|
|
1501
1496
|
if (typeof optionsOrCb === "function") {
|
|
1502
1497
|
this.send(command, optionsOrCb);
|
|
1503
1498
|
}
|
|
1504
1499
|
else if (typeof cb === "function") {
|
|
1505
1500
|
if (typeof optionsOrCb !== "object")
|
|
1506
|
-
throw new Error(
|
|
1501
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1507
1502
|
this.send(command, optionsOrCb || {}, cb);
|
|
1508
1503
|
}
|
|
1509
1504
|
else {
|
|
1510
1505
|
return this.send(command, optionsOrCb);
|
|
1511
1506
|
}
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
|
|
1507
|
+
}
|
|
1508
|
+
updateApplicationSettings(args, optionsOrCb, cb) {
|
|
1509
|
+
const command = new UpdateApplicationSettingsCommand(args);
|
|
1515
1510
|
if (typeof optionsOrCb === "function") {
|
|
1516
1511
|
this.send(command, optionsOrCb);
|
|
1517
1512
|
}
|
|
1518
1513
|
else if (typeof cb === "function") {
|
|
1519
1514
|
if (typeof optionsOrCb !== "object")
|
|
1520
|
-
throw new Error(
|
|
1515
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1521
1516
|
this.send(command, optionsOrCb || {}, cb);
|
|
1522
1517
|
}
|
|
1523
1518
|
else {
|
|
1524
1519
|
return this.send(command, optionsOrCb);
|
|
1525
1520
|
}
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
|
|
1521
|
+
}
|
|
1522
|
+
updateBaiduChannel(args, optionsOrCb, cb) {
|
|
1523
|
+
const command = new UpdateBaiduChannelCommand(args);
|
|
1529
1524
|
if (typeof optionsOrCb === "function") {
|
|
1530
1525
|
this.send(command, optionsOrCb);
|
|
1531
1526
|
}
|
|
1532
1527
|
else if (typeof cb === "function") {
|
|
1533
1528
|
if (typeof optionsOrCb !== "object")
|
|
1534
|
-
throw new Error(
|
|
1529
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1535
1530
|
this.send(command, optionsOrCb || {}, cb);
|
|
1536
1531
|
}
|
|
1537
1532
|
else {
|
|
1538
1533
|
return this.send(command, optionsOrCb);
|
|
1539
1534
|
}
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
|
|
1535
|
+
}
|
|
1536
|
+
updateCampaign(args, optionsOrCb, cb) {
|
|
1537
|
+
const command = new UpdateCampaignCommand(args);
|
|
1543
1538
|
if (typeof optionsOrCb === "function") {
|
|
1544
1539
|
this.send(command, optionsOrCb);
|
|
1545
1540
|
}
|
|
1546
1541
|
else if (typeof cb === "function") {
|
|
1547
1542
|
if (typeof optionsOrCb !== "object")
|
|
1548
|
-
throw new Error(
|
|
1543
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1549
1544
|
this.send(command, optionsOrCb || {}, cb);
|
|
1550
1545
|
}
|
|
1551
1546
|
else {
|
|
1552
1547
|
return this.send(command, optionsOrCb);
|
|
1553
1548
|
}
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
|
|
1549
|
+
}
|
|
1550
|
+
updateEmailChannel(args, optionsOrCb, cb) {
|
|
1551
|
+
const command = new UpdateEmailChannelCommand(args);
|
|
1557
1552
|
if (typeof optionsOrCb === "function") {
|
|
1558
1553
|
this.send(command, optionsOrCb);
|
|
1559
1554
|
}
|
|
1560
1555
|
else if (typeof cb === "function") {
|
|
1561
1556
|
if (typeof optionsOrCb !== "object")
|
|
1562
|
-
throw new Error(
|
|
1557
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1563
1558
|
this.send(command, optionsOrCb || {}, cb);
|
|
1564
1559
|
}
|
|
1565
1560
|
else {
|
|
1566
1561
|
return this.send(command, optionsOrCb);
|
|
1567
1562
|
}
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
|
|
1563
|
+
}
|
|
1564
|
+
updateEmailTemplate(args, optionsOrCb, cb) {
|
|
1565
|
+
const command = new UpdateEmailTemplateCommand(args);
|
|
1571
1566
|
if (typeof optionsOrCb === "function") {
|
|
1572
1567
|
this.send(command, optionsOrCb);
|
|
1573
1568
|
}
|
|
1574
1569
|
else if (typeof cb === "function") {
|
|
1575
1570
|
if (typeof optionsOrCb !== "object")
|
|
1576
|
-
throw new Error(
|
|
1571
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1577
1572
|
this.send(command, optionsOrCb || {}, cb);
|
|
1578
1573
|
}
|
|
1579
1574
|
else {
|
|
1580
1575
|
return this.send(command, optionsOrCb);
|
|
1581
1576
|
}
|
|
1582
|
-
}
|
|
1583
|
-
|
|
1584
|
-
|
|
1577
|
+
}
|
|
1578
|
+
updateEndpoint(args, optionsOrCb, cb) {
|
|
1579
|
+
const command = new UpdateEndpointCommand(args);
|
|
1585
1580
|
if (typeof optionsOrCb === "function") {
|
|
1586
1581
|
this.send(command, optionsOrCb);
|
|
1587
1582
|
}
|
|
1588
1583
|
else if (typeof cb === "function") {
|
|
1589
1584
|
if (typeof optionsOrCb !== "object")
|
|
1590
|
-
throw new Error(
|
|
1585
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1591
1586
|
this.send(command, optionsOrCb || {}, cb);
|
|
1592
1587
|
}
|
|
1593
1588
|
else {
|
|
1594
1589
|
return this.send(command, optionsOrCb);
|
|
1595
1590
|
}
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
|
|
1591
|
+
}
|
|
1592
|
+
updateEndpointsBatch(args, optionsOrCb, cb) {
|
|
1593
|
+
const command = new UpdateEndpointsBatchCommand(args);
|
|
1599
1594
|
if (typeof optionsOrCb === "function") {
|
|
1600
1595
|
this.send(command, optionsOrCb);
|
|
1601
1596
|
}
|
|
1602
1597
|
else if (typeof cb === "function") {
|
|
1603
1598
|
if (typeof optionsOrCb !== "object")
|
|
1604
|
-
throw new Error(
|
|
1599
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1605
1600
|
this.send(command, optionsOrCb || {}, cb);
|
|
1606
1601
|
}
|
|
1607
1602
|
else {
|
|
1608
1603
|
return this.send(command, optionsOrCb);
|
|
1609
1604
|
}
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
|
|
1605
|
+
}
|
|
1606
|
+
updateGcmChannel(args, optionsOrCb, cb) {
|
|
1607
|
+
const command = new UpdateGcmChannelCommand(args);
|
|
1613
1608
|
if (typeof optionsOrCb === "function") {
|
|
1614
1609
|
this.send(command, optionsOrCb);
|
|
1615
1610
|
}
|
|
1616
1611
|
else if (typeof cb === "function") {
|
|
1617
1612
|
if (typeof optionsOrCb !== "object")
|
|
1618
|
-
throw new Error(
|
|
1613
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1619
1614
|
this.send(command, optionsOrCb || {}, cb);
|
|
1620
1615
|
}
|
|
1621
1616
|
else {
|
|
1622
1617
|
return this.send(command, optionsOrCb);
|
|
1623
1618
|
}
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
|
|
1619
|
+
}
|
|
1620
|
+
updateInAppTemplate(args, optionsOrCb, cb) {
|
|
1621
|
+
const command = new UpdateInAppTemplateCommand(args);
|
|
1627
1622
|
if (typeof optionsOrCb === "function") {
|
|
1628
1623
|
this.send(command, optionsOrCb);
|
|
1629
1624
|
}
|
|
1630
1625
|
else if (typeof cb === "function") {
|
|
1631
1626
|
if (typeof optionsOrCb !== "object")
|
|
1632
|
-
throw new Error(
|
|
1627
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1633
1628
|
this.send(command, optionsOrCb || {}, cb);
|
|
1634
1629
|
}
|
|
1635
1630
|
else {
|
|
1636
1631
|
return this.send(command, optionsOrCb);
|
|
1637
1632
|
}
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
|
|
1633
|
+
}
|
|
1634
|
+
updateJourney(args, optionsOrCb, cb) {
|
|
1635
|
+
const command = new UpdateJourneyCommand(args);
|
|
1641
1636
|
if (typeof optionsOrCb === "function") {
|
|
1642
1637
|
this.send(command, optionsOrCb);
|
|
1643
1638
|
}
|
|
1644
1639
|
else if (typeof cb === "function") {
|
|
1645
1640
|
if (typeof optionsOrCb !== "object")
|
|
1646
|
-
throw new Error(
|
|
1641
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1647
1642
|
this.send(command, optionsOrCb || {}, cb);
|
|
1648
1643
|
}
|
|
1649
1644
|
else {
|
|
1650
1645
|
return this.send(command, optionsOrCb);
|
|
1651
1646
|
}
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
|
|
1647
|
+
}
|
|
1648
|
+
updateJourneyState(args, optionsOrCb, cb) {
|
|
1649
|
+
const command = new UpdateJourneyStateCommand(args);
|
|
1655
1650
|
if (typeof optionsOrCb === "function") {
|
|
1656
1651
|
this.send(command, optionsOrCb);
|
|
1657
1652
|
}
|
|
1658
1653
|
else if (typeof cb === "function") {
|
|
1659
1654
|
if (typeof optionsOrCb !== "object")
|
|
1660
|
-
throw new Error(
|
|
1655
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1661
1656
|
this.send(command, optionsOrCb || {}, cb);
|
|
1662
1657
|
}
|
|
1663
1658
|
else {
|
|
1664
1659
|
return this.send(command, optionsOrCb);
|
|
1665
1660
|
}
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
|
|
1661
|
+
}
|
|
1662
|
+
updatePushTemplate(args, optionsOrCb, cb) {
|
|
1663
|
+
const command = new UpdatePushTemplateCommand(args);
|
|
1669
1664
|
if (typeof optionsOrCb === "function") {
|
|
1670
1665
|
this.send(command, optionsOrCb);
|
|
1671
1666
|
}
|
|
1672
1667
|
else if (typeof cb === "function") {
|
|
1673
1668
|
if (typeof optionsOrCb !== "object")
|
|
1674
|
-
throw new Error(
|
|
1669
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1675
1670
|
this.send(command, optionsOrCb || {}, cb);
|
|
1676
1671
|
}
|
|
1677
1672
|
else {
|
|
1678
1673
|
return this.send(command, optionsOrCb);
|
|
1679
1674
|
}
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
|
|
1675
|
+
}
|
|
1676
|
+
updateRecommenderConfiguration(args, optionsOrCb, cb) {
|
|
1677
|
+
const command = new UpdateRecommenderConfigurationCommand(args);
|
|
1683
1678
|
if (typeof optionsOrCb === "function") {
|
|
1684
1679
|
this.send(command, optionsOrCb);
|
|
1685
1680
|
}
|
|
1686
1681
|
else if (typeof cb === "function") {
|
|
1687
1682
|
if (typeof optionsOrCb !== "object")
|
|
1688
|
-
throw new Error(
|
|
1683
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1689
1684
|
this.send(command, optionsOrCb || {}, cb);
|
|
1690
1685
|
}
|
|
1691
1686
|
else {
|
|
1692
1687
|
return this.send(command, optionsOrCb);
|
|
1693
1688
|
}
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
|
|
1689
|
+
}
|
|
1690
|
+
updateSegment(args, optionsOrCb, cb) {
|
|
1691
|
+
const command = new UpdateSegmentCommand(args);
|
|
1697
1692
|
if (typeof optionsOrCb === "function") {
|
|
1698
1693
|
this.send(command, optionsOrCb);
|
|
1699
1694
|
}
|
|
1700
1695
|
else if (typeof cb === "function") {
|
|
1701
1696
|
if (typeof optionsOrCb !== "object")
|
|
1702
|
-
throw new Error(
|
|
1697
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1703
1698
|
this.send(command, optionsOrCb || {}, cb);
|
|
1704
1699
|
}
|
|
1705
1700
|
else {
|
|
1706
1701
|
return this.send(command, optionsOrCb);
|
|
1707
1702
|
}
|
|
1708
|
-
}
|
|
1709
|
-
|
|
1710
|
-
|
|
1703
|
+
}
|
|
1704
|
+
updateSmsChannel(args, optionsOrCb, cb) {
|
|
1705
|
+
const command = new UpdateSmsChannelCommand(args);
|
|
1711
1706
|
if (typeof optionsOrCb === "function") {
|
|
1712
1707
|
this.send(command, optionsOrCb);
|
|
1713
1708
|
}
|
|
1714
1709
|
else if (typeof cb === "function") {
|
|
1715
1710
|
if (typeof optionsOrCb !== "object")
|
|
1716
|
-
throw new Error(
|
|
1711
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1717
1712
|
this.send(command, optionsOrCb || {}, cb);
|
|
1718
1713
|
}
|
|
1719
1714
|
else {
|
|
1720
1715
|
return this.send(command, optionsOrCb);
|
|
1721
1716
|
}
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
|
|
1717
|
+
}
|
|
1718
|
+
updateSmsTemplate(args, optionsOrCb, cb) {
|
|
1719
|
+
const command = new UpdateSmsTemplateCommand(args);
|
|
1725
1720
|
if (typeof optionsOrCb === "function") {
|
|
1726
1721
|
this.send(command, optionsOrCb);
|
|
1727
1722
|
}
|
|
1728
1723
|
else if (typeof cb === "function") {
|
|
1729
1724
|
if (typeof optionsOrCb !== "object")
|
|
1730
|
-
throw new Error(
|
|
1725
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1731
1726
|
this.send(command, optionsOrCb || {}, cb);
|
|
1732
1727
|
}
|
|
1733
1728
|
else {
|
|
1734
1729
|
return this.send(command, optionsOrCb);
|
|
1735
1730
|
}
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
|
|
1731
|
+
}
|
|
1732
|
+
updateTemplateActiveVersion(args, optionsOrCb, cb) {
|
|
1733
|
+
const command = new UpdateTemplateActiveVersionCommand(args);
|
|
1739
1734
|
if (typeof optionsOrCb === "function") {
|
|
1740
1735
|
this.send(command, optionsOrCb);
|
|
1741
1736
|
}
|
|
1742
1737
|
else if (typeof cb === "function") {
|
|
1743
1738
|
if (typeof optionsOrCb !== "object")
|
|
1744
|
-
throw new Error(
|
|
1739
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1745
1740
|
this.send(command, optionsOrCb || {}, cb);
|
|
1746
1741
|
}
|
|
1747
1742
|
else {
|
|
1748
1743
|
return this.send(command, optionsOrCb);
|
|
1749
1744
|
}
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
|
|
1745
|
+
}
|
|
1746
|
+
updateVoiceChannel(args, optionsOrCb, cb) {
|
|
1747
|
+
const command = new UpdateVoiceChannelCommand(args);
|
|
1753
1748
|
if (typeof optionsOrCb === "function") {
|
|
1754
1749
|
this.send(command, optionsOrCb);
|
|
1755
1750
|
}
|
|
1756
1751
|
else if (typeof cb === "function") {
|
|
1757
1752
|
if (typeof optionsOrCb !== "object")
|
|
1758
|
-
throw new Error(
|
|
1753
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1759
1754
|
this.send(command, optionsOrCb || {}, cb);
|
|
1760
1755
|
}
|
|
1761
1756
|
else {
|
|
1762
1757
|
return this.send(command, optionsOrCb);
|
|
1763
1758
|
}
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
|
|
1759
|
+
}
|
|
1760
|
+
updateVoiceTemplate(args, optionsOrCb, cb) {
|
|
1761
|
+
const command = new UpdateVoiceTemplateCommand(args);
|
|
1767
1762
|
if (typeof optionsOrCb === "function") {
|
|
1768
1763
|
this.send(command, optionsOrCb);
|
|
1769
1764
|
}
|
|
1770
1765
|
else if (typeof cb === "function") {
|
|
1771
1766
|
if (typeof optionsOrCb !== "object")
|
|
1772
|
-
throw new Error(
|
|
1767
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1773
1768
|
this.send(command, optionsOrCb || {}, cb);
|
|
1774
1769
|
}
|
|
1775
1770
|
else {
|
|
1776
1771
|
return this.send(command, optionsOrCb);
|
|
1777
1772
|
}
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
|
|
1773
|
+
}
|
|
1774
|
+
verifyOTPMessage(args, optionsOrCb, cb) {
|
|
1775
|
+
const command = new VerifyOTPMessageCommand(args);
|
|
1781
1776
|
if (typeof optionsOrCb === "function") {
|
|
1782
1777
|
this.send(command, optionsOrCb);
|
|
1783
1778
|
}
|
|
1784
1779
|
else if (typeof cb === "function") {
|
|
1785
1780
|
if (typeof optionsOrCb !== "object")
|
|
1786
|
-
throw new Error(
|
|
1781
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1787
1782
|
this.send(command, optionsOrCb || {}, cb);
|
|
1788
1783
|
}
|
|
1789
1784
|
else {
|
|
1790
1785
|
return this.send(command, optionsOrCb);
|
|
1791
1786
|
}
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
}(PinpointClient));
|
|
1795
|
-
export { Pinpoint };
|
|
1787
|
+
}
|
|
1788
|
+
}
|