@aws-sdk/client-connect 3.703.0 → 3.711.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.
Files changed (120) hide show
  1. package/README.md +74 -2
  2. package/dist-cjs/index.js +583 -109
  3. package/dist-es/Connect.js +18 -0
  4. package/dist-es/commands/CreateContactCommand.js +1 -1
  5. package/dist-es/commands/CreateHoursOfOperationOverrideCommand.js +22 -0
  6. package/dist-es/commands/CreatePushNotificationRegistrationCommand.js +22 -0
  7. package/dist-es/commands/DeleteHoursOfOperationOverrideCommand.js +22 -0
  8. package/dist-es/commands/DeletePushNotificationRegistrationCommand.js +22 -0
  9. package/dist-es/commands/DescribeHoursOfOperationOverrideCommand.js +22 -0
  10. package/dist-es/commands/GetEffectiveHoursOfOperationsCommand.js +22 -0
  11. package/dist-es/commands/ListHoursOfOperationOverridesCommand.js +22 -0
  12. package/dist-es/commands/SearchHoursOfOperationOverridesCommand.js +22 -0
  13. package/dist-es/commands/UpdateHoursOfOperationOverrideCommand.js +22 -0
  14. package/dist-es/commands/UpdateUserIdentityInfoCommand.js +1 -1
  15. package/dist-es/commands/UpdateViewContentCommand.js +1 -1
  16. package/dist-es/commands/UpdateViewMetadataCommand.js +1 -1
  17. package/dist-es/commands/index.js +9 -0
  18. package/dist-es/models/models_0.js +14 -0
  19. package/dist-es/models/models_1.js +0 -33
  20. package/dist-es/models/models_2.js +53 -45
  21. package/dist-es/models/models_3.js +32 -0
  22. package/dist-es/pagination/ListHoursOfOperationOverridesPaginator.js +4 -0
  23. package/dist-es/pagination/SearchHoursOfOperationOverridesPaginator.js +4 -0
  24. package/dist-es/pagination/index.js +2 -0
  25. package/dist-es/protocols/Aws_restJson1.js +280 -1
  26. package/dist-types/Connect.d.ts +65 -2
  27. package/dist-types/ConnectClient.d.ts +13 -4
  28. package/dist-types/commands/CreateContactCommand.d.ts +1 -1
  29. package/dist-types/commands/CreateEvaluationFormCommand.d.ts +1 -1
  30. package/dist-types/commands/CreateHoursOfOperationOverrideCommand.d.ts +111 -0
  31. package/dist-types/commands/CreatePushNotificationRegistrationCommand.d.ts +101 -0
  32. package/dist-types/commands/CreateQueueCommand.d.ts +1 -2
  33. package/dist-types/commands/DeleteHoursOfOperationOverrideCommand.d.ts +87 -0
  34. package/dist-types/commands/DeletePushNotificationRegistrationCommand.d.ts +86 -0
  35. package/dist-types/commands/DeleteTaskTemplateCommand.d.ts +1 -1
  36. package/dist-types/commands/DeleteTrafficDistributionGroupCommand.d.ts +1 -1
  37. package/dist-types/commands/DeleteUseCaseCommand.d.ts +1 -1
  38. package/dist-types/commands/DeleteUserCommand.d.ts +1 -1
  39. package/dist-types/commands/DeleteUserHierarchyGroupCommand.d.ts +1 -1
  40. package/dist-types/commands/DeleteViewCommand.d.ts +1 -1
  41. package/dist-types/commands/DeleteViewVersionCommand.d.ts +1 -1
  42. package/dist-types/commands/DeleteVocabularyCommand.d.ts +1 -2
  43. package/dist-types/commands/DescribeHoursOfOperationOverrideCommand.d.ts +109 -0
  44. package/dist-types/commands/DescribePhoneNumberCommand.d.ts +1 -2
  45. package/dist-types/commands/GetEffectiveHoursOfOperationsCommand.d.ts +106 -0
  46. package/dist-types/commands/ImportPhoneNumberCommand.d.ts +2 -3
  47. package/dist-types/commands/ListHoursOfOperationOverridesCommand.d.ts +115 -0
  48. package/dist-types/commands/ListRealtimeContactAnalysisSegmentsV2Command.d.ts +1 -2
  49. package/dist-types/commands/SearchContactFlowModulesCommand.d.ts +4 -0
  50. package/dist-types/commands/SearchHoursOfOperationOverridesCommand.d.ts +168 -0
  51. package/dist-types/commands/SendChatIntegrationEventCommand.d.ts +2 -2
  52. package/dist-types/commands/StartOutboundChatContactCommand.d.ts +1 -1
  53. package/dist-types/commands/UpdateHoursOfOperationOverrideCommand.d.ts +109 -0
  54. package/dist-types/commands/UpdateQueueOutboundEmailConfigCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdateTaskTemplateCommand.d.ts +2 -1
  56. package/dist-types/commands/UpdateTrafficDistributionCommand.d.ts +1 -1
  57. package/dist-types/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  58. package/dist-types/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  59. package/dist-types/commands/UpdateUserHierarchyStructureCommand.d.ts +1 -1
  60. package/dist-types/commands/UpdateUserIdentityInfoCommand.d.ts +1 -1
  61. package/dist-types/commands/UpdateUserPhoneConfigCommand.d.ts +1 -1
  62. package/dist-types/commands/UpdateUserProficienciesCommand.d.ts +1 -1
  63. package/dist-types/commands/UpdateUserRoutingProfileCommand.d.ts +1 -1
  64. package/dist-types/commands/UpdateUserSecurityProfilesCommand.d.ts +1 -1
  65. package/dist-types/commands/UpdateViewContentCommand.d.ts +1 -1
  66. package/dist-types/commands/UpdateViewMetadataCommand.d.ts +1 -1
  67. package/dist-types/commands/index.d.ts +9 -0
  68. package/dist-types/index.d.ts +2 -2
  69. package/dist-types/models/models_0.d.ts +250 -154
  70. package/dist-types/models/models_1.d.ts +384 -496
  71. package/dist-types/models/models_2.d.ts +3508 -3653
  72. package/dist-types/models/models_3.d.ts +791 -7
  73. package/dist-types/pagination/ListHoursOfOperationOverridesPaginator.d.ts +7 -0
  74. package/dist-types/pagination/SearchHoursOfOperationOverridesPaginator.d.ts +7 -0
  75. package/dist-types/pagination/index.d.ts +2 -0
  76. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  77. package/dist-types/ts3.4/Connect.d.ts +165 -0
  78. package/dist-types/ts3.4/ConnectClient.d.ts +54 -0
  79. package/dist-types/ts3.4/commands/CreateContactCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/CreateEvaluationFormCommand.d.ts +1 -1
  81. package/dist-types/ts3.4/commands/CreateHoursOfOperationOverrideCommand.d.ts +51 -0
  82. package/dist-types/ts3.4/commands/CreatePushNotificationRegistrationCommand.d.ts +51 -0
  83. package/dist-types/ts3.4/commands/DeleteHoursOfOperationOverrideCommand.d.ts +47 -0
  84. package/dist-types/ts3.4/commands/DeletePushNotificationRegistrationCommand.d.ts +51 -0
  85. package/dist-types/ts3.4/commands/DeleteTaskTemplateCommand.d.ts +1 -1
  86. package/dist-types/ts3.4/commands/DeleteTrafficDistributionGroupCommand.d.ts +1 -1
  87. package/dist-types/ts3.4/commands/DeleteUseCaseCommand.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +1 -1
  89. package/dist-types/ts3.4/commands/DeleteUserHierarchyGroupCommand.d.ts +1 -1
  90. package/dist-types/ts3.4/commands/DeleteViewCommand.d.ts +1 -1
  91. package/dist-types/ts3.4/commands/DeleteViewVersionCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/DeleteVocabularyCommand.d.ts +4 -2
  93. package/dist-types/ts3.4/commands/DescribeHoursOfOperationOverrideCommand.d.ts +51 -0
  94. package/dist-types/ts3.4/commands/GetEffectiveHoursOfOperationsCommand.d.ts +51 -0
  95. package/dist-types/ts3.4/commands/ListHoursOfOperationOverridesCommand.d.ts +51 -0
  96. package/dist-types/ts3.4/commands/ListRealtimeContactAnalysisSegmentsV2Command.d.ts +4 -2
  97. package/dist-types/ts3.4/commands/SearchHoursOfOperationOverridesCommand.d.ts +49 -0
  98. package/dist-types/ts3.4/commands/UpdateHoursOfOperationOverrideCommand.d.ts +47 -0
  99. package/dist-types/ts3.4/commands/UpdateTaskTemplateCommand.d.ts +2 -4
  100. package/dist-types/ts3.4/commands/UpdateTrafficDistributionCommand.d.ts +1 -1
  101. package/dist-types/ts3.4/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  102. package/dist-types/ts3.4/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  103. package/dist-types/ts3.4/commands/UpdateUserHierarchyStructureCommand.d.ts +1 -1
  104. package/dist-types/ts3.4/commands/UpdateUserIdentityInfoCommand.d.ts +1 -1
  105. package/dist-types/ts3.4/commands/UpdateUserPhoneConfigCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/UpdateUserProficienciesCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/UpdateUserRoutingProfileCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/UpdateUserSecurityProfilesCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/UpdateViewContentCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/UpdateViewMetadataCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  112. package/dist-types/ts3.4/models/models_0.d.ts +64 -37
  113. package/dist-types/ts3.4/models/models_1.d.ts +87 -142
  114. package/dist-types/ts3.4/models/models_2.d.ts +185 -212
  115. package/dist-types/ts3.4/models/models_3.d.ts +218 -5
  116. package/dist-types/ts3.4/pagination/ListHoursOfOperationOverridesPaginator.d.ts +11 -0
  117. package/dist-types/ts3.4/pagination/SearchHoursOfOperationOverridesPaginator.d.ts +11 -0
  118. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  119. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  120. package/package.json +35 -35
