@aws-sdk/client-connect 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +476 -716
- package/dist-es/protocols/Aws_restJson1.js +281 -521
- package/package.json +26 -26
|
@@ -26,7 +26,7 @@ export var serializeAws_restJson1AssociateApprovedOriginCommand = function (inpu
|
|
|
26
26
|
else {
|
|
27
27
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
28
28
|
}
|
|
29
|
-
body = JSON.stringify(__assign({}, (input.Origin
|
|
29
|
+
body = JSON.stringify(__assign({}, (input.Origin != null && { Origin: input.Origin })));
|
|
30
30
|
return [2, new __HttpRequest({
|
|
31
31
|
protocol: protocol,
|
|
32
32
|
hostname: hostname,
|
|
@@ -60,9 +60,7 @@ export var serializeAws_restJson1AssociateBotCommand = function (input, context)
|
|
|
60
60
|
else {
|
|
61
61
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
62
62
|
}
|
|
63
|
-
body = JSON.stringify(__assign(__assign({}, (input.LexBot
|
|
64
|
-
input.LexBot !== null && { LexBot: serializeAws_restJson1LexBot(input.LexBot, context) })), (input.LexV2Bot !== undefined &&
|
|
65
|
-
input.LexV2Bot !== null && { LexV2Bot: serializeAws_restJson1LexV2Bot(input.LexV2Bot, context) })));
|
|
63
|
+
body = JSON.stringify(__assign(__assign({}, (input.LexBot != null && { LexBot: serializeAws_restJson1LexBot(input.LexBot, context) })), (input.LexV2Bot != null && { LexV2Bot: serializeAws_restJson1LexV2Bot(input.LexV2Bot, context) })));
|
|
66
64
|
return [2, new __HttpRequest({
|
|
67
65
|
protocol: protocol,
|
|
68
66
|
hostname: hostname,
|
|
@@ -107,7 +105,7 @@ export var serializeAws_restJson1AssociateDefaultVocabularyCommand = function (i
|
|
|
107
105
|
else {
|
|
108
106
|
throw new Error("No value provided for input HTTP label: LanguageCode.");
|
|
109
107
|
}
|
|
110
|
-
body = JSON.stringify(__assign({}, (input.VocabularyId
|
|
108
|
+
body = JSON.stringify(__assign({}, (input.VocabularyId != null && { VocabularyId: input.VocabularyId })));
|
|
111
109
|
return [2, new __HttpRequest({
|
|
112
110
|
protocol: protocol,
|
|
113
111
|
hostname: hostname,
|
|
@@ -141,8 +139,7 @@ export var serializeAws_restJson1AssociateInstanceStorageConfigCommand = functio
|
|
|
141
139
|
else {
|
|
142
140
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
143
141
|
}
|
|
144
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceType
|
|
145
|
-
input.StorageConfig !== null && {
|
|
142
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceType != null && { ResourceType: input.ResourceType })), (input.StorageConfig != null && {
|
|
146
143
|
StorageConfig: serializeAws_restJson1InstanceStorageConfig(input.StorageConfig, context),
|
|
147
144
|
})));
|
|
148
145
|
return [2, new __HttpRequest({
|
|
@@ -178,7 +175,7 @@ export var serializeAws_restJson1AssociateLambdaFunctionCommand = function (inpu
|
|
|
178
175
|
else {
|
|
179
176
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
180
177
|
}
|
|
181
|
-
body = JSON.stringify(__assign({}, (input.FunctionArn
|
|
178
|
+
body = JSON.stringify(__assign({}, (input.FunctionArn != null && { FunctionArn: input.FunctionArn })));
|
|
182
179
|
return [2, new __HttpRequest({
|
|
183
180
|
protocol: protocol,
|
|
184
181
|
hostname: hostname,
|
|
@@ -212,8 +209,7 @@ export var serializeAws_restJson1AssociateLexBotCommand = function (input, conte
|
|
|
212
209
|
else {
|
|
213
210
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
214
211
|
}
|
|
215
|
-
body = JSON.stringify(__assign({}, (input.LexBot
|
|
216
|
-
input.LexBot !== null && { LexBot: serializeAws_restJson1LexBot(input.LexBot, context) })));
|
|
212
|
+
body = JSON.stringify(__assign({}, (input.LexBot != null && { LexBot: serializeAws_restJson1LexBot(input.LexBot, context) })));
|
|
217
213
|
return [2, new __HttpRequest({
|
|
218
214
|
protocol: protocol,
|
|
219
215
|
hostname: hostname,
|
|
@@ -248,7 +244,7 @@ export var serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = functi
|
|
|
248
244
|
else {
|
|
249
245
|
throw new Error("No value provided for input HTTP label: PhoneNumberId.");
|
|
250
246
|
}
|
|
251
|
-
body = JSON.stringify(__assign(__assign({}, (input.ContactFlowId
|
|
247
|
+
body = JSON.stringify(__assign(__assign({}, (input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId })), (input.InstanceId != null && { InstanceId: input.InstanceId })));
|
|
252
248
|
return [2, new __HttpRequest({
|
|
253
249
|
protocol: protocol,
|
|
254
250
|
hostname: hostname,
|
|
@@ -293,8 +289,7 @@ export var serializeAws_restJson1AssociateQueueQuickConnectsCommand = function (
|
|
|
293
289
|
else {
|
|
294
290
|
throw new Error("No value provided for input HTTP label: QueueId.");
|
|
295
291
|
}
|
|
296
|
-
body = JSON.stringify(__assign({}, (input.QuickConnectIds
|
|
297
|
-
input.QuickConnectIds !== null && {
|
|
292
|
+
body = JSON.stringify(__assign({}, (input.QuickConnectIds != null && {
|
|
298
293
|
QuickConnectIds: serializeAws_restJson1QuickConnectsList(input.QuickConnectIds, context),
|
|
299
294
|
})));
|
|
300
295
|
return [2, new __HttpRequest({
|
|
@@ -341,8 +336,7 @@ export var serializeAws_restJson1AssociateRoutingProfileQueuesCommand = function
|
|
|
341
336
|
else {
|
|
342
337
|
throw new Error("No value provided for input HTTP label: RoutingProfileId.");
|
|
343
338
|
}
|
|
344
|
-
body = JSON.stringify(__assign({}, (input.QueueConfigs
|
|
345
|
-
input.QueueConfigs !== null && {
|
|
339
|
+
body = JSON.stringify(__assign({}, (input.QueueConfigs != null && {
|
|
346
340
|
QueueConfigs: serializeAws_restJson1RoutingProfileQueueConfigList(input.QueueConfigs, context),
|
|
347
341
|
})));
|
|
348
342
|
return [2, new __HttpRequest({
|
|
@@ -378,7 +372,7 @@ export var serializeAws_restJson1AssociateSecurityKeyCommand = function (input,
|
|
|
378
372
|
else {
|
|
379
373
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
380
374
|
}
|
|
381
|
-
body = JSON.stringify(__assign({}, (input.Key
|
|
375
|
+
body = JSON.stringify(__assign({}, (input.Key != null && { Key: input.Key })));
|
|
382
376
|
return [2, new __HttpRequest({
|
|
383
377
|
protocol: protocol,
|
|
384
378
|
hostname: hostname,
|
|
@@ -403,8 +397,7 @@ export var serializeAws_restJson1ClaimPhoneNumberCommand = function (input, cont
|
|
|
403
397
|
"content-type": "application/json",
|
|
404
398
|
};
|
|
405
399
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/phone-number/claim";
|
|
406
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.PhoneNumber
|
|
407
|
-
input.PhoneNumberDescription !== null && { PhoneNumberDescription: input.PhoneNumberDescription })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn })));
|
|
400
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber })), (input.PhoneNumberDescription != null && { PhoneNumberDescription: input.PhoneNumberDescription })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.TargetArn != null && { TargetArn: input.TargetArn })));
|
|
408
401
|
return [2, new __HttpRequest({
|
|
409
402
|
protocol: protocol,
|
|
410
403
|
hostname: hostname,
|
|
@@ -438,7 +431,7 @@ export var serializeAws_restJson1CreateAgentStatusCommand = function (input, con
|
|
|
438
431
|
else {
|
|
439
432
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
440
433
|
}
|
|
441
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
434
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DisplayOrder != null && { DisplayOrder: input.DisplayOrder })), (input.Name != null && { Name: input.Name })), (input.State != null && { State: input.State })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
442
435
|
return [2, new __HttpRequest({
|
|
443
436
|
protocol: protocol,
|
|
444
437
|
hostname: hostname,
|
|
@@ -472,7 +465,7 @@ export var serializeAws_restJson1CreateContactFlowCommand = function (input, con
|
|
|
472
465
|
else {
|
|
473
466
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
474
467
|
}
|
|
475
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Content
|
|
468
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Type != null && { Type: input.Type })));
|
|
476
469
|
return [2, new __HttpRequest({
|
|
477
470
|
protocol: protocol,
|
|
478
471
|
hostname: hostname,
|
|
@@ -507,7 +500,7 @@ export var serializeAws_restJson1CreateContactFlowModuleCommand = function (inpu
|
|
|
507
500
|
else {
|
|
508
501
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
509
502
|
}
|
|
510
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content
|
|
503
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content != null && { Content: input.Content })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
511
504
|
return [2, new __HttpRequest({
|
|
512
505
|
protocol: protocol,
|
|
513
506
|
hostname: hostname,
|
|
@@ -541,8 +534,7 @@ export var serializeAws_restJson1CreateHoursOfOperationCommand = function (input
|
|
|
541
534
|
else {
|
|
542
535
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
543
536
|
}
|
|
544
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Config
|
|
545
|
-
input.Config !== null && { Config: serializeAws_restJson1HoursOfOperationConfigList(input.Config, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.TimeZone !== undefined && input.TimeZone !== null && { TimeZone: input.TimeZone })));
|
|
537
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Config != null && { Config: serializeAws_restJson1HoursOfOperationConfigList(input.Config, context) })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.TimeZone != null && { TimeZone: input.TimeZone })));
|
|
546
538
|
return [2, new __HttpRequest({
|
|
547
539
|
protocol: protocol,
|
|
548
540
|
hostname: hostname,
|
|
@@ -566,10 +558,7 @@ export var serializeAws_restJson1CreateInstanceCommand = function (input, contex
|
|
|
566
558
|
"content-type": "application/json",
|
|
567
559
|
};
|
|
568
560
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/instance";
|
|
569
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientToken
|
|
570
|
-
input.IdentityManagementType !== null && { IdentityManagementType: input.IdentityManagementType })), (input.InboundCallsEnabled !== undefined &&
|
|
571
|
-
input.InboundCallsEnabled !== null && { InboundCallsEnabled: input.InboundCallsEnabled })), (input.InstanceAlias !== undefined && input.InstanceAlias !== null && { InstanceAlias: input.InstanceAlias })), (input.OutboundCallsEnabled !== undefined &&
|
|
572
|
-
input.OutboundCallsEnabled !== null && { OutboundCallsEnabled: input.OutboundCallsEnabled })));
|
|
561
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientToken != null && { ClientToken: input.ClientToken })), (input.DirectoryId != null && { DirectoryId: input.DirectoryId })), (input.IdentityManagementType != null && { IdentityManagementType: input.IdentityManagementType })), (input.InboundCallsEnabled != null && { InboundCallsEnabled: input.InboundCallsEnabled })), (input.InstanceAlias != null && { InstanceAlias: input.InstanceAlias })), (input.OutboundCallsEnabled != null && { OutboundCallsEnabled: input.OutboundCallsEnabled })));
|
|
573
562
|
return [2, new __HttpRequest({
|
|
574
563
|
protocol: protocol,
|
|
575
564
|
hostname: hostname,
|
|
@@ -604,11 +593,7 @@ export var serializeAws_restJson1CreateIntegrationAssociationCommand = function
|
|
|
604
593
|
else {
|
|
605
594
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
606
595
|
}
|
|
607
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.IntegrationArn
|
|
608
|
-
input.IntegrationArn !== null && { IntegrationArn: input.IntegrationArn })), (input.IntegrationType !== undefined &&
|
|
609
|
-
input.IntegrationType !== null && { IntegrationType: input.IntegrationType })), (input.SourceApplicationName !== undefined &&
|
|
610
|
-
input.SourceApplicationName !== null && { SourceApplicationName: input.SourceApplicationName })), (input.SourceApplicationUrl !== undefined &&
|
|
611
|
-
input.SourceApplicationUrl !== null && { SourceApplicationUrl: input.SourceApplicationUrl })), (input.SourceType !== undefined && input.SourceType !== null && { SourceType: input.SourceType })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
596
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.IntegrationArn != null && { IntegrationArn: input.IntegrationArn })), (input.IntegrationType != null && { IntegrationType: input.IntegrationType })), (input.SourceApplicationName != null && { SourceApplicationName: input.SourceApplicationName })), (input.SourceApplicationUrl != null && { SourceApplicationUrl: input.SourceApplicationUrl })), (input.SourceType != null && { SourceType: input.SourceType })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
612
597
|
return [2, new __HttpRequest({
|
|
613
598
|
protocol: protocol,
|
|
614
599
|
hostname: hostname,
|
|
@@ -642,14 +627,11 @@ export var serializeAws_restJson1CreateQueueCommand = function (input, context)
|
|
|
642
627
|
else {
|
|
643
628
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
644
629
|
}
|
|
645
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
646
|
-
input.HoursOfOperationId !== null && { HoursOfOperationId: input.HoursOfOperationId })), (input.MaxContacts !== undefined && input.MaxContacts !== null && { MaxContacts: input.MaxContacts })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.OutboundCallerConfig !== undefined &&
|
|
647
|
-
input.OutboundCallerConfig !== null && {
|
|
630
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.HoursOfOperationId != null && { HoursOfOperationId: input.HoursOfOperationId })), (input.MaxContacts != null && { MaxContacts: input.MaxContacts })), (input.Name != null && { Name: input.Name })), (input.OutboundCallerConfig != null && {
|
|
648
631
|
OutboundCallerConfig: serializeAws_restJson1OutboundCallerConfig(input.OutboundCallerConfig, context),
|
|
649
|
-
})), (input.QuickConnectIds
|
|
650
|
-
input.QuickConnectIds !== null && {
|
|
632
|
+
})), (input.QuickConnectIds != null && {
|
|
651
633
|
QuickConnectIds: serializeAws_restJson1QuickConnectsList(input.QuickConnectIds, context),
|
|
652
|
-
})), (input.Tags
|
|
634
|
+
})), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
653
635
|
return [2, new __HttpRequest({
|
|
654
636
|
protocol: protocol,
|
|
655
637
|
hostname: hostname,
|
|
@@ -683,10 +665,9 @@ export var serializeAws_restJson1CreateQuickConnectCommand = function (input, co
|
|
|
683
665
|
else {
|
|
684
666
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
685
667
|
}
|
|
686
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
687
|
-
input.QuickConnectConfig !== null && {
|
|
668
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.QuickConnectConfig != null && {
|
|
688
669
|
QuickConnectConfig: serializeAws_restJson1QuickConnectConfig(input.QuickConnectConfig, context),
|
|
689
|
-
})), (input.Tags
|
|
670
|
+
})), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
690
671
|
return [2, new __HttpRequest({
|
|
691
672
|
protocol: protocol,
|
|
692
673
|
hostname: hostname,
|
|
@@ -720,14 +701,11 @@ export var serializeAws_restJson1CreateRoutingProfileCommand = function (input,
|
|
|
720
701
|
else {
|
|
721
702
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
722
703
|
}
|
|
723
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DefaultOutboundQueueId
|
|
724
|
-
input.DefaultOutboundQueueId !== null && { DefaultOutboundQueueId: input.DefaultOutboundQueueId })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.MediaConcurrencies !== undefined &&
|
|
725
|
-
input.MediaConcurrencies !== null && {
|
|
704
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DefaultOutboundQueueId != null && { DefaultOutboundQueueId: input.DefaultOutboundQueueId })), (input.Description != null && { Description: input.Description })), (input.MediaConcurrencies != null && {
|
|
726
705
|
MediaConcurrencies: serializeAws_restJson1MediaConcurrencies(input.MediaConcurrencies, context),
|
|
727
|
-
})), (input.Name
|
|
728
|
-
input.QueueConfigs !== null && {
|
|
706
|
+
})), (input.Name != null && { Name: input.Name })), (input.QueueConfigs != null && {
|
|
729
707
|
QueueConfigs: serializeAws_restJson1RoutingProfileQueueConfigList(input.QueueConfigs, context),
|
|
730
|
-
})), (input.Tags
|
|
708
|
+
})), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
731
709
|
return [2, new __HttpRequest({
|
|
732
710
|
protocol: protocol,
|
|
733
711
|
hostname: hostname,
|
|
@@ -761,9 +739,9 @@ export var serializeAws_restJson1CreateSecurityProfileCommand = function (input,
|
|
|
761
739
|
else {
|
|
762
740
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
763
741
|
}
|
|
764
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
765
|
-
|
|
766
|
-
|
|
742
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Permissions != null && {
|
|
743
|
+
Permissions: serializeAws_restJson1PermissionsList(input.Permissions, context),
|
|
744
|
+
})), (input.SecurityProfileName != null && { SecurityProfileName: input.SecurityProfileName })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
767
745
|
return [2, new __HttpRequest({
|
|
768
746
|
protocol: protocol,
|
|
769
747
|
hostname: hostname,
|
|
@@ -798,12 +776,9 @@ export var serializeAws_restJson1CreateTaskTemplateCommand = function (input, co
|
|
|
798
776
|
else {
|
|
799
777
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
800
778
|
}
|
|
801
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Constraints
|
|
802
|
-
input.Constraints !== null && {
|
|
779
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Constraints != null && {
|
|
803
780
|
Constraints: serializeAws_restJson1TaskTemplateConstraints(input.Constraints, context),
|
|
804
|
-
})), (input.ContactFlowId
|
|
805
|
-
input.Defaults !== null && { Defaults: serializeAws_restJson1TaskTemplateDefaults(input.Defaults, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Fields !== undefined &&
|
|
806
|
-
input.Fields !== null && { Fields: serializeAws_restJson1TaskTemplateFields(input.Fields, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Status !== undefined && input.Status !== null && { Status: input.Status })));
|
|
781
|
+
})), (input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId })), (input.Defaults != null && { Defaults: serializeAws_restJson1TaskTemplateDefaults(input.Defaults, context) })), (input.Description != null && { Description: input.Description })), (input.Fields != null && { Fields: serializeAws_restJson1TaskTemplateFields(input.Fields, context) })), (input.Name != null && { Name: input.Name })), (input.Status != null && { Status: input.Status })));
|
|
807
782
|
return [2, new __HttpRequest({
|
|
808
783
|
protocol: protocol,
|
|
809
784
|
hostname: hostname,
|
|
@@ -848,7 +823,7 @@ export var serializeAws_restJson1CreateUseCaseCommand = function (input, context
|
|
|
848
823
|
else {
|
|
849
824
|
throw new Error("No value provided for input HTTP label: IntegrationAssociationId.");
|
|
850
825
|
}
|
|
851
|
-
body = JSON.stringify(__assign(__assign({}, (input.Tags
|
|
826
|
+
body = JSON.stringify(__assign(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.UseCaseType != null && { UseCaseType: input.UseCaseType })));
|
|
852
827
|
return [2, new __HttpRequest({
|
|
853
828
|
protocol: protocol,
|
|
854
829
|
hostname: hostname,
|
|
@@ -882,17 +857,13 @@ export var serializeAws_restJson1CreateUserCommand = function (input, context) {
|
|
|
882
857
|
else {
|
|
883
858
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
884
859
|
}
|
|
885
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DirectoryUserId
|
|
886
|
-
input.DirectoryUserId !== null && { DirectoryUserId: input.DirectoryUserId })), (input.HierarchyGroupId !== undefined &&
|
|
887
|
-
input.HierarchyGroupId !== null && { HierarchyGroupId: input.HierarchyGroupId })), (input.IdentityInfo !== undefined &&
|
|
888
|
-
input.IdentityInfo !== null && {
|
|
860
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DirectoryUserId != null && { DirectoryUserId: input.DirectoryUserId })), (input.HierarchyGroupId != null && { HierarchyGroupId: input.HierarchyGroupId })), (input.IdentityInfo != null && {
|
|
889
861
|
IdentityInfo: serializeAws_restJson1UserIdentityInfo(input.IdentityInfo, context),
|
|
890
|
-
})), (input.Password
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
input.SecurityProfileIds !== null && {
|
|
862
|
+
})), (input.Password != null && { Password: input.Password })), (input.PhoneConfig != null && {
|
|
863
|
+
PhoneConfig: serializeAws_restJson1UserPhoneConfig(input.PhoneConfig, context),
|
|
864
|
+
})), (input.RoutingProfileId != null && { RoutingProfileId: input.RoutingProfileId })), (input.SecurityProfileIds != null && {
|
|
894
865
|
SecurityProfileIds: serializeAws_restJson1SecurityProfileIds(input.SecurityProfileIds, context),
|
|
895
|
-
})), (input.Tags
|
|
866
|
+
})), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Username != null && { Username: input.Username })));
|
|
896
867
|
return [2, new __HttpRequest({
|
|
897
868
|
protocol: protocol,
|
|
898
869
|
hostname: hostname,
|
|
@@ -926,7 +897,7 @@ export var serializeAws_restJson1CreateUserHierarchyGroupCommand = function (inp
|
|
|
926
897
|
else {
|
|
927
898
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
928
899
|
}
|
|
929
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Name
|
|
900
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.ParentGroupId != null && { ParentGroupId: input.ParentGroupId })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
930
901
|
return [2, new __HttpRequest({
|
|
931
902
|
protocol: protocol,
|
|
932
903
|
hostname: hostname,
|
|
@@ -961,8 +932,7 @@ export var serializeAws_restJson1CreateVocabularyCommand = function (input, cont
|
|
|
961
932
|
else {
|
|
962
933
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
963
934
|
}
|
|
964
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content
|
|
965
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName })));
|
|
935
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content != null && { Content: input.Content })), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.VocabularyName != null && { VocabularyName: input.VocabularyName })));
|
|
966
936
|
return [2, new __HttpRequest({
|
|
967
937
|
protocol: protocol,
|
|
968
938
|
hostname: hostname,
|
|
@@ -2210,9 +2180,7 @@ export var serializeAws_restJson1DisassociateBotCommand = function (input, conte
|
|
|
2210
2180
|
else {
|
|
2211
2181
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
2212
2182
|
}
|
|
2213
|
-
body = JSON.stringify(__assign(__assign({}, (input.LexBot
|
|
2214
|
-
input.LexBot !== null && { LexBot: serializeAws_restJson1LexBot(input.LexBot, context) })), (input.LexV2Bot !== undefined &&
|
|
2215
|
-
input.LexV2Bot !== null && { LexV2Bot: serializeAws_restJson1LexV2Bot(input.LexV2Bot, context) })));
|
|
2183
|
+
body = JSON.stringify(__assign(__assign({}, (input.LexBot != null && { LexBot: serializeAws_restJson1LexBot(input.LexBot, context) })), (input.LexV2Bot != null && { LexV2Bot: serializeAws_restJson1LexV2Bot(input.LexV2Bot, context) })));
|
|
2216
2184
|
return [2, new __HttpRequest({
|
|
2217
2185
|
protocol: protocol,
|
|
2218
2186
|
hostname: hostname,
|
|
@@ -2401,8 +2369,7 @@ export var serializeAws_restJson1DisassociateQueueQuickConnectsCommand = functio
|
|
|
2401
2369
|
else {
|
|
2402
2370
|
throw new Error("No value provided for input HTTP label: QueueId.");
|
|
2403
2371
|
}
|
|
2404
|
-
body = JSON.stringify(__assign({}, (input.QuickConnectIds
|
|
2405
|
-
input.QuickConnectIds !== null && {
|
|
2372
|
+
body = JSON.stringify(__assign({}, (input.QuickConnectIds != null && {
|
|
2406
2373
|
QuickConnectIds: serializeAws_restJson1QuickConnectsList(input.QuickConnectIds, context),
|
|
2407
2374
|
})));
|
|
2408
2375
|
return [2, new __HttpRequest({
|
|
@@ -2449,8 +2416,7 @@ export var serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = funct
|
|
|
2449
2416
|
else {
|
|
2450
2417
|
throw new Error("No value provided for input HTTP label: RoutingProfileId.");
|
|
2451
2418
|
}
|
|
2452
|
-
body = JSON.stringify(__assign({}, (input.QueueReferences
|
|
2453
|
-
input.QueueReferences !== null && {
|
|
2419
|
+
body = JSON.stringify(__assign({}, (input.QueueReferences != null && {
|
|
2454
2420
|
QueueReferences: serializeAws_restJson1RoutingProfileQueueReferenceList(input.QueueReferences, context),
|
|
2455
2421
|
})));
|
|
2456
2422
|
return [2, new __HttpRequest({
|
|
@@ -2570,12 +2536,9 @@ export var serializeAws_restJson1GetCurrentMetricDataCommand = function (input,
|
|
|
2570
2536
|
else {
|
|
2571
2537
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
2572
2538
|
}
|
|
2573
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.CurrentMetrics
|
|
2574
|
-
input.CurrentMetrics !== null && {
|
|
2539
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.CurrentMetrics != null && {
|
|
2575
2540
|
CurrentMetrics: serializeAws_restJson1CurrentMetrics(input.CurrentMetrics, context),
|
|
2576
|
-
})), (input.Filters
|
|
2577
|
-
input.Filters !== null && { Filters: serializeAws_restJson1Filters(input.Filters, context) })), (input.Groupings !== undefined &&
|
|
2578
|
-
input.Groupings !== null && { Groupings: serializeAws_restJson1Groupings(input.Groupings, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
2541
|
+
})), (input.Filters != null && { Filters: serializeAws_restJson1Filters(input.Filters, context) })), (input.Groupings != null && { Groupings: serializeAws_restJson1Groupings(input.Groupings, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
2579
2542
|
return [2, new __HttpRequest({
|
|
2580
2543
|
protocol: protocol,
|
|
2581
2544
|
hostname: hostname,
|
|
@@ -2609,8 +2572,7 @@ export var serializeAws_restJson1GetCurrentUserDataCommand = function (input, co
|
|
|
2609
2572
|
else {
|
|
2610
2573
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
2611
2574
|
}
|
|
2612
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters
|
|
2613
|
-
input.Filters !== null && { Filters: serializeAws_restJson1UserDataFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
2575
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1UserDataFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
2614
2576
|
return [2, new __HttpRequest({
|
|
2615
2577
|
protocol: protocol,
|
|
2616
2578
|
hostname: hostname,
|
|
@@ -2675,14 +2637,9 @@ export var serializeAws_restJson1GetMetricDataCommand = function (input, context
|
|
|
2675
2637
|
else {
|
|
2676
2638
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
2677
2639
|
}
|
|
2678
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime
|
|
2679
|
-
input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.Filters !== undefined &&
|
|
2680
|
-
input.Filters !== null && { Filters: serializeAws_restJson1Filters(input.Filters, context) })), (input.Groupings !== undefined &&
|
|
2681
|
-
input.Groupings !== null && { Groupings: serializeAws_restJson1Groupings(input.Groupings, context) })), (input.HistoricalMetrics !== undefined &&
|
|
2682
|
-
input.HistoricalMetrics !== null && {
|
|
2640
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.Filters != null && { Filters: serializeAws_restJson1Filters(input.Filters, context) })), (input.Groupings != null && { Groupings: serializeAws_restJson1Groupings(input.Groupings, context) })), (input.HistoricalMetrics != null && {
|
|
2683
2641
|
HistoricalMetrics: serializeAws_restJson1HistoricalMetrics(input.HistoricalMetrics, context),
|
|
2684
|
-
})), (input.MaxResults
|
|
2685
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) })));
|
|
2642
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) })));
|
|
2686
2643
|
return [2, new __HttpRequest({
|
|
2687
2644
|
protocol: protocol,
|
|
2688
2645
|
hostname: hostname,
|
|
@@ -2976,7 +2933,7 @@ export var serializeAws_restJson1ListDefaultVocabulariesCommand = function (inpu
|
|
|
2976
2933
|
else {
|
|
2977
2934
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
2978
2935
|
}
|
|
2979
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.LanguageCode
|
|
2936
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
2980
2937
|
return [2, new __HttpRequest({
|
|
2981
2938
|
protocol: protocol,
|
|
2982
2939
|
hostname: hostname,
|
|
@@ -3259,14 +3216,11 @@ export var serializeAws_restJson1ListPhoneNumbersV2Command = function (input, co
|
|
|
3259
3216
|
"content-type": "application/json",
|
|
3260
3217
|
};
|
|
3261
3218
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/phone-number/list";
|
|
3262
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
3263
|
-
input.PhoneNumberCountryCodes !== null && {
|
|
3219
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PhoneNumberCountryCodes != null && {
|
|
3264
3220
|
PhoneNumberCountryCodes: serializeAws_restJson1PhoneNumberCountryCodes(input.PhoneNumberCountryCodes, context),
|
|
3265
|
-
})), (input.PhoneNumberPrefix
|
|
3266
|
-
input.PhoneNumberPrefix !== null && { PhoneNumberPrefix: input.PhoneNumberPrefix })), (input.PhoneNumberTypes !== undefined &&
|
|
3267
|
-
input.PhoneNumberTypes !== null && {
|
|
3221
|
+
})), (input.PhoneNumberPrefix != null && { PhoneNumberPrefix: input.PhoneNumberPrefix })), (input.PhoneNumberTypes != null && {
|
|
3268
3222
|
PhoneNumberTypes: serializeAws_restJson1PhoneNumberTypes(input.PhoneNumberTypes, context),
|
|
3269
|
-
})), (input.TargetArn
|
|
3223
|
+
})), (input.TargetArn != null && { TargetArn: input.TargetArn })));
|
|
3270
3224
|
return [2, new __HttpRequest({
|
|
3271
3225
|
protocol: protocol,
|
|
3272
3226
|
hostname: hostname,
|
|
@@ -3817,7 +3771,7 @@ export var serializeAws_restJson1PutUserStatusCommand = function (input, context
|
|
|
3817
3771
|
else {
|
|
3818
3772
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
3819
3773
|
}
|
|
3820
|
-
body = JSON.stringify(__assign({}, (input.AgentStatusId
|
|
3774
|
+
body = JSON.stringify(__assign({}, (input.AgentStatusId != null && { AgentStatusId: input.AgentStatusId })));
|
|
3821
3775
|
return [2, new __HttpRequest({
|
|
3822
3776
|
protocol: protocol,
|
|
3823
3777
|
hostname: hostname,
|
|
@@ -3874,8 +3828,7 @@ export var serializeAws_restJson1ResumeContactRecordingCommand = function (input
|
|
|
3874
3828
|
"content-type": "application/json",
|
|
3875
3829
|
};
|
|
3876
3830
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/resume-recording";
|
|
3877
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ContactId
|
|
3878
|
-
input.InitialContactId !== null && { InitialContactId: input.InitialContactId })), (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })));
|
|
3831
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.InitialContactId != null && { InitialContactId: input.InitialContactId })), (input.InstanceId != null && { InstanceId: input.InstanceId })));
|
|
3879
3832
|
return [2, new __HttpRequest({
|
|
3880
3833
|
protocol: protocol,
|
|
3881
3834
|
hostname: hostname,
|
|
@@ -3899,10 +3852,7 @@ export var serializeAws_restJson1SearchAvailablePhoneNumbersCommand = function (
|
|
|
3899
3852
|
"content-type": "application/json",
|
|
3900
3853
|
};
|
|
3901
3854
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/phone-number/search-available";
|
|
3902
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
3903
|
-
input.PhoneNumberCountryCode !== null && { PhoneNumberCountryCode: input.PhoneNumberCountryCode })), (input.PhoneNumberPrefix !== undefined &&
|
|
3904
|
-
input.PhoneNumberPrefix !== null && { PhoneNumberPrefix: input.PhoneNumberPrefix })), (input.PhoneNumberType !== undefined &&
|
|
3905
|
-
input.PhoneNumberType !== null && { PhoneNumberType: input.PhoneNumberType })), (input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn })));
|
|
3855
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PhoneNumberCountryCode != null && { PhoneNumberCountryCode: input.PhoneNumberCountryCode })), (input.PhoneNumberPrefix != null && { PhoneNumberPrefix: input.PhoneNumberPrefix })), (input.PhoneNumberType != null && { PhoneNumberType: input.PhoneNumberType })), (input.TargetArn != null && { TargetArn: input.TargetArn })));
|
|
3906
3856
|
return [2, new __HttpRequest({
|
|
3907
3857
|
protocol: protocol,
|
|
3908
3858
|
hostname: hostname,
|
|
@@ -3926,11 +3876,9 @@ export var serializeAws_restJson1SearchUsersCommand = function (input, context)
|
|
|
3926
3876
|
"content-type": "application/json",
|
|
3927
3877
|
};
|
|
3928
3878
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/search-users";
|
|
3929
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.InstanceId
|
|
3930
|
-
input.SearchCriteria !== null && {
|
|
3879
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SearchCriteria != null && {
|
|
3931
3880
|
SearchCriteria: serializeAws_restJson1UserSearchCriteria(input.SearchCriteria, context),
|
|
3932
|
-
})), (input.SearchFilter
|
|
3933
|
-
input.SearchFilter !== null && {
|
|
3881
|
+
})), (input.SearchFilter != null && {
|
|
3934
3882
|
SearchFilter: serializeAws_restJson1UserSearchFilter(input.SearchFilter, context),
|
|
3935
3883
|
})));
|
|
3936
3884
|
return [2, new __HttpRequest({
|
|
@@ -3966,8 +3914,7 @@ export var serializeAws_restJson1SearchVocabulariesCommand = function (input, co
|
|
|
3966
3914
|
else {
|
|
3967
3915
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
3968
3916
|
}
|
|
3969
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.LanguageCode
|
|
3970
|
-
input.NameStartsWith !== null && { NameStartsWith: input.NameStartsWith })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.State !== undefined && input.State !== null && { State: input.State })));
|
|
3917
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NameStartsWith != null && { NameStartsWith: input.NameStartsWith })), (input.NextToken != null && { NextToken: input.NextToken })), (input.State != null && { State: input.State })));
|
|
3971
3918
|
return [2, new __HttpRequest({
|
|
3972
3919
|
protocol: protocol,
|
|
3973
3920
|
hostname: hostname,
|
|
@@ -3992,16 +3939,11 @@ export var serializeAws_restJson1StartChatContactCommand = function (input, cont
|
|
|
3992
3939
|
"content-type": "application/json",
|
|
3993
3940
|
};
|
|
3994
3941
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/chat";
|
|
3995
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attributes !==
|
|
3996
|
-
input.Attributes !== null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) })), (input.ChatDurationInMinutes !== undefined &&
|
|
3997
|
-
input.ChatDurationInMinutes !== null && { ChatDurationInMinutes: input.ChatDurationInMinutes })), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId })), (input.InitialMessage !== undefined &&
|
|
3998
|
-
input.InitialMessage !== null && {
|
|
3942
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) })), (input.ChatDurationInMinutes != null && { ChatDurationInMinutes: input.ChatDurationInMinutes })), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId })), (input.InitialMessage != null && {
|
|
3999
3943
|
InitialMessage: serializeAws_restJson1ChatMessage(input.InitialMessage, context),
|
|
4000
|
-
})), (input.InstanceId
|
|
4001
|
-
input.ParticipantDetails !== null && {
|
|
3944
|
+
})), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.ParticipantDetails != null && {
|
|
4002
3945
|
ParticipantDetails: serializeAws_restJson1ParticipantDetails(input.ParticipantDetails, context),
|
|
4003
|
-
})), (input.SupportedMessagingContentTypes
|
|
4004
|
-
input.SupportedMessagingContentTypes !== null && {
|
|
3946
|
+
})), (input.SupportedMessagingContentTypes != null && {
|
|
4005
3947
|
SupportedMessagingContentTypes: serializeAws_restJson1SupportedMessagingContentTypes(input.SupportedMessagingContentTypes, context),
|
|
4006
3948
|
})));
|
|
4007
3949
|
return [2, new __HttpRequest({
|
|
@@ -4027,9 +3969,7 @@ export var serializeAws_restJson1StartContactRecordingCommand = function (input,
|
|
|
4027
3969
|
"content-type": "application/json",
|
|
4028
3970
|
};
|
|
4029
3971
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/start-recording";
|
|
4030
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ContactId
|
|
4031
|
-
input.InitialContactId !== null && { InitialContactId: input.InitialContactId })), (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.VoiceRecordingConfiguration !== undefined &&
|
|
4032
|
-
input.VoiceRecordingConfiguration !== null && {
|
|
3972
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.InitialContactId != null && { InitialContactId: input.InitialContactId })), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.VoiceRecordingConfiguration != null && {
|
|
4033
3973
|
VoiceRecordingConfiguration: serializeAws_restJson1VoiceRecordingConfiguration(input.VoiceRecordingConfiguration, context),
|
|
4034
3974
|
})));
|
|
4035
3975
|
return [2, new __HttpRequest({
|
|
@@ -4056,10 +3996,9 @@ export var serializeAws_restJson1StartContactStreamingCommand = function (input,
|
|
|
4056
3996
|
"content-type": "application/json",
|
|
4057
3997
|
};
|
|
4058
3998
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/start-streaming";
|
|
4059
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ChatStreamingConfiguration
|
|
4060
|
-
input.ChatStreamingConfiguration !== null && {
|
|
3999
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ChatStreamingConfiguration != null && {
|
|
4061
4000
|
ChatStreamingConfiguration: serializeAws_restJson1ChatStreamingConfiguration(input.ChatStreamingConfiguration, context),
|
|
4062
|
-
})), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ContactId
|
|
4001
|
+
})), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ContactId != null && { ContactId: input.ContactId })), (input.InstanceId != null && { InstanceId: input.InstanceId })));
|
|
4063
4002
|
return [2, new __HttpRequest({
|
|
4064
4003
|
protocol: protocol,
|
|
4065
4004
|
hostname: hostname,
|
|
@@ -4084,13 +4023,9 @@ export var serializeAws_restJson1StartOutboundVoiceContactCommand = function (in
|
|
|
4084
4023
|
"content-type": "application/json",
|
|
4085
4024
|
};
|
|
4086
4025
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/outbound-voice";
|
|
4087
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnswerMachineDetectionConfig
|
|
4088
|
-
input.AnswerMachineDetectionConfig !== null && {
|
|
4026
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnswerMachineDetectionConfig != null && {
|
|
4089
4027
|
AnswerMachineDetectionConfig: serializeAws_restJson1AnswerMachineDetectionConfig(input.AnswerMachineDetectionConfig, context),
|
|
4090
|
-
})), (input.Attributes !==
|
|
4091
|
-
input.Attributes !== null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) })), (input.CampaignId !== undefined && input.CampaignId !== null && { CampaignId: input.CampaignId })), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId })), (input.DestinationPhoneNumber !== undefined &&
|
|
4092
|
-
input.DestinationPhoneNumber !== null && { DestinationPhoneNumber: input.DestinationPhoneNumber })), (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.QueueId !== undefined && input.QueueId !== null && { QueueId: input.QueueId })), (input.SourcePhoneNumber !== undefined &&
|
|
4093
|
-
input.SourcePhoneNumber !== null && { SourcePhoneNumber: input.SourcePhoneNumber })), (input.TrafficType !== undefined && input.TrafficType !== null && { TrafficType: input.TrafficType })));
|
|
4028
|
+
})), (input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) })), (input.CampaignId != null && { CampaignId: input.CampaignId })), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId })), (input.DestinationPhoneNumber != null && { DestinationPhoneNumber: input.DestinationPhoneNumber })), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.QueueId != null && { QueueId: input.QueueId })), (input.SourcePhoneNumber != null && { SourcePhoneNumber: input.SourcePhoneNumber })), (input.TrafficType != null && { TrafficType: input.TrafficType })));
|
|
4094
4029
|
return [2, new __HttpRequest({
|
|
4095
4030
|
protocol: protocol,
|
|
4096
4031
|
hostname: hostname,
|
|
@@ -4115,13 +4050,7 @@ export var serializeAws_restJson1StartTaskContactCommand = function (input, cont
|
|
|
4115
4050
|
"content-type": "application/json",
|
|
4116
4051
|
};
|
|
4117
4052
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/task";
|
|
4118
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attributes !==
|
|
4119
|
-
input.Attributes !== null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) })), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.PreviousContactId !== undefined &&
|
|
4120
|
-
input.PreviousContactId !== null && { PreviousContactId: input.PreviousContactId })), (input.QuickConnectId !== undefined &&
|
|
4121
|
-
input.QuickConnectId !== null && { QuickConnectId: input.QuickConnectId })), (input.References !== undefined &&
|
|
4122
|
-
input.References !== null && { References: serializeAws_restJson1ContactReferences(input.References, context) })), (input.ScheduledTime !== undefined &&
|
|
4123
|
-
input.ScheduledTime !== null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) })), (input.TaskTemplateId !== undefined &&
|
|
4124
|
-
input.TaskTemplateId !== null && { TaskTemplateId: input.TaskTemplateId })));
|
|
4053
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) })), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId })), (input.Description != null && { Description: input.Description })), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.Name != null && { Name: input.Name })), (input.PreviousContactId != null && { PreviousContactId: input.PreviousContactId })), (input.QuickConnectId != null && { QuickConnectId: input.QuickConnectId })), (input.References != null && { References: serializeAws_restJson1ContactReferences(input.References, context) })), (input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) })), (input.TaskTemplateId != null && { TaskTemplateId: input.TaskTemplateId })));
|
|
4125
4054
|
return [2, new __HttpRequest({
|
|
4126
4055
|
protocol: protocol,
|
|
4127
4056
|
hostname: hostname,
|
|
@@ -4145,7 +4074,7 @@ export var serializeAws_restJson1StopContactCommand = function (input, context)
|
|
|
4145
4074
|
"content-type": "application/json",
|
|
4146
4075
|
};
|
|
4147
4076
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/stop";
|
|
4148
|
-
body = JSON.stringify(__assign(__assign({}, (input.ContactId
|
|
4077
|
+
body = JSON.stringify(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.InstanceId != null && { InstanceId: input.InstanceId })));
|
|
4149
4078
|
return [2, new __HttpRequest({
|
|
4150
4079
|
protocol: protocol,
|
|
4151
4080
|
hostname: hostname,
|
|
@@ -4169,8 +4098,7 @@ export var serializeAws_restJson1StopContactRecordingCommand = function (input,
|
|
|
4169
4098
|
"content-type": "application/json",
|
|
4170
4099
|
};
|
|
4171
4100
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/stop-recording";
|
|
4172
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ContactId
|
|
4173
|
-
input.InitialContactId !== null && { InitialContactId: input.InitialContactId })), (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })));
|
|
4101
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.InitialContactId != null && { InitialContactId: input.InitialContactId })), (input.InstanceId != null && { InstanceId: input.InstanceId })));
|
|
4174
4102
|
return [2, new __HttpRequest({
|
|
4175
4103
|
protocol: protocol,
|
|
4176
4104
|
hostname: hostname,
|
|
@@ -4194,7 +4122,7 @@ export var serializeAws_restJson1StopContactStreamingCommand = function (input,
|
|
|
4194
4122
|
"content-type": "application/json",
|
|
4195
4123
|
};
|
|
4196
4124
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/stop-streaming";
|
|
4197
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ContactId
|
|
4125
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.StreamingId != null && { StreamingId: input.StreamingId })));
|
|
4198
4126
|
return [2, new __HttpRequest({
|
|
4199
4127
|
protocol: protocol,
|
|
4200
4128
|
hostname: hostname,
|
|
@@ -4218,8 +4146,7 @@ export var serializeAws_restJson1SuspendContactRecordingCommand = function (inpu
|
|
|
4218
4146
|
"content-type": "application/json",
|
|
4219
4147
|
};
|
|
4220
4148
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/suspend-recording";
|
|
4221
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ContactId
|
|
4222
|
-
input.InitialContactId !== null && { InitialContactId: input.InitialContactId })), (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })));
|
|
4149
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.InitialContactId != null && { InitialContactId: input.InitialContactId })), (input.InstanceId != null && { InstanceId: input.InstanceId })));
|
|
4223
4150
|
return [2, new __HttpRequest({
|
|
4224
4151
|
protocol: protocol,
|
|
4225
4152
|
hostname: hostname,
|
|
@@ -4253,7 +4180,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
4253
4180
|
else {
|
|
4254
4181
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
4255
4182
|
}
|
|
4256
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
4183
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
4257
4184
|
return [2, new __HttpRequest({
|
|
4258
4185
|
protocol: protocol,
|
|
4259
4186
|
hostname: hostname,
|
|
@@ -4278,7 +4205,7 @@ export var serializeAws_restJson1TransferContactCommand = function (input, conte
|
|
|
4278
4205
|
"content-type": "application/json",
|
|
4279
4206
|
};
|
|
4280
4207
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/transfer";
|
|
4281
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ContactFlowId
|
|
4208
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId })), (input.ContactId != null && { ContactId: input.ContactId })), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.QueueId != null && { QueueId: input.QueueId })), (input.UserId != null && { UserId: input.UserId })));
|
|
4282
4209
|
return [2, new __HttpRequest({
|
|
4283
4210
|
protocol: protocol,
|
|
4284
4211
|
hostname: hostname,
|
|
@@ -4356,8 +4283,7 @@ export var serializeAws_restJson1UpdateAgentStatusCommand = function (input, con
|
|
|
4356
4283
|
else {
|
|
4357
4284
|
throw new Error("No value provided for input HTTP label: AgentStatusId.");
|
|
4358
4285
|
}
|
|
4359
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
4360
|
-
input.ResetOrderNumber !== null && { ResetOrderNumber: input.ResetOrderNumber })), (input.State !== undefined && input.State !== null && { State: input.State })));
|
|
4286
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DisplayOrder != null && { DisplayOrder: input.DisplayOrder })), (input.Name != null && { Name: input.Name })), (input.ResetOrderNumber != null && { ResetOrderNumber: input.ResetOrderNumber })), (input.State != null && { State: input.State })));
|
|
4361
4287
|
return [2, new __HttpRequest({
|
|
4362
4288
|
protocol: protocol,
|
|
4363
4289
|
hostname: hostname,
|
|
@@ -4401,8 +4327,7 @@ export var serializeAws_restJson1UpdateContactCommand = function (input, context
|
|
|
4401
4327
|
else {
|
|
4402
4328
|
throw new Error("No value provided for input HTTP label: ContactId.");
|
|
4403
4329
|
}
|
|
4404
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description
|
|
4405
|
-
input.References !== null && { References: serializeAws_restJson1ContactReferences(input.References, context) })));
|
|
4330
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.References != null && { References: serializeAws_restJson1ContactReferences(input.References, context) })));
|
|
4406
4331
|
return [2, new __HttpRequest({
|
|
4407
4332
|
protocol: protocol,
|
|
4408
4333
|
hostname: hostname,
|
|
@@ -4426,9 +4351,7 @@ export var serializeAws_restJson1UpdateContactAttributesCommand = function (inpu
|
|
|
4426
4351
|
"content-type": "application/json",
|
|
4427
4352
|
};
|
|
4428
4353
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/attributes";
|
|
4429
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Attributes
|
|
4430
|
-
input.Attributes !== null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) })), (input.InitialContactId !== undefined &&
|
|
4431
|
-
input.InitialContactId !== null && { InitialContactId: input.InitialContactId })), (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })));
|
|
4354
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) })), (input.InitialContactId != null && { InitialContactId: input.InitialContactId })), (input.InstanceId != null && { InstanceId: input.InstanceId })));
|
|
4432
4355
|
return [2, new __HttpRequest({
|
|
4433
4356
|
protocol: protocol,
|
|
4434
4357
|
hostname: hostname,
|
|
@@ -4473,7 +4396,7 @@ export var serializeAws_restJson1UpdateContactFlowContentCommand = function (inp
|
|
|
4473
4396
|
else {
|
|
4474
4397
|
throw new Error("No value provided for input HTTP label: ContactFlowId.");
|
|
4475
4398
|
}
|
|
4476
|
-
body = JSON.stringify(__assign({}, (input.Content
|
|
4399
|
+
body = JSON.stringify(__assign({}, (input.Content != null && { Content: input.Content })));
|
|
4477
4400
|
return [2, new __HttpRequest({
|
|
4478
4401
|
protocol: protocol,
|
|
4479
4402
|
hostname: hostname,
|
|
@@ -4518,8 +4441,7 @@ export var serializeAws_restJson1UpdateContactFlowMetadataCommand = function (in
|
|
|
4518
4441
|
else {
|
|
4519
4442
|
throw new Error("No value provided for input HTTP label: ContactFlowId.");
|
|
4520
4443
|
}
|
|
4521
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ContactFlowState
|
|
4522
|
-
input.ContactFlowState !== null && { ContactFlowState: input.ContactFlowState })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
4444
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ContactFlowState != null && { ContactFlowState: input.ContactFlowState })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
4523
4445
|
return [2, new __HttpRequest({
|
|
4524
4446
|
protocol: protocol,
|
|
4525
4447
|
hostname: hostname,
|
|
@@ -4564,7 +4486,7 @@ export var serializeAws_restJson1UpdateContactFlowModuleContentCommand = functio
|
|
|
4564
4486
|
else {
|
|
4565
4487
|
throw new Error("No value provided for input HTTP label: ContactFlowModuleId.");
|
|
4566
4488
|
}
|
|
4567
|
-
body = JSON.stringify(__assign({}, (input.Content
|
|
4489
|
+
body = JSON.stringify(__assign({}, (input.Content != null && { Content: input.Content })));
|
|
4568
4490
|
return [2, new __HttpRequest({
|
|
4569
4491
|
protocol: protocol,
|
|
4570
4492
|
hostname: hostname,
|
|
@@ -4609,7 +4531,7 @@ export var serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = functi
|
|
|
4609
4531
|
else {
|
|
4610
4532
|
throw new Error("No value provided for input HTTP label: ContactFlowModuleId.");
|
|
4611
4533
|
}
|
|
4612
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description
|
|
4534
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.State != null && { State: input.State })));
|
|
4613
4535
|
return [2, new __HttpRequest({
|
|
4614
4536
|
protocol: protocol,
|
|
4615
4537
|
hostname: hostname,
|
|
@@ -4654,7 +4576,7 @@ export var serializeAws_restJson1UpdateContactFlowNameCommand = function (input,
|
|
|
4654
4576
|
else {
|
|
4655
4577
|
throw new Error("No value provided for input HTTP label: ContactFlowId.");
|
|
4656
4578
|
}
|
|
4657
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description
|
|
4579
|
+
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
4658
4580
|
return [2, new __HttpRequest({
|
|
4659
4581
|
protocol: protocol,
|
|
4660
4582
|
hostname: hostname,
|
|
@@ -4678,8 +4600,7 @@ export var serializeAws_restJson1UpdateContactScheduleCommand = function (input,
|
|
|
4678
4600
|
"content-type": "application/json",
|
|
4679
4601
|
};
|
|
4680
4602
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/schedule";
|
|
4681
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ContactId
|
|
4682
|
-
input.ScheduledTime !== null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) })));
|
|
4603
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) })));
|
|
4683
4604
|
return [2, new __HttpRequest({
|
|
4684
4605
|
protocol: protocol,
|
|
4685
4606
|
hostname: hostname,
|
|
@@ -4724,8 +4645,7 @@ export var serializeAws_restJson1UpdateHoursOfOperationCommand = function (input
|
|
|
4724
4645
|
else {
|
|
4725
4646
|
throw new Error("No value provided for input HTTP label: HoursOfOperationId.");
|
|
4726
4647
|
}
|
|
4727
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Config
|
|
4728
|
-
input.Config !== null && { Config: serializeAws_restJson1HoursOfOperationConfigList(input.Config, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.TimeZone !== undefined && input.TimeZone !== null && { TimeZone: input.TimeZone })));
|
|
4648
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Config != null && { Config: serializeAws_restJson1HoursOfOperationConfigList(input.Config, context) })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.TimeZone != null && { TimeZone: input.TimeZone })));
|
|
4729
4649
|
return [2, new __HttpRequest({
|
|
4730
4650
|
protocol: protocol,
|
|
4731
4651
|
hostname: hostname,
|
|
@@ -4770,7 +4690,7 @@ export var serializeAws_restJson1UpdateInstanceAttributeCommand = function (inpu
|
|
|
4770
4690
|
else {
|
|
4771
4691
|
throw new Error("No value provided for input HTTP label: AttributeType.");
|
|
4772
4692
|
}
|
|
4773
|
-
body = JSON.stringify(__assign({}, (input.Value
|
|
4693
|
+
body = JSON.stringify(__assign({}, (input.Value != null && { Value: input.Value })));
|
|
4774
4694
|
return [2, new __HttpRequest({
|
|
4775
4695
|
protocol: protocol,
|
|
4776
4696
|
hostname: hostname,
|
|
@@ -4816,8 +4736,7 @@ export var serializeAws_restJson1UpdateInstanceStorageConfigCommand = function (
|
|
|
4816
4736
|
throw new Error("No value provided for input HTTP label: AssociationId.");
|
|
4817
4737
|
}
|
|
4818
4738
|
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
4819
|
-
body = JSON.stringify(__assign({}, (input.StorageConfig
|
|
4820
|
-
input.StorageConfig !== null && {
|
|
4739
|
+
body = JSON.stringify(__assign({}, (input.StorageConfig != null && {
|
|
4821
4740
|
StorageConfig: serializeAws_restJson1InstanceStorageConfig(input.StorageConfig, context),
|
|
4822
4741
|
})));
|
|
4823
4742
|
return [2, new __HttpRequest({
|
|
@@ -4855,7 +4774,7 @@ export var serializeAws_restJson1UpdatePhoneNumberCommand = function (input, con
|
|
|
4855
4774
|
else {
|
|
4856
4775
|
throw new Error("No value provided for input HTTP label: PhoneNumberId.");
|
|
4857
4776
|
}
|
|
4858
|
-
body = JSON.stringify(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.TargetArn
|
|
4777
|
+
body = JSON.stringify(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.TargetArn != null && { TargetArn: input.TargetArn })));
|
|
4859
4778
|
return [2, new __HttpRequest({
|
|
4860
4779
|
protocol: protocol,
|
|
4861
4780
|
hostname: hostname,
|
|
@@ -4900,8 +4819,7 @@ export var serializeAws_restJson1UpdateQueueHoursOfOperationCommand = function (
|
|
|
4900
4819
|
else {
|
|
4901
4820
|
throw new Error("No value provided for input HTTP label: QueueId.");
|
|
4902
4821
|
}
|
|
4903
|
-
body = JSON.stringify(__assign({}, (input.HoursOfOperationId
|
|
4904
|
-
input.HoursOfOperationId !== null && { HoursOfOperationId: input.HoursOfOperationId })));
|
|
4822
|
+
body = JSON.stringify(__assign({}, (input.HoursOfOperationId != null && { HoursOfOperationId: input.HoursOfOperationId })));
|
|
4905
4823
|
return [2, new __HttpRequest({
|
|
4906
4824
|
protocol: protocol,
|
|
4907
4825
|
hostname: hostname,
|
|
@@ -4946,7 +4864,7 @@ export var serializeAws_restJson1UpdateQueueMaxContactsCommand = function (input
|
|
|
4946
4864
|
else {
|
|
4947
4865
|
throw new Error("No value provided for input HTTP label: QueueId.");
|
|
4948
4866
|
}
|
|
4949
|
-
body = JSON.stringify(__assign({}, (input.MaxContacts
|
|
4867
|
+
body = JSON.stringify(__assign({}, (input.MaxContacts != null && { MaxContacts: input.MaxContacts })));
|
|
4950
4868
|
return [2, new __HttpRequest({
|
|
4951
4869
|
protocol: protocol,
|
|
4952
4870
|
hostname: hostname,
|
|
@@ -4990,7 +4908,7 @@ export var serializeAws_restJson1UpdateQueueNameCommand = function (input, conte
|
|
|
4990
4908
|
else {
|
|
4991
4909
|
throw new Error("No value provided for input HTTP label: QueueId.");
|
|
4992
4910
|
}
|
|
4993
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description
|
|
4911
|
+
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
4994
4912
|
return [2, new __HttpRequest({
|
|
4995
4913
|
protocol: protocol,
|
|
4996
4914
|
hostname: hostname,
|
|
@@ -5035,8 +4953,7 @@ export var serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = functi
|
|
|
5035
4953
|
else {
|
|
5036
4954
|
throw new Error("No value provided for input HTTP label: QueueId.");
|
|
5037
4955
|
}
|
|
5038
|
-
body = JSON.stringify(__assign({}, (input.OutboundCallerConfig
|
|
5039
|
-
input.OutboundCallerConfig !== null && {
|
|
4956
|
+
body = JSON.stringify(__assign({}, (input.OutboundCallerConfig != null && {
|
|
5040
4957
|
OutboundCallerConfig: serializeAws_restJson1OutboundCallerConfig(input.OutboundCallerConfig, context),
|
|
5041
4958
|
})));
|
|
5042
4959
|
return [2, new __HttpRequest({
|
|
@@ -5082,7 +4999,7 @@ export var serializeAws_restJson1UpdateQueueStatusCommand = function (input, con
|
|
|
5082
4999
|
else {
|
|
5083
5000
|
throw new Error("No value provided for input HTTP label: QueueId.");
|
|
5084
5001
|
}
|
|
5085
|
-
body = JSON.stringify(__assign({}, (input.Status
|
|
5002
|
+
body = JSON.stringify(__assign({}, (input.Status != null && { Status: input.Status })));
|
|
5086
5003
|
return [2, new __HttpRequest({
|
|
5087
5004
|
protocol: protocol,
|
|
5088
5005
|
hostname: hostname,
|
|
@@ -5127,8 +5044,7 @@ export var serializeAws_restJson1UpdateQuickConnectConfigCommand = function (inp
|
|
|
5127
5044
|
else {
|
|
5128
5045
|
throw new Error("No value provided for input HTTP label: QuickConnectId.");
|
|
5129
5046
|
}
|
|
5130
|
-
body = JSON.stringify(__assign({}, (input.QuickConnectConfig
|
|
5131
|
-
input.QuickConnectConfig !== null && {
|
|
5047
|
+
body = JSON.stringify(__assign({}, (input.QuickConnectConfig != null && {
|
|
5132
5048
|
QuickConnectConfig: serializeAws_restJson1QuickConnectConfig(input.QuickConnectConfig, context),
|
|
5133
5049
|
})));
|
|
5134
5050
|
return [2, new __HttpRequest({
|
|
@@ -5175,7 +5091,7 @@ export var serializeAws_restJson1UpdateQuickConnectNameCommand = function (input
|
|
|
5175
5091
|
else {
|
|
5176
5092
|
throw new Error("No value provided for input HTTP label: QuickConnectId.");
|
|
5177
5093
|
}
|
|
5178
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description
|
|
5094
|
+
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
5179
5095
|
return [2, new __HttpRequest({
|
|
5180
5096
|
protocol: protocol,
|
|
5181
5097
|
hostname: hostname,
|
|
@@ -5220,8 +5136,7 @@ export var serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = functi
|
|
|
5220
5136
|
else {
|
|
5221
5137
|
throw new Error("No value provided for input HTTP label: RoutingProfileId.");
|
|
5222
5138
|
}
|
|
5223
|
-
body = JSON.stringify(__assign({}, (input.MediaConcurrencies
|
|
5224
|
-
input.MediaConcurrencies !== null && {
|
|
5139
|
+
body = JSON.stringify(__assign({}, (input.MediaConcurrencies != null && {
|
|
5225
5140
|
MediaConcurrencies: serializeAws_restJson1MediaConcurrencies(input.MediaConcurrencies, context),
|
|
5226
5141
|
})));
|
|
5227
5142
|
return [2, new __HttpRequest({
|
|
@@ -5268,8 +5183,7 @@ export var serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand
|
|
|
5268
5183
|
else {
|
|
5269
5184
|
throw new Error("No value provided for input HTTP label: RoutingProfileId.");
|
|
5270
5185
|
}
|
|
5271
|
-
body = JSON.stringify(__assign({}, (input.DefaultOutboundQueueId
|
|
5272
|
-
input.DefaultOutboundQueueId !== null && { DefaultOutboundQueueId: input.DefaultOutboundQueueId })));
|
|
5186
|
+
body = JSON.stringify(__assign({}, (input.DefaultOutboundQueueId != null && { DefaultOutboundQueueId: input.DefaultOutboundQueueId })));
|
|
5273
5187
|
return [2, new __HttpRequest({
|
|
5274
5188
|
protocol: protocol,
|
|
5275
5189
|
hostname: hostname,
|
|
@@ -5314,7 +5228,7 @@ export var serializeAws_restJson1UpdateRoutingProfileNameCommand = function (inp
|
|
|
5314
5228
|
else {
|
|
5315
5229
|
throw new Error("No value provided for input HTTP label: RoutingProfileId.");
|
|
5316
5230
|
}
|
|
5317
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description
|
|
5231
|
+
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
5318
5232
|
return [2, new __HttpRequest({
|
|
5319
5233
|
protocol: protocol,
|
|
5320
5234
|
hostname: hostname,
|
|
@@ -5359,8 +5273,7 @@ export var serializeAws_restJson1UpdateRoutingProfileQueuesCommand = function (i
|
|
|
5359
5273
|
else {
|
|
5360
5274
|
throw new Error("No value provided for input HTTP label: RoutingProfileId.");
|
|
5361
5275
|
}
|
|
5362
|
-
body = JSON.stringify(__assign({}, (input.QueueConfigs
|
|
5363
|
-
input.QueueConfigs !== null && {
|
|
5276
|
+
body = JSON.stringify(__assign({}, (input.QueueConfigs != null && {
|
|
5364
5277
|
QueueConfigs: serializeAws_restJson1RoutingProfileQueueConfigList(input.QueueConfigs, context),
|
|
5365
5278
|
})));
|
|
5366
5279
|
return [2, new __HttpRequest({
|
|
@@ -5407,8 +5320,9 @@ export var serializeAws_restJson1UpdateSecurityProfileCommand = function (input,
|
|
|
5407
5320
|
else {
|
|
5408
5321
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
5409
5322
|
}
|
|
5410
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description
|
|
5411
|
-
|
|
5323
|
+
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Permissions != null && {
|
|
5324
|
+
Permissions: serializeAws_restJson1PermissionsList(input.Permissions, context),
|
|
5325
|
+
})));
|
|
5412
5326
|
return [2, new __HttpRequest({
|
|
5413
5327
|
protocol: protocol,
|
|
5414
5328
|
hostname: hostname,
|
|
@@ -5453,12 +5367,9 @@ export var serializeAws_restJson1UpdateTaskTemplateCommand = function (input, co
|
|
|
5453
5367
|
else {
|
|
5454
5368
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
5455
5369
|
}
|
|
5456
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Constraints
|
|
5457
|
-
input.Constraints !== null && {
|
|
5370
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Constraints != null && {
|
|
5458
5371
|
Constraints: serializeAws_restJson1TaskTemplateConstraints(input.Constraints, context),
|
|
5459
|
-
})), (input.ContactFlowId
|
|
5460
|
-
input.Defaults !== null && { Defaults: serializeAws_restJson1TaskTemplateDefaults(input.Defaults, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Fields !== undefined &&
|
|
5461
|
-
input.Fields !== null && { Fields: serializeAws_restJson1TaskTemplateFields(input.Fields, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Status !== undefined && input.Status !== null && { Status: input.Status })));
|
|
5372
|
+
})), (input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId })), (input.Defaults != null && { Defaults: serializeAws_restJson1TaskTemplateDefaults(input.Defaults, context) })), (input.Description != null && { Description: input.Description })), (input.Fields != null && { Fields: serializeAws_restJson1TaskTemplateFields(input.Fields, context) })), (input.Name != null && { Name: input.Name })), (input.Status != null && { Status: input.Status })));
|
|
5462
5373
|
return [2, new __HttpRequest({
|
|
5463
5374
|
protocol: protocol,
|
|
5464
5375
|
hostname: hostname,
|
|
@@ -5502,8 +5413,7 @@ export var serializeAws_restJson1UpdateUserHierarchyCommand = function (input, c
|
|
|
5502
5413
|
else {
|
|
5503
5414
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
5504
5415
|
}
|
|
5505
|
-
body = JSON.stringify(__assign({}, (input.HierarchyGroupId
|
|
5506
|
-
input.HierarchyGroupId !== null && { HierarchyGroupId: input.HierarchyGroupId })));
|
|
5416
|
+
body = JSON.stringify(__assign({}, (input.HierarchyGroupId != null && { HierarchyGroupId: input.HierarchyGroupId })));
|
|
5507
5417
|
return [2, new __HttpRequest({
|
|
5508
5418
|
protocol: protocol,
|
|
5509
5419
|
hostname: hostname,
|
|
@@ -5548,7 +5458,7 @@ export var serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = function
|
|
|
5548
5458
|
else {
|
|
5549
5459
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
5550
5460
|
}
|
|
5551
|
-
body = JSON.stringify(__assign({}, (input.Name
|
|
5461
|
+
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
5552
5462
|
return [2, new __HttpRequest({
|
|
5553
5463
|
protocol: protocol,
|
|
5554
5464
|
hostname: hostname,
|
|
@@ -5582,8 +5492,7 @@ export var serializeAws_restJson1UpdateUserHierarchyStructureCommand = function
|
|
|
5582
5492
|
else {
|
|
5583
5493
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
5584
5494
|
}
|
|
5585
|
-
body = JSON.stringify(__assign({}, (input.HierarchyStructure
|
|
5586
|
-
input.HierarchyStructure !== null && {
|
|
5495
|
+
body = JSON.stringify(__assign({}, (input.HierarchyStructure != null && {
|
|
5587
5496
|
HierarchyStructure: serializeAws_restJson1HierarchyStructureUpdate(input.HierarchyStructure, context),
|
|
5588
5497
|
})));
|
|
5589
5498
|
return [2, new __HttpRequest({
|
|
@@ -5630,8 +5539,7 @@ export var serializeAws_restJson1UpdateUserIdentityInfoCommand = function (input
|
|
|
5630
5539
|
else {
|
|
5631
5540
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
5632
5541
|
}
|
|
5633
|
-
body = JSON.stringify(__assign({}, (input.IdentityInfo
|
|
5634
|
-
input.IdentityInfo !== null && {
|
|
5542
|
+
body = JSON.stringify(__assign({}, (input.IdentityInfo != null && {
|
|
5635
5543
|
IdentityInfo: serializeAws_restJson1UserIdentityInfo(input.IdentityInfo, context),
|
|
5636
5544
|
})));
|
|
5637
5545
|
return [2, new __HttpRequest({
|
|
@@ -5677,8 +5585,9 @@ export var serializeAws_restJson1UpdateUserPhoneConfigCommand = function (input,
|
|
|
5677
5585
|
else {
|
|
5678
5586
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
5679
5587
|
}
|
|
5680
|
-
body = JSON.stringify(__assign({}, (input.PhoneConfig
|
|
5681
|
-
|
|
5588
|
+
body = JSON.stringify(__assign({}, (input.PhoneConfig != null && {
|
|
5589
|
+
PhoneConfig: serializeAws_restJson1UserPhoneConfig(input.PhoneConfig, context),
|
|
5590
|
+
})));
|
|
5682
5591
|
return [2, new __HttpRequest({
|
|
5683
5592
|
protocol: protocol,
|
|
5684
5593
|
hostname: hostname,
|
|
@@ -5723,8 +5632,7 @@ export var serializeAws_restJson1UpdateUserRoutingProfileCommand = function (inp
|
|
|
5723
5632
|
else {
|
|
5724
5633
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
5725
5634
|
}
|
|
5726
|
-
body = JSON.stringify(__assign({}, (input.RoutingProfileId
|
|
5727
|
-
input.RoutingProfileId !== null && { RoutingProfileId: input.RoutingProfileId })));
|
|
5635
|
+
body = JSON.stringify(__assign({}, (input.RoutingProfileId != null && { RoutingProfileId: input.RoutingProfileId })));
|
|
5728
5636
|
return [2, new __HttpRequest({
|
|
5729
5637
|
protocol: protocol,
|
|
5730
5638
|
hostname: hostname,
|
|
@@ -5769,8 +5677,7 @@ export var serializeAws_restJson1UpdateUserSecurityProfilesCommand = function (i
|
|
|
5769
5677
|
else {
|
|
5770
5678
|
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
5771
5679
|
}
|
|
5772
|
-
body = JSON.stringify(__assign({}, (input.SecurityProfileIds
|
|
5773
|
-
input.SecurityProfileIds !== null && {
|
|
5680
|
+
body = JSON.stringify(__assign({}, (input.SecurityProfileIds != null && {
|
|
5774
5681
|
SecurityProfileIds: serializeAws_restJson1SecurityProfileIds(input.SecurityProfileIds, context),
|
|
5775
5682
|
})));
|
|
5776
5683
|
return [2, new __HttpRequest({
|
|
@@ -17168,9 +17075,7 @@ var deserializeAws_restJson1UserNotFoundExceptionResponse = function (parsedOutp
|
|
|
17168
17075
|
});
|
|
17169
17076
|
}); };
|
|
17170
17077
|
var serializeAws_restJson1AnswerMachineDetectionConfig = function (input, context) {
|
|
17171
|
-
return __assign(__assign({}, (input.AwaitAnswerMachinePrompt
|
|
17172
|
-
input.AwaitAnswerMachinePrompt !== null && { AwaitAnswerMachinePrompt: input.AwaitAnswerMachinePrompt })), (input.EnableAnswerMachineDetection !== undefined &&
|
|
17173
|
-
input.EnableAnswerMachineDetection !== null && {
|
|
17078
|
+
return __assign(__assign({}, (input.AwaitAnswerMachinePrompt != null && { AwaitAnswerMachinePrompt: input.AwaitAnswerMachinePrompt })), (input.EnableAnswerMachineDetection != null && {
|
|
17174
17079
|
EnableAnswerMachineDetection: input.EnableAnswerMachineDetection,
|
|
17175
17080
|
}));
|
|
17176
17081
|
};
|
|
@@ -17195,15 +17100,13 @@ var serializeAws_restJson1Channels = function (input, context) {
|
|
|
17195
17100
|
});
|
|
17196
17101
|
};
|
|
17197
17102
|
var serializeAws_restJson1ChatMessage = function (input, context) {
|
|
17198
|
-
return __assign(__assign({}, (input.Content
|
|
17103
|
+
return __assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.ContentType != null && { ContentType: input.ContentType }));
|
|
17199
17104
|
};
|
|
17200
17105
|
var serializeAws_restJson1ChatStreamingConfiguration = function (input, context) {
|
|
17201
|
-
return __assign({}, (input.StreamingEndpointArn
|
|
17202
|
-
input.StreamingEndpointArn !== null && { StreamingEndpointArn: input.StreamingEndpointArn }));
|
|
17106
|
+
return __assign({}, (input.StreamingEndpointArn != null && { StreamingEndpointArn: input.StreamingEndpointArn }));
|
|
17203
17107
|
};
|
|
17204
17108
|
var serializeAws_restJson1ContactFilter = function (input, context) {
|
|
17205
|
-
return __assign({}, (input.ContactStates
|
|
17206
|
-
input.ContactStates !== null && {
|
|
17109
|
+
return __assign({}, (input.ContactStates != null && {
|
|
17207
17110
|
ContactStates: serializeAws_restJson1ContactStates(input.ContactStates, context),
|
|
17208
17111
|
}));
|
|
17209
17112
|
};
|
|
@@ -17228,17 +17131,16 @@ var serializeAws_restJson1ContactStates = function (input, context) {
|
|
|
17228
17131
|
});
|
|
17229
17132
|
};
|
|
17230
17133
|
var serializeAws_restJson1ControlPlaneTagFilter = function (input, context) {
|
|
17231
|
-
return __assign(__assign(__assign({}, (input.AndConditions
|
|
17232
|
-
input.AndConditions !== null && {
|
|
17134
|
+
return __assign(__assign(__assign({}, (input.AndConditions != null && {
|
|
17233
17135
|
AndConditions: serializeAws_restJson1TagAndConditionList(input.AndConditions, context),
|
|
17234
|
-
})), (input.OrConditions
|
|
17235
|
-
input.OrConditions !== null && {
|
|
17136
|
+
})), (input.OrConditions != null && {
|
|
17236
17137
|
OrConditions: serializeAws_restJson1TagOrConditionList(input.OrConditions, context),
|
|
17237
|
-
})), (input.TagCondition
|
|
17238
|
-
|
|
17138
|
+
})), (input.TagCondition != null && {
|
|
17139
|
+
TagCondition: serializeAws_restJson1TagCondition(input.TagCondition, context),
|
|
17140
|
+
}));
|
|
17239
17141
|
};
|
|
17240
17142
|
var serializeAws_restJson1CurrentMetric = function (input, context) {
|
|
17241
|
-
return __assign(__assign({}, (input.Name
|
|
17143
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Unit != null && { Unit: input.Unit }));
|
|
17242
17144
|
};
|
|
17243
17145
|
var serializeAws_restJson1CurrentMetrics = function (input, context) {
|
|
17244
17146
|
return input
|
|
@@ -17251,13 +17153,10 @@ var serializeAws_restJson1CurrentMetrics = function (input, context) {
|
|
|
17251
17153
|
});
|
|
17252
17154
|
};
|
|
17253
17155
|
var serializeAws_restJson1EncryptionConfig = function (input, context) {
|
|
17254
|
-
return __assign(__assign({}, (input.EncryptionType
|
|
17255
|
-
input.EncryptionType !== null && { EncryptionType: input.EncryptionType })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId }));
|
|
17156
|
+
return __assign(__assign({}, (input.EncryptionType != null && { EncryptionType: input.EncryptionType })), (input.KeyId != null && { KeyId: input.KeyId }));
|
|
17256
17157
|
};
|
|
17257
17158
|
var serializeAws_restJson1Filters = function (input, context) {
|
|
17258
|
-
return __assign(__assign({}, (input.Channels
|
|
17259
|
-
input.Channels !== null && { Channels: serializeAws_restJson1Channels(input.Channels, context) })), (input.Queues !== undefined &&
|
|
17260
|
-
input.Queues !== null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }));
|
|
17159
|
+
return __assign(__assign({}, (input.Channels != null && { Channels: serializeAws_restJson1Channels(input.Channels, context) })), (input.Queues != null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }));
|
|
17261
17160
|
};
|
|
17262
17161
|
var serializeAws_restJson1Groupings = function (input, context) {
|
|
17263
17162
|
return input
|
|
@@ -17270,25 +17169,18 @@ var serializeAws_restJson1Groupings = function (input, context) {
|
|
|
17270
17169
|
});
|
|
17271
17170
|
};
|
|
17272
17171
|
var serializeAws_restJson1HierarchyGroupCondition = function (input, context) {
|
|
17273
|
-
return __assign(__assign({}, (input.HierarchyGroupMatchType
|
|
17274
|
-
input.HierarchyGroupMatchType !== null && { HierarchyGroupMatchType: input.HierarchyGroupMatchType })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
|
|
17172
|
+
return __assign(__assign({}, (input.HierarchyGroupMatchType != null && { HierarchyGroupMatchType: input.HierarchyGroupMatchType })), (input.Value != null && { Value: input.Value }));
|
|
17275
17173
|
};
|
|
17276
17174
|
var serializeAws_restJson1HierarchyLevelUpdate = function (input, context) {
|
|
17277
|
-
return __assign({}, (input.Name
|
|
17175
|
+
return __assign({}, (input.Name != null && { Name: input.Name }));
|
|
17278
17176
|
};
|
|
17279
17177
|
var serializeAws_restJson1HierarchyStructureUpdate = function (input, context) {
|
|
17280
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.LevelFive
|
|
17281
|
-
input.LevelFive !== null && { LevelFive: serializeAws_restJson1HierarchyLevelUpdate(input.LevelFive, context) })), (input.LevelFour !== undefined &&
|
|
17282
|
-
input.LevelFour !== null && { LevelFour: serializeAws_restJson1HierarchyLevelUpdate(input.LevelFour, context) })), (input.LevelOne !== undefined &&
|
|
17283
|
-
input.LevelOne !== null && { LevelOne: serializeAws_restJson1HierarchyLevelUpdate(input.LevelOne, context) })), (input.LevelThree !== undefined &&
|
|
17284
|
-
input.LevelThree !== null && {
|
|
17178
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.LevelFive != null && { LevelFive: serializeAws_restJson1HierarchyLevelUpdate(input.LevelFive, context) })), (input.LevelFour != null && { LevelFour: serializeAws_restJson1HierarchyLevelUpdate(input.LevelFour, context) })), (input.LevelOne != null && { LevelOne: serializeAws_restJson1HierarchyLevelUpdate(input.LevelOne, context) })), (input.LevelThree != null && {
|
|
17285
17179
|
LevelThree: serializeAws_restJson1HierarchyLevelUpdate(input.LevelThree, context),
|
|
17286
|
-
})), (input.LevelTwo
|
|
17287
|
-
input.LevelTwo !== null && { LevelTwo: serializeAws_restJson1HierarchyLevelUpdate(input.LevelTwo, context) }));
|
|
17180
|
+
})), (input.LevelTwo != null && { LevelTwo: serializeAws_restJson1HierarchyLevelUpdate(input.LevelTwo, context) }));
|
|
17288
17181
|
};
|
|
17289
17182
|
var serializeAws_restJson1HistoricalMetric = function (input, context) {
|
|
17290
|
-
return __assign(__assign(__assign(__assign({}, (input.Name
|
|
17291
|
-
input.Threshold !== null && { Threshold: serializeAws_restJson1Threshold(input.Threshold, context) })), (input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }));
|
|
17183
|
+
return __assign(__assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Statistic != null && { Statistic: input.Statistic })), (input.Threshold != null && { Threshold: serializeAws_restJson1Threshold(input.Threshold, context) })), (input.Unit != null && { Unit: input.Unit }));
|
|
17292
17184
|
};
|
|
17293
17185
|
var serializeAws_restJson1HistoricalMetrics = function (input, context) {
|
|
17294
17186
|
return input
|
|
@@ -17301,9 +17193,7 @@ var serializeAws_restJson1HistoricalMetrics = function (input, context) {
|
|
|
17301
17193
|
});
|
|
17302
17194
|
};
|
|
17303
17195
|
var serializeAws_restJson1HoursOfOperationConfig = function (input, context) {
|
|
17304
|
-
return __assign(__assign(__assign({}, (input.Day
|
|
17305
|
-
input.EndTime !== null && { EndTime: serializeAws_restJson1HoursOfOperationTimeSlice(input.EndTime, context) })), (input.StartTime !== undefined &&
|
|
17306
|
-
input.StartTime !== null && {
|
|
17196
|
+
return __assign(__assign(__assign({}, (input.Day != null && { Day: input.Day })), (input.EndTime != null && { EndTime: serializeAws_restJson1HoursOfOperationTimeSlice(input.EndTime, context) })), (input.StartTime != null && {
|
|
17307
17197
|
StartTime: serializeAws_restJson1HoursOfOperationTimeSlice(input.StartTime, context),
|
|
17308
17198
|
}));
|
|
17309
17199
|
};
|
|
@@ -17318,24 +17208,19 @@ var serializeAws_restJson1HoursOfOperationConfigList = function (input, context)
|
|
|
17318
17208
|
});
|
|
17319
17209
|
};
|
|
17320
17210
|
var serializeAws_restJson1HoursOfOperationTimeSlice = function (input, context) {
|
|
17321
|
-
return __assign(__assign({}, (input.Hours
|
|
17211
|
+
return __assign(__assign({}, (input.Hours != null && { Hours: input.Hours })), (input.Minutes != null && { Minutes: input.Minutes }));
|
|
17322
17212
|
};
|
|
17323
17213
|
var serializeAws_restJson1InstanceStorageConfig = function (input, context) {
|
|
17324
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AssociationId
|
|
17325
|
-
input.KinesisFirehoseConfig !== null && {
|
|
17214
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AssociationId != null && { AssociationId: input.AssociationId })), (input.KinesisFirehoseConfig != null && {
|
|
17326
17215
|
KinesisFirehoseConfig: serializeAws_restJson1KinesisFirehoseConfig(input.KinesisFirehoseConfig, context),
|
|
17327
|
-
})), (input.KinesisStreamConfig
|
|
17328
|
-
input.KinesisStreamConfig !== null && {
|
|
17216
|
+
})), (input.KinesisStreamConfig != null && {
|
|
17329
17217
|
KinesisStreamConfig: serializeAws_restJson1KinesisStreamConfig(input.KinesisStreamConfig, context),
|
|
17330
|
-
})), (input.KinesisVideoStreamConfig
|
|
17331
|
-
input.KinesisVideoStreamConfig !== null && {
|
|
17218
|
+
})), (input.KinesisVideoStreamConfig != null && {
|
|
17332
17219
|
KinesisVideoStreamConfig: serializeAws_restJson1KinesisVideoStreamConfig(input.KinesisVideoStreamConfig, context),
|
|
17333
|
-
})), (input.S3Config
|
|
17334
|
-
input.S3Config !== null && { S3Config: serializeAws_restJson1S3Config(input.S3Config, context) })), (input.StorageType !== undefined && input.StorageType !== null && { StorageType: input.StorageType }));
|
|
17220
|
+
})), (input.S3Config != null && { S3Config: serializeAws_restJson1S3Config(input.S3Config, context) })), (input.StorageType != null && { StorageType: input.StorageType }));
|
|
17335
17221
|
};
|
|
17336
17222
|
var serializeAws_restJson1InvisibleFieldInfo = function (input, context) {
|
|
17337
|
-
return __assign({}, (input.Id
|
|
17338
|
-
input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }));
|
|
17223
|
+
return __assign({}, (input.Id != null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }));
|
|
17339
17224
|
};
|
|
17340
17225
|
var serializeAws_restJson1InvisibleTaskTemplateFields = function (input, context) {
|
|
17341
17226
|
return input
|
|
@@ -17348,23 +17233,21 @@ var serializeAws_restJson1InvisibleTaskTemplateFields = function (input, context
|
|
|
17348
17233
|
});
|
|
17349
17234
|
};
|
|
17350
17235
|
var serializeAws_restJson1KinesisFirehoseConfig = function (input, context) {
|
|
17351
|
-
return __assign({}, (input.FirehoseArn
|
|
17236
|
+
return __assign({}, (input.FirehoseArn != null && { FirehoseArn: input.FirehoseArn }));
|
|
17352
17237
|
};
|
|
17353
17238
|
var serializeAws_restJson1KinesisStreamConfig = function (input, context) {
|
|
17354
|
-
return __assign({}, (input.StreamArn
|
|
17239
|
+
return __assign({}, (input.StreamArn != null && { StreamArn: input.StreamArn }));
|
|
17355
17240
|
};
|
|
17356
17241
|
var serializeAws_restJson1KinesisVideoStreamConfig = function (input, context) {
|
|
17357
|
-
return __assign(__assign(__assign({}, (input.EncryptionConfig
|
|
17358
|
-
input.EncryptionConfig !== null && {
|
|
17242
|
+
return __assign(__assign(__assign({}, (input.EncryptionConfig != null && {
|
|
17359
17243
|
EncryptionConfig: serializeAws_restJson1EncryptionConfig(input.EncryptionConfig, context),
|
|
17360
|
-
})), (input.Prefix
|
|
17361
|
-
input.RetentionPeriodHours !== null && { RetentionPeriodHours: input.RetentionPeriodHours }));
|
|
17244
|
+
})), (input.Prefix != null && { Prefix: input.Prefix })), (input.RetentionPeriodHours != null && { RetentionPeriodHours: input.RetentionPeriodHours }));
|
|
17362
17245
|
};
|
|
17363
17246
|
var serializeAws_restJson1LexBot = function (input, context) {
|
|
17364
|
-
return __assign(__assign({}, (input.LexRegion
|
|
17247
|
+
return __assign(__assign({}, (input.LexRegion != null && { LexRegion: input.LexRegion })), (input.Name != null && { Name: input.Name }));
|
|
17365
17248
|
};
|
|
17366
17249
|
var serializeAws_restJson1LexV2Bot = function (input, context) {
|
|
17367
|
-
return __assign({}, (input.AliasArn
|
|
17250
|
+
return __assign({}, (input.AliasArn != null && { AliasArn: input.AliasArn }));
|
|
17368
17251
|
};
|
|
17369
17252
|
var serializeAws_restJson1MediaConcurrencies = function (input, context) {
|
|
17370
17253
|
return input
|
|
@@ -17377,16 +17260,13 @@ var serializeAws_restJson1MediaConcurrencies = function (input, context) {
|
|
|
17377
17260
|
});
|
|
17378
17261
|
};
|
|
17379
17262
|
var serializeAws_restJson1MediaConcurrency = function (input, context) {
|
|
17380
|
-
return __assign(__assign({}, (input.Channel
|
|
17263
|
+
return __assign(__assign({}, (input.Channel != null && { Channel: input.Channel })), (input.Concurrency != null && { Concurrency: input.Concurrency }));
|
|
17381
17264
|
};
|
|
17382
17265
|
var serializeAws_restJson1OutboundCallerConfig = function (input, context) {
|
|
17383
|
-
return __assign(__assign(__assign({}, (input.OutboundCallerIdName
|
|
17384
|
-
input.OutboundCallerIdName !== null && { OutboundCallerIdName: input.OutboundCallerIdName })), (input.OutboundCallerIdNumberId !== undefined &&
|
|
17385
|
-
input.OutboundCallerIdNumberId !== null && { OutboundCallerIdNumberId: input.OutboundCallerIdNumberId })), (input.OutboundFlowId !== undefined &&
|
|
17386
|
-
input.OutboundFlowId !== null && { OutboundFlowId: input.OutboundFlowId }));
|
|
17266
|
+
return __assign(__assign(__assign({}, (input.OutboundCallerIdName != null && { OutboundCallerIdName: input.OutboundCallerIdName })), (input.OutboundCallerIdNumberId != null && { OutboundCallerIdNumberId: input.OutboundCallerIdNumberId })), (input.OutboundFlowId != null && { OutboundFlowId: input.OutboundFlowId }));
|
|
17387
17267
|
};
|
|
17388
17268
|
var serializeAws_restJson1ParticipantDetails = function (input, context) {
|
|
17389
|
-
return __assign({}, (input.DisplayName
|
|
17269
|
+
return __assign({}, (input.DisplayName != null && { DisplayName: input.DisplayName }));
|
|
17390
17270
|
};
|
|
17391
17271
|
var serializeAws_restJson1PermissionsList = function (input, context) {
|
|
17392
17272
|
return input
|
|
@@ -17409,7 +17289,7 @@ var serializeAws_restJson1PhoneNumberCountryCodes = function (input, context) {
|
|
|
17409
17289
|
});
|
|
17410
17290
|
};
|
|
17411
17291
|
var serializeAws_restJson1PhoneNumberQuickConnectConfig = function (input, context) {
|
|
17412
|
-
return __assign({}, (input.PhoneNumber
|
|
17292
|
+
return __assign({}, (input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }));
|
|
17413
17293
|
};
|
|
17414
17294
|
var serializeAws_restJson1PhoneNumberTypes = function (input, context) {
|
|
17415
17295
|
return input
|
|
@@ -17422,7 +17302,7 @@ var serializeAws_restJson1PhoneNumberTypes = function (input, context) {
|
|
|
17422
17302
|
});
|
|
17423
17303
|
};
|
|
17424
17304
|
var serializeAws_restJson1QueueQuickConnectConfig = function (input, context) {
|
|
17425
|
-
return __assign(__assign({}, (input.ContactFlowId
|
|
17305
|
+
return __assign(__assign({}, (input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId })), (input.QueueId != null && { QueueId: input.QueueId }));
|
|
17426
17306
|
};
|
|
17427
17307
|
var serializeAws_restJson1Queues = function (input, context) {
|
|
17428
17308
|
return input
|
|
@@ -17435,15 +17315,11 @@ var serializeAws_restJson1Queues = function (input, context) {
|
|
|
17435
17315
|
});
|
|
17436
17316
|
};
|
|
17437
17317
|
var serializeAws_restJson1QuickConnectConfig = function (input, context) {
|
|
17438
|
-
return __assign(__assign(__assign(__assign({}, (input.PhoneConfig
|
|
17439
|
-
input.PhoneConfig !== null && {
|
|
17318
|
+
return __assign(__assign(__assign(__assign({}, (input.PhoneConfig != null && {
|
|
17440
17319
|
PhoneConfig: serializeAws_restJson1PhoneNumberQuickConnectConfig(input.PhoneConfig, context),
|
|
17441
|
-
})), (input.QueueConfig
|
|
17442
|
-
input.QueueConfig !== null && {
|
|
17320
|
+
})), (input.QueueConfig != null && {
|
|
17443
17321
|
QueueConfig: serializeAws_restJson1QueueQuickConnectConfig(input.QueueConfig, context),
|
|
17444
|
-
})), (input.QuickConnectType
|
|
17445
|
-
input.QuickConnectType !== null && { QuickConnectType: input.QuickConnectType })), (input.UserConfig !== undefined &&
|
|
17446
|
-
input.UserConfig !== null && {
|
|
17322
|
+
})), (input.QuickConnectType != null && { QuickConnectType: input.QuickConnectType })), (input.UserConfig != null && {
|
|
17447
17323
|
UserConfig: serializeAws_restJson1UserQuickConnectConfig(input.UserConfig, context),
|
|
17448
17324
|
}));
|
|
17449
17325
|
};
|
|
@@ -17458,8 +17334,7 @@ var serializeAws_restJson1QuickConnectsList = function (input, context) {
|
|
|
17458
17334
|
});
|
|
17459
17335
|
};
|
|
17460
17336
|
var serializeAws_restJson1ReadOnlyFieldInfo = function (input, context) {
|
|
17461
|
-
return __assign({}, (input.Id
|
|
17462
|
-
input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }));
|
|
17337
|
+
return __assign({}, (input.Id != null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }));
|
|
17463
17338
|
};
|
|
17464
17339
|
var serializeAws_restJson1ReadOnlyTaskTemplateFields = function (input, context) {
|
|
17465
17340
|
return input
|
|
@@ -17472,11 +17347,10 @@ var serializeAws_restJson1ReadOnlyTaskTemplateFields = function (input, context)
|
|
|
17472
17347
|
});
|
|
17473
17348
|
};
|
|
17474
17349
|
var serializeAws_restJson1Reference = function (input, context) {
|
|
17475
|
-
return __assign(__assign({}, (input.Type
|
|
17350
|
+
return __assign(__assign({}, (input.Type != null && { Type: input.Type })), (input.Value != null && { Value: input.Value }));
|
|
17476
17351
|
};
|
|
17477
17352
|
var serializeAws_restJson1RequiredFieldInfo = function (input, context) {
|
|
17478
|
-
return __assign({}, (input.Id
|
|
17479
|
-
input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }));
|
|
17353
|
+
return __assign({}, (input.Id != null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }));
|
|
17480
17354
|
};
|
|
17481
17355
|
var serializeAws_restJson1RequiredTaskTemplateFields = function (input, context) {
|
|
17482
17356
|
return input
|
|
@@ -17489,8 +17363,7 @@ var serializeAws_restJson1RequiredTaskTemplateFields = function (input, context)
|
|
|
17489
17363
|
});
|
|
17490
17364
|
};
|
|
17491
17365
|
var serializeAws_restJson1RoutingProfileQueueConfig = function (input, context) {
|
|
17492
|
-
return __assign(__assign(__assign({}, (input.Delay
|
|
17493
|
-
input.QueueReference !== null && {
|
|
17366
|
+
return __assign(__assign(__assign({}, (input.Delay != null && { Delay: input.Delay })), (input.Priority != null && { Priority: input.Priority })), (input.QueueReference != null && {
|
|
17494
17367
|
QueueReference: serializeAws_restJson1RoutingProfileQueueReference(input.QueueReference, context),
|
|
17495
17368
|
}));
|
|
17496
17369
|
};
|
|
@@ -17505,7 +17378,7 @@ var serializeAws_restJson1RoutingProfileQueueConfigList = function (input, conte
|
|
|
17505
17378
|
});
|
|
17506
17379
|
};
|
|
17507
17380
|
var serializeAws_restJson1RoutingProfileQueueReference = function (input, context) {
|
|
17508
|
-
return __assign(__assign({}, (input.Channel
|
|
17381
|
+
return __assign(__assign({}, (input.Channel != null && { Channel: input.Channel })), (input.QueueId != null && { QueueId: input.QueueId }));
|
|
17509
17382
|
};
|
|
17510
17383
|
var serializeAws_restJson1RoutingProfileQueueReferenceList = function (input, context) {
|
|
17511
17384
|
return input
|
|
@@ -17518,8 +17391,7 @@ var serializeAws_restJson1RoutingProfileQueueReferenceList = function (input, co
|
|
|
17518
17391
|
});
|
|
17519
17392
|
};
|
|
17520
17393
|
var serializeAws_restJson1S3Config = function (input, context) {
|
|
17521
|
-
return __assign(__assign(__assign({}, (input.BucketName
|
|
17522
|
-
input.EncryptionConfig !== null && {
|
|
17394
|
+
return __assign(__assign(__assign({}, (input.BucketName != null && { BucketName: input.BucketName })), (input.BucketPrefix != null && { BucketPrefix: input.BucketPrefix })), (input.EncryptionConfig != null && {
|
|
17523
17395
|
EncryptionConfig: serializeAws_restJson1EncryptionConfig(input.EncryptionConfig, context),
|
|
17524
17396
|
}));
|
|
17525
17397
|
};
|
|
@@ -17544,8 +17416,7 @@ var serializeAws_restJson1SingleSelectOptions = function (input, context) {
|
|
|
17544
17416
|
});
|
|
17545
17417
|
};
|
|
17546
17418
|
var serializeAws_restJson1StringCondition = function (input, context) {
|
|
17547
|
-
return __assign(__assign(__assign({}, (input.ComparisonType
|
|
17548
|
-
input.ComparisonType !== null && { ComparisonType: input.ComparisonType })), (input.FieldName !== undefined && input.FieldName !== null && { FieldName: input.FieldName })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
|
|
17419
|
+
return __assign(__assign(__assign({}, (input.ComparisonType != null && { ComparisonType: input.ComparisonType })), (input.FieldName != null && { FieldName: input.FieldName })), (input.Value != null && { Value: input.Value }));
|
|
17549
17420
|
};
|
|
17550
17421
|
var serializeAws_restJson1SupportedMessagingContentTypes = function (input, context) {
|
|
17551
17422
|
return input
|
|
@@ -17568,7 +17439,7 @@ var serializeAws_restJson1TagAndConditionList = function (input, context) {
|
|
|
17568
17439
|
});
|
|
17569
17440
|
};
|
|
17570
17441
|
var serializeAws_restJson1TagCondition = function (input, context) {
|
|
17571
|
-
return __assign(__assign({}, (input.TagKey
|
|
17442
|
+
return __assign(__assign({}, (input.TagKey != null && { TagKey: input.TagKey })), (input.TagValue != null && { TagValue: input.TagValue }));
|
|
17572
17443
|
};
|
|
17573
17444
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
17574
17445
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -17591,20 +17462,16 @@ var serializeAws_restJson1TagOrConditionList = function (input, context) {
|
|
|
17591
17462
|
});
|
|
17592
17463
|
};
|
|
17593
17464
|
var serializeAws_restJson1TaskTemplateConstraints = function (input, context) {
|
|
17594
|
-
return __assign(__assign(__assign({}, (input.InvisibleFields
|
|
17595
|
-
input.InvisibleFields !== null && {
|
|
17465
|
+
return __assign(__assign(__assign({}, (input.InvisibleFields != null && {
|
|
17596
17466
|
InvisibleFields: serializeAws_restJson1InvisibleTaskTemplateFields(input.InvisibleFields, context),
|
|
17597
|
-
})), (input.ReadOnlyFields
|
|
17598
|
-
input.ReadOnlyFields !== null && {
|
|
17467
|
+
})), (input.ReadOnlyFields != null && {
|
|
17599
17468
|
ReadOnlyFields: serializeAws_restJson1ReadOnlyTaskTemplateFields(input.ReadOnlyFields, context),
|
|
17600
|
-
})), (input.RequiredFields
|
|
17601
|
-
input.RequiredFields !== null && {
|
|
17469
|
+
})), (input.RequiredFields != null && {
|
|
17602
17470
|
RequiredFields: serializeAws_restJson1RequiredTaskTemplateFields(input.RequiredFields, context),
|
|
17603
17471
|
}));
|
|
17604
17472
|
};
|
|
17605
17473
|
var serializeAws_restJson1TaskTemplateDefaultFieldValue = function (input, context) {
|
|
17606
|
-
return __assign(__assign({}, (input.DefaultValue
|
|
17607
|
-
input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }));
|
|
17474
|
+
return __assign(__assign({}, (input.DefaultValue != null && { DefaultValue: input.DefaultValue })), (input.Id != null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }));
|
|
17608
17475
|
};
|
|
17609
17476
|
var serializeAws_restJson1TaskTemplateDefaultFieldValueList = function (input, context) {
|
|
17610
17477
|
return input
|
|
@@ -17617,20 +17484,17 @@ var serializeAws_restJson1TaskTemplateDefaultFieldValueList = function (input, c
|
|
|
17617
17484
|
});
|
|
17618
17485
|
};
|
|
17619
17486
|
var serializeAws_restJson1TaskTemplateDefaults = function (input, context) {
|
|
17620
|
-
return __assign({}, (input.DefaultFieldValues
|
|
17621
|
-
input.DefaultFieldValues !== null && {
|
|
17487
|
+
return __assign({}, (input.DefaultFieldValues != null && {
|
|
17622
17488
|
DefaultFieldValues: serializeAws_restJson1TaskTemplateDefaultFieldValueList(input.DefaultFieldValues, context),
|
|
17623
17489
|
}));
|
|
17624
17490
|
};
|
|
17625
17491
|
var serializeAws_restJson1TaskTemplateField = function (input, context) {
|
|
17626
|
-
return __assign(__assign(__assign(__assign({}, (input.Description
|
|
17627
|
-
input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) })), (input.SingleSelectOptions !== undefined &&
|
|
17628
|
-
input.SingleSelectOptions !== null && {
|
|
17492
|
+
return __assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Id != null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) })), (input.SingleSelectOptions != null && {
|
|
17629
17493
|
SingleSelectOptions: serializeAws_restJson1SingleSelectOptions(input.SingleSelectOptions, context),
|
|
17630
|
-
})), (input.Type
|
|
17494
|
+
})), (input.Type != null && { Type: input.Type }));
|
|
17631
17495
|
};
|
|
17632
17496
|
var serializeAws_restJson1TaskTemplateFieldIdentifier = function (input, context) {
|
|
17633
|
-
return __assign({}, (input.Name
|
|
17497
|
+
return __assign({}, (input.Name != null && { Name: input.Name }));
|
|
17634
17498
|
};
|
|
17635
17499
|
var serializeAws_restJson1TaskTemplateFields = function (input, context) {
|
|
17636
17500
|
return input
|
|
@@ -17643,26 +17507,21 @@ var serializeAws_restJson1TaskTemplateFields = function (input, context) {
|
|
|
17643
17507
|
});
|
|
17644
17508
|
};
|
|
17645
17509
|
var serializeAws_restJson1Threshold = function (input, context) {
|
|
17646
|
-
return __assign(__assign({}, (input.Comparison
|
|
17647
|
-
input.ThresholdValue !== null && { ThresholdValue: __serializeFloat(input.ThresholdValue) }));
|
|
17510
|
+
return __assign(__assign({}, (input.Comparison != null && { Comparison: input.Comparison })), (input.ThresholdValue != null && { ThresholdValue: __serializeFloat(input.ThresholdValue) }));
|
|
17648
17511
|
};
|
|
17649
17512
|
var serializeAws_restJson1UserDataFilters = function (input, context) {
|
|
17650
|
-
return __assign(__assign({}, (input.ContactFilter
|
|
17651
|
-
input.ContactFilter !== null && {
|
|
17513
|
+
return __assign(__assign({}, (input.ContactFilter != null && {
|
|
17652
17514
|
ContactFilter: serializeAws_restJson1ContactFilter(input.ContactFilter, context),
|
|
17653
|
-
})), (input.Queues
|
|
17654
|
-
input.Queues !== null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }));
|
|
17515
|
+
})), (input.Queues != null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }));
|
|
17655
17516
|
};
|
|
17656
17517
|
var serializeAws_restJson1UserIdentityInfo = function (input, context) {
|
|
17657
|
-
return __assign(__assign(__assign({}, (input.Email
|
|
17518
|
+
return __assign(__assign(__assign({}, (input.Email != null && { Email: input.Email })), (input.FirstName != null && { FirstName: input.FirstName })), (input.LastName != null && { LastName: input.LastName }));
|
|
17658
17519
|
};
|
|
17659
17520
|
var serializeAws_restJson1UserPhoneConfig = function (input, context) {
|
|
17660
|
-
return __assign(__assign(__assign(__assign({}, (input.AfterContactWorkTimeLimit
|
|
17661
|
-
input.AfterContactWorkTimeLimit !== null && { AfterContactWorkTimeLimit: input.AfterContactWorkTimeLimit })), (input.AutoAccept !== undefined && input.AutoAccept !== null && { AutoAccept: input.AutoAccept })), (input.DeskPhoneNumber !== undefined &&
|
|
17662
|
-
input.DeskPhoneNumber !== null && { DeskPhoneNumber: input.DeskPhoneNumber })), (input.PhoneType !== undefined && input.PhoneType !== null && { PhoneType: input.PhoneType }));
|
|
17521
|
+
return __assign(__assign(__assign(__assign({}, (input.AfterContactWorkTimeLimit != null && { AfterContactWorkTimeLimit: input.AfterContactWorkTimeLimit })), (input.AutoAccept != null && { AutoAccept: input.AutoAccept })), (input.DeskPhoneNumber != null && { DeskPhoneNumber: input.DeskPhoneNumber })), (input.PhoneType != null && { PhoneType: input.PhoneType }));
|
|
17663
17522
|
};
|
|
17664
17523
|
var serializeAws_restJson1UserQuickConnectConfig = function (input, context) {
|
|
17665
|
-
return __assign(__assign({}, (input.ContactFlowId
|
|
17524
|
+
return __assign(__assign({}, (input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId })), (input.UserId != null && { UserId: input.UserId }));
|
|
17666
17525
|
};
|
|
17667
17526
|
var serializeAws_restJson1UserSearchConditionList = function (input, context) {
|
|
17668
17527
|
return input
|
|
@@ -17675,41 +17534,35 @@ var serializeAws_restJson1UserSearchConditionList = function (input, context) {
|
|
|
17675
17534
|
});
|
|
17676
17535
|
};
|
|
17677
17536
|
var serializeAws_restJson1UserSearchCriteria = function (input, context) {
|
|
17678
|
-
return __assign(__assign(__assign(__assign({}, (input.AndConditions
|
|
17679
|
-
input.AndConditions !== null && {
|
|
17537
|
+
return __assign(__assign(__assign(__assign({}, (input.AndConditions != null && {
|
|
17680
17538
|
AndConditions: serializeAws_restJson1UserSearchConditionList(input.AndConditions, context),
|
|
17681
|
-
})), (input.HierarchyGroupCondition
|
|
17682
|
-
input.HierarchyGroupCondition !== null && {
|
|
17539
|
+
})), (input.HierarchyGroupCondition != null && {
|
|
17683
17540
|
HierarchyGroupCondition: serializeAws_restJson1HierarchyGroupCondition(input.HierarchyGroupCondition, context),
|
|
17684
|
-
})), (input.OrConditions
|
|
17685
|
-
input.OrConditions !== null && {
|
|
17541
|
+
})), (input.OrConditions != null && {
|
|
17686
17542
|
OrConditions: serializeAws_restJson1UserSearchConditionList(input.OrConditions, context),
|
|
17687
|
-
})), (input.StringCondition
|
|
17688
|
-
input.StringCondition !== null && {
|
|
17543
|
+
})), (input.StringCondition != null && {
|
|
17689
17544
|
StringCondition: serializeAws_restJson1StringCondition(input.StringCondition, context),
|
|
17690
17545
|
}));
|
|
17691
17546
|
};
|
|
17692
17547
|
var serializeAws_restJson1UserSearchFilter = function (input, context) {
|
|
17693
|
-
return __assign({}, (input.TagFilter
|
|
17694
|
-
|
|
17548
|
+
return __assign({}, (input.TagFilter != null && {
|
|
17549
|
+
TagFilter: serializeAws_restJson1ControlPlaneTagFilter(input.TagFilter, context),
|
|
17550
|
+
}));
|
|
17695
17551
|
};
|
|
17696
17552
|
var serializeAws_restJson1VoiceRecordingConfiguration = function (input, context) {
|
|
17697
|
-
return __assign({}, (input.VoiceRecordingTrack
|
|
17698
|
-
input.VoiceRecordingTrack !== null && { VoiceRecordingTrack: input.VoiceRecordingTrack }));
|
|
17553
|
+
return __assign({}, (input.VoiceRecordingTrack != null && { VoiceRecordingTrack: input.VoiceRecordingTrack }));
|
|
17699
17554
|
};
|
|
17700
17555
|
var deserializeAws_restJson1AgentContactReference = function (output, context) {
|
|
17701
17556
|
return {
|
|
17702
17557
|
AgentContactState: __expectString(output.AgentContactState),
|
|
17703
17558
|
Channel: __expectString(output.Channel),
|
|
17704
|
-
ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp
|
|
17559
|
+
ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp != null
|
|
17705
17560
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ConnectedToAgentTimestamp)))
|
|
17706
17561
|
: undefined,
|
|
17707
17562
|
ContactId: __expectString(output.ContactId),
|
|
17708
17563
|
InitiationMethod: __expectString(output.InitiationMethod),
|
|
17709
|
-
Queue: output.Queue
|
|
17710
|
-
|
|
17711
|
-
: undefined,
|
|
17712
|
-
StateStartTimestamp: output.StateStartTimestamp !== undefined && output.StateStartTimestamp !== null
|
|
17564
|
+
Queue: output.Queue != null ? deserializeAws_restJson1QueueReference(output.Queue, context) : undefined,
|
|
17565
|
+
StateStartTimestamp: output.StateStartTimestamp != null
|
|
17713
17566
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StateStartTimestamp)))
|
|
17714
17567
|
: undefined,
|
|
17715
17568
|
};
|
|
@@ -17727,7 +17580,7 @@ var deserializeAws_restJson1AgentContactReferenceList = function (output, contex
|
|
|
17727
17580
|
};
|
|
17728
17581
|
var deserializeAws_restJson1AgentInfo = function (output, context) {
|
|
17729
17582
|
return {
|
|
17730
|
-
ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp
|
|
17583
|
+
ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp != null
|
|
17731
17584
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ConnectedToAgentTimestamp)))
|
|
17732
17585
|
: undefined,
|
|
17733
17586
|
Id: __expectString(output.Id),
|
|
@@ -17741,16 +17594,14 @@ var deserializeAws_restJson1AgentStatus = function (output, context) {
|
|
|
17741
17594
|
DisplayOrder: __expectInt32(output.DisplayOrder),
|
|
17742
17595
|
Name: __expectString(output.Name),
|
|
17743
17596
|
State: __expectString(output.State),
|
|
17744
|
-
Tags: output.Tags
|
|
17745
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
17746
|
-
: undefined,
|
|
17597
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
17747
17598
|
Type: __expectString(output.Type),
|
|
17748
17599
|
};
|
|
17749
17600
|
};
|
|
17750
17601
|
var deserializeAws_restJson1AgentStatusReference = function (output, context) {
|
|
17751
17602
|
return {
|
|
17752
17603
|
StatusArn: __expectString(output.StatusArn),
|
|
17753
|
-
StatusStartTimestamp: output.StatusStartTimestamp
|
|
17604
|
+
StatusStartTimestamp: output.StatusStartTimestamp != null
|
|
17754
17605
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StatusStartTimestamp)))
|
|
17755
17606
|
: undefined,
|
|
17756
17607
|
};
|
|
@@ -17843,42 +17694,36 @@ var deserializeAws_restJson1ClaimedPhoneNumberSummary = function (output, contex
|
|
|
17843
17694
|
PhoneNumberCountryCode: __expectString(output.PhoneNumberCountryCode),
|
|
17844
17695
|
PhoneNumberDescription: __expectString(output.PhoneNumberDescription),
|
|
17845
17696
|
PhoneNumberId: __expectString(output.PhoneNumberId),
|
|
17846
|
-
PhoneNumberStatus: output.PhoneNumberStatus
|
|
17697
|
+
PhoneNumberStatus: output.PhoneNumberStatus != null
|
|
17847
17698
|
? deserializeAws_restJson1PhoneNumberStatus(output.PhoneNumberStatus, context)
|
|
17848
17699
|
: undefined,
|
|
17849
17700
|
PhoneNumberType: __expectString(output.PhoneNumberType),
|
|
17850
|
-
Tags: output.Tags
|
|
17851
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
17852
|
-
: undefined,
|
|
17701
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
17853
17702
|
TargetArn: __expectString(output.TargetArn),
|
|
17854
17703
|
};
|
|
17855
17704
|
};
|
|
17856
17705
|
var deserializeAws_restJson1Contact = function (output, context) {
|
|
17857
17706
|
return {
|
|
17858
|
-
AgentInfo: output.AgentInfo
|
|
17859
|
-
? deserializeAws_restJson1AgentInfo(output.AgentInfo, context)
|
|
17860
|
-
: undefined,
|
|
17707
|
+
AgentInfo: output.AgentInfo != null ? deserializeAws_restJson1AgentInfo(output.AgentInfo, context) : undefined,
|
|
17861
17708
|
Arn: __expectString(output.Arn),
|
|
17862
17709
|
Channel: __expectString(output.Channel),
|
|
17863
17710
|
Description: __expectString(output.Description),
|
|
17864
|
-
DisconnectTimestamp: output.DisconnectTimestamp
|
|
17711
|
+
DisconnectTimestamp: output.DisconnectTimestamp != null
|
|
17865
17712
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DisconnectTimestamp)))
|
|
17866
17713
|
: undefined,
|
|
17867
17714
|
Id: __expectString(output.Id),
|
|
17868
17715
|
InitialContactId: __expectString(output.InitialContactId),
|
|
17869
17716
|
InitiationMethod: __expectString(output.InitiationMethod),
|
|
17870
|
-
InitiationTimestamp: output.InitiationTimestamp
|
|
17717
|
+
InitiationTimestamp: output.InitiationTimestamp != null
|
|
17871
17718
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.InitiationTimestamp)))
|
|
17872
17719
|
: undefined,
|
|
17873
|
-
LastUpdateTimestamp: output.LastUpdateTimestamp
|
|
17720
|
+
LastUpdateTimestamp: output.LastUpdateTimestamp != null
|
|
17874
17721
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTimestamp)))
|
|
17875
17722
|
: undefined,
|
|
17876
17723
|
Name: __expectString(output.Name),
|
|
17877
17724
|
PreviousContactId: __expectString(output.PreviousContactId),
|
|
17878
|
-
QueueInfo: output.QueueInfo
|
|
17879
|
-
|
|
17880
|
-
: undefined,
|
|
17881
|
-
ScheduledTimestamp: output.ScheduledTimestamp !== undefined && output.ScheduledTimestamp !== null
|
|
17725
|
+
QueueInfo: output.QueueInfo != null ? deserializeAws_restJson1QueueInfo(output.QueueInfo, context) : undefined,
|
|
17726
|
+
ScheduledTimestamp: output.ScheduledTimestamp != null
|
|
17882
17727
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ScheduledTimestamp)))
|
|
17883
17728
|
: undefined,
|
|
17884
17729
|
};
|
|
@@ -17891,9 +17736,7 @@ var deserializeAws_restJson1ContactFlow = function (output, context) {
|
|
|
17891
17736
|
Id: __expectString(output.Id),
|
|
17892
17737
|
Name: __expectString(output.Name),
|
|
17893
17738
|
State: __expectString(output.State),
|
|
17894
|
-
Tags: output.Tags
|
|
17895
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
17896
|
-
: undefined,
|
|
17739
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
17897
17740
|
Type: __expectString(output.Type),
|
|
17898
17741
|
};
|
|
17899
17742
|
};
|
|
@@ -17906,9 +17749,7 @@ var deserializeAws_restJson1ContactFlowModule = function (output, context) {
|
|
|
17906
17749
|
Name: __expectString(output.Name),
|
|
17907
17750
|
State: __expectString(output.State),
|
|
17908
17751
|
Status: __expectString(output.Status),
|
|
17909
|
-
Tags: output.Tags
|
|
17910
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
17911
|
-
: undefined,
|
|
17752
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
17912
17753
|
};
|
|
17913
17754
|
};
|
|
17914
17755
|
var deserializeAws_restJson1ContactFlowModulesSummaryList = function (output, context) {
|
|
@@ -17953,11 +17794,11 @@ var deserializeAws_restJson1ContactFlowSummaryList = function (output, context)
|
|
|
17953
17794
|
var deserializeAws_restJson1Credentials = function (output, context) {
|
|
17954
17795
|
return {
|
|
17955
17796
|
AccessToken: __expectString(output.AccessToken),
|
|
17956
|
-
AccessTokenExpiration: output.AccessTokenExpiration
|
|
17797
|
+
AccessTokenExpiration: output.AccessTokenExpiration != null
|
|
17957
17798
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AccessTokenExpiration)))
|
|
17958
17799
|
: undefined,
|
|
17959
17800
|
RefreshToken: __expectString(output.RefreshToken),
|
|
17960
|
-
RefreshTokenExpiration: output.RefreshTokenExpiration
|
|
17801
|
+
RefreshTokenExpiration: output.RefreshTokenExpiration != null
|
|
17961
17802
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RefreshTokenExpiration)))
|
|
17962
17803
|
: undefined,
|
|
17963
17804
|
};
|
|
@@ -17970,9 +17811,7 @@ var deserializeAws_restJson1CurrentMetric = function (output, context) {
|
|
|
17970
17811
|
};
|
|
17971
17812
|
var deserializeAws_restJson1CurrentMetricData = function (output, context) {
|
|
17972
17813
|
return {
|
|
17973
|
-
Metric: output.Metric
|
|
17974
|
-
? deserializeAws_restJson1CurrentMetric(output.Metric, context)
|
|
17975
|
-
: undefined,
|
|
17814
|
+
Metric: output.Metric != null ? deserializeAws_restJson1CurrentMetric(output.Metric, context) : undefined,
|
|
17976
17815
|
Value: __limitedParseDouble(output.Value),
|
|
17977
17816
|
};
|
|
17978
17817
|
};
|
|
@@ -17989,12 +17828,10 @@ var deserializeAws_restJson1CurrentMetricDataCollections = function (output, con
|
|
|
17989
17828
|
};
|
|
17990
17829
|
var deserializeAws_restJson1CurrentMetricResult = function (output, context) {
|
|
17991
17830
|
return {
|
|
17992
|
-
Collections: output.Collections
|
|
17831
|
+
Collections: output.Collections != null
|
|
17993
17832
|
? deserializeAws_restJson1CurrentMetricDataCollections(output.Collections, context)
|
|
17994
17833
|
: undefined,
|
|
17995
|
-
Dimensions: output.Dimensions
|
|
17996
|
-
? deserializeAws_restJson1Dimensions(output.Dimensions, context)
|
|
17997
|
-
: undefined,
|
|
17834
|
+
Dimensions: output.Dimensions != null ? deserializeAws_restJson1Dimensions(output.Dimensions, context) : undefined,
|
|
17998
17835
|
};
|
|
17999
17836
|
};
|
|
18000
17837
|
var deserializeAws_restJson1CurrentMetricResults = function (output, context) {
|
|
@@ -18036,9 +17873,7 @@ var deserializeAws_restJson1DefaultVocabularyList = function (output, context) {
|
|
|
18036
17873
|
var deserializeAws_restJson1Dimensions = function (output, context) {
|
|
18037
17874
|
return {
|
|
18038
17875
|
Channel: __expectString(output.Channel),
|
|
18039
|
-
Queue: output.Queue
|
|
18040
|
-
? deserializeAws_restJson1QueueReference(output.Queue, context)
|
|
18041
|
-
: undefined,
|
|
17876
|
+
Queue: output.Queue != null ? deserializeAws_restJson1QueueReference(output.Queue, context) : undefined,
|
|
18042
17877
|
};
|
|
18043
17878
|
};
|
|
18044
17879
|
var deserializeAws_restJson1EmailReference = function (output, context) {
|
|
@@ -18067,15 +17902,11 @@ var deserializeAws_restJson1FunctionArnsList = function (output, context) {
|
|
|
18067
17902
|
var deserializeAws_restJson1HierarchyGroup = function (output, context) {
|
|
18068
17903
|
return {
|
|
18069
17904
|
Arn: __expectString(output.Arn),
|
|
18070
|
-
HierarchyPath: output.HierarchyPath
|
|
18071
|
-
? deserializeAws_restJson1HierarchyPath(output.HierarchyPath, context)
|
|
18072
|
-
: undefined,
|
|
17905
|
+
HierarchyPath: output.HierarchyPath != null ? deserializeAws_restJson1HierarchyPath(output.HierarchyPath, context) : undefined,
|
|
18073
17906
|
Id: __expectString(output.Id),
|
|
18074
17907
|
LevelId: __expectString(output.LevelId),
|
|
18075
17908
|
Name: __expectString(output.Name),
|
|
18076
|
-
Tags: output.Tags
|
|
18077
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
18078
|
-
: undefined,
|
|
17909
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
18079
17910
|
};
|
|
18080
17911
|
};
|
|
18081
17912
|
var deserializeAws_restJson1HierarchyGroupSummary = function (output, context) {
|
|
@@ -18111,76 +17942,52 @@ var deserializeAws_restJson1HierarchyLevel = function (output, context) {
|
|
|
18111
17942
|
};
|
|
18112
17943
|
var deserializeAws_restJson1HierarchyPath = function (output, context) {
|
|
18113
17944
|
return {
|
|
18114
|
-
LevelFive: output.LevelFive
|
|
18115
|
-
|
|
18116
|
-
|
|
18117
|
-
|
|
18118
|
-
|
|
18119
|
-
: undefined,
|
|
18120
|
-
LevelOne: output.LevelOne !== undefined && output.LevelOne !== null
|
|
18121
|
-
? deserializeAws_restJson1HierarchyGroupSummary(output.LevelOne, context)
|
|
18122
|
-
: undefined,
|
|
18123
|
-
LevelThree: output.LevelThree !== undefined && output.LevelThree !== null
|
|
18124
|
-
? deserializeAws_restJson1HierarchyGroupSummary(output.LevelThree, context)
|
|
18125
|
-
: undefined,
|
|
18126
|
-
LevelTwo: output.LevelTwo !== undefined && output.LevelTwo !== null
|
|
18127
|
-
? deserializeAws_restJson1HierarchyGroupSummary(output.LevelTwo, context)
|
|
18128
|
-
: undefined,
|
|
17945
|
+
LevelFive: output.LevelFive != null ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelFive, context) : undefined,
|
|
17946
|
+
LevelFour: output.LevelFour != null ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelFour, context) : undefined,
|
|
17947
|
+
LevelOne: output.LevelOne != null ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelOne, context) : undefined,
|
|
17948
|
+
LevelThree: output.LevelThree != null ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelThree, context) : undefined,
|
|
17949
|
+
LevelTwo: output.LevelTwo != null ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelTwo, context) : undefined,
|
|
18129
17950
|
};
|
|
18130
17951
|
};
|
|
18131
17952
|
var deserializeAws_restJson1HierarchyPathReference = function (output, context) {
|
|
18132
17953
|
return {
|
|
18133
|
-
LevelFive: output.LevelFive
|
|
17954
|
+
LevelFive: output.LevelFive != null
|
|
18134
17955
|
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelFive, context)
|
|
18135
17956
|
: undefined,
|
|
18136
|
-
LevelFour: output.LevelFour
|
|
17957
|
+
LevelFour: output.LevelFour != null
|
|
18137
17958
|
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelFour, context)
|
|
18138
17959
|
: undefined,
|
|
18139
|
-
LevelOne: output.LevelOne
|
|
17960
|
+
LevelOne: output.LevelOne != null
|
|
18140
17961
|
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelOne, context)
|
|
18141
17962
|
: undefined,
|
|
18142
|
-
LevelThree: output.LevelThree
|
|
17963
|
+
LevelThree: output.LevelThree != null
|
|
18143
17964
|
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelThree, context)
|
|
18144
17965
|
: undefined,
|
|
18145
|
-
LevelTwo: output.LevelTwo
|
|
17966
|
+
LevelTwo: output.LevelTwo != null
|
|
18146
17967
|
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelTwo, context)
|
|
18147
17968
|
: undefined,
|
|
18148
17969
|
};
|
|
18149
17970
|
};
|
|
18150
17971
|
var deserializeAws_restJson1HierarchyStructure = function (output, context) {
|
|
18151
17972
|
return {
|
|
18152
|
-
LevelFive: output.LevelFive
|
|
18153
|
-
|
|
18154
|
-
|
|
18155
|
-
|
|
18156
|
-
|
|
18157
|
-
: undefined,
|
|
18158
|
-
LevelOne: output.LevelOne !== undefined && output.LevelOne !== null
|
|
18159
|
-
? deserializeAws_restJson1HierarchyLevel(output.LevelOne, context)
|
|
18160
|
-
: undefined,
|
|
18161
|
-
LevelThree: output.LevelThree !== undefined && output.LevelThree !== null
|
|
18162
|
-
? deserializeAws_restJson1HierarchyLevel(output.LevelThree, context)
|
|
18163
|
-
: undefined,
|
|
18164
|
-
LevelTwo: output.LevelTwo !== undefined && output.LevelTwo !== null
|
|
18165
|
-
? deserializeAws_restJson1HierarchyLevel(output.LevelTwo, context)
|
|
18166
|
-
: undefined,
|
|
17973
|
+
LevelFive: output.LevelFive != null ? deserializeAws_restJson1HierarchyLevel(output.LevelFive, context) : undefined,
|
|
17974
|
+
LevelFour: output.LevelFour != null ? deserializeAws_restJson1HierarchyLevel(output.LevelFour, context) : undefined,
|
|
17975
|
+
LevelOne: output.LevelOne != null ? deserializeAws_restJson1HierarchyLevel(output.LevelOne, context) : undefined,
|
|
17976
|
+
LevelThree: output.LevelThree != null ? deserializeAws_restJson1HierarchyLevel(output.LevelThree, context) : undefined,
|
|
17977
|
+
LevelTwo: output.LevelTwo != null ? deserializeAws_restJson1HierarchyLevel(output.LevelTwo, context) : undefined,
|
|
18167
17978
|
};
|
|
18168
17979
|
};
|
|
18169
17980
|
var deserializeAws_restJson1HistoricalMetric = function (output, context) {
|
|
18170
17981
|
return {
|
|
18171
17982
|
Name: __expectString(output.Name),
|
|
18172
17983
|
Statistic: __expectString(output.Statistic),
|
|
18173
|
-
Threshold: output.Threshold
|
|
18174
|
-
? deserializeAws_restJson1Threshold(output.Threshold, context)
|
|
18175
|
-
: undefined,
|
|
17984
|
+
Threshold: output.Threshold != null ? deserializeAws_restJson1Threshold(output.Threshold, context) : undefined,
|
|
18176
17985
|
Unit: __expectString(output.Unit),
|
|
18177
17986
|
};
|
|
18178
17987
|
};
|
|
18179
17988
|
var deserializeAws_restJson1HistoricalMetricData = function (output, context) {
|
|
18180
17989
|
return {
|
|
18181
|
-
Metric: output.Metric
|
|
18182
|
-
? deserializeAws_restJson1HistoricalMetric(output.Metric, context)
|
|
18183
|
-
: undefined,
|
|
17990
|
+
Metric: output.Metric != null ? deserializeAws_restJson1HistoricalMetric(output.Metric, context) : undefined,
|
|
18184
17991
|
Value: __limitedParseDouble(output.Value),
|
|
18185
17992
|
};
|
|
18186
17993
|
};
|
|
@@ -18197,12 +18004,10 @@ var deserializeAws_restJson1HistoricalMetricDataCollections = function (output,
|
|
|
18197
18004
|
};
|
|
18198
18005
|
var deserializeAws_restJson1HistoricalMetricResult = function (output, context) {
|
|
18199
18006
|
return {
|
|
18200
|
-
Collections: output.Collections
|
|
18007
|
+
Collections: output.Collections != null
|
|
18201
18008
|
? deserializeAws_restJson1HistoricalMetricDataCollections(output.Collections, context)
|
|
18202
18009
|
: undefined,
|
|
18203
|
-
Dimensions: output.Dimensions
|
|
18204
|
-
? deserializeAws_restJson1Dimensions(output.Dimensions, context)
|
|
18205
|
-
: undefined,
|
|
18010
|
+
Dimensions: output.Dimensions != null ? deserializeAws_restJson1Dimensions(output.Dimensions, context) : undefined,
|
|
18206
18011
|
};
|
|
18207
18012
|
};
|
|
18208
18013
|
var deserializeAws_restJson1HistoricalMetricResults = function (output, context) {
|
|
@@ -18218,26 +18023,20 @@ var deserializeAws_restJson1HistoricalMetricResults = function (output, context)
|
|
|
18218
18023
|
};
|
|
18219
18024
|
var deserializeAws_restJson1HoursOfOperation = function (output, context) {
|
|
18220
18025
|
return {
|
|
18221
|
-
Config: output.Config
|
|
18222
|
-
? deserializeAws_restJson1HoursOfOperationConfigList(output.Config, context)
|
|
18223
|
-
: undefined,
|
|
18026
|
+
Config: output.Config != null ? deserializeAws_restJson1HoursOfOperationConfigList(output.Config, context) : undefined,
|
|
18224
18027
|
Description: __expectString(output.Description),
|
|
18225
18028
|
HoursOfOperationArn: __expectString(output.HoursOfOperationArn),
|
|
18226
18029
|
HoursOfOperationId: __expectString(output.HoursOfOperationId),
|
|
18227
18030
|
Name: __expectString(output.Name),
|
|
18228
|
-
Tags: output.Tags
|
|
18229
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
18230
|
-
: undefined,
|
|
18031
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
18231
18032
|
TimeZone: __expectString(output.TimeZone),
|
|
18232
18033
|
};
|
|
18233
18034
|
};
|
|
18234
18035
|
var deserializeAws_restJson1HoursOfOperationConfig = function (output, context) {
|
|
18235
18036
|
return {
|
|
18236
18037
|
Day: __expectString(output.Day),
|
|
18237
|
-
EndTime: output.EndTime
|
|
18238
|
-
|
|
18239
|
-
: undefined,
|
|
18240
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
18038
|
+
EndTime: output.EndTime != null ? deserializeAws_restJson1HoursOfOperationTimeSlice(output.EndTime, context) : undefined,
|
|
18039
|
+
StartTime: output.StartTime != null
|
|
18241
18040
|
? deserializeAws_restJson1HoursOfOperationTimeSlice(output.StartTime, context)
|
|
18242
18041
|
: undefined,
|
|
18243
18042
|
};
|
|
@@ -18280,7 +18079,7 @@ var deserializeAws_restJson1HoursOfOperationTimeSlice = function (output, contex
|
|
|
18280
18079
|
var deserializeAws_restJson1Instance = function (output, context) {
|
|
18281
18080
|
return {
|
|
18282
18081
|
Arn: __expectString(output.Arn),
|
|
18283
|
-
CreatedTime: output.CreatedTime
|
|
18082
|
+
CreatedTime: output.CreatedTime != null
|
|
18284
18083
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
|
|
18285
18084
|
: undefined,
|
|
18286
18085
|
Id: __expectString(output.Id),
|
|
@@ -18290,7 +18089,7 @@ var deserializeAws_restJson1Instance = function (output, context) {
|
|
|
18290
18089
|
InstanceStatus: __expectString(output.InstanceStatus),
|
|
18291
18090
|
OutboundCallsEnabled: __expectBoolean(output.OutboundCallsEnabled),
|
|
18292
18091
|
ServiceRole: __expectString(output.ServiceRole),
|
|
18293
|
-
StatusReason: output.StatusReason
|
|
18092
|
+
StatusReason: output.StatusReason != null
|
|
18294
18093
|
? deserializeAws_restJson1InstanceStatusReason(output.StatusReason, context)
|
|
18295
18094
|
: undefined,
|
|
18296
18095
|
};
|
|
@@ -18303,18 +18102,16 @@ var deserializeAws_restJson1InstanceStatusReason = function (output, context) {
|
|
|
18303
18102
|
var deserializeAws_restJson1InstanceStorageConfig = function (output, context) {
|
|
18304
18103
|
return {
|
|
18305
18104
|
AssociationId: __expectString(output.AssociationId),
|
|
18306
|
-
KinesisFirehoseConfig: output.KinesisFirehoseConfig
|
|
18105
|
+
KinesisFirehoseConfig: output.KinesisFirehoseConfig != null
|
|
18307
18106
|
? deserializeAws_restJson1KinesisFirehoseConfig(output.KinesisFirehoseConfig, context)
|
|
18308
18107
|
: undefined,
|
|
18309
|
-
KinesisStreamConfig: output.KinesisStreamConfig
|
|
18108
|
+
KinesisStreamConfig: output.KinesisStreamConfig != null
|
|
18310
18109
|
? deserializeAws_restJson1KinesisStreamConfig(output.KinesisStreamConfig, context)
|
|
18311
18110
|
: undefined,
|
|
18312
|
-
KinesisVideoStreamConfig: output.KinesisVideoStreamConfig
|
|
18111
|
+
KinesisVideoStreamConfig: output.KinesisVideoStreamConfig != null
|
|
18313
18112
|
? deserializeAws_restJson1KinesisVideoStreamConfig(output.KinesisVideoStreamConfig, context)
|
|
18314
18113
|
: undefined,
|
|
18315
|
-
S3Config: output.S3Config
|
|
18316
|
-
? deserializeAws_restJson1S3Config(output.S3Config, context)
|
|
18317
|
-
: undefined,
|
|
18114
|
+
S3Config: output.S3Config != null ? deserializeAws_restJson1S3Config(output.S3Config, context) : undefined,
|
|
18318
18115
|
StorageType: __expectString(output.StorageType),
|
|
18319
18116
|
};
|
|
18320
18117
|
};
|
|
@@ -18332,7 +18129,7 @@ var deserializeAws_restJson1InstanceStorageConfigs = function (output, context)
|
|
|
18332
18129
|
var deserializeAws_restJson1InstanceSummary = function (output, context) {
|
|
18333
18130
|
return {
|
|
18334
18131
|
Arn: __expectString(output.Arn),
|
|
18335
|
-
CreatedTime: output.CreatedTime
|
|
18132
|
+
CreatedTime: output.CreatedTime != null
|
|
18336
18133
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
|
|
18337
18134
|
: undefined,
|
|
18338
18135
|
Id: __expectString(output.Id),
|
|
@@ -18380,9 +18177,7 @@ var deserializeAws_restJson1IntegrationAssociationSummaryList = function (output
|
|
|
18380
18177
|
};
|
|
18381
18178
|
var deserializeAws_restJson1InvisibleFieldInfo = function (output, context) {
|
|
18382
18179
|
return {
|
|
18383
|
-
Id: output.Id
|
|
18384
|
-
? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
|
|
18385
|
-
: undefined,
|
|
18180
|
+
Id: output.Id != null ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context) : undefined,
|
|
18386
18181
|
};
|
|
18387
18182
|
};
|
|
18388
18183
|
var deserializeAws_restJson1InvisibleTaskTemplateFields = function (output, context) {
|
|
@@ -18408,7 +18203,7 @@ var deserializeAws_restJson1KinesisStreamConfig = function (output, context) {
|
|
|
18408
18203
|
};
|
|
18409
18204
|
var deserializeAws_restJson1KinesisVideoStreamConfig = function (output, context) {
|
|
18410
18205
|
return {
|
|
18411
|
-
EncryptionConfig: output.EncryptionConfig
|
|
18206
|
+
EncryptionConfig: output.EncryptionConfig != null
|
|
18412
18207
|
? deserializeAws_restJson1EncryptionConfig(output.EncryptionConfig, context)
|
|
18413
18208
|
: undefined,
|
|
18414
18209
|
Prefix: __expectString(output.Prefix),
|
|
@@ -18423,12 +18218,8 @@ var deserializeAws_restJson1LexBot = function (output, context) {
|
|
|
18423
18218
|
};
|
|
18424
18219
|
var deserializeAws_restJson1LexBotConfig = function (output, context) {
|
|
18425
18220
|
return {
|
|
18426
|
-
LexBot: output.LexBot
|
|
18427
|
-
|
|
18428
|
-
: undefined,
|
|
18429
|
-
LexV2Bot: output.LexV2Bot !== undefined && output.LexV2Bot !== null
|
|
18430
|
-
? deserializeAws_restJson1LexV2Bot(output.LexV2Bot, context)
|
|
18431
|
-
: undefined,
|
|
18221
|
+
LexBot: output.LexBot != null ? deserializeAws_restJson1LexBot(output.LexBot, context) : undefined,
|
|
18222
|
+
LexV2Bot: output.LexV2Bot != null ? deserializeAws_restJson1LexV2Bot(output.LexV2Bot, context) : undefined,
|
|
18432
18223
|
};
|
|
18433
18224
|
};
|
|
18434
18225
|
var deserializeAws_restJson1LexBotConfigList = function (output, context) {
|
|
@@ -18620,20 +18411,18 @@ var deserializeAws_restJson1Queue = function (output, context) {
|
|
|
18620
18411
|
HoursOfOperationId: __expectString(output.HoursOfOperationId),
|
|
18621
18412
|
MaxContacts: __expectInt32(output.MaxContacts),
|
|
18622
18413
|
Name: __expectString(output.Name),
|
|
18623
|
-
OutboundCallerConfig: output.OutboundCallerConfig
|
|
18414
|
+
OutboundCallerConfig: output.OutboundCallerConfig != null
|
|
18624
18415
|
? deserializeAws_restJson1OutboundCallerConfig(output.OutboundCallerConfig, context)
|
|
18625
18416
|
: undefined,
|
|
18626
18417
|
QueueArn: __expectString(output.QueueArn),
|
|
18627
18418
|
QueueId: __expectString(output.QueueId),
|
|
18628
18419
|
Status: __expectString(output.Status),
|
|
18629
|
-
Tags: output.Tags
|
|
18630
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
18631
|
-
: undefined,
|
|
18420
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
18632
18421
|
};
|
|
18633
18422
|
};
|
|
18634
18423
|
var deserializeAws_restJson1QueueInfo = function (output, context) {
|
|
18635
18424
|
return {
|
|
18636
|
-
EnqueueTimestamp: output.EnqueueTimestamp
|
|
18425
|
+
EnqueueTimestamp: output.EnqueueTimestamp != null
|
|
18637
18426
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EnqueueTimestamp)))
|
|
18638
18427
|
: undefined,
|
|
18639
18428
|
Id: __expectString(output.Id),
|
|
@@ -18675,25 +18464,23 @@ var deserializeAws_restJson1QuickConnect = function (output, context) {
|
|
|
18675
18464
|
Description: __expectString(output.Description),
|
|
18676
18465
|
Name: __expectString(output.Name),
|
|
18677
18466
|
QuickConnectARN: __expectString(output.QuickConnectARN),
|
|
18678
|
-
QuickConnectConfig: output.QuickConnectConfig
|
|
18467
|
+
QuickConnectConfig: output.QuickConnectConfig != null
|
|
18679
18468
|
? deserializeAws_restJson1QuickConnectConfig(output.QuickConnectConfig, context)
|
|
18680
18469
|
: undefined,
|
|
18681
18470
|
QuickConnectId: __expectString(output.QuickConnectId),
|
|
18682
|
-
Tags: output.Tags
|
|
18683
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
18684
|
-
: undefined,
|
|
18471
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
18685
18472
|
};
|
|
18686
18473
|
};
|
|
18687
18474
|
var deserializeAws_restJson1QuickConnectConfig = function (output, context) {
|
|
18688
18475
|
return {
|
|
18689
|
-
PhoneConfig: output.PhoneConfig
|
|
18476
|
+
PhoneConfig: output.PhoneConfig != null
|
|
18690
18477
|
? deserializeAws_restJson1PhoneNumberQuickConnectConfig(output.PhoneConfig, context)
|
|
18691
18478
|
: undefined,
|
|
18692
|
-
QueueConfig: output.QueueConfig
|
|
18479
|
+
QueueConfig: output.QueueConfig != null
|
|
18693
18480
|
? deserializeAws_restJson1QueueQuickConnectConfig(output.QueueConfig, context)
|
|
18694
18481
|
: undefined,
|
|
18695
18482
|
QuickConnectType: __expectString(output.QuickConnectType),
|
|
18696
|
-
UserConfig: output.UserConfig
|
|
18483
|
+
UserConfig: output.UserConfig != null
|
|
18697
18484
|
? deserializeAws_restJson1UserQuickConnectConfig(output.UserConfig, context)
|
|
18698
18485
|
: undefined,
|
|
18699
18486
|
};
|
|
@@ -18719,9 +18506,7 @@ var deserializeAws_restJson1QuickConnectSummaryList = function (output, context)
|
|
|
18719
18506
|
};
|
|
18720
18507
|
var deserializeAws_restJson1ReadOnlyFieldInfo = function (output, context) {
|
|
18721
18508
|
return {
|
|
18722
|
-
Id: output.Id
|
|
18723
|
-
? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
|
|
18724
|
-
: undefined,
|
|
18509
|
+
Id: output.Id != null ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context) : undefined,
|
|
18725
18510
|
};
|
|
18726
18511
|
};
|
|
18727
18512
|
var deserializeAws_restJson1ReadOnlyTaskTemplateFields = function (output, context) {
|
|
@@ -18781,9 +18566,7 @@ var deserializeAws_restJson1ReferenceSummaryList = function (output, context) {
|
|
|
18781
18566
|
};
|
|
18782
18567
|
var deserializeAws_restJson1RequiredFieldInfo = function (output, context) {
|
|
18783
18568
|
return {
|
|
18784
|
-
Id: output.Id
|
|
18785
|
-
? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
|
|
18786
|
-
: undefined,
|
|
18569
|
+
Id: output.Id != null ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context) : undefined,
|
|
18787
18570
|
};
|
|
18788
18571
|
};
|
|
18789
18572
|
var deserializeAws_restJson1RequiredTaskTemplateFields = function (output, context) {
|
|
@@ -18802,15 +18585,13 @@ var deserializeAws_restJson1RoutingProfile = function (output, context) {
|
|
|
18802
18585
|
DefaultOutboundQueueId: __expectString(output.DefaultOutboundQueueId),
|
|
18803
18586
|
Description: __expectString(output.Description),
|
|
18804
18587
|
InstanceId: __expectString(output.InstanceId),
|
|
18805
|
-
MediaConcurrencies: output.MediaConcurrencies
|
|
18588
|
+
MediaConcurrencies: output.MediaConcurrencies != null
|
|
18806
18589
|
? deserializeAws_restJson1MediaConcurrencies(output.MediaConcurrencies, context)
|
|
18807
18590
|
: undefined,
|
|
18808
18591
|
Name: __expectString(output.Name),
|
|
18809
18592
|
RoutingProfileArn: __expectString(output.RoutingProfileArn),
|
|
18810
18593
|
RoutingProfileId: __expectString(output.RoutingProfileId),
|
|
18811
|
-
Tags: output.Tags
|
|
18812
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
18813
|
-
: undefined,
|
|
18594
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
18814
18595
|
};
|
|
18815
18596
|
};
|
|
18816
18597
|
var deserializeAws_restJson1RoutingProfileQueueConfigSummary = function (output, context) {
|
|
@@ -18862,7 +18643,7 @@ var deserializeAws_restJson1S3Config = function (output, context) {
|
|
|
18862
18643
|
return {
|
|
18863
18644
|
BucketName: __expectString(output.BucketName),
|
|
18864
18645
|
BucketPrefix: __expectString(output.BucketPrefix),
|
|
18865
|
-
EncryptionConfig: output.EncryptionConfig
|
|
18646
|
+
EncryptionConfig: output.EncryptionConfig != null
|
|
18866
18647
|
? deserializeAws_restJson1EncryptionConfig(output.EncryptionConfig, context)
|
|
18867
18648
|
: undefined,
|
|
18868
18649
|
};
|
|
@@ -18870,7 +18651,7 @@ var deserializeAws_restJson1S3Config = function (output, context) {
|
|
|
18870
18651
|
var deserializeAws_restJson1SecurityKey = function (output, context) {
|
|
18871
18652
|
return {
|
|
18872
18653
|
AssociationId: __expectString(output.AssociationId),
|
|
18873
|
-
CreationTime: output.CreationTime
|
|
18654
|
+
CreationTime: output.CreationTime != null
|
|
18874
18655
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
18875
18656
|
: undefined,
|
|
18876
18657
|
Key: __expectString(output.Key),
|
|
@@ -18894,9 +18675,7 @@ var deserializeAws_restJson1SecurityProfile = function (output, context) {
|
|
|
18894
18675
|
Id: __expectString(output.Id),
|
|
18895
18676
|
OrganizationResourceId: __expectString(output.OrganizationResourceId),
|
|
18896
18677
|
SecurityProfileName: __expectString(output.SecurityProfileName),
|
|
18897
|
-
Tags: output.Tags
|
|
18898
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
18899
|
-
: undefined,
|
|
18678
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
18900
18679
|
};
|
|
18901
18680
|
};
|
|
18902
18681
|
var deserializeAws_restJson1SecurityProfileIds = function (output, context) {
|
|
@@ -18957,13 +18736,13 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
18957
18736
|
};
|
|
18958
18737
|
var deserializeAws_restJson1TaskTemplateConstraints = function (output, context) {
|
|
18959
18738
|
return {
|
|
18960
|
-
InvisibleFields: output.InvisibleFields
|
|
18739
|
+
InvisibleFields: output.InvisibleFields != null
|
|
18961
18740
|
? deserializeAws_restJson1InvisibleTaskTemplateFields(output.InvisibleFields, context)
|
|
18962
18741
|
: undefined,
|
|
18963
|
-
ReadOnlyFields: output.ReadOnlyFields
|
|
18742
|
+
ReadOnlyFields: output.ReadOnlyFields != null
|
|
18964
18743
|
? deserializeAws_restJson1ReadOnlyTaskTemplateFields(output.ReadOnlyFields, context)
|
|
18965
18744
|
: undefined,
|
|
18966
|
-
RequiredFields: output.RequiredFields
|
|
18745
|
+
RequiredFields: output.RequiredFields != null
|
|
18967
18746
|
? deserializeAws_restJson1RequiredTaskTemplateFields(output.RequiredFields, context)
|
|
18968
18747
|
: undefined,
|
|
18969
18748
|
};
|
|
@@ -18971,9 +18750,7 @@ var deserializeAws_restJson1TaskTemplateConstraints = function (output, context)
|
|
|
18971
18750
|
var deserializeAws_restJson1TaskTemplateDefaultFieldValue = function (output, context) {
|
|
18972
18751
|
return {
|
|
18973
18752
|
DefaultValue: __expectString(output.DefaultValue),
|
|
18974
|
-
Id: output.Id
|
|
18975
|
-
? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
|
|
18976
|
-
: undefined,
|
|
18753
|
+
Id: output.Id != null ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context) : undefined,
|
|
18977
18754
|
};
|
|
18978
18755
|
};
|
|
18979
18756
|
var deserializeAws_restJson1TaskTemplateDefaultFieldValueList = function (output, context) {
|
|
@@ -18989,7 +18766,7 @@ var deserializeAws_restJson1TaskTemplateDefaultFieldValueList = function (output
|
|
|
18989
18766
|
};
|
|
18990
18767
|
var deserializeAws_restJson1TaskTemplateDefaults = function (output, context) {
|
|
18991
18768
|
return {
|
|
18992
|
-
DefaultFieldValues: output.DefaultFieldValues
|
|
18769
|
+
DefaultFieldValues: output.DefaultFieldValues != null
|
|
18993
18770
|
? deserializeAws_restJson1TaskTemplateDefaultFieldValueList(output.DefaultFieldValues, context)
|
|
18994
18771
|
: undefined,
|
|
18995
18772
|
};
|
|
@@ -18997,10 +18774,8 @@ var deserializeAws_restJson1TaskTemplateDefaults = function (output, context) {
|
|
|
18997
18774
|
var deserializeAws_restJson1TaskTemplateField = function (output, context) {
|
|
18998
18775
|
return {
|
|
18999
18776
|
Description: __expectString(output.Description),
|
|
19000
|
-
Id: output.Id
|
|
19001
|
-
|
|
19002
|
-
: undefined,
|
|
19003
|
-
SingleSelectOptions: output.SingleSelectOptions !== undefined && output.SingleSelectOptions !== null
|
|
18777
|
+
Id: output.Id != null ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context) : undefined,
|
|
18778
|
+
SingleSelectOptions: output.SingleSelectOptions != null
|
|
19004
18779
|
? deserializeAws_restJson1SingleSelectOptions(output.SingleSelectOptions, context)
|
|
19005
18780
|
: undefined,
|
|
19006
18781
|
Type: __expectString(output.Type),
|
|
@@ -19036,12 +18811,12 @@ var deserializeAws_restJson1TaskTemplateList = function (output, context) {
|
|
|
19036
18811
|
var deserializeAws_restJson1TaskTemplateMetadata = function (output, context) {
|
|
19037
18812
|
return {
|
|
19038
18813
|
Arn: __expectString(output.Arn),
|
|
19039
|
-
CreatedTime: output.CreatedTime
|
|
18814
|
+
CreatedTime: output.CreatedTime != null
|
|
19040
18815
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
|
|
19041
18816
|
: undefined,
|
|
19042
18817
|
Description: __expectString(output.Description),
|
|
19043
18818
|
Id: __expectString(output.Id),
|
|
19044
|
-
LastModifiedTime: output.LastModifiedTime
|
|
18819
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
19045
18820
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
19046
18821
|
: undefined,
|
|
19047
18822
|
Name: __expectString(output.Name),
|
|
@@ -19084,48 +18859,36 @@ var deserializeAws_restJson1User = function (output, context) {
|
|
|
19084
18859
|
DirectoryUserId: __expectString(output.DirectoryUserId),
|
|
19085
18860
|
HierarchyGroupId: __expectString(output.HierarchyGroupId),
|
|
19086
18861
|
Id: __expectString(output.Id),
|
|
19087
|
-
IdentityInfo: output.IdentityInfo
|
|
19088
|
-
|
|
19089
|
-
: undefined,
|
|
19090
|
-
PhoneConfig: output.PhoneConfig !== undefined && output.PhoneConfig !== null
|
|
19091
|
-
? deserializeAws_restJson1UserPhoneConfig(output.PhoneConfig, context)
|
|
19092
|
-
: undefined,
|
|
18862
|
+
IdentityInfo: output.IdentityInfo != null ? deserializeAws_restJson1UserIdentityInfo(output.IdentityInfo, context) : undefined,
|
|
18863
|
+
PhoneConfig: output.PhoneConfig != null ? deserializeAws_restJson1UserPhoneConfig(output.PhoneConfig, context) : undefined,
|
|
19093
18864
|
RoutingProfileId: __expectString(output.RoutingProfileId),
|
|
19094
|
-
SecurityProfileIds: output.SecurityProfileIds
|
|
18865
|
+
SecurityProfileIds: output.SecurityProfileIds != null
|
|
19095
18866
|
? deserializeAws_restJson1SecurityProfileIds(output.SecurityProfileIds, context)
|
|
19096
18867
|
: undefined,
|
|
19097
|
-
Tags: output.Tags
|
|
19098
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
19099
|
-
: undefined,
|
|
18868
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
19100
18869
|
Username: __expectString(output.Username),
|
|
19101
18870
|
};
|
|
19102
18871
|
};
|
|
19103
18872
|
var deserializeAws_restJson1UserData = function (output, context) {
|
|
19104
18873
|
return {
|
|
19105
|
-
ActiveSlotsByChannel: output.ActiveSlotsByChannel
|
|
18874
|
+
ActiveSlotsByChannel: output.ActiveSlotsByChannel != null
|
|
19106
18875
|
? deserializeAws_restJson1ChannelToCountMap(output.ActiveSlotsByChannel, context)
|
|
19107
18876
|
: undefined,
|
|
19108
|
-
AvailableSlotsByChannel: output.AvailableSlotsByChannel
|
|
18877
|
+
AvailableSlotsByChannel: output.AvailableSlotsByChannel != null
|
|
19109
18878
|
? deserializeAws_restJson1ChannelToCountMap(output.AvailableSlotsByChannel, context)
|
|
19110
18879
|
: undefined,
|
|
19111
|
-
Contacts: output.Contacts
|
|
19112
|
-
|
|
19113
|
-
: undefined,
|
|
19114
|
-
HierarchyPath: output.HierarchyPath !== undefined && output.HierarchyPath !== null
|
|
18880
|
+
Contacts: output.Contacts != null ? deserializeAws_restJson1AgentContactReferenceList(output.Contacts, context) : undefined,
|
|
18881
|
+
HierarchyPath: output.HierarchyPath != null
|
|
19115
18882
|
? deserializeAws_restJson1HierarchyPathReference(output.HierarchyPath, context)
|
|
19116
18883
|
: undefined,
|
|
19117
|
-
MaxSlotsByChannel: output.MaxSlotsByChannel
|
|
18884
|
+
MaxSlotsByChannel: output.MaxSlotsByChannel != null
|
|
19118
18885
|
? deserializeAws_restJson1ChannelToCountMap(output.MaxSlotsByChannel, context)
|
|
19119
18886
|
: undefined,
|
|
19120
|
-
RoutingProfile: output.RoutingProfile
|
|
18887
|
+
RoutingProfile: output.RoutingProfile != null
|
|
19121
18888
|
? deserializeAws_restJson1RoutingProfileReference(output.RoutingProfile, context)
|
|
19122
18889
|
: undefined,
|
|
19123
|
-
Status: output.Status
|
|
19124
|
-
|
|
19125
|
-
: undefined,
|
|
19126
|
-
User: output.User !== undefined && output.User !== null
|
|
19127
|
-
? deserializeAws_restJson1UserReference(output.User, context)
|
|
19128
|
-
: undefined,
|
|
18890
|
+
Status: output.Status != null ? deserializeAws_restJson1AgentStatusReference(output.Status, context) : undefined,
|
|
18891
|
+
User: output.User != null ? deserializeAws_restJson1UserReference(output.User, context) : undefined,
|
|
19129
18892
|
};
|
|
19130
18893
|
};
|
|
19131
18894
|
var deserializeAws_restJson1UserDataList = function (output, context) {
|
|
@@ -19178,19 +18941,15 @@ var deserializeAws_restJson1UserSearchSummary = function (output, context) {
|
|
|
19178
18941
|
DirectoryUserId: __expectString(output.DirectoryUserId),
|
|
19179
18942
|
HierarchyGroupId: __expectString(output.HierarchyGroupId),
|
|
19180
18943
|
Id: __expectString(output.Id),
|
|
19181
|
-
IdentityInfo: output.IdentityInfo
|
|
18944
|
+
IdentityInfo: output.IdentityInfo != null
|
|
19182
18945
|
? deserializeAws_restJson1UserIdentityInfoLite(output.IdentityInfo, context)
|
|
19183
18946
|
: undefined,
|
|
19184
|
-
PhoneConfig: output.PhoneConfig
|
|
19185
|
-
? deserializeAws_restJson1UserPhoneConfig(output.PhoneConfig, context)
|
|
19186
|
-
: undefined,
|
|
18947
|
+
PhoneConfig: output.PhoneConfig != null ? deserializeAws_restJson1UserPhoneConfig(output.PhoneConfig, context) : undefined,
|
|
19187
18948
|
RoutingProfileId: __expectString(output.RoutingProfileId),
|
|
19188
|
-
SecurityProfileIds: output.SecurityProfileIds
|
|
18949
|
+
SecurityProfileIds: output.SecurityProfileIds != null
|
|
19189
18950
|
? deserializeAws_restJson1SecurityProfileIds(output.SecurityProfileIds, context)
|
|
19190
18951
|
: undefined,
|
|
19191
|
-
Tags: output.Tags
|
|
19192
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
19193
|
-
: undefined,
|
|
18952
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
19194
18953
|
Username: __expectString(output.Username),
|
|
19195
18954
|
};
|
|
19196
18955
|
};
|
|
@@ -19230,14 +18989,12 @@ var deserializeAws_restJson1Vocabulary = function (output, context) {
|
|
|
19230
18989
|
FailureReason: __expectString(output.FailureReason),
|
|
19231
18990
|
Id: __expectString(output.Id),
|
|
19232
18991
|
LanguageCode: __expectString(output.LanguageCode),
|
|
19233
|
-
LastModifiedTime: output.LastModifiedTime
|
|
18992
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
19234
18993
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
19235
18994
|
: undefined,
|
|
19236
18995
|
Name: __expectString(output.Name),
|
|
19237
18996
|
State: __expectString(output.State),
|
|
19238
|
-
Tags: output.Tags
|
|
19239
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
19240
|
-
: undefined,
|
|
18997
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
19241
18998
|
};
|
|
19242
18999
|
};
|
|
19243
19000
|
var deserializeAws_restJson1VocabularySummary = function (output, context) {
|
|
@@ -19246,7 +19003,7 @@ var deserializeAws_restJson1VocabularySummary = function (output, context) {
|
|
|
19246
19003
|
FailureReason: __expectString(output.FailureReason),
|
|
19247
19004
|
Id: __expectString(output.Id),
|
|
19248
19005
|
LanguageCode: __expectString(output.LanguageCode),
|
|
19249
|
-
LastModifiedTime: output.LastModifiedTime
|
|
19006
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
19250
19007
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
19251
19008
|
: undefined,
|
|
19252
19009
|
Name: __expectString(output.Name),
|
|
@@ -19302,6 +19059,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
19302
19059
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
19303
19060
|
var sanitizeErrorCode = function (rawValue) {
|
|
19304
19061
|
var cleanValue = rawValue;
|
|
19062
|
+
if (typeof cleanValue === "number") {
|
|
19063
|
+
cleanValue = cleanValue.toString();
|
|
19064
|
+
}
|
|
19305
19065
|
if (cleanValue.indexOf(":") >= 0) {
|
|
19306
19066
|
cleanValue = cleanValue.split(":")[0];
|
|
19307
19067
|
}
|