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