@@ -1,5 +1,37 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ import { UserIdentityInfoFilterSensitiveLog, ViewFilterSensitiveLog, ViewInputContentFilterSensitiveLog, } from "./models_0";
2
3
  import { EmailAddressInfoFilterSensitiveLog, InboundAdditionalRecipientsFilterSensitiveLog, InboundEmailContentFilterSensitiveLog, } from "./models_2";
4
+ export var EvaluationFormItem;
5
+ (function (EvaluationFormItem) {
6
+ EvaluationFormItem.visit = (value, visitor) => {
7
+ if (value.Section !== undefined)
8
+ return visitor.Section(value.Section);
9
+ if (value.Question !== undefined)
10
+ return visitor.Question(value.Question);
11
+ return visitor._(value.$unknown[0], value.$unknown[1]);
12
+ };
13
+ })(EvaluationFormItem || (EvaluationFormItem = {}));
14
+ export const UpdateUserIdentityInfoRequestFilterSensitiveLog = (obj) => ({
15
+ ...obj,
16
+ ...(obj.IdentityInfo && { IdentityInfo: UserIdentityInfoFilterSensitiveLog(obj.IdentityInfo) }),
17
+ });
18
+ export const UpdateViewContentRequestFilterSensitiveLog = (obj) => ({
19
+ ...obj,
20
+ ...(obj.Content && { Content: ViewInputContentFilterSensitiveLog(obj.Content) }),
21
+ });
22
+ export const UpdateViewContentResponseFilterSensitiveLog = (obj) => ({
23
+ ...obj,
24
+ ...(obj.View && { View: ViewFilterSensitiveLog(obj.View) }),
25
+ });
26
+ export const UpdateViewMetadataRequestFilterSensitiveLog = (obj) => ({
27
+ ...obj,
28
+ ...(obj.Name && { Name: SENSITIVE_STRING }),
29
+ });
30
+ export const CreateContactRequestFilterSensitiveLog = (obj) => ({
31
+ ...obj,
32
+ ...(obj.Name && { Name: SENSITIVE_STRING }),
33
+ ...(obj.Description && { Description: SENSITIVE_STRING }),
34
+ });
3
35
  export const StartEmailContactRequestFilterSensitiveLog = (obj) => ({
4
36
  ...obj,
5
37
  ...(obj.FromEmailAddress && { FromEmailAddress: EmailAddressInfoFilterSensitiveLog(obj.FromEmailAddress) }),
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListHoursOfOperationOverridesCommand, } from "../commands/ListHoursOfOperationOverridesCommand";
3
+ import { ConnectClient } from "../ConnectClient";
4
+ export const paginateListHoursOfOperationOverrides = createPaginator(ConnectClient, ListHoursOfOperationOverridesCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { SearchHoursOfOperationOverridesCommand, } from "../commands/SearchHoursOfOperationOverridesCommand";
3
+ import { ConnectClient } from "../ConnectClient";
4
+ export const paginateSearchHoursOfOperationOverrides = createPaginator(ConnectClient, SearchHoursOfOperationOverridesCommand, "NextToken", "NextToken", "MaxResults");
@@ -16,6 +16,7 @@ export * from "./ListDefaultVocabulariesPaginator";
16
16
  export * from "./ListEvaluationFormVersionsPaginator";
17
17
  export * from "./ListEvaluationFormsPaginator";
18
18
  export * from "./ListFlowAssociationsPaginator";
19
+ export * from "./ListHoursOfOperationOverridesPaginator";
19
20
  export * from "./ListHoursOfOperationsPaginator";
20
21
  export * from "./ListInstanceAttributesPaginator";
21
22
  export * from "./ListInstanceStorageConfigsPaginator";
@@ -52,6 +53,7 @@ export * from "./SearchAvailablePhoneNumbersPaginator";
52
53
  export * from "./SearchContactFlowModulesPaginator";
53
54
  export * from "./SearchContactFlowsPaginator";
54
55
  export * from "./SearchContactsPaginator";
56
+ export * from "./SearchHoursOfOperationOverridesPaginator";
55
57
  export * from "./SearchHoursOfOperationsPaginator";
56
58
  export * from "./SearchPredefinedAttributesPaginator";
57
59
  export * from "./SearchPromptsPaginator";
@@ -5,7 +5,8 @@ import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { ConnectServiceException as __BaseException } from "../models/ConnectServiceException";
6
6
  import { AccessDeniedException, ConflictException, DuplicateResourceException, IdempotencyException, InternalServiceException, InvalidContactFlowException, InvalidContactFlowModuleException, InvalidParameterException, InvalidRequestException, LimitExceededException, PropertyValidationException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, ThrottlingException, TooManyRequestsException, } from "../models/models_0";
7
7
  import { ContactFlowNotPublishedException, EvaluationAnswerData, UserNotFoundException, } from "../models/models_1";
8
- import { ConditionalOperationFailedException, ContactNotFoundException, DestinationNotAllowedException, EvaluationFormItem, MaximumResultReturnedException, OutboundContactNotPermittedException, OutputTypeNotFoundException, } from "../models/models_2";
8
+ import { ConditionalOperationFailedException, ContactNotFoundException, DestinationNotAllowedException, MaximumResultReturnedException, OutboundContactNotPermittedException, OutputTypeNotFoundException, } from "../models/models_2";
9
+ import { EvaluationFormItem, } from "../models/models_3";
9
10
  export const se_ActivateEvaluationFormCommand = async (input, context) => {
10
11
  const b = rb(input, context);
11
12
  const headers = {
@@ -488,6 +489,25 @@ export const se_CreateHoursOfOperationCommand = async (input, context) => {
488
489
  b.m("PUT").h(headers).b(body);
489
490
  return b.build();
490
491
  };
492
+ export const se_CreateHoursOfOperationOverrideCommand = async (input, context) => {
493
+ const b = rb(input, context);
494
+ const headers = {
495
+ "content-type": "application/json",
496
+ };
497
+ b.bp("/hours-of-operations/{InstanceId}/{HoursOfOperationId}/overrides");
498
+ b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
499
+ b.p("HoursOfOperationId", () => input.HoursOfOperationId, "{HoursOfOperationId}", false);
500
+ let body;
501
+ body = JSON.stringify(take(input, {
502
+ Config: (_) => _json(_),
503
+ Description: [],
504
+ EffectiveFrom: [],
505
+ EffectiveTill: [],
506
+ Name: [],
507
+ }));
508
+ b.m("PUT").h(headers).b(body);
509
+ return b.build();
510
+ };
491
511
  export const se_CreateInstanceCommand = async (input, context) => {
492
512
  const b = rb(input, context);
493
513
  const headers = {
@@ -591,6 +611,24 @@ export const se_CreatePromptCommand = async (input, context) => {
591
611
  b.m("PUT").h(headers).b(body);
592
612
  return b.build();
593
613
  };
614
+ export const se_CreatePushNotificationRegistrationCommand = async (input, context) => {
615
+ const b = rb(input, context);
616
+ const headers = {
617
+ "content-type": "application/json",
618
+ };
619
+ b.bp("/push-notification/{InstanceId}/registrations");
620
+ b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
621
+ let body;
622
+ body = JSON.stringify(take(input, {
623
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
624
+ ContactConfiguration: (_) => _json(_),
625
+ DeviceToken: [],
626
+ DeviceType: [],
627
+ PinpointAppArn: [],
628
+ }));
629
+ b.m("PUT").h(headers).b(body);
630
+ return b.build();
631
+ };
594
632
  export const se_CreateQueueCommand = async (input, context) => {
595
633
  const b = rb(input, context);
596
634
  const headers = {
@@ -927,6 +965,17 @@ export const se_DeleteHoursOfOperationCommand = async (input, context) => {
927
965
  b.m("DELETE").h(headers).b(body);
928
966
  return b.build();
929
967
  };
968
+ export const se_DeleteHoursOfOperationOverrideCommand = async (input, context) => {
969
+ const b = rb(input, context);
970
+ const headers = {};
971
+ b.bp("/hours-of-operations/{InstanceId}/{HoursOfOperationId}/overrides/{HoursOfOperationOverrideId}");
972
+ b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
973
+ b.p("HoursOfOperationId", () => input.HoursOfOperationId, "{HoursOfOperationId}", false);
974
+ b.p("HoursOfOperationOverrideId", () => input.HoursOfOperationOverrideId, "{HoursOfOperationOverrideId}", false);
975
+ let body;
976
+ b.m("DELETE").h(headers).b(body);
977
+ return b.build();
978
+ };
930
979
  export const se_DeleteInstanceCommand = async (input, context) => {
931
980
  const b = rb(input, context);
932
981
  const headers = {};
@@ -966,6 +1015,19 @@ export const se_DeletePromptCommand = async (input, context) => {
966
1015
  b.m("DELETE").h(headers).b(body);
967
1016
  return b.build();
968
1017
  };
1018
+ export const se_DeletePushNotificationRegistrationCommand = async (input, context) => {
1019
+ const b = rb(input, context);
1020
+ const headers = {};
1021
+ b.bp("/push-notification/{InstanceId}/registrations/{RegistrationId}");
1022
+ b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
1023
+ b.p("RegistrationId", () => input.RegistrationId, "{RegistrationId}", false);
1024
+ const query = map({
1025
+ [_cI]: [, __expectNonNull(input[_CI], `ContactId`)],
1026
+ });
1027
+ let body;
1028
+ b.m("DELETE").h(headers).q(query).b(body);
1029
+ return b.build();
1030
+ };
969
1031
  export const se_DeleteQueueCommand = async (input, context) => {
970
1032
  const b = rb(input, context);
971
1033
  const headers = {};
@@ -1190,6 +1252,17 @@ export const se_DescribeHoursOfOperationCommand = async (input, context) => {
1190
1252
  b.m("GET").h(headers).b(body);
1191
1253
  return b.build();
1192
1254
  };
1255
+ export const se_DescribeHoursOfOperationOverrideCommand = async (input, context) => {
1256
+ const b = rb(input, context);
1257
+ const headers = {};
1258
+ b.bp("/hours-of-operations/{InstanceId}/{HoursOfOperationId}/overrides/{HoursOfOperationOverrideId}");
1259
+ b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
1260
+ b.p("HoursOfOperationId", () => input.HoursOfOperationId, "{HoursOfOperationId}", false);
1261
+ b.p("HoursOfOperationOverrideId", () => input.HoursOfOperationOverrideId, "{HoursOfOperationOverrideId}", false);
1262
+ let body;
1263
+ b.m("GET").h(headers).b(body);
1264
+ return b.build();
1265
+ };
1193
1266
  export const se_DescribeInstanceCommand = async (input, context) => {
1194
1267
  const b = rb(input, context);
1195
1268
  const headers = {};
@@ -1604,6 +1677,20 @@ export const se_GetCurrentUserDataCommand = async (input, context) => {
1604
1677
  b.m("POST").h(headers).b(body);
1605
1678
  return b.build();
1606
1679
  };
1680
+ export const se_GetEffectiveHoursOfOperationsCommand = async (input, context) => {
1681
+ const b = rb(input, context);
1682
+ const headers = {};
1683
+ b.bp("/effective-hours-of-operations/{InstanceId}/{HoursOfOperationId}");
1684
+ b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
1685
+ b.p("HoursOfOperationId", () => input.HoursOfOperationId, "{HoursOfOperationId}", false);
1686
+ const query = map({
1687
+ [_fD]: [, __expectNonNull(input[_FD], `FromDate`)],
1688
+ [_tD]: [, __expectNonNull(input[_TD], `ToDate`)],
1689
+ });
1690
+ let body;
1691
+ b.m("GET").h(headers).q(query).b(body);
1692
+ return b.build();
1693
+ };
1607
1694
  export const se_GetFederationTokenCommand = async (input, context) => {
1608
1695
  const b = rb(input, context);
1609
1696
  const headers = {};
@@ -1922,6 +2009,20 @@ export const se_ListFlowAssociationsCommand = async (input, context) => {
1922
2009
  b.m("GET").h(headers).q(query).b(body);
1923
2010
  return b.build();
1924
2011
  };
2012
+ export const se_ListHoursOfOperationOverridesCommand = async (input, context) => {
2013
+ const b = rb(input, context);
2014
+ const headers = {};
2015
+ b.bp("/hours-of-operations/{InstanceId}/{HoursOfOperationId}/overrides");
2016
+ b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
2017
+ b.p("HoursOfOperationId", () => input.HoursOfOperationId, "{HoursOfOperationId}", false);
2018
+ const query = map({
2019
+ [_nT]: [, input[_NT]],
2020
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
2021
+ });
2022
+ let body;
2023
+ b.m("GET").h(headers).q(query).b(body);
2024
+ return b.build();
2025
+ };
1925
2026
  export const se_ListHoursOfOperationsCommand = async (input, context) => {
1926
2027
  const b = rb(input, context);
1927
2028
  const headers = {};
@@ -2574,6 +2675,23 @@ export const se_SearchEmailAddressesCommand = async (input, context) => {
2574
2675
  b.m("POST").h(headers).b(body);
2575
2676
  return b.build();
2576
2677
  };
2678
+ export const se_SearchHoursOfOperationOverridesCommand = async (input, context) => {
2679
+ const b = rb(input, context);
2680
+ const headers = {
2681
+ "content-type": "application/json",
2682
+ };
2683
+ b.bp("/search-hours-of-operation-overrides");
2684
+ let body;
2685
+ body = JSON.stringify(take(input, {
2686
+ InstanceId: [],
2687
+ MaxResults: [],
2688
+ NextToken: [],
2689
+ SearchCriteria: (_) => se_HoursOfOperationOverrideSearchCriteria(_, context),
2690
+ SearchFilter: (_) => _json(_),
2691
+ }));
2692
+ b.m("POST").h(headers).b(body);
2693
+ return b.build();
2694
+ };
2577
2695
  export const se_SearchHoursOfOperationsCommand = async (input, context) => {
2578
2696
  const b = rb(input, context);
2579
2697
  const headers = {
@@ -3457,6 +3575,26 @@ export const se_UpdateHoursOfOperationCommand = async (input, context) => {
3457
3575
  b.m("POST").h(headers).b(body);
3458
3576
  return b.build();
3459
3577
  };
3578
+ export const se_UpdateHoursOfOperationOverrideCommand = async (input, context) => {
3579
+ const b = rb(input, context);
3580
+ const headers = {
3581
+ "content-type": "application/json",
3582
+ };
3583
+ b.bp("/hours-of-operations/{InstanceId}/{HoursOfOperationId}/overrides/{HoursOfOperationOverrideId}");
3584
+ b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
3585
+ b.p("HoursOfOperationId", () => input.HoursOfOperationId, "{HoursOfOperationId}", false);
3586
+ b.p("HoursOfOperationOverrideId", () => input.HoursOfOperationOverrideId, "{HoursOfOperationOverrideId}", false);
3587
+ let body;
3588
+ body = JSON.stringify(take(input, {
3589
+ Config: (_) => _json(_),
3590
+ Description: [],
3591
+ EffectiveFrom: [],
3592
+ EffectiveTill: [],
3593
+ Name: [],
3594
+ }));
3595
+ b.m("POST").h(headers).b(body);
3596
+ return b.build();
3597
+ };
3460
3598
  export const se_UpdateInstanceAttributeCommand = async (input, context) => {
3461
3599
  const b = rb(input, context);
3462
3600
  const headers = {
@@ -4385,6 +4523,20 @@ export const de_CreateHoursOfOperationCommand = async (output, context) => {
4385
4523
  Object.assign(contents, doc);
4386
4524
  return contents;
4387
4525
  };
4526
+ export const de_CreateHoursOfOperationOverrideCommand = async (output, context) => {
4527
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4528
+ return de_CommandError(output, context);
4529
+ }
4530
+ const contents = map({
4531
+ $metadata: deserializeMetadata(output),
4532
+ });
4533
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4534
+ const doc = take(data, {
4535
+ HoursOfOperationOverrideId: __expectString,
4536
+ });
4537
+ Object.assign(contents, doc);
4538
+ return contents;
4539
+ };
4388
4540
  export const de_CreateInstanceCommand = async (output, context) => {
4389
4541
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4390
4542
  return de_CommandError(output, context);
@@ -4469,6 +4621,20 @@ export const de_CreatePromptCommand = async (output, context) => {
4469
4621
  Object.assign(contents, doc);
4470
4622
  return contents;
4471
4623
  };
4624
+ export const de_CreatePushNotificationRegistrationCommand = async (output, context) => {
4625
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4626
+ return de_CommandError(output, context);
4627
+ }
4628
+ const contents = map({
4629
+ $metadata: deserializeMetadata(output),
4630
+ });
4631
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4632
+ const doc = take(data, {
4633
+ RegistrationId: __expectString,
4634
+ });
4635
+ Object.assign(contents, doc);
4636
+ return contents;
4637
+ };
4472
4638
  export const de_CreateQueueCommand = async (output, context) => {
4473
4639
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4474
4640
  return de_CommandError(output, context);
@@ -4749,6 +4915,16 @@ export const de_DeleteHoursOfOperationCommand = async (output, context) => {
4749
4915
  await collectBody(output.body, context);
4750
4916
  return contents;
4751
4917
  };
4918
+ export const de_DeleteHoursOfOperationOverrideCommand = async (output, context) => {
4919
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4920
+ return de_CommandError(output, context);
4921
+ }
4922
+ const contents = map({
4923
+ $metadata: deserializeMetadata(output),
4924
+ });
4925
+ await collectBody(output.body, context);
4926
+ return contents;
4927
+ };
4752
4928
  export const de_DeleteInstanceCommand = async (output, context) => {
4753
4929
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4754
4930
  return de_CommandError(output, context);
@@ -4789,6 +4965,16 @@ export const de_DeletePromptCommand = async (output, context) => {
4789
4965
  await collectBody(output.body, context);
4790
4966
  return contents;
4791
4967
  };
4968
+ export const de_DeletePushNotificationRegistrationCommand = async (output, context) => {
4969
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4970
+ return de_CommandError(output, context);
4971
+ }
4972
+ const contents = map({
4973
+ $metadata: deserializeMetadata(output),
4974
+ });
4975
+ await collectBody(output.body, context);
4976
+ return contents;
4977
+ };
4792
4978
  export const de_DeleteQueueCommand = async (output, context) => {
4793
4979
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4794
4980
  return de_CommandError(output, context);
@@ -5059,6 +5245,20 @@ export const de_DescribeHoursOfOperationCommand = async (output, context) => {
5059
5245
  Object.assign(contents, doc);
5060
5246
  return contents;
5061
5247
  };
5248
+ export const de_DescribeHoursOfOperationOverrideCommand = async (output, context) => {
5249
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5250
+ return de_CommandError(output, context);
5251
+ }
5252
+ const contents = map({
5253
+ $metadata: deserializeMetadata(output),
5254
+ });
5255
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5256
+ const doc = take(data, {
5257
+ HoursOfOperationOverride: _json,
5258
+ });
5259
+ Object.assign(contents, doc);
5260
+ return contents;
5261
+ };
5062
5262
  export const de_DescribeInstanceCommand = async (output, context) => {
5063
5263
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5064
5264
  return de_CommandError(output, context);
@@ -5509,6 +5709,21 @@ export const de_GetCurrentUserDataCommand = async (output, context) => {
5509
5709
  Object.assign(contents, doc);
5510
5710
  return contents;
5511
5711
  };
5712
+ export const de_GetEffectiveHoursOfOperationsCommand = async (output, context) => {
5713
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5714
+ return de_CommandError(output, context);
5715
+ }
5716
+ const contents = map({
5717
+ $metadata: deserializeMetadata(output),
5718
+ });
5719
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5720
+ const doc = take(data, {
5721
+ EffectiveHoursOfOperationList: _json,
5722
+ TimeZone: __expectString,
5723
+ });
5724
+ Object.assign(contents, doc);
5725
+ return contents;
5726
+ };
5512
5727
  export const de_GetFederationTokenCommand = async (output, context) => {
5513
5728
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5514
5729
  return de_CommandError(output, context);
@@ -5873,6 +6088,23 @@ export const de_ListFlowAssociationsCommand = async (output, context) => {
5873
6088
  Object.assign(contents, doc);
5874
6089
  return contents;
5875
6090
  };
6091
+ export const de_ListHoursOfOperationOverridesCommand = async (output, context) => {
6092
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6093
+ return de_CommandError(output, context);
6094
+ }
6095
+ const contents = map({
6096
+ $metadata: deserializeMetadata(output),
6097
+ });
6098
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6099
+ const doc = take(data, {
6100
+ HoursOfOperationOverrideList: _json,
6101
+ LastModifiedRegion: __expectString,
6102
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6103
+ NextToken: __expectString,
6104
+ });
6105
+ Object.assign(contents, doc);
6106
+ return contents;
6107
+ };
5876
6108
  export const de_ListHoursOfOperationsCommand = async (output, context) => {
5877
6109
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5878
6110
  return de_CommandError(output, context);
@@ -6539,6 +6771,22 @@ export const de_SearchEmailAddressesCommand = async (output, context) => {
6539
6771
  Object.assign(contents, doc);
6540
6772
  return contents;
6541
6773
  };
6774
+ export const de_SearchHoursOfOperationOverridesCommand = async (output, context) => {
6775
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6776
+ return de_CommandError(output, context);
6777
+ }
6778
+ const contents = map({
6779
+ $metadata: deserializeMetadata(output),
6780
+ });
6781
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6782
+ const doc = take(data, {
6783
+ ApproximateTotalCount: __expectLong,
6784
+ HoursOfOperationOverrides: _json,
6785
+ NextToken: __expectString,
6786
+ });
6787
+ Object.assign(contents, doc);
6788
+ return contents;
6789
+ };
6542
6790
  export const de_SearchHoursOfOperationsCommand = async (output, context) => {
6543
6791
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6544
6792
  return de_CommandError(output, context);
@@ -7186,6 +7434,16 @@ export const de_UpdateHoursOfOperationCommand = async (output, context) => {
7186
7434
  await collectBody(output.body, context);
7187
7435
  return contents;
7188
7436
  };
7437
+ export const de_UpdateHoursOfOperationOverrideCommand = async (output, context) => {
7438
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7439
+ return de_CommandError(output, context);
7440
+ }
7441
+ const contents = map({
7442
+ $metadata: deserializeMetadata(output),
7443
+ });
7444
+ await collectBody(output.body, context);
7445
+ return contents;
7446
+ };
7189
7447
  export const de_UpdateInstanceAttributeCommand = async (output, context) => {
7190
7448
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7191
7449
  return de_CommandError(output, context);
@@ -8028,6 +8286,8 @@ const se_ContactFlowModuleSearchCriteria = (input, context) => {
8028
8286
  return take(input, {
8029
8287
  AndConditions: (_) => se_ContactFlowModuleSearchConditionList(_, context),
8030
8288
  OrConditions: (_) => se_ContactFlowModuleSearchConditionList(_, context),
8289
+ StateCondition: [],
8290
+ StatusCondition: [],
8031
8291
  StringCondition: _json,
8032
8292
  });
8033
8293
  };
@@ -8174,6 +8434,21 @@ const se_HistoricalMetrics = (input, context) => {
8174
8434
  return se_HistoricalMetric(entry, context);
8175
8435
  });
8176
8436
  };
8437
+ const se_HoursOfOperationOverrideSearchConditionList = (input, context) => {
8438
+ return input
8439
+ .filter((e) => e != null)
8440
+ .map((entry) => {
8441
+ return se_HoursOfOperationOverrideSearchCriteria(entry, context);
8442
+ });
8443
+ };
8444
+ const se_HoursOfOperationOverrideSearchCriteria = (input, context) => {
8445
+ return take(input, {
8446
+ AndConditions: (_) => se_HoursOfOperationOverrideSearchConditionList(_, context),
8447
+ DateCondition: _json,
8448
+ OrConditions: (_) => se_HoursOfOperationOverrideSearchConditionList(_, context),
8449
+ StringCondition: _json,
8450
+ });
8451
+ };
8177
8452
  const se_HoursOfOperationSearchConditionList = (input, context) => {
8178
8453
  return input
8179
8454
  .filter((e) => e != null)
@@ -9809,6 +10084,7 @@ const _DSI = "DataSetId";
9809
10084
  const _EFV = "EvaluationFormVersion";
9810
10085
  const _ESN = "EventSourceName";
9811
10086
  const _FA = "FunctionArn";
10087
+ const _FD = "FromDate";
9812
10088
  const _IA = "IntegrationArn";
9813
10089
  const _II = "InstanceId";
9814
10090
  const _IT = "IntegrationType";
@@ -9828,6 +10104,7 @@ const _RTe = "ReferenceTypes";
9828
10104
  const _S = "Status";
9829
10105
  const _SV = "SnapshotVersion";
9830
10106
  const _T = "Type";
10107
+ const _TD = "ToDate";
9831
10108
  const _TK = "TagKeys";
9832
10109
  const _UEIS = "UrlExpiryInSeconds";
9833
10110
  const _UI = "UserId";
@@ -9838,6 +10115,7 @@ const _cI = "contactId";
9838
10115
  const _cT = "clientToken";
9839
10116
  const _eSN = "eventSourceName";
9840
10117
  const _fA = "functionArn";
10118
+ const _fD = "fromDate";
9841
10119
  const _iA = "integrationArn";
9842
10120
  const _iI = "instanceId";
9843
10121
  const _iT = "integrationType";
@@ -9857,6 +10135,7 @@ const _s = "state";
9857
10135
  const _sV = "snapshotVersion";
9858
10136
  const _st = "status";
9859
10137
  const _t = "type";
10138
+ const _tD = "toDate";
9860
10139
  const _tK = "tagKeys";
9861
10140
  const _uEIS = "urlExpiryInSeconds";
9862
10141
  const _v = "version";