@aws-sdk/client-connect 3.319.0 → 3.321.1

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 (113) hide show
  1. package/README.md +119 -7
  2. package/dist-cjs/Connect.js +28 -0
  3. package/dist-cjs/commands/ActivateEvaluationFormCommand.js +45 -0
  4. package/dist-cjs/commands/CreateEvaluationFormCommand.js +45 -0
  5. package/dist-cjs/commands/DeactivateEvaluationFormCommand.js +45 -0
  6. package/dist-cjs/commands/DeleteContactEvaluationCommand.js +45 -0
  7. package/dist-cjs/commands/DeleteEvaluationFormCommand.js +45 -0
  8. package/dist-cjs/commands/DescribeContactEvaluationCommand.js +45 -0
  9. package/dist-cjs/commands/DescribeEvaluationFormCommand.js +45 -0
  10. package/dist-cjs/commands/GetFederationTokenCommand.js +2 -2
  11. package/dist-cjs/commands/ListContactEvaluationsCommand.js +45 -0
  12. package/dist-cjs/commands/ListEvaluationFormVersionsCommand.js +45 -0
  13. package/dist-cjs/commands/ListEvaluationFormsCommand.js +45 -0
  14. package/dist-cjs/commands/StartContactEvaluationCommand.js +45 -0
  15. package/dist-cjs/commands/SubmitContactEvaluationCommand.js +45 -0
  16. package/dist-cjs/commands/UpdateContactEvaluationCommand.js +45 -0
  17. package/dist-cjs/commands/UpdateEvaluationFormCommand.js +45 -0
  18. package/dist-cjs/commands/index.js +14 -0
  19. package/dist-cjs/models/models_0.js +142 -125
  20. package/dist-cjs/models/models_1.js +71 -1
  21. package/dist-cjs/pagination/ListContactEvaluationsPaginator.js +28 -0
  22. package/dist-cjs/pagination/ListEvaluationFormVersionsPaginator.js +29 -0
  23. package/dist-cjs/pagination/ListEvaluationFormsPaginator.js +29 -0
  24. package/dist-cjs/pagination/index.js +3 -0
  25. package/dist-cjs/protocols/Aws_restJson1.js +1272 -41
  26. package/dist-es/Connect.js +28 -0
  27. package/dist-es/commands/ActivateEvaluationFormCommand.js +41 -0
  28. package/dist-es/commands/CreateEvaluationFormCommand.js +41 -0
  29. package/dist-es/commands/DeactivateEvaluationFormCommand.js +41 -0
  30. package/dist-es/commands/DeleteContactEvaluationCommand.js +41 -0
  31. package/dist-es/commands/DeleteEvaluationFormCommand.js +41 -0
  32. package/dist-es/commands/DescribeContactEvaluationCommand.js +41 -0
  33. package/dist-es/commands/DescribeEvaluationFormCommand.js +41 -0
  34. package/dist-es/commands/GetFederationTokenCommand.js +1 -1
  35. package/dist-es/commands/ListContactEvaluationsCommand.js +41 -0
  36. package/dist-es/commands/ListEvaluationFormVersionsCommand.js +41 -0
  37. package/dist-es/commands/ListEvaluationFormsCommand.js +41 -0
  38. package/dist-es/commands/StartContactEvaluationCommand.js +41 -0
  39. package/dist-es/commands/SubmitContactEvaluationCommand.js +41 -0
  40. package/dist-es/commands/UpdateContactEvaluationCommand.js +41 -0
  41. package/dist-es/commands/UpdateEvaluationFormCommand.js +41 -0
  42. package/dist-es/commands/index.js +14 -0
  43. package/dist-es/models/models_0.js +136 -116
  44. package/dist-es/models/models_1.js +67 -0
  45. package/dist-es/pagination/ListContactEvaluationsPaginator.js +24 -0
  46. package/dist-es/pagination/ListEvaluationFormVersionsPaginator.js +25 -0
  47. package/dist-es/pagination/ListEvaluationFormsPaginator.js +25 -0
  48. package/dist-es/pagination/index.js +3 -0
  49. package/dist-es/protocols/Aws_restJson1.js +1235 -33
  50. package/dist-types/Connect.d.ts +98 -0
  51. package/dist-types/ConnectClient.d.ts +16 -2
  52. package/dist-types/commands/ActivateEvaluationFormCommand.d.ts +81 -0
  53. package/dist-types/commands/CreateEvaluationFormCommand.d.ts +213 -0
  54. package/dist-types/commands/CreateParticipantCommand.d.ts +1 -1
  55. package/dist-types/commands/DeactivateEvaluationFormCommand.d.ts +81 -0
  56. package/dist-types/commands/DeleteContactEvaluationCommand.d.ts +79 -0
  57. package/dist-types/commands/DeleteEvaluationFormCommand.d.ts +89 -0
  58. package/dist-types/commands/DescribeContactEvaluationCommand.d.ts +77 -0
  59. package/dist-types/commands/DescribeEvaluationFormCommand.d.ts +79 -0
  60. package/dist-types/commands/GetCurrentUserDataCommand.d.ts +1 -1
  61. package/dist-types/commands/GetFederationTokenCommand.d.ts +1 -1
  62. package/dist-types/commands/GetMetricDataCommand.d.ts +1 -1
  63. package/dist-types/commands/GetMetricDataV2Command.d.ts +1 -1
  64. package/dist-types/commands/GetTaskTemplateCommand.d.ts +1 -1
  65. package/dist-types/commands/GetTrafficDistributionCommand.d.ts +1 -1
  66. package/dist-types/commands/ListAgentStatusesCommand.d.ts +1 -2
  67. package/dist-types/commands/ListContactEvaluationsCommand.d.ts +77 -0
  68. package/dist-types/commands/ListEvaluationFormVersionsCommand.d.ts +78 -0
  69. package/dist-types/commands/ListEvaluationFormsCommand.d.ts +77 -0
  70. package/dist-types/commands/StartContactEvaluationCommand.d.ts +91 -0
  71. package/dist-types/commands/SubmitContactEvaluationCommand.d.ts +98 -0
  72. package/dist-types/commands/UpdateContactEvaluationCommand.d.ts +96 -0
  73. package/dist-types/commands/UpdateEvaluationFormCommand.d.ts +215 -0
  74. package/dist-types/commands/index.d.ts +14 -0
  75. package/dist-types/models/models_0.d.ts +859 -1281
  76. package/dist-types/models/models_1.d.ts +1758 -3
  77. package/dist-types/pagination/ListContactEvaluationsPaginator.d.ts +7 -0
  78. package/dist-types/pagination/ListEvaluationFormVersionsPaginator.d.ts +7 -0
  79. package/dist-types/pagination/ListEvaluationFormsPaginator.d.ts +7 -0
  80. package/dist-types/pagination/index.d.ts +3 -0
  81. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  82. package/dist-types/ts3.4/Connect.d.ts +238 -0
  83. package/dist-types/ts3.4/ConnectClient.d.ts +84 -0
  84. package/dist-types/ts3.4/commands/ActivateEvaluationFormCommand.d.ts +41 -0
  85. package/dist-types/ts3.4/commands/CreateEvaluationFormCommand.d.ts +39 -0
  86. package/dist-types/ts3.4/commands/DeactivateEvaluationFormCommand.d.ts +41 -0
  87. package/dist-types/ts3.4/commands/DeleteContactEvaluationCommand.d.ts +37 -0
  88. package/dist-types/ts3.4/commands/DeleteEvaluationFormCommand.d.ts +36 -0
  89. package/dist-types/ts3.4/commands/DescribeContactEvaluationCommand.d.ts +39 -0
  90. package/dist-types/ts3.4/commands/DescribeEvaluationFormCommand.d.ts +39 -0
  91. package/dist-types/ts3.4/commands/GetCurrentUserDataCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +1 -1
  93. package/dist-types/ts3.4/commands/GetMetricDataCommand.d.ts +1 -1
  94. package/dist-types/ts3.4/commands/GetMetricDataV2Command.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/GetTaskTemplateCommand.d.ts +1 -1
  96. package/dist-types/ts3.4/commands/GetTrafficDistributionCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/ListAgentStatusesCommand.d.ts +4 -2
  98. package/dist-types/ts3.4/commands/ListContactEvaluationsCommand.d.ts +41 -0
  99. package/dist-types/ts3.4/commands/ListEvaluationFormVersionsCommand.d.ts +41 -0
  100. package/dist-types/ts3.4/commands/ListEvaluationFormsCommand.d.ts +38 -0
  101. package/dist-types/ts3.4/commands/StartContactEvaluationCommand.d.ts +41 -0
  102. package/dist-types/ts3.4/commands/SubmitContactEvaluationCommand.d.ts +41 -0
  103. package/dist-types/ts3.4/commands/UpdateContactEvaluationCommand.d.ts +41 -0
  104. package/dist-types/ts3.4/commands/UpdateEvaluationFormCommand.d.ts +41 -0
  105. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  106. package/dist-types/ts3.4/models/models_0.d.ts +328 -262
  107. package/dist-types/ts3.4/models/models_1.d.ts +425 -1
  108. package/dist-types/ts3.4/pagination/ListContactEvaluationsPaginator.d.ts +11 -0
  109. package/dist-types/ts3.4/pagination/ListEvaluationFormVersionsPaginator.d.ts +11 -0
  110. package/dist-types/ts3.4/pagination/ListEvaluationFormsPaginator.d.ts +11 -0
  111. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  112. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  113. package/package.json +4 -4
