@aws-sdk/client-pinpoint 3.54.1 → 3.58.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 +24 -0
- package/dist-cjs/PinpointClient.js +13 -13
- package/dist-cjs/commands/CreateAppCommand.js +3 -3
- package/dist-cjs/commands/CreateCampaignCommand.js +3 -3
- package/dist-cjs/commands/CreateEmailTemplateCommand.js +3 -3
- package/dist-cjs/commands/CreateExportJobCommand.js +3 -3
- package/dist-cjs/commands/CreateImportJobCommand.js +3 -3
- package/dist-cjs/commands/CreateInAppTemplateCommand.js +3 -3
- package/dist-cjs/commands/CreateJourneyCommand.js +3 -3
- package/dist-cjs/commands/CreatePushTemplateCommand.js +3 -3
- package/dist-cjs/commands/CreateRecommenderConfigurationCommand.js +3 -3
- package/dist-cjs/commands/CreateSegmentCommand.js +3 -3
- package/dist-cjs/commands/CreateSmsTemplateCommand.js +3 -3
- package/dist-cjs/commands/CreateVoiceTemplateCommand.js +3 -3
- package/dist-cjs/commands/DeleteAdmChannelCommand.js +3 -3
- package/dist-cjs/commands/DeleteApnsChannelCommand.js +3 -3
- package/dist-cjs/commands/DeleteApnsSandboxChannelCommand.js +3 -3
- package/dist-cjs/commands/DeleteApnsVoipChannelCommand.js +3 -3
- package/dist-cjs/commands/DeleteApnsVoipSandboxChannelCommand.js +3 -3
- package/dist-cjs/commands/DeleteAppCommand.js +3 -3
- package/dist-cjs/commands/DeleteBaiduChannelCommand.js +3 -3
- package/dist-cjs/commands/DeleteCampaignCommand.js +3 -3
- package/dist-cjs/commands/DeleteEmailChannelCommand.js +3 -3
- package/dist-cjs/commands/DeleteEmailTemplateCommand.js +3 -3
- package/dist-cjs/commands/DeleteEndpointCommand.js +3 -3
- package/dist-cjs/commands/DeleteEventStreamCommand.js +3 -3
- package/dist-cjs/commands/DeleteGcmChannelCommand.js +3 -3
- package/dist-cjs/commands/DeleteInAppTemplateCommand.js +3 -3
- package/dist-cjs/commands/DeleteJourneyCommand.js +3 -3
- package/dist-cjs/commands/DeletePushTemplateCommand.js +3 -3
- package/dist-cjs/commands/DeleteRecommenderConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DeleteSegmentCommand.js +3 -3
- package/dist-cjs/commands/DeleteSmsChannelCommand.js +3 -3
- package/dist-cjs/commands/DeleteSmsTemplateCommand.js +3 -3
- package/dist-cjs/commands/DeleteUserEndpointsCommand.js +3 -3
- package/dist-cjs/commands/DeleteVoiceChannelCommand.js +3 -3
- package/dist-cjs/commands/DeleteVoiceTemplateCommand.js +3 -3
- package/dist-cjs/commands/GetAdmChannelCommand.js +3 -3
- package/dist-cjs/commands/GetApnsChannelCommand.js +3 -3
- package/dist-cjs/commands/GetApnsSandboxChannelCommand.js +3 -3
- package/dist-cjs/commands/GetApnsVoipChannelCommand.js +3 -3
- package/dist-cjs/commands/GetApnsVoipSandboxChannelCommand.js +3 -3
- package/dist-cjs/commands/GetAppCommand.js +3 -3
- package/dist-cjs/commands/GetApplicationDateRangeKpiCommand.js +3 -3
- package/dist-cjs/commands/GetApplicationSettingsCommand.js +3 -3
- package/dist-cjs/commands/GetAppsCommand.js +3 -3
- package/dist-cjs/commands/GetBaiduChannelCommand.js +3 -3
- package/dist-cjs/commands/GetCampaignActivitiesCommand.js +3 -3
- package/dist-cjs/commands/GetCampaignCommand.js +3 -3
- package/dist-cjs/commands/GetCampaignDateRangeKpiCommand.js +3 -3
- package/dist-cjs/commands/GetCampaignVersionCommand.js +3 -3
- package/dist-cjs/commands/GetCampaignVersionsCommand.js +3 -3
- package/dist-cjs/commands/GetCampaignsCommand.js +3 -3
- package/dist-cjs/commands/GetChannelsCommand.js +3 -3
- package/dist-cjs/commands/GetEmailChannelCommand.js +3 -3
- package/dist-cjs/commands/GetEmailTemplateCommand.js +3 -3
- package/dist-cjs/commands/GetEndpointCommand.js +3 -3
- package/dist-cjs/commands/GetEventStreamCommand.js +3 -3
- package/dist-cjs/commands/GetExportJobCommand.js +3 -3
- package/dist-cjs/commands/GetExportJobsCommand.js +3 -3
- package/dist-cjs/commands/GetGcmChannelCommand.js +3 -3
- package/dist-cjs/commands/GetImportJobCommand.js +3 -3
- package/dist-cjs/commands/GetImportJobsCommand.js +3 -3
- package/dist-cjs/commands/GetInAppMessagesCommand.js +3 -3
- package/dist-cjs/commands/GetInAppTemplateCommand.js +3 -3
- package/dist-cjs/commands/GetJourneyCommand.js +3 -3
- package/dist-cjs/commands/GetJourneyDateRangeKpiCommand.js +3 -3
- package/dist-cjs/commands/GetJourneyExecutionActivityMetricsCommand.js +3 -3
- package/dist-cjs/commands/GetJourneyExecutionMetricsCommand.js +3 -3
- package/dist-cjs/commands/GetPushTemplateCommand.js +3 -3
- package/dist-cjs/commands/GetRecommenderConfigurationCommand.js +3 -3
- package/dist-cjs/commands/GetRecommenderConfigurationsCommand.js +3 -3
- package/dist-cjs/commands/GetSegmentCommand.js +3 -3
- package/dist-cjs/commands/GetSegmentExportJobsCommand.js +3 -3
- package/dist-cjs/commands/GetSegmentImportJobsCommand.js +3 -3
- package/dist-cjs/commands/GetSegmentVersionCommand.js +3 -3
- package/dist-cjs/commands/GetSegmentVersionsCommand.js +3 -3
- package/dist-cjs/commands/GetSegmentsCommand.js +3 -3
- package/dist-cjs/commands/GetSmsChannelCommand.js +3 -3
- package/dist-cjs/commands/GetSmsTemplateCommand.js +3 -3
- package/dist-cjs/commands/GetUserEndpointsCommand.js +3 -3
- package/dist-cjs/commands/GetVoiceChannelCommand.js +3 -3
- package/dist-cjs/commands/GetVoiceTemplateCommand.js +3 -3
- package/dist-cjs/commands/ListJourneysCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListTemplateVersionsCommand.js +3 -3
- package/dist-cjs/commands/ListTemplatesCommand.js +3 -3
- package/dist-cjs/commands/PhoneNumberValidateCommand.js +3 -3
- package/dist-cjs/commands/PutEventStreamCommand.js +3 -3
- package/dist-cjs/commands/PutEventsCommand.js +3 -3
- package/dist-cjs/commands/RemoveAttributesCommand.js +3 -3
- package/dist-cjs/commands/SendMessagesCommand.js +3 -3
- package/dist-cjs/commands/SendOTPMessageCommand.js +3 -3
- package/dist-cjs/commands/SendUsersMessagesCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateAdmChannelCommand.js +3 -3
- package/dist-cjs/commands/UpdateApnsChannelCommand.js +3 -3
- package/dist-cjs/commands/UpdateApnsSandboxChannelCommand.js +3 -3
- package/dist-cjs/commands/UpdateApnsVoipChannelCommand.js +3 -3
- package/dist-cjs/commands/UpdateApnsVoipSandboxChannelCommand.js +3 -3
- package/dist-cjs/commands/UpdateApplicationSettingsCommand.js +3 -3
- package/dist-cjs/commands/UpdateBaiduChannelCommand.js +3 -3
- package/dist-cjs/commands/UpdateCampaignCommand.js +3 -3
- package/dist-cjs/commands/UpdateEmailChannelCommand.js +3 -3
- package/dist-cjs/commands/UpdateEmailTemplateCommand.js +3 -3
- package/dist-cjs/commands/UpdateEndpointCommand.js +3 -3
- package/dist-cjs/commands/UpdateEndpointsBatchCommand.js +3 -3
- package/dist-cjs/commands/UpdateGcmChannelCommand.js +3 -3
- package/dist-cjs/commands/UpdateInAppTemplateCommand.js +3 -3
- package/dist-cjs/commands/UpdateJourneyCommand.js +3 -3
- package/dist-cjs/commands/UpdateJourneyStateCommand.js +3 -3
- package/dist-cjs/commands/UpdatePushTemplateCommand.js +3 -3
- package/dist-cjs/commands/UpdateRecommenderConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateSegmentCommand.js +3 -3
- package/dist-cjs/commands/UpdateSmsChannelCommand.js +3 -3
- package/dist-cjs/commands/UpdateSmsTemplateCommand.js +3 -3
- package/dist-cjs/commands/UpdateTemplateActiveVersionCommand.js +3 -3
- package/dist-cjs/commands/UpdateVoiceChannelCommand.js +3 -3
- package/dist-cjs/commands/UpdateVoiceTemplateCommand.js +3 -3
- package/dist-cjs/commands/VerifyOTPMessageCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +991 -991
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Pinpoint.js +119 -119
- package/dist-es/protocols/Aws_restJson1.js +119 -119
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CreateAppCommand = function (input, context) {
|
|
|
13
13
|
headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
resolvedPath = ""
|
|
16
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps";
|
|
17
17
|
if (input.CreateApplicationRequest !== undefined) {
|
|
18
18
|
body = serializeAws_restJson1CreateApplicationRequest(input.CreateApplicationRequest, context);
|
|
19
19
|
}
|
|
@@ -43,7 +43,7 @@ export var serializeAws_restJson1CreateCampaignCommand = function (input, contex
|
|
|
43
43
|
headers = {
|
|
44
44
|
"content-type": "application/json",
|
|
45
45
|
};
|
|
46
|
-
resolvedPath = ""
|
|
46
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/campaigns";
|
|
47
47
|
if (input.ApplicationId !== undefined) {
|
|
48
48
|
labelValue = input.ApplicationId;
|
|
49
49
|
if (labelValue.length <= 0) {
|
|
@@ -83,7 +83,7 @@ export var serializeAws_restJson1CreateEmailTemplateCommand = function (input, c
|
|
|
83
83
|
headers = {
|
|
84
84
|
"content-type": "application/json",
|
|
85
85
|
};
|
|
86
|
-
resolvedPath = ""
|
|
86
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/email";
|
|
87
87
|
if (input.TemplateName !== undefined) {
|
|
88
88
|
labelValue = input.TemplateName;
|
|
89
89
|
if (labelValue.length <= 0) {
|
|
@@ -123,7 +123,7 @@ export var serializeAws_restJson1CreateExportJobCommand = function (input, conte
|
|
|
123
123
|
headers = {
|
|
124
124
|
"content-type": "application/json",
|
|
125
125
|
};
|
|
126
|
-
resolvedPath = ""
|
|
126
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/jobs/export";
|
|
127
127
|
if (input.ApplicationId !== undefined) {
|
|
128
128
|
labelValue = input.ApplicationId;
|
|
129
129
|
if (labelValue.length <= 0) {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_restJson1CreateImportJobCommand = function (input, conte
|
|
|
163
163
|
headers = {
|
|
164
164
|
"content-type": "application/json",
|
|
165
165
|
};
|
|
166
|
-
resolvedPath = ""
|
|
166
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/jobs/import";
|
|
167
167
|
if (input.ApplicationId !== undefined) {
|
|
168
168
|
labelValue = input.ApplicationId;
|
|
169
169
|
if (labelValue.length <= 0) {
|
|
@@ -203,7 +203,7 @@ export var serializeAws_restJson1CreateInAppTemplateCommand = function (input, c
|
|
|
203
203
|
headers = {
|
|
204
204
|
"content-type": "application/json",
|
|
205
205
|
};
|
|
206
|
-
resolvedPath = ""
|
|
206
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/inapp";
|
|
207
207
|
if (input.TemplateName !== undefined) {
|
|
208
208
|
labelValue = input.TemplateName;
|
|
209
209
|
if (labelValue.length <= 0) {
|
|
@@ -243,7 +243,7 @@ export var serializeAws_restJson1CreateJourneyCommand = function (input, context
|
|
|
243
243
|
headers = {
|
|
244
244
|
"content-type": "application/json",
|
|
245
245
|
};
|
|
246
|
-
resolvedPath = ""
|
|
246
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/journeys";
|
|
247
247
|
if (input.ApplicationId !== undefined) {
|
|
248
248
|
labelValue = input.ApplicationId;
|
|
249
249
|
if (labelValue.length <= 0) {
|
|
@@ -283,7 +283,7 @@ export var serializeAws_restJson1CreatePushTemplateCommand = function (input, co
|
|
|
283
283
|
headers = {
|
|
284
284
|
"content-type": "application/json",
|
|
285
285
|
};
|
|
286
|
-
resolvedPath = ""
|
|
286
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/push";
|
|
287
287
|
if (input.TemplateName !== undefined) {
|
|
288
288
|
labelValue = input.TemplateName;
|
|
289
289
|
if (labelValue.length <= 0) {
|
|
@@ -323,7 +323,7 @@ export var serializeAws_restJson1CreateRecommenderConfigurationCommand = functio
|
|
|
323
323
|
headers = {
|
|
324
324
|
"content-type": "application/json",
|
|
325
325
|
};
|
|
326
|
-
resolvedPath = ""
|
|
326
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/recommenders";
|
|
327
327
|
if (input.CreateRecommenderConfiguration !== undefined) {
|
|
328
328
|
body = serializeAws_restJson1CreateRecommenderConfigurationShape(input.CreateRecommenderConfiguration, context);
|
|
329
329
|
}
|
|
@@ -353,7 +353,7 @@ export var serializeAws_restJson1CreateSegmentCommand = function (input, context
|
|
|
353
353
|
headers = {
|
|
354
354
|
"content-type": "application/json",
|
|
355
355
|
};
|
|
356
|
-
resolvedPath = ""
|
|
356
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/segments";
|
|
357
357
|
if (input.ApplicationId !== undefined) {
|
|
358
358
|
labelValue = input.ApplicationId;
|
|
359
359
|
if (labelValue.length <= 0) {
|
|
@@ -393,7 +393,7 @@ export var serializeAws_restJson1CreateSmsTemplateCommand = function (input, con
|
|
|
393
393
|
headers = {
|
|
394
394
|
"content-type": "application/json",
|
|
395
395
|
};
|
|
396
|
-
resolvedPath = ""
|
|
396
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/sms";
|
|
397
397
|
if (input.TemplateName !== undefined) {
|
|
398
398
|
labelValue = input.TemplateName;
|
|
399
399
|
if (labelValue.length <= 0) {
|
|
@@ -433,7 +433,7 @@ export var serializeAws_restJson1CreateVoiceTemplateCommand = function (input, c
|
|
|
433
433
|
headers = {
|
|
434
434
|
"content-type": "application/json",
|
|
435
435
|
};
|
|
436
|
-
resolvedPath = ""
|
|
436
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/voice";
|
|
437
437
|
if (input.TemplateName !== undefined) {
|
|
438
438
|
labelValue = input.TemplateName;
|
|
439
439
|
if (labelValue.length <= 0) {
|
|
@@ -471,7 +471,7 @@ export var serializeAws_restJson1DeleteAdmChannelCommand = function (input, cont
|
|
|
471
471
|
case 1:
|
|
472
472
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
473
473
|
headers = {};
|
|
474
|
-
resolvedPath = ""
|
|
474
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/adm";
|
|
475
475
|
if (input.ApplicationId !== undefined) {
|
|
476
476
|
labelValue = input.ApplicationId;
|
|
477
477
|
if (labelValue.length <= 0) {
|
|
@@ -502,7 +502,7 @@ export var serializeAws_restJson1DeleteApnsChannelCommand = function (input, con
|
|
|
502
502
|
case 1:
|
|
503
503
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
504
504
|
headers = {};
|
|
505
|
-
resolvedPath = ""
|
|
505
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/apns";
|
|
506
506
|
if (input.ApplicationId !== undefined) {
|
|
507
507
|
labelValue = input.ApplicationId;
|
|
508
508
|
if (labelValue.length <= 0) {
|
|
@@ -533,7 +533,7 @@ export var serializeAws_restJson1DeleteApnsSandboxChannelCommand = function (inp
|
|
|
533
533
|
case 1:
|
|
534
534
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
535
535
|
headers = {};
|
|
536
|
-
resolvedPath = ""
|
|
536
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
537
537
|
"/v1/apps/{ApplicationId}/channels/apns_sandbox";
|
|
538
538
|
if (input.ApplicationId !== undefined) {
|
|
539
539
|
labelValue = input.ApplicationId;
|
|
@@ -565,7 +565,7 @@ export var serializeAws_restJson1DeleteApnsVoipChannelCommand = function (input,
|
|
|
565
565
|
case 1:
|
|
566
566
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
567
567
|
headers = {};
|
|
568
|
-
resolvedPath = ""
|
|
568
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
569
569
|
"/v1/apps/{ApplicationId}/channels/apns_voip";
|
|
570
570
|
if (input.ApplicationId !== undefined) {
|
|
571
571
|
labelValue = input.ApplicationId;
|
|
@@ -597,7 +597,7 @@ export var serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand = function
|
|
|
597
597
|
case 1:
|
|
598
598
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
599
599
|
headers = {};
|
|
600
|
-
resolvedPath = ""
|
|
600
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
601
601
|
"/v1/apps/{ApplicationId}/channels/apns_voip_sandbox";
|
|
602
602
|
if (input.ApplicationId !== undefined) {
|
|
603
603
|
labelValue = input.ApplicationId;
|
|
@@ -629,7 +629,7 @@ export var serializeAws_restJson1DeleteAppCommand = function (input, context) {
|
|
|
629
629
|
case 1:
|
|
630
630
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
631
631
|
headers = {};
|
|
632
|
-
resolvedPath = ""
|
|
632
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}";
|
|
633
633
|
if (input.ApplicationId !== undefined) {
|
|
634
634
|
labelValue = input.ApplicationId;
|
|
635
635
|
if (labelValue.length <= 0) {
|
|
@@ -660,7 +660,7 @@ export var serializeAws_restJson1DeleteBaiduChannelCommand = function (input, co
|
|
|
660
660
|
case 1:
|
|
661
661
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
662
662
|
headers = {};
|
|
663
|
-
resolvedPath = ""
|
|
663
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/baidu";
|
|
664
664
|
if (input.ApplicationId !== undefined) {
|
|
665
665
|
labelValue = input.ApplicationId;
|
|
666
666
|
if (labelValue.length <= 0) {
|
|
@@ -691,7 +691,7 @@ export var serializeAws_restJson1DeleteCampaignCommand = function (input, contex
|
|
|
691
691
|
case 1:
|
|
692
692
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
693
693
|
headers = {};
|
|
694
|
-
resolvedPath = ""
|
|
694
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
695
695
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}";
|
|
696
696
|
if (input.ApplicationId !== undefined) {
|
|
697
697
|
labelValue = input.ApplicationId;
|
|
@@ -733,7 +733,7 @@ export var serializeAws_restJson1DeleteEmailChannelCommand = function (input, co
|
|
|
733
733
|
case 1:
|
|
734
734
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
735
735
|
headers = {};
|
|
736
|
-
resolvedPath = ""
|
|
736
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/email";
|
|
737
737
|
if (input.ApplicationId !== undefined) {
|
|
738
738
|
labelValue = input.ApplicationId;
|
|
739
739
|
if (labelValue.length <= 0) {
|
|
@@ -764,7 +764,7 @@ export var serializeAws_restJson1DeleteEmailTemplateCommand = function (input, c
|
|
|
764
764
|
case 1:
|
|
765
765
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
766
766
|
headers = {};
|
|
767
|
-
resolvedPath = ""
|
|
767
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/email";
|
|
768
768
|
if (input.TemplateName !== undefined) {
|
|
769
769
|
labelValue = input.TemplateName;
|
|
770
770
|
if (labelValue.length <= 0) {
|
|
@@ -797,7 +797,7 @@ export var serializeAws_restJson1DeleteEndpointCommand = function (input, contex
|
|
|
797
797
|
case 1:
|
|
798
798
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
799
799
|
headers = {};
|
|
800
|
-
resolvedPath = ""
|
|
800
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
801
801
|
"/v1/apps/{ApplicationId}/endpoints/{EndpointId}";
|
|
802
802
|
if (input.ApplicationId !== undefined) {
|
|
803
803
|
labelValue = input.ApplicationId;
|
|
@@ -839,7 +839,7 @@ export var serializeAws_restJson1DeleteEventStreamCommand = function (input, con
|
|
|
839
839
|
case 1:
|
|
840
840
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
841
841
|
headers = {};
|
|
842
|
-
resolvedPath = ""
|
|
842
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/eventstream";
|
|
843
843
|
if (input.ApplicationId !== undefined) {
|
|
844
844
|
labelValue = input.ApplicationId;
|
|
845
845
|
if (labelValue.length <= 0) {
|
|
@@ -870,7 +870,7 @@ export var serializeAws_restJson1DeleteGcmChannelCommand = function (input, cont
|
|
|
870
870
|
case 1:
|
|
871
871
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
872
872
|
headers = {};
|
|
873
|
-
resolvedPath = ""
|
|
873
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/gcm";
|
|
874
874
|
if (input.ApplicationId !== undefined) {
|
|
875
875
|
labelValue = input.ApplicationId;
|
|
876
876
|
if (labelValue.length <= 0) {
|
|
@@ -901,7 +901,7 @@ export var serializeAws_restJson1DeleteInAppTemplateCommand = function (input, c
|
|
|
901
901
|
case 1:
|
|
902
902
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
903
903
|
headers = {};
|
|
904
|
-
resolvedPath = ""
|
|
904
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/inapp";
|
|
905
905
|
if (input.TemplateName !== undefined) {
|
|
906
906
|
labelValue = input.TemplateName;
|
|
907
907
|
if (labelValue.length <= 0) {
|
|
@@ -934,7 +934,7 @@ export var serializeAws_restJson1DeleteJourneyCommand = function (input, context
|
|
|
934
934
|
case 1:
|
|
935
935
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
936
936
|
headers = {};
|
|
937
|
-
resolvedPath = ""
|
|
937
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
938
938
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}";
|
|
939
939
|
if (input.ApplicationId !== undefined) {
|
|
940
940
|
labelValue = input.ApplicationId;
|
|
@@ -976,7 +976,7 @@ export var serializeAws_restJson1DeletePushTemplateCommand = function (input, co
|
|
|
976
976
|
case 1:
|
|
977
977
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
978
978
|
headers = {};
|
|
979
|
-
resolvedPath = ""
|
|
979
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/push";
|
|
980
980
|
if (input.TemplateName !== undefined) {
|
|
981
981
|
labelValue = input.TemplateName;
|
|
982
982
|
if (labelValue.length <= 0) {
|
|
@@ -1009,7 +1009,7 @@ export var serializeAws_restJson1DeleteRecommenderConfigurationCommand = functio
|
|
|
1009
1009
|
case 1:
|
|
1010
1010
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1011
1011
|
headers = {};
|
|
1012
|
-
resolvedPath = ""
|
|
1012
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/recommenders/{RecommenderId}";
|
|
1013
1013
|
if (input.RecommenderId !== undefined) {
|
|
1014
1014
|
labelValue = input.RecommenderId;
|
|
1015
1015
|
if (labelValue.length <= 0) {
|
|
@@ -1040,7 +1040,7 @@ export var serializeAws_restJson1DeleteSegmentCommand = function (input, context
|
|
|
1040
1040
|
case 1:
|
|
1041
1041
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1042
1042
|
headers = {};
|
|
1043
|
-
resolvedPath = ""
|
|
1043
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1044
1044
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}";
|
|
1045
1045
|
if (input.ApplicationId !== undefined) {
|
|
1046
1046
|
labelValue = input.ApplicationId;
|
|
@@ -1082,7 +1082,7 @@ export var serializeAws_restJson1DeleteSmsChannelCommand = function (input, cont
|
|
|
1082
1082
|
case 1:
|
|
1083
1083
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1084
1084
|
headers = {};
|
|
1085
|
-
resolvedPath = ""
|
|
1085
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/sms";
|
|
1086
1086
|
if (input.ApplicationId !== undefined) {
|
|
1087
1087
|
labelValue = input.ApplicationId;
|
|
1088
1088
|
if (labelValue.length <= 0) {
|
|
@@ -1113,7 +1113,7 @@ export var serializeAws_restJson1DeleteSmsTemplateCommand = function (input, con
|
|
|
1113
1113
|
case 1:
|
|
1114
1114
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1115
1115
|
headers = {};
|
|
1116
|
-
resolvedPath = ""
|
|
1116
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/sms";
|
|
1117
1117
|
if (input.TemplateName !== undefined) {
|
|
1118
1118
|
labelValue = input.TemplateName;
|
|
1119
1119
|
if (labelValue.length <= 0) {
|
|
@@ -1146,7 +1146,7 @@ export var serializeAws_restJson1DeleteUserEndpointsCommand = function (input, c
|
|
|
1146
1146
|
case 1:
|
|
1147
1147
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1148
1148
|
headers = {};
|
|
1149
|
-
resolvedPath = ""
|
|
1149
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/users/{UserId}";
|
|
1150
1150
|
if (input.ApplicationId !== undefined) {
|
|
1151
1151
|
labelValue = input.ApplicationId;
|
|
1152
1152
|
if (labelValue.length <= 0) {
|
|
@@ -1187,7 +1187,7 @@ export var serializeAws_restJson1DeleteVoiceChannelCommand = function (input, co
|
|
|
1187
1187
|
case 1:
|
|
1188
1188
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1189
1189
|
headers = {};
|
|
1190
|
-
resolvedPath = ""
|
|
1190
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/voice";
|
|
1191
1191
|
if (input.ApplicationId !== undefined) {
|
|
1192
1192
|
labelValue = input.ApplicationId;
|
|
1193
1193
|
if (labelValue.length <= 0) {
|
|
@@ -1218,7 +1218,7 @@ export var serializeAws_restJson1DeleteVoiceTemplateCommand = function (input, c
|
|
|
1218
1218
|
case 1:
|
|
1219
1219
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1220
1220
|
headers = {};
|
|
1221
|
-
resolvedPath = ""
|
|
1221
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/voice";
|
|
1222
1222
|
if (input.TemplateName !== undefined) {
|
|
1223
1223
|
labelValue = input.TemplateName;
|
|
1224
1224
|
if (labelValue.length <= 0) {
|
|
@@ -1251,7 +1251,7 @@ export var serializeAws_restJson1GetAdmChannelCommand = function (input, context
|
|
|
1251
1251
|
case 1:
|
|
1252
1252
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1253
1253
|
headers = {};
|
|
1254
|
-
resolvedPath = ""
|
|
1254
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/adm";
|
|
1255
1255
|
if (input.ApplicationId !== undefined) {
|
|
1256
1256
|
labelValue = input.ApplicationId;
|
|
1257
1257
|
if (labelValue.length <= 0) {
|
|
@@ -1282,7 +1282,7 @@ export var serializeAws_restJson1GetApnsChannelCommand = function (input, contex
|
|
|
1282
1282
|
case 1:
|
|
1283
1283
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1284
1284
|
headers = {};
|
|
1285
|
-
resolvedPath = ""
|
|
1285
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/apns";
|
|
1286
1286
|
if (input.ApplicationId !== undefined) {
|
|
1287
1287
|
labelValue = input.ApplicationId;
|
|
1288
1288
|
if (labelValue.length <= 0) {
|
|
@@ -1313,7 +1313,7 @@ export var serializeAws_restJson1GetApnsSandboxChannelCommand = function (input,
|
|
|
1313
1313
|
case 1:
|
|
1314
1314
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1315
1315
|
headers = {};
|
|
1316
|
-
resolvedPath = ""
|
|
1316
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1317
1317
|
"/v1/apps/{ApplicationId}/channels/apns_sandbox";
|
|
1318
1318
|
if (input.ApplicationId !== undefined) {
|
|
1319
1319
|
labelValue = input.ApplicationId;
|
|
@@ -1345,7 +1345,7 @@ export var serializeAws_restJson1GetApnsVoipChannelCommand = function (input, co
|
|
|
1345
1345
|
case 1:
|
|
1346
1346
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1347
1347
|
headers = {};
|
|
1348
|
-
resolvedPath = ""
|
|
1348
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1349
1349
|
"/v1/apps/{ApplicationId}/channels/apns_voip";
|
|
1350
1350
|
if (input.ApplicationId !== undefined) {
|
|
1351
1351
|
labelValue = input.ApplicationId;
|
|
@@ -1377,7 +1377,7 @@ export var serializeAws_restJson1GetApnsVoipSandboxChannelCommand = function (in
|
|
|
1377
1377
|
case 1:
|
|
1378
1378
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1379
1379
|
headers = {};
|
|
1380
|
-
resolvedPath = ""
|
|
1380
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1381
1381
|
"/v1/apps/{ApplicationId}/channels/apns_voip_sandbox";
|
|
1382
1382
|
if (input.ApplicationId !== undefined) {
|
|
1383
1383
|
labelValue = input.ApplicationId;
|
|
@@ -1409,7 +1409,7 @@ export var serializeAws_restJson1GetAppCommand = function (input, context) { ret
|
|
|
1409
1409
|
case 1:
|
|
1410
1410
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1411
1411
|
headers = {};
|
|
1412
|
-
resolvedPath = ""
|
|
1412
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}";
|
|
1413
1413
|
if (input.ApplicationId !== undefined) {
|
|
1414
1414
|
labelValue = input.ApplicationId;
|
|
1415
1415
|
if (labelValue.length <= 0) {
|
|
@@ -1440,7 +1440,7 @@ export var serializeAws_restJson1GetApplicationDateRangeKpiCommand = function (i
|
|
|
1440
1440
|
case 1:
|
|
1441
1441
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1442
1442
|
headers = {};
|
|
1443
|
-
resolvedPath = ""
|
|
1443
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1444
1444
|
"/v1/apps/{ApplicationId}/kpis/daterange/{KpiName}";
|
|
1445
1445
|
if (input.ApplicationId !== undefined) {
|
|
1446
1446
|
labelValue = input.ApplicationId;
|
|
@@ -1486,7 +1486,7 @@ export var serializeAws_restJson1GetApplicationSettingsCommand = function (input
|
|
|
1486
1486
|
case 1:
|
|
1487
1487
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1488
1488
|
headers = {};
|
|
1489
|
-
resolvedPath = ""
|
|
1489
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/settings";
|
|
1490
1490
|
if (input.ApplicationId !== undefined) {
|
|
1491
1491
|
labelValue = input.ApplicationId;
|
|
1492
1492
|
if (labelValue.length <= 0) {
|
|
@@ -1517,7 +1517,7 @@ export var serializeAws_restJson1GetAppsCommand = function (input, context) { re
|
|
|
1517
1517
|
case 1:
|
|
1518
1518
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1519
1519
|
headers = {};
|
|
1520
|
-
resolvedPath = ""
|
|
1520
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps";
|
|
1521
1521
|
query = __assign(__assign({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
|
|
1522
1522
|
return [2, new __HttpRequest({
|
|
1523
1523
|
protocol: protocol,
|
|
@@ -1540,7 +1540,7 @@ export var serializeAws_restJson1GetBaiduChannelCommand = function (input, conte
|
|
|
1540
1540
|
case 1:
|
|
1541
1541
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1542
1542
|
headers = {};
|
|
1543
|
-
resolvedPath = ""
|
|
1543
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/baidu";
|
|
1544
1544
|
if (input.ApplicationId !== undefined) {
|
|
1545
1545
|
labelValue = input.ApplicationId;
|
|
1546
1546
|
if (labelValue.length <= 0) {
|
|
@@ -1571,7 +1571,7 @@ export var serializeAws_restJson1GetCampaignCommand = function (input, context)
|
|
|
1571
1571
|
case 1:
|
|
1572
1572
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1573
1573
|
headers = {};
|
|
1574
|
-
resolvedPath = ""
|
|
1574
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1575
1575
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}";
|
|
1576
1576
|
if (input.ApplicationId !== undefined) {
|
|
1577
1577
|
labelValue = input.ApplicationId;
|
|
@@ -1613,7 +1613,7 @@ export var serializeAws_restJson1GetCampaignActivitiesCommand = function (input,
|
|
|
1613
1613
|
case 1:
|
|
1614
1614
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1615
1615
|
headers = {};
|
|
1616
|
-
resolvedPath = ""
|
|
1616
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1617
1617
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}/activities";
|
|
1618
1618
|
if (input.ApplicationId !== undefined) {
|
|
1619
1619
|
labelValue = input.ApplicationId;
|
|
@@ -1657,7 +1657,7 @@ export var serializeAws_restJson1GetCampaignDateRangeKpiCommand = function (inpu
|
|
|
1657
1657
|
case 1:
|
|
1658
1658
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1659
1659
|
headers = {};
|
|
1660
|
-
resolvedPath = ""
|
|
1660
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1661
1661
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}/kpis/daterange/{KpiName}";
|
|
1662
1662
|
if (input.ApplicationId !== undefined) {
|
|
1663
1663
|
labelValue = input.ApplicationId;
|
|
@@ -1713,7 +1713,7 @@ export var serializeAws_restJson1GetCampaignsCommand = function (input, context)
|
|
|
1713
1713
|
case 1:
|
|
1714
1714
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1715
1715
|
headers = {};
|
|
1716
|
-
resolvedPath = ""
|
|
1716
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/campaigns";
|
|
1717
1717
|
if (input.ApplicationId !== undefined) {
|
|
1718
1718
|
labelValue = input.ApplicationId;
|
|
1719
1719
|
if (labelValue.length <= 0) {
|
|
@@ -1746,7 +1746,7 @@ export var serializeAws_restJson1GetCampaignVersionCommand = function (input, co
|
|
|
1746
1746
|
case 1:
|
|
1747
1747
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1748
1748
|
headers = {};
|
|
1749
|
-
resolvedPath = ""
|
|
1749
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1750
1750
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions/{Version}";
|
|
1751
1751
|
if (input.ApplicationId !== undefined) {
|
|
1752
1752
|
labelValue = input.ApplicationId;
|
|
@@ -1798,7 +1798,7 @@ export var serializeAws_restJson1GetCampaignVersionsCommand = function (input, c
|
|
|
1798
1798
|
case 1:
|
|
1799
1799
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1800
1800
|
headers = {};
|
|
1801
|
-
resolvedPath = ""
|
|
1801
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1802
1802
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions";
|
|
1803
1803
|
if (input.ApplicationId !== undefined) {
|
|
1804
1804
|
labelValue = input.ApplicationId;
|
|
@@ -1842,7 +1842,7 @@ export var serializeAws_restJson1GetChannelsCommand = function (input, context)
|
|
|
1842
1842
|
case 1:
|
|
1843
1843
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1844
1844
|
headers = {};
|
|
1845
|
-
resolvedPath = ""
|
|
1845
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels";
|
|
1846
1846
|
if (input.ApplicationId !== undefined) {
|
|
1847
1847
|
labelValue = input.ApplicationId;
|
|
1848
1848
|
if (labelValue.length <= 0) {
|
|
@@ -1873,7 +1873,7 @@ export var serializeAws_restJson1GetEmailChannelCommand = function (input, conte
|
|
|
1873
1873
|
case 1:
|
|
1874
1874
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1875
1875
|
headers = {};
|
|
1876
|
-
resolvedPath = ""
|
|
1876
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/email";
|
|
1877
1877
|
if (input.ApplicationId !== undefined) {
|
|
1878
1878
|
labelValue = input.ApplicationId;
|
|
1879
1879
|
if (labelValue.length <= 0) {
|
|
@@ -1904,7 +1904,7 @@ export var serializeAws_restJson1GetEmailTemplateCommand = function (input, cont
|
|
|
1904
1904
|
case 1:
|
|
1905
1905
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1906
1906
|
headers = {};
|
|
1907
|
-
resolvedPath = ""
|
|
1907
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/email";
|
|
1908
1908
|
if (input.TemplateName !== undefined) {
|
|
1909
1909
|
labelValue = input.TemplateName;
|
|
1910
1910
|
if (labelValue.length <= 0) {
|
|
@@ -1937,7 +1937,7 @@ export var serializeAws_restJson1GetEndpointCommand = function (input, context)
|
|
|
1937
1937
|
case 1:
|
|
1938
1938
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1939
1939
|
headers = {};
|
|
1940
|
-
resolvedPath = ""
|
|
1940
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1941
1941
|
"/v1/apps/{ApplicationId}/endpoints/{EndpointId}";
|
|
1942
1942
|
if (input.ApplicationId !== undefined) {
|
|
1943
1943
|
labelValue = input.ApplicationId;
|
|
@@ -1979,7 +1979,7 @@ export var serializeAws_restJson1GetEventStreamCommand = function (input, contex
|
|
|
1979
1979
|
case 1:
|
|
1980
1980
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1981
1981
|
headers = {};
|
|
1982
|
-
resolvedPath = ""
|
|
1982
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/eventstream";
|
|
1983
1983
|
if (input.ApplicationId !== undefined) {
|
|
1984
1984
|
labelValue = input.ApplicationId;
|
|
1985
1985
|
if (labelValue.length <= 0) {
|
|
@@ -2010,7 +2010,7 @@ export var serializeAws_restJson1GetExportJobCommand = function (input, context)
|
|
|
2010
2010
|
case 1:
|
|
2011
2011
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2012
2012
|
headers = {};
|
|
2013
|
-
resolvedPath = ""
|
|
2013
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2014
2014
|
"/v1/apps/{ApplicationId}/jobs/export/{JobId}";
|
|
2015
2015
|
if (input.ApplicationId !== undefined) {
|
|
2016
2016
|
labelValue = input.ApplicationId;
|
|
@@ -2052,7 +2052,7 @@ export var serializeAws_restJson1GetExportJobsCommand = function (input, context
|
|
|
2052
2052
|
case 1:
|
|
2053
2053
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2054
2054
|
headers = {};
|
|
2055
|
-
resolvedPath = ""
|
|
2055
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/jobs/export";
|
|
2056
2056
|
if (input.ApplicationId !== undefined) {
|
|
2057
2057
|
labelValue = input.ApplicationId;
|
|
2058
2058
|
if (labelValue.length <= 0) {
|
|
@@ -2085,7 +2085,7 @@ export var serializeAws_restJson1GetGcmChannelCommand = function (input, context
|
|
|
2085
2085
|
case 1:
|
|
2086
2086
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2087
2087
|
headers = {};
|
|
2088
|
-
resolvedPath = ""
|
|
2088
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/gcm";
|
|
2089
2089
|
if (input.ApplicationId !== undefined) {
|
|
2090
2090
|
labelValue = input.ApplicationId;
|
|
2091
2091
|
if (labelValue.length <= 0) {
|
|
@@ -2116,7 +2116,7 @@ export var serializeAws_restJson1GetImportJobCommand = function (input, context)
|
|
|
2116
2116
|
case 1:
|
|
2117
2117
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2118
2118
|
headers = {};
|
|
2119
|
-
resolvedPath = ""
|
|
2119
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2120
2120
|
"/v1/apps/{ApplicationId}/jobs/import/{JobId}";
|
|
2121
2121
|
if (input.ApplicationId !== undefined) {
|
|
2122
2122
|
labelValue = input.ApplicationId;
|
|
@@ -2158,7 +2158,7 @@ export var serializeAws_restJson1GetImportJobsCommand = function (input, context
|
|
|
2158
2158
|
case 1:
|
|
2159
2159
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2160
2160
|
headers = {};
|
|
2161
|
-
resolvedPath = ""
|
|
2161
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/jobs/import";
|
|
2162
2162
|
if (input.ApplicationId !== undefined) {
|
|
2163
2163
|
labelValue = input.ApplicationId;
|
|
2164
2164
|
if (labelValue.length <= 0) {
|
|
@@ -2191,7 +2191,7 @@ export var serializeAws_restJson1GetInAppMessagesCommand = function (input, cont
|
|
|
2191
2191
|
case 1:
|
|
2192
2192
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2193
2193
|
headers = {};
|
|
2194
|
-
resolvedPath = ""
|
|
2194
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2195
2195
|
"/v1/apps/{ApplicationId}/endpoints/{EndpointId}/inappmessages";
|
|
2196
2196
|
if (input.ApplicationId !== undefined) {
|
|
2197
2197
|
labelValue = input.ApplicationId;
|
|
@@ -2233,7 +2233,7 @@ export var serializeAws_restJson1GetInAppTemplateCommand = function (input, cont
|
|
|
2233
2233
|
case 1:
|
|
2234
2234
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2235
2235
|
headers = {};
|
|
2236
|
-
resolvedPath = ""
|
|
2236
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/inapp";
|
|
2237
2237
|
if (input.TemplateName !== undefined) {
|
|
2238
2238
|
labelValue = input.TemplateName;
|
|
2239
2239
|
if (labelValue.length <= 0) {
|
|
@@ -2266,7 +2266,7 @@ export var serializeAws_restJson1GetJourneyCommand = function (input, context) {
|
|
|
2266
2266
|
case 1:
|
|
2267
2267
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2268
2268
|
headers = {};
|
|
2269
|
-
resolvedPath = ""
|
|
2269
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2270
2270
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}";
|
|
2271
2271
|
if (input.ApplicationId !== undefined) {
|
|
2272
2272
|
labelValue = input.ApplicationId;
|
|
@@ -2308,7 +2308,7 @@ export var serializeAws_restJson1GetJourneyDateRangeKpiCommand = function (input
|
|
|
2308
2308
|
case 1:
|
|
2309
2309
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2310
2310
|
headers = {};
|
|
2311
|
-
resolvedPath = ""
|
|
2311
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2312
2312
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}/kpis/daterange/{KpiName}";
|
|
2313
2313
|
if (input.ApplicationId !== undefined) {
|
|
2314
2314
|
labelValue = input.ApplicationId;
|
|
@@ -2364,7 +2364,7 @@ export var serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand = fun
|
|
|
2364
2364
|
case 1:
|
|
2365
2365
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2366
2366
|
headers = {};
|
|
2367
|
-
resolvedPath = ""
|
|
2367
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2368
2368
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}/activities/{JourneyActivityId}/execution-metrics";
|
|
2369
2369
|
if (input.ApplicationId !== undefined) {
|
|
2370
2370
|
labelValue = input.ApplicationId;
|
|
@@ -2418,7 +2418,7 @@ export var serializeAws_restJson1GetJourneyExecutionMetricsCommand = function (i
|
|
|
2418
2418
|
case 1:
|
|
2419
2419
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2420
2420
|
headers = {};
|
|
2421
|
-
resolvedPath = ""
|
|
2421
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2422
2422
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}/execution-metrics";
|
|
2423
2423
|
if (input.ApplicationId !== undefined) {
|
|
2424
2424
|
labelValue = input.ApplicationId;
|
|
@@ -2462,7 +2462,7 @@ export var serializeAws_restJson1GetPushTemplateCommand = function (input, conte
|
|
|
2462
2462
|
case 1:
|
|
2463
2463
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2464
2464
|
headers = {};
|
|
2465
|
-
resolvedPath = ""
|
|
2465
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/push";
|
|
2466
2466
|
if (input.TemplateName !== undefined) {
|
|
2467
2467
|
labelValue = input.TemplateName;
|
|
2468
2468
|
if (labelValue.length <= 0) {
|
|
@@ -2495,7 +2495,7 @@ export var serializeAws_restJson1GetRecommenderConfigurationCommand = function (
|
|
|
2495
2495
|
case 1:
|
|
2496
2496
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2497
2497
|
headers = {};
|
|
2498
|
-
resolvedPath = ""
|
|
2498
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/recommenders/{RecommenderId}";
|
|
2499
2499
|
if (input.RecommenderId !== undefined) {
|
|
2500
2500
|
labelValue = input.RecommenderId;
|
|
2501
2501
|
if (labelValue.length <= 0) {
|
|
@@ -2526,7 +2526,7 @@ export var serializeAws_restJson1GetRecommenderConfigurationsCommand = function
|
|
|
2526
2526
|
case 1:
|
|
2527
2527
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2528
2528
|
headers = {};
|
|
2529
|
-
resolvedPath = ""
|
|
2529
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/recommenders";
|
|
2530
2530
|
query = __assign(__assign({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
|
|
2531
2531
|
return [2, new __HttpRequest({
|
|
2532
2532
|
protocol: protocol,
|
|
@@ -2549,7 +2549,7 @@ export var serializeAws_restJson1GetSegmentCommand = function (input, context) {
|
|
|
2549
2549
|
case 1:
|
|
2550
2550
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2551
2551
|
headers = {};
|
|
2552
|
-
resolvedPath = ""
|
|
2552
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2553
2553
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}";
|
|
2554
2554
|
if (input.ApplicationId !== undefined) {
|
|
2555
2555
|
labelValue = input.ApplicationId;
|
|
@@ -2591,7 +2591,7 @@ export var serializeAws_restJson1GetSegmentExportJobsCommand = function (input,
|
|
|
2591
2591
|
case 1:
|
|
2592
2592
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2593
2593
|
headers = {};
|
|
2594
|
-
resolvedPath = ""
|
|
2594
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2595
2595
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/export";
|
|
2596
2596
|
if (input.ApplicationId !== undefined) {
|
|
2597
2597
|
labelValue = input.ApplicationId;
|
|
@@ -2635,7 +2635,7 @@ export var serializeAws_restJson1GetSegmentImportJobsCommand = function (input,
|
|
|
2635
2635
|
case 1:
|
|
2636
2636
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2637
2637
|
headers = {};
|
|
2638
|
-
resolvedPath = ""
|
|
2638
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2639
2639
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/import";
|
|
2640
2640
|
if (input.ApplicationId !== undefined) {
|
|
2641
2641
|
labelValue = input.ApplicationId;
|
|
@@ -2679,7 +2679,7 @@ export var serializeAws_restJson1GetSegmentsCommand = function (input, context)
|
|
|
2679
2679
|
case 1:
|
|
2680
2680
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2681
2681
|
headers = {};
|
|
2682
|
-
resolvedPath = ""
|
|
2682
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/segments";
|
|
2683
2683
|
if (input.ApplicationId !== undefined) {
|
|
2684
2684
|
labelValue = input.ApplicationId;
|
|
2685
2685
|
if (labelValue.length <= 0) {
|
|
@@ -2712,7 +2712,7 @@ export var serializeAws_restJson1GetSegmentVersionCommand = function (input, con
|
|
|
2712
2712
|
case 1:
|
|
2713
2713
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2714
2714
|
headers = {};
|
|
2715
|
-
resolvedPath = ""
|
|
2715
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2716
2716
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}/versions/{Version}";
|
|
2717
2717
|
if (input.ApplicationId !== undefined) {
|
|
2718
2718
|
labelValue = input.ApplicationId;
|
|
@@ -2764,7 +2764,7 @@ export var serializeAws_restJson1GetSegmentVersionsCommand = function (input, co
|
|
|
2764
2764
|
case 1:
|
|
2765
2765
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2766
2766
|
headers = {};
|
|
2767
|
-
resolvedPath = ""
|
|
2767
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2768
2768
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}/versions";
|
|
2769
2769
|
if (input.ApplicationId !== undefined) {
|
|
2770
2770
|
labelValue = input.ApplicationId;
|
|
@@ -2808,7 +2808,7 @@ export var serializeAws_restJson1GetSmsChannelCommand = function (input, context
|
|
|
2808
2808
|
case 1:
|
|
2809
2809
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2810
2810
|
headers = {};
|
|
2811
|
-
resolvedPath = ""
|
|
2811
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/sms";
|
|
2812
2812
|
if (input.ApplicationId !== undefined) {
|
|
2813
2813
|
labelValue = input.ApplicationId;
|
|
2814
2814
|
if (labelValue.length <= 0) {
|
|
@@ -2839,7 +2839,7 @@ export var serializeAws_restJson1GetSmsTemplateCommand = function (input, contex
|
|
|
2839
2839
|
case 1:
|
|
2840
2840
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2841
2841
|
headers = {};
|
|
2842
|
-
resolvedPath = ""
|
|
2842
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/sms";
|
|
2843
2843
|
if (input.TemplateName !== undefined) {
|
|
2844
2844
|
labelValue = input.TemplateName;
|
|
2845
2845
|
if (labelValue.length <= 0) {
|
|
@@ -2872,7 +2872,7 @@ export var serializeAws_restJson1GetUserEndpointsCommand = function (input, cont
|
|
|
2872
2872
|
case 1:
|
|
2873
2873
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2874
2874
|
headers = {};
|
|
2875
|
-
resolvedPath = ""
|
|
2875
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/users/{UserId}";
|
|
2876
2876
|
if (input.ApplicationId !== undefined) {
|
|
2877
2877
|
labelValue = input.ApplicationId;
|
|
2878
2878
|
if (labelValue.length <= 0) {
|
|
@@ -2913,7 +2913,7 @@ export var serializeAws_restJson1GetVoiceChannelCommand = function (input, conte
|
|
|
2913
2913
|
case 1:
|
|
2914
2914
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2915
2915
|
headers = {};
|
|
2916
|
-
resolvedPath = ""
|
|
2916
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/voice";
|
|
2917
2917
|
if (input.ApplicationId !== undefined) {
|
|
2918
2918
|
labelValue = input.ApplicationId;
|
|
2919
2919
|
if (labelValue.length <= 0) {
|
|
@@ -2944,7 +2944,7 @@ export var serializeAws_restJson1GetVoiceTemplateCommand = function (input, cont
|
|
|
2944
2944
|
case 1:
|
|
2945
2945
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2946
2946
|
headers = {};
|
|
2947
|
-
resolvedPath = ""
|
|
2947
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/voice";
|
|
2948
2948
|
if (input.TemplateName !== undefined) {
|
|
2949
2949
|
labelValue = input.TemplateName;
|
|
2950
2950
|
if (labelValue.length <= 0) {
|
|
@@ -2977,7 +2977,7 @@ export var serializeAws_restJson1ListJourneysCommand = function (input, context)
|
|
|
2977
2977
|
case 1:
|
|
2978
2978
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2979
2979
|
headers = {};
|
|
2980
|
-
resolvedPath = ""
|
|
2980
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/journeys";
|
|
2981
2981
|
if (input.ApplicationId !== undefined) {
|
|
2982
2982
|
labelValue = input.ApplicationId;
|
|
2983
2983
|
if (labelValue.length <= 0) {
|
|
@@ -3010,7 +3010,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
3010
3010
|
case 1:
|
|
3011
3011
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3012
3012
|
headers = {};
|
|
3013
|
-
resolvedPath = ""
|
|
3013
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
|
|
3014
3014
|
if (input.ResourceArn !== undefined) {
|
|
3015
3015
|
labelValue = input.ResourceArn;
|
|
3016
3016
|
if (labelValue.length <= 0) {
|
|
@@ -3041,7 +3041,7 @@ export var serializeAws_restJson1ListTemplatesCommand = function (input, context
|
|
|
3041
3041
|
case 1:
|
|
3042
3042
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3043
3043
|
headers = {};
|
|
3044
|
-
resolvedPath = ""
|
|
3044
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates";
|
|
3045
3045
|
query = __assign(__assign(__assign(__assign({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Prefix !== undefined && { prefix: input.Prefix })), (input.TemplateType !== undefined && { "template-type": input.TemplateType }));
|
|
3046
3046
|
return [2, new __HttpRequest({
|
|
3047
3047
|
protocol: protocol,
|
|
@@ -3064,7 +3064,7 @@ export var serializeAws_restJson1ListTemplateVersionsCommand = function (input,
|
|
|
3064
3064
|
case 1:
|
|
3065
3065
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3066
3066
|
headers = {};
|
|
3067
|
-
resolvedPath = ""
|
|
3067
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
3068
3068
|
"/v1/templates/{TemplateName}/{TemplateType}/versions";
|
|
3069
3069
|
if (input.TemplateName !== undefined) {
|
|
3070
3070
|
labelValue = input.TemplateName;
|
|
@@ -3110,7 +3110,7 @@ export var serializeAws_restJson1PhoneNumberValidateCommand = function (input, c
|
|
|
3110
3110
|
headers = {
|
|
3111
3111
|
"content-type": "application/json",
|
|
3112
3112
|
};
|
|
3113
|
-
resolvedPath = ""
|
|
3113
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/phone/number/validate";
|
|
3114
3114
|
if (input.NumberValidateRequest !== undefined) {
|
|
3115
3115
|
body = serializeAws_restJson1NumberValidateRequest(input.NumberValidateRequest, context);
|
|
3116
3116
|
}
|
|
@@ -3140,7 +3140,7 @@ export var serializeAws_restJson1PutEventsCommand = function (input, context) {
|
|
|
3140
3140
|
headers = {
|
|
3141
3141
|
"content-type": "application/json",
|
|
3142
3142
|
};
|
|
3143
|
-
resolvedPath = ""
|
|
3143
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/events";
|
|
3144
3144
|
if (input.ApplicationId !== undefined) {
|
|
3145
3145
|
labelValue = input.ApplicationId;
|
|
3146
3146
|
if (labelValue.length <= 0) {
|
|
@@ -3180,7 +3180,7 @@ export var serializeAws_restJson1PutEventStreamCommand = function (input, contex
|
|
|
3180
3180
|
headers = {
|
|
3181
3181
|
"content-type": "application/json",
|
|
3182
3182
|
};
|
|
3183
|
-
resolvedPath = ""
|
|
3183
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/eventstream";
|
|
3184
3184
|
if (input.ApplicationId !== undefined) {
|
|
3185
3185
|
labelValue = input.ApplicationId;
|
|
3186
3186
|
if (labelValue.length <= 0) {
|
|
@@ -3220,7 +3220,7 @@ export var serializeAws_restJson1RemoveAttributesCommand = function (input, cont
|
|
|
3220
3220
|
headers = {
|
|
3221
3221
|
"content-type": "application/json",
|
|
3222
3222
|
};
|
|
3223
|
-
resolvedPath = ""
|
|
3223
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
3224
3224
|
"/v1/apps/{ApplicationId}/attributes/{AttributeType}";
|
|
3225
3225
|
if (input.ApplicationId !== undefined) {
|
|
3226
3226
|
labelValue = input.ApplicationId;
|
|
@@ -3271,7 +3271,7 @@ export var serializeAws_restJson1SendMessagesCommand = function (input, context)
|
|
|
3271
3271
|
headers = {
|
|
3272
3272
|
"content-type": "application/json",
|
|
3273
3273
|
};
|
|
3274
|
-
resolvedPath = ""
|
|
3274
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/messages";
|
|
3275
3275
|
if (input.ApplicationId !== undefined) {
|
|
3276
3276
|
labelValue = input.ApplicationId;
|
|
3277
3277
|
if (labelValue.length <= 0) {
|
|
@@ -3311,7 +3311,7 @@ export var serializeAws_restJson1SendOTPMessageCommand = function (input, contex
|
|
|
3311
3311
|
headers = {
|
|
3312
3312
|
"content-type": "application/json",
|
|
3313
3313
|
};
|
|
3314
|
-
resolvedPath = ""
|
|
3314
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/otp";
|
|
3315
3315
|
if (input.ApplicationId !== undefined) {
|
|
3316
3316
|
labelValue = input.ApplicationId;
|
|
3317
3317
|
if (labelValue.length <= 0) {
|
|
@@ -3351,7 +3351,7 @@ export var serializeAws_restJson1SendUsersMessagesCommand = function (input, con
|
|
|
3351
3351
|
headers = {
|
|
3352
3352
|
"content-type": "application/json",
|
|
3353
3353
|
};
|
|
3354
|
-
resolvedPath = ""
|
|
3354
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/users-messages";
|
|
3355
3355
|
if (input.ApplicationId !== undefined) {
|
|
3356
3356
|
labelValue = input.ApplicationId;
|
|
3357
3357
|
if (labelValue.length <= 0) {
|
|
@@ -3391,7 +3391,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
3391
3391
|
headers = {
|
|
3392
3392
|
"content-type": "application/json",
|
|
3393
3393
|
};
|
|
3394
|
-
resolvedPath = ""
|
|
3394
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
|
|
3395
3395
|
if (input.ResourceArn !== undefined) {
|
|
3396
3396
|
labelValue = input.ResourceArn;
|
|
3397
3397
|
if (labelValue.length <= 0) {
|
|
@@ -3429,7 +3429,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
3429
3429
|
case 1:
|
|
3430
3430
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3431
3431
|
headers = {};
|
|
3432
|
-
resolvedPath = ""
|
|
3432
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
|
|
3433
3433
|
if (input.ResourceArn !== undefined) {
|
|
3434
3434
|
labelValue = input.ResourceArn;
|
|
3435
3435
|
if (labelValue.length <= 0) {
|
|
@@ -3464,7 +3464,7 @@ export var serializeAws_restJson1UpdateAdmChannelCommand = function (input, cont
|
|
|
3464
3464
|
headers = {
|
|
3465
3465
|
"content-type": "application/json",
|
|
3466
3466
|
};
|
|
3467
|
-
resolvedPath = ""
|
|
3467
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/adm";
|
|
3468
3468
|
if (input.ApplicationId !== undefined) {
|
|
3469
3469
|
labelValue = input.ApplicationId;
|
|
3470
3470
|
if (labelValue.length <= 0) {
|
|
@@ -3504,7 +3504,7 @@ export var serializeAws_restJson1UpdateApnsChannelCommand = function (input, con
|
|
|
3504
3504
|
headers = {
|
|
3505
3505
|
"content-type": "application/json",
|
|
3506
3506
|
};
|
|
3507
|
-
resolvedPath = ""
|
|
3507
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/apns";
|
|
3508
3508
|
if (input.ApplicationId !== undefined) {
|
|
3509
3509
|
labelValue = input.ApplicationId;
|
|
3510
3510
|
if (labelValue.length <= 0) {
|
|
@@ -3544,7 +3544,7 @@ export var serializeAws_restJson1UpdateApnsSandboxChannelCommand = function (inp
|
|
|
3544
3544
|
headers = {
|
|
3545
3545
|
"content-type": "application/json",
|
|
3546
3546
|
};
|
|
3547
|
-
resolvedPath = ""
|
|
3547
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
3548
3548
|
"/v1/apps/{ApplicationId}/channels/apns_sandbox";
|
|
3549
3549
|
if (input.ApplicationId !== undefined) {
|
|
3550
3550
|
labelValue = input.ApplicationId;
|
|
@@ -3585,7 +3585,7 @@ export var serializeAws_restJson1UpdateApnsVoipChannelCommand = function (input,
|
|
|
3585
3585
|
headers = {
|
|
3586
3586
|
"content-type": "application/json",
|
|
3587
3587
|
};
|
|
3588
|
-
resolvedPath = ""
|
|
3588
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
3589
3589
|
"/v1/apps/{ApplicationId}/channels/apns_voip";
|
|
3590
3590
|
if (input.ApplicationId !== undefined) {
|
|
3591
3591
|
labelValue = input.ApplicationId;
|
|
@@ -3626,7 +3626,7 @@ export var serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand = function
|
|
|
3626
3626
|
headers = {
|
|
3627
3627
|
"content-type": "application/json",
|
|
3628
3628
|
};
|
|
3629
|
-
resolvedPath = ""
|
|
3629
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
3630
3630
|
"/v1/apps/{ApplicationId}/channels/apns_voip_sandbox";
|
|
3631
3631
|
if (input.ApplicationId !== undefined) {
|
|
3632
3632
|
labelValue = input.ApplicationId;
|
|
@@ -3667,7 +3667,7 @@ export var serializeAws_restJson1UpdateApplicationSettingsCommand = function (in
|
|
|
3667
3667
|
headers = {
|
|
3668
3668
|
"content-type": "application/json",
|
|
3669
3669
|
};
|
|
3670
|
-
resolvedPath = ""
|
|
3670
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/settings";
|
|
3671
3671
|
if (input.ApplicationId !== undefined) {
|
|
3672
3672
|
labelValue = input.ApplicationId;
|
|
3673
3673
|
if (labelValue.length <= 0) {
|
|
@@ -3707,7 +3707,7 @@ export var serializeAws_restJson1UpdateBaiduChannelCommand = function (input, co
|
|
|
3707
3707
|
headers = {
|
|
3708
3708
|
"content-type": "application/json",
|
|
3709
3709
|
};
|
|
3710
|
-
resolvedPath = ""
|
|
3710
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/baidu";
|
|
3711
3711
|
if (input.ApplicationId !== undefined) {
|
|
3712
3712
|
labelValue = input.ApplicationId;
|
|
3713
3713
|
if (labelValue.length <= 0) {
|
|
@@ -3747,7 +3747,7 @@ export var serializeAws_restJson1UpdateCampaignCommand = function (input, contex
|
|
|
3747
3747
|
headers = {
|
|
3748
3748
|
"content-type": "application/json",
|
|
3749
3749
|
};
|
|
3750
|
-
resolvedPath = ""
|
|
3750
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
3751
3751
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}";
|
|
3752
3752
|
if (input.ApplicationId !== undefined) {
|
|
3753
3753
|
labelValue = input.ApplicationId;
|
|
@@ -3798,7 +3798,7 @@ export var serializeAws_restJson1UpdateEmailChannelCommand = function (input, co
|
|
|
3798
3798
|
headers = {
|
|
3799
3799
|
"content-type": "application/json",
|
|
3800
3800
|
};
|
|
3801
|
-
resolvedPath = ""
|
|
3801
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/email";
|
|
3802
3802
|
if (input.ApplicationId !== undefined) {
|
|
3803
3803
|
labelValue = input.ApplicationId;
|
|
3804
3804
|
if (labelValue.length <= 0) {
|
|
@@ -3838,7 +3838,7 @@ export var serializeAws_restJson1UpdateEmailTemplateCommand = function (input, c
|
|
|
3838
3838
|
headers = {
|
|
3839
3839
|
"content-type": "application/json",
|
|
3840
3840
|
};
|
|
3841
|
-
resolvedPath = ""
|
|
3841
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/email";
|
|
3842
3842
|
if (input.TemplateName !== undefined) {
|
|
3843
3843
|
labelValue = input.TemplateName;
|
|
3844
3844
|
if (labelValue.length <= 0) {
|
|
@@ -3880,7 +3880,7 @@ export var serializeAws_restJson1UpdateEndpointCommand = function (input, contex
|
|
|
3880
3880
|
headers = {
|
|
3881
3881
|
"content-type": "application/json",
|
|
3882
3882
|
};
|
|
3883
|
-
resolvedPath = ""
|
|
3883
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
3884
3884
|
"/v1/apps/{ApplicationId}/endpoints/{EndpointId}";
|
|
3885
3885
|
if (input.ApplicationId !== undefined) {
|
|
3886
3886
|
labelValue = input.ApplicationId;
|
|
@@ -3931,7 +3931,7 @@ export var serializeAws_restJson1UpdateEndpointsBatchCommand = function (input,
|
|
|
3931
3931
|
headers = {
|
|
3932
3932
|
"content-type": "application/json",
|
|
3933
3933
|
};
|
|
3934
|
-
resolvedPath = ""
|
|
3934
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/endpoints";
|
|
3935
3935
|
if (input.ApplicationId !== undefined) {
|
|
3936
3936
|
labelValue = input.ApplicationId;
|
|
3937
3937
|
if (labelValue.length <= 0) {
|
|
@@ -3971,7 +3971,7 @@ export var serializeAws_restJson1UpdateGcmChannelCommand = function (input, cont
|
|
|
3971
3971
|
headers = {
|
|
3972
3972
|
"content-type": "application/json",
|
|
3973
3973
|
};
|
|
3974
|
-
resolvedPath = ""
|
|
3974
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/gcm";
|
|
3975
3975
|
if (input.ApplicationId !== undefined) {
|
|
3976
3976
|
labelValue = input.ApplicationId;
|
|
3977
3977
|
if (labelValue.length <= 0) {
|
|
@@ -4011,7 +4011,7 @@ export var serializeAws_restJson1UpdateInAppTemplateCommand = function (input, c
|
|
|
4011
4011
|
headers = {
|
|
4012
4012
|
"content-type": "application/json",
|
|
4013
4013
|
};
|
|
4014
|
-
resolvedPath = ""
|
|
4014
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/inapp";
|
|
4015
4015
|
if (input.TemplateName !== undefined) {
|
|
4016
4016
|
labelValue = input.TemplateName;
|
|
4017
4017
|
if (labelValue.length <= 0) {
|
|
@@ -4053,7 +4053,7 @@ export var serializeAws_restJson1UpdateJourneyCommand = function (input, context
|
|
|
4053
4053
|
headers = {
|
|
4054
4054
|
"content-type": "application/json",
|
|
4055
4055
|
};
|
|
4056
|
-
resolvedPath = ""
|
|
4056
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
4057
4057
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}";
|
|
4058
4058
|
if (input.ApplicationId !== undefined) {
|
|
4059
4059
|
labelValue = input.ApplicationId;
|
|
@@ -4104,7 +4104,7 @@ export var serializeAws_restJson1UpdateJourneyStateCommand = function (input, co
|
|
|
4104
4104
|
headers = {
|
|
4105
4105
|
"content-type": "application/json",
|
|
4106
4106
|
};
|
|
4107
|
-
resolvedPath = ""
|
|
4107
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
4108
4108
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}/state";
|
|
4109
4109
|
if (input.ApplicationId !== undefined) {
|
|
4110
4110
|
labelValue = input.ApplicationId;
|
|
@@ -4155,7 +4155,7 @@ export var serializeAws_restJson1UpdatePushTemplateCommand = function (input, co
|
|
|
4155
4155
|
headers = {
|
|
4156
4156
|
"content-type": "application/json",
|
|
4157
4157
|
};
|
|
4158
|
-
resolvedPath = ""
|
|
4158
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/push";
|
|
4159
4159
|
if (input.TemplateName !== undefined) {
|
|
4160
4160
|
labelValue = input.TemplateName;
|
|
4161
4161
|
if (labelValue.length <= 0) {
|
|
@@ -4197,7 +4197,7 @@ export var serializeAws_restJson1UpdateRecommenderConfigurationCommand = functio
|
|
|
4197
4197
|
headers = {
|
|
4198
4198
|
"content-type": "application/json",
|
|
4199
4199
|
};
|
|
4200
|
-
resolvedPath = ""
|
|
4200
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/recommenders/{RecommenderId}";
|
|
4201
4201
|
if (input.RecommenderId !== undefined) {
|
|
4202
4202
|
labelValue = input.RecommenderId;
|
|
4203
4203
|
if (labelValue.length <= 0) {
|
|
@@ -4237,7 +4237,7 @@ export var serializeAws_restJson1UpdateSegmentCommand = function (input, context
|
|
|
4237
4237
|
headers = {
|
|
4238
4238
|
"content-type": "application/json",
|
|
4239
4239
|
};
|
|
4240
|
-
resolvedPath = ""
|
|
4240
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
4241
4241
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}";
|
|
4242
4242
|
if (input.ApplicationId !== undefined) {
|
|
4243
4243
|
labelValue = input.ApplicationId;
|
|
@@ -4288,7 +4288,7 @@ export var serializeAws_restJson1UpdateSmsChannelCommand = function (input, cont
|
|
|
4288
4288
|
headers = {
|
|
4289
4289
|
"content-type": "application/json",
|
|
4290
4290
|
};
|
|
4291
|
-
resolvedPath = ""
|
|
4291
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/sms";
|
|
4292
4292
|
if (input.ApplicationId !== undefined) {
|
|
4293
4293
|
labelValue = input.ApplicationId;
|
|
4294
4294
|
if (labelValue.length <= 0) {
|
|
@@ -4328,7 +4328,7 @@ export var serializeAws_restJson1UpdateSmsTemplateCommand = function (input, con
|
|
|
4328
4328
|
headers = {
|
|
4329
4329
|
"content-type": "application/json",
|
|
4330
4330
|
};
|
|
4331
|
-
resolvedPath = ""
|
|
4331
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/sms";
|
|
4332
4332
|
if (input.TemplateName !== undefined) {
|
|
4333
4333
|
labelValue = input.TemplateName;
|
|
4334
4334
|
if (labelValue.length <= 0) {
|
|
@@ -4370,7 +4370,7 @@ export var serializeAws_restJson1UpdateTemplateActiveVersionCommand = function (
|
|
|
4370
4370
|
headers = {
|
|
4371
4371
|
"content-type": "application/json",
|
|
4372
4372
|
};
|
|
4373
|
-
resolvedPath = ""
|
|
4373
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
4374
4374
|
"/v1/templates/{TemplateName}/{TemplateType}/active-version";
|
|
4375
4375
|
if (input.TemplateName !== undefined) {
|
|
4376
4376
|
labelValue = input.TemplateName;
|
|
@@ -4421,7 +4421,7 @@ export var serializeAws_restJson1UpdateVoiceChannelCommand = function (input, co
|
|
|
4421
4421
|
headers = {
|
|
4422
4422
|
"content-type": "application/json",
|
|
4423
4423
|
};
|
|
4424
|
-
resolvedPath = ""
|
|
4424
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/channels/voice";
|
|
4425
4425
|
if (input.ApplicationId !== undefined) {
|
|
4426
4426
|
labelValue = input.ApplicationId;
|
|
4427
4427
|
if (labelValue.length <= 0) {
|
|
@@ -4461,7 +4461,7 @@ export var serializeAws_restJson1UpdateVoiceTemplateCommand = function (input, c
|
|
|
4461
4461
|
headers = {
|
|
4462
4462
|
"content-type": "application/json",
|
|
4463
4463
|
};
|
|
4464
|
-
resolvedPath = ""
|
|
4464
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/templates/{TemplateName}/voice";
|
|
4465
4465
|
if (input.TemplateName !== undefined) {
|
|
4466
4466
|
labelValue = input.TemplateName;
|
|
4467
4467
|
if (labelValue.length <= 0) {
|
|
@@ -4503,7 +4503,7 @@ export var serializeAws_restJson1VerifyOTPMessageCommand = function (input, cont
|
|
|
4503
4503
|
headers = {
|
|
4504
4504
|
"content-type": "application/json",
|
|
4505
4505
|
};
|
|
4506
|
-
resolvedPath = ""
|
|
4506
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/verify-otp";
|
|
4507
4507
|
if (input.ApplicationId !== undefined) {
|
|
4508
4508
|
labelValue = input.ApplicationId;
|
|
4509
4509
|
if (labelValue.length <= 0) {
|