@aws-sdk/client-pinpoint 3.200.0 → 3.201.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/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_restJson1.js +126 -130
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -14,7 +14,7 @@ const serializeAws_restJson1CreateAppCommand = async (input, context) => {
|
|
|
14
14
|
const headers = {
|
|
15
15
|
"content-type": "application/json",
|
|
16
16
|
};
|
|
17
|
-
const resolvedPath = `${
|
|
17
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps";
|
|
18
18
|
let body;
|
|
19
19
|
if (input.CreateApplicationRequest !== undefined) {
|
|
20
20
|
body = serializeAws_restJson1CreateApplicationRequest(input.CreateApplicationRequest, context);
|
|
@@ -39,7 +39,7 @@ const serializeAws_restJson1CreateCampaignCommand = async (input, context) => {
|
|
|
39
39
|
const headers = {
|
|
40
40
|
"content-type": "application/json",
|
|
41
41
|
};
|
|
42
|
-
let resolvedPath = `${
|
|
42
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/campaigns";
|
|
43
43
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
44
44
|
let body;
|
|
45
45
|
if (input.WriteCampaignRequest !== undefined) {
|
|
@@ -65,7 +65,7 @@ const serializeAws_restJson1CreateEmailTemplateCommand = async (input, context)
|
|
|
65
65
|
const headers = {
|
|
66
66
|
"content-type": "application/json",
|
|
67
67
|
};
|
|
68
|
-
let resolvedPath = `${
|
|
68
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/email";
|
|
69
69
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
70
70
|
let body;
|
|
71
71
|
if (input.EmailTemplateRequest !== undefined) {
|
|
@@ -91,7 +91,7 @@ const serializeAws_restJson1CreateExportJobCommand = async (input, context) => {
|
|
|
91
91
|
const headers = {
|
|
92
92
|
"content-type": "application/json",
|
|
93
93
|
};
|
|
94
|
-
let resolvedPath = `${
|
|
94
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/jobs/export";
|
|
95
95
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
96
96
|
let body;
|
|
97
97
|
if (input.ExportJobRequest !== undefined) {
|
|
@@ -117,7 +117,7 @@ const serializeAws_restJson1CreateImportJobCommand = async (input, context) => {
|
|
|
117
117
|
const headers = {
|
|
118
118
|
"content-type": "application/json",
|
|
119
119
|
};
|
|
120
|
-
let resolvedPath = `${
|
|
120
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/jobs/import";
|
|
121
121
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
122
122
|
let body;
|
|
123
123
|
if (input.ImportJobRequest !== undefined) {
|
|
@@ -143,7 +143,7 @@ const serializeAws_restJson1CreateInAppTemplateCommand = async (input, context)
|
|
|
143
143
|
const headers = {
|
|
144
144
|
"content-type": "application/json",
|
|
145
145
|
};
|
|
146
|
-
let resolvedPath = `${
|
|
146
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/inapp";
|
|
147
147
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
148
148
|
let body;
|
|
149
149
|
if (input.InAppTemplateRequest !== undefined) {
|
|
@@ -169,7 +169,7 @@ const serializeAws_restJson1CreateJourneyCommand = async (input, context) => {
|
|
|
169
169
|
const headers = {
|
|
170
170
|
"content-type": "application/json",
|
|
171
171
|
};
|
|
172
|
-
let resolvedPath = `${
|
|
172
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/journeys";
|
|
173
173
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
174
174
|
let body;
|
|
175
175
|
if (input.WriteJourneyRequest !== undefined) {
|
|
@@ -195,7 +195,7 @@ const serializeAws_restJson1CreatePushTemplateCommand = async (input, context) =
|
|
|
195
195
|
const headers = {
|
|
196
196
|
"content-type": "application/json",
|
|
197
197
|
};
|
|
198
|
-
let resolvedPath = `${
|
|
198
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/push";
|
|
199
199
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
200
200
|
let body;
|
|
201
201
|
if (input.PushNotificationTemplateRequest !== undefined) {
|
|
@@ -221,7 +221,7 @@ const serializeAws_restJson1CreateRecommenderConfigurationCommand = async (input
|
|
|
221
221
|
const headers = {
|
|
222
222
|
"content-type": "application/json",
|
|
223
223
|
};
|
|
224
|
-
const resolvedPath = `${
|
|
224
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/recommenders";
|
|
225
225
|
let body;
|
|
226
226
|
if (input.CreateRecommenderConfiguration !== undefined) {
|
|
227
227
|
body = serializeAws_restJson1CreateRecommenderConfigurationShape(input.CreateRecommenderConfiguration, context);
|
|
@@ -246,7 +246,7 @@ const serializeAws_restJson1CreateSegmentCommand = async (input, context) => {
|
|
|
246
246
|
const headers = {
|
|
247
247
|
"content-type": "application/json",
|
|
248
248
|
};
|
|
249
|
-
let resolvedPath = `${
|
|
249
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/segments";
|
|
250
250
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
251
251
|
let body;
|
|
252
252
|
if (input.WriteSegmentRequest !== undefined) {
|
|
@@ -272,7 +272,7 @@ const serializeAws_restJson1CreateSmsTemplateCommand = async (input, context) =>
|
|
|
272
272
|
const headers = {
|
|
273
273
|
"content-type": "application/json",
|
|
274
274
|
};
|
|
275
|
-
let resolvedPath = `${
|
|
275
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/sms";
|
|
276
276
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
277
277
|
let body;
|
|
278
278
|
if (input.SMSTemplateRequest !== undefined) {
|
|
@@ -298,7 +298,7 @@ const serializeAws_restJson1CreateVoiceTemplateCommand = async (input, context)
|
|
|
298
298
|
const headers = {
|
|
299
299
|
"content-type": "application/json",
|
|
300
300
|
};
|
|
301
|
-
let resolvedPath = `${
|
|
301
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/voice";
|
|
302
302
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
303
303
|
let body;
|
|
304
304
|
if (input.VoiceTemplateRequest !== undefined) {
|
|
@@ -322,7 +322,7 @@ exports.serializeAws_restJson1CreateVoiceTemplateCommand = serializeAws_restJson
|
|
|
322
322
|
const serializeAws_restJson1DeleteAdmChannelCommand = async (input, context) => {
|
|
323
323
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
324
324
|
const headers = {};
|
|
325
|
-
let resolvedPath = `${
|
|
325
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/adm";
|
|
326
326
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
327
327
|
let body;
|
|
328
328
|
return new protocol_http_1.HttpRequest({
|
|
@@ -339,7 +339,7 @@ exports.serializeAws_restJson1DeleteAdmChannelCommand = serializeAws_restJson1De
|
|
|
339
339
|
const serializeAws_restJson1DeleteApnsChannelCommand = async (input, context) => {
|
|
340
340
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
341
341
|
const headers = {};
|
|
342
|
-
let resolvedPath = `${
|
|
342
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/apns";
|
|
343
343
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
344
344
|
let body;
|
|
345
345
|
return new protocol_http_1.HttpRequest({
|
|
@@ -356,7 +356,7 @@ exports.serializeAws_restJson1DeleteApnsChannelCommand = serializeAws_restJson1D
|
|
|
356
356
|
const serializeAws_restJson1DeleteApnsSandboxChannelCommand = async (input, context) => {
|
|
357
357
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
358
358
|
const headers = {};
|
|
359
|
-
let resolvedPath = `${
|
|
359
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
360
360
|
"/v1/apps/{ApplicationId}/channels/apns_sandbox";
|
|
361
361
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
362
362
|
let body;
|
|
@@ -374,7 +374,7 @@ exports.serializeAws_restJson1DeleteApnsSandboxChannelCommand = serializeAws_res
|
|
|
374
374
|
const serializeAws_restJson1DeleteApnsVoipChannelCommand = async (input, context) => {
|
|
375
375
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
376
376
|
const headers = {};
|
|
377
|
-
let resolvedPath = `${
|
|
377
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
378
378
|
"/v1/apps/{ApplicationId}/channels/apns_voip";
|
|
379
379
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
380
380
|
let body;
|
|
@@ -392,7 +392,7 @@ exports.serializeAws_restJson1DeleteApnsVoipChannelCommand = serializeAws_restJs
|
|
|
392
392
|
const serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand = async (input, context) => {
|
|
393
393
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
394
394
|
const headers = {};
|
|
395
|
-
let resolvedPath = `${
|
|
395
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
396
396
|
"/v1/apps/{ApplicationId}/channels/apns_voip_sandbox";
|
|
397
397
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
398
398
|
let body;
|
|
@@ -410,7 +410,7 @@ exports.serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand = serializeAws
|
|
|
410
410
|
const serializeAws_restJson1DeleteAppCommand = async (input, context) => {
|
|
411
411
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
412
412
|
const headers = {};
|
|
413
|
-
let resolvedPath = `${
|
|
413
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}";
|
|
414
414
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
415
415
|
let body;
|
|
416
416
|
return new protocol_http_1.HttpRequest({
|
|
@@ -427,7 +427,7 @@ exports.serializeAws_restJson1DeleteAppCommand = serializeAws_restJson1DeleteApp
|
|
|
427
427
|
const serializeAws_restJson1DeleteBaiduChannelCommand = async (input, context) => {
|
|
428
428
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
429
429
|
const headers = {};
|
|
430
|
-
let resolvedPath = `${
|
|
430
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/baidu";
|
|
431
431
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
432
432
|
let body;
|
|
433
433
|
return new protocol_http_1.HttpRequest({
|
|
@@ -444,7 +444,7 @@ exports.serializeAws_restJson1DeleteBaiduChannelCommand = serializeAws_restJson1
|
|
|
444
444
|
const serializeAws_restJson1DeleteCampaignCommand = async (input, context) => {
|
|
445
445
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
446
446
|
const headers = {};
|
|
447
|
-
let resolvedPath = `${
|
|
447
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
448
448
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}";
|
|
449
449
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
450
450
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
@@ -463,7 +463,7 @@ exports.serializeAws_restJson1DeleteCampaignCommand = serializeAws_restJson1Dele
|
|
|
463
463
|
const serializeAws_restJson1DeleteEmailChannelCommand = async (input, context) => {
|
|
464
464
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
465
465
|
const headers = {};
|
|
466
|
-
let resolvedPath = `${
|
|
466
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/email";
|
|
467
467
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
468
468
|
let body;
|
|
469
469
|
return new protocol_http_1.HttpRequest({
|
|
@@ -480,7 +480,7 @@ exports.serializeAws_restJson1DeleteEmailChannelCommand = serializeAws_restJson1
|
|
|
480
480
|
const serializeAws_restJson1DeleteEmailTemplateCommand = async (input, context) => {
|
|
481
481
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
482
482
|
const headers = {};
|
|
483
|
-
let resolvedPath = `${
|
|
483
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/email";
|
|
484
484
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
485
485
|
const query = map({
|
|
486
486
|
version: [, input.Version],
|
|
@@ -501,7 +501,7 @@ exports.serializeAws_restJson1DeleteEmailTemplateCommand = serializeAws_restJson
|
|
|
501
501
|
const serializeAws_restJson1DeleteEndpointCommand = async (input, context) => {
|
|
502
502
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
503
503
|
const headers = {};
|
|
504
|
-
let resolvedPath = `${
|
|
504
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
505
505
|
"/v1/apps/{ApplicationId}/endpoints/{EndpointId}";
|
|
506
506
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
507
507
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
@@ -520,7 +520,7 @@ exports.serializeAws_restJson1DeleteEndpointCommand = serializeAws_restJson1Dele
|
|
|
520
520
|
const serializeAws_restJson1DeleteEventStreamCommand = async (input, context) => {
|
|
521
521
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
522
522
|
const headers = {};
|
|
523
|
-
let resolvedPath = `${
|
|
523
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/eventstream";
|
|
524
524
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
525
525
|
let body;
|
|
526
526
|
return new protocol_http_1.HttpRequest({
|
|
@@ -537,7 +537,7 @@ exports.serializeAws_restJson1DeleteEventStreamCommand = serializeAws_restJson1D
|
|
|
537
537
|
const serializeAws_restJson1DeleteGcmChannelCommand = async (input, context) => {
|
|
538
538
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
539
539
|
const headers = {};
|
|
540
|
-
let resolvedPath = `${
|
|
540
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/gcm";
|
|
541
541
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
542
542
|
let body;
|
|
543
543
|
return new protocol_http_1.HttpRequest({
|
|
@@ -554,7 +554,7 @@ exports.serializeAws_restJson1DeleteGcmChannelCommand = serializeAws_restJson1De
|
|
|
554
554
|
const serializeAws_restJson1DeleteInAppTemplateCommand = async (input, context) => {
|
|
555
555
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
556
556
|
const headers = {};
|
|
557
|
-
let resolvedPath = `${
|
|
557
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/inapp";
|
|
558
558
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
559
559
|
const query = map({
|
|
560
560
|
version: [, input.Version],
|
|
@@ -575,7 +575,7 @@ exports.serializeAws_restJson1DeleteInAppTemplateCommand = serializeAws_restJson
|
|
|
575
575
|
const serializeAws_restJson1DeleteJourneyCommand = async (input, context) => {
|
|
576
576
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
577
577
|
const headers = {};
|
|
578
|
-
let resolvedPath = `${
|
|
578
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
579
579
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}";
|
|
580
580
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
581
581
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
@@ -594,7 +594,7 @@ exports.serializeAws_restJson1DeleteJourneyCommand = serializeAws_restJson1Delet
|
|
|
594
594
|
const serializeAws_restJson1DeletePushTemplateCommand = async (input, context) => {
|
|
595
595
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
596
596
|
const headers = {};
|
|
597
|
-
let resolvedPath = `${
|
|
597
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/push";
|
|
598
598
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
599
599
|
const query = map({
|
|
600
600
|
version: [, input.Version],
|
|
@@ -615,7 +615,7 @@ exports.serializeAws_restJson1DeletePushTemplateCommand = serializeAws_restJson1
|
|
|
615
615
|
const serializeAws_restJson1DeleteRecommenderConfigurationCommand = async (input, context) => {
|
|
616
616
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
617
617
|
const headers = {};
|
|
618
|
-
let resolvedPath = `${
|
|
618
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/recommenders/{RecommenderId}";
|
|
619
619
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecommenderId", () => input.RecommenderId, "{RecommenderId}", false);
|
|
620
620
|
let body;
|
|
621
621
|
return new protocol_http_1.HttpRequest({
|
|
@@ -632,7 +632,7 @@ exports.serializeAws_restJson1DeleteRecommenderConfigurationCommand = serializeA
|
|
|
632
632
|
const serializeAws_restJson1DeleteSegmentCommand = async (input, context) => {
|
|
633
633
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
634
634
|
const headers = {};
|
|
635
|
-
let resolvedPath = `${
|
|
635
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
636
636
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}";
|
|
637
637
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
638
638
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
@@ -651,7 +651,7 @@ exports.serializeAws_restJson1DeleteSegmentCommand = serializeAws_restJson1Delet
|
|
|
651
651
|
const serializeAws_restJson1DeleteSmsChannelCommand = async (input, context) => {
|
|
652
652
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
653
653
|
const headers = {};
|
|
654
|
-
let resolvedPath = `${
|
|
654
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/sms";
|
|
655
655
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
656
656
|
let body;
|
|
657
657
|
return new protocol_http_1.HttpRequest({
|
|
@@ -668,7 +668,7 @@ exports.serializeAws_restJson1DeleteSmsChannelCommand = serializeAws_restJson1De
|
|
|
668
668
|
const serializeAws_restJson1DeleteSmsTemplateCommand = async (input, context) => {
|
|
669
669
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
670
670
|
const headers = {};
|
|
671
|
-
let resolvedPath = `${
|
|
671
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/sms";
|
|
672
672
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
673
673
|
const query = map({
|
|
674
674
|
version: [, input.Version],
|
|
@@ -689,7 +689,7 @@ exports.serializeAws_restJson1DeleteSmsTemplateCommand = serializeAws_restJson1D
|
|
|
689
689
|
const serializeAws_restJson1DeleteUserEndpointsCommand = async (input, context) => {
|
|
690
690
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
691
691
|
const headers = {};
|
|
692
|
-
let resolvedPath = `${
|
|
692
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/users/{UserId}";
|
|
693
693
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
694
694
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
|
|
695
695
|
let body;
|
|
@@ -707,7 +707,7 @@ exports.serializeAws_restJson1DeleteUserEndpointsCommand = serializeAws_restJson
|
|
|
707
707
|
const serializeAws_restJson1DeleteVoiceChannelCommand = async (input, context) => {
|
|
708
708
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
709
709
|
const headers = {};
|
|
710
|
-
let resolvedPath = `${
|
|
710
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/voice";
|
|
711
711
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
712
712
|
let body;
|
|
713
713
|
return new protocol_http_1.HttpRequest({
|
|
@@ -724,7 +724,7 @@ exports.serializeAws_restJson1DeleteVoiceChannelCommand = serializeAws_restJson1
|
|
|
724
724
|
const serializeAws_restJson1DeleteVoiceTemplateCommand = async (input, context) => {
|
|
725
725
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
726
726
|
const headers = {};
|
|
727
|
-
let resolvedPath = `${
|
|
727
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/voice";
|
|
728
728
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
729
729
|
const query = map({
|
|
730
730
|
version: [, input.Version],
|
|
@@ -745,7 +745,7 @@ exports.serializeAws_restJson1DeleteVoiceTemplateCommand = serializeAws_restJson
|
|
|
745
745
|
const serializeAws_restJson1GetAdmChannelCommand = async (input, context) => {
|
|
746
746
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
747
747
|
const headers = {};
|
|
748
|
-
let resolvedPath = `${
|
|
748
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/adm";
|
|
749
749
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
750
750
|
let body;
|
|
751
751
|
return new protocol_http_1.HttpRequest({
|
|
@@ -762,7 +762,7 @@ exports.serializeAws_restJson1GetAdmChannelCommand = serializeAws_restJson1GetAd
|
|
|
762
762
|
const serializeAws_restJson1GetApnsChannelCommand = async (input, context) => {
|
|
763
763
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
764
764
|
const headers = {};
|
|
765
|
-
let resolvedPath = `${
|
|
765
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/apns";
|
|
766
766
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
767
767
|
let body;
|
|
768
768
|
return new protocol_http_1.HttpRequest({
|
|
@@ -779,7 +779,7 @@ exports.serializeAws_restJson1GetApnsChannelCommand = serializeAws_restJson1GetA
|
|
|
779
779
|
const serializeAws_restJson1GetApnsSandboxChannelCommand = async (input, context) => {
|
|
780
780
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
781
781
|
const headers = {};
|
|
782
|
-
let resolvedPath = `${
|
|
782
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
783
783
|
"/v1/apps/{ApplicationId}/channels/apns_sandbox";
|
|
784
784
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
785
785
|
let body;
|
|
@@ -797,7 +797,7 @@ exports.serializeAws_restJson1GetApnsSandboxChannelCommand = serializeAws_restJs
|
|
|
797
797
|
const serializeAws_restJson1GetApnsVoipChannelCommand = async (input, context) => {
|
|
798
798
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
799
799
|
const headers = {};
|
|
800
|
-
let resolvedPath = `${
|
|
800
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
801
801
|
"/v1/apps/{ApplicationId}/channels/apns_voip";
|
|
802
802
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
803
803
|
let body;
|
|
@@ -815,7 +815,7 @@ exports.serializeAws_restJson1GetApnsVoipChannelCommand = serializeAws_restJson1
|
|
|
815
815
|
const serializeAws_restJson1GetApnsVoipSandboxChannelCommand = async (input, context) => {
|
|
816
816
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
817
817
|
const headers = {};
|
|
818
|
-
let resolvedPath = `${
|
|
818
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
819
819
|
"/v1/apps/{ApplicationId}/channels/apns_voip_sandbox";
|
|
820
820
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
821
821
|
let body;
|
|
@@ -833,7 +833,7 @@ exports.serializeAws_restJson1GetApnsVoipSandboxChannelCommand = serializeAws_re
|
|
|
833
833
|
const serializeAws_restJson1GetAppCommand = async (input, context) => {
|
|
834
834
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
835
835
|
const headers = {};
|
|
836
|
-
let resolvedPath = `${
|
|
836
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}";
|
|
837
837
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
838
838
|
let body;
|
|
839
839
|
return new protocol_http_1.HttpRequest({
|
|
@@ -850,7 +850,7 @@ exports.serializeAws_restJson1GetAppCommand = serializeAws_restJson1GetAppComman
|
|
|
850
850
|
const serializeAws_restJson1GetApplicationDateRangeKpiCommand = async (input, context) => {
|
|
851
851
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
852
852
|
const headers = {};
|
|
853
|
-
let resolvedPath = `${
|
|
853
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
854
854
|
"/v1/apps/{ApplicationId}/kpis/daterange/{KpiName}";
|
|
855
855
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
856
856
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KpiName", () => input.KpiName, "{KpiName}", false);
|
|
@@ -879,7 +879,7 @@ exports.serializeAws_restJson1GetApplicationDateRangeKpiCommand = serializeAws_r
|
|
|
879
879
|
const serializeAws_restJson1GetApplicationSettingsCommand = async (input, context) => {
|
|
880
880
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
881
881
|
const headers = {};
|
|
882
|
-
let resolvedPath = `${
|
|
882
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/settings";
|
|
883
883
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
884
884
|
let body;
|
|
885
885
|
return new protocol_http_1.HttpRequest({
|
|
@@ -896,7 +896,7 @@ exports.serializeAws_restJson1GetApplicationSettingsCommand = serializeAws_restJ
|
|
|
896
896
|
const serializeAws_restJson1GetAppsCommand = async (input, context) => {
|
|
897
897
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
898
898
|
const headers = {};
|
|
899
|
-
const resolvedPath = `${
|
|
899
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps";
|
|
900
900
|
const query = map({
|
|
901
901
|
"page-size": [, input.PageSize],
|
|
902
902
|
token: [, input.Token],
|
|
@@ -917,7 +917,7 @@ exports.serializeAws_restJson1GetAppsCommand = serializeAws_restJson1GetAppsComm
|
|
|
917
917
|
const serializeAws_restJson1GetBaiduChannelCommand = async (input, context) => {
|
|
918
918
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
919
919
|
const headers = {};
|
|
920
|
-
let resolvedPath = `${
|
|
920
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/baidu";
|
|
921
921
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
922
922
|
let body;
|
|
923
923
|
return new protocol_http_1.HttpRequest({
|
|
@@ -934,7 +934,7 @@ exports.serializeAws_restJson1GetBaiduChannelCommand = serializeAws_restJson1Get
|
|
|
934
934
|
const serializeAws_restJson1GetCampaignCommand = async (input, context) => {
|
|
935
935
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
936
936
|
const headers = {};
|
|
937
|
-
let resolvedPath = `${
|
|
937
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
938
938
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}";
|
|
939
939
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
940
940
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
@@ -953,7 +953,7 @@ exports.serializeAws_restJson1GetCampaignCommand = serializeAws_restJson1GetCamp
|
|
|
953
953
|
const serializeAws_restJson1GetCampaignActivitiesCommand = async (input, context) => {
|
|
954
954
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
955
955
|
const headers = {};
|
|
956
|
-
let resolvedPath = `${
|
|
956
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
957
957
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}/activities";
|
|
958
958
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
959
959
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
@@ -977,7 +977,7 @@ exports.serializeAws_restJson1GetCampaignActivitiesCommand = serializeAws_restJs
|
|
|
977
977
|
const serializeAws_restJson1GetCampaignDateRangeKpiCommand = async (input, context) => {
|
|
978
978
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
979
979
|
const headers = {};
|
|
980
|
-
let resolvedPath = `${
|
|
980
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
981
981
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}/kpis/daterange/{KpiName}";
|
|
982
982
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
983
983
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
@@ -1007,7 +1007,7 @@ exports.serializeAws_restJson1GetCampaignDateRangeKpiCommand = serializeAws_rest
|
|
|
1007
1007
|
const serializeAws_restJson1GetCampaignsCommand = async (input, context) => {
|
|
1008
1008
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1009
1009
|
const headers = {};
|
|
1010
|
-
let resolvedPath = `${
|
|
1010
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/campaigns";
|
|
1011
1011
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1012
1012
|
const query = map({
|
|
1013
1013
|
"page-size": [, input.PageSize],
|
|
@@ -1029,7 +1029,7 @@ exports.serializeAws_restJson1GetCampaignsCommand = serializeAws_restJson1GetCam
|
|
|
1029
1029
|
const serializeAws_restJson1GetCampaignVersionCommand = async (input, context) => {
|
|
1030
1030
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1031
1031
|
const headers = {};
|
|
1032
|
-
let resolvedPath = `${
|
|
1032
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1033
1033
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions/{Version}";
|
|
1034
1034
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1035
1035
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
@@ -1049,7 +1049,7 @@ exports.serializeAws_restJson1GetCampaignVersionCommand = serializeAws_restJson1
|
|
|
1049
1049
|
const serializeAws_restJson1GetCampaignVersionsCommand = async (input, context) => {
|
|
1050
1050
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1051
1051
|
const headers = {};
|
|
1052
|
-
let resolvedPath = `${
|
|
1052
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1053
1053
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions";
|
|
1054
1054
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1055
1055
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
@@ -1073,7 +1073,7 @@ exports.serializeAws_restJson1GetCampaignVersionsCommand = serializeAws_restJson
|
|
|
1073
1073
|
const serializeAws_restJson1GetChannelsCommand = async (input, context) => {
|
|
1074
1074
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1075
1075
|
const headers = {};
|
|
1076
|
-
let resolvedPath = `${
|
|
1076
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels";
|
|
1077
1077
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1078
1078
|
let body;
|
|
1079
1079
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1090,7 +1090,7 @@ exports.serializeAws_restJson1GetChannelsCommand = serializeAws_restJson1GetChan
|
|
|
1090
1090
|
const serializeAws_restJson1GetEmailChannelCommand = async (input, context) => {
|
|
1091
1091
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1092
1092
|
const headers = {};
|
|
1093
|
-
let resolvedPath = `${
|
|
1093
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/email";
|
|
1094
1094
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1095
1095
|
let body;
|
|
1096
1096
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1107,7 +1107,7 @@ exports.serializeAws_restJson1GetEmailChannelCommand = serializeAws_restJson1Get
|
|
|
1107
1107
|
const serializeAws_restJson1GetEmailTemplateCommand = async (input, context) => {
|
|
1108
1108
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1109
1109
|
const headers = {};
|
|
1110
|
-
let resolvedPath = `${
|
|
1110
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/email";
|
|
1111
1111
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1112
1112
|
const query = map({
|
|
1113
1113
|
version: [, input.Version],
|
|
@@ -1128,7 +1128,7 @@ exports.serializeAws_restJson1GetEmailTemplateCommand = serializeAws_restJson1Ge
|
|
|
1128
1128
|
const serializeAws_restJson1GetEndpointCommand = async (input, context) => {
|
|
1129
1129
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1130
1130
|
const headers = {};
|
|
1131
|
-
let resolvedPath = `${
|
|
1131
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1132
1132
|
"/v1/apps/{ApplicationId}/endpoints/{EndpointId}";
|
|
1133
1133
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1134
1134
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
@@ -1147,7 +1147,7 @@ exports.serializeAws_restJson1GetEndpointCommand = serializeAws_restJson1GetEndp
|
|
|
1147
1147
|
const serializeAws_restJson1GetEventStreamCommand = async (input, context) => {
|
|
1148
1148
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1149
1149
|
const headers = {};
|
|
1150
|
-
let resolvedPath = `${
|
|
1150
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/eventstream";
|
|
1151
1151
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1152
1152
|
let body;
|
|
1153
1153
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1164,7 +1164,7 @@ exports.serializeAws_restJson1GetEventStreamCommand = serializeAws_restJson1GetE
|
|
|
1164
1164
|
const serializeAws_restJson1GetExportJobCommand = async (input, context) => {
|
|
1165
1165
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1166
1166
|
const headers = {};
|
|
1167
|
-
let resolvedPath = `${
|
|
1167
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1168
1168
|
"/v1/apps/{ApplicationId}/jobs/export/{JobId}";
|
|
1169
1169
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1170
1170
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
@@ -1183,7 +1183,7 @@ exports.serializeAws_restJson1GetExportJobCommand = serializeAws_restJson1GetExp
|
|
|
1183
1183
|
const serializeAws_restJson1GetExportJobsCommand = async (input, context) => {
|
|
1184
1184
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1185
1185
|
const headers = {};
|
|
1186
|
-
let resolvedPath = `${
|
|
1186
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/jobs/export";
|
|
1187
1187
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1188
1188
|
const query = map({
|
|
1189
1189
|
"page-size": [, input.PageSize],
|
|
@@ -1205,7 +1205,7 @@ exports.serializeAws_restJson1GetExportJobsCommand = serializeAws_restJson1GetEx
|
|
|
1205
1205
|
const serializeAws_restJson1GetGcmChannelCommand = async (input, context) => {
|
|
1206
1206
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1207
1207
|
const headers = {};
|
|
1208
|
-
let resolvedPath = `${
|
|
1208
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/gcm";
|
|
1209
1209
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1210
1210
|
let body;
|
|
1211
1211
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1222,7 +1222,7 @@ exports.serializeAws_restJson1GetGcmChannelCommand = serializeAws_restJson1GetGc
|
|
|
1222
1222
|
const serializeAws_restJson1GetImportJobCommand = async (input, context) => {
|
|
1223
1223
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1224
1224
|
const headers = {};
|
|
1225
|
-
let resolvedPath = `${
|
|
1225
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1226
1226
|
"/v1/apps/{ApplicationId}/jobs/import/{JobId}";
|
|
1227
1227
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1228
1228
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
@@ -1241,7 +1241,7 @@ exports.serializeAws_restJson1GetImportJobCommand = serializeAws_restJson1GetImp
|
|
|
1241
1241
|
const serializeAws_restJson1GetImportJobsCommand = async (input, context) => {
|
|
1242
1242
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1243
1243
|
const headers = {};
|
|
1244
|
-
let resolvedPath = `${
|
|
1244
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/jobs/import";
|
|
1245
1245
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1246
1246
|
const query = map({
|
|
1247
1247
|
"page-size": [, input.PageSize],
|
|
@@ -1263,7 +1263,7 @@ exports.serializeAws_restJson1GetImportJobsCommand = serializeAws_restJson1GetIm
|
|
|
1263
1263
|
const serializeAws_restJson1GetInAppMessagesCommand = async (input, context) => {
|
|
1264
1264
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1265
1265
|
const headers = {};
|
|
1266
|
-
let resolvedPath = `${
|
|
1266
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1267
1267
|
"/v1/apps/{ApplicationId}/endpoints/{EndpointId}/inappmessages";
|
|
1268
1268
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1269
1269
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
@@ -1282,7 +1282,7 @@ exports.serializeAws_restJson1GetInAppMessagesCommand = serializeAws_restJson1Ge
|
|
|
1282
1282
|
const serializeAws_restJson1GetInAppTemplateCommand = async (input, context) => {
|
|
1283
1283
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1284
1284
|
const headers = {};
|
|
1285
|
-
let resolvedPath = `${
|
|
1285
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/inapp";
|
|
1286
1286
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1287
1287
|
const query = map({
|
|
1288
1288
|
version: [, input.Version],
|
|
@@ -1303,7 +1303,7 @@ exports.serializeAws_restJson1GetInAppTemplateCommand = serializeAws_restJson1Ge
|
|
|
1303
1303
|
const serializeAws_restJson1GetJourneyCommand = async (input, context) => {
|
|
1304
1304
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1305
1305
|
const headers = {};
|
|
1306
|
-
let resolvedPath = `${
|
|
1306
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1307
1307
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}";
|
|
1308
1308
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1309
1309
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
@@ -1322,7 +1322,7 @@ exports.serializeAws_restJson1GetJourneyCommand = serializeAws_restJson1GetJourn
|
|
|
1322
1322
|
const serializeAws_restJson1GetJourneyDateRangeKpiCommand = async (input, context) => {
|
|
1323
1323
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1324
1324
|
const headers = {};
|
|
1325
|
-
let resolvedPath = `${
|
|
1325
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1326
1326
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}/kpis/daterange/{KpiName}";
|
|
1327
1327
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1328
1328
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
@@ -1352,7 +1352,7 @@ exports.serializeAws_restJson1GetJourneyDateRangeKpiCommand = serializeAws_restJ
|
|
|
1352
1352
|
const serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand = async (input, context) => {
|
|
1353
1353
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1354
1354
|
const headers = {};
|
|
1355
|
-
let resolvedPath = `${
|
|
1355
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1356
1356
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}/activities/{JourneyActivityId}/execution-metrics";
|
|
1357
1357
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1358
1358
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyActivityId", () => input.JourneyActivityId, "{JourneyActivityId}", false);
|
|
@@ -1377,7 +1377,7 @@ exports.serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand = serial
|
|
|
1377
1377
|
const serializeAws_restJson1GetJourneyExecutionMetricsCommand = async (input, context) => {
|
|
1378
1378
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1379
1379
|
const headers = {};
|
|
1380
|
-
let resolvedPath = `${
|
|
1380
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1381
1381
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}/execution-metrics";
|
|
1382
1382
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1383
1383
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
@@ -1401,7 +1401,7 @@ exports.serializeAws_restJson1GetJourneyExecutionMetricsCommand = serializeAws_r
|
|
|
1401
1401
|
const serializeAws_restJson1GetPushTemplateCommand = async (input, context) => {
|
|
1402
1402
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1403
1403
|
const headers = {};
|
|
1404
|
-
let resolvedPath = `${
|
|
1404
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/push";
|
|
1405
1405
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1406
1406
|
const query = map({
|
|
1407
1407
|
version: [, input.Version],
|
|
@@ -1422,7 +1422,7 @@ exports.serializeAws_restJson1GetPushTemplateCommand = serializeAws_restJson1Get
|
|
|
1422
1422
|
const serializeAws_restJson1GetRecommenderConfigurationCommand = async (input, context) => {
|
|
1423
1423
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1424
1424
|
const headers = {};
|
|
1425
|
-
let resolvedPath = `${
|
|
1425
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/recommenders/{RecommenderId}";
|
|
1426
1426
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecommenderId", () => input.RecommenderId, "{RecommenderId}", false);
|
|
1427
1427
|
let body;
|
|
1428
1428
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1439,7 +1439,7 @@ exports.serializeAws_restJson1GetRecommenderConfigurationCommand = serializeAws_
|
|
|
1439
1439
|
const serializeAws_restJson1GetRecommenderConfigurationsCommand = async (input, context) => {
|
|
1440
1440
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1441
1441
|
const headers = {};
|
|
1442
|
-
const resolvedPath = `${
|
|
1442
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/recommenders";
|
|
1443
1443
|
const query = map({
|
|
1444
1444
|
"page-size": [, input.PageSize],
|
|
1445
1445
|
token: [, input.Token],
|
|
@@ -1460,7 +1460,7 @@ exports.serializeAws_restJson1GetRecommenderConfigurationsCommand = serializeAws
|
|
|
1460
1460
|
const serializeAws_restJson1GetSegmentCommand = async (input, context) => {
|
|
1461
1461
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1462
1462
|
const headers = {};
|
|
1463
|
-
let resolvedPath = `${
|
|
1463
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1464
1464
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}";
|
|
1465
1465
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1466
1466
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
@@ -1479,7 +1479,7 @@ exports.serializeAws_restJson1GetSegmentCommand = serializeAws_restJson1GetSegme
|
|
|
1479
1479
|
const serializeAws_restJson1GetSegmentExportJobsCommand = async (input, context) => {
|
|
1480
1480
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1481
1481
|
const headers = {};
|
|
1482
|
-
let resolvedPath = `${
|
|
1482
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1483
1483
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/export";
|
|
1484
1484
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1485
1485
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
@@ -1503,7 +1503,7 @@ exports.serializeAws_restJson1GetSegmentExportJobsCommand = serializeAws_restJso
|
|
|
1503
1503
|
const serializeAws_restJson1GetSegmentImportJobsCommand = async (input, context) => {
|
|
1504
1504
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1505
1505
|
const headers = {};
|
|
1506
|
-
let resolvedPath = `${
|
|
1506
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1507
1507
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/import";
|
|
1508
1508
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1509
1509
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
@@ -1527,7 +1527,7 @@ exports.serializeAws_restJson1GetSegmentImportJobsCommand = serializeAws_restJso
|
|
|
1527
1527
|
const serializeAws_restJson1GetSegmentsCommand = async (input, context) => {
|
|
1528
1528
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1529
1529
|
const headers = {};
|
|
1530
|
-
let resolvedPath = `${
|
|
1530
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/segments";
|
|
1531
1531
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1532
1532
|
const query = map({
|
|
1533
1533
|
"page-size": [, input.PageSize],
|
|
@@ -1549,7 +1549,7 @@ exports.serializeAws_restJson1GetSegmentsCommand = serializeAws_restJson1GetSegm
|
|
|
1549
1549
|
const serializeAws_restJson1GetSegmentVersionCommand = async (input, context) => {
|
|
1550
1550
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1551
1551
|
const headers = {};
|
|
1552
|
-
let resolvedPath = `${
|
|
1552
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1553
1553
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}/versions/{Version}";
|
|
1554
1554
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1555
1555
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
@@ -1569,7 +1569,7 @@ exports.serializeAws_restJson1GetSegmentVersionCommand = serializeAws_restJson1G
|
|
|
1569
1569
|
const serializeAws_restJson1GetSegmentVersionsCommand = async (input, context) => {
|
|
1570
1570
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1571
1571
|
const headers = {};
|
|
1572
|
-
let resolvedPath = `${
|
|
1572
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1573
1573
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}/versions";
|
|
1574
1574
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1575
1575
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
@@ -1593,7 +1593,7 @@ exports.serializeAws_restJson1GetSegmentVersionsCommand = serializeAws_restJson1
|
|
|
1593
1593
|
const serializeAws_restJson1GetSmsChannelCommand = async (input, context) => {
|
|
1594
1594
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1595
1595
|
const headers = {};
|
|
1596
|
-
let resolvedPath = `${
|
|
1596
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/sms";
|
|
1597
1597
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1598
1598
|
let body;
|
|
1599
1599
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1610,7 +1610,7 @@ exports.serializeAws_restJson1GetSmsChannelCommand = serializeAws_restJson1GetSm
|
|
|
1610
1610
|
const serializeAws_restJson1GetSmsTemplateCommand = async (input, context) => {
|
|
1611
1611
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1612
1612
|
const headers = {};
|
|
1613
|
-
let resolvedPath = `${
|
|
1613
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/sms";
|
|
1614
1614
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1615
1615
|
const query = map({
|
|
1616
1616
|
version: [, input.Version],
|
|
@@ -1631,7 +1631,7 @@ exports.serializeAws_restJson1GetSmsTemplateCommand = serializeAws_restJson1GetS
|
|
|
1631
1631
|
const serializeAws_restJson1GetUserEndpointsCommand = async (input, context) => {
|
|
1632
1632
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1633
1633
|
const headers = {};
|
|
1634
|
-
let resolvedPath = `${
|
|
1634
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/users/{UserId}";
|
|
1635
1635
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1636
1636
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
|
|
1637
1637
|
let body;
|
|
@@ -1649,7 +1649,7 @@ exports.serializeAws_restJson1GetUserEndpointsCommand = serializeAws_restJson1Ge
|
|
|
1649
1649
|
const serializeAws_restJson1GetVoiceChannelCommand = async (input, context) => {
|
|
1650
1650
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1651
1651
|
const headers = {};
|
|
1652
|
-
let resolvedPath = `${
|
|
1652
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/voice";
|
|
1653
1653
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1654
1654
|
let body;
|
|
1655
1655
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1666,7 +1666,7 @@ exports.serializeAws_restJson1GetVoiceChannelCommand = serializeAws_restJson1Get
|
|
|
1666
1666
|
const serializeAws_restJson1GetVoiceTemplateCommand = async (input, context) => {
|
|
1667
1667
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1668
1668
|
const headers = {};
|
|
1669
|
-
let resolvedPath = `${
|
|
1669
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/voice";
|
|
1670
1670
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1671
1671
|
const query = map({
|
|
1672
1672
|
version: [, input.Version],
|
|
@@ -1687,7 +1687,7 @@ exports.serializeAws_restJson1GetVoiceTemplateCommand = serializeAws_restJson1Ge
|
|
|
1687
1687
|
const serializeAws_restJson1ListJourneysCommand = async (input, context) => {
|
|
1688
1688
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1689
1689
|
const headers = {};
|
|
1690
|
-
let resolvedPath = `${
|
|
1690
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/journeys";
|
|
1691
1691
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1692
1692
|
const query = map({
|
|
1693
1693
|
"page-size": [, input.PageSize],
|
|
@@ -1709,7 +1709,7 @@ exports.serializeAws_restJson1ListJourneysCommand = serializeAws_restJson1ListJo
|
|
|
1709
1709
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
1710
1710
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1711
1711
|
const headers = {};
|
|
1712
|
-
let resolvedPath = `${
|
|
1712
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}";
|
|
1713
1713
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1714
1714
|
let body;
|
|
1715
1715
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1726,7 +1726,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
|
|
|
1726
1726
|
const serializeAws_restJson1ListTemplatesCommand = async (input, context) => {
|
|
1727
1727
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1728
1728
|
const headers = {};
|
|
1729
|
-
const resolvedPath = `${
|
|
1729
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates";
|
|
1730
1730
|
const query = map({
|
|
1731
1731
|
"next-token": [, input.NextToken],
|
|
1732
1732
|
"page-size": [, input.PageSize],
|
|
@@ -1749,7 +1749,7 @@ exports.serializeAws_restJson1ListTemplatesCommand = serializeAws_restJson1ListT
|
|
|
1749
1749
|
const serializeAws_restJson1ListTemplateVersionsCommand = async (input, context) => {
|
|
1750
1750
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1751
1751
|
const headers = {};
|
|
1752
|
-
let resolvedPath = `${
|
|
1752
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1753
1753
|
"/v1/templates/{TemplateName}/{TemplateType}/versions";
|
|
1754
1754
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1755
1755
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateType", () => input.TemplateType, "{TemplateType}", false);
|
|
@@ -1775,7 +1775,7 @@ const serializeAws_restJson1PhoneNumberValidateCommand = async (input, context)
|
|
|
1775
1775
|
const headers = {
|
|
1776
1776
|
"content-type": "application/json",
|
|
1777
1777
|
};
|
|
1778
|
-
const resolvedPath = `${
|
|
1778
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/phone/number/validate";
|
|
1779
1779
|
let body;
|
|
1780
1780
|
if (input.NumberValidateRequest !== undefined) {
|
|
1781
1781
|
body = serializeAws_restJson1NumberValidateRequest(input.NumberValidateRequest, context);
|
|
@@ -1800,7 +1800,7 @@ const serializeAws_restJson1PutEventsCommand = async (input, context) => {
|
|
|
1800
1800
|
const headers = {
|
|
1801
1801
|
"content-type": "application/json",
|
|
1802
1802
|
};
|
|
1803
|
-
let resolvedPath = `${
|
|
1803
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/events";
|
|
1804
1804
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1805
1805
|
let body;
|
|
1806
1806
|
if (input.EventsRequest !== undefined) {
|
|
@@ -1826,7 +1826,7 @@ const serializeAws_restJson1PutEventStreamCommand = async (input, context) => {
|
|
|
1826
1826
|
const headers = {
|
|
1827
1827
|
"content-type": "application/json",
|
|
1828
1828
|
};
|
|
1829
|
-
let resolvedPath = `${
|
|
1829
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/eventstream";
|
|
1830
1830
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1831
1831
|
let body;
|
|
1832
1832
|
if (input.WriteEventStream !== undefined) {
|
|
@@ -1852,7 +1852,7 @@ const serializeAws_restJson1RemoveAttributesCommand = async (input, context) =>
|
|
|
1852
1852
|
const headers = {
|
|
1853
1853
|
"content-type": "application/json",
|
|
1854
1854
|
};
|
|
1855
|
-
let resolvedPath = `${
|
|
1855
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1856
1856
|
"/v1/apps/{ApplicationId}/attributes/{AttributeType}";
|
|
1857
1857
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1858
1858
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttributeType", () => input.AttributeType, "{AttributeType}", false);
|
|
@@ -1880,7 +1880,7 @@ const serializeAws_restJson1SendMessagesCommand = async (input, context) => {
|
|
|
1880
1880
|
const headers = {
|
|
1881
1881
|
"content-type": "application/json",
|
|
1882
1882
|
};
|
|
1883
|
-
let resolvedPath = `${
|
|
1883
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/messages";
|
|
1884
1884
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1885
1885
|
let body;
|
|
1886
1886
|
if (input.MessageRequest !== undefined) {
|
|
@@ -1906,7 +1906,7 @@ const serializeAws_restJson1SendOTPMessageCommand = async (input, context) => {
|
|
|
1906
1906
|
const headers = {
|
|
1907
1907
|
"content-type": "application/json",
|
|
1908
1908
|
};
|
|
1909
|
-
let resolvedPath = `${
|
|
1909
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/otp";
|
|
1910
1910
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1911
1911
|
let body;
|
|
1912
1912
|
if (input.SendOTPMessageRequestParameters !== undefined) {
|
|
@@ -1932,7 +1932,7 @@ const serializeAws_restJson1SendUsersMessagesCommand = async (input, context) =>
|
|
|
1932
1932
|
const headers = {
|
|
1933
1933
|
"content-type": "application/json",
|
|
1934
1934
|
};
|
|
1935
|
-
let resolvedPath = `${
|
|
1935
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/users-messages";
|
|
1936
1936
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1937
1937
|
let body;
|
|
1938
1938
|
if (input.SendUsersMessageRequest !== undefined) {
|
|
@@ -1958,7 +1958,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1958
1958
|
const headers = {
|
|
1959
1959
|
"content-type": "application/json",
|
|
1960
1960
|
};
|
|
1961
|
-
let resolvedPath = `${
|
|
1961
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}";
|
|
1962
1962
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1963
1963
|
let body;
|
|
1964
1964
|
if (input.TagsModel !== undefined) {
|
|
@@ -1982,7 +1982,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
|
|
|
1982
1982
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
1983
1983
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1984
1984
|
const headers = {};
|
|
1985
|
-
let resolvedPath = `${
|
|
1985
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}";
|
|
1986
1986
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1987
1987
|
const query = map({
|
|
1988
1988
|
tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
|
|
@@ -2005,7 +2005,7 @@ const serializeAws_restJson1UpdateAdmChannelCommand = async (input, context) =>
|
|
|
2005
2005
|
const headers = {
|
|
2006
2006
|
"content-type": "application/json",
|
|
2007
2007
|
};
|
|
2008
|
-
let resolvedPath = `${
|
|
2008
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/adm";
|
|
2009
2009
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2010
2010
|
let body;
|
|
2011
2011
|
if (input.ADMChannelRequest !== undefined) {
|
|
@@ -2031,7 +2031,7 @@ const serializeAws_restJson1UpdateApnsChannelCommand = async (input, context) =>
|
|
|
2031
2031
|
const headers = {
|
|
2032
2032
|
"content-type": "application/json",
|
|
2033
2033
|
};
|
|
2034
|
-
let resolvedPath = `${
|
|
2034
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/apns";
|
|
2035
2035
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2036
2036
|
let body;
|
|
2037
2037
|
if (input.APNSChannelRequest !== undefined) {
|
|
@@ -2057,7 +2057,7 @@ const serializeAws_restJson1UpdateApnsSandboxChannelCommand = async (input, cont
|
|
|
2057
2057
|
const headers = {
|
|
2058
2058
|
"content-type": "application/json",
|
|
2059
2059
|
};
|
|
2060
|
-
let resolvedPath = `${
|
|
2060
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2061
2061
|
"/v1/apps/{ApplicationId}/channels/apns_sandbox";
|
|
2062
2062
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2063
2063
|
let body;
|
|
@@ -2084,7 +2084,7 @@ const serializeAws_restJson1UpdateApnsVoipChannelCommand = async (input, context
|
|
|
2084
2084
|
const headers = {
|
|
2085
2085
|
"content-type": "application/json",
|
|
2086
2086
|
};
|
|
2087
|
-
let resolvedPath = `${
|
|
2087
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2088
2088
|
"/v1/apps/{ApplicationId}/channels/apns_voip";
|
|
2089
2089
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2090
2090
|
let body;
|
|
@@ -2111,7 +2111,7 @@ const serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand = async (input,
|
|
|
2111
2111
|
const headers = {
|
|
2112
2112
|
"content-type": "application/json",
|
|
2113
2113
|
};
|
|
2114
|
-
let resolvedPath = `${
|
|
2114
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2115
2115
|
"/v1/apps/{ApplicationId}/channels/apns_voip_sandbox";
|
|
2116
2116
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2117
2117
|
let body;
|
|
@@ -2138,7 +2138,7 @@ const serializeAws_restJson1UpdateApplicationSettingsCommand = async (input, con
|
|
|
2138
2138
|
const headers = {
|
|
2139
2139
|
"content-type": "application/json",
|
|
2140
2140
|
};
|
|
2141
|
-
let resolvedPath = `${
|
|
2141
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/settings";
|
|
2142
2142
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2143
2143
|
let body;
|
|
2144
2144
|
if (input.WriteApplicationSettingsRequest !== undefined) {
|
|
@@ -2164,7 +2164,7 @@ const serializeAws_restJson1UpdateBaiduChannelCommand = async (input, context) =
|
|
|
2164
2164
|
const headers = {
|
|
2165
2165
|
"content-type": "application/json",
|
|
2166
2166
|
};
|
|
2167
|
-
let resolvedPath = `${
|
|
2167
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/baidu";
|
|
2168
2168
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2169
2169
|
let body;
|
|
2170
2170
|
if (input.BaiduChannelRequest !== undefined) {
|
|
@@ -2190,7 +2190,7 @@ const serializeAws_restJson1UpdateCampaignCommand = async (input, context) => {
|
|
|
2190
2190
|
const headers = {
|
|
2191
2191
|
"content-type": "application/json",
|
|
2192
2192
|
};
|
|
2193
|
-
let resolvedPath = `${
|
|
2193
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2194
2194
|
"/v1/apps/{ApplicationId}/campaigns/{CampaignId}";
|
|
2195
2195
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2196
2196
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
@@ -2218,7 +2218,7 @@ const serializeAws_restJson1UpdateEmailChannelCommand = async (input, context) =
|
|
|
2218
2218
|
const headers = {
|
|
2219
2219
|
"content-type": "application/json",
|
|
2220
2220
|
};
|
|
2221
|
-
let resolvedPath = `${
|
|
2221
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/email";
|
|
2222
2222
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2223
2223
|
let body;
|
|
2224
2224
|
if (input.EmailChannelRequest !== undefined) {
|
|
@@ -2244,7 +2244,7 @@ const serializeAws_restJson1UpdateEmailTemplateCommand = async (input, context)
|
|
|
2244
2244
|
const headers = {
|
|
2245
2245
|
"content-type": "application/json",
|
|
2246
2246
|
};
|
|
2247
|
-
let resolvedPath = `${
|
|
2247
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/email";
|
|
2248
2248
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
2249
2249
|
const query = map({
|
|
2250
2250
|
"create-new-version": [() => input.CreateNewVersion !== void 0, () => input.CreateNewVersion.toString()],
|
|
@@ -2275,7 +2275,7 @@ const serializeAws_restJson1UpdateEndpointCommand = async (input, context) => {
|
|
|
2275
2275
|
const headers = {
|
|
2276
2276
|
"content-type": "application/json",
|
|
2277
2277
|
};
|
|
2278
|
-
let resolvedPath = `${
|
|
2278
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2279
2279
|
"/v1/apps/{ApplicationId}/endpoints/{EndpointId}";
|
|
2280
2280
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2281
2281
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
@@ -2303,7 +2303,7 @@ const serializeAws_restJson1UpdateEndpointsBatchCommand = async (input, context)
|
|
|
2303
2303
|
const headers = {
|
|
2304
2304
|
"content-type": "application/json",
|
|
2305
2305
|
};
|
|
2306
|
-
let resolvedPath = `${
|
|
2306
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/endpoints";
|
|
2307
2307
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2308
2308
|
let body;
|
|
2309
2309
|
if (input.EndpointBatchRequest !== undefined) {
|
|
@@ -2329,7 +2329,7 @@ const serializeAws_restJson1UpdateGcmChannelCommand = async (input, context) =>
|
|
|
2329
2329
|
const headers = {
|
|
2330
2330
|
"content-type": "application/json",
|
|
2331
2331
|
};
|
|
2332
|
-
let resolvedPath = `${
|
|
2332
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/gcm";
|
|
2333
2333
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2334
2334
|
let body;
|
|
2335
2335
|
if (input.GCMChannelRequest !== undefined) {
|
|
@@ -2355,7 +2355,7 @@ const serializeAws_restJson1UpdateInAppTemplateCommand = async (input, context)
|
|
|
2355
2355
|
const headers = {
|
|
2356
2356
|
"content-type": "application/json",
|
|
2357
2357
|
};
|
|
2358
|
-
let resolvedPath = `${
|
|
2358
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/inapp";
|
|
2359
2359
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
2360
2360
|
const query = map({
|
|
2361
2361
|
"create-new-version": [() => input.CreateNewVersion !== void 0, () => input.CreateNewVersion.toString()],
|
|
@@ -2386,7 +2386,7 @@ const serializeAws_restJson1UpdateJourneyCommand = async (input, context) => {
|
|
|
2386
2386
|
const headers = {
|
|
2387
2387
|
"content-type": "application/json",
|
|
2388
2388
|
};
|
|
2389
|
-
let resolvedPath = `${
|
|
2389
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2390
2390
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}";
|
|
2391
2391
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2392
2392
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
@@ -2414,7 +2414,7 @@ const serializeAws_restJson1UpdateJourneyStateCommand = async (input, context) =
|
|
|
2414
2414
|
const headers = {
|
|
2415
2415
|
"content-type": "application/json",
|
|
2416
2416
|
};
|
|
2417
|
-
let resolvedPath = `${
|
|
2417
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2418
2418
|
"/v1/apps/{ApplicationId}/journeys/{JourneyId}/state";
|
|
2419
2419
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2420
2420
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
@@ -2442,7 +2442,7 @@ const serializeAws_restJson1UpdatePushTemplateCommand = async (input, context) =
|
|
|
2442
2442
|
const headers = {
|
|
2443
2443
|
"content-type": "application/json",
|
|
2444
2444
|
};
|
|
2445
|
-
let resolvedPath = `${
|
|
2445
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/push";
|
|
2446
2446
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
2447
2447
|
const query = map({
|
|
2448
2448
|
"create-new-version": [() => input.CreateNewVersion !== void 0, () => input.CreateNewVersion.toString()],
|
|
@@ -2473,7 +2473,7 @@ const serializeAws_restJson1UpdateRecommenderConfigurationCommand = async (input
|
|
|
2473
2473
|
const headers = {
|
|
2474
2474
|
"content-type": "application/json",
|
|
2475
2475
|
};
|
|
2476
|
-
let resolvedPath = `${
|
|
2476
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/recommenders/{RecommenderId}";
|
|
2477
2477
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecommenderId", () => input.RecommenderId, "{RecommenderId}", false);
|
|
2478
2478
|
let body;
|
|
2479
2479
|
if (input.UpdateRecommenderConfiguration !== undefined) {
|
|
@@ -2499,7 +2499,7 @@ const serializeAws_restJson1UpdateSegmentCommand = async (input, context) => {
|
|
|
2499
2499
|
const headers = {
|
|
2500
2500
|
"content-type": "application/json",
|
|
2501
2501
|
};
|
|
2502
|
-
let resolvedPath = `${
|
|
2502
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2503
2503
|
"/v1/apps/{ApplicationId}/segments/{SegmentId}";
|
|
2504
2504
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2505
2505
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
@@ -2527,7 +2527,7 @@ const serializeAws_restJson1UpdateSmsChannelCommand = async (input, context) =>
|
|
|
2527
2527
|
const headers = {
|
|
2528
2528
|
"content-type": "application/json",
|
|
2529
2529
|
};
|
|
2530
|
-
let resolvedPath = `${
|
|
2530
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/sms";
|
|
2531
2531
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2532
2532
|
let body;
|
|
2533
2533
|
if (input.SMSChannelRequest !== undefined) {
|
|
@@ -2553,7 +2553,7 @@ const serializeAws_restJson1UpdateSmsTemplateCommand = async (input, context) =>
|
|
|
2553
2553
|
const headers = {
|
|
2554
2554
|
"content-type": "application/json",
|
|
2555
2555
|
};
|
|
2556
|
-
let resolvedPath = `${
|
|
2556
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/sms";
|
|
2557
2557
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
2558
2558
|
const query = map({
|
|
2559
2559
|
"create-new-version": [() => input.CreateNewVersion !== void 0, () => input.CreateNewVersion.toString()],
|
|
@@ -2584,7 +2584,7 @@ const serializeAws_restJson1UpdateTemplateActiveVersionCommand = async (input, c
|
|
|
2584
2584
|
const headers = {
|
|
2585
2585
|
"content-type": "application/json",
|
|
2586
2586
|
};
|
|
2587
|
-
let resolvedPath = `${
|
|
2587
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2588
2588
|
"/v1/templates/{TemplateName}/{TemplateType}/active-version";
|
|
2589
2589
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
2590
2590
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateType", () => input.TemplateType, "{TemplateType}", false);
|
|
@@ -2612,7 +2612,7 @@ const serializeAws_restJson1UpdateVoiceChannelCommand = async (input, context) =
|
|
|
2612
2612
|
const headers = {
|
|
2613
2613
|
"content-type": "application/json",
|
|
2614
2614
|
};
|
|
2615
|
-
let resolvedPath = `${
|
|
2615
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/voice";
|
|
2616
2616
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2617
2617
|
let body;
|
|
2618
2618
|
if (input.VoiceChannelRequest !== undefined) {
|
|
@@ -2638,7 +2638,7 @@ const serializeAws_restJson1UpdateVoiceTemplateCommand = async (input, context)
|
|
|
2638
2638
|
const headers = {
|
|
2639
2639
|
"content-type": "application/json",
|
|
2640
2640
|
};
|
|
2641
|
-
let resolvedPath = `${
|
|
2641
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/voice";
|
|
2642
2642
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
2643
2643
|
const query = map({
|
|
2644
2644
|
"create-new-version": [() => input.CreateNewVersion !== void 0, () => input.CreateNewVersion.toString()],
|
|
@@ -2669,7 +2669,7 @@ const serializeAws_restJson1VerifyOTPMessageCommand = async (input, context) =>
|
|
|
2669
2669
|
const headers = {
|
|
2670
2670
|
"content-type": "application/json",
|
|
2671
2671
|
};
|
|
2672
|
-
let resolvedPath = `${
|
|
2672
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/verify-otp";
|
|
2673
2673
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2674
2674
|
let body;
|
|
2675
2675
|
if (input.VerifyOTPMessageRequestParameters !== undefined) {
|
|
@@ -12073,15 +12073,12 @@ const deserializeAws_restJson1WaitTime = (output, context) => {
|
|
|
12073
12073
|
WaitUntil: (0, smithy_client_1.expectString)(output.WaitUntil),
|
|
12074
12074
|
};
|
|
12075
12075
|
};
|
|
12076
|
-
const deserializeMetadata = (output) => {
|
|
12077
|
-
|
|
12078
|
-
|
|
12079
|
-
|
|
12080
|
-
|
|
12081
|
-
|
|
12082
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
12083
|
-
});
|
|
12084
|
-
};
|
|
12076
|
+
const deserializeMetadata = (output) => ({
|
|
12077
|
+
httpStatusCode: output.statusCode,
|
|
12078
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
12079
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
12080
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
12081
|
+
});
|
|
12085
12082
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
12086
12083
|
if (streamBody instanceof Uint8Array) {
|
|
12087
12084
|
return Promise.resolve(streamBody);
|
|
@@ -12101,9 +12098,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
12101
12098
|
return {};
|
|
12102
12099
|
});
|
|
12103
12100
|
const parseErrorBody = async (errorBody, context) => {
|
|
12104
|
-
var _a;
|
|
12105
12101
|
const value = await parseBody(errorBody, context);
|
|
12106
|
-
value.message =
|
|
12102
|
+
value.message = value.message ?? value.Message;
|
|
12107
12103
|
return value;
|
|
12108
12104
|
};
|
|
12109
12105
|
const loadRestJsonErrorCode = (output, data) => {
|