@@ -1,18 +1,43 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_DescribeInstanceAttributeCommand = exports.se_DescribeInstanceCommand = exports.se_DescribeHoursOfOperationCommand = exports.se_DescribeContactFlowModuleCommand = exports.se_DescribeContactFlowCommand = exports.se_DescribeContactCommand = exports.se_DescribeAgentStatusCommand = exports.se_DeleteVocabularyCommand = exports.se_DeleteUserHierarchyGroupCommand = exports.se_DeleteUserCommand = exports.se_DeleteUseCaseCommand = exports.se_DeleteTrafficDistributionGroupCommand = exports.se_DeleteTaskTemplateCommand = exports.se_DeleteSecurityProfileCommand = exports.se_DeleteRuleCommand = exports.se_DeleteQuickConnectCommand = exports.se_DeleteIntegrationAssociationCommand = exports.se_DeleteInstanceCommand = exports.se_DeleteHoursOfOperationCommand = exports.se_DeleteContactFlowModuleCommand = exports.se_DeleteContactFlowCommand = exports.se_CreateVocabularyCommand = exports.se_CreateUserHierarchyGroupCommand = exports.se_CreateUserCommand = exports.se_CreateUseCaseCommand = exports.se_CreateTrafficDistributionGroupCommand = exports.se_CreateTaskTemplateCommand = exports.se_CreateSecurityProfileCommand = exports.se_CreateRuleCommand = exports.se_CreateRoutingProfileCommand = exports.se_CreateQuickConnectCommand = exports.se_CreateQueueCommand = exports.se_CreateParticipantCommand = exports.se_CreateIntegrationAssociationCommand = exports.se_CreateInstanceCommand = exports.se_CreateHoursOfOperationCommand = exports.se_CreateContactFlowModuleCommand = exports.se_CreateContactFlowCommand = exports.se_CreateAgentStatusCommand = exports.se_ClaimPhoneNumberCommand = exports.se_AssociateSecurityKeyCommand = exports.se_AssociateRoutingProfileQueuesCommand = exports.se_AssociateQueueQuickConnectsCommand = exports.se_AssociatePhoneNumberContactFlowCommand = exports.se_AssociateLexBotCommand = exports.se_AssociateLambdaFunctionCommand = exports.se_AssociateInstanceStorageConfigCommand = exports.se_AssociateDefaultVocabularyCommand = exports.se_AssociateBotCommand = exports.se_AssociateApprovedOriginCommand = void 0;
4
- exports.se_ListQuickConnectsCommand = exports.se_ListQueuesCommand = exports.se_ListQueueQuickConnectsCommand = exports.se_ListPromptsCommand = exports.se_ListPhoneNumbersV2Command = exports.se_ListPhoneNumbersCommand = exports.se_ListLexBotsCommand = exports.se_ListLambdaFunctionsCommand = exports.se_ListIntegrationAssociationsCommand = exports.se_ListInstanceStorageConfigsCommand = exports.se_ListInstancesCommand = exports.se_ListInstanceAttributesCommand = exports.se_ListHoursOfOperationsCommand = exports.se_ListDefaultVocabulariesCommand = exports.se_ListContactReferencesCommand = exports.se_ListContactFlowsCommand = exports.se_ListContactFlowModulesCommand = exports.se_ListBotsCommand = exports.se_ListApprovedOriginsCommand = exports.se_ListAgentStatusesCommand = exports.se_GetTrafficDistributionCommand = exports.se_GetTaskTemplateCommand = exports.se_GetMetricDataV2Command = exports.se_GetMetricDataCommand = exports.se_GetFederationTokenCommand = exports.se_GetCurrentUserDataCommand = exports.se_GetCurrentMetricDataCommand = exports.se_GetContactAttributesCommand = exports.se_DismissUserContactCommand = exports.se_DisassociateSecurityKeyCommand = exports.se_DisassociateRoutingProfileQueuesCommand = exports.se_DisassociateQueueQuickConnectsCommand = exports.se_DisassociatePhoneNumberContactFlowCommand = exports.se_DisassociateLexBotCommand = exports.se_DisassociateLambdaFunctionCommand = exports.se_DisassociateInstanceStorageConfigCommand = exports.se_DisassociateBotCommand = exports.se_DisassociateApprovedOriginCommand = exports.se_DescribeVocabularyCommand = exports.se_DescribeUserHierarchyStructureCommand = exports.se_DescribeUserHierarchyGroupCommand = exports.se_DescribeUserCommand = exports.se_DescribeTrafficDistributionGroupCommand = exports.se_DescribeSecurityProfileCommand = exports.se_DescribeRuleCommand = exports.se_DescribeRoutingProfileCommand = exports.se_DescribeQuickConnectCommand = exports.se_DescribeQueueCommand = exports.se_DescribePhoneNumberCommand = exports.se_DescribeInstanceStorageConfigCommand = void 0;
5
- exports.se_UpdateQueueHoursOfOperationCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateParticipantRoleConfigCommand = exports.se_UpdateInstanceStorageConfigCommand = exports.se_UpdateInstanceAttributeCommand = exports.se_UpdateHoursOfOperationCommand = exports.se_UpdateContactScheduleCommand = exports.se_UpdateContactFlowNameCommand = exports.se_UpdateContactFlowModuleMetadataCommand = exports.se_UpdateContactFlowModuleContentCommand = exports.se_UpdateContactFlowMetadataCommand = exports.se_UpdateContactFlowContentCommand = exports.se_UpdateContactAttributesCommand = exports.se_UpdateContactCommand = exports.se_UpdateAgentStatusCommand = exports.se_UntagResourceCommand = exports.se_TransferContactCommand = exports.se_TagResourceCommand = exports.se_SuspendContactRecordingCommand = exports.se_StopContactStreamingCommand = exports.se_StopContactRecordingCommand = exports.se_StopContactCommand = exports.se_StartTaskContactCommand = exports.se_StartOutboundVoiceContactCommand = exports.se_StartContactStreamingCommand = exports.se_StartContactRecordingCommand = exports.se_StartChatContactCommand = exports.se_SearchVocabulariesCommand = exports.se_SearchUsersCommand = exports.se_SearchSecurityProfilesCommand = exports.se_SearchRoutingProfilesCommand = exports.se_SearchQueuesCommand = exports.se_SearchAvailablePhoneNumbersCommand = exports.se_ResumeContactRecordingCommand = exports.se_ReplicateInstanceCommand = exports.se_ReleasePhoneNumberCommand = exports.se_PutUserStatusCommand = exports.se_MonitorContactCommand = exports.se_ListUsersCommand = exports.se_ListUserHierarchyGroupsCommand = exports.se_ListUseCasesCommand = exports.se_ListTrafficDistributionGroupsCommand = exports.se_ListTaskTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSecurityProfilesCommand = exports.se_ListSecurityProfilePermissionsCommand = exports.se_ListSecurityKeysCommand = exports.se_ListRulesCommand = exports.se_ListRoutingProfilesCommand = exports.se_ListRoutingProfileQueuesCommand = void 0;
6
- exports.de_CreateVocabularyCommand = exports.de_CreateUserHierarchyGroupCommand = exports.de_CreateUserCommand = exports.de_CreateUseCaseCommand = exports.de_CreateTrafficDistributionGroupCommand = exports.de_CreateTaskTemplateCommand = exports.de_CreateSecurityProfileCommand = exports.de_CreateRuleCommand = exports.de_CreateRoutingProfileCommand = exports.de_CreateQuickConnectCommand = exports.de_CreateQueueCommand = exports.de_CreateParticipantCommand = exports.de_CreateIntegrationAssociationCommand = exports.de_CreateInstanceCommand = exports.de_CreateHoursOfOperationCommand = exports.de_CreateContactFlowModuleCommand = exports.de_CreateContactFlowCommand = exports.de_CreateAgentStatusCommand = exports.de_ClaimPhoneNumberCommand = exports.de_AssociateSecurityKeyCommand = exports.de_AssociateRoutingProfileQueuesCommand = exports.de_AssociateQueueQuickConnectsCommand = exports.de_AssociatePhoneNumberContactFlowCommand = exports.de_AssociateLexBotCommand = exports.de_AssociateLambdaFunctionCommand = exports.de_AssociateInstanceStorageConfigCommand = exports.de_AssociateDefaultVocabularyCommand = exports.de_AssociateBotCommand = exports.de_AssociateApprovedOriginCommand = exports.se_UpdateUserSecurityProfilesCommand = exports.se_UpdateUserRoutingProfileCommand = exports.se_UpdateUserPhoneConfigCommand = exports.se_UpdateUserIdentityInfoCommand = exports.se_UpdateUserHierarchyStructureCommand = exports.se_UpdateUserHierarchyGroupNameCommand = exports.se_UpdateUserHierarchyCommand = exports.se_UpdateTrafficDistributionCommand = exports.se_UpdateTaskTemplateCommand = exports.se_UpdateSecurityProfileCommand = exports.se_UpdateRuleCommand = exports.se_UpdateRoutingProfileQueuesCommand = exports.se_UpdateRoutingProfileNameCommand = exports.se_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.se_UpdateRoutingProfileConcurrencyCommand = exports.se_UpdateQuickConnectNameCommand = exports.se_UpdateQuickConnectConfigCommand = exports.se_UpdateQueueStatusCommand = exports.se_UpdateQueueOutboundCallerConfigCommand = exports.se_UpdateQueueNameCommand = exports.se_UpdateQueueMaxContactsCommand = void 0;
7
- exports.de_GetTaskTemplateCommand = exports.de_GetMetricDataV2Command = exports.de_GetMetricDataCommand = exports.de_GetFederationTokenCommand = exports.de_GetCurrentUserDataCommand = exports.de_GetCurrentMetricDataCommand = exports.de_GetContactAttributesCommand = exports.de_DismissUserContactCommand = exports.de_DisassociateSecurityKeyCommand = exports.de_DisassociateRoutingProfileQueuesCommand = exports.de_DisassociateQueueQuickConnectsCommand = exports.de_DisassociatePhoneNumberContactFlowCommand = exports.de_DisassociateLexBotCommand = exports.de_DisassociateLambdaFunctionCommand = exports.de_DisassociateInstanceStorageConfigCommand = exports.de_DisassociateBotCommand = exports.de_DisassociateApprovedOriginCommand = exports.de_DescribeVocabularyCommand = exports.de_DescribeUserHierarchyStructureCommand = exports.de_DescribeUserHierarchyGroupCommand = exports.de_DescribeUserCommand = exports.de_DescribeTrafficDistributionGroupCommand = exports.de_DescribeSecurityProfileCommand = exports.de_DescribeRuleCommand = exports.de_DescribeRoutingProfileCommand = exports.de_DescribeQuickConnectCommand = exports.de_DescribeQueueCommand = exports.de_DescribePhoneNumberCommand = exports.de_DescribeInstanceStorageConfigCommand = exports.de_DescribeInstanceAttributeCommand = exports.de_DescribeInstanceCommand = exports.de_DescribeHoursOfOperationCommand = exports.de_DescribeContactFlowModuleCommand = exports.de_DescribeContactFlowCommand = exports.de_DescribeContactCommand = exports.de_DescribeAgentStatusCommand = exports.de_DeleteVocabularyCommand = exports.de_DeleteUserHierarchyGroupCommand = exports.de_DeleteUserCommand = exports.de_DeleteUseCaseCommand = exports.de_DeleteTrafficDistributionGroupCommand = exports.de_DeleteTaskTemplateCommand = exports.de_DeleteSecurityProfileCommand = exports.de_DeleteRuleCommand = exports.de_DeleteQuickConnectCommand = exports.de_DeleteIntegrationAssociationCommand = exports.de_DeleteInstanceCommand = exports.de_DeleteHoursOfOperationCommand = exports.de_DeleteContactFlowModuleCommand = exports.de_DeleteContactFlowCommand = void 0;
8
- exports.de_StopContactCommand = exports.de_StartTaskContactCommand = exports.de_StartOutboundVoiceContactCommand = exports.de_StartContactStreamingCommand = exports.de_StartContactRecordingCommand = exports.de_StartChatContactCommand = exports.de_SearchVocabulariesCommand = exports.de_SearchUsersCommand = exports.de_SearchSecurityProfilesCommand = exports.de_SearchRoutingProfilesCommand = exports.de_SearchQueuesCommand = exports.de_SearchAvailablePhoneNumbersCommand = exports.de_ResumeContactRecordingCommand = exports.de_ReplicateInstanceCommand = exports.de_ReleasePhoneNumberCommand = exports.de_PutUserStatusCommand = exports.de_MonitorContactCommand = exports.de_ListUsersCommand = exports.de_ListUserHierarchyGroupsCommand = exports.de_ListUseCasesCommand = exports.de_ListTrafficDistributionGroupsCommand = exports.de_ListTaskTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSecurityProfilesCommand = exports.de_ListSecurityProfilePermissionsCommand = exports.de_ListSecurityKeysCommand = exports.de_ListRulesCommand = exports.de_ListRoutingProfilesCommand = exports.de_ListRoutingProfileQueuesCommand = exports.de_ListQuickConnectsCommand = exports.de_ListQueuesCommand = exports.de_ListQueueQuickConnectsCommand = exports.de_ListPromptsCommand = exports.de_ListPhoneNumbersV2Command = exports.de_ListPhoneNumbersCommand = exports.de_ListLexBotsCommand = exports.de_ListLambdaFunctionsCommand = exports.de_ListIntegrationAssociationsCommand = exports.de_ListInstanceStorageConfigsCommand = exports.de_ListInstancesCommand = exports.de_ListInstanceAttributesCommand = exports.de_ListHoursOfOperationsCommand = exports.de_ListDefaultVocabulariesCommand = exports.de_ListContactReferencesCommand = exports.de_ListContactFlowsCommand = exports.de_ListContactFlowModulesCommand = exports.de_ListBotsCommand = exports.de_ListApprovedOriginsCommand = exports.de_ListAgentStatusesCommand = exports.de_GetTrafficDistributionCommand = void 0;
9
- exports.de_UpdateUserSecurityProfilesCommand = exports.de_UpdateUserRoutingProfileCommand = exports.de_UpdateUserPhoneConfigCommand = exports.de_UpdateUserIdentityInfoCommand = exports.de_UpdateUserHierarchyStructureCommand = exports.de_UpdateUserHierarchyGroupNameCommand = exports.de_UpdateUserHierarchyCommand = exports.de_UpdateTrafficDistributionCommand = exports.de_UpdateTaskTemplateCommand = exports.de_UpdateSecurityProfileCommand = exports.de_UpdateRuleCommand = exports.de_UpdateRoutingProfileQueuesCommand = exports.de_UpdateRoutingProfileNameCommand = exports.de_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.de_UpdateRoutingProfileConcurrencyCommand = exports.de_UpdateQuickConnectNameCommand = exports.de_UpdateQuickConnectConfigCommand = exports.de_UpdateQueueStatusCommand = exports.de_UpdateQueueOutboundCallerConfigCommand = exports.de_UpdateQueueNameCommand = exports.de_UpdateQueueMaxContactsCommand = exports.de_UpdateQueueHoursOfOperationCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateParticipantRoleConfigCommand = exports.de_UpdateInstanceStorageConfigCommand = exports.de_UpdateInstanceAttributeCommand = exports.de_UpdateHoursOfOperationCommand = exports.de_UpdateContactScheduleCommand = exports.de_UpdateContactFlowNameCommand = exports.de_UpdateContactFlowModuleMetadataCommand = exports.de_UpdateContactFlowModuleContentCommand = exports.de_UpdateContactFlowMetadataCommand = exports.de_UpdateContactFlowContentCommand = exports.de_UpdateContactAttributesCommand = exports.de_UpdateContactCommand = exports.de_UpdateAgentStatusCommand = exports.de_UntagResourceCommand = exports.de_TransferContactCommand = exports.de_TagResourceCommand = exports.de_SuspendContactRecordingCommand = exports.de_StopContactStreamingCommand = exports.de_StopContactRecordingCommand = void 0;
3
+ exports.se_DescribeContactCommand = exports.se_DescribeAgentStatusCommand = exports.se_DeleteVocabularyCommand = exports.se_DeleteUserHierarchyGroupCommand = exports.se_DeleteUserCommand = exports.se_DeleteUseCaseCommand = exports.se_DeleteTrafficDistributionGroupCommand = exports.se_DeleteTaskTemplateCommand = exports.se_DeleteSecurityProfileCommand = exports.se_DeleteRuleCommand = exports.se_DeleteQuickConnectCommand = exports.se_DeleteIntegrationAssociationCommand = exports.se_DeleteInstanceCommand = exports.se_DeleteHoursOfOperationCommand = exports.se_DeleteEvaluationFormCommand = exports.se_DeleteContactFlowModuleCommand = exports.se_DeleteContactFlowCommand = exports.se_DeleteContactEvaluationCommand = exports.se_DeactivateEvaluationFormCommand = exports.se_CreateVocabularyCommand = exports.se_CreateUserHierarchyGroupCommand = exports.se_CreateUserCommand = exports.se_CreateUseCaseCommand = exports.se_CreateTrafficDistributionGroupCommand = exports.se_CreateTaskTemplateCommand = exports.se_CreateSecurityProfileCommand = exports.se_CreateRuleCommand = exports.se_CreateRoutingProfileCommand = exports.se_CreateQuickConnectCommand = exports.se_CreateQueueCommand = exports.se_CreateParticipantCommand = exports.se_CreateIntegrationAssociationCommand = exports.se_CreateInstanceCommand = exports.se_CreateHoursOfOperationCommand = exports.se_CreateEvaluationFormCommand = exports.se_CreateContactFlowModuleCommand = exports.se_CreateContactFlowCommand = exports.se_CreateAgentStatusCommand = exports.se_ClaimPhoneNumberCommand = exports.se_AssociateSecurityKeyCommand = exports.se_AssociateRoutingProfileQueuesCommand = exports.se_AssociateQueueQuickConnectsCommand = exports.se_AssociatePhoneNumberContactFlowCommand = exports.se_AssociateLexBotCommand = exports.se_AssociateLambdaFunctionCommand = exports.se_AssociateInstanceStorageConfigCommand = exports.se_AssociateDefaultVocabularyCommand = exports.se_AssociateBotCommand = exports.se_AssociateApprovedOriginCommand = exports.se_ActivateEvaluationFormCommand = void 0;
4
+ exports.se_ListInstancesCommand = exports.se_ListInstanceAttributesCommand = exports.se_ListHoursOfOperationsCommand = exports.se_ListEvaluationFormVersionsCommand = exports.se_ListEvaluationFormsCommand = exports.se_ListDefaultVocabulariesCommand = exports.se_ListContactReferencesCommand = exports.se_ListContactFlowsCommand = exports.se_ListContactFlowModulesCommand = exports.se_ListContactEvaluationsCommand = exports.se_ListBotsCommand = exports.se_ListApprovedOriginsCommand = exports.se_ListAgentStatusesCommand = exports.se_GetTrafficDistributionCommand = exports.se_GetTaskTemplateCommand = exports.se_GetMetricDataV2Command = exports.se_GetMetricDataCommand = exports.se_GetFederationTokenCommand = exports.se_GetCurrentUserDataCommand = exports.se_GetCurrentMetricDataCommand = exports.se_GetContactAttributesCommand = exports.se_DismissUserContactCommand = exports.se_DisassociateSecurityKeyCommand = exports.se_DisassociateRoutingProfileQueuesCommand = exports.se_DisassociateQueueQuickConnectsCommand = exports.se_DisassociatePhoneNumberContactFlowCommand = exports.se_DisassociateLexBotCommand = exports.se_DisassociateLambdaFunctionCommand = exports.se_DisassociateInstanceStorageConfigCommand = exports.se_DisassociateBotCommand = exports.se_DisassociateApprovedOriginCommand = exports.se_DescribeVocabularyCommand = exports.se_DescribeUserHierarchyStructureCommand = exports.se_DescribeUserHierarchyGroupCommand = exports.se_DescribeUserCommand = exports.se_DescribeTrafficDistributionGroupCommand = exports.se_DescribeSecurityProfileCommand = exports.se_DescribeRuleCommand = exports.se_DescribeRoutingProfileCommand = exports.se_DescribeQuickConnectCommand = exports.se_DescribeQueueCommand = exports.se_DescribePhoneNumberCommand = exports.se_DescribeInstanceStorageConfigCommand = exports.se_DescribeInstanceAttributeCommand = exports.se_DescribeInstanceCommand = exports.se_DescribeHoursOfOperationCommand = exports.se_DescribeEvaluationFormCommand = exports.se_DescribeContactFlowModuleCommand = exports.se_DescribeContactFlowCommand = exports.se_DescribeContactEvaluationCommand = void 0;
5
+ exports.se_UpdateContactAttributesCommand = exports.se_UpdateContactCommand = exports.se_UpdateAgentStatusCommand = exports.se_UntagResourceCommand = exports.se_TransferContactCommand = exports.se_TagResourceCommand = exports.se_SuspendContactRecordingCommand = exports.se_SubmitContactEvaluationCommand = exports.se_StopContactStreamingCommand = exports.se_StopContactRecordingCommand = exports.se_StopContactCommand = exports.se_StartTaskContactCommand = exports.se_StartOutboundVoiceContactCommand = exports.se_StartContactStreamingCommand = exports.se_StartContactRecordingCommand = exports.se_StartContactEvaluationCommand = exports.se_StartChatContactCommand = exports.se_SearchVocabulariesCommand = exports.se_SearchUsersCommand = exports.se_SearchSecurityProfilesCommand = exports.se_SearchRoutingProfilesCommand = exports.se_SearchQueuesCommand = exports.se_SearchAvailablePhoneNumbersCommand = exports.se_ResumeContactRecordingCommand = exports.se_ReplicateInstanceCommand = exports.se_ReleasePhoneNumberCommand = exports.se_PutUserStatusCommand = exports.se_MonitorContactCommand = exports.se_ListUsersCommand = exports.se_ListUserHierarchyGroupsCommand = exports.se_ListUseCasesCommand = exports.se_ListTrafficDistributionGroupsCommand = exports.se_ListTaskTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSecurityProfilesCommand = exports.se_ListSecurityProfilePermissionsCommand = exports.se_ListSecurityKeysCommand = exports.se_ListRulesCommand = exports.se_ListRoutingProfilesCommand = exports.se_ListRoutingProfileQueuesCommand = exports.se_ListQuickConnectsCommand = exports.se_ListQueuesCommand = exports.se_ListQueueQuickConnectsCommand = exports.se_ListPromptsCommand = exports.se_ListPhoneNumbersV2Command = exports.se_ListPhoneNumbersCommand = exports.se_ListLexBotsCommand = exports.se_ListLambdaFunctionsCommand = exports.se_ListIntegrationAssociationsCommand = exports.se_ListInstanceStorageConfigsCommand = void 0;
6
+ exports.de_CreateContactFlowModuleCommand = exports.de_CreateContactFlowCommand = exports.de_CreateAgentStatusCommand = exports.de_ClaimPhoneNumberCommand = exports.de_AssociateSecurityKeyCommand = exports.de_AssociateRoutingProfileQueuesCommand = exports.de_AssociateQueueQuickConnectsCommand = exports.de_AssociatePhoneNumberContactFlowCommand = exports.de_AssociateLexBotCommand = exports.de_AssociateLambdaFunctionCommand = exports.de_AssociateInstanceStorageConfigCommand = exports.de_AssociateDefaultVocabularyCommand = exports.de_AssociateBotCommand = exports.de_AssociateApprovedOriginCommand = exports.de_ActivateEvaluationFormCommand = exports.se_UpdateUserSecurityProfilesCommand = exports.se_UpdateUserRoutingProfileCommand = exports.se_UpdateUserPhoneConfigCommand = exports.se_UpdateUserIdentityInfoCommand = exports.se_UpdateUserHierarchyStructureCommand = exports.se_UpdateUserHierarchyGroupNameCommand = exports.se_UpdateUserHierarchyCommand = exports.se_UpdateTrafficDistributionCommand = exports.se_UpdateTaskTemplateCommand = exports.se_UpdateSecurityProfileCommand = exports.se_UpdateRuleCommand = exports.se_UpdateRoutingProfileQueuesCommand = exports.se_UpdateRoutingProfileNameCommand = exports.se_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.se_UpdateRoutingProfileConcurrencyCommand = exports.se_UpdateQuickConnectNameCommand = exports.se_UpdateQuickConnectConfigCommand = exports.se_UpdateQueueStatusCommand = exports.se_UpdateQueueOutboundCallerConfigCommand = exports.se_UpdateQueueNameCommand = exports.se_UpdateQueueMaxContactsCommand = exports.se_UpdateQueueHoursOfOperationCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateParticipantRoleConfigCommand = exports.se_UpdateInstanceStorageConfigCommand = exports.se_UpdateInstanceAttributeCommand = exports.se_UpdateHoursOfOperationCommand = exports.se_UpdateEvaluationFormCommand = exports.se_UpdateContactScheduleCommand = exports.se_UpdateContactFlowNameCommand = exports.se_UpdateContactFlowModuleMetadataCommand = exports.se_UpdateContactFlowModuleContentCommand = exports.se_UpdateContactFlowMetadataCommand = exports.se_UpdateContactFlowContentCommand = exports.se_UpdateContactEvaluationCommand = void 0;
7
+ exports.de_DescribeTrafficDistributionGroupCommand = exports.de_DescribeSecurityProfileCommand = exports.de_DescribeRuleCommand = exports.de_DescribeRoutingProfileCommand = exports.de_DescribeQuickConnectCommand = exports.de_DescribeQueueCommand = exports.de_DescribePhoneNumberCommand = exports.de_DescribeInstanceStorageConfigCommand = exports.de_DescribeInstanceAttributeCommand = exports.de_DescribeInstanceCommand = exports.de_DescribeHoursOfOperationCommand = exports.de_DescribeEvaluationFormCommand = exports.de_DescribeContactFlowModuleCommand = exports.de_DescribeContactFlowCommand = exports.de_DescribeContactEvaluationCommand = exports.de_DescribeContactCommand = exports.de_DescribeAgentStatusCommand = exports.de_DeleteVocabularyCommand = exports.de_DeleteUserHierarchyGroupCommand = exports.de_DeleteUserCommand = exports.de_DeleteUseCaseCommand = exports.de_DeleteTrafficDistributionGroupCommand = exports.de_DeleteTaskTemplateCommand = exports.de_DeleteSecurityProfileCommand = exports.de_DeleteRuleCommand = exports.de_DeleteQuickConnectCommand = exports.de_DeleteIntegrationAssociationCommand = exports.de_DeleteInstanceCommand = exports.de_DeleteHoursOfOperationCommand = exports.de_DeleteEvaluationFormCommand = exports.de_DeleteContactFlowModuleCommand = exports.de_DeleteContactFlowCommand = exports.de_DeleteContactEvaluationCommand = exports.de_DeactivateEvaluationFormCommand = exports.de_CreateVocabularyCommand = exports.de_CreateUserHierarchyGroupCommand = exports.de_CreateUserCommand = exports.de_CreateUseCaseCommand = exports.de_CreateTrafficDistributionGroupCommand = exports.de_CreateTaskTemplateCommand = exports.de_CreateSecurityProfileCommand = exports.de_CreateRuleCommand = exports.de_CreateRoutingProfileCommand = exports.de_CreateQuickConnectCommand = exports.de_CreateQueueCommand = exports.de_CreateParticipantCommand = exports.de_CreateIntegrationAssociationCommand = exports.de_CreateInstanceCommand = exports.de_CreateHoursOfOperationCommand = exports.de_CreateEvaluationFormCommand = void 0;
8
+ exports.de_ListSecurityProfilePermissionsCommand = exports.de_ListSecurityKeysCommand = exports.de_ListRulesCommand = exports.de_ListRoutingProfilesCommand = exports.de_ListRoutingProfileQueuesCommand = exports.de_ListQuickConnectsCommand = exports.de_ListQueuesCommand = exports.de_ListQueueQuickConnectsCommand = exports.de_ListPromptsCommand = exports.de_ListPhoneNumbersV2Command = exports.de_ListPhoneNumbersCommand = exports.de_ListLexBotsCommand = exports.de_ListLambdaFunctionsCommand = exports.de_ListIntegrationAssociationsCommand = exports.de_ListInstanceStorageConfigsCommand = exports.de_ListInstancesCommand = exports.de_ListInstanceAttributesCommand = exports.de_ListHoursOfOperationsCommand = exports.de_ListEvaluationFormVersionsCommand = exports.de_ListEvaluationFormsCommand = exports.de_ListDefaultVocabulariesCommand = exports.de_ListContactReferencesCommand = exports.de_ListContactFlowsCommand = exports.de_ListContactFlowModulesCommand = exports.de_ListContactEvaluationsCommand = exports.de_ListBotsCommand = exports.de_ListApprovedOriginsCommand = exports.de_ListAgentStatusesCommand = exports.de_GetTrafficDistributionCommand = exports.de_GetTaskTemplateCommand = exports.de_GetMetricDataV2Command = exports.de_GetMetricDataCommand = exports.de_GetFederationTokenCommand = exports.de_GetCurrentUserDataCommand = exports.de_GetCurrentMetricDataCommand = exports.de_GetContactAttributesCommand = exports.de_DismissUserContactCommand = exports.de_DisassociateSecurityKeyCommand = exports.de_DisassociateRoutingProfileQueuesCommand = exports.de_DisassociateQueueQuickConnectsCommand = exports.de_DisassociatePhoneNumberContactFlowCommand = exports.de_DisassociateLexBotCommand = exports.de_DisassociateLambdaFunctionCommand = exports.de_DisassociateInstanceStorageConfigCommand = exports.de_DisassociateBotCommand = exports.de_DisassociateApprovedOriginCommand = exports.de_DescribeVocabularyCommand = exports.de_DescribeUserHierarchyStructureCommand = exports.de_DescribeUserHierarchyGroupCommand = exports.de_DescribeUserCommand = void 0;
9
+ exports.de_UpdateQueueMaxContactsCommand = exports.de_UpdateQueueHoursOfOperationCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateParticipantRoleConfigCommand = exports.de_UpdateInstanceStorageConfigCommand = exports.de_UpdateInstanceAttributeCommand = exports.de_UpdateHoursOfOperationCommand = exports.de_UpdateEvaluationFormCommand = exports.de_UpdateContactScheduleCommand = exports.de_UpdateContactFlowNameCommand = exports.de_UpdateContactFlowModuleMetadataCommand = exports.de_UpdateContactFlowModuleContentCommand = exports.de_UpdateContactFlowMetadataCommand = exports.de_UpdateContactFlowContentCommand = exports.de_UpdateContactEvaluationCommand = exports.de_UpdateContactAttributesCommand = exports.de_UpdateContactCommand = exports.de_UpdateAgentStatusCommand = exports.de_UntagResourceCommand = exports.de_TransferContactCommand = exports.de_TagResourceCommand = exports.de_SuspendContactRecordingCommand = exports.de_SubmitContactEvaluationCommand = exports.de_StopContactStreamingCommand = exports.de_StopContactRecordingCommand = exports.de_StopContactCommand = exports.de_StartTaskContactCommand = exports.de_StartOutboundVoiceContactCommand = exports.de_StartContactStreamingCommand = exports.de_StartContactRecordingCommand = exports.de_StartContactEvaluationCommand = exports.de_StartChatContactCommand = exports.de_SearchVocabulariesCommand = exports.de_SearchUsersCommand = exports.de_SearchSecurityProfilesCommand = exports.de_SearchRoutingProfilesCommand = exports.de_SearchQueuesCommand = exports.de_SearchAvailablePhoneNumbersCommand = exports.de_ResumeContactRecordingCommand = exports.de_ReplicateInstanceCommand = exports.de_ReleasePhoneNumberCommand = exports.de_PutUserStatusCommand = exports.de_MonitorContactCommand = exports.de_ListUsersCommand = exports.de_ListUserHierarchyGroupsCommand = exports.de_ListUseCasesCommand = exports.de_ListTrafficDistributionGroupsCommand = exports.de_ListTaskTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSecurityProfilesCommand = void 0;
10
+ exports.de_UpdateUserSecurityProfilesCommand = exports.de_UpdateUserRoutingProfileCommand = exports.de_UpdateUserPhoneConfigCommand = exports.de_UpdateUserIdentityInfoCommand = exports.de_UpdateUserHierarchyStructureCommand = exports.de_UpdateUserHierarchyGroupNameCommand = exports.de_UpdateUserHierarchyCommand = exports.de_UpdateTrafficDistributionCommand = exports.de_UpdateTaskTemplateCommand = exports.de_UpdateSecurityProfileCommand = exports.de_UpdateRuleCommand = exports.de_UpdateRoutingProfileQueuesCommand = exports.de_UpdateRoutingProfileNameCommand = exports.de_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.de_UpdateRoutingProfileConcurrencyCommand = exports.de_UpdateQuickConnectNameCommand = exports.de_UpdateQuickConnectConfigCommand = exports.de_UpdateQueueStatusCommand = exports.de_UpdateQueueOutboundCallerConfigCommand = exports.de_UpdateQueueNameCommand = void 0;
10
11
  const protocol_http_1 = require("@aws-sdk/protocol-http");
