@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.
@@ -31,7 +31,7 @@ const serializeAws_restJson1AssociateApprovedOriginCommand = async (input, conte
31
31
  }
32
32
  let body;
33
33
  body = JSON.stringify({
34
- ...(input.Origin !== undefined && input.Origin !== null && { Origin: input.Origin }),
34
+ ...(input.Origin != null && { Origin: input.Origin }),
35
35
  });
36
36
  return new protocol_http_1.HttpRequest({
37
37
  protocol,
@@ -62,10 +62,8 @@ const serializeAws_restJson1AssociateBotCommand = async (input, context) => {
62
62
  }
63
63
  let body;
64
64
  body = JSON.stringify({
65
- ...(input.LexBot !== undefined &&
66
- input.LexBot !== null && { LexBot: serializeAws_restJson1LexBot(input.LexBot, context) }),
67
- ...(input.LexV2Bot !== undefined &&
68
- input.LexV2Bot !== null && { LexV2Bot: serializeAws_restJson1LexV2Bot(input.LexV2Bot, context) }),
65
+ ...(input.LexBot != null && { LexBot: serializeAws_restJson1LexBot(input.LexBot, context) }),
66
+ ...(input.LexV2Bot != null && { LexV2Bot: serializeAws_restJson1LexV2Bot(input.LexV2Bot, context) }),
69
67
  });
70
68
  return new protocol_http_1.HttpRequest({
71
69
  protocol,
@@ -107,7 +105,7 @@ const serializeAws_restJson1AssociateDefaultVocabularyCommand = async (input, co
107
105
  }
108
106
  let body;
109
107
  body = JSON.stringify({
110
- ...(input.VocabularyId !== undefined && input.VocabularyId !== null && { VocabularyId: input.VocabularyId }),
108
+ ...(input.VocabularyId != null && { VocabularyId: input.VocabularyId }),
111
109
  });
112
110
  return new protocol_http_1.HttpRequest({
113
111
  protocol,
@@ -138,9 +136,8 @@ const serializeAws_restJson1AssociateInstanceStorageConfigCommand = async (input
138
136
  }
139
137
  let body;
140
138
  body = JSON.stringify({
141
- ...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
142
- ...(input.StorageConfig !== undefined &&
143
- input.StorageConfig !== null && {
139
+ ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
140
+ ...(input.StorageConfig != null && {
144
141
  StorageConfig: serializeAws_restJson1InstanceStorageConfig(input.StorageConfig, context),
145
142
  }),
146
143
  });
@@ -173,7 +170,7 @@ const serializeAws_restJson1AssociateLambdaFunctionCommand = async (input, conte
173
170
  }
174
171
  let body;
175
172
  body = JSON.stringify({
176
- ...(input.FunctionArn !== undefined && input.FunctionArn !== null && { FunctionArn: input.FunctionArn }),
173
+ ...(input.FunctionArn != null && { FunctionArn: input.FunctionArn }),
177
174
  });
178
175
  return new protocol_http_1.HttpRequest({
179
176
  protocol,
@@ -204,8 +201,7 @@ const serializeAws_restJson1AssociateLexBotCommand = async (input, context) => {
204
201
  }
205
202
  let body;
206
203
  body = JSON.stringify({
207
- ...(input.LexBot !== undefined &&
208
- input.LexBot !== null && { LexBot: serializeAws_restJson1LexBot(input.LexBot, context) }),
204
+ ...(input.LexBot != null && { LexBot: serializeAws_restJson1LexBot(input.LexBot, context) }),
209
205
  });
210
206
  return new protocol_http_1.HttpRequest({
211
207
  protocol,
@@ -237,8 +233,8 @@ const serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = async (inpu
237
233
  }
238
234
  let body;
239
235
  body = JSON.stringify({
240
- ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
241
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
236
+ ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
237
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
242
238
  });
243
239
  return new protocol_http_1.HttpRequest({
244
240
  protocol,
@@ -280,8 +276,7 @@ const serializeAws_restJson1AssociateQueueQuickConnectsCommand = async (input, c
280
276
  }
281
277
  let body;
282
278
  body = JSON.stringify({
283
- ...(input.QuickConnectIds !== undefined &&
284
- input.QuickConnectIds !== null && {
279
+ ...(input.QuickConnectIds != null && {
285
280
  QuickConnectIds: serializeAws_restJson1QuickConnectsList(input.QuickConnectIds, context),
286
281
  }),
287
282
  });
@@ -325,8 +320,7 @@ const serializeAws_restJson1AssociateRoutingProfileQueuesCommand = async (input,
325
320
  }
326
321
  let body;
327
322
  body = JSON.stringify({
328
- ...(input.QueueConfigs !== undefined &&
329
- input.QueueConfigs !== null && {
323
+ ...(input.QueueConfigs != null && {
330
324
  QueueConfigs: serializeAws_restJson1RoutingProfileQueueConfigList(input.QueueConfigs, context),
331
325
  }),
332
326
  });
@@ -359,7 +353,7 @@ const serializeAws_restJson1AssociateSecurityKeyCommand = async (input, context)
359
353
  }
360
354
  let body;
361
355
  body = JSON.stringify({
362
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
356
+ ...(input.Key != null && { Key: input.Key }),
363
357
  });
364
358
  return new protocol_http_1.HttpRequest({
365
359
  protocol,
@@ -382,11 +376,10 @@ const serializeAws_restJson1ClaimPhoneNumberCommand = async (input, context) =>
382
376
  let body;
383
377
  body = JSON.stringify({
384
378
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
385
- ...(input.PhoneNumber !== undefined && input.PhoneNumber !== null && { PhoneNumber: input.PhoneNumber }),
386
- ...(input.PhoneNumberDescription !== undefined &&
387
- input.PhoneNumberDescription !== null && { PhoneNumberDescription: input.PhoneNumberDescription }),
388
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
389
- ...(input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }),
379
+ ...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
380
+ ...(input.PhoneNumberDescription != null && { PhoneNumberDescription: input.PhoneNumberDescription }),
381
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
382
+ ...(input.TargetArn != null && { TargetArn: input.TargetArn }),
390
383
  });
391
384
  return new protocol_http_1.HttpRequest({
392
385
  protocol,
@@ -417,11 +410,11 @@ const serializeAws_restJson1CreateAgentStatusCommand = async (input, context) =>
417
410
  }
418
411
  let body;
419
412
  body = JSON.stringify({
420
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
421
- ...(input.DisplayOrder !== undefined && input.DisplayOrder !== null && { DisplayOrder: input.DisplayOrder }),
422
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
423
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
424
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
413
+ ...(input.Description != null && { Description: input.Description }),
414
+ ...(input.DisplayOrder != null && { DisplayOrder: input.DisplayOrder }),
415
+ ...(input.Name != null && { Name: input.Name }),
416
+ ...(input.State != null && { State: input.State }),
417
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
425
418
  });
426
419
  return new protocol_http_1.HttpRequest({
427
420
  protocol,
@@ -452,11 +445,11 @@ const serializeAws_restJson1CreateContactFlowCommand = async (input, context) =>
452
445
  }
453
446
  let body;
454
447
  body = JSON.stringify({
455
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
456
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
457
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
458
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
459
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
448
+ ...(input.Content != null && { Content: input.Content }),
449
+ ...(input.Description != null && { Description: input.Description }),
450
+ ...(input.Name != null && { Name: input.Name }),
451
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
452
+ ...(input.Type != null && { Type: input.Type }),
460
453
  });
461
454
  return new protocol_http_1.HttpRequest({
462
455
  protocol,
@@ -489,10 +482,10 @@ const serializeAws_restJson1CreateContactFlowModuleCommand = async (input, conte
489
482
  let body;
490
483
  body = JSON.stringify({
491
484
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
492
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
493
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
494
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
495
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
485
+ ...(input.Content != null && { Content: input.Content }),
486
+ ...(input.Description != null && { Description: input.Description }),
487
+ ...(input.Name != null && { Name: input.Name }),
488
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
496
489
  });
497
490
  return new protocol_http_1.HttpRequest({
498
491
  protocol,
@@ -523,12 +516,11 @@ const serializeAws_restJson1CreateHoursOfOperationCommand = async (input, contex
523
516
  }
524
517
  let body;
525
518
  body = JSON.stringify({
526
- ...(input.Config !== undefined &&
527
- input.Config !== null && { Config: serializeAws_restJson1HoursOfOperationConfigList(input.Config, context) }),
528
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
529
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
530
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
531
- ...(input.TimeZone !== undefined && input.TimeZone !== null && { TimeZone: input.TimeZone }),
519
+ ...(input.Config != null && { Config: serializeAws_restJson1HoursOfOperationConfigList(input.Config, context) }),
520
+ ...(input.Description != null && { Description: input.Description }),
521
+ ...(input.Name != null && { Name: input.Name }),
522
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
523
+ ...(input.TimeZone != null && { TimeZone: input.TimeZone }),
532
524
  });
533
525
  return new protocol_http_1.HttpRequest({
534
526
  protocol,
@@ -549,15 +541,12 @@ const serializeAws_restJson1CreateInstanceCommand = async (input, context) => {
549
541
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance";
550
542
  let body;
551
543
  body = JSON.stringify({
552
- ...(input.ClientToken !== undefined && input.ClientToken !== null && { ClientToken: input.ClientToken }),
553
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
554
- ...(input.IdentityManagementType !== undefined &&
555
- input.IdentityManagementType !== null && { IdentityManagementType: input.IdentityManagementType }),
556
- ...(input.InboundCallsEnabled !== undefined &&
557
- input.InboundCallsEnabled !== null && { InboundCallsEnabled: input.InboundCallsEnabled }),
558
- ...(input.InstanceAlias !== undefined && input.InstanceAlias !== null && { InstanceAlias: input.InstanceAlias }),
559
- ...(input.OutboundCallsEnabled !== undefined &&
560
- input.OutboundCallsEnabled !== null && { OutboundCallsEnabled: input.OutboundCallsEnabled }),
544
+ ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
545
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
546
+ ...(input.IdentityManagementType != null && { IdentityManagementType: input.IdentityManagementType }),
547
+ ...(input.InboundCallsEnabled != null && { InboundCallsEnabled: input.InboundCallsEnabled }),
548
+ ...(input.InstanceAlias != null && { InstanceAlias: input.InstanceAlias }),
549
+ ...(input.OutboundCallsEnabled != null && { OutboundCallsEnabled: input.OutboundCallsEnabled }),
561
550
  });
562
551
  return new protocol_http_1.HttpRequest({
563
552
  protocol,
@@ -589,16 +578,12 @@ const serializeAws_restJson1CreateIntegrationAssociationCommand = async (input,
589
578
  }
590
579
  let body;
591
580
  body = JSON.stringify({
592
- ...(input.IntegrationArn !== undefined &&
593
- input.IntegrationArn !== null && { IntegrationArn: input.IntegrationArn }),
594
- ...(input.IntegrationType !== undefined &&
595
- input.IntegrationType !== null && { IntegrationType: input.IntegrationType }),
596
- ...(input.SourceApplicationName !== undefined &&
597
- input.SourceApplicationName !== null && { SourceApplicationName: input.SourceApplicationName }),
598
- ...(input.SourceApplicationUrl !== undefined &&
599
- input.SourceApplicationUrl !== null && { SourceApplicationUrl: input.SourceApplicationUrl }),
600
- ...(input.SourceType !== undefined && input.SourceType !== null && { SourceType: input.SourceType }),
601
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
581
+ ...(input.IntegrationArn != null && { IntegrationArn: input.IntegrationArn }),
582
+ ...(input.IntegrationType != null && { IntegrationType: input.IntegrationType }),
583
+ ...(input.SourceApplicationName != null && { SourceApplicationName: input.SourceApplicationName }),
584
+ ...(input.SourceApplicationUrl != null && { SourceApplicationUrl: input.SourceApplicationUrl }),
585
+ ...(input.SourceType != null && { SourceType: input.SourceType }),
586
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
602
587
  });
603
588
  return new protocol_http_1.HttpRequest({
604
589
  protocol,
@@ -629,20 +614,17 @@ const serializeAws_restJson1CreateQueueCommand = async (input, context) => {
629
614
  }
630
615
  let body;
631
616
  body = JSON.stringify({
632
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
633
- ...(input.HoursOfOperationId !== undefined &&
634
- input.HoursOfOperationId !== null && { HoursOfOperationId: input.HoursOfOperationId }),
635
- ...(input.MaxContacts !== undefined && input.MaxContacts !== null && { MaxContacts: input.MaxContacts }),
636
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
637
- ...(input.OutboundCallerConfig !== undefined &&
638
- input.OutboundCallerConfig !== null && {
617
+ ...(input.Description != null && { Description: input.Description }),
618
+ ...(input.HoursOfOperationId != null && { HoursOfOperationId: input.HoursOfOperationId }),
619
+ ...(input.MaxContacts != null && { MaxContacts: input.MaxContacts }),
620
+ ...(input.Name != null && { Name: input.Name }),
621
+ ...(input.OutboundCallerConfig != null && {
639
622
  OutboundCallerConfig: serializeAws_restJson1OutboundCallerConfig(input.OutboundCallerConfig, context),
640
623
  }),
641
- ...(input.QuickConnectIds !== undefined &&
642
- input.QuickConnectIds !== null && {
624
+ ...(input.QuickConnectIds != null && {
643
625
  QuickConnectIds: serializeAws_restJson1QuickConnectsList(input.QuickConnectIds, context),
644
626
  }),
645
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
627
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
646
628
  });
647
629
  return new protocol_http_1.HttpRequest({
648
630
  protocol,
@@ -673,13 +655,12 @@ const serializeAws_restJson1CreateQuickConnectCommand = async (input, context) =
673
655
  }
674
656
  let body;
675
657
  body = JSON.stringify({
676
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
677
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
678
- ...(input.QuickConnectConfig !== undefined &&
679
- input.QuickConnectConfig !== null && {
658
+ ...(input.Description != null && { Description: input.Description }),
659
+ ...(input.Name != null && { Name: input.Name }),
660
+ ...(input.QuickConnectConfig != null && {
680
661
  QuickConnectConfig: serializeAws_restJson1QuickConnectConfig(input.QuickConnectConfig, context),
681
662
  }),
682
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
663
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
683
664
  });
684
665
  return new protocol_http_1.HttpRequest({
685
666
  protocol,
@@ -710,19 +691,16 @@ const serializeAws_restJson1CreateRoutingProfileCommand = async (input, context)
710
691
  }
711
692
  let body;
712
693
  body = JSON.stringify({
713
- ...(input.DefaultOutboundQueueId !== undefined &&
714
- input.DefaultOutboundQueueId !== null && { DefaultOutboundQueueId: input.DefaultOutboundQueueId }),
715
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
716
- ...(input.MediaConcurrencies !== undefined &&
717
- input.MediaConcurrencies !== null && {
694
+ ...(input.DefaultOutboundQueueId != null && { DefaultOutboundQueueId: input.DefaultOutboundQueueId }),
695
+ ...(input.Description != null && { Description: input.Description }),
696
+ ...(input.MediaConcurrencies != null && {
718
697
  MediaConcurrencies: serializeAws_restJson1MediaConcurrencies(input.MediaConcurrencies, context),
719
698
  }),
720
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
721
- ...(input.QueueConfigs !== undefined &&
722
- input.QueueConfigs !== null && {
699
+ ...(input.Name != null && { Name: input.Name }),
700
+ ...(input.QueueConfigs != null && {
723
701
  QueueConfigs: serializeAws_restJson1RoutingProfileQueueConfigList(input.QueueConfigs, context),
724
702
  }),
725
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
703
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
726
704
  });
727
705
  return new protocol_http_1.HttpRequest({
728
706
  protocol,
@@ -753,12 +731,12 @@ const serializeAws_restJson1CreateSecurityProfileCommand = async (input, context
753
731
  }
754
732
  let body;
755
733
  body = JSON.stringify({
756
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
757
- ...(input.Permissions !== undefined &&
758
- input.Permissions !== null && { Permissions: serializeAws_restJson1PermissionsList(input.Permissions, context) }),
759
- ...(input.SecurityProfileName !== undefined &&
760
- input.SecurityProfileName !== null && { SecurityProfileName: input.SecurityProfileName }),
761
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
734
+ ...(input.Description != null && { Description: input.Description }),
735
+ ...(input.Permissions != null && {
736
+ Permissions: serializeAws_restJson1PermissionsList(input.Permissions, context),
737
+ }),
738
+ ...(input.SecurityProfileName != null && { SecurityProfileName: input.SecurityProfileName }),
739
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
762
740
  });
763
741
  return new protocol_http_1.HttpRequest({
764
742
  protocol,
@@ -791,18 +769,15 @@ const serializeAws_restJson1CreateTaskTemplateCommand = async (input, context) =
791
769
  let body;
792
770
  body = JSON.stringify({
793
771
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
794
- ...(input.Constraints !== undefined &&
795
- input.Constraints !== null && {
772
+ ...(input.Constraints != null && {
796
773
  Constraints: serializeAws_restJson1TaskTemplateConstraints(input.Constraints, context),
797
774
  }),
798
- ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
799
- ...(input.Defaults !== undefined &&
800
- input.Defaults !== null && { Defaults: serializeAws_restJson1TaskTemplateDefaults(input.Defaults, context) }),
801
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
802
- ...(input.Fields !== undefined &&
803
- input.Fields !== null && { Fields: serializeAws_restJson1TaskTemplateFields(input.Fields, context) }),
804
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
805
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
775
+ ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
776
+ ...(input.Defaults != null && { Defaults: serializeAws_restJson1TaskTemplateDefaults(input.Defaults, context) }),
777
+ ...(input.Description != null && { Description: input.Description }),
778
+ ...(input.Fields != null && { Fields: serializeAws_restJson1TaskTemplateFields(input.Fields, context) }),
779
+ ...(input.Name != null && { Name: input.Name }),
780
+ ...(input.Status != null && { Status: input.Status }),
806
781
  });
807
782
  return new protocol_http_1.HttpRequest({
808
783
  protocol,
@@ -844,8 +819,8 @@ const serializeAws_restJson1CreateUseCaseCommand = async (input, context) => {
844
819
  }
845
820
  let body;
846
821
  body = JSON.stringify({
847
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
848
- ...(input.UseCaseType !== undefined && input.UseCaseType !== null && { UseCaseType: input.UseCaseType }),
822
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
823
+ ...(input.UseCaseType != null && { UseCaseType: input.UseCaseType }),
849
824
  });
850
825
  return new protocol_http_1.HttpRequest({
851
826
  protocol,
@@ -876,25 +851,21 @@ const serializeAws_restJson1CreateUserCommand = async (input, context) => {
876
851
  }
877
852
  let body;
878
853
  body = JSON.stringify({
879
- ...(input.DirectoryUserId !== undefined &&
880
- input.DirectoryUserId !== null && { DirectoryUserId: input.DirectoryUserId }),
881
- ...(input.HierarchyGroupId !== undefined &&
882
- input.HierarchyGroupId !== null && { HierarchyGroupId: input.HierarchyGroupId }),
883
- ...(input.IdentityInfo !== undefined &&
884
- input.IdentityInfo !== null && {
854
+ ...(input.DirectoryUserId != null && { DirectoryUserId: input.DirectoryUserId }),
855
+ ...(input.HierarchyGroupId != null && { HierarchyGroupId: input.HierarchyGroupId }),
856
+ ...(input.IdentityInfo != null && {
885
857
  IdentityInfo: serializeAws_restJson1UserIdentityInfo(input.IdentityInfo, context),
886
858
  }),
887
- ...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
888
- ...(input.PhoneConfig !== undefined &&
889
- input.PhoneConfig !== null && { PhoneConfig: serializeAws_restJson1UserPhoneConfig(input.PhoneConfig, context) }),
890
- ...(input.RoutingProfileId !== undefined &&
891
- input.RoutingProfileId !== null && { RoutingProfileId: input.RoutingProfileId }),
892
- ...(input.SecurityProfileIds !== undefined &&
893
- input.SecurityProfileIds !== null && {
859
+ ...(input.Password != null && { Password: input.Password }),
860
+ ...(input.PhoneConfig != null && {
861
+ PhoneConfig: serializeAws_restJson1UserPhoneConfig(input.PhoneConfig, context),
862
+ }),
863
+ ...(input.RoutingProfileId != null && { RoutingProfileId: input.RoutingProfileId }),
864
+ ...(input.SecurityProfileIds != null && {
894
865
  SecurityProfileIds: serializeAws_restJson1SecurityProfileIds(input.SecurityProfileIds, context),
895
866
  }),
896
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
897
- ...(input.Username !== undefined && input.Username !== null && { Username: input.Username }),
867
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
868
+ ...(input.Username != null && { Username: input.Username }),
898
869
  });
899
870
  return new protocol_http_1.HttpRequest({
900
871
  protocol,
@@ -925,9 +896,9 @@ const serializeAws_restJson1CreateUserHierarchyGroupCommand = async (input, cont
925
896
  }
926
897
  let body;
927
898
  body = JSON.stringify({
928
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
929
- ...(input.ParentGroupId !== undefined && input.ParentGroupId !== null && { ParentGroupId: input.ParentGroupId }),
930
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
899
+ ...(input.Name != null && { Name: input.Name }),
900
+ ...(input.ParentGroupId != null && { ParentGroupId: input.ParentGroupId }),
901
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
931
902
  });
932
903
  return new protocol_http_1.HttpRequest({
933
904
  protocol,
@@ -960,11 +931,10 @@ const serializeAws_restJson1CreateVocabularyCommand = async (input, context) =>
960
931
  let body;
961
932
  body = JSON.stringify({
962
933
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
963
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
964
- ...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
965
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
966
- ...(input.VocabularyName !== undefined &&
967
- input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
934
+ ...(input.Content != null && { Content: input.Content }),
935
+ ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
936
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
937
+ ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
968
938
  });
969
939
  return new protocol_http_1.HttpRequest({
970
940
  protocol,
@@ -2063,10 +2033,8 @@ const serializeAws_restJson1DisassociateBotCommand = async (input, context) => {
2063
2033
  }
2064
2034
  let body;
2065
2035
  body = JSON.stringify({
2066
- ...(input.LexBot !== undefined &&
2067
- input.LexBot !== null && { LexBot: serializeAws_restJson1LexBot(input.LexBot, context) }),
2068
- ...(input.LexV2Bot !== undefined &&
2069
- input.LexV2Bot !== null && { LexV2Bot: serializeAws_restJson1LexV2Bot(input.LexV2Bot, context) }),
2036
+ ...(input.LexBot != null && { LexBot: serializeAws_restJson1LexBot(input.LexBot, context) }),
2037
+ ...(input.LexV2Bot != null && { LexV2Bot: serializeAws_restJson1LexV2Bot(input.LexV2Bot, context) }),
2070
2038
  });
2071
2039
  return new protocol_http_1.HttpRequest({
2072
2040
  protocol,
@@ -2241,8 +2209,7 @@ const serializeAws_restJson1DisassociateQueueQuickConnectsCommand = async (input
2241
2209
  }
2242
2210
  let body;
2243
2211
  body = JSON.stringify({
2244
- ...(input.QuickConnectIds !== undefined &&
2245
- input.QuickConnectIds !== null && {
2212
+ ...(input.QuickConnectIds != null && {
2246
2213
  QuickConnectIds: serializeAws_restJson1QuickConnectsList(input.QuickConnectIds, context),
2247
2214
  }),
2248
2215
  });
@@ -2286,8 +2253,7 @@ const serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = async (inp
2286
2253
  }
2287
2254
  let body;
2288
2255
  body = JSON.stringify({
2289
- ...(input.QueueReferences !== undefined &&
2290
- input.QueueReferences !== null && {
2256
+ ...(input.QueueReferences != null && {
2291
2257
  QueueReferences: serializeAws_restJson1RoutingProfileQueueReferenceList(input.QueueReferences, context),
2292
2258
  }),
2293
2259
  });
@@ -2394,16 +2360,13 @@ const serializeAws_restJson1GetCurrentMetricDataCommand = async (input, context)
2394
2360
  }
2395
2361
  let body;
2396
2362
  body = JSON.stringify({
2397
- ...(input.CurrentMetrics !== undefined &&
2398
- input.CurrentMetrics !== null && {
2363
+ ...(input.CurrentMetrics != null && {
2399
2364
  CurrentMetrics: serializeAws_restJson1CurrentMetrics(input.CurrentMetrics, context),
2400
2365
  }),
2401
- ...(input.Filters !== undefined &&
2402
- input.Filters !== null && { Filters: serializeAws_restJson1Filters(input.Filters, context) }),
2403
- ...(input.Groupings !== undefined &&
2404
- input.Groupings !== null && { Groupings: serializeAws_restJson1Groupings(input.Groupings, context) }),
2405
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2406
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2366
+ ...(input.Filters != null && { Filters: serializeAws_restJson1Filters(input.Filters, context) }),
2367
+ ...(input.Groupings != null && { Groupings: serializeAws_restJson1Groupings(input.Groupings, context) }),
2368
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2369
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2407
2370
  });
2408
2371
  return new protocol_http_1.HttpRequest({
2409
2372
  protocol,
@@ -2434,10 +2397,9 @@ const serializeAws_restJson1GetCurrentUserDataCommand = async (input, context) =
2434
2397
  }
2435
2398
  let body;
2436
2399
  body = JSON.stringify({
2437
- ...(input.Filters !== undefined &&
2438
- input.Filters !== null && { Filters: serializeAws_restJson1UserDataFilters(input.Filters, context) }),
2439
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2440
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2400
+ ...(input.Filters != null && { Filters: serializeAws_restJson1UserDataFilters(input.Filters, context) }),
2401
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2402
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2441
2403
  });
2442
2404
  return new protocol_http_1.HttpRequest({
2443
2405
  protocol,
@@ -2494,20 +2456,15 @@ const serializeAws_restJson1GetMetricDataCommand = async (input, context) => {
2494
2456
  }
2495
2457
  let body;
2496
2458
  body = JSON.stringify({
2497
- ...(input.EndTime !== undefined &&
2498
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2499
- ...(input.Filters !== undefined &&
2500
- input.Filters !== null && { Filters: serializeAws_restJson1Filters(input.Filters, context) }),
2501
- ...(input.Groupings !== undefined &&
2502
- input.Groupings !== null && { Groupings: serializeAws_restJson1Groupings(input.Groupings, context) }),
2503
- ...(input.HistoricalMetrics !== undefined &&
2504
- input.HistoricalMetrics !== null && {
2459
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2460
+ ...(input.Filters != null && { Filters: serializeAws_restJson1Filters(input.Filters, context) }),
2461
+ ...(input.Groupings != null && { Groupings: serializeAws_restJson1Groupings(input.Groupings, context) }),
2462
+ ...(input.HistoricalMetrics != null && {
2505
2463
  HistoricalMetrics: serializeAws_restJson1HistoricalMetrics(input.HistoricalMetrics, context),
2506
2464
  }),
2507
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2508
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2509
- ...(input.StartTime !== undefined &&
2510
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2465
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2466
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2467
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2511
2468
  });
2512
2469
  return new protocol_http_1.HttpRequest({
2513
2470
  protocol,
@@ -2787,9 +2744,9 @@ const serializeAws_restJson1ListDefaultVocabulariesCommand = async (input, conte
2787
2744
  }
2788
2745
  let body;
2789
2746
  body = JSON.stringify({
2790
- ...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
2791
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2792
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2747
+ ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
2748
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2749
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2793
2750
  });
2794
2751
  return new protocol_http_1.HttpRequest({
2795
2752
  protocol,
@@ -3057,19 +3014,16 @@ const serializeAws_restJson1ListPhoneNumbersV2Command = async (input, context) =
3057
3014
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/list";
3058
3015
  let body;
3059
3016
  body = JSON.stringify({
3060
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3061
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3062
- ...(input.PhoneNumberCountryCodes !== undefined &&
3063
- input.PhoneNumberCountryCodes !== null && {
3017
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3018
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3019
+ ...(input.PhoneNumberCountryCodes != null && {
3064
3020
  PhoneNumberCountryCodes: serializeAws_restJson1PhoneNumberCountryCodes(input.PhoneNumberCountryCodes, context),
3065
3021
  }),
3066
- ...(input.PhoneNumberPrefix !== undefined &&
3067
- input.PhoneNumberPrefix !== null && { PhoneNumberPrefix: input.PhoneNumberPrefix }),
3068
- ...(input.PhoneNumberTypes !== undefined &&
3069
- input.PhoneNumberTypes !== null && {
3022
+ ...(input.PhoneNumberPrefix != null && { PhoneNumberPrefix: input.PhoneNumberPrefix }),
3023
+ ...(input.PhoneNumberTypes != null && {
3070
3024
  PhoneNumberTypes: serializeAws_restJson1PhoneNumberTypes(input.PhoneNumberTypes, context),
3071
3025
  }),
3072
- ...(input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }),
3026
+ ...(input.TargetArn != null && { TargetArn: input.TargetArn }),
3073
3027
  });
3074
3028
  return new protocol_http_1.HttpRequest({
3075
3029
  protocol,
@@ -3590,7 +3544,7 @@ const serializeAws_restJson1PutUserStatusCommand = async (input, context) => {
3590
3544
  }
3591
3545
  let body;
3592
3546
  body = JSON.stringify({
3593
- ...(input.AgentStatusId !== undefined && input.AgentStatusId !== null && { AgentStatusId: input.AgentStatusId }),
3547
+ ...(input.AgentStatusId != null && { AgentStatusId: input.AgentStatusId }),
3594
3548
  });
3595
3549
  return new protocol_http_1.HttpRequest({
3596
3550
  protocol,
@@ -3641,10 +3595,9 @@ const serializeAws_restJson1ResumeContactRecordingCommand = async (input, contex
3641
3595
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/resume-recording";
3642
3596
  let body;
3643
3597
  body = JSON.stringify({
3644
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
3645
- ...(input.InitialContactId !== undefined &&
3646
- input.InitialContactId !== null && { InitialContactId: input.InitialContactId }),
3647
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3598
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
3599
+ ...(input.InitialContactId != null && { InitialContactId: input.InitialContactId }),
3600
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
3648
3601
  });
3649
3602
  return new protocol_http_1.HttpRequest({
3650
3603
  protocol,
@@ -3665,15 +3618,12 @@ const serializeAws_restJson1SearchAvailablePhoneNumbersCommand = async (input, c
3665
3618
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/search-available";
3666
3619
  let body;
3667
3620
  body = JSON.stringify({
3668
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3669
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3670
- ...(input.PhoneNumberCountryCode !== undefined &&
3671
- input.PhoneNumberCountryCode !== null && { PhoneNumberCountryCode: input.PhoneNumberCountryCode }),
3672
- ...(input.PhoneNumberPrefix !== undefined &&
3673
- input.PhoneNumberPrefix !== null && { PhoneNumberPrefix: input.PhoneNumberPrefix }),
3674
- ...(input.PhoneNumberType !== undefined &&
3675
- input.PhoneNumberType !== null && { PhoneNumberType: input.PhoneNumberType }),
3676
- ...(input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }),
3621
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3622
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3623
+ ...(input.PhoneNumberCountryCode != null && { PhoneNumberCountryCode: input.PhoneNumberCountryCode }),
3624
+ ...(input.PhoneNumberPrefix != null && { PhoneNumberPrefix: input.PhoneNumberPrefix }),
3625
+ ...(input.PhoneNumberType != null && { PhoneNumberType: input.PhoneNumberType }),
3626
+ ...(input.TargetArn != null && { TargetArn: input.TargetArn }),
3677
3627
  });
3678
3628
  return new protocol_http_1.HttpRequest({
3679
3629
  protocol,
@@ -3694,15 +3644,13 @@ const serializeAws_restJson1SearchUsersCommand = async (input, context) => {
3694
3644
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/search-users";
3695
3645
  let body;
3696
3646
  body = JSON.stringify({
3697
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3698
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3699
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3700
- ...(input.SearchCriteria !== undefined &&
3701
- input.SearchCriteria !== null && {
3647
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
3648
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3649
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3650
+ ...(input.SearchCriteria != null && {
3702
3651
  SearchCriteria: serializeAws_restJson1UserSearchCriteria(input.SearchCriteria, context),
3703
3652
  }),
3704
- ...(input.SearchFilter !== undefined &&
3705
- input.SearchFilter !== null && {
3653
+ ...(input.SearchFilter != null && {
3706
3654
  SearchFilter: serializeAws_restJson1UserSearchFilter(input.SearchFilter, context),
3707
3655
  }),
3708
3656
  });
@@ -3735,12 +3683,11 @@ const serializeAws_restJson1SearchVocabulariesCommand = async (input, context) =
3735
3683
  }
3736
3684
  let body;
3737
3685
  body = JSON.stringify({
3738
- ...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
3739
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3740
- ...(input.NameStartsWith !== undefined &&
3741
- input.NameStartsWith !== null && { NameStartsWith: input.NameStartsWith }),
3742
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3743
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
3686
+ ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
3687
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3688
+ ...(input.NameStartsWith != null && { NameStartsWith: input.NameStartsWith }),
3689
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3690
+ ...(input.State != null && { State: input.State }),
3744
3691
  });
3745
3692
  return new protocol_http_1.HttpRequest({
3746
3693
  protocol,
@@ -3762,23 +3709,18 @@ const serializeAws_restJson1StartChatContactCommand = async (input, context) =>
3762
3709
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/chat";
3763
3710
  let body;
3764
3711
  body = JSON.stringify({
3765
- ...(input.Attributes !== undefined &&
3766
- input.Attributes !== null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
3767
- ...(input.ChatDurationInMinutes !== undefined &&
3768
- input.ChatDurationInMinutes !== null && { ChatDurationInMinutes: input.ChatDurationInMinutes }),
3712
+ ...(input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
3713
+ ...(input.ChatDurationInMinutes != null && { ChatDurationInMinutes: input.ChatDurationInMinutes }),
3769
3714
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
3770
- ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
3771
- ...(input.InitialMessage !== undefined &&
3772
- input.InitialMessage !== null && {
3715
+ ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
3716
+ ...(input.InitialMessage != null && {
3773
3717
  InitialMessage: serializeAws_restJson1ChatMessage(input.InitialMessage, context),
3774
3718
  }),
3775
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3776
- ...(input.ParticipantDetails !== undefined &&
3777
- input.ParticipantDetails !== null && {
3719
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
3720
+ ...(input.ParticipantDetails != null && {
3778
3721
  ParticipantDetails: serializeAws_restJson1ParticipantDetails(input.ParticipantDetails, context),
3779
3722
  }),
3780
- ...(input.SupportedMessagingContentTypes !== undefined &&
3781
- input.SupportedMessagingContentTypes !== null && {
3723
+ ...(input.SupportedMessagingContentTypes != null && {
3782
3724
  SupportedMessagingContentTypes: serializeAws_restJson1SupportedMessagingContentTypes(input.SupportedMessagingContentTypes, context),
3783
3725
  }),
3784
3726
  });
@@ -3801,12 +3743,10 @@ const serializeAws_restJson1StartContactRecordingCommand = async (input, context
3801
3743
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/start-recording";
3802
3744
  let body;
3803
3745
  body = JSON.stringify({
3804
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
3805
- ...(input.InitialContactId !== undefined &&
3806
- input.InitialContactId !== null && { InitialContactId: input.InitialContactId }),
3807
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3808
- ...(input.VoiceRecordingConfiguration !== undefined &&
3809
- input.VoiceRecordingConfiguration !== null && {
3746
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
3747
+ ...(input.InitialContactId != null && { InitialContactId: input.InitialContactId }),
3748
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
3749
+ ...(input.VoiceRecordingConfiguration != null && {
3810
3750
  VoiceRecordingConfiguration: serializeAws_restJson1VoiceRecordingConfiguration(input.VoiceRecordingConfiguration, context),
3811
3751
  }),
3812
3752
  });
@@ -3830,13 +3770,12 @@ const serializeAws_restJson1StartContactStreamingCommand = async (input, context
3830
3770
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/start-streaming";
3831
3771
  let body;
3832
3772
  body = JSON.stringify({
3833
- ...(input.ChatStreamingConfiguration !== undefined &&
3834
- input.ChatStreamingConfiguration !== null && {
3773
+ ...(input.ChatStreamingConfiguration != null && {
3835
3774
  ChatStreamingConfiguration: serializeAws_restJson1ChatStreamingConfiguration(input.ChatStreamingConfiguration, context),
3836
3775
  }),
3837
3776
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
3838
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
3839
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3777
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
3778
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
3840
3779
  });
3841
3780
  return new protocol_http_1.HttpRequest({
3842
3781
  protocol,
@@ -3858,22 +3797,18 @@ const serializeAws_restJson1StartOutboundVoiceContactCommand = async (input, con
3858
3797
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/outbound-voice";
3859
3798
  let body;
3860
3799
  body = JSON.stringify({
3861
- ...(input.AnswerMachineDetectionConfig !== undefined &&
3862
- input.AnswerMachineDetectionConfig !== null && {
3800
+ ...(input.AnswerMachineDetectionConfig != null && {
3863
3801
  AnswerMachineDetectionConfig: serializeAws_restJson1AnswerMachineDetectionConfig(input.AnswerMachineDetectionConfig, context),
3864
3802
  }),
3865
- ...(input.Attributes !== undefined &&
3866
- input.Attributes !== null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
3867
- ...(input.CampaignId !== undefined && input.CampaignId !== null && { CampaignId: input.CampaignId }),
3803
+ ...(input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
3804
+ ...(input.CampaignId != null && { CampaignId: input.CampaignId }),
3868
3805
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
3869
- ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
3870
- ...(input.DestinationPhoneNumber !== undefined &&
3871
- input.DestinationPhoneNumber !== null && { DestinationPhoneNumber: input.DestinationPhoneNumber }),
3872
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3873
- ...(input.QueueId !== undefined && input.QueueId !== null && { QueueId: input.QueueId }),
3874
- ...(input.SourcePhoneNumber !== undefined &&
3875
- input.SourcePhoneNumber !== null && { SourcePhoneNumber: input.SourcePhoneNumber }),
3876
- ...(input.TrafficType !== undefined && input.TrafficType !== null && { TrafficType: input.TrafficType }),
3806
+ ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
3807
+ ...(input.DestinationPhoneNumber != null && { DestinationPhoneNumber: input.DestinationPhoneNumber }),
3808
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
3809
+ ...(input.QueueId != null && { QueueId: input.QueueId }),
3810
+ ...(input.SourcePhoneNumber != null && { SourcePhoneNumber: input.SourcePhoneNumber }),
3811
+ ...(input.TrafficType != null && { TrafficType: input.TrafficType }),
3877
3812
  });
3878
3813
  return new protocol_http_1.HttpRequest({
3879
3814
  protocol,
@@ -3895,23 +3830,17 @@ const serializeAws_restJson1StartTaskContactCommand = async (input, context) =>
3895
3830
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/task";
3896
3831
  let body;
3897
3832
  body = JSON.stringify({
3898
- ...(input.Attributes !== undefined &&
3899
- input.Attributes !== null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
3833
+ ...(input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
3900
3834
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
3901
- ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
3902
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3903
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3904
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3905
- ...(input.PreviousContactId !== undefined &&
3906
- input.PreviousContactId !== null && { PreviousContactId: input.PreviousContactId }),
3907
- ...(input.QuickConnectId !== undefined &&
3908
- input.QuickConnectId !== null && { QuickConnectId: input.QuickConnectId }),
3909
- ...(input.References !== undefined &&
3910
- input.References !== null && { References: serializeAws_restJson1ContactReferences(input.References, context) }),
3911
- ...(input.ScheduledTime !== undefined &&
3912
- input.ScheduledTime !== null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
3913
- ...(input.TaskTemplateId !== undefined &&
3914
- input.TaskTemplateId !== null && { TaskTemplateId: input.TaskTemplateId }),
3835
+ ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
3836
+ ...(input.Description != null && { Description: input.Description }),
3837
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
3838
+ ...(input.Name != null && { Name: input.Name }),
3839
+ ...(input.PreviousContactId != null && { PreviousContactId: input.PreviousContactId }),
3840
+ ...(input.QuickConnectId != null && { QuickConnectId: input.QuickConnectId }),
3841
+ ...(input.References != null && { References: serializeAws_restJson1ContactReferences(input.References, context) }),
3842
+ ...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
3843
+ ...(input.TaskTemplateId != null && { TaskTemplateId: input.TaskTemplateId }),
3915
3844
  });
3916
3845
  return new protocol_http_1.HttpRequest({
3917
3846
  protocol,
@@ -3932,8 +3861,8 @@ const serializeAws_restJson1StopContactCommand = async (input, context) => {
3932
3861
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/stop";
3933
3862
  let body;
3934
3863
  body = JSON.stringify({
3935
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
3936
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3864
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
3865
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
3937
3866
  });
3938
3867
  return new protocol_http_1.HttpRequest({
3939
3868
  protocol,
@@ -3954,10 +3883,9 @@ const serializeAws_restJson1StopContactRecordingCommand = async (input, context)
3954
3883
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/stop-recording";
3955
3884
  let body;
3956
3885
  body = JSON.stringify({
3957
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
3958
- ...(input.InitialContactId !== undefined &&
3959
- input.InitialContactId !== null && { InitialContactId: input.InitialContactId }),
3960
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3886
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
3887
+ ...(input.InitialContactId != null && { InitialContactId: input.InitialContactId }),
3888
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
3961
3889
  });
3962
3890
  return new protocol_http_1.HttpRequest({
3963
3891
  protocol,
@@ -3978,9 +3906,9 @@ const serializeAws_restJson1StopContactStreamingCommand = async (input, context)
3978
3906
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/stop-streaming";
3979
3907
  let body;
3980
3908
  body = JSON.stringify({
3981
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
3982
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3983
- ...(input.StreamingId !== undefined && input.StreamingId !== null && { StreamingId: input.StreamingId }),
3909
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
3910
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
3911
+ ...(input.StreamingId != null && { StreamingId: input.StreamingId }),
3984
3912
  });
3985
3913
  return new protocol_http_1.HttpRequest({
3986
3914
  protocol,
@@ -4001,10 +3929,9 @@ const serializeAws_restJson1SuspendContactRecordingCommand = async (input, conte
4001
3929
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/suspend-recording";
4002
3930
  let body;
4003
3931
  body = JSON.stringify({
4004
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
4005
- ...(input.InitialContactId !== undefined &&
4006
- input.InitialContactId !== null && { InitialContactId: input.InitialContactId }),
4007
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3932
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
3933
+ ...(input.InitialContactId != null && { InitialContactId: input.InitialContactId }),
3934
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
4008
3935
  });
4009
3936
  return new protocol_http_1.HttpRequest({
4010
3937
  protocol,
@@ -4035,7 +3962,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
4035
3962
  }
4036
3963
  let body;
4037
3964
  body = JSON.stringify({
4038
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
3965
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
4039
3966
  });
4040
3967
  return new protocol_http_1.HttpRequest({
4041
3968
  protocol,
@@ -4058,11 +3985,11 @@ const serializeAws_restJson1TransferContactCommand = async (input, context) => {
4058
3985
  let body;
4059
3986
  body = JSON.stringify({
4060
3987
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4061
- ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
4062
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
4063
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
4064
- ...(input.QueueId !== undefined && input.QueueId !== null && { QueueId: input.QueueId }),
4065
- ...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
3988
+ ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
3989
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
3990
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
3991
+ ...(input.QueueId != null && { QueueId: input.QueueId }),
3992
+ ...(input.UserId != null && { UserId: input.UserId }),
4066
3993
  });
4067
3994
  return new protocol_http_1.HttpRequest({
4068
3995
  protocol,
@@ -4134,12 +4061,11 @@ const serializeAws_restJson1UpdateAgentStatusCommand = async (input, context) =>
4134
4061
  }
4135
4062
  let body;
4136
4063
  body = JSON.stringify({
4137
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4138
- ...(input.DisplayOrder !== undefined && input.DisplayOrder !== null && { DisplayOrder: input.DisplayOrder }),
4139
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4140
- ...(input.ResetOrderNumber !== undefined &&
4141
- input.ResetOrderNumber !== null && { ResetOrderNumber: input.ResetOrderNumber }),
4142
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
4064
+ ...(input.Description != null && { Description: input.Description }),
4065
+ ...(input.DisplayOrder != null && { DisplayOrder: input.DisplayOrder }),
4066
+ ...(input.Name != null && { Name: input.Name }),
4067
+ ...(input.ResetOrderNumber != null && { ResetOrderNumber: input.ResetOrderNumber }),
4068
+ ...(input.State != null && { State: input.State }),
4143
4069
  });
4144
4070
  return new protocol_http_1.HttpRequest({
4145
4071
  protocol,
@@ -4180,10 +4106,9 @@ const serializeAws_restJson1UpdateContactCommand = async (input, context) => {
4180
4106
  }
4181
4107
  let body;
4182
4108
  body = JSON.stringify({
4183
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4184
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4185
- ...(input.References !== undefined &&
4186
- input.References !== null && { References: serializeAws_restJson1ContactReferences(input.References, context) }),
4109
+ ...(input.Description != null && { Description: input.Description }),
4110
+ ...(input.Name != null && { Name: input.Name }),
4111
+ ...(input.References != null && { References: serializeAws_restJson1ContactReferences(input.References, context) }),
4187
4112
  });
4188
4113
  return new protocol_http_1.HttpRequest({
4189
4114
  protocol,
@@ -4204,11 +4129,9 @@ const serializeAws_restJson1UpdateContactAttributesCommand = async (input, conte
4204
4129
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/attributes";
4205
4130
  let body;
4206
4131
  body = JSON.stringify({
4207
- ...(input.Attributes !== undefined &&
4208
- input.Attributes !== null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
4209
- ...(input.InitialContactId !== undefined &&
4210
- input.InitialContactId !== null && { InitialContactId: input.InitialContactId }),
4211
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
4132
+ ...(input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
4133
+ ...(input.InitialContactId != null && { InitialContactId: input.InitialContactId }),
4134
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
4212
4135
  });
4213
4136
  return new protocol_http_1.HttpRequest({
4214
4137
  protocol,
@@ -4250,7 +4173,7 @@ const serializeAws_restJson1UpdateContactFlowContentCommand = async (input, cont
4250
4173
  }
4251
4174
  let body;
4252
4175
  body = JSON.stringify({
4253
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
4176
+ ...(input.Content != null && { Content: input.Content }),
4254
4177
  });
4255
4178
  return new protocol_http_1.HttpRequest({
4256
4179
  protocol,
@@ -4292,10 +4215,9 @@ const serializeAws_restJson1UpdateContactFlowMetadataCommand = async (input, con
4292
4215
  }
4293
4216
  let body;
4294
4217
  body = JSON.stringify({
4295
- ...(input.ContactFlowState !== undefined &&
4296
- input.ContactFlowState !== null && { ContactFlowState: input.ContactFlowState }),
4297
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4298
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4218
+ ...(input.ContactFlowState != null && { ContactFlowState: input.ContactFlowState }),
4219
+ ...(input.Description != null && { Description: input.Description }),
4220
+ ...(input.Name != null && { Name: input.Name }),
4299
4221
  });
4300
4222
  return new protocol_http_1.HttpRequest({
4301
4223
  protocol,
@@ -4337,7 +4259,7 @@ const serializeAws_restJson1UpdateContactFlowModuleContentCommand = async (input
4337
4259
  }
4338
4260
  let body;
4339
4261
  body = JSON.stringify({
4340
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
4262
+ ...(input.Content != null && { Content: input.Content }),
4341
4263
  });
4342
4264
  return new protocol_http_1.HttpRequest({
4343
4265
  protocol,
@@ -4379,9 +4301,9 @@ const serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = async (inpu
4379
4301
  }
4380
4302
  let body;
4381
4303
  body = JSON.stringify({
4382
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4383
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4384
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
4304
+ ...(input.Description != null && { Description: input.Description }),
4305
+ ...(input.Name != null && { Name: input.Name }),
4306
+ ...(input.State != null && { State: input.State }),
4385
4307
  });
4386
4308
  return new protocol_http_1.HttpRequest({
4387
4309
  protocol,
@@ -4423,8 +4345,8 @@ const serializeAws_restJson1UpdateContactFlowNameCommand = async (input, context
4423
4345
  }
4424
4346
  let body;
4425
4347
  body = JSON.stringify({
4426
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4427
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4348
+ ...(input.Description != null && { Description: input.Description }),
4349
+ ...(input.Name != null && { Name: input.Name }),
4428
4350
  });
4429
4351
  return new protocol_http_1.HttpRequest({
4430
4352
  protocol,
@@ -4445,10 +4367,9 @@ const serializeAws_restJson1UpdateContactScheduleCommand = async (input, context
4445
4367
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/schedule";
4446
4368
  let body;
4447
4369
  body = JSON.stringify({
4448
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
4449
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
4450
- ...(input.ScheduledTime !== undefined &&
4451
- input.ScheduledTime !== null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
4370
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
4371
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
4372
+ ...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
4452
4373
  });
4453
4374
  return new protocol_http_1.HttpRequest({
4454
4375
  protocol,
@@ -4490,11 +4411,10 @@ const serializeAws_restJson1UpdateHoursOfOperationCommand = async (input, contex
4490
4411
  }
4491
4412
  let body;
4492
4413
  body = JSON.stringify({
4493
- ...(input.Config !== undefined &&
4494
- input.Config !== null && { Config: serializeAws_restJson1HoursOfOperationConfigList(input.Config, context) }),
4495
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4496
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4497
- ...(input.TimeZone !== undefined && input.TimeZone !== null && { TimeZone: input.TimeZone }),
4414
+ ...(input.Config != null && { Config: serializeAws_restJson1HoursOfOperationConfigList(input.Config, context) }),
4415
+ ...(input.Description != null && { Description: input.Description }),
4416
+ ...(input.Name != null && { Name: input.Name }),
4417
+ ...(input.TimeZone != null && { TimeZone: input.TimeZone }),
4498
4418
  });
4499
4419
  return new protocol_http_1.HttpRequest({
4500
4420
  protocol,
@@ -4536,7 +4456,7 @@ const serializeAws_restJson1UpdateInstanceAttributeCommand = async (input, conte
4536
4456
  }
4537
4457
  let body;
4538
4458
  body = JSON.stringify({
4539
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
4459
+ ...(input.Value != null && { Value: input.Value }),
4540
4460
  });
4541
4461
  return new protocol_http_1.HttpRequest({
4542
4462
  protocol,
@@ -4581,8 +4501,7 @@ const serializeAws_restJson1UpdateInstanceStorageConfigCommand = async (input, c
4581
4501
  };
4582
4502
  let body;
4583
4503
  body = JSON.stringify({
4584
- ...(input.StorageConfig !== undefined &&
4585
- input.StorageConfig !== null && {
4504
+ ...(input.StorageConfig != null && {
4586
4505
  StorageConfig: serializeAws_restJson1InstanceStorageConfig(input.StorageConfig, context),
4587
4506
  }),
4588
4507
  });
@@ -4618,7 +4537,7 @@ const serializeAws_restJson1UpdatePhoneNumberCommand = async (input, context) =>
4618
4537
  let body;
4619
4538
  body = JSON.stringify({
4620
4539
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4621
- ...(input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }),
4540
+ ...(input.TargetArn != null && { TargetArn: input.TargetArn }),
4622
4541
  });
4623
4542
  return new protocol_http_1.HttpRequest({
4624
4543
  protocol,
@@ -4660,8 +4579,7 @@ const serializeAws_restJson1UpdateQueueHoursOfOperationCommand = async (input, c
4660
4579
  }
4661
4580
  let body;
4662
4581
  body = JSON.stringify({
4663
- ...(input.HoursOfOperationId !== undefined &&
4664
- input.HoursOfOperationId !== null && { HoursOfOperationId: input.HoursOfOperationId }),
4582
+ ...(input.HoursOfOperationId != null && { HoursOfOperationId: input.HoursOfOperationId }),
4665
4583
  });
4666
4584
  return new protocol_http_1.HttpRequest({
4667
4585
  protocol,
@@ -4703,7 +4621,7 @@ const serializeAws_restJson1UpdateQueueMaxContactsCommand = async (input, contex
4703
4621
  }
4704
4622
  let body;
4705
4623
  body = JSON.stringify({
4706
- ...(input.MaxContacts !== undefined && input.MaxContacts !== null && { MaxContacts: input.MaxContacts }),
4624
+ ...(input.MaxContacts != null && { MaxContacts: input.MaxContacts }),
4707
4625
  });
4708
4626
  return new protocol_http_1.HttpRequest({
4709
4627
  protocol,
@@ -4744,8 +4662,8 @@ const serializeAws_restJson1UpdateQueueNameCommand = async (input, context) => {
4744
4662
  }
4745
4663
  let body;
4746
4664
  body = JSON.stringify({
4747
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4748
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4665
+ ...(input.Description != null && { Description: input.Description }),
4666
+ ...(input.Name != null && { Name: input.Name }),
4749
4667
  });
4750
4668
  return new protocol_http_1.HttpRequest({
4751
4669
  protocol,
@@ -4787,8 +4705,7 @@ const serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = async (inpu
4787
4705
  }
4788
4706
  let body;
4789
4707
  body = JSON.stringify({
4790
- ...(input.OutboundCallerConfig !== undefined &&
4791
- input.OutboundCallerConfig !== null && {
4708
+ ...(input.OutboundCallerConfig != null && {
4792
4709
  OutboundCallerConfig: serializeAws_restJson1OutboundCallerConfig(input.OutboundCallerConfig, context),
4793
4710
  }),
4794
4711
  });
@@ -4831,7 +4748,7 @@ const serializeAws_restJson1UpdateQueueStatusCommand = async (input, context) =>
4831
4748
  }
4832
4749
  let body;
4833
4750
  body = JSON.stringify({
4834
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
4751
+ ...(input.Status != null && { Status: input.Status }),
4835
4752
  });
4836
4753
  return new protocol_http_1.HttpRequest({
4837
4754
  protocol,
@@ -4873,8 +4790,7 @@ const serializeAws_restJson1UpdateQuickConnectConfigCommand = async (input, cont
4873
4790
  }
4874
4791
  let body;
4875
4792
  body = JSON.stringify({
4876
- ...(input.QuickConnectConfig !== undefined &&
4877
- input.QuickConnectConfig !== null && {
4793
+ ...(input.QuickConnectConfig != null && {
4878
4794
  QuickConnectConfig: serializeAws_restJson1QuickConnectConfig(input.QuickConnectConfig, context),
4879
4795
  }),
4880
4796
  });
@@ -4918,8 +4834,8 @@ const serializeAws_restJson1UpdateQuickConnectNameCommand = async (input, contex
4918
4834
  }
4919
4835
  let body;
4920
4836
  body = JSON.stringify({
4921
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4922
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4837
+ ...(input.Description != null && { Description: input.Description }),
4838
+ ...(input.Name != null && { Name: input.Name }),
4923
4839
  });
4924
4840
  return new protocol_http_1.HttpRequest({
4925
4841
  protocol,
@@ -4961,8 +4877,7 @@ const serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = async (inpu
4961
4877
  }
4962
4878
  let body;
4963
4879
  body = JSON.stringify({
4964
- ...(input.MediaConcurrencies !== undefined &&
4965
- input.MediaConcurrencies !== null && {
4880
+ ...(input.MediaConcurrencies != null && {
4966
4881
  MediaConcurrencies: serializeAws_restJson1MediaConcurrencies(input.MediaConcurrencies, context),
4967
4882
  }),
4968
4883
  });
@@ -5006,8 +4921,7 @@ const serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = as
5006
4921
  }
5007
4922
  let body;
5008
4923
  body = JSON.stringify({
5009
- ...(input.DefaultOutboundQueueId !== undefined &&
5010
- input.DefaultOutboundQueueId !== null && { DefaultOutboundQueueId: input.DefaultOutboundQueueId }),
4924
+ ...(input.DefaultOutboundQueueId != null && { DefaultOutboundQueueId: input.DefaultOutboundQueueId }),
5011
4925
  });
5012
4926
  return new protocol_http_1.HttpRequest({
5013
4927
  protocol,
@@ -5049,8 +4963,8 @@ const serializeAws_restJson1UpdateRoutingProfileNameCommand = async (input, cont
5049
4963
  }
5050
4964
  let body;
5051
4965
  body = JSON.stringify({
5052
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
5053
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4966
+ ...(input.Description != null && { Description: input.Description }),
4967
+ ...(input.Name != null && { Name: input.Name }),
5054
4968
  });
5055
4969
  return new protocol_http_1.HttpRequest({
5056
4970
  protocol,
@@ -5092,8 +5006,7 @@ const serializeAws_restJson1UpdateRoutingProfileQueuesCommand = async (input, co
5092
5006
  }
5093
5007
  let body;
5094
5008
  body = JSON.stringify({
5095
- ...(input.QueueConfigs !== undefined &&
5096
- input.QueueConfigs !== null && {
5009
+ ...(input.QueueConfigs != null && {
5097
5010
  QueueConfigs: serializeAws_restJson1RoutingProfileQueueConfigList(input.QueueConfigs, context),
5098
5011
  }),
5099
5012
  });
@@ -5137,9 +5050,10 @@ const serializeAws_restJson1UpdateSecurityProfileCommand = async (input, context
5137
5050
  }
5138
5051
  let body;
5139
5052
  body = JSON.stringify({
5140
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
5141
- ...(input.Permissions !== undefined &&
5142
- input.Permissions !== null && { Permissions: serializeAws_restJson1PermissionsList(input.Permissions, context) }),
5053
+ ...(input.Description != null && { Description: input.Description }),
5054
+ ...(input.Permissions != null && {
5055
+ Permissions: serializeAws_restJson1PermissionsList(input.Permissions, context),
5056
+ }),
5143
5057
  });
5144
5058
  return new protocol_http_1.HttpRequest({
5145
5059
  protocol,
@@ -5181,18 +5095,15 @@ const serializeAws_restJson1UpdateTaskTemplateCommand = async (input, context) =
5181
5095
  }
5182
5096
  let body;
5183
5097
  body = JSON.stringify({
5184
- ...(input.Constraints !== undefined &&
5185
- input.Constraints !== null && {
5098
+ ...(input.Constraints != null && {
5186
5099
  Constraints: serializeAws_restJson1TaskTemplateConstraints(input.Constraints, context),
5187
5100
  }),
5188
- ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
5189
- ...(input.Defaults !== undefined &&
5190
- input.Defaults !== null && { Defaults: serializeAws_restJson1TaskTemplateDefaults(input.Defaults, context) }),
5191
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
5192
- ...(input.Fields !== undefined &&
5193
- input.Fields !== null && { Fields: serializeAws_restJson1TaskTemplateFields(input.Fields, context) }),
5194
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
5195
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
5101
+ ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
5102
+ ...(input.Defaults != null && { Defaults: serializeAws_restJson1TaskTemplateDefaults(input.Defaults, context) }),
5103
+ ...(input.Description != null && { Description: input.Description }),
5104
+ ...(input.Fields != null && { Fields: serializeAws_restJson1TaskTemplateFields(input.Fields, context) }),
5105
+ ...(input.Name != null && { Name: input.Name }),
5106
+ ...(input.Status != null && { Status: input.Status }),
5196
5107
  });
5197
5108
  return new protocol_http_1.HttpRequest({
5198
5109
  protocol,
@@ -5233,8 +5144,7 @@ const serializeAws_restJson1UpdateUserHierarchyCommand = async (input, context)
5233
5144
  }
5234
5145
  let body;
5235
5146
  body = JSON.stringify({
5236
- ...(input.HierarchyGroupId !== undefined &&
5237
- input.HierarchyGroupId !== null && { HierarchyGroupId: input.HierarchyGroupId }),
5147
+ ...(input.HierarchyGroupId != null && { HierarchyGroupId: input.HierarchyGroupId }),
5238
5148
  });
5239
5149
  return new protocol_http_1.HttpRequest({
5240
5150
  protocol,
@@ -5276,7 +5186,7 @@ const serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = async (input,
5276
5186
  }
5277
5187
  let body;
5278
5188
  body = JSON.stringify({
5279
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
5189
+ ...(input.Name != null && { Name: input.Name }),
5280
5190
  });
5281
5191
  return new protocol_http_1.HttpRequest({
5282
5192
  protocol,
@@ -5307,8 +5217,7 @@ const serializeAws_restJson1UpdateUserHierarchyStructureCommand = async (input,
5307
5217
  }
5308
5218
  let body;
5309
5219
  body = JSON.stringify({
5310
- ...(input.HierarchyStructure !== undefined &&
5311
- input.HierarchyStructure !== null && {
5220
+ ...(input.HierarchyStructure != null && {
5312
5221
  HierarchyStructure: serializeAws_restJson1HierarchyStructureUpdate(input.HierarchyStructure, context),
5313
5222
  }),
5314
5223
  });
@@ -5352,8 +5261,7 @@ const serializeAws_restJson1UpdateUserIdentityInfoCommand = async (input, contex
5352
5261
  }
5353
5262
  let body;
5354
5263
  body = JSON.stringify({
5355
- ...(input.IdentityInfo !== undefined &&
5356
- input.IdentityInfo !== null && {
5264
+ ...(input.IdentityInfo != null && {
5357
5265
  IdentityInfo: serializeAws_restJson1UserIdentityInfo(input.IdentityInfo, context),
5358
5266
  }),
5359
5267
  });
@@ -5396,8 +5304,9 @@ const serializeAws_restJson1UpdateUserPhoneConfigCommand = async (input, context
5396
5304
  }
5397
5305
  let body;
5398
5306
  body = JSON.stringify({
5399
- ...(input.PhoneConfig !== undefined &&
5400
- input.PhoneConfig !== null && { PhoneConfig: serializeAws_restJson1UserPhoneConfig(input.PhoneConfig, context) }),
5307
+ ...(input.PhoneConfig != null && {
5308
+ PhoneConfig: serializeAws_restJson1UserPhoneConfig(input.PhoneConfig, context),
5309
+ }),
5401
5310
  });
5402
5311
  return new protocol_http_1.HttpRequest({
5403
5312
  protocol,
@@ -5439,8 +5348,7 @@ const serializeAws_restJson1UpdateUserRoutingProfileCommand = async (input, cont
5439
5348
  }
5440
5349
  let body;
5441
5350
  body = JSON.stringify({
5442
- ...(input.RoutingProfileId !== undefined &&
5443
- input.RoutingProfileId !== null && { RoutingProfileId: input.RoutingProfileId }),
5351
+ ...(input.RoutingProfileId != null && { RoutingProfileId: input.RoutingProfileId }),
5444
5352
  });
5445
5353
  return new protocol_http_1.HttpRequest({
5446
5354
  protocol,
@@ -5482,8 +5390,7 @@ const serializeAws_restJson1UpdateUserSecurityProfilesCommand = async (input, co
5482
5390
  }
5483
5391
  let body;
5484
5392
  body = JSON.stringify({
5485
- ...(input.SecurityProfileIds !== undefined &&
5486
- input.SecurityProfileIds !== null && {
5393
+ ...(input.SecurityProfileIds != null && {
5487
5394
  SecurityProfileIds: serializeAws_restJson1SecurityProfileIds(input.SecurityProfileIds, context),
5488
5395
  }),
5489
5396
  });
@@ -13499,10 +13406,8 @@ const deserializeAws_restJson1UserNotFoundExceptionResponse = async (parsedOutpu
13499
13406
  };
13500
13407
  const serializeAws_restJson1AnswerMachineDetectionConfig = (input, context) => {
13501
13408
  return {
13502
- ...(input.AwaitAnswerMachinePrompt !== undefined &&
13503
- input.AwaitAnswerMachinePrompt !== null && { AwaitAnswerMachinePrompt: input.AwaitAnswerMachinePrompt }),
13504
- ...(input.EnableAnswerMachineDetection !== undefined &&
13505
- input.EnableAnswerMachineDetection !== null && {
13409
+ ...(input.AwaitAnswerMachinePrompt != null && { AwaitAnswerMachinePrompt: input.AwaitAnswerMachinePrompt }),
13410
+ ...(input.EnableAnswerMachineDetection != null && {
13506
13411
  EnableAnswerMachineDetection: input.EnableAnswerMachineDetection,
13507
13412
  }),
13508
13413
  };
@@ -13530,20 +13435,18 @@ const serializeAws_restJson1Channels = (input, context) => {
13530
13435
  };
13531
13436
  const serializeAws_restJson1ChatMessage = (input, context) => {
13532
13437
  return {
13533
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
13534
- ...(input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType }),
13438
+ ...(input.Content != null && { Content: input.Content }),
13439
+ ...(input.ContentType != null && { ContentType: input.ContentType }),
13535
13440
  };
13536
13441
  };
13537
13442
  const serializeAws_restJson1ChatStreamingConfiguration = (input, context) => {
13538
13443
  return {
13539
- ...(input.StreamingEndpointArn !== undefined &&
13540
- input.StreamingEndpointArn !== null && { StreamingEndpointArn: input.StreamingEndpointArn }),
13444
+ ...(input.StreamingEndpointArn != null && { StreamingEndpointArn: input.StreamingEndpointArn }),
13541
13445
  };
13542
13446
  };
13543
13447
  const serializeAws_restJson1ContactFilter = (input, context) => {
13544
13448
  return {
13545
- ...(input.ContactStates !== undefined &&
13546
- input.ContactStates !== null && {
13449
+ ...(input.ContactStates != null && {
13547
13450
  ContactStates: serializeAws_restJson1ContactStates(input.ContactStates, context),
13548
13451
  }),
13549
13452
  };
@@ -13571,22 +13474,21 @@ const serializeAws_restJson1ContactStates = (input, context) => {
13571
13474
  };
13572
13475
  const serializeAws_restJson1ControlPlaneTagFilter = (input, context) => {
13573
13476
  return {
13574
- ...(input.AndConditions !== undefined &&
13575
- input.AndConditions !== null && {
13477
+ ...(input.AndConditions != null && {
13576
13478
  AndConditions: serializeAws_restJson1TagAndConditionList(input.AndConditions, context),
13577
13479
  }),
13578
- ...(input.OrConditions !== undefined &&
13579
- input.OrConditions !== null && {
13480
+ ...(input.OrConditions != null && {
13580
13481
  OrConditions: serializeAws_restJson1TagOrConditionList(input.OrConditions, context),
13581
13482
  }),
13582
- ...(input.TagCondition !== undefined &&
13583
- input.TagCondition !== null && { TagCondition: serializeAws_restJson1TagCondition(input.TagCondition, context) }),
13483
+ ...(input.TagCondition != null && {
13484
+ TagCondition: serializeAws_restJson1TagCondition(input.TagCondition, context),
13485
+ }),
13584
13486
  };
13585
13487
  };
13586
13488
  const serializeAws_restJson1CurrentMetric = (input, context) => {
13587
13489
  return {
13588
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
13589
- ...(input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }),
13490
+ ...(input.Name != null && { Name: input.Name }),
13491
+ ...(input.Unit != null && { Unit: input.Unit }),
13590
13492
  };
13591
13493
  };
13592
13494
  const serializeAws_restJson1CurrentMetrics = (input, context) => {
@@ -13601,17 +13503,14 @@ const serializeAws_restJson1CurrentMetrics = (input, context) => {
13601
13503
  };
13602
13504
  const serializeAws_restJson1EncryptionConfig = (input, context) => {
13603
13505
  return {
13604
- ...(input.EncryptionType !== undefined &&
13605
- input.EncryptionType !== null && { EncryptionType: input.EncryptionType }),
13606
- ...(input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId }),
13506
+ ...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
13507
+ ...(input.KeyId != null && { KeyId: input.KeyId }),
13607
13508
  };
13608
13509
  };
13609
13510
  const serializeAws_restJson1Filters = (input, context) => {
13610
13511
  return {
13611
- ...(input.Channels !== undefined &&
13612
- input.Channels !== null && { Channels: serializeAws_restJson1Channels(input.Channels, context) }),
13613
- ...(input.Queues !== undefined &&
13614
- input.Queues !== null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }),
13512
+ ...(input.Channels != null && { Channels: serializeAws_restJson1Channels(input.Channels, context) }),
13513
+ ...(input.Queues != null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }),
13615
13514
  };
13616
13515
  };
13617
13516
  const serializeAws_restJson1Groupings = (input, context) => {
@@ -13626,39 +13525,32 @@ const serializeAws_restJson1Groupings = (input, context) => {
13626
13525
  };
13627
13526
  const serializeAws_restJson1HierarchyGroupCondition = (input, context) => {
13628
13527
  return {
13629
- ...(input.HierarchyGroupMatchType !== undefined &&
13630
- input.HierarchyGroupMatchType !== null && { HierarchyGroupMatchType: input.HierarchyGroupMatchType }),
13631
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
13528
+ ...(input.HierarchyGroupMatchType != null && { HierarchyGroupMatchType: input.HierarchyGroupMatchType }),
13529
+ ...(input.Value != null && { Value: input.Value }),
13632
13530
  };
13633
13531
  };
13634
13532
  const serializeAws_restJson1HierarchyLevelUpdate = (input, context) => {
13635
13533
  return {
13636
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
13534
+ ...(input.Name != null && { Name: input.Name }),
13637
13535
  };
13638
13536
  };
13639
13537
  const serializeAws_restJson1HierarchyStructureUpdate = (input, context) => {
13640
13538
  return {
13641
- ...(input.LevelFive !== undefined &&
13642
- input.LevelFive !== null && { LevelFive: serializeAws_restJson1HierarchyLevelUpdate(input.LevelFive, context) }),
13643
- ...(input.LevelFour !== undefined &&
13644
- input.LevelFour !== null && { LevelFour: serializeAws_restJson1HierarchyLevelUpdate(input.LevelFour, context) }),
13645
- ...(input.LevelOne !== undefined &&
13646
- input.LevelOne !== null && { LevelOne: serializeAws_restJson1HierarchyLevelUpdate(input.LevelOne, context) }),
13647
- ...(input.LevelThree !== undefined &&
13648
- input.LevelThree !== null && {
13539
+ ...(input.LevelFive != null && { LevelFive: serializeAws_restJson1HierarchyLevelUpdate(input.LevelFive, context) }),
13540
+ ...(input.LevelFour != null && { LevelFour: serializeAws_restJson1HierarchyLevelUpdate(input.LevelFour, context) }),
13541
+ ...(input.LevelOne != null && { LevelOne: serializeAws_restJson1HierarchyLevelUpdate(input.LevelOne, context) }),
13542
+ ...(input.LevelThree != null && {
13649
13543
  LevelThree: serializeAws_restJson1HierarchyLevelUpdate(input.LevelThree, context),
13650
13544
  }),
13651
- ...(input.LevelTwo !== undefined &&
13652
- input.LevelTwo !== null && { LevelTwo: serializeAws_restJson1HierarchyLevelUpdate(input.LevelTwo, context) }),
13545
+ ...(input.LevelTwo != null && { LevelTwo: serializeAws_restJson1HierarchyLevelUpdate(input.LevelTwo, context) }),
13653
13546
  };
13654
13547
  };
13655
13548
  const serializeAws_restJson1HistoricalMetric = (input, context) => {
13656
13549
  return {
13657
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
13658
- ...(input.Statistic !== undefined && input.Statistic !== null && { Statistic: input.Statistic }),
13659
- ...(input.Threshold !== undefined &&
13660
- input.Threshold !== null && { Threshold: serializeAws_restJson1Threshold(input.Threshold, context) }),
13661
- ...(input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }),
13550
+ ...(input.Name != null && { Name: input.Name }),
13551
+ ...(input.Statistic != null && { Statistic: input.Statistic }),
13552
+ ...(input.Threshold != null && { Threshold: serializeAws_restJson1Threshold(input.Threshold, context) }),
13553
+ ...(input.Unit != null && { Unit: input.Unit }),
13662
13554
  };
13663
13555
  };
13664
13556
  const serializeAws_restJson1HistoricalMetrics = (input, context) => {
@@ -13673,11 +13565,9 @@ const serializeAws_restJson1HistoricalMetrics = (input, context) => {
13673
13565
  };
13674
13566
  const serializeAws_restJson1HoursOfOperationConfig = (input, context) => {
13675
13567
  return {
13676
- ...(input.Day !== undefined && input.Day !== null && { Day: input.Day }),
13677
- ...(input.EndTime !== undefined &&
13678
- input.EndTime !== null && { EndTime: serializeAws_restJson1HoursOfOperationTimeSlice(input.EndTime, context) }),
13679
- ...(input.StartTime !== undefined &&
13680
- input.StartTime !== null && {
13568
+ ...(input.Day != null && { Day: input.Day }),
13569
+ ...(input.EndTime != null && { EndTime: serializeAws_restJson1HoursOfOperationTimeSlice(input.EndTime, context) }),
13570
+ ...(input.StartTime != null && {
13681
13571
  StartTime: serializeAws_restJson1HoursOfOperationTimeSlice(input.StartTime, context),
13682
13572
  }),
13683
13573
  };
@@ -13694,34 +13584,29 @@ const serializeAws_restJson1HoursOfOperationConfigList = (input, context) => {
13694
13584
  };
13695
13585
  const serializeAws_restJson1HoursOfOperationTimeSlice = (input, context) => {
13696
13586
  return {
13697
- ...(input.Hours !== undefined && input.Hours !== null && { Hours: input.Hours }),
13698
- ...(input.Minutes !== undefined && input.Minutes !== null && { Minutes: input.Minutes }),
13587
+ ...(input.Hours != null && { Hours: input.Hours }),
13588
+ ...(input.Minutes != null && { Minutes: input.Minutes }),
13699
13589
  };
13700
13590
  };
13701
13591
  const serializeAws_restJson1InstanceStorageConfig = (input, context) => {
13702
13592
  return {
13703
- ...(input.AssociationId !== undefined && input.AssociationId !== null && { AssociationId: input.AssociationId }),
13704
- ...(input.KinesisFirehoseConfig !== undefined &&
13705
- input.KinesisFirehoseConfig !== null && {
13593
+ ...(input.AssociationId != null && { AssociationId: input.AssociationId }),
13594
+ ...(input.KinesisFirehoseConfig != null && {
13706
13595
  KinesisFirehoseConfig: serializeAws_restJson1KinesisFirehoseConfig(input.KinesisFirehoseConfig, context),
13707
13596
  }),
13708
- ...(input.KinesisStreamConfig !== undefined &&
13709
- input.KinesisStreamConfig !== null && {
13597
+ ...(input.KinesisStreamConfig != null && {
13710
13598
  KinesisStreamConfig: serializeAws_restJson1KinesisStreamConfig(input.KinesisStreamConfig, context),
13711
13599
  }),
13712
- ...(input.KinesisVideoStreamConfig !== undefined &&
13713
- input.KinesisVideoStreamConfig !== null && {
13600
+ ...(input.KinesisVideoStreamConfig != null && {
13714
13601
  KinesisVideoStreamConfig: serializeAws_restJson1KinesisVideoStreamConfig(input.KinesisVideoStreamConfig, context),
13715
13602
  }),
13716
- ...(input.S3Config !== undefined &&
13717
- input.S3Config !== null && { S3Config: serializeAws_restJson1S3Config(input.S3Config, context) }),
13718
- ...(input.StorageType !== undefined && input.StorageType !== null && { StorageType: input.StorageType }),
13603
+ ...(input.S3Config != null && { S3Config: serializeAws_restJson1S3Config(input.S3Config, context) }),
13604
+ ...(input.StorageType != null && { StorageType: input.StorageType }),
13719
13605
  };
13720
13606
  };
13721
13607
  const serializeAws_restJson1InvisibleFieldInfo = (input, context) => {
13722
13608
  return {
13723
- ...(input.Id !== undefined &&
13724
- input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13609
+ ...(input.Id != null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13725
13610
  };
13726
13611
  };
13727
13612
  const serializeAws_restJson1InvisibleTaskTemplateFields = (input, context) => {
@@ -13736,34 +13621,32 @@ const serializeAws_restJson1InvisibleTaskTemplateFields = (input, context) => {
13736
13621
  };
13737
13622
  const serializeAws_restJson1KinesisFirehoseConfig = (input, context) => {
13738
13623
  return {
13739
- ...(input.FirehoseArn !== undefined && input.FirehoseArn !== null && { FirehoseArn: input.FirehoseArn }),
13624
+ ...(input.FirehoseArn != null && { FirehoseArn: input.FirehoseArn }),
13740
13625
  };
13741
13626
  };
13742
13627
  const serializeAws_restJson1KinesisStreamConfig = (input, context) => {
13743
13628
  return {
13744
- ...(input.StreamArn !== undefined && input.StreamArn !== null && { StreamArn: input.StreamArn }),
13629
+ ...(input.StreamArn != null && { StreamArn: input.StreamArn }),
13745
13630
  };
13746
13631
  };
13747
13632
  const serializeAws_restJson1KinesisVideoStreamConfig = (input, context) => {
13748
13633
  return {
13749
- ...(input.EncryptionConfig !== undefined &&
13750
- input.EncryptionConfig !== null && {
13634
+ ...(input.EncryptionConfig != null && {
13751
13635
  EncryptionConfig: serializeAws_restJson1EncryptionConfig(input.EncryptionConfig, context),
13752
13636
  }),
13753
- ...(input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix }),
13754
- ...(input.RetentionPeriodHours !== undefined &&
13755
- input.RetentionPeriodHours !== null && { RetentionPeriodHours: input.RetentionPeriodHours }),
13637
+ ...(input.Prefix != null && { Prefix: input.Prefix }),
13638
+ ...(input.RetentionPeriodHours != null && { RetentionPeriodHours: input.RetentionPeriodHours }),
13756
13639
  };
13757
13640
  };
13758
13641
  const serializeAws_restJson1LexBot = (input, context) => {
13759
13642
  return {
13760
- ...(input.LexRegion !== undefined && input.LexRegion !== null && { LexRegion: input.LexRegion }),
13761
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
13643
+ ...(input.LexRegion != null && { LexRegion: input.LexRegion }),
13644
+ ...(input.Name != null && { Name: input.Name }),
13762
13645
  };
13763
13646
  };
13764
13647
  const serializeAws_restJson1LexV2Bot = (input, context) => {
13765
13648
  return {
13766
- ...(input.AliasArn !== undefined && input.AliasArn !== null && { AliasArn: input.AliasArn }),
13649
+ ...(input.AliasArn != null && { AliasArn: input.AliasArn }),
13767
13650
  };
13768
13651
  };
13769
13652
  const serializeAws_restJson1MediaConcurrencies = (input, context) => {
@@ -13778,23 +13661,20 @@ const serializeAws_restJson1MediaConcurrencies = (input, context) => {
13778
13661
  };
13779
13662
  const serializeAws_restJson1MediaConcurrency = (input, context) => {
13780
13663
  return {
13781
- ...(input.Channel !== undefined && input.Channel !== null && { Channel: input.Channel }),
13782
- ...(input.Concurrency !== undefined && input.Concurrency !== null && { Concurrency: input.Concurrency }),
13664
+ ...(input.Channel != null && { Channel: input.Channel }),
13665
+ ...(input.Concurrency != null && { Concurrency: input.Concurrency }),
13783
13666
  };
13784
13667
  };
13785
13668
  const serializeAws_restJson1OutboundCallerConfig = (input, context) => {
13786
13669
  return {
13787
- ...(input.OutboundCallerIdName !== undefined &&
13788
- input.OutboundCallerIdName !== null && { OutboundCallerIdName: input.OutboundCallerIdName }),
13789
- ...(input.OutboundCallerIdNumberId !== undefined &&
13790
- input.OutboundCallerIdNumberId !== null && { OutboundCallerIdNumberId: input.OutboundCallerIdNumberId }),
13791
- ...(input.OutboundFlowId !== undefined &&
13792
- input.OutboundFlowId !== null && { OutboundFlowId: input.OutboundFlowId }),
13670
+ ...(input.OutboundCallerIdName != null && { OutboundCallerIdName: input.OutboundCallerIdName }),
13671
+ ...(input.OutboundCallerIdNumberId != null && { OutboundCallerIdNumberId: input.OutboundCallerIdNumberId }),
13672
+ ...(input.OutboundFlowId != null && { OutboundFlowId: input.OutboundFlowId }),
13793
13673
  };
13794
13674
  };
13795
13675
  const serializeAws_restJson1ParticipantDetails = (input, context) => {
13796
13676
  return {
13797
- ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
13677
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
13798
13678
  };
13799
13679
  };
13800
13680
  const serializeAws_restJson1PermissionsList = (input, context) => {
@@ -13819,7 +13699,7 @@ const serializeAws_restJson1PhoneNumberCountryCodes = (input, context) => {
13819
13699
  };
13820
13700
  const serializeAws_restJson1PhoneNumberQuickConnectConfig = (input, context) => {
13821
13701
  return {
13822
- ...(input.PhoneNumber !== undefined && input.PhoneNumber !== null && { PhoneNumber: input.PhoneNumber }),
13702
+ ...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
13823
13703
  };
13824
13704
  };
13825
13705
  const serializeAws_restJson1PhoneNumberTypes = (input, context) => {
@@ -13834,8 +13714,8 @@ const serializeAws_restJson1PhoneNumberTypes = (input, context) => {
13834
13714
  };
13835
13715
  const serializeAws_restJson1QueueQuickConnectConfig = (input, context) => {
13836
13716
  return {
13837
- ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
13838
- ...(input.QueueId !== undefined && input.QueueId !== null && { QueueId: input.QueueId }),
13717
+ ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
13718
+ ...(input.QueueId != null && { QueueId: input.QueueId }),
13839
13719
  };
13840
13720
  };
13841
13721
  const serializeAws_restJson1Queues = (input, context) => {
@@ -13850,18 +13730,14 @@ const serializeAws_restJson1Queues = (input, context) => {
13850
13730
  };
13851
13731
  const serializeAws_restJson1QuickConnectConfig = (input, context) => {
13852
13732
  return {
13853
- ...(input.PhoneConfig !== undefined &&
13854
- input.PhoneConfig !== null && {
13733
+ ...(input.PhoneConfig != null && {
13855
13734
  PhoneConfig: serializeAws_restJson1PhoneNumberQuickConnectConfig(input.PhoneConfig, context),
13856
13735
  }),
13857
- ...(input.QueueConfig !== undefined &&
13858
- input.QueueConfig !== null && {
13736
+ ...(input.QueueConfig != null && {
13859
13737
  QueueConfig: serializeAws_restJson1QueueQuickConnectConfig(input.QueueConfig, context),
13860
13738
  }),
13861
- ...(input.QuickConnectType !== undefined &&
13862
- input.QuickConnectType !== null && { QuickConnectType: input.QuickConnectType }),
13863
- ...(input.UserConfig !== undefined &&
13864
- input.UserConfig !== null && {
13739
+ ...(input.QuickConnectType != null && { QuickConnectType: input.QuickConnectType }),
13740
+ ...(input.UserConfig != null && {
13865
13741
  UserConfig: serializeAws_restJson1UserQuickConnectConfig(input.UserConfig, context),
13866
13742
  }),
13867
13743
  };
@@ -13878,8 +13754,7 @@ const serializeAws_restJson1QuickConnectsList = (input, context) => {
13878
13754
  };
13879
13755
  const serializeAws_restJson1ReadOnlyFieldInfo = (input, context) => {
13880
13756
  return {
13881
- ...(input.Id !== undefined &&
13882
- input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13757
+ ...(input.Id != null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13883
13758
  };
13884
13759
  };
13885
13760
  const serializeAws_restJson1ReadOnlyTaskTemplateFields = (input, context) => {
@@ -13894,14 +13769,13 @@ const serializeAws_restJson1ReadOnlyTaskTemplateFields = (input, context) => {
13894
13769
  };
13895
13770
  const serializeAws_restJson1Reference = (input, context) => {
13896
13771
  return {
13897
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
13898
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
13772
+ ...(input.Type != null && { Type: input.Type }),
13773
+ ...(input.Value != null && { Value: input.Value }),
13899
13774
  };
13900
13775
  };
13901
13776
  const serializeAws_restJson1RequiredFieldInfo = (input, context) => {
13902
13777
  return {
13903
- ...(input.Id !== undefined &&
13904
- input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13778
+ ...(input.Id != null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13905
13779
  };
13906
13780
  };
13907
13781
  const serializeAws_restJson1RequiredTaskTemplateFields = (input, context) => {
@@ -13916,10 +13790,9 @@ const serializeAws_restJson1RequiredTaskTemplateFields = (input, context) => {
13916
13790
  };
13917
13791
  const serializeAws_restJson1RoutingProfileQueueConfig = (input, context) => {
13918
13792
  return {
13919
- ...(input.Delay !== undefined && input.Delay !== null && { Delay: input.Delay }),
13920
- ...(input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority }),
13921
- ...(input.QueueReference !== undefined &&
13922
- input.QueueReference !== null && {
13793
+ ...(input.Delay != null && { Delay: input.Delay }),
13794
+ ...(input.Priority != null && { Priority: input.Priority }),
13795
+ ...(input.QueueReference != null && {
13923
13796
  QueueReference: serializeAws_restJson1RoutingProfileQueueReference(input.QueueReference, context),
13924
13797
  }),
13925
13798
  };
@@ -13936,8 +13809,8 @@ const serializeAws_restJson1RoutingProfileQueueConfigList = (input, context) =>
13936
13809
  };
13937
13810
  const serializeAws_restJson1RoutingProfileQueueReference = (input, context) => {
13938
13811
  return {
13939
- ...(input.Channel !== undefined && input.Channel !== null && { Channel: input.Channel }),
13940
- ...(input.QueueId !== undefined && input.QueueId !== null && { QueueId: input.QueueId }),
13812
+ ...(input.Channel != null && { Channel: input.Channel }),
13813
+ ...(input.QueueId != null && { QueueId: input.QueueId }),
13941
13814
  };
13942
13815
  };
13943
13816
  const serializeAws_restJson1RoutingProfileQueueReferenceList = (input, context) => {
@@ -13952,10 +13825,9 @@ const serializeAws_restJson1RoutingProfileQueueReferenceList = (input, context)
13952
13825
  };
13953
13826
  const serializeAws_restJson1S3Config = (input, context) => {
13954
13827
  return {
13955
- ...(input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName }),
13956
- ...(input.BucketPrefix !== undefined && input.BucketPrefix !== null && { BucketPrefix: input.BucketPrefix }),
13957
- ...(input.EncryptionConfig !== undefined &&
13958
- input.EncryptionConfig !== null && {
13828
+ ...(input.BucketName != null && { BucketName: input.BucketName }),
13829
+ ...(input.BucketPrefix != null && { BucketPrefix: input.BucketPrefix }),
13830
+ ...(input.EncryptionConfig != null && {
13959
13831
  EncryptionConfig: serializeAws_restJson1EncryptionConfig(input.EncryptionConfig, context),
13960
13832
  }),
13961
13833
  };
@@ -13982,10 +13854,9 @@ const serializeAws_restJson1SingleSelectOptions = (input, context) => {
13982
13854
  };
13983
13855
  const serializeAws_restJson1StringCondition = (input, context) => {
13984
13856
  return {
13985
- ...(input.ComparisonType !== undefined &&
13986
- input.ComparisonType !== null && { ComparisonType: input.ComparisonType }),
13987
- ...(input.FieldName !== undefined && input.FieldName !== null && { FieldName: input.FieldName }),
13988
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
13857
+ ...(input.ComparisonType != null && { ComparisonType: input.ComparisonType }),
13858
+ ...(input.FieldName != null && { FieldName: input.FieldName }),
13859
+ ...(input.Value != null && { Value: input.Value }),
13989
13860
  };
13990
13861
  };
13991
13862
  const serializeAws_restJson1SupportedMessagingContentTypes = (input, context) => {
@@ -14010,8 +13881,8 @@ const serializeAws_restJson1TagAndConditionList = (input, context) => {
14010
13881
  };
14011
13882
  const serializeAws_restJson1TagCondition = (input, context) => {
14012
13883
  return {
14013
- ...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
14014
- ...(input.TagValue !== undefined && input.TagValue !== null && { TagValue: input.TagValue }),
13884
+ ...(input.TagKey != null && { TagKey: input.TagKey }),
13885
+ ...(input.TagValue != null && { TagValue: input.TagValue }),
14015
13886
  };
14016
13887
  };
14017
13888
  const serializeAws_restJson1TagMap = (input, context) => {
@@ -14037,25 +13908,21 @@ const serializeAws_restJson1TagOrConditionList = (input, context) => {
14037
13908
  };
14038
13909
  const serializeAws_restJson1TaskTemplateConstraints = (input, context) => {
14039
13910
  return {
14040
- ...(input.InvisibleFields !== undefined &&
14041
- input.InvisibleFields !== null && {
13911
+ ...(input.InvisibleFields != null && {
14042
13912
  InvisibleFields: serializeAws_restJson1InvisibleTaskTemplateFields(input.InvisibleFields, context),
14043
13913
  }),
14044
- ...(input.ReadOnlyFields !== undefined &&
14045
- input.ReadOnlyFields !== null && {
13914
+ ...(input.ReadOnlyFields != null && {
14046
13915
  ReadOnlyFields: serializeAws_restJson1ReadOnlyTaskTemplateFields(input.ReadOnlyFields, context),
14047
13916
  }),
14048
- ...(input.RequiredFields !== undefined &&
14049
- input.RequiredFields !== null && {
13917
+ ...(input.RequiredFields != null && {
14050
13918
  RequiredFields: serializeAws_restJson1RequiredTaskTemplateFields(input.RequiredFields, context),
14051
13919
  }),
14052
13920
  };
14053
13921
  };
14054
13922
  const serializeAws_restJson1TaskTemplateDefaultFieldValue = (input, context) => {
14055
13923
  return {
14056
- ...(input.DefaultValue !== undefined && input.DefaultValue !== null && { DefaultValue: input.DefaultValue }),
14057
- ...(input.Id !== undefined &&
14058
- input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13924
+ ...(input.DefaultValue != null && { DefaultValue: input.DefaultValue }),
13925
+ ...(input.Id != null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
14059
13926
  };
14060
13927
  };
14061
13928
  const serializeAws_restJson1TaskTemplateDefaultFieldValueList = (input, context) => {
@@ -14070,27 +13937,24 @@ const serializeAws_restJson1TaskTemplateDefaultFieldValueList = (input, context)
14070
13937
  };
14071
13938
  const serializeAws_restJson1TaskTemplateDefaults = (input, context) => {
14072
13939
  return {
14073
- ...(input.DefaultFieldValues !== undefined &&
14074
- input.DefaultFieldValues !== null && {
13940
+ ...(input.DefaultFieldValues != null && {
14075
13941
  DefaultFieldValues: serializeAws_restJson1TaskTemplateDefaultFieldValueList(input.DefaultFieldValues, context),
14076
13942
  }),
14077
13943
  };
14078
13944
  };
14079
13945
  const serializeAws_restJson1TaskTemplateField = (input, context) => {
14080
13946
  return {
14081
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
14082
- ...(input.Id !== undefined &&
14083
- input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
14084
- ...(input.SingleSelectOptions !== undefined &&
14085
- input.SingleSelectOptions !== null && {
13947
+ ...(input.Description != null && { Description: input.Description }),
13948
+ ...(input.Id != null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13949
+ ...(input.SingleSelectOptions != null && {
14086
13950
  SingleSelectOptions: serializeAws_restJson1SingleSelectOptions(input.SingleSelectOptions, context),
14087
13951
  }),
14088
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
13952
+ ...(input.Type != null && { Type: input.Type }),
14089
13953
  };
14090
13954
  };
14091
13955
  const serializeAws_restJson1TaskTemplateFieldIdentifier = (input, context) => {
14092
13956
  return {
14093
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
13957
+ ...(input.Name != null && { Name: input.Name }),
14094
13958
  };
14095
13959
  };
14096
13960
  const serializeAws_restJson1TaskTemplateFields = (input, context) => {
@@ -14105,42 +13969,37 @@ const serializeAws_restJson1TaskTemplateFields = (input, context) => {
14105
13969
  };
14106
13970
  const serializeAws_restJson1Threshold = (input, context) => {
14107
13971
  return {
14108
- ...(input.Comparison !== undefined && input.Comparison !== null && { Comparison: input.Comparison }),
14109
- ...(input.ThresholdValue !== undefined &&
14110
- input.ThresholdValue !== null && { ThresholdValue: (0, smithy_client_1.serializeFloat)(input.ThresholdValue) }),
13972
+ ...(input.Comparison != null && { Comparison: input.Comparison }),
13973
+ ...(input.ThresholdValue != null && { ThresholdValue: (0, smithy_client_1.serializeFloat)(input.ThresholdValue) }),
14111
13974
  };
14112
13975
  };
14113
13976
  const serializeAws_restJson1UserDataFilters = (input, context) => {
14114
13977
  return {
14115
- ...(input.ContactFilter !== undefined &&
14116
- input.ContactFilter !== null && {
13978
+ ...(input.ContactFilter != null && {
14117
13979
  ContactFilter: serializeAws_restJson1ContactFilter(input.ContactFilter, context),
14118
13980
  }),
14119
- ...(input.Queues !== undefined &&
14120
- input.Queues !== null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }),
13981
+ ...(input.Queues != null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }),
14121
13982
  };
14122
13983
  };
14123
13984
  const serializeAws_restJson1UserIdentityInfo = (input, context) => {
14124
13985
  return {
14125
- ...(input.Email !== undefined && input.Email !== null && { Email: input.Email }),
14126
- ...(input.FirstName !== undefined && input.FirstName !== null && { FirstName: input.FirstName }),
14127
- ...(input.LastName !== undefined && input.LastName !== null && { LastName: input.LastName }),
13986
+ ...(input.Email != null && { Email: input.Email }),
13987
+ ...(input.FirstName != null && { FirstName: input.FirstName }),
13988
+ ...(input.LastName != null && { LastName: input.LastName }),
14128
13989
  };
14129
13990
  };
14130
13991
  const serializeAws_restJson1UserPhoneConfig = (input, context) => {
14131
13992
  return {
14132
- ...(input.AfterContactWorkTimeLimit !== undefined &&
14133
- input.AfterContactWorkTimeLimit !== null && { AfterContactWorkTimeLimit: input.AfterContactWorkTimeLimit }),
14134
- ...(input.AutoAccept !== undefined && input.AutoAccept !== null && { AutoAccept: input.AutoAccept }),
14135
- ...(input.DeskPhoneNumber !== undefined &&
14136
- input.DeskPhoneNumber !== null && { DeskPhoneNumber: input.DeskPhoneNumber }),
14137
- ...(input.PhoneType !== undefined && input.PhoneType !== null && { PhoneType: input.PhoneType }),
13993
+ ...(input.AfterContactWorkTimeLimit != null && { AfterContactWorkTimeLimit: input.AfterContactWorkTimeLimit }),
13994
+ ...(input.AutoAccept != null && { AutoAccept: input.AutoAccept }),
13995
+ ...(input.DeskPhoneNumber != null && { DeskPhoneNumber: input.DeskPhoneNumber }),
13996
+ ...(input.PhoneType != null && { PhoneType: input.PhoneType }),
14138
13997
  };
14139
13998
  };
14140
13999
  const serializeAws_restJson1UserQuickConnectConfig = (input, context) => {
14141
14000
  return {
14142
- ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
14143
- ...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
14001
+ ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
14002
+ ...(input.UserId != null && { UserId: input.UserId }),
14144
14003
  };
14145
14004
  };
14146
14005
  const serializeAws_restJson1UserSearchConditionList = (input, context) => {
@@ -14155,49 +14014,43 @@ const serializeAws_restJson1UserSearchConditionList = (input, context) => {
14155
14014
  };
14156
14015
  const serializeAws_restJson1UserSearchCriteria = (input, context) => {
14157
14016
  return {
14158
- ...(input.AndConditions !== undefined &&
14159
- input.AndConditions !== null && {
14017
+ ...(input.AndConditions != null && {
14160
14018
  AndConditions: serializeAws_restJson1UserSearchConditionList(input.AndConditions, context),
14161
14019
  }),
14162
- ...(input.HierarchyGroupCondition !== undefined &&
14163
- input.HierarchyGroupCondition !== null && {
14020
+ ...(input.HierarchyGroupCondition != null && {
14164
14021
  HierarchyGroupCondition: serializeAws_restJson1HierarchyGroupCondition(input.HierarchyGroupCondition, context),
14165
14022
  }),
14166
- ...(input.OrConditions !== undefined &&
14167
- input.OrConditions !== null && {
14023
+ ...(input.OrConditions != null && {
14168
14024
  OrConditions: serializeAws_restJson1UserSearchConditionList(input.OrConditions, context),
14169
14025
  }),
14170
- ...(input.StringCondition !== undefined &&
14171
- input.StringCondition !== null && {
14026
+ ...(input.StringCondition != null && {
14172
14027
  StringCondition: serializeAws_restJson1StringCondition(input.StringCondition, context),
14173
14028
  }),
14174
14029
  };
14175
14030
  };
14176
14031
  const serializeAws_restJson1UserSearchFilter = (input, context) => {
14177
14032
  return {
14178
- ...(input.TagFilter !== undefined &&
14179
- input.TagFilter !== null && { TagFilter: serializeAws_restJson1ControlPlaneTagFilter(input.TagFilter, context) }),
14033
+ ...(input.TagFilter != null && {
14034
+ TagFilter: serializeAws_restJson1ControlPlaneTagFilter(input.TagFilter, context),
14035
+ }),
14180
14036
  };
14181
14037
  };
14182
14038
  const serializeAws_restJson1VoiceRecordingConfiguration = (input, context) => {
14183
14039
  return {
14184
- ...(input.VoiceRecordingTrack !== undefined &&
14185
- input.VoiceRecordingTrack !== null && { VoiceRecordingTrack: input.VoiceRecordingTrack }),
14040
+ ...(input.VoiceRecordingTrack != null && { VoiceRecordingTrack: input.VoiceRecordingTrack }),
14186
14041
  };
14187
14042
  };
14188
14043
  const deserializeAws_restJson1AgentContactReference = (output, context) => {
14189
14044
  return {
14190
14045
  AgentContactState: (0, smithy_client_1.expectString)(output.AgentContactState),
14191
14046
  Channel: (0, smithy_client_1.expectString)(output.Channel),
14192
- ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp !== undefined && output.ConnectedToAgentTimestamp !== null
14047
+ ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp != null
14193
14048
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ConnectedToAgentTimestamp)))
14194
14049
  : undefined,
14195
14050
  ContactId: (0, smithy_client_1.expectString)(output.ContactId),
14196
14051
  InitiationMethod: (0, smithy_client_1.expectString)(output.InitiationMethod),
14197
- Queue: output.Queue !== undefined && output.Queue !== null
14198
- ? deserializeAws_restJson1QueueReference(output.Queue, context)
14199
- : undefined,
14200
- StateStartTimestamp: output.StateStartTimestamp !== undefined && output.StateStartTimestamp !== null
14052
+ Queue: output.Queue != null ? deserializeAws_restJson1QueueReference(output.Queue, context) : undefined,
14053
+ StateStartTimestamp: output.StateStartTimestamp != null
14201
14054
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StateStartTimestamp)))
14202
14055
  : undefined,
14203
14056
  };
@@ -14215,7 +14068,7 @@ const deserializeAws_restJson1AgentContactReferenceList = (output, context) => {
14215
14068
  };
14216
14069
  const deserializeAws_restJson1AgentInfo = (output, context) => {
14217
14070
  return {
14218
- ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp !== undefined && output.ConnectedToAgentTimestamp !== null
14071
+ ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp != null
14219
14072
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ConnectedToAgentTimestamp)))
14220
14073
  : undefined,
14221
14074
  Id: (0, smithy_client_1.expectString)(output.Id),
@@ -14229,16 +14082,14 @@ const deserializeAws_restJson1AgentStatus = (output, context) => {
14229
14082
  DisplayOrder: (0, smithy_client_1.expectInt32)(output.DisplayOrder),
14230
14083
  Name: (0, smithy_client_1.expectString)(output.Name),
14231
14084
  State: (0, smithy_client_1.expectString)(output.State),
14232
- Tags: output.Tags !== undefined && output.Tags !== null
14233
- ? deserializeAws_restJson1TagMap(output.Tags, context)
14234
- : undefined,
14085
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
14235
14086
  Type: (0, smithy_client_1.expectString)(output.Type),
14236
14087
  };
14237
14088
  };
14238
14089
  const deserializeAws_restJson1AgentStatusReference = (output, context) => {
14239
14090
  return {
14240
14091
  StatusArn: (0, smithy_client_1.expectString)(output.StatusArn),
14241
- StatusStartTimestamp: output.StatusStartTimestamp !== undefined && output.StatusStartTimestamp !== null
14092
+ StatusStartTimestamp: output.StatusStartTimestamp != null
14242
14093
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StatusStartTimestamp)))
14243
14094
  : undefined,
14244
14095
  };
@@ -14333,42 +14184,36 @@ const deserializeAws_restJson1ClaimedPhoneNumberSummary = (output, context) => {
14333
14184
  PhoneNumberCountryCode: (0, smithy_client_1.expectString)(output.PhoneNumberCountryCode),
14334
14185
  PhoneNumberDescription: (0, smithy_client_1.expectString)(output.PhoneNumberDescription),
14335
14186
  PhoneNumberId: (0, smithy_client_1.expectString)(output.PhoneNumberId),
14336
- PhoneNumberStatus: output.PhoneNumberStatus !== undefined && output.PhoneNumberStatus !== null
14187
+ PhoneNumberStatus: output.PhoneNumberStatus != null
14337
14188
  ? deserializeAws_restJson1PhoneNumberStatus(output.PhoneNumberStatus, context)
14338
14189
  : undefined,
14339
14190
  PhoneNumberType: (0, smithy_client_1.expectString)(output.PhoneNumberType),
14340
- Tags: output.Tags !== undefined && output.Tags !== null
14341
- ? deserializeAws_restJson1TagMap(output.Tags, context)
14342
- : undefined,
14191
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
14343
14192
  TargetArn: (0, smithy_client_1.expectString)(output.TargetArn),
14344
14193
  };
14345
14194
  };
14346
14195
  const deserializeAws_restJson1Contact = (output, context) => {
14347
14196
  return {
14348
- AgentInfo: output.AgentInfo !== undefined && output.AgentInfo !== null
14349
- ? deserializeAws_restJson1AgentInfo(output.AgentInfo, context)
14350
- : undefined,
14197
+ AgentInfo: output.AgentInfo != null ? deserializeAws_restJson1AgentInfo(output.AgentInfo, context) : undefined,
14351
14198
  Arn: (0, smithy_client_1.expectString)(output.Arn),
14352
14199
  Channel: (0, smithy_client_1.expectString)(output.Channel),
14353
14200
  Description: (0, smithy_client_1.expectString)(output.Description),
14354
- DisconnectTimestamp: output.DisconnectTimestamp !== undefined && output.DisconnectTimestamp !== null
14201
+ DisconnectTimestamp: output.DisconnectTimestamp != null
14355
14202
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DisconnectTimestamp)))
14356
14203
  : undefined,
14357
14204
  Id: (0, smithy_client_1.expectString)(output.Id),
14358
14205
  InitialContactId: (0, smithy_client_1.expectString)(output.InitialContactId),
14359
14206
  InitiationMethod: (0, smithy_client_1.expectString)(output.InitiationMethod),
14360
- InitiationTimestamp: output.InitiationTimestamp !== undefined && output.InitiationTimestamp !== null
14207
+ InitiationTimestamp: output.InitiationTimestamp != null
14361
14208
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InitiationTimestamp)))
14362
14209
  : undefined,
14363
- LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
14210
+ LastUpdateTimestamp: output.LastUpdateTimestamp != null
14364
14211
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTimestamp)))
14365
14212
  : undefined,
14366
14213
  Name: (0, smithy_client_1.expectString)(output.Name),
14367
14214
  PreviousContactId: (0, smithy_client_1.expectString)(output.PreviousContactId),
14368
- QueueInfo: output.QueueInfo !== undefined && output.QueueInfo !== null
14369
- ? deserializeAws_restJson1QueueInfo(output.QueueInfo, context)
14370
- : undefined,
14371
- ScheduledTimestamp: output.ScheduledTimestamp !== undefined && output.ScheduledTimestamp !== null
14215
+ QueueInfo: output.QueueInfo != null ? deserializeAws_restJson1QueueInfo(output.QueueInfo, context) : undefined,
14216
+ ScheduledTimestamp: output.ScheduledTimestamp != null
14372
14217
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ScheduledTimestamp)))
14373
14218
  : undefined,
14374
14219
  };
@@ -14381,9 +14226,7 @@ const deserializeAws_restJson1ContactFlow = (output, context) => {
14381
14226
  Id: (0, smithy_client_1.expectString)(output.Id),
14382
14227
  Name: (0, smithy_client_1.expectString)(output.Name),
14383
14228
  State: (0, smithy_client_1.expectString)(output.State),
14384
- Tags: output.Tags !== undefined && output.Tags !== null
14385
- ? deserializeAws_restJson1TagMap(output.Tags, context)
14386
- : undefined,
14229
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
14387
14230
  Type: (0, smithy_client_1.expectString)(output.Type),
14388
14231
  };
14389
14232
  };
@@ -14396,9 +14239,7 @@ const deserializeAws_restJson1ContactFlowModule = (output, context) => {
14396
14239
  Name: (0, smithy_client_1.expectString)(output.Name),
14397
14240
  State: (0, smithy_client_1.expectString)(output.State),
14398
14241
  Status: (0, smithy_client_1.expectString)(output.Status),
14399
- Tags: output.Tags !== undefined && output.Tags !== null
14400
- ? deserializeAws_restJson1TagMap(output.Tags, context)
14401
- : undefined,
14242
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
14402
14243
  };
14403
14244
  };
14404
14245
  const deserializeAws_restJson1ContactFlowModulesSummaryList = (output, context) => {
@@ -14443,11 +14284,11 @@ const deserializeAws_restJson1ContactFlowSummaryList = (output, context) => {
14443
14284
  const deserializeAws_restJson1Credentials = (output, context) => {
14444
14285
  return {
14445
14286
  AccessToken: (0, smithy_client_1.expectString)(output.AccessToken),
14446
- AccessTokenExpiration: output.AccessTokenExpiration !== undefined && output.AccessTokenExpiration !== null
14287
+ AccessTokenExpiration: output.AccessTokenExpiration != null
14447
14288
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AccessTokenExpiration)))
14448
14289
  : undefined,
14449
14290
  RefreshToken: (0, smithy_client_1.expectString)(output.RefreshToken),
14450
- RefreshTokenExpiration: output.RefreshTokenExpiration !== undefined && output.RefreshTokenExpiration !== null
14291
+ RefreshTokenExpiration: output.RefreshTokenExpiration != null
14451
14292
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RefreshTokenExpiration)))
14452
14293
  : undefined,
14453
14294
  };
@@ -14460,9 +14301,7 @@ const deserializeAws_restJson1CurrentMetric = (output, context) => {
14460
14301
  };
14461
14302
  const deserializeAws_restJson1CurrentMetricData = (output, context) => {
14462
14303
  return {
14463
- Metric: output.Metric !== undefined && output.Metric !== null
14464
- ? deserializeAws_restJson1CurrentMetric(output.Metric, context)
14465
- : undefined,
14304
+ Metric: output.Metric != null ? deserializeAws_restJson1CurrentMetric(output.Metric, context) : undefined,
14466
14305
  Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
14467
14306
  };
14468
14307
  };
@@ -14479,12 +14318,10 @@ const deserializeAws_restJson1CurrentMetricDataCollections = (output, context) =
14479
14318
  };
14480
14319
  const deserializeAws_restJson1CurrentMetricResult = (output, context) => {
14481
14320
  return {
14482
- Collections: output.Collections !== undefined && output.Collections !== null
14321
+ Collections: output.Collections != null
14483
14322
  ? deserializeAws_restJson1CurrentMetricDataCollections(output.Collections, context)
14484
14323
  : undefined,
14485
- Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
14486
- ? deserializeAws_restJson1Dimensions(output.Dimensions, context)
14487
- : undefined,
14324
+ Dimensions: output.Dimensions != null ? deserializeAws_restJson1Dimensions(output.Dimensions, context) : undefined,
14488
14325
  };
14489
14326
  };
14490
14327
  const deserializeAws_restJson1CurrentMetricResults = (output, context) => {
@@ -14526,9 +14363,7 @@ const deserializeAws_restJson1DefaultVocabularyList = (output, context) => {
14526
14363
  const deserializeAws_restJson1Dimensions = (output, context) => {
14527
14364
  return {
14528
14365
  Channel: (0, smithy_client_1.expectString)(output.Channel),
14529
- Queue: output.Queue !== undefined && output.Queue !== null
14530
- ? deserializeAws_restJson1QueueReference(output.Queue, context)
14531
- : undefined,
14366
+ Queue: output.Queue != null ? deserializeAws_restJson1QueueReference(output.Queue, context) : undefined,
14532
14367
  };
14533
14368
  };
14534
14369
  const deserializeAws_restJson1EmailReference = (output, context) => {
@@ -14557,15 +14392,11 @@ const deserializeAws_restJson1FunctionArnsList = (output, context) => {
14557
14392
  const deserializeAws_restJson1HierarchyGroup = (output, context) => {
14558
14393
  return {
14559
14394
  Arn: (0, smithy_client_1.expectString)(output.Arn),
14560
- HierarchyPath: output.HierarchyPath !== undefined && output.HierarchyPath !== null
14561
- ? deserializeAws_restJson1HierarchyPath(output.HierarchyPath, context)
14562
- : undefined,
14395
+ HierarchyPath: output.HierarchyPath != null ? deserializeAws_restJson1HierarchyPath(output.HierarchyPath, context) : undefined,
14563
14396
  Id: (0, smithy_client_1.expectString)(output.Id),
14564
14397
  LevelId: (0, smithy_client_1.expectString)(output.LevelId),
14565
14398
  Name: (0, smithy_client_1.expectString)(output.Name),
14566
- Tags: output.Tags !== undefined && output.Tags !== null
14567
- ? deserializeAws_restJson1TagMap(output.Tags, context)
14568
- : undefined,
14399
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
14569
14400
  };
14570
14401
  };
14571
14402
  const deserializeAws_restJson1HierarchyGroupSummary = (output, context) => {
@@ -14601,76 +14432,52 @@ const deserializeAws_restJson1HierarchyLevel = (output, context) => {
14601
14432
  };
14602
14433
  const deserializeAws_restJson1HierarchyPath = (output, context) => {
14603
14434
  return {
14604
- LevelFive: output.LevelFive !== undefined && output.LevelFive !== null
14605
- ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelFive, context)
14606
- : undefined,
14607
- LevelFour: output.LevelFour !== undefined && output.LevelFour !== null
14608
- ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelFour, context)
14609
- : undefined,
14610
- LevelOne: output.LevelOne !== undefined && output.LevelOne !== null
14611
- ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelOne, context)
14612
- : undefined,
14613
- LevelThree: output.LevelThree !== undefined && output.LevelThree !== null
14614
- ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelThree, context)
14615
- : undefined,
14616
- LevelTwo: output.LevelTwo !== undefined && output.LevelTwo !== null
14617
- ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelTwo, context)
14618
- : undefined,
14435
+ LevelFive: output.LevelFive != null ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelFive, context) : undefined,
14436
+ LevelFour: output.LevelFour != null ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelFour, context) : undefined,
14437
+ LevelOne: output.LevelOne != null ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelOne, context) : undefined,
14438
+ LevelThree: output.LevelThree != null ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelThree, context) : undefined,
14439
+ LevelTwo: output.LevelTwo != null ? deserializeAws_restJson1HierarchyGroupSummary(output.LevelTwo, context) : undefined,
14619
14440
  };
14620
14441
  };
14621
14442
  const deserializeAws_restJson1HierarchyPathReference = (output, context) => {
14622
14443
  return {
14623
- LevelFive: output.LevelFive !== undefined && output.LevelFive !== null
14444
+ LevelFive: output.LevelFive != null
14624
14445
  ? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelFive, context)
14625
14446
  : undefined,
14626
- LevelFour: output.LevelFour !== undefined && output.LevelFour !== null
14447
+ LevelFour: output.LevelFour != null
14627
14448
  ? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelFour, context)
14628
14449
  : undefined,
14629
- LevelOne: output.LevelOne !== undefined && output.LevelOne !== null
14450
+ LevelOne: output.LevelOne != null
14630
14451
  ? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelOne, context)
14631
14452
  : undefined,
14632
- LevelThree: output.LevelThree !== undefined && output.LevelThree !== null
14453
+ LevelThree: output.LevelThree != null
14633
14454
  ? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelThree, context)
14634
14455
  : undefined,
14635
- LevelTwo: output.LevelTwo !== undefined && output.LevelTwo !== null
14456
+ LevelTwo: output.LevelTwo != null
14636
14457
  ? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelTwo, context)
14637
14458
  : undefined,
14638
14459
  };
14639
14460
  };
14640
14461
  const deserializeAws_restJson1HierarchyStructure = (output, context) => {
14641
14462
  return {
14642
- LevelFive: output.LevelFive !== undefined && output.LevelFive !== null
14643
- ? deserializeAws_restJson1HierarchyLevel(output.LevelFive, context)
14644
- : undefined,
14645
- LevelFour: output.LevelFour !== undefined && output.LevelFour !== null
14646
- ? deserializeAws_restJson1HierarchyLevel(output.LevelFour, context)
14647
- : undefined,
14648
- LevelOne: output.LevelOne !== undefined && output.LevelOne !== null
14649
- ? deserializeAws_restJson1HierarchyLevel(output.LevelOne, context)
14650
- : undefined,
14651
- LevelThree: output.LevelThree !== undefined && output.LevelThree !== null
14652
- ? deserializeAws_restJson1HierarchyLevel(output.LevelThree, context)
14653
- : undefined,
14654
- LevelTwo: output.LevelTwo !== undefined && output.LevelTwo !== null
14655
- ? deserializeAws_restJson1HierarchyLevel(output.LevelTwo, context)
14656
- : undefined,
14463
+ LevelFive: output.LevelFive != null ? deserializeAws_restJson1HierarchyLevel(output.LevelFive, context) : undefined,
14464
+ LevelFour: output.LevelFour != null ? deserializeAws_restJson1HierarchyLevel(output.LevelFour, context) : undefined,
14465
+ LevelOne: output.LevelOne != null ? deserializeAws_restJson1HierarchyLevel(output.LevelOne, context) : undefined,
14466
+ LevelThree: output.LevelThree != null ? deserializeAws_restJson1HierarchyLevel(output.LevelThree, context) : undefined,
14467
+ LevelTwo: output.LevelTwo != null ? deserializeAws_restJson1HierarchyLevel(output.LevelTwo, context) : undefined,
14657
14468
  };
14658
14469
  };
14659
14470
  const deserializeAws_restJson1HistoricalMetric = (output, context) => {
14660
14471
  return {
14661
14472
  Name: (0, smithy_client_1.expectString)(output.Name),
14662
14473
  Statistic: (0, smithy_client_1.expectString)(output.Statistic),
14663
- Threshold: output.Threshold !== undefined && output.Threshold !== null
14664
- ? deserializeAws_restJson1Threshold(output.Threshold, context)
14665
- : undefined,
14474
+ Threshold: output.Threshold != null ? deserializeAws_restJson1Threshold(output.Threshold, context) : undefined,
14666
14475
  Unit: (0, smithy_client_1.expectString)(output.Unit),
14667
14476
  };
14668
14477
  };
14669
14478
  const deserializeAws_restJson1HistoricalMetricData = (output, context) => {
14670
14479
  return {
14671
- Metric: output.Metric !== undefined && output.Metric !== null
14672
- ? deserializeAws_restJson1HistoricalMetric(output.Metric, context)
14673
- : undefined,
14480
+ Metric: output.Metric != null ? deserializeAws_restJson1HistoricalMetric(output.Metric, context) : undefined,
14674
14481
  Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
14675
14482
  };
14676
14483
  };
@@ -14687,12 +14494,10 @@ const deserializeAws_restJson1HistoricalMetricDataCollections = (output, context
14687
14494
  };
14688
14495
  const deserializeAws_restJson1HistoricalMetricResult = (output, context) => {
14689
14496
  return {
14690
- Collections: output.Collections !== undefined && output.Collections !== null
14497
+ Collections: output.Collections != null
14691
14498
  ? deserializeAws_restJson1HistoricalMetricDataCollections(output.Collections, context)
14692
14499
  : undefined,
14693
- Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
14694
- ? deserializeAws_restJson1Dimensions(output.Dimensions, context)
14695
- : undefined,
14500
+ Dimensions: output.Dimensions != null ? deserializeAws_restJson1Dimensions(output.Dimensions, context) : undefined,
14696
14501
  };
14697
14502
  };
14698
14503
  const deserializeAws_restJson1HistoricalMetricResults = (output, context) => {
@@ -14708,26 +14513,20 @@ const deserializeAws_restJson1HistoricalMetricResults = (output, context) => {
14708
14513
  };
14709
14514
  const deserializeAws_restJson1HoursOfOperation = (output, context) => {
14710
14515
  return {
14711
- Config: output.Config !== undefined && output.Config !== null
14712
- ? deserializeAws_restJson1HoursOfOperationConfigList(output.Config, context)
14713
- : undefined,
14516
+ Config: output.Config != null ? deserializeAws_restJson1HoursOfOperationConfigList(output.Config, context) : undefined,
14714
14517
  Description: (0, smithy_client_1.expectString)(output.Description),
14715
14518
  HoursOfOperationArn: (0, smithy_client_1.expectString)(output.HoursOfOperationArn),
14716
14519
  HoursOfOperationId: (0, smithy_client_1.expectString)(output.HoursOfOperationId),
14717
14520
  Name: (0, smithy_client_1.expectString)(output.Name),
14718
- Tags: output.Tags !== undefined && output.Tags !== null
14719
- ? deserializeAws_restJson1TagMap(output.Tags, context)
14720
- : undefined,
14521
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
14721
14522
  TimeZone: (0, smithy_client_1.expectString)(output.TimeZone),
14722
14523
  };
14723
14524
  };
14724
14525
  const deserializeAws_restJson1HoursOfOperationConfig = (output, context) => {
14725
14526
  return {
14726
14527
  Day: (0, smithy_client_1.expectString)(output.Day),
14727
- EndTime: output.EndTime !== undefined && output.EndTime !== null
14728
- ? deserializeAws_restJson1HoursOfOperationTimeSlice(output.EndTime, context)
14729
- : undefined,
14730
- StartTime: output.StartTime !== undefined && output.StartTime !== null
14528
+ EndTime: output.EndTime != null ? deserializeAws_restJson1HoursOfOperationTimeSlice(output.EndTime, context) : undefined,
14529
+ StartTime: output.StartTime != null
14731
14530
  ? deserializeAws_restJson1HoursOfOperationTimeSlice(output.StartTime, context)
14732
14531
  : undefined,
14733
14532
  };
@@ -14770,7 +14569,7 @@ const deserializeAws_restJson1HoursOfOperationTimeSlice = (output, context) => {
14770
14569
  const deserializeAws_restJson1Instance = (output, context) => {
14771
14570
  return {
14772
14571
  Arn: (0, smithy_client_1.expectString)(output.Arn),
14773
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
14572
+ CreatedTime: output.CreatedTime != null
14774
14573
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
14775
14574
  : undefined,
14776
14575
  Id: (0, smithy_client_1.expectString)(output.Id),
@@ -14780,7 +14579,7 @@ const deserializeAws_restJson1Instance = (output, context) => {
14780
14579
  InstanceStatus: (0, smithy_client_1.expectString)(output.InstanceStatus),
14781
14580
  OutboundCallsEnabled: (0, smithy_client_1.expectBoolean)(output.OutboundCallsEnabled),
14782
14581
  ServiceRole: (0, smithy_client_1.expectString)(output.ServiceRole),
14783
- StatusReason: output.StatusReason !== undefined && output.StatusReason !== null
14582
+ StatusReason: output.StatusReason != null
14784
14583
  ? deserializeAws_restJson1InstanceStatusReason(output.StatusReason, context)
14785
14584
  : undefined,
14786
14585
  };
@@ -14793,18 +14592,16 @@ const deserializeAws_restJson1InstanceStatusReason = (output, context) => {
14793
14592
  const deserializeAws_restJson1InstanceStorageConfig = (output, context) => {
14794
14593
  return {
14795
14594
  AssociationId: (0, smithy_client_1.expectString)(output.AssociationId),
14796
- KinesisFirehoseConfig: output.KinesisFirehoseConfig !== undefined && output.KinesisFirehoseConfig !== null
14595
+ KinesisFirehoseConfig: output.KinesisFirehoseConfig != null
14797
14596
  ? deserializeAws_restJson1KinesisFirehoseConfig(output.KinesisFirehoseConfig, context)
14798
14597
  : undefined,
14799
- KinesisStreamConfig: output.KinesisStreamConfig !== undefined && output.KinesisStreamConfig !== null
14598
+ KinesisStreamConfig: output.KinesisStreamConfig != null
14800
14599
  ? deserializeAws_restJson1KinesisStreamConfig(output.KinesisStreamConfig, context)
14801
14600
  : undefined,
14802
- KinesisVideoStreamConfig: output.KinesisVideoStreamConfig !== undefined && output.KinesisVideoStreamConfig !== null
14601
+ KinesisVideoStreamConfig: output.KinesisVideoStreamConfig != null
14803
14602
  ? deserializeAws_restJson1KinesisVideoStreamConfig(output.KinesisVideoStreamConfig, context)
14804
14603
  : undefined,
14805
- S3Config: output.S3Config !== undefined && output.S3Config !== null
14806
- ? deserializeAws_restJson1S3Config(output.S3Config, context)
14807
- : undefined,
14604
+ S3Config: output.S3Config != null ? deserializeAws_restJson1S3Config(output.S3Config, context) : undefined,
14808
14605
  StorageType: (0, smithy_client_1.expectString)(output.StorageType),
14809
14606
  };
14810
14607
  };
@@ -14822,7 +14619,7 @@ const deserializeAws_restJson1InstanceStorageConfigs = (output, context) => {
14822
14619
  const deserializeAws_restJson1InstanceSummary = (output, context) => {
14823
14620
  return {
14824
14621
  Arn: (0, smithy_client_1.expectString)(output.Arn),
14825
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
14622
+ CreatedTime: output.CreatedTime != null
14826
14623
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
14827
14624
  : undefined,
14828
14625
  Id: (0, smithy_client_1.expectString)(output.Id),
@@ -14870,9 +14667,7 @@ const deserializeAws_restJson1IntegrationAssociationSummaryList = (output, conte
14870
14667
  };
14871
14668
  const deserializeAws_restJson1InvisibleFieldInfo = (output, context) => {
14872
14669
  return {
14873
- Id: output.Id !== undefined && output.Id !== null
14874
- ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
14875
- : undefined,
14670
+ Id: output.Id != null ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context) : undefined,
14876
14671
  };
14877
14672
  };
14878
14673
  const deserializeAws_restJson1InvisibleTaskTemplateFields = (output, context) => {
@@ -14898,7 +14693,7 @@ const deserializeAws_restJson1KinesisStreamConfig = (output, context) => {
14898
14693
  };
14899
14694
  const deserializeAws_restJson1KinesisVideoStreamConfig = (output, context) => {
14900
14695
  return {
14901
- EncryptionConfig: output.EncryptionConfig !== undefined && output.EncryptionConfig !== null
14696
+ EncryptionConfig: output.EncryptionConfig != null
14902
14697
  ? deserializeAws_restJson1EncryptionConfig(output.EncryptionConfig, context)
14903
14698
  : undefined,
14904
14699
  Prefix: (0, smithy_client_1.expectString)(output.Prefix),
@@ -14913,12 +14708,8 @@ const deserializeAws_restJson1LexBot = (output, context) => {
14913
14708
  };
14914
14709
  const deserializeAws_restJson1LexBotConfig = (output, context) => {
14915
14710
  return {
14916
- LexBot: output.LexBot !== undefined && output.LexBot !== null
14917
- ? deserializeAws_restJson1LexBot(output.LexBot, context)
14918
- : undefined,
14919
- LexV2Bot: output.LexV2Bot !== undefined && output.LexV2Bot !== null
14920
- ? deserializeAws_restJson1LexV2Bot(output.LexV2Bot, context)
14921
- : undefined,
14711
+ LexBot: output.LexBot != null ? deserializeAws_restJson1LexBot(output.LexBot, context) : undefined,
14712
+ LexV2Bot: output.LexV2Bot != null ? deserializeAws_restJson1LexV2Bot(output.LexV2Bot, context) : undefined,
14922
14713
  };
14923
14714
  };
14924
14715
  const deserializeAws_restJson1LexBotConfigList = (output, context) => {
@@ -15110,20 +14901,18 @@ const deserializeAws_restJson1Queue = (output, context) => {
15110
14901
  HoursOfOperationId: (0, smithy_client_1.expectString)(output.HoursOfOperationId),
15111
14902
  MaxContacts: (0, smithy_client_1.expectInt32)(output.MaxContacts),
15112
14903
  Name: (0, smithy_client_1.expectString)(output.Name),
15113
- OutboundCallerConfig: output.OutboundCallerConfig !== undefined && output.OutboundCallerConfig !== null
14904
+ OutboundCallerConfig: output.OutboundCallerConfig != null
15114
14905
  ? deserializeAws_restJson1OutboundCallerConfig(output.OutboundCallerConfig, context)
15115
14906
  : undefined,
15116
14907
  QueueArn: (0, smithy_client_1.expectString)(output.QueueArn),
15117
14908
  QueueId: (0, smithy_client_1.expectString)(output.QueueId),
15118
14909
  Status: (0, smithy_client_1.expectString)(output.Status),
15119
- Tags: output.Tags !== undefined && output.Tags !== null
15120
- ? deserializeAws_restJson1TagMap(output.Tags, context)
15121
- : undefined,
14910
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
15122
14911
  };
15123
14912
  };
15124
14913
  const deserializeAws_restJson1QueueInfo = (output, context) => {
15125
14914
  return {
15126
- EnqueueTimestamp: output.EnqueueTimestamp !== undefined && output.EnqueueTimestamp !== null
14915
+ EnqueueTimestamp: output.EnqueueTimestamp != null
15127
14916
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EnqueueTimestamp)))
15128
14917
  : undefined,
15129
14918
  Id: (0, smithy_client_1.expectString)(output.Id),
@@ -15165,25 +14954,23 @@ const deserializeAws_restJson1QuickConnect = (output, context) => {
15165
14954
  Description: (0, smithy_client_1.expectString)(output.Description),
15166
14955
  Name: (0, smithy_client_1.expectString)(output.Name),
15167
14956
  QuickConnectARN: (0, smithy_client_1.expectString)(output.QuickConnectARN),
15168
- QuickConnectConfig: output.QuickConnectConfig !== undefined && output.QuickConnectConfig !== null
14957
+ QuickConnectConfig: output.QuickConnectConfig != null
15169
14958
  ? deserializeAws_restJson1QuickConnectConfig(output.QuickConnectConfig, context)
15170
14959
  : undefined,
15171
14960
  QuickConnectId: (0, smithy_client_1.expectString)(output.QuickConnectId),
15172
- Tags: output.Tags !== undefined && output.Tags !== null
15173
- ? deserializeAws_restJson1TagMap(output.Tags, context)
15174
- : undefined,
14961
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
15175
14962
  };
15176
14963
  };
15177
14964
  const deserializeAws_restJson1QuickConnectConfig = (output, context) => {
15178
14965
  return {
15179
- PhoneConfig: output.PhoneConfig !== undefined && output.PhoneConfig !== null
14966
+ PhoneConfig: output.PhoneConfig != null
15180
14967
  ? deserializeAws_restJson1PhoneNumberQuickConnectConfig(output.PhoneConfig, context)
15181
14968
  : undefined,
15182
- QueueConfig: output.QueueConfig !== undefined && output.QueueConfig !== null
14969
+ QueueConfig: output.QueueConfig != null
15183
14970
  ? deserializeAws_restJson1QueueQuickConnectConfig(output.QueueConfig, context)
15184
14971
  : undefined,
15185
14972
  QuickConnectType: (0, smithy_client_1.expectString)(output.QuickConnectType),
15186
- UserConfig: output.UserConfig !== undefined && output.UserConfig !== null
14973
+ UserConfig: output.UserConfig != null
15187
14974
  ? deserializeAws_restJson1UserQuickConnectConfig(output.UserConfig, context)
15188
14975
  : undefined,
15189
14976
  };
@@ -15209,9 +14996,7 @@ const deserializeAws_restJson1QuickConnectSummaryList = (output, context) => {
15209
14996
  };
15210
14997
  const deserializeAws_restJson1ReadOnlyFieldInfo = (output, context) => {
15211
14998
  return {
15212
- Id: output.Id !== undefined && output.Id !== null
15213
- ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
15214
- : undefined,
14999
+ Id: output.Id != null ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context) : undefined,
15215
15000
  };
15216
15001
  };
15217
15002
  const deserializeAws_restJson1ReadOnlyTaskTemplateFields = (output, context) => {
@@ -15271,9 +15056,7 @@ const deserializeAws_restJson1ReferenceSummaryList = (output, context) => {
15271
15056
  };
15272
15057
  const deserializeAws_restJson1RequiredFieldInfo = (output, context) => {
15273
15058
  return {
15274
- Id: output.Id !== undefined && output.Id !== null
15275
- ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
15276
- : undefined,
15059
+ Id: output.Id != null ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context) : undefined,
15277
15060
  };
15278
15061
  };
15279
15062
  const deserializeAws_restJson1RequiredTaskTemplateFields = (output, context) => {
@@ -15292,15 +15075,13 @@ const deserializeAws_restJson1RoutingProfile = (output, context) => {
15292
15075
  DefaultOutboundQueueId: (0, smithy_client_1.expectString)(output.DefaultOutboundQueueId),
15293
15076
  Description: (0, smithy_client_1.expectString)(output.Description),
15294
15077
  InstanceId: (0, smithy_client_1.expectString)(output.InstanceId),
15295
- MediaConcurrencies: output.MediaConcurrencies !== undefined && output.MediaConcurrencies !== null
15078
+ MediaConcurrencies: output.MediaConcurrencies != null
15296
15079
  ? deserializeAws_restJson1MediaConcurrencies(output.MediaConcurrencies, context)
15297
15080
  : undefined,
15298
15081
  Name: (0, smithy_client_1.expectString)(output.Name),
15299
15082
  RoutingProfileArn: (0, smithy_client_1.expectString)(output.RoutingProfileArn),
15300
15083
  RoutingProfileId: (0, smithy_client_1.expectString)(output.RoutingProfileId),
15301
- Tags: output.Tags !== undefined && output.Tags !== null
15302
- ? deserializeAws_restJson1TagMap(output.Tags, context)
15303
- : undefined,
15084
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
15304
15085
  };
15305
15086
  };
15306
15087
  const deserializeAws_restJson1RoutingProfileQueueConfigSummary = (output, context) => {
@@ -15352,7 +15133,7 @@ const deserializeAws_restJson1S3Config = (output, context) => {
15352
15133
  return {
15353
15134
  BucketName: (0, smithy_client_1.expectString)(output.BucketName),
15354
15135
  BucketPrefix: (0, smithy_client_1.expectString)(output.BucketPrefix),
15355
- EncryptionConfig: output.EncryptionConfig !== undefined && output.EncryptionConfig !== null
15136
+ EncryptionConfig: output.EncryptionConfig != null
15356
15137
  ? deserializeAws_restJson1EncryptionConfig(output.EncryptionConfig, context)
15357
15138
  : undefined,
15358
15139
  };
@@ -15360,7 +15141,7 @@ const deserializeAws_restJson1S3Config = (output, context) => {
15360
15141
  const deserializeAws_restJson1SecurityKey = (output, context) => {
15361
15142
  return {
15362
15143
  AssociationId: (0, smithy_client_1.expectString)(output.AssociationId),
15363
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
15144
+ CreationTime: output.CreationTime != null
15364
15145
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
15365
15146
  : undefined,
15366
15147
  Key: (0, smithy_client_1.expectString)(output.Key),
@@ -15384,9 +15165,7 @@ const deserializeAws_restJson1SecurityProfile = (output, context) => {
15384
15165
  Id: (0, smithy_client_1.expectString)(output.Id),
15385
15166
  OrganizationResourceId: (0, smithy_client_1.expectString)(output.OrganizationResourceId),
15386
15167
  SecurityProfileName: (0, smithy_client_1.expectString)(output.SecurityProfileName),
15387
- Tags: output.Tags !== undefined && output.Tags !== null
15388
- ? deserializeAws_restJson1TagMap(output.Tags, context)
15389
- : undefined,
15168
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
15390
15169
  };
15391
15170
  };
15392
15171
  const deserializeAws_restJson1SecurityProfileIds = (output, context) => {
@@ -15448,13 +15227,13 @@ const deserializeAws_restJson1TagMap = (output, context) => {
15448
15227
  };
15449
15228
  const deserializeAws_restJson1TaskTemplateConstraints = (output, context) => {
15450
15229
  return {
15451
- InvisibleFields: output.InvisibleFields !== undefined && output.InvisibleFields !== null
15230
+ InvisibleFields: output.InvisibleFields != null
15452
15231
  ? deserializeAws_restJson1InvisibleTaskTemplateFields(output.InvisibleFields, context)
15453
15232
  : undefined,
15454
- ReadOnlyFields: output.ReadOnlyFields !== undefined && output.ReadOnlyFields !== null
15233
+ ReadOnlyFields: output.ReadOnlyFields != null
15455
15234
  ? deserializeAws_restJson1ReadOnlyTaskTemplateFields(output.ReadOnlyFields, context)
15456
15235
  : undefined,
15457
- RequiredFields: output.RequiredFields !== undefined && output.RequiredFields !== null
15236
+ RequiredFields: output.RequiredFields != null
15458
15237
  ? deserializeAws_restJson1RequiredTaskTemplateFields(output.RequiredFields, context)
15459
15238
  : undefined,
15460
15239
  };
@@ -15462,9 +15241,7 @@ const deserializeAws_restJson1TaskTemplateConstraints = (output, context) => {
15462
15241
  const deserializeAws_restJson1TaskTemplateDefaultFieldValue = (output, context) => {
15463
15242
  return {
15464
15243
  DefaultValue: (0, smithy_client_1.expectString)(output.DefaultValue),
15465
- Id: output.Id !== undefined && output.Id !== null
15466
- ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
15467
- : undefined,
15244
+ Id: output.Id != null ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context) : undefined,
15468
15245
  };
15469
15246
  };
15470
15247
  const deserializeAws_restJson1TaskTemplateDefaultFieldValueList = (output, context) => {
@@ -15480,7 +15257,7 @@ const deserializeAws_restJson1TaskTemplateDefaultFieldValueList = (output, conte
15480
15257
  };
15481
15258
  const deserializeAws_restJson1TaskTemplateDefaults = (output, context) => {
15482
15259
  return {
15483
- DefaultFieldValues: output.DefaultFieldValues !== undefined && output.DefaultFieldValues !== null
15260
+ DefaultFieldValues: output.DefaultFieldValues != null
15484
15261
  ? deserializeAws_restJson1TaskTemplateDefaultFieldValueList(output.DefaultFieldValues, context)
15485
15262
  : undefined,
15486
15263
  };
@@ -15488,10 +15265,8 @@ const deserializeAws_restJson1TaskTemplateDefaults = (output, context) => {
15488
15265
  const deserializeAws_restJson1TaskTemplateField = (output, context) => {
15489
15266
  return {
15490
15267
  Description: (0, smithy_client_1.expectString)(output.Description),
15491
- Id: output.Id !== undefined && output.Id !== null
15492
- ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
15493
- : undefined,
15494
- SingleSelectOptions: output.SingleSelectOptions !== undefined && output.SingleSelectOptions !== null
15268
+ Id: output.Id != null ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context) : undefined,
15269
+ SingleSelectOptions: output.SingleSelectOptions != null
15495
15270
  ? deserializeAws_restJson1SingleSelectOptions(output.SingleSelectOptions, context)
15496
15271
  : undefined,
15497
15272
  Type: (0, smithy_client_1.expectString)(output.Type),
@@ -15527,12 +15302,12 @@ const deserializeAws_restJson1TaskTemplateList = (output, context) => {
15527
15302
  const deserializeAws_restJson1TaskTemplateMetadata = (output, context) => {
15528
15303
  return {
15529
15304
  Arn: (0, smithy_client_1.expectString)(output.Arn),
15530
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
15305
+ CreatedTime: output.CreatedTime != null
15531
15306
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
15532
15307
  : undefined,
15533
15308
  Description: (0, smithy_client_1.expectString)(output.Description),
15534
15309
  Id: (0, smithy_client_1.expectString)(output.Id),
15535
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
15310
+ LastModifiedTime: output.LastModifiedTime != null
15536
15311
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
15537
15312
  : undefined,
15538
15313
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -15575,48 +15350,36 @@ const deserializeAws_restJson1User = (output, context) => {
15575
15350
  DirectoryUserId: (0, smithy_client_1.expectString)(output.DirectoryUserId),
15576
15351
  HierarchyGroupId: (0, smithy_client_1.expectString)(output.HierarchyGroupId),
15577
15352
  Id: (0, smithy_client_1.expectString)(output.Id),
15578
- IdentityInfo: output.IdentityInfo !== undefined && output.IdentityInfo !== null
15579
- ? deserializeAws_restJson1UserIdentityInfo(output.IdentityInfo, context)
15580
- : undefined,
15581
- PhoneConfig: output.PhoneConfig !== undefined && output.PhoneConfig !== null
15582
- ? deserializeAws_restJson1UserPhoneConfig(output.PhoneConfig, context)
15583
- : undefined,
15353
+ IdentityInfo: output.IdentityInfo != null ? deserializeAws_restJson1UserIdentityInfo(output.IdentityInfo, context) : undefined,
15354
+ PhoneConfig: output.PhoneConfig != null ? deserializeAws_restJson1UserPhoneConfig(output.PhoneConfig, context) : undefined,
15584
15355
  RoutingProfileId: (0, smithy_client_1.expectString)(output.RoutingProfileId),
15585
- SecurityProfileIds: output.SecurityProfileIds !== undefined && output.SecurityProfileIds !== null
15356
+ SecurityProfileIds: output.SecurityProfileIds != null
15586
15357
  ? deserializeAws_restJson1SecurityProfileIds(output.SecurityProfileIds, context)
15587
15358
  : undefined,
15588
- Tags: output.Tags !== undefined && output.Tags !== null
15589
- ? deserializeAws_restJson1TagMap(output.Tags, context)
15590
- : undefined,
15359
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
15591
15360
  Username: (0, smithy_client_1.expectString)(output.Username),
15592
15361
  };
15593
15362
  };
15594
15363
  const deserializeAws_restJson1UserData = (output, context) => {
15595
15364
  return {
15596
- ActiveSlotsByChannel: output.ActiveSlotsByChannel !== undefined && output.ActiveSlotsByChannel !== null
15365
+ ActiveSlotsByChannel: output.ActiveSlotsByChannel != null
15597
15366
  ? deserializeAws_restJson1ChannelToCountMap(output.ActiveSlotsByChannel, context)
15598
15367
  : undefined,
15599
- AvailableSlotsByChannel: output.AvailableSlotsByChannel !== undefined && output.AvailableSlotsByChannel !== null
15368
+ AvailableSlotsByChannel: output.AvailableSlotsByChannel != null
15600
15369
  ? deserializeAws_restJson1ChannelToCountMap(output.AvailableSlotsByChannel, context)
15601
15370
  : undefined,
15602
- Contacts: output.Contacts !== undefined && output.Contacts !== null
15603
- ? deserializeAws_restJson1AgentContactReferenceList(output.Contacts, context)
15604
- : undefined,
15605
- HierarchyPath: output.HierarchyPath !== undefined && output.HierarchyPath !== null
15371
+ Contacts: output.Contacts != null ? deserializeAws_restJson1AgentContactReferenceList(output.Contacts, context) : undefined,
15372
+ HierarchyPath: output.HierarchyPath != null
15606
15373
  ? deserializeAws_restJson1HierarchyPathReference(output.HierarchyPath, context)
15607
15374
  : undefined,
15608
- MaxSlotsByChannel: output.MaxSlotsByChannel !== undefined && output.MaxSlotsByChannel !== null
15375
+ MaxSlotsByChannel: output.MaxSlotsByChannel != null
15609
15376
  ? deserializeAws_restJson1ChannelToCountMap(output.MaxSlotsByChannel, context)
15610
15377
  : undefined,
15611
- RoutingProfile: output.RoutingProfile !== undefined && output.RoutingProfile !== null
15378
+ RoutingProfile: output.RoutingProfile != null
15612
15379
  ? deserializeAws_restJson1RoutingProfileReference(output.RoutingProfile, context)
15613
15380
  : undefined,
15614
- Status: output.Status !== undefined && output.Status !== null
15615
- ? deserializeAws_restJson1AgentStatusReference(output.Status, context)
15616
- : undefined,
15617
- User: output.User !== undefined && output.User !== null
15618
- ? deserializeAws_restJson1UserReference(output.User, context)
15619
- : undefined,
15381
+ Status: output.Status != null ? deserializeAws_restJson1AgentStatusReference(output.Status, context) : undefined,
15382
+ User: output.User != null ? deserializeAws_restJson1UserReference(output.User, context) : undefined,
15620
15383
  };
15621
15384
  };
15622
15385
  const deserializeAws_restJson1UserDataList = (output, context) => {
@@ -15669,19 +15432,15 @@ const deserializeAws_restJson1UserSearchSummary = (output, context) => {
15669
15432
  DirectoryUserId: (0, smithy_client_1.expectString)(output.DirectoryUserId),
15670
15433
  HierarchyGroupId: (0, smithy_client_1.expectString)(output.HierarchyGroupId),
15671
15434
  Id: (0, smithy_client_1.expectString)(output.Id),
15672
- IdentityInfo: output.IdentityInfo !== undefined && output.IdentityInfo !== null
15435
+ IdentityInfo: output.IdentityInfo != null
15673
15436
  ? deserializeAws_restJson1UserIdentityInfoLite(output.IdentityInfo, context)
15674
15437
  : undefined,
15675
- PhoneConfig: output.PhoneConfig !== undefined && output.PhoneConfig !== null
15676
- ? deserializeAws_restJson1UserPhoneConfig(output.PhoneConfig, context)
15677
- : undefined,
15438
+ PhoneConfig: output.PhoneConfig != null ? deserializeAws_restJson1UserPhoneConfig(output.PhoneConfig, context) : undefined,
15678
15439
  RoutingProfileId: (0, smithy_client_1.expectString)(output.RoutingProfileId),
15679
- SecurityProfileIds: output.SecurityProfileIds !== undefined && output.SecurityProfileIds !== null
15440
+ SecurityProfileIds: output.SecurityProfileIds != null
15680
15441
  ? deserializeAws_restJson1SecurityProfileIds(output.SecurityProfileIds, context)
15681
15442
  : undefined,
15682
- Tags: output.Tags !== undefined && output.Tags !== null
15683
- ? deserializeAws_restJson1TagMap(output.Tags, context)
15684
- : undefined,
15443
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
15685
15444
  Username: (0, smithy_client_1.expectString)(output.Username),
15686
15445
  };
15687
15446
  };
@@ -15721,14 +15480,12 @@ const deserializeAws_restJson1Vocabulary = (output, context) => {
15721
15480
  FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
15722
15481
  Id: (0, smithy_client_1.expectString)(output.Id),
15723
15482
  LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
15724
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
15483
+ LastModifiedTime: output.LastModifiedTime != null
15725
15484
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
15726
15485
  : undefined,
15727
15486
  Name: (0, smithy_client_1.expectString)(output.Name),
15728
15487
  State: (0, smithy_client_1.expectString)(output.State),
15729
- Tags: output.Tags !== undefined && output.Tags !== null
15730
- ? deserializeAws_restJson1TagMap(output.Tags, context)
15731
- : undefined,
15488
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
15732
15489
  };
15733
15490
  };
15734
15491
  const deserializeAws_restJson1VocabularySummary = (output, context) => {
@@ -15737,7 +15494,7 @@ const deserializeAws_restJson1VocabularySummary = (output, context) => {
15737
15494
  FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
15738
15495
  Id: (0, smithy_client_1.expectString)(output.Id),
15739
15496
  LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
15740
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
15497
+ LastModifiedTime: output.LastModifiedTime != null
15741
15498
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
15742
15499
  : undefined,
15743
15500
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -15786,6 +15543,9 @@ const loadRestJsonErrorCode = (output, data) => {
15786
15543
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
15787
15544
  const sanitizeErrorCode = (rawValue) => {
15788
15545
  let cleanValue = rawValue;
15546
+ if (typeof cleanValue === "number") {
15547
+ cleanValue = cleanValue.toString();
15548
+ }
15789
15549
  if (cleanValue.indexOf(":") >= 0) {
15790
15550
  cleanValue = cleanValue.split(":")[0];
15791
15551
  }