11
12
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
13
  const uuid_1 = require("uuid");
13
14
  const ConnectServiceException_1 = require("../models/ConnectServiceException");
14
15
  const models_0_1 = require("../models/models_0");
15
16
  const models_1_1 = require("../models/models_1");
17
+ const se_ActivateEvaluationFormCommand = async (input, context) => {
18
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
19
+ const headers = {
20
+ "content-type": "application/json",
21
+ };
22
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
23
+ "/evaluation-forms/{InstanceId}/{EvaluationFormId}/activate";
24
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
25
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EvaluationFormId", () => input.EvaluationFormId, "{EvaluationFormId}", false);
26
+ let body;
27
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
28
+ EvaluationFormVersion: [],
29
+ }));
30
+ return new protocol_http_1.HttpRequest({
31
+ protocol,
32
+ hostname,
33
+ port,
34
+ method: "POST",
35
+ headers,
36
+ path: resolvedPath,
37
+ body,
38
+ });
39
+ };
40
+ exports.se_ActivateEvaluationFormCommand = se_ActivateEvaluationFormCommand;
16
41
  const se_AssociateApprovedOriginCommand = async (input, context) => {
17
42
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
18
43
  const headers = {
@@ -346,6 +371,32 @@ const se_CreateContactFlowModuleCommand = async (input, context) => {
346
371
  });
347
372
  };
348
373
  exports.se_CreateContactFlowModuleCommand = se_CreateContactFlowModuleCommand;
374
+ const se_CreateEvaluationFormCommand = async (input, context) => {
375
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
376
+ const headers = {
377
+ "content-type": "application/json",
378
+ };
379
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/evaluation-forms/{InstanceId}";
380
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
381
+ let body;
382
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
383
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
384
+ Description: [],
385
+ Items: (_) => se_EvaluationFormItemsList(_, context),
386
+ ScoringStrategy: (_) => (0, smithy_client_1._json)(_),
387
+ Title: [],
388
+ }));
389
+ return new protocol_http_1.HttpRequest({
390
+ protocol,
391
+ hostname,
392
+ port,
393
+ method: "PUT",
394
+ headers,
395
+ path: resolvedPath,
396
+ body,
397
+ });
398
+ };
399
+ exports.se_CreateEvaluationFormCommand = se_CreateEvaluationFormCommand;
349
400
  const se_CreateHoursOfOperationCommand = async (input, context) => {
350
401
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
351
402
  const headers = {
@@ -743,6 +794,49 @@ const se_CreateVocabularyCommand = async (input, context) => {
743
794
  });
744
795
  };
745
796
  exports.se_CreateVocabularyCommand = se_CreateVocabularyCommand;
797
+ const se_DeactivateEvaluationFormCommand = async (input, context) => {
798
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
799
+ const headers = {
800
+ "content-type": "application/json",
801
+ };
802
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
803
+ "/evaluation-forms/{InstanceId}/{EvaluationFormId}/deactivate";
804
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
805
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EvaluationFormId", () => input.EvaluationFormId, "{EvaluationFormId}", false);
806
+ let body;
807
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
808
+ EvaluationFormVersion: [],
809
+ }));
810
+ return new protocol_http_1.HttpRequest({
811
+ protocol,
812
+ hostname,
813
+ port,
814
+ method: "POST",
815
+ headers,
816
+ path: resolvedPath,
817
+ body,
818
+ });
819
+ };
820
+ exports.se_DeactivateEvaluationFormCommand = se_DeactivateEvaluationFormCommand;
821
+ const se_DeleteContactEvaluationCommand = async (input, context) => {
822
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
823
+ const headers = {};
824
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
825
+ "/contact-evaluations/{InstanceId}/{EvaluationId}";
826
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
827
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EvaluationId", () => input.EvaluationId, "{EvaluationId}", false);
828
+ let body;
829
+ return new protocol_http_1.HttpRequest({
830
+ protocol,
831
+ hostname,
832
+ port,
833
+ method: "DELETE",
834
+ headers,
835
+ path: resolvedPath,
836
+ body,
837
+ });
838
+ };
839
+ exports.se_DeleteContactEvaluationCommand = se_DeleteContactEvaluationCommand;
746
840
  const se_DeleteContactFlowCommand = async (input, context) => {
747
841
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
748
842
  const headers = {};
@@ -781,6 +875,29 @@ const se_DeleteContactFlowModuleCommand = async (input, context) => {
781
875
  });
782
876
  };
783
877
  exports.se_DeleteContactFlowModuleCommand = se_DeleteContactFlowModuleCommand;
878
+ const se_DeleteEvaluationFormCommand = async (input, context) => {
879
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
880
+ const headers = {};
881
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
882
+ "/evaluation-forms/{InstanceId}/{EvaluationFormId}";
883
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
884
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EvaluationFormId", () => input.EvaluationFormId, "{EvaluationFormId}", false);
885
+ const query = (0, smithy_client_1.map)({
886
+ version: [() => input.EvaluationFormVersion !== void 0, () => input.EvaluationFormVersion.toString()],
887
+ });
888
+ let body;
889
+ return new protocol_http_1.HttpRequest({
890
+ protocol,
891
+ hostname,
892
+ port,
893
+ method: "DELETE",
894
+ headers,
895
+ path: resolvedPath,
896
+ query,
897
+ body,
898
+ });
899
+ };
900
+ exports.se_DeleteEvaluationFormCommand = se_DeleteEvaluationFormCommand;
784
901
  const se_DeleteHoursOfOperationCommand = async (input, context) => {
785
902
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
786
903
  const headers = {};
@@ -1042,6 +1159,25 @@ const se_DescribeContactCommand = async (input, context) => {
1042
1159
  });
1043
1160
  };
1044
1161
  exports.se_DescribeContactCommand = se_DescribeContactCommand;
1162
+ const se_DescribeContactEvaluationCommand = async (input, context) => {
1163
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1164
+ const headers = {};
1165
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1166
+ "/contact-evaluations/{InstanceId}/{EvaluationId}";
1167
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1168
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EvaluationId", () => input.EvaluationId, "{EvaluationId}", false);
1169
+ let body;
1170
+ return new protocol_http_1.HttpRequest({
1171
+ protocol,
1172
+ hostname,
1173
+ port,
1174
+ method: "GET",
1175
+ headers,
1176
+ path: resolvedPath,
1177
+ body,
1178
+ });
1179
+ };
1180
+ exports.se_DescribeContactEvaluationCommand = se_DescribeContactEvaluationCommand;
1045
1181
  const se_DescribeContactFlowCommand = async (input, context) => {
1046
1182
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1047
1183
  const headers = {};
@@ -1080,6 +1216,29 @@ const se_DescribeContactFlowModuleCommand = async (input, context) => {
1080
1216
  });
1081
1217
  };
1082
1218
  exports.se_DescribeContactFlowModuleCommand = se_DescribeContactFlowModuleCommand;
1219
+ const se_DescribeEvaluationFormCommand = async (input, context) => {
1220
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1221
+ const headers = {};
1222
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1223
+ "/evaluation-forms/{InstanceId}/{EvaluationFormId}";
1224
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1225
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EvaluationFormId", () => input.EvaluationFormId, "{EvaluationFormId}", false);
1226
+ const query = (0, smithy_client_1.map)({
1227
+ version: [() => input.EvaluationFormVersion !== void 0, () => input.EvaluationFormVersion.toString()],
1228
+ });
1229
+ let body;
1230
+ return new protocol_http_1.HttpRequest({
1231
+ protocol,
1232
+ hostname,
1233
+ port,
1234
+ method: "GET",
1235
+ headers,
1236
+ path: resolvedPath,
1237
+ query,
1238
+ body,
1239
+ });
1240
+ };
1241
+ exports.se_DescribeEvaluationFormCommand = se_DescribeEvaluationFormCommand;
1083
1242
  const se_DescribeHoursOfOperationCommand = async (input, context) => {
1084
1243
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1085
1244
  const headers = {};
@@ -1834,6 +1993,28 @@ const se_ListBotsCommand = async (input, context) => {
1834
1993
  });
1835
1994
  };
1836
1995
  exports.se_ListBotsCommand = se_ListBotsCommand;
1996
+ const se_ListContactEvaluationsCommand = async (input, context) => {
1997
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1998
+ const headers = {};
1999
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact-evaluations/{InstanceId}";
2000
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2001
+ const query = (0, smithy_client_1.map)({
2002
+ contactId: [, (0, smithy_client_1.expectNonNull)(input.ContactId, `ContactId`)],
2003
+ nextToken: [, input.NextToken],
2004
+ });
2005
+ let body;
2006
+ return new protocol_http_1.HttpRequest({
2007
+ protocol,
2008
+ hostname,
2009
+ port,
2010
+ method: "GET",
2011
+ headers,
2012
+ path: resolvedPath,
2013
+ query,
2014
+ body,
2015
+ });
2016
+ };
2017
+ exports.se_ListContactEvaluationsCommand = se_ListContactEvaluationsCommand;
1837
2018
  const se_ListContactFlowModulesCommand = async (input, context) => {
1838
2019
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1839
2020
  const headers = {};
@@ -1935,6 +2116,52 @@ const se_ListDefaultVocabulariesCommand = async (input, context) => {
1935
2116
  });
1936
2117
  };
1937
2118
  exports.se_ListDefaultVocabulariesCommand = se_ListDefaultVocabulariesCommand;
2119
+ const se_ListEvaluationFormsCommand = async (input, context) => {
2120
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2121
+ const headers = {};
2122
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/evaluation-forms/{InstanceId}";
2123
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2124
+ const query = (0, smithy_client_1.map)({
2125
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
2126
+ nextToken: [, input.NextToken],
2127
+ });
2128
+ let body;
2129
+ return new protocol_http_1.HttpRequest({
2130
+ protocol,
2131
+ hostname,
2132
+ port,
2133
+ method: "GET",
2134
+ headers,
2135
+ path: resolvedPath,
2136
+ query,
2137
+ body,
2138
+ });
2139
+ };
2140
+ exports.se_ListEvaluationFormsCommand = se_ListEvaluationFormsCommand;
2141
+ const se_ListEvaluationFormVersionsCommand = async (input, context) => {
2142
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2143
+ const headers = {};
2144
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2145
+ "/evaluation-forms/{InstanceId}/{EvaluationFormId}/versions";
2146
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2147
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EvaluationFormId", () => input.EvaluationFormId, "{EvaluationFormId}", false);
2148
+ const query = (0, smithy_client_1.map)({
2149
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
2150
+ nextToken: [, input.NextToken],
2151
+ });
2152
+ let body;
2153
+ return new protocol_http_1.HttpRequest({
2154
+ protocol,
2155
+ hostname,
2156
+ port,
2157
+ method: "GET",
2158
+ headers,
2159
+ path: resolvedPath,
2160
+ query,
2161
+ body,
2162
+ });
2163
+ };
2164
+ exports.se_ListEvaluationFormVersionsCommand = se_ListEvaluationFormVersionsCommand;
1938
2165
  const se_ListHoursOfOperationsCommand = async (input, context) => {
1939
2166
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1940
2167
  const headers = {};
@@ -2810,6 +3037,30 @@ const se_StartChatContactCommand = async (input, context) => {
2810
3037
  });
2811
3038
  };
2812
3039
  exports.se_StartChatContactCommand = se_StartChatContactCommand;
3040
+ const se_StartContactEvaluationCommand = async (input, context) => {
3041
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3042
+ const headers = {
3043
+ "content-type": "application/json",
3044
+ };
3045
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact-evaluations/{InstanceId}";
3046
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3047
+ let body;
3048
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
3049
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
3050
+ ContactId: [],
3051
+ EvaluationFormId: [],
3052
+ }));
3053
+ return new protocol_http_1.HttpRequest({
3054
+ protocol,
3055
+ hostname,
3056
+ port,
3057
+ method: "PUT",
3058
+ headers,
3059
+ path: resolvedPath,
3060
+ body,
3061
+ });
3062
+ };
3063
+ exports.se_StartContactEvaluationCommand = se_StartContactEvaluationCommand;
2813
3064
  const se_StartContactRecordingCommand = async (input, context) => {
2814
3065
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2815
3066
  const headers = {
@@ -2988,6 +3239,31 @@ const se_StopContactStreamingCommand = async (input, context) => {
2988
3239
  });
2989
3240
  };
2990
3241
  exports.se_StopContactStreamingCommand = se_StopContactStreamingCommand;
3242
+ const se_SubmitContactEvaluationCommand = async (input, context) => {
3243
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3244
+ const headers = {
3245
+ "content-type": "application/json",
3246
+ };
3247
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3248
+ "/contact-evaluations/{InstanceId}/{EvaluationId}/submit";
3249
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3250
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EvaluationId", () => input.EvaluationId, "{EvaluationId}", false);
3251
+ let body;
3252
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
3253
+ Answers: (_) => se_EvaluationAnswersInputMap(_, context),
3254
+ Notes: (_) => (0, smithy_client_1._json)(_),
3255
+ }));
3256
+ return new protocol_http_1.HttpRequest({
3257
+ protocol,
3258
+ hostname,
3259
+ port,
3260
+ method: "POST",
3261
+ headers,
3262
+ path: resolvedPath,
3263
+ body,
3264
+ });
3265
+ };
3266
+ exports.se_SubmitContactEvaluationCommand = se_SubmitContactEvaluationCommand;
2991
3267
  const se_SuspendContactRecordingCommand = async (input, context) => {
2992
3268
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2993
3269
  const headers = {
@@ -3159,6 +3435,31 @@ const se_UpdateContactAttributesCommand = async (input, context) => {
3159
3435
  });
3160
3436
  };
3161
3437
  exports.se_UpdateContactAttributesCommand = se_UpdateContactAttributesCommand;
3438
+ const se_UpdateContactEvaluationCommand = async (input, context) => {
3439
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3440
+ const headers = {
3441
+ "content-type": "application/json",
3442
+ };
3443
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3444
+ "/contact-evaluations/{InstanceId}/{EvaluationId}";
3445
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3446
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EvaluationId", () => input.EvaluationId, "{EvaluationId}", false);
3447
+ let body;
3448
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
3449
+ Answers: (_) => se_EvaluationAnswersInputMap(_, context),
3450
+ Notes: (_) => (0, smithy_client_1._json)(_),
3451
+ }));
3452
+ return new protocol_http_1.HttpRequest({
3453
+ protocol,
3454
+ hostname,
3455
+ port,
3456
+ method: "POST",
3457
+ headers,
3458
+ path: resolvedPath,
3459
+ body,
3460
+ });
3461
+ };
3462
+ exports.se_UpdateContactEvaluationCommand = se_UpdateContactEvaluationCommand;
3162
3463
  const se_UpdateContactFlowContentCommand = async (input, context) => {
3163
3464
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3164
3465
  const headers = {
@@ -3307,45 +3608,75 @@ const se_UpdateContactScheduleCommand = async (input, context) => {
3307
3608
  });
3308
3609
  };
3309
3610
  exports.se_UpdateContactScheduleCommand = se_UpdateContactScheduleCommand;
3310
- const se_UpdateHoursOfOperationCommand = async (input, context) => {
3611
+ const se_UpdateEvaluationFormCommand = async (input, context) => {
3311
3612
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3312
3613
  const headers = {
3313
3614
  "content-type": "application/json",
3314
3615
  };
3315
3616
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3316
- "/hours-of-operations/{InstanceId}/{HoursOfOperationId}";
3617
+ "/evaluation-forms/{InstanceId}/{EvaluationFormId}";
3317
3618
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3318
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "HoursOfOperationId", () => input.HoursOfOperationId, "{HoursOfOperationId}", false);
3619
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EvaluationFormId", () => input.EvaluationFormId, "{EvaluationFormId}", false);
3319
3620
  let body;
3320
3621
  body = JSON.stringify((0, smithy_client_1.take)(input, {
3321
- Config: (_) => (0, smithy_client_1._json)(_),
3622
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
3623
+ CreateNewVersion: [],
3322
3624
  Description: [],
3323
- Name: [],
3324
- TimeZone: [],
3625
+ EvaluationFormVersion: [],
3626
+ Items: (_) => se_EvaluationFormItemsList(_, context),
3627
+ ScoringStrategy: (_) => (0, smithy_client_1._json)(_),
3628
+ Title: [],
3325
3629
  }));
3326
3630
  return new protocol_http_1.HttpRequest({
3327
3631
  protocol,
3328
3632
  hostname,
3329
3633
  port,
3330
- method: "POST",
3634
+ method: "PUT",
3331
3635
  headers,
3332
3636
  path: resolvedPath,
3333
3637
  body,
3334
3638
  });
3335
3639
  };
3336
- exports.se_UpdateHoursOfOperationCommand = se_UpdateHoursOfOperationCommand;
3337
- const se_UpdateInstanceAttributeCommand = async (input, context) => {
3640
+ exports.se_UpdateEvaluationFormCommand = se_UpdateEvaluationFormCommand;
3641
+ const se_UpdateHoursOfOperationCommand = async (input, context) => {
3338
3642
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3339
3643
  const headers = {
3340
3644
  "content-type": "application/json",
3341
3645
  };
3342
3646
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3343
- "/instance/{InstanceId}/attribute/{AttributeType}";
3647
+ "/hours-of-operations/{InstanceId}/{HoursOfOperationId}";
3344
3648
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3345
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttributeType", () => input.AttributeType, "{AttributeType}", false);
3649
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "HoursOfOperationId", () => input.HoursOfOperationId, "{HoursOfOperationId}", false);
3346
3650
  let body;
3347
3651
  body = JSON.stringify((0, smithy_client_1.take)(input, {
3348
- Value: [],
3652
+ Config: (_) => (0, smithy_client_1._json)(_),
3653
+ Description: [],
3654
+ Name: [],
3655
+ TimeZone: [],
3656
+ }));
3657
+ return new protocol_http_1.HttpRequest({
3658
+ protocol,
3659
+ hostname,
3660
+ port,
3661
+ method: "POST",
3662
+ headers,
3663
+ path: resolvedPath,
3664
+ body,
3665
+ });
3666
+ };
3667
+ exports.se_UpdateHoursOfOperationCommand = se_UpdateHoursOfOperationCommand;
3668
+ const se_UpdateInstanceAttributeCommand = async (input, context) => {
3669
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3670
+ const headers = {
3671
+ "content-type": "application/json",
3672
+ };
3673
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3674
+ "/instance/{InstanceId}/attribute/{AttributeType}";
3675
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3676
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttributeType", () => input.AttributeType, "{AttributeType}", false);
3677
+ let body;
3678
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
3679
+ Value: [],
3349
3680
  }));
3350
3681
  return new protocol_http_1.HttpRequest({
3351
3682
  protocol,
@@ -3967,6 +4298,54 @@ const se_UpdateUserSecurityProfilesCommand = async (input, context) => {
3967
4298
  });
3968
4299
  };
3969
4300
  exports.se_UpdateUserSecurityProfilesCommand = se_UpdateUserSecurityProfilesCommand;
4301
+ const de_ActivateEvaluationFormCommand = async (output, context) => {
4302
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4303
+ return de_ActivateEvaluationFormCommandError(output, context);
4304
+ }
4305
+ const contents = (0, smithy_client_1.map)({
4306
+ $metadata: deserializeMetadata(output),
4307
+ });
4308
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4309
+ const doc = (0, smithy_client_1.take)(data, {
4310
+ EvaluationFormArn: smithy_client_1.expectString,
4311
+ EvaluationFormId: smithy_client_1.expectString,
4312
+ EvaluationFormVersion: smithy_client_1.expectInt32,
4313
+ });
4314
+ Object.assign(contents, doc);
4315
+ return contents;
4316
+ };
4317
+ exports.de_ActivateEvaluationFormCommand = de_ActivateEvaluationFormCommand;
4318
+ const de_ActivateEvaluationFormCommandError = async (output, context) => {
4319
+ const parsedOutput = {
4320
+ ...output,
4321
+ body: await parseErrorBody(output.body, context),
4322
+ };
4323
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4324
+ switch (errorCode) {
4325
+ case "InternalServiceException":
4326
+ case "com.amazonaws.connect#InternalServiceException":
4327
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
4328
+ case "InvalidParameterException":
4329
+ case "com.amazonaws.connect#InvalidParameterException":
4330
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
4331
+ case "ResourceConflictException":
4332
+ case "com.amazonaws.connect#ResourceConflictException":
4333
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
4334
+ case "ResourceNotFoundException":
4335
+ case "com.amazonaws.connect#ResourceNotFoundException":
4336
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4337
+ case "ThrottlingException":
4338
+ case "com.amazonaws.connect#ThrottlingException":
4339
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4340
+ default:
4341
+ const parsedBody = parsedOutput.body;
4342
+ return throwDefaultError({
4343
+ output,
4344
+ parsedBody,
4345
+ errorCode,
4346
+ });
4347
+ }
4348
+ };
3970
4349
  const de_AssociateApprovedOriginCommand = async (output, context) => {
3971
4350
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3972
4351
  return de_AssociateApprovedOriginCommandError(output, context);
@@ -4652,6 +5031,56 @@ const de_CreateContactFlowModuleCommandError = async (output, context) => {
4652
5031
  });
4653
5032
  }
4654
5033
  };
5034
+ const de_CreateEvaluationFormCommand = async (output, context) => {
5035
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5036
+ return de_CreateEvaluationFormCommandError(output, context);
5037
+ }
5038
+ const contents = (0, smithy_client_1.map)({
5039
+ $metadata: deserializeMetadata(output),
5040
+ });
5041
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5042
+ const doc = (0, smithy_client_1.take)(data, {
5043
+ EvaluationFormArn: smithy_client_1.expectString,
5044
+ EvaluationFormId: smithy_client_1.expectString,
5045
+ });
5046
+ Object.assign(contents, doc);
5047
+ return contents;
5048
+ };
5049
+ exports.de_CreateEvaluationFormCommand = de_CreateEvaluationFormCommand;
5050
+ const de_CreateEvaluationFormCommandError = async (output, context) => {
5051
+ const parsedOutput = {
5052
+ ...output,
5053
+ body: await parseErrorBody(output.body, context),
5054
+ };
5055
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5056
+ switch (errorCode) {
5057
+ case "InternalServiceException":
5058
+ case "com.amazonaws.connect#InternalServiceException":
5059
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
5060
+ case "InvalidParameterException":
5061
+ case "com.amazonaws.connect#InvalidParameterException":
5062
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
5063
+ case "ResourceConflictException":
5064
+ case "com.amazonaws.connect#ResourceConflictException":
5065
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
5066
+ case "ResourceNotFoundException":
5067
+ case "com.amazonaws.connect#ResourceNotFoundException":
5068
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5069
+ case "ServiceQuotaExceededException":
5070
+ case "com.amazonaws.connect#ServiceQuotaExceededException":
5071
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5072
+ case "ThrottlingException":
5073
+ case "com.amazonaws.connect#ThrottlingException":
5074
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5075
+ default:
5076
+ const parsedBody = parsedOutput.body;
5077
+ return throwDefaultError({
5078
+ output,
5079
+ parsedBody,
5080
+ errorCode,
5081
+ });
5082
+ }
5083
+ };
4655
5084
  const de_CreateHoursOfOperationCommand = async (output, context) => {
4656
5085
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4657
5086
  return de_CreateHoursOfOperationCommandError(output, context);
@@ -5427,6 +5856,96 @@ const de_CreateVocabularyCommandError = async (output, context) => {
5427
5856
  });
5428
5857
  }
5429
5858
  };
5859
+ const de_DeactivateEvaluationFormCommand = async (output, context) => {
5860
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5861
+ return de_DeactivateEvaluationFormCommandError(output, context);
5862
+ }
5863
+ const contents = (0, smithy_client_1.map)({
5864
+ $metadata: deserializeMetadata(output),
5865
+ });
5866
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5867
+ const doc = (0, smithy_client_1.take)(data, {
5868
+ EvaluationFormArn: smithy_client_1.expectString,
5869
+ EvaluationFormId: smithy_client_1.expectString,
5870
+ EvaluationFormVersion: smithy_client_1.expectInt32,
5871
+ });
5872
+ Object.assign(contents, doc);
5873
+ return contents;
5874
+ };
5875
+ exports.de_DeactivateEvaluationFormCommand = de_DeactivateEvaluationFormCommand;
5876
+ const de_DeactivateEvaluationFormCommandError = async (output, context) => {
5877
+ const parsedOutput = {
5878
+ ...output,
5879
+ body: await parseErrorBody(output.body, context),
5880
+ };
5881
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5882
+ switch (errorCode) {
5883
+ case "InternalServiceException":
5884
+ case "com.amazonaws.connect#InternalServiceException":
5885
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
5886
+ case "InvalidParameterException":
5887
+ case "com.amazonaws.connect#InvalidParameterException":
5888
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
5889
+ case "ResourceConflictException":
5890
+ case "com.amazonaws.connect#ResourceConflictException":
5891
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
5892
+ case "ResourceNotFoundException":
5893
+ case "com.amazonaws.connect#ResourceNotFoundException":
5894
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5895
+ case "ThrottlingException":
5896
+ case "com.amazonaws.connect#ThrottlingException":
5897
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5898
+ default:
5899
+ const parsedBody = parsedOutput.body;
5900
+ return throwDefaultError({
5901
+ output,
5902
+ parsedBody,
5903
+ errorCode,
5904
+ });
5905
+ }
5906
+ };
5907
+ const de_DeleteContactEvaluationCommand = async (output, context) => {
5908
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5909
+ return de_DeleteContactEvaluationCommandError(output, context);
5910
+ }
5911
+ const contents = (0, smithy_client_1.map)({
5912
+ $metadata: deserializeMetadata(output),
5913
+ });
5914
+ await collectBody(output.body, context);
5915
+ return contents;
5916
+ };
5917
+ exports.de_DeleteContactEvaluationCommand = de_DeleteContactEvaluationCommand;
5918
+ const de_DeleteContactEvaluationCommandError = async (output, context) => {
5919
+ const parsedOutput = {
5920
+ ...output,
5921
+ body: await parseErrorBody(output.body, context),
5922
+ };
5923
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5924
+ switch (errorCode) {
5925
+ case "InternalServiceException":
5926
+ case "com.amazonaws.connect#InternalServiceException":
5927
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
5928
+ case "InvalidParameterException":
5929
+ case "com.amazonaws.connect#InvalidParameterException":
5930
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
5931
+ case "ResourceConflictException":
5932
+ case "com.amazonaws.connect#ResourceConflictException":
5933
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
5934
+ case "ResourceNotFoundException":
5935
+ case "com.amazonaws.connect#ResourceNotFoundException":
5936
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5937
+ case "ThrottlingException":
5938
+ case "com.amazonaws.connect#ThrottlingException":
5939
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5940
+ default:
5941
+ const parsedBody = parsedOutput.body;
5942
+ return throwDefaultError({
5943
+ output,
5944
+ parsedBody,
5945
+ errorCode,
5946
+ });
5947
+ }
5948
+ };
5430
5949
  const de_DeleteContactFlowCommand = async (output, context) => {
5431
5950
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5432
5951
  return de_DeleteContactFlowCommandError(output, context);
@@ -5517,6 +6036,48 @@ const de_DeleteContactFlowModuleCommandError = async (output, context) => {
5517
6036
  });
5518
6037
  }
5519
6038
  };
6039
+ const de_DeleteEvaluationFormCommand = async (output, context) => {
6040
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6041
+ return de_DeleteEvaluationFormCommandError(output, context);
6042
+ }
6043
+ const contents = (0, smithy_client_1.map)({
6044
+ $metadata: deserializeMetadata(output),
6045
+ });
6046
+ await collectBody(output.body, context);
6047
+ return contents;
6048
+ };
6049
+ exports.de_DeleteEvaluationFormCommand = de_DeleteEvaluationFormCommand;
6050
+ const de_DeleteEvaluationFormCommandError = async (output, context) => {
6051
+ const parsedOutput = {
6052
+ ...output,
6053
+ body: await parseErrorBody(output.body, context),
6054
+ };
6055
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6056
+ switch (errorCode) {
6057
+ case "InternalServiceException":
6058
+ case "com.amazonaws.connect#InternalServiceException":
6059
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
6060
+ case "InvalidParameterException":
6061
+ case "com.amazonaws.connect#InvalidParameterException":
6062
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
6063
+ case "ResourceConflictException":
6064
+ case "com.amazonaws.connect#ResourceConflictException":
6065
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
6066
+ case "ResourceNotFoundException":
6067
+ case "com.amazonaws.connect#ResourceNotFoundException":
6068
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6069
+ case "ThrottlingException":
6070
+ case "com.amazonaws.connect#ThrottlingException":
6071
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
6072
+ default:
6073
+ const parsedBody = parsedOutput.body;
6074
+ return throwDefaultError({
6075
+ output,
6076
+ parsedBody,
6077
+ errorCode,
6078
+ });
6079
+ }
6080
+ };
5520
6081
  const de_DeleteHoursOfOperationCommand = async (output, context) => {
5521
6082
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5522
6083
  return de_DeleteHoursOfOperationCommandError(output, context);
@@ -6119,40 +6680,35 @@ const de_DescribeContactCommandError = async (output, context) => {
6119
6680
  });
6120
6681
  }
6121
6682
  };
6122
- const de_DescribeContactFlowCommand = async (output, context) => {
6683
+ const de_DescribeContactEvaluationCommand = async (output, context) => {
6123
6684
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6124
- return de_DescribeContactFlowCommandError(output, context);
6685
+ return de_DescribeContactEvaluationCommandError(output, context);
6125
6686
  }
6126
6687
  const contents = (0, smithy_client_1.map)({
6127
6688
  $metadata: deserializeMetadata(output),
6128
6689
  });
6129
6690
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6130
6691
  const doc = (0, smithy_client_1.take)(data, {
6131
- ContactFlow: smithy_client_1._json,
6692
+ Evaluation: (_) => de_Evaluation(_, context),
6693
+ EvaluationForm: (_) => de_EvaluationFormContent(_, context),
6132
6694
  });
6133
6695
  Object.assign(contents, doc);
6134
6696
  return contents;
6135
6697
  };
6136
- exports.de_DescribeContactFlowCommand = de_DescribeContactFlowCommand;
6137
- const de_DescribeContactFlowCommandError = async (output, context) => {
6698
+ exports.de_DescribeContactEvaluationCommand = de_DescribeContactEvaluationCommand;
6699
+ const de_DescribeContactEvaluationCommandError = async (output, context) => {
6138
6700
  const parsedOutput = {
6139
6701
  ...output,
6140
6702
  body: await parseErrorBody(output.body, context),
6141
6703
  };
6142
6704
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6143
6705
  switch (errorCode) {
6144
- case "ContactFlowNotPublishedException":
6145
- case "com.amazonaws.connect#ContactFlowNotPublishedException":
6146
- throw await de_ContactFlowNotPublishedExceptionRes(parsedOutput, context);
6147
6706
  case "InternalServiceException":
6148
6707
  case "com.amazonaws.connect#InternalServiceException":
6149
6708
  throw await de_InternalServiceExceptionRes(parsedOutput, context);
6150
6709
  case "InvalidParameterException":
6151
6710
  case "com.amazonaws.connect#InvalidParameterException":
6152
6711
  throw await de_InvalidParameterExceptionRes(parsedOutput, context);
6153
- case "InvalidRequestException":
6154
- case "com.amazonaws.connect#InvalidRequestException":
6155
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6156
6712
  case "ResourceNotFoundException":
6157
6713
  case "com.amazonaws.connect#ResourceNotFoundException":
6158
6714
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -6168,33 +6724,33 @@ const de_DescribeContactFlowCommandError = async (output, context) => {
6168
6724
  });
6169
6725
  }
6170
6726
  };
6171
- const de_DescribeContactFlowModuleCommand = async (output, context) => {
6727
+ const de_DescribeContactFlowCommand = async (output, context) => {
6172
6728
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6173
- return de_DescribeContactFlowModuleCommandError(output, context);
6729
+ return de_DescribeContactFlowCommandError(output, context);
6174
6730
  }
6175
6731
  const contents = (0, smithy_client_1.map)({
6176
6732
  $metadata: deserializeMetadata(output),
6177
6733
  });
6178
6734
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6179
6735
  const doc = (0, smithy_client_1.take)(data, {
6180
- ContactFlowModule: smithy_client_1._json,
6736
+ ContactFlow: smithy_client_1._json,
6181
6737
  });
6182
6738
  Object.assign(contents, doc);
6183
6739
  return contents;
6184
6740
  };
6185
- exports.de_DescribeContactFlowModuleCommand = de_DescribeContactFlowModuleCommand;
6186
- const de_DescribeContactFlowModuleCommandError = async (output, context) => {
6741
+ exports.de_DescribeContactFlowCommand = de_DescribeContactFlowCommand;
6742
+ const de_DescribeContactFlowCommandError = async (output, context) => {
6187
6743
  const parsedOutput = {
6188
6744
  ...output,
6189
6745
  body: await parseErrorBody(output.body, context),
6190
6746
  };
6191
6747
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6192
6748
  switch (errorCode) {
6193
- case "AccessDeniedException":
6194
- case "com.amazonaws.connect#AccessDeniedException":
6195
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
6196
- case "InternalServiceException":
6197
- case "com.amazonaws.connect#InternalServiceException":
6749
+ case "ContactFlowNotPublishedException":
6750
+ case "com.amazonaws.connect#ContactFlowNotPublishedException":
6751
+ throw await de_ContactFlowNotPublishedExceptionRes(parsedOutput, context);
6752
+ case "InternalServiceException":
6753
+ case "com.amazonaws.connect#InternalServiceException":
6198
6754
  throw await de_InternalServiceExceptionRes(parsedOutput, context);
6199
6755
  case "InvalidParameterException":
6200
6756
  case "com.amazonaws.connect#InvalidParameterException":
@@ -6217,6 +6773,98 @@ const de_DescribeContactFlowModuleCommandError = async (output, context) => {
6217
6773
  });
6218
6774
  }
6219
6775
  };
6776
+ const de_DescribeContactFlowModuleCommand = async (output, context) => {
6777
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6778
+ return de_DescribeContactFlowModuleCommandError(output, context);
6779
+ }
6780
+ const contents = (0, smithy_client_1.map)({
6781
+ $metadata: deserializeMetadata(output),
6782
+ });
6783
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6784
+ const doc = (0, smithy_client_1.take)(data, {
6785
+ ContactFlowModule: smithy_client_1._json,
6786
+ });
6787
+ Object.assign(contents, doc);
6788
+ return contents;
6789
+ };
6790
+ exports.de_DescribeContactFlowModuleCommand = de_DescribeContactFlowModuleCommand;
6791
+ const de_DescribeContactFlowModuleCommandError = async (output, context) => {
6792
+ const parsedOutput = {
6793
+ ...output,
6794
+ body: await parseErrorBody(output.body, context),
6795
+ };
6796
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6797
+ switch (errorCode) {
6798
+ case "AccessDeniedException":
6799
+ case "com.amazonaws.connect#AccessDeniedException":
6800
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
6801
+ case "InternalServiceException":
6802
+ case "com.amazonaws.connect#InternalServiceException":
6803
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
6804
+ case "InvalidParameterException":
6805
+ case "com.amazonaws.connect#InvalidParameterException":
6806
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
6807
+ case "InvalidRequestException":
6808
+ case "com.amazonaws.connect#InvalidRequestException":
6809
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6810
+ case "ResourceNotFoundException":
6811
+ case "com.amazonaws.connect#ResourceNotFoundException":
6812
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6813
+ case "ThrottlingException":
6814
+ case "com.amazonaws.connect#ThrottlingException":
6815
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
6816
+ default:
6817
+ const parsedBody = parsedOutput.body;
6818
+ return throwDefaultError({
6819
+ output,
6820
+ parsedBody,
6821
+ errorCode,
6822
+ });
6823
+ }
6824
+ };
6825
+ const de_DescribeEvaluationFormCommand = async (output, context) => {
6826
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6827
+ return de_DescribeEvaluationFormCommandError(output, context);
6828
+ }
6829
+ const contents = (0, smithy_client_1.map)({
6830
+ $metadata: deserializeMetadata(output),
6831
+ });
6832
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6833
+ const doc = (0, smithy_client_1.take)(data, {
6834
+ EvaluationForm: (_) => de_EvaluationForm(_, context),
6835
+ });
6836
+ Object.assign(contents, doc);
6837
+ return contents;
6838
+ };
6839
+ exports.de_DescribeEvaluationFormCommand = de_DescribeEvaluationFormCommand;
6840
+ const de_DescribeEvaluationFormCommandError = async (output, context) => {
6841
+ const parsedOutput = {
6842
+ ...output,
6843
+ body: await parseErrorBody(output.body, context),
6844
+ };
6845
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6846
+ switch (errorCode) {
6847
+ case "InternalServiceException":
6848
+ case "com.amazonaws.connect#InternalServiceException":
6849
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
6850
+ case "InvalidParameterException":
6851
+ case "com.amazonaws.connect#InvalidParameterException":
6852
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
6853
+ case "ResourceNotFoundException":
6854
+ case "com.amazonaws.connect#ResourceNotFoundException":
6855
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6856
+ case "ThrottlingException":
6857
+ case "com.amazonaws.connect#ThrottlingException":
6858
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
6859
+ default:
6860
+ const parsedBody = parsedOutput.body;
6861
+ return throwDefaultError({
6862
+ output,
6863
+ parsedBody,
6864
+ errorCode,
6865
+ });
6866
+ }
6867
+ };
6220
6868
  const de_DescribeHoursOfOperationCommand = async (output, context) => {
6221
6869
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6222
6870
  return de_DescribeHoursOfOperationCommandError(output, context);
@@ -7848,6 +8496,50 @@ const de_ListBotsCommandError = async (output, context) => {
7848
8496
  });
7849
8497
  }
7850
8498
  };
8499
+ const de_ListContactEvaluationsCommand = async (output, context) => {
8500
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8501
+ return de_ListContactEvaluationsCommandError(output, context);
8502
+ }
8503
+ const contents = (0, smithy_client_1.map)({
8504
+ $metadata: deserializeMetadata(output),
8505
+ });
8506
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
8507
+ const doc = (0, smithy_client_1.take)(data, {
8508
+ EvaluationSummaryList: (_) => de_EvaluationSummaryList(_, context),
8509
+ NextToken: smithy_client_1.expectString,
8510
+ });
8511
+ Object.assign(contents, doc);
8512
+ return contents;
8513
+ };
8514
+ exports.de_ListContactEvaluationsCommand = de_ListContactEvaluationsCommand;
8515
+ const de_ListContactEvaluationsCommandError = async (output, context) => {
8516
+ const parsedOutput = {
8517
+ ...output,
8518
+ body: await parseErrorBody(output.body, context),
8519
+ };
8520
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8521
+ switch (errorCode) {
8522
+ case "InternalServiceException":
8523
+ case "com.amazonaws.connect#InternalServiceException":
8524
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
8525
+ case "InvalidParameterException":
8526
+ case "com.amazonaws.connect#InvalidParameterException":
8527
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
8528
+ case "ResourceNotFoundException":
8529
+ case "com.amazonaws.connect#ResourceNotFoundException":
8530
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
8531
+ case "ThrottlingException":
8532
+ case "com.amazonaws.connect#ThrottlingException":
8533
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
8534
+ default:
8535
+ const parsedBody = parsedOutput.body;
8536
+ return throwDefaultError({
8537
+ output,
8538
+ parsedBody,
8539
+ errorCode,
8540
+ });
8541
+ }
8542
+ };
7851
8543
  const de_ListContactFlowModulesCommand = async (output, context) => {
7852
8544
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7853
8545
  return de_ListContactFlowModulesCommandError(output, context);
@@ -8036,6 +8728,94 @@ const de_ListDefaultVocabulariesCommandError = async (output, context) => {
8036
8728
  });
8037
8729
  }
8038
8730
  };
8731
+ const de_ListEvaluationFormsCommand = async (output, context) => {
8732
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8733
+ return de_ListEvaluationFormsCommandError(output, context);
8734
+ }
8735
+ const contents = (0, smithy_client_1.map)({
8736
+ $metadata: deserializeMetadata(output),
8737
+ });
8738
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
8739
+ const doc = (0, smithy_client_1.take)(data, {
8740
+ EvaluationFormSummaryList: (_) => de_EvaluationFormSummaryList(_, context),
8741
+ NextToken: smithy_client_1.expectString,
8742
+ });
8743
+ Object.assign(contents, doc);
8744
+ return contents;
8745
+ };
8746
+ exports.de_ListEvaluationFormsCommand = de_ListEvaluationFormsCommand;
8747
+ const de_ListEvaluationFormsCommandError = async (output, context) => {
8748
+ const parsedOutput = {
8749
+ ...output,
8750
+ body: await parseErrorBody(output.body, context),
8751
+ };
8752
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8753
+ switch (errorCode) {
8754
+ case "InternalServiceException":
8755
+ case "com.amazonaws.connect#InternalServiceException":
8756
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
8757
+ case "InvalidParameterException":
8758
+ case "com.amazonaws.connect#InvalidParameterException":
8759
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
8760
+ case "ResourceNotFoundException":
8761
+ case "com.amazonaws.connect#ResourceNotFoundException":
8762
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
8763
+ case "ThrottlingException":
8764
+ case "com.amazonaws.connect#ThrottlingException":
8765
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
8766
+ default:
8767
+ const parsedBody = parsedOutput.body;
8768
+ return throwDefaultError({
8769
+ output,
8770
+ parsedBody,
8771
+ errorCode,
8772
+ });
8773
+ }
8774
+ };
8775
+ const de_ListEvaluationFormVersionsCommand = async (output, context) => {
8776
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8777
+ return de_ListEvaluationFormVersionsCommandError(output, context);
8778
+ }
8779
+ const contents = (0, smithy_client_1.map)({
8780
+ $metadata: deserializeMetadata(output),
8781
+ });
8782
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
8783
+ const doc = (0, smithy_client_1.take)(data, {
8784
+ EvaluationFormVersionSummaryList: (_) => de_EvaluationFormVersionSummaryList(_, context),
8785
+ NextToken: smithy_client_1.expectString,
8786
+ });
8787
+ Object.assign(contents, doc);
8788
+ return contents;
8789
+ };
8790
+ exports.de_ListEvaluationFormVersionsCommand = de_ListEvaluationFormVersionsCommand;
8791
+ const de_ListEvaluationFormVersionsCommandError = async (output, context) => {
8792
+ const parsedOutput = {
8793
+ ...output,
8794
+ body: await parseErrorBody(output.body, context),
8795
+ };
8796
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8797
+ switch (errorCode) {
8798
+ case "InternalServiceException":
8799
+ case "com.amazonaws.connect#InternalServiceException":
8800
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
8801
+ case "InvalidParameterException":
8802
+ case "com.amazonaws.connect#InvalidParameterException":
8803
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
8804
+ case "ResourceNotFoundException":
8805
+ case "com.amazonaws.connect#ResourceNotFoundException":
8806
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
8807
+ case "ThrottlingException":
8808
+ case "com.amazonaws.connect#ThrottlingException":
8809
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
8810
+ default:
8811
+ const parsedBody = parsedOutput.body;
8812
+ return throwDefaultError({
8813
+ output,
8814
+ parsedBody,
8815
+ errorCode,
8816
+ });
8817
+ }
8818
+ };
8039
8819
  const de_ListHoursOfOperationsCommand = async (output, context) => {
8040
8820
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8041
8821
  return de_ListHoursOfOperationsCommandError(output, context);
@@ -9759,6 +10539,56 @@ const de_StartChatContactCommandError = async (output, context) => {
9759
10539
  });
9760
10540
  }
9761
10541
  };
10542
+ const de_StartContactEvaluationCommand = async (output, context) => {
10543
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
10544
+ return de_StartContactEvaluationCommandError(output, context);
10545
+ }
10546
+ const contents = (0, smithy_client_1.map)({
10547
+ $metadata: deserializeMetadata(output),
10548
+ });
10549
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
10550
+ const doc = (0, smithy_client_1.take)(data, {
10551
+ EvaluationArn: smithy_client_1.expectString,
10552
+ EvaluationId: smithy_client_1.expectString,
10553
+ });
10554
+ Object.assign(contents, doc);
10555
+ return contents;
10556
+ };
10557
+ exports.de_StartContactEvaluationCommand = de_StartContactEvaluationCommand;
10558
+ const de_StartContactEvaluationCommandError = async (output, context) => {
10559
+ const parsedOutput = {
10560
+ ...output,
10561
+ body: await parseErrorBody(output.body, context),
10562
+ };
10563
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
10564
+ switch (errorCode) {
10565
+ case "InternalServiceException":
10566
+ case "com.amazonaws.connect#InternalServiceException":
10567
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
10568
+ case "InvalidParameterException":
10569
+ case "com.amazonaws.connect#InvalidParameterException":
10570
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
10571
+ case "ResourceConflictException":
10572
+ case "com.amazonaws.connect#ResourceConflictException":
10573
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
10574
+ case "ResourceNotFoundException":
10575
+ case "com.amazonaws.connect#ResourceNotFoundException":
10576
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
10577
+ case "ServiceQuotaExceededException":
10578
+ case "com.amazonaws.connect#ServiceQuotaExceededException":
10579
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
10580
+ case "ThrottlingException":
10581
+ case "com.amazonaws.connect#ThrottlingException":
10582
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
10583
+ default:
10584
+ const parsedBody = parsedOutput.body;
10585
+ return throwDefaultError({
10586
+ output,
10587
+ parsedBody,
10588
+ errorCode,
10589
+ });
10590
+ }
10591
+ };
9762
10592
  const de_StartContactRecordingCommand = async (output, context) => {
9763
10593
  if (output.statusCode !== 200 && output.statusCode >= 300) {
9764
10594
  return de_StartContactRecordingCommandError(output, context);
@@ -10062,6 +10892,53 @@ const de_StopContactStreamingCommandError = async (output, context) => {
10062
10892
  });
10063
10893
  }
10064
10894
  };
10895
+ const de_SubmitContactEvaluationCommand = async (output, context) => {
10896
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
10897
+ return de_SubmitContactEvaluationCommandError(output, context);
10898
+ }
10899
+ const contents = (0, smithy_client_1.map)({
10900
+ $metadata: deserializeMetadata(output),
10901
+ });
10902
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
10903
+ const doc = (0, smithy_client_1.take)(data, {
10904
+ EvaluationArn: smithy_client_1.expectString,
10905
+ EvaluationId: smithy_client_1.expectString,
10906
+ });
10907
+ Object.assign(contents, doc);
10908
+ return contents;
10909
+ };
10910
+ exports.de_SubmitContactEvaluationCommand = de_SubmitContactEvaluationCommand;
10911
+ const de_SubmitContactEvaluationCommandError = async (output, context) => {
10912
+ const parsedOutput = {
10913
+ ...output,
10914
+ body: await parseErrorBody(output.body, context),
10915
+ };
10916
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
10917
+ switch (errorCode) {
10918
+ case "InternalServiceException":
10919
+ case "com.amazonaws.connect#InternalServiceException":
10920
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
10921
+ case "InvalidParameterException":
10922
+ case "com.amazonaws.connect#InvalidParameterException":
10923
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
10924
+ case "ResourceConflictException":
10925
+ case "com.amazonaws.connect#ResourceConflictException":
10926
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
10927
+ case "ResourceNotFoundException":
10928
+ case "com.amazonaws.connect#ResourceNotFoundException":
10929
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
10930
+ case "ThrottlingException":
10931
+ case "com.amazonaws.connect#ThrottlingException":
10932
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
10933
+ default:
10934
+ const parsedBody = parsedOutput.body;
10935
+ return throwDefaultError({
10936
+ output,
10937
+ parsedBody,
10938
+ errorCode,
10939
+ });
10940
+ }
10941
+ };
10065
10942
  const de_SuspendContactRecordingCommand = async (output, context) => {
10066
10943
  if (output.statusCode !== 200 && output.statusCode >= 300) {
10067
10944
  return de_SuspendContactRecordingCommandError(output, context);
@@ -10364,6 +11241,53 @@ const de_UpdateContactAttributesCommandError = async (output, context) => {
10364
11241
  });
10365
11242
  }
10366
11243
  };
11244
+ const de_UpdateContactEvaluationCommand = async (output, context) => {
11245
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
11246
+ return de_UpdateContactEvaluationCommandError(output, context);
11247
+ }
11248
+ const contents = (0, smithy_client_1.map)({
11249
+ $metadata: deserializeMetadata(output),
11250
+ });
11251
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
11252
+ const doc = (0, smithy_client_1.take)(data, {
11253
+ EvaluationArn: smithy_client_1.expectString,
11254
+ EvaluationId: smithy_client_1.expectString,
11255
+ });
11256
+ Object.assign(contents, doc);
11257
+ return contents;
11258
+ };
11259
+ exports.de_UpdateContactEvaluationCommand = de_UpdateContactEvaluationCommand;
11260
+ const de_UpdateContactEvaluationCommandError = async (output, context) => {
11261
+ const parsedOutput = {
11262
+ ...output,
11263
+ body: await parseErrorBody(output.body, context),
11264
+ };
11265
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11266
+ switch (errorCode) {
11267
+ case "InternalServiceException":
11268
+ case "com.amazonaws.connect#InternalServiceException":
11269
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
11270
+ case "InvalidParameterException":
11271
+ case "com.amazonaws.connect#InvalidParameterException":
11272
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
11273
+ case "ResourceConflictException":
11274
+ case "com.amazonaws.connect#ResourceConflictException":
11275
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
11276
+ case "ResourceNotFoundException":
11277
+ case "com.amazonaws.connect#ResourceNotFoundException":
11278
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
11279
+ case "ThrottlingException":
11280
+ case "com.amazonaws.connect#ThrottlingException":
11281
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
11282
+ default:
11283
+ const parsedBody = parsedOutput.body;
11284
+ return throwDefaultError({
11285
+ output,
11286
+ parsedBody,
11287
+ errorCode,
11288
+ });
11289
+ }
11290
+ };
10367
11291
  const de_UpdateContactFlowContentCommand = async (output, context) => {
10368
11292
  if (output.statusCode !== 200 && output.statusCode >= 300) {
10369
11293
  return de_UpdateContactFlowContentCommandError(output, context);
@@ -10637,6 +11561,57 @@ const de_UpdateContactScheduleCommandError = async (output, context) => {
10637
11561
  });
10638
11562
  }
10639
11563
  };
11564
+ const de_UpdateEvaluationFormCommand = async (output, context) => {
11565
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
11566
+ return de_UpdateEvaluationFormCommandError(output, context);
11567
+ }
11568
+ const contents = (0, smithy_client_1.map)({
11569
+ $metadata: deserializeMetadata(output),
11570
+ });
11571
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
11572
+ const doc = (0, smithy_client_1.take)(data, {
11573
+ EvaluationFormArn: smithy_client_1.expectString,
11574
+ EvaluationFormId: smithy_client_1.expectString,
11575
+ EvaluationFormVersion: smithy_client_1.expectInt32,
11576
+ });
11577
+ Object.assign(contents, doc);
11578
+ return contents;
11579
+ };
11580
+ exports.de_UpdateEvaluationFormCommand = de_UpdateEvaluationFormCommand;
11581
+ const de_UpdateEvaluationFormCommandError = async (output, context) => {
11582
+ const parsedOutput = {
11583
+ ...output,
11584
+ body: await parseErrorBody(output.body, context),
11585
+ };
11586
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11587
+ switch (errorCode) {
11588
+ case "InternalServiceException":
11589
+ case "com.amazonaws.connect#InternalServiceException":
11590
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
11591
+ case "InvalidParameterException":
11592
+ case "com.amazonaws.connect#InvalidParameterException":
11593
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
11594
+ case "ResourceConflictException":
11595
+ case "com.amazonaws.connect#ResourceConflictException":
11596
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
11597
+ case "ResourceNotFoundException":
11598
+ case "com.amazonaws.connect#ResourceNotFoundException":
11599
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
11600
+ case "ServiceQuotaExceededException":
11601
+ case "com.amazonaws.connect#ServiceQuotaExceededException":
11602
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
11603
+ case "ThrottlingException":
11604
+ case "com.amazonaws.connect#ThrottlingException":
11605
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
11606
+ default:
11607
+ const parsedBody = parsedOutput.body;
11608
+ return throwDefaultError({
11609
+ output,
11610
+ parsedBody,
11611
+ errorCode,
11612
+ });
11613
+ }
11614
+ };
10640
11615
  const de_UpdateHoursOfOperationCommand = async (output, context) => {
10641
11616
  if (output.statusCode !== 200 && output.statusCode >= 300) {
10642
11617
  return de_UpdateHoursOfOperationCommandError(output, context);
@@ -12095,12 +13070,68 @@ const de_UserNotFoundExceptionRes = async (parsedOutput, context) => {
12095
13070
  Message: smithy_client_1.expectString,
12096
13071
  });
12097
13072
  Object.assign(contents, doc);
12098
- const exception = new models_0_1.UserNotFoundException({
13073
+ const exception = new models_1_1.UserNotFoundException({
12099
13074
  $metadata: deserializeMetadata(parsedOutput),
12100
13075
  ...contents,
12101
13076
  });
12102
13077
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
12103
13078
  };
13079
+ const se_EvaluationAnswerData = (input, context) => {
13080
+ return models_0_1.EvaluationAnswerData.visit(input, {
13081
+ NotApplicable: (value) => ({ NotApplicable: value }),
13082
+ NumericValue: (value) => ({ NumericValue: (0, smithy_client_1.serializeFloat)(value) }),
13083
+ StringValue: (value) => ({ StringValue: value }),
13084
+ _: (name, value) => ({ name: value }),
13085
+ });
13086
+ };
13087
+ const se_EvaluationAnswerInput = (input, context) => {
13088
+ return (0, smithy_client_1.take)(input, {
13089
+ Value: (_) => se_EvaluationAnswerData(_, context),
13090
+ });
13091
+ };
13092
+ const se_EvaluationAnswersInputMap = (input, context) => {
13093
+ return Object.entries(input).reduce((acc, [key, value]) => {
13094
+ if (value === null) {
13095
+ return acc;
13096
+ }
13097
+ acc[key] = se_EvaluationAnswerInput(value, context);
13098
+ return acc;
13099
+ }, {});
13100
+ };
13101
+ const se_EvaluationFormItem = (input, context) => {
13102
+ return models_1_1.EvaluationFormItem.visit(input, {
13103
+ Question: (value) => ({ Question: se_EvaluationFormQuestion(value, context) }),
13104
+ Section: (value) => ({ Section: se_EvaluationFormSection(value, context) }),
13105
+ _: (name, value) => ({ name: value }),
13106
+ });
13107
+ };
13108
+ const se_EvaluationFormItemsList = (input, context) => {
13109
+ return input
13110
+ .filter((e) => e != null)
13111
+ .map((entry) => {
13112
+ return se_EvaluationFormItem(entry, context);
13113
+ });
13114
+ };
13115
+ const se_EvaluationFormQuestion = (input, context) => {
13116
+ return (0, smithy_client_1.take)(input, {
13117
+ Instructions: [],
13118
+ NotApplicableEnabled: [],
13119
+ QuestionType: [],
13120
+ QuestionTypeProperties: smithy_client_1._json,
13121
+ RefId: [],
13122
+ Title: [],
13123
+ Weight: smithy_client_1.serializeFloat,
13124
+ });
13125
+ };
13126
+ const se_EvaluationFormSection = (input, context) => {
13127
+ return (0, smithy_client_1.take)(input, {
13128
+ Instructions: [],
13129
+ Items: (_) => se_EvaluationFormItemsList(_, context),
13130
+ RefId: [],
13131
+ Title: [],
13132
+ Weight: smithy_client_1.serializeFloat,
13133
+ });
13134
+ };
12104
13135
  const se_HistoricalMetric = (input, context) => {
12105
13136
  return (0, smithy_client_1.take)(input, {
12106
13137
  Name: [],
@@ -12295,6 +13326,206 @@ const de_CurrentMetricResults = (output, context) => {
12295
13326
  });
12296
13327
  return retVal;
12297
13328
  };
13329
+ const de_Evaluation = (output, context) => {
13330
+ return (0, smithy_client_1.take)(output, {
13331
+ Answers: (_) => de_EvaluationAnswersOutputMap(_, context),
13332
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
13333
+ EvaluationArn: smithy_client_1.expectString,
13334
+ EvaluationId: smithy_client_1.expectString,
13335
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
13336
+ Metadata: (_) => de_EvaluationMetadata(_, context),
13337
+ Notes: smithy_client_1._json,
13338
+ Scores: (_) => de_EvaluationScoresMap(_, context),
13339
+ Status: smithy_client_1.expectString,
13340
+ Tags: smithy_client_1._json,
13341
+ });
13342
+ };
13343
+ const de_EvaluationAnswerData = (output, context) => {
13344
+ if ((0, smithy_client_1.expectBoolean)(output.NotApplicable) !== undefined) {
13345
+ return { NotApplicable: (0, smithy_client_1.expectBoolean)(output.NotApplicable) };
13346
+ }
13347
+ if ((0, smithy_client_1.limitedParseDouble)(output.NumericValue) !== undefined) {
13348
+ return { NumericValue: (0, smithy_client_1.limitedParseDouble)(output.NumericValue) };
13349
+ }
13350
+ if ((0, smithy_client_1.expectString)(output.StringValue) !== undefined) {
13351
+ return { StringValue: (0, smithy_client_1.expectString)(output.StringValue) };
13352
+ }
13353
+ return { $unknown: Object.entries(output)[0] };
13354
+ };
13355
+ const de_EvaluationAnswerOutput = (output, context) => {
13356
+ return (0, smithy_client_1.take)(output, {
13357
+ SystemSuggestedValue: (_) => de_EvaluationAnswerData((0, smithy_client_1.expectUnion)(_), context),
13358
+ Value: (_) => de_EvaluationAnswerData((0, smithy_client_1.expectUnion)(_), context),
13359
+ });
13360
+ };
13361
+ const de_EvaluationAnswersOutputMap = (output, context) => {
13362
+ return Object.entries(output).reduce((acc, [key, value]) => {
13363
+ if (value === null) {
13364
+ return acc;
13365
+ }
13366
+ acc[key] = de_EvaluationAnswerOutput(value, context);
13367
+ return acc;
13368
+ }, {});
13369
+ };
13370
+ const de_EvaluationForm = (output, context) => {
13371
+ return (0, smithy_client_1.take)(output, {
13372
+ CreatedBy: smithy_client_1.expectString,
13373
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
13374
+ Description: smithy_client_1.expectString,
13375
+ EvaluationFormArn: smithy_client_1.expectString,
13376
+ EvaluationFormId: smithy_client_1.expectString,
13377
+ EvaluationFormVersion: smithy_client_1.expectInt32,
13378
+ Items: (_) => de_EvaluationFormItemsList(_, context),
13379
+ LastModifiedBy: smithy_client_1.expectString,
13380
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
13381
+ Locked: smithy_client_1.expectBoolean,
13382
+ ScoringStrategy: smithy_client_1._json,
13383
+ Status: smithy_client_1.expectString,
13384
+ Tags: smithy_client_1._json,
13385
+ Title: smithy_client_1.expectString,
13386
+ });
13387
+ };
13388
+ const de_EvaluationFormContent = (output, context) => {
13389
+ return (0, smithy_client_1.take)(output, {
13390
+ Description: smithy_client_1.expectString,
13391
+ EvaluationFormArn: smithy_client_1.expectString,
13392
+ EvaluationFormId: smithy_client_1.expectString,
13393
+ EvaluationFormVersion: smithy_client_1.expectInt32,
13394
+ Items: (_) => de_EvaluationFormItemsList(_, context),
13395
+ ScoringStrategy: smithy_client_1._json,
13396
+ Title: smithy_client_1.expectString,
13397
+ });
13398
+ };
13399
+ const de_EvaluationFormItem = (output, context) => {
13400
+ if (output.Question != null) {
13401
+ return {
13402
+ Question: de_EvaluationFormQuestion(output.Question, context),
13403
+ };
13404
+ }
13405
+ if (output.Section != null) {
13406
+ return {
13407
+ Section: de_EvaluationFormSection(output.Section, context),
13408
+ };
13409
+ }
13410
+ return { $unknown: Object.entries(output)[0] };
13411
+ };
13412
+ const de_EvaluationFormItemsList = (output, context) => {
13413
+ const retVal = (output || [])
13414
+ .filter((e) => e != null)
13415
+ .map((entry) => {
13416
+ return de_EvaluationFormItem((0, smithy_client_1.expectUnion)(entry), context);
13417
+ });
13418
+ return retVal;
13419
+ };
13420
+ const de_EvaluationFormQuestion = (output, context) => {
13421
+ return (0, smithy_client_1.take)(output, {
13422
+ Instructions: smithy_client_1.expectString,
13423
+ NotApplicableEnabled: smithy_client_1.expectBoolean,
13424
+ QuestionType: smithy_client_1.expectString,
13425
+ QuestionTypeProperties: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
13426
+ RefId: smithy_client_1.expectString,
13427
+ Title: smithy_client_1.expectString,
13428
+ Weight: smithy_client_1.limitedParseDouble,
13429
+ });
13430
+ };
13431
+ const de_EvaluationFormSection = (output, context) => {
13432
+ return (0, smithy_client_1.take)(output, {
13433
+ Instructions: smithy_client_1.expectString,
13434
+ Items: (_) => de_EvaluationFormItemsList(_, context),
13435
+ RefId: smithy_client_1.expectString,
13436
+ Title: smithy_client_1.expectString,
13437
+ Weight: smithy_client_1.limitedParseDouble,
13438
+ });
13439
+ };
13440
+ const de_EvaluationFormSummary = (output, context) => {
13441
+ return (0, smithy_client_1.take)(output, {
13442
+ ActiveVersion: smithy_client_1.expectInt32,
13443
+ CreatedBy: smithy_client_1.expectString,
13444
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
13445
+ EvaluationFormArn: smithy_client_1.expectString,
13446
+ EvaluationFormId: smithy_client_1.expectString,
13447
+ LastActivatedBy: smithy_client_1.expectString,
13448
+ LastActivatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
13449
+ LastModifiedBy: smithy_client_1.expectString,
13450
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
13451
+ LatestVersion: smithy_client_1.expectInt32,
13452
+ Title: smithy_client_1.expectString,
13453
+ });
13454
+ };
13455
+ const de_EvaluationFormSummaryList = (output, context) => {
13456
+ const retVal = (output || [])
13457
+ .filter((e) => e != null)
13458
+ .map((entry) => {
13459
+ return de_EvaluationFormSummary(entry, context);
13460
+ });
13461
+ return retVal;
13462
+ };
13463
+ const de_EvaluationFormVersionSummary = (output, context) => {
13464
+ return (0, smithy_client_1.take)(output, {
13465
+ CreatedBy: smithy_client_1.expectString,
13466
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
13467
+ EvaluationFormArn: smithy_client_1.expectString,
13468
+ EvaluationFormId: smithy_client_1.expectString,
13469
+ EvaluationFormVersion: smithy_client_1.expectInt32,
13470
+ LastModifiedBy: smithy_client_1.expectString,
13471
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
13472
+ Locked: smithy_client_1.expectBoolean,
13473
+ Status: smithy_client_1.expectString,
13474
+ });
13475
+ };
13476
+ const de_EvaluationFormVersionSummaryList = (output, context) => {
13477
+ const retVal = (output || [])
13478
+ .filter((e) => e != null)
13479
+ .map((entry) => {
13480
+ return de_EvaluationFormVersionSummary(entry, context);
13481
+ });
13482
+ return retVal;
13483
+ };
13484
+ const de_EvaluationMetadata = (output, context) => {
13485
+ return (0, smithy_client_1.take)(output, {
13486
+ ContactAgentId: smithy_client_1.expectString,
13487
+ ContactId: smithy_client_1.expectString,
13488
+ EvaluatorArn: smithy_client_1.expectString,
13489
+ Score: (_) => de_EvaluationScore(_, context),
13490
+ });
13491
+ };
13492
+ const de_EvaluationScore = (output, context) => {
13493
+ return (0, smithy_client_1.take)(output, {
13494
+ AutomaticFail: smithy_client_1.expectBoolean,
13495
+ NotApplicable: smithy_client_1.expectBoolean,
13496
+ Percentage: smithy_client_1.limitedParseDouble,
13497
+ });
13498
+ };
13499
+ const de_EvaluationScoresMap = (output, context) => {
13500
+ return Object.entries(output).reduce((acc, [key, value]) => {
13501
+ if (value === null) {
13502
+ return acc;
13503
+ }
13504
+ acc[key] = de_EvaluationScore(value, context);
13505
+ return acc;
13506
+ }, {});
13507
+ };
13508
+ const de_EvaluationSummary = (output, context) => {
13509
+ return (0, smithy_client_1.take)(output, {
13510
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
13511
+ EvaluationArn: smithy_client_1.expectString,
13512
+ EvaluationFormId: smithy_client_1.expectString,
13513
+ EvaluationFormTitle: smithy_client_1.expectString,
13514
+ EvaluationId: smithy_client_1.expectString,
13515
+ EvaluatorArn: smithy_client_1.expectString,
13516
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
13517
+ Score: (_) => de_EvaluationScore(_, context),
13518
+ Status: smithy_client_1.expectString,
13519
+ });
13520
+ };
13521
+ const de_EvaluationSummaryList = (output, context) => {
13522
+ const retVal = (output || [])
13523
+ .filter((e) => e != null)
13524
+ .map((entry) => {
13525
+ return de_EvaluationSummary(entry, context);
13526
+ });
13527
+ return retVal;
13528
+ };
12298
13529
  const de_HistoricalMetric = (output, context) => {
12299
13530
  return (0, smithy_client_1.take)(output, {
12300
13531
  Name: smithy_client_1.expectString,