hgs-twilio-class-lib 1.1.72 → 1.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aws/abstract/ServiceObjectStore.d.ts +9 -0
- package/lib/aws/abstract/ServiceObjectStore.js +10 -0
- package/lib/aws/abstract/ServiceOpenRequest.d.ts +7 -0
- package/lib/aws/abstract/ServiceOpenRequest.js +10 -0
- package/lib/aws/abstract/ServiceRequest.d.ts +3 -0
- package/lib/aws/abstract/ServiceRequest.js +7 -0
- package/lib/aws/abstract/ServiceResource.d.ts +20 -0
- package/lib/aws/abstract/ServiceResource.js +31 -0
- package/lib/aws/abstract/ServiceResourceFactory.d.ts +13 -0
- package/lib/aws/abstract/ServiceResourceFactory.js +14 -0
- package/lib/aws/abstract/ServiceTransaction.d.ts +6 -0
- package/lib/aws/abstract/ServiceTransaction.js +11 -0
- package/lib/aws/impl/AWSAPIConfig.d.ts +14 -0
- package/lib/aws/impl/AWSAPIConfig.js +38 -0
- package/lib/aws/impl/AWSClient.d.ts +5 -0
- package/lib/aws/impl/AWSClient.js +21 -0
- package/lib/aws/impl/AWSConnectAPIConfig.d.ts +17 -0
- package/lib/aws/impl/AWSConnectAPIConfig.js +38 -0
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.d.ts +18 -0
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.js +24 -0
- package/lib/aws/impl/DynamoDB/DynamoRequest.d.ts +16 -0
- package/lib/aws/impl/DynamoDB/DynamoRequest.js +21 -0
- package/lib/aws/impl/DynamoDB/DynamoResourse.d.ts +29 -0
- package/lib/aws/impl/DynamoDB/DynamoResourse.js +45 -0
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.d.ts +16 -0
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.js +63 -0
- package/lib/aws/impl/DynamoDB/DynamoTable.d.ts +26 -0
- package/lib/aws/impl/DynamoDB/DynamoTable.js +126 -0
- package/lib/aws/impl/DynamoDB/DynamoTransaction.d.ts +21 -0
- package/lib/aws/impl/DynamoDB/DynamoTransaction.js +37 -0
- package/lib/aws/impl/HoopServices/HoopService.d.ts +28 -0
- package/lib/aws/impl/HoopServices/HoopService.js +124 -0
- package/lib/aws/impl/HoopServices/HoopServiceFactory.d.ts +17 -0
- package/lib/aws/impl/HoopServices/HoopServiceFactory.js +53 -0
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.d.ts +18 -0
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.js +24 -0
- package/lib/aws/impl/HoopServices/HoopServiceResource.d.ts +29 -0
- package/lib/aws/impl/HoopServices/HoopServiceResource.js +46 -0
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.d.ts +22 -0
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.js +37 -0
- package/lib/aws/interface/IDirection.d.ts +2 -0
- package/lib/aws/interface/IDirection.js +2 -0
- package/lib/aws/interface/ILink.d.ts +2 -0
- package/lib/aws/interface/ILink.js +2 -0
- package/lib/aws/interface/IServiceDBOpenRequest.d.ts +3 -0
- package/lib/aws/interface/IServiceDBOpenRequest.js +2 -0
- package/lib/aws/interface/IServiceObjectStore.d.ts +3 -0
- package/lib/aws/interface/IServiceObjectStore.js +2 -0
- package/lib/aws/interface/IServiceObjectStoreParameters.d.ts +4 -0
- package/lib/aws/interface/IServiceObjectStoreParameters.js +2 -0
- package/lib/aws/interface/IServiceRequest.d.ts +3 -0
- package/lib/aws/interface/IServiceRequest.js +2 -0
- package/lib/aws/interface/IServiceResource.d.ts +7 -0
- package/lib/aws/interface/IServiceResource.js +2 -0
- package/lib/aws/interface/IServiceTransation.d.ts +3 -0
- package/lib/aws/interface/IServiceTransation.js +2 -0
- package/lib/aws/interface/ISubResourceUri.d.ts +2 -0
- package/lib/aws/interface/ISubResourceUri.js +2 -0
- package/lib/aws/interface/ISyncItemData.d.ts +0 -0
- package/lib/aws/interface/ISyncItemData.js +1 -0
- package/lib/aws/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/aws/interface/ISyncObjectStoreParameters.js +1 -0
- package/lib/aws/interface/ISyncTransactionOptions.d.ts +4 -0
- package/lib/aws/interface/ISyncTransactionOptions.js +2 -0
- package/lib/common/abstract/CommonError.d.ts +8 -0
- package/lib/common/abstract/CommonError.js +12 -0
- package/lib/common/abstract/Database.d.ts +44 -0
- package/lib/common/abstract/Database.js +58 -0
- package/lib/common/abstract/DatabaseClient.d.ts +11 -0
- package/lib/common/abstract/DatabaseClient.js +21 -0
- package/lib/common/abstract/DatabaseClientConfig.d.ts +5 -0
- package/lib/common/abstract/DatabaseClientConfig.js +9 -0
- package/lib/common/abstract/DatabaseFactory.d.ts +70 -0
- package/lib/common/abstract/DatabaseFactory.js +32 -0
- package/lib/common/abstract/DatabaseObjectStore.d.ts +29 -0
- package/lib/common/abstract/DatabaseObjectStore.js +13 -0
- package/lib/common/abstract/DatabaseOpenRequest.d.ts +24 -0
- package/lib/common/abstract/DatabaseOpenRequest.js +13 -0
- package/lib/common/abstract/DatabaseRequest.d.ts +21 -0
- package/lib/common/abstract/DatabaseRequest.js +14 -0
- package/lib/common/abstract/DatabaseTransaction.d.ts +22 -0
- package/lib/common/abstract/DatabaseTransaction.js +13 -0
- package/lib/common/abstract/Filter.d.ts +12 -0
- package/lib/common/abstract/Filter.js +30 -0
- package/lib/common/enum/ErrorTypes.d.ts +4 -0
- package/lib/common/enum/ErrorTypes.js +9 -0
- package/lib/common/enum/FilterTypes.d.ts +10 -0
- package/lib/common/enum/FilterTypes.js +14 -0
- package/lib/common/interface/IDatabaesInfo.d.ts +2 -0
- package/lib/common/interface/IDatabaesInfo.js +2 -0
- package/lib/common/interface/IDatabase.d.ts +4 -0
- package/lib/common/interface/IDatabase.js +2 -0
- package/lib/common/interface/IDatabaseClient.d.ts +5 -0
- package/lib/common/interface/IDatabaseClient.js +2 -0
- package/lib/common/interface/IDatabaseConfig.d.ts +8 -0
- package/lib/common/interface/IDatabaseConfig.js +10 -0
- package/lib/common/interface/IDatabaseDBOpenRequest.d.ts +2 -0
- package/lib/common/interface/IDatabaseDBOpenRequest.js +2 -0
- package/lib/common/interface/IDatabaseFactory.d.ts +21 -0
- package/lib/common/interface/IDatabaseFactory.js +2 -0
- package/lib/common/interface/IDatabaseObjectStore.d.ts +2 -0
- package/lib/common/interface/IDatabaseObjectStore.js +2 -0
- package/lib/common/interface/IDatabaseObjectStoreParameters.d.ts +2 -0
- package/lib/common/interface/IDatabaseObjectStoreParameters.js +2 -0
- package/lib/common/interface/IDatabaseRecord.d.ts +2 -0
- package/lib/common/interface/IDatabaseRecord.js +2 -0
- package/lib/common/interface/IDatabaseRequest.d.ts +2 -0
- package/lib/common/interface/IDatabaseRequest.js +2 -0
- package/lib/common/interface/IDatabaseTransaction.d.ts +2 -0
- package/lib/common/interface/IDatabaseTransaction.js +2 -0
- package/lib/common/interface/IDatabaseTransactionOptions.d.ts +2 -0
- package/lib/common/interface/IDatabaseTransactionOptions.js +2 -0
- package/lib/common/interface/IError.d.ts +5 -0
- package/lib/common/interface/IError.js +2 -0
- package/lib/common/interface/IErrorDetails.d.ts +6 -0
- package/lib/common/interface/IErrorDetails.js +2 -0
- package/lib/common/interface/IFilter.d.ts +25 -0
- package/lib/common/interface/IFilter.js +2 -0
- package/lib/common/type/DatabaseReadyType.d.ts +1 -0
- package/lib/common/type/DatabaseReadyType.js +2 -0
- package/lib/common/type/FilterInputType.d.ts +1 -0
- package/lib/common/type/FilterInputType.js +2 -0
- package/lib/common/type/SearchParameterType.d.ts +15 -0
- package/lib/common/type/SearchParameterType.js +3 -0
- package/lib/common/utils/dateFormat.d.ts +1 -0
- package/lib/common/utils/dateFormat.js +58 -0
- package/lib/common/utils/filter.d.ts +1 -0
- package/lib/common/utils/filter.js +99 -0
- package/lib/common/utils/newFilter.d.ts +1 -0
- package/lib/common/utils/newFilter.js +126 -0
- package/lib/common/utils/pagination.d.ts +1 -0
- package/lib/common/utils/pagination.js +9 -0
- package/lib/common/utils/search.d.ts +1 -0
- package/lib/common/utils/search.js +14 -0
- package/lib/common/utils/sort.d.ts +1 -0
- package/lib/common/utils/sort.js +29 -0
- package/lib/config/AWSConfig.d.ts +6 -0
- package/lib/config/AWSConfig.js +9 -0
- package/lib/config/DatabaseConfig.d.ts +33 -0
- package/lib/config/DatabaseConfig.js +36 -0
- package/lib/config/TwilioConfig.d.ts +4 -0
- package/lib/config/TwilioConfig.js +7 -0
- package/lib/controller/Common.d.ts +20 -0
- package/lib/controller/Common.js +57 -0
- package/lib/controller/DatabaseFactoryCollection.d.ts +6 -0
- package/lib/controller/DatabaseFactoryCollection.js +14 -0
- package/lib/controller/MainController.d.ts +6 -0
- package/lib/controller/MainController.js +174 -0
- package/lib/controller/aws/HoopBuisnessHours.d.ts +23 -0
- package/lib/controller/aws/HoopBuisnessHours.js +408 -0
- package/lib/controller/aws/HoopOperationsController.d.ts +9 -0
- package/lib/controller/aws/HoopOperationsController.js +86 -0
- package/lib/controller/aws/HoopOverrideBranchesController.d.ts +7 -0
- package/lib/controller/aws/HoopOverrideBranchesController.js +40 -0
- package/lib/controller/aws/HoopProfilesListController.d.ts +8 -0
- package/lib/controller/aws/HoopProfilesListController.js +61 -0
- package/lib/controller/aws/PlaybackScreenrecordings.d.ts +9 -0
- package/lib/controller/aws/PlaybackScreenrecordings.js +63 -0
- package/lib/controller/twilio/AgentActionsController.d.ts +54 -0
- package/lib/controller/twilio/AgentActionsController.js +177 -0
- package/lib/controller/twilio/AgentScorecardController.d.ts +53 -0
- package/lib/controller/twilio/AgentScorecardController.js +173 -0
- package/lib/controller/twilio/AuditLogController.d.ts +15 -0
- package/lib/controller/twilio/AuditLogController.js +137 -0
- package/lib/controller/twilio/CallLogsController.d.ts +12 -0
- package/lib/controller/twilio/CallLogsController.js +131 -0
- package/lib/controller/twilio/CallbackAndVoicemailController.d.ts +12 -0
- package/lib/controller/twilio/CallbackAndVoicemailController.js +114 -0
- package/lib/controller/twilio/ChannelSettingTaskInfoController.d.ts +11 -0
- package/lib/controller/twilio/ChannelSettingTaskInfoController.js +117 -0
- package/lib/controller/twilio/ChannelSettingsController.d.ts +16 -0
- package/lib/controller/twilio/ChannelSettingsController.js +142 -0
- package/lib/controller/twilio/CxConfigAssetController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigAssetController.js +128 -0
- package/lib/controller/twilio/CxConfigController.d.ts +18 -0
- package/lib/controller/twilio/CxConfigController.js +112 -0
- package/lib/controller/twilio/CxConfigExternalNumbersController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigExternalNumbersController.js +138 -0
- package/lib/controller/twilio/CxConfigOther.d.ts +16 -0
- package/lib/controller/twilio/CxConfigOther.js +138 -0
- package/lib/controller/twilio/CxConfigQueueMenuController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigQueueMenuController.js +129 -0
- package/lib/controller/twilio/CxConfigUIconfigController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigUIconfigController.js +132 -0
- package/lib/controller/twilio/GPMController.d.ts +12 -0
- package/lib/controller/twilio/GPMController.js +151 -0
- package/lib/controller/twilio/HoopBusinessHoursController.d.ts +18 -0
- package/lib/controller/twilio/HoopBusinessHoursController.js +285 -0
- package/lib/controller/twilio/HoopHolidaysController.d.ts +14 -0
- package/lib/controller/twilio/HoopHolidaysController.js +152 -0
- package/lib/controller/twilio/HoopMainController.d.ts +13 -0
- package/lib/controller/twilio/HoopMainController.js +297 -0
- package/lib/controller/twilio/HoopNotesController.d.ts +14 -0
- package/lib/controller/twilio/HoopNotesController.js +149 -0
- package/lib/controller/twilio/HoopOperationsController.d.ts +14 -0
- package/lib/controller/twilio/HoopOperationsController.js +138 -0
- package/lib/controller/twilio/HoopOverrideBranchesController.d.ts +14 -0
- package/lib/controller/twilio/HoopOverrideBranchesController.js +137 -0
- package/lib/controller/twilio/HoopPartialDaysController.d.ts +14 -0
- package/lib/controller/twilio/HoopPartialDaysController.js +152 -0
- package/lib/controller/twilio/HoopProfilesListController.d.ts +14 -0
- package/lib/controller/twilio/HoopProfilesListController.js +147 -0
- package/lib/controller/twilio/NavigationController.d.ts +13 -0
- package/lib/controller/twilio/NavigationController.js +170 -0
- package/lib/controller/twilio/QualityFormsController.d.ts +12 -0
- package/lib/controller/twilio/QualityFormsController.js +129 -0
- package/lib/controller/twilio/QuickLinkController.d.ts +11 -0
- package/lib/controller/twilio/QuickLinkController.js +122 -0
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.d.ts +14 -0
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.js +126 -0
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.d.ts +53 -0
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.js +160 -0
- package/lib/controller/twilio/TaskInfoPanelController.d.ts +15 -0
- package/lib/controller/twilio/TaskInfoPanelController.js +134 -0
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.js +52 -0
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.js +89 -0
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.js +81 -0
- package/lib/controller/twilio/filterImpl/CallLogsFilter.d.ts +20 -0
- package/lib/controller/twilio/filterImpl/CallLogsFilter.js +101 -0
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.js +59 -0
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.js +67 -0
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.js +52 -0
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.d.ts +17 -0
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.js +78 -0
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.js +51 -0
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.js +58 -0
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.js +51 -0
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js +58 -0
- package/lib/controller/twilio/filterImpl/MainFilterService.d.ts +4 -0
- package/lib/controller/twilio/filterImpl/MainFilterService.js +108 -0
- package/lib/controller/twilio/filterImpl/NavigationFilter.d.ts +20 -0
- package/lib/controller/twilio/filterImpl/NavigationFilter.js +90 -0
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.js +53 -0
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.js +62 -0
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.js +52 -0
- package/lib/express/ApiResponse.d.ts +15 -0
- package/lib/express/ApiResponse.js +11 -0
- package/lib/express/RequestValidator.d.ts +50 -0
- package/lib/express/RequestValidator.js +77 -0
- package/lib/express/RequireParamsPicker.d.ts +7 -0
- package/lib/express/RequireParamsPicker.js +14 -0
- package/lib/express/ValidateRequireParameters.d.ts +3 -0
- package/lib/express/ValidateRequireParameters.js +39 -0
- package/lib/index.d.ts +39 -0
- package/lib/index.js +100 -0
- package/lib/models/BatchUpdateSkills.model.d.ts +0 -0
- package/lib/models/BatchUpdateSkills.model.js +11 -0
- package/lib/models/CannedMessage.model.d.ts +4 -0
- package/lib/models/CannedMessage.model.js +1 -0
- package/lib/models/ChannelSettingsTaskInfo.model.d.ts +87 -0
- package/lib/models/ChannelSettingsTaskInfo.model.js +1 -0
- package/lib/models/CustomerFeedback.model.d.ts +9 -0
- package/lib/models/CustomerFeedback.model.js +1 -0
- package/lib/models/Filter.model.d.ts +15 -0
- package/lib/models/Filter.model.js +2 -0
- package/lib/models/Hoop.model.d.ts +15 -0
- package/lib/models/Hoop.model.js +18 -0
- package/lib/models/Navigation.model.d.ts +28 -0
- package/lib/models/Navigation.model.js +8 -0
- package/lib/models/Roles.Model.d.ts +8 -0
- package/lib/models/Roles.Model.js +1 -0
- package/lib/models/abstract/BaseModel.d.ts +17 -0
- package/lib/models/abstract/BaseModel.js +40 -0
- package/lib/models/impl/AgentActionsLogsModel.d.ts +27 -0
- package/lib/models/impl/AgentActionsLogsModel.js +89 -0
- package/lib/models/impl/AgentActionsModel.d.ts +19 -0
- package/lib/models/impl/AgentActionsModel.js +60 -0
- package/lib/models/impl/AgentScorecardModel.d.ts +66 -0
- package/lib/models/impl/AgentScorecardModel.js +282 -0
- package/lib/models/impl/AuditLogsModel.d.ts +31 -0
- package/lib/models/impl/AuditLogsModel.js +146 -0
- package/lib/models/impl/CallLogsModel.d.ts +37 -0
- package/lib/models/impl/CallLogsModel.js +109 -0
- package/lib/models/impl/CallStatisticsModel.d.ts +16 -0
- package/lib/models/impl/CallStatisticsModel.js +52 -0
- package/lib/models/impl/CategoryDetailsModel.d.ts +17 -0
- package/lib/models/impl/CategoryDetailsModel.js +44 -0
- package/lib/models/impl/MemberModel.d.ts +42 -0
- package/lib/models/impl/MemberModel.js +170 -0
- package/lib/models/impl/ModelValidationError.d.ts +6 -0
- package/lib/models/impl/ModelValidationError.js +15 -0
- package/lib/models/impl/NavigationModel.d.ts +39 -0
- package/lib/models/impl/NavigationModel.js +126 -0
- package/lib/models/impl/PerformanceStatisticsModel.d.ts +41 -0
- package/lib/models/impl/PerformanceStatisticsModel.js +129 -0
- package/lib/models/impl/PlaybackScreenrecordings.d.ts +39 -0
- package/lib/models/impl/PlaybackScreenrecordings.js +133 -0
- package/lib/models/impl/ProfileModel.d.ts +23 -0
- package/lib/models/impl/ProfileModel.js +102 -0
- package/lib/models/impl/QualityFormsModel.d.ts +39 -0
- package/lib/models/impl/QualityFormsModel.js +150 -0
- package/lib/models/impl/QuestionDetailsModel.d.ts +39 -0
- package/lib/models/impl/QuestionDetailsModel.js +173 -0
- package/lib/models/impl/QueueDetailsModel.d.ts +63 -0
- package/lib/models/impl/QueueDetailsModel.js +261 -0
- package/lib/models/impl/QueueModel.d.ts +39 -0
- package/lib/models/impl/QueueModel.js +156 -0
- package/lib/models/impl/QuickLinkModel.d.ts +24 -0
- package/lib/models/impl/QuickLinkModel.js +122 -0
- package/lib/models/impl/StatisticsNumberDetailsModel.d.ts +18 -0
- package/lib/models/impl/StatisticsNumberDetailsModel.js +72 -0
- package/lib/models/impl/StatisticsTimeDetailsModel.d.ts +18 -0
- package/lib/models/impl/StatisticsTimeDetailsModel.js +72 -0
- package/lib/models/impl/TaskAttributesModel.d.ts +31 -0
- package/lib/models/impl/TaskAttributesModel.js +108 -0
- package/lib/models/impl/TaskChannelModel.d.ts +15 -0
- package/lib/models/impl/TaskChannelModel.js +69 -0
- package/lib/models/impl/TaskComplete.d.ts +0 -0
- package/lib/models/impl/TaskComplete.js +1 -0
- package/lib/models/impl/TaskInfoPanelModel.d.ts +16 -0
- package/lib/models/impl/TaskInfoPanelModel.js +69 -0
- package/lib/models/impl/TaskModel.d.ts +59 -0
- package/lib/models/impl/TaskModel.js +234 -0
- package/lib/models/impl/WorkGroupDetailsModel.d.ts +63 -0
- package/lib/models/impl/WorkGroupDetailsModel.js +281 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.d.ts +33 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.js +140 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.d.ts +8 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.js +12 -0
- package/lib/models/impl/callbackandvoicemail/CallbackModel.d.ts +19 -0
- package/lib/models/impl/callbackandvoicemail/CallbackModel.js +82 -0
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.d.ts +25 -0
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.js +108 -0
- package/lib/models/impl/channelsettings/ChannelSettingModel.d.ts +68 -0
- package/lib/models/impl/channelsettings/ChannelSettingModel.js +240 -0
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.d.ts +31 -0
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.js +106 -0
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.d.ts +25 -0
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.js +80 -0
- package/lib/models/impl/channelsettings/TaskInfoModel.d.ts +13 -0
- package/lib/models/impl/channelsettings/TaskInfoModel.js +52 -0
- package/lib/models/impl/cxconfig/CxConfigNamespace.d.ts +16 -0
- package/lib/models/impl/cxconfig/CxConfigNamespace.js +20 -0
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.d.ts +27 -0
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.js +173 -0
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.d.ts +24 -0
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.js +103 -0
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.d.ts +24 -0
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.js +149 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.d.ts +27 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.js +179 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.d.ts +37 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.js +197 -0
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.d.ts +27 -0
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.js +159 -0
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.d.ts +40 -0
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.js +128 -0
- package/lib/models/impl/hoop/HoopBusinessHoursModel.d.ts +39 -0
- package/lib/models/impl/hoop/HoopBusinessHoursModel.js +122 -0
- package/lib/models/impl/hoop/HoopDescriptionModel.d.ts +16 -0
- package/lib/models/impl/hoop/HoopDescriptionModel.js +64 -0
- package/lib/models/impl/hoop/HoopHolidaysImplModel.d.ts +25 -0
- package/lib/models/impl/hoop/HoopHolidaysImplModel.js +118 -0
- package/lib/models/impl/hoop/HoopNotesImplModel.d.ts +25 -0
- package/lib/models/impl/hoop/HoopNotesImplModel.js +117 -0
- package/lib/models/impl/hoop/HoopOperationsImplModel.d.ts +28 -0
- package/lib/models/impl/hoop/HoopOperationsImplModel.js +161 -0
- package/lib/models/impl/hoop/HoopOverrideImplModel.d.ts +22 -0
- package/lib/models/impl/hoop/HoopOverrideImplModel.js +143 -0
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.d.ts +31 -0
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.js +140 -0
- package/lib/models/impl/hoop/HoopProfilesListImplModel.d.ts +22 -0
- package/lib/models/impl/hoop/HoopProfilesListImplModel.js +104 -0
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.d.ts +22 -0
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.js +86 -0
- package/lib/models/index.d.ts +25 -0
- package/lib/models/index.js +53 -0
- package/lib/models/interface/IBaseModel.d.ts +11 -0
- package/lib/models/interface/IBaseModel.js +2 -0
- package/lib/models/types/AgentScorecard.type.d.ts +6 -0
- package/lib/models/types/AgentScorecard.type.js +7 -0
- package/lib/models/types/AuditLog.type.d.ts +13 -0
- package/lib/models/types/AuditLog.type.js +10 -0
- package/lib/models/types/CallLog.type.d.ts +16 -0
- package/lib/models/types/CallLog.type.js +10 -0
- package/lib/models/types/ChannelSetting.type.d.ts +7 -0
- package/lib/models/types/ChannelSetting.type.js +11 -0
- package/lib/models/types/CxConfig.type.d.ts +72 -0
- package/lib/models/types/CxConfig.type.js +43 -0
- package/lib/models/types/Hoop.type.d.ts +9 -0
- package/lib/models/types/Hoop.type.js +13 -0
- package/lib/models/types/Navigation.type.d.ts +11 -0
- package/lib/models/types/Navigation.type.js +8 -0
- package/lib/models/types/Profile.type.d.ts +1 -0
- package/lib/models/types/Profile.type.js +2 -0
- package/lib/models/types/QueueDetails.type.d.ts +6 -0
- package/lib/models/types/QueueDetails.type.js +7 -0
- package/lib/models/types/TaskComplete.type.d.ts +7 -0
- package/lib/models/types/TaskComplete.type.js +6 -0
- package/lib/models/types/TaskInfoPanel.type.d.ts +6 -0
- package/lib/models/types/TaskInfoPanel.type.js +7 -0
- package/lib/server.d.ts +1 -0
- package/lib/server.js +39 -0
- package/lib/twilio/abstract/ServiceObjectStore.d.ts +6 -0
- package/lib/twilio/abstract/ServiceObjectStore.js +10 -0
- package/lib/twilio/abstract/ServiceOpenRequest.d.ts +7 -0
- package/lib/twilio/abstract/ServiceOpenRequest.js +10 -0
- package/lib/twilio/abstract/ServiceRequest.d.ts +3 -0
- package/lib/twilio/abstract/ServiceRequest.js +7 -0
- package/lib/twilio/abstract/ServiceResource.d.ts +23 -0
- package/lib/twilio/abstract/ServiceResource.js +37 -0
- package/lib/twilio/abstract/ServiceResourceFactory.d.ts +15 -0
- package/lib/twilio/abstract/ServiceResourceFactory.js +18 -0
- package/lib/twilio/abstract/ServiceTransaction.d.ts +6 -0
- package/lib/twilio/abstract/ServiceTransaction.js +11 -0
- package/lib/twilio/abstract/SyncServiceItemResource.d.ts +31 -0
- package/lib/twilio/abstract/SyncServiceItemResource.js +60 -0
- package/lib/twilio/abstract/TwilioClientConfig.d.ts +0 -0
- package/lib/twilio/abstract/TwilioClientConfig.js +1 -0
- package/lib/twilio/impl/TwilioAPIKeyConfig.d.ts +14 -0
- package/lib/twilio/impl/TwilioAPIKeyConfig.js +31 -0
- package/lib/twilio/impl/TwilioAuthTokenConfig.d.ts +11 -0
- package/lib/twilio/impl/TwilioAuthTokenConfig.js +24 -0
- package/lib/twilio/impl/TwilioClient.d.ts +6 -0
- package/lib/twilio/impl/TwilioClient.js +21 -0
- package/lib/twilio/impl/message/messageService.d.ts +0 -0
- package/lib/twilio/impl/message/messageService.js +42 -0
- package/lib/twilio/impl/sync/SyncDocument.d.ts +24 -0
- package/lib/twilio/impl/sync/SyncDocument.js +52 -0
- package/lib/twilio/impl/sync/SyncDocumentTransaction.d.ts +20 -0
- package/lib/twilio/impl/sync/SyncDocumentTransaction.js +31 -0
- package/lib/twilio/impl/sync/SyncList.d.ts +24 -0
- package/lib/twilio/impl/sync/SyncList.js +52 -0
- package/lib/twilio/impl/sync/SyncListItem.d.ts +5 -0
- package/lib/twilio/impl/sync/SyncListItem.js +22 -0
- package/lib/twilio/impl/sync/SyncListTransaction.d.ts +20 -0
- package/lib/twilio/impl/sync/SyncListTransaction.js +31 -0
- package/lib/twilio/impl/sync/SyncMap.d.ts +25 -0
- package/lib/twilio/impl/sync/SyncMap.js +139 -0
- package/lib/twilio/impl/sync/SyncMapItem.d.ts +5 -0
- package/lib/twilio/impl/sync/SyncMapItem.js +7 -0
- package/lib/twilio/impl/sync/SyncMapTransaction.d.ts +22 -0
- package/lib/twilio/impl/sync/SyncMapTransaction.js +38 -0
- package/lib/twilio/impl/sync/SyncOpenRequest.d.ts +18 -0
- package/lib/twilio/impl/sync/SyncOpenRequest.js +24 -0
- package/lib/twilio/impl/sync/SyncRequest.d.ts +16 -0
- package/lib/twilio/impl/sync/SyncRequest.js +21 -0
- package/lib/twilio/impl/sync/SyncResource.d.ts +50 -0
- package/lib/twilio/impl/sync/SyncResource.js +97 -0
- package/lib/twilio/impl/sync/SyncServiceFactory.d.ts +22 -0
- package/lib/twilio/impl/sync/SyncServiceFactory.js +117 -0
- package/lib/twilio/interface/IDirection.d.ts +2 -0
- package/lib/twilio/interface/IDirection.js +2 -0
- package/lib/twilio/interface/ILink.d.ts +2 -0
- package/lib/twilio/interface/ILink.js +2 -0
- package/lib/twilio/interface/IServiceDBOpenRequest.d.ts +3 -0
- package/lib/twilio/interface/IServiceDBOpenRequest.js +2 -0
- package/lib/twilio/interface/IServiceObjectStore.d.ts +3 -0
- package/lib/twilio/interface/IServiceObjectStore.js +2 -0
- package/lib/twilio/interface/IServiceObjectStoreParameters.d.ts +4 -0
- package/lib/twilio/interface/IServiceObjectStoreParameters.js +2 -0
- package/lib/twilio/interface/IServiceRequest.d.ts +3 -0
- package/lib/twilio/interface/IServiceRequest.js +2 -0
- package/lib/twilio/interface/IServiceResource.d.ts +8 -0
- package/lib/twilio/interface/IServiceResource.js +2 -0
- package/lib/twilio/interface/IServiceTransation.d.ts +3 -0
- package/lib/twilio/interface/IServiceTransation.js +2 -0
- package/lib/twilio/interface/ISubResourceUri.d.ts +2 -0
- package/lib/twilio/interface/ISubResourceUri.js +2 -0
- package/lib/twilio/interface/ISyncItemData.d.ts +0 -0
- package/lib/twilio/interface/ISyncItemData.js +1 -0
- package/lib/twilio/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/twilio/interface/ISyncObjectStoreParameters.js +1 -0
- package/lib/twilio/interface/ISyncTransactionOptions.d.ts +4 -0
- package/lib/twilio/interface/ISyncTransactionOptions.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuestionDetailsModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
class QuestionDetailsModel extends BaseModel_1.BaseModel {
|
|
6
|
+
constructor(question, score, yes, no, nA, comment, subInfoTitle, subInfo, subInfo2Title, subInfo2, defaultValue) {
|
|
7
|
+
super();
|
|
8
|
+
this._question = question;
|
|
9
|
+
this._score = score;
|
|
10
|
+
this._yes = yes;
|
|
11
|
+
this._no = no;
|
|
12
|
+
this._nA = nA;
|
|
13
|
+
this._comment = comment;
|
|
14
|
+
this._subInfoTitle = subInfoTitle;
|
|
15
|
+
this._subInfo = subInfo;
|
|
16
|
+
this._subInfo2Title = subInfo2Title;
|
|
17
|
+
this._subInfo2 = subInfo2;
|
|
18
|
+
this._defaultValue = defaultValue;
|
|
19
|
+
}
|
|
20
|
+
// Getters and Setters
|
|
21
|
+
get question() {
|
|
22
|
+
return this._question;
|
|
23
|
+
}
|
|
24
|
+
set question(value) {
|
|
25
|
+
if (typeof value === "string" && value.trim() !== "") {
|
|
26
|
+
this._question = value;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
throw new Error("Invalid question");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
get score() {
|
|
33
|
+
return this._score;
|
|
34
|
+
}
|
|
35
|
+
set score(value) {
|
|
36
|
+
if (typeof value === "number" && value >= 0) {
|
|
37
|
+
this._score = value;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
throw new Error("Invalid score");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
get yes() {
|
|
44
|
+
return this._yes;
|
|
45
|
+
}
|
|
46
|
+
set yes(value) {
|
|
47
|
+
if (typeof value === "boolean") {
|
|
48
|
+
this._yes = value;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
throw new Error("Invalid yes value");
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
get no() {
|
|
55
|
+
return this._no;
|
|
56
|
+
}
|
|
57
|
+
set no(value) {
|
|
58
|
+
if (typeof value === "boolean") {
|
|
59
|
+
this._no = value;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
throw new Error("Invalid no value");
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
get nA() {
|
|
66
|
+
return this._nA;
|
|
67
|
+
}
|
|
68
|
+
set nA(value) {
|
|
69
|
+
if (typeof value === "boolean") {
|
|
70
|
+
this._nA = value;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
throw new Error("Invalid nA value");
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
get comment() {
|
|
77
|
+
return this._comment;
|
|
78
|
+
}
|
|
79
|
+
set comment(value) {
|
|
80
|
+
if (typeof value === "string" && value.trim() !== "") {
|
|
81
|
+
this._comment = value;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
throw new Error("Invalid comment");
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
get subInfoTitle() {
|
|
88
|
+
return this._subInfoTitle;
|
|
89
|
+
}
|
|
90
|
+
set subInfoTitle(value) {
|
|
91
|
+
if (value === undefined || (typeof value === "string" && value.trim() !== "")) {
|
|
92
|
+
this._subInfoTitle = value;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
throw new Error("Invalid subInfoTitle");
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
get subInfo() {
|
|
99
|
+
return this._subInfo;
|
|
100
|
+
}
|
|
101
|
+
set subInfo(value) {
|
|
102
|
+
if (value === undefined || (Array.isArray(value) && value.every((item) => typeof item === "string"))) {
|
|
103
|
+
this._subInfo = value;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
throw new Error("Invalid subInfo");
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
get subInfo2Title() {
|
|
110
|
+
return this._subInfo2Title;
|
|
111
|
+
}
|
|
112
|
+
set subInfo2Title(value) {
|
|
113
|
+
if (value === undefined || (typeof value === "string" && value.trim() !== "")) {
|
|
114
|
+
this._subInfo2Title = value;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
throw new Error("Invalid subInfo2Title");
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
get subInfo2() {
|
|
121
|
+
return this._subInfo2;
|
|
122
|
+
}
|
|
123
|
+
set subInfo2(value) {
|
|
124
|
+
if (value === undefined || (Array.isArray(value) && value.every((item) => typeof item === "string"))) {
|
|
125
|
+
this._subInfo2 = value;
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
throw new Error("Invalid subInfo2");
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
get defaultValue() {
|
|
132
|
+
return this._defaultValue;
|
|
133
|
+
}
|
|
134
|
+
set defaultValue(value) {
|
|
135
|
+
if (value === undefined || (typeof value === "string" && value.trim() !== "")) {
|
|
136
|
+
this._defaultValue = value;
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
throw new Error("Invalid defaultValue");
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
// Validate data
|
|
143
|
+
validateData() {
|
|
144
|
+
this.validationMessages = [];
|
|
145
|
+
const validationRules = {
|
|
146
|
+
question: (value) => typeof value === "string" && value.trim() !== "",
|
|
147
|
+
score: (value) => typeof value === "number" && value >= 0,
|
|
148
|
+
yes: (value) => typeof value === "boolean",
|
|
149
|
+
no: (value) => typeof value === "boolean",
|
|
150
|
+
nA: (value) => typeof value === "boolean",
|
|
151
|
+
comment: (value) => typeof value === "string" && value.trim() !== "",
|
|
152
|
+
subInfoTitle: (value) => value === undefined || (typeof value === "string" && value.trim() !== ""),
|
|
153
|
+
subInfo: (value) => value === undefined || (Array.isArray(value) && value.every((item) => typeof item === "string")),
|
|
154
|
+
subInfo2Title: (value) => value === undefined || (typeof value === "string" && value.trim() !== ""),
|
|
155
|
+
subInfo2: (value) => value === undefined || (Array.isArray(value) && value.every((item) => typeof item === "string")),
|
|
156
|
+
defaultValue: (value) => value === undefined || (typeof value === "string" && value.trim() !== ""),
|
|
157
|
+
};
|
|
158
|
+
// Validate each property
|
|
159
|
+
Object.keys(validationRules).forEach((key) => {
|
|
160
|
+
const validator = validationRules[key];
|
|
161
|
+
const fieldValue = this[key];
|
|
162
|
+
if (!validator(fieldValue)) {
|
|
163
|
+
this.validationMessages.push({
|
|
164
|
+
type: "Error",
|
|
165
|
+
fieldDescription: key,
|
|
166
|
+
message: `${key} is not valid`,
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
return this.validationMessages;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.QuestionDetailsModel = QuestionDetailsModel;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
export declare class QueueDetailsModel extends BaseModel {
|
|
4
|
+
private _id;
|
|
5
|
+
private _uniqueName;
|
|
6
|
+
private _periodNumber;
|
|
7
|
+
private _intOffr;
|
|
8
|
+
private _intAns;
|
|
9
|
+
private _intAbn;
|
|
10
|
+
private _slaTarget;
|
|
11
|
+
private _totalServiceLevel;
|
|
12
|
+
private _sumTalkTime;
|
|
13
|
+
private _sumHoldTime;
|
|
14
|
+
private _sumWaitTime;
|
|
15
|
+
private _longestWaitTime;
|
|
16
|
+
private _longestHoldTime;
|
|
17
|
+
private _longestTalkTime;
|
|
18
|
+
private _longestInboundACDIntereaction;
|
|
19
|
+
private _longestOutboundACDIntereaction;
|
|
20
|
+
private _createdAt;
|
|
21
|
+
private _updatedAt;
|
|
22
|
+
private _eventId;
|
|
23
|
+
constructor(id: string, uniqueName: string, periodNumber: string, intOffr: number, intAns: number, intAbn: number, slaTarget: number, totalServiceLevel: number, sumTalkTime: number, sumHoldTime: number, sumWaitTime: number, longestWaitTime: number, longestHoldTime: number, longestTalkTime: number, longestInboundACDIntereaction: number, longestOutboundACDIntereaction: number, createdAt: Date | undefined | string, updatedAt: Date | undefined | string, eventId: string);
|
|
24
|
+
get id(): string;
|
|
25
|
+
set id(value: string);
|
|
26
|
+
get uniqueName(): string;
|
|
27
|
+
set uniqueName(value: string);
|
|
28
|
+
get periodNumber(): string;
|
|
29
|
+
set periodNumber(value: string);
|
|
30
|
+
get intOffr(): number;
|
|
31
|
+
set intOffr(value: number);
|
|
32
|
+
get intAns(): number;
|
|
33
|
+
set intAns(value: number);
|
|
34
|
+
get intAbn(): number;
|
|
35
|
+
set intAbn(value: number);
|
|
36
|
+
get slaTarget(): number;
|
|
37
|
+
set slaTarget(value: number);
|
|
38
|
+
get totalServiceLevel(): number;
|
|
39
|
+
set totalServiceLevel(value: number);
|
|
40
|
+
get sumTalkTime(): number;
|
|
41
|
+
set sumTalkTime(value: number);
|
|
42
|
+
get sumHoldTime(): number;
|
|
43
|
+
set sumHoldTime(value: number);
|
|
44
|
+
get sumWaitTime(): number;
|
|
45
|
+
set sumWaitTime(value: number);
|
|
46
|
+
get longestWaitTime(): number;
|
|
47
|
+
set longestWaitTime(value: number);
|
|
48
|
+
get longestHoldTime(): number;
|
|
49
|
+
set longestHoldTime(value: number);
|
|
50
|
+
get longestTalkTime(): number;
|
|
51
|
+
set longestTalkTime(value: number);
|
|
52
|
+
get longestInboundACDIntereaction(): number;
|
|
53
|
+
set longestInboundACDIntereaction(value: number);
|
|
54
|
+
get longestOutboundACDIntereaction(): number;
|
|
55
|
+
set longestOutboundACDIntereaction(value: number);
|
|
56
|
+
get createdAt(): Date | undefined | string;
|
|
57
|
+
set createdAt(value: Date | undefined | string);
|
|
58
|
+
get updatedAt(): Date | undefined | string;
|
|
59
|
+
set updatedAt(value: Date | undefined | string);
|
|
60
|
+
get eventId(): string;
|
|
61
|
+
set eventId(value: string);
|
|
62
|
+
validateData(): validationMessage[];
|
|
63
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QueueDetailsModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
class QueueDetailsModel extends BaseModel_1.BaseModel {
|
|
6
|
+
constructor(id, uniqueName, periodNumber, intOffr, intAns, intAbn, slaTarget, totalServiceLevel, sumTalkTime, sumHoldTime, sumWaitTime, longestWaitTime, longestHoldTime, longestTalkTime, longestInboundACDIntereaction, longestOutboundACDIntereaction, createdAt, updatedAt, eventId) {
|
|
7
|
+
super();
|
|
8
|
+
this._id = id;
|
|
9
|
+
this._uniqueName = uniqueName;
|
|
10
|
+
this._periodNumber = periodNumber;
|
|
11
|
+
this._intOffr = intOffr;
|
|
12
|
+
this._intAns = intAns;
|
|
13
|
+
this._intAbn = intAbn;
|
|
14
|
+
this._slaTarget = slaTarget;
|
|
15
|
+
this._totalServiceLevel = totalServiceLevel;
|
|
16
|
+
this._sumTalkTime = sumTalkTime;
|
|
17
|
+
this._sumHoldTime = sumHoldTime;
|
|
18
|
+
this._sumWaitTime = sumWaitTime;
|
|
19
|
+
this._longestWaitTime = longestWaitTime;
|
|
20
|
+
this._longestHoldTime = longestHoldTime;
|
|
21
|
+
this._longestTalkTime = longestTalkTime;
|
|
22
|
+
this._longestInboundACDIntereaction = longestInboundACDIntereaction;
|
|
23
|
+
this._longestOutboundACDIntereaction = longestOutboundACDIntereaction;
|
|
24
|
+
this._createdAt = createdAt;
|
|
25
|
+
this._updatedAt = updatedAt;
|
|
26
|
+
this._eventId = eventId;
|
|
27
|
+
}
|
|
28
|
+
// Getters and Setters
|
|
29
|
+
get id() {
|
|
30
|
+
return this._id;
|
|
31
|
+
}
|
|
32
|
+
set id(value) {
|
|
33
|
+
this._id = value;
|
|
34
|
+
}
|
|
35
|
+
get uniqueName() {
|
|
36
|
+
return this._uniqueName;
|
|
37
|
+
}
|
|
38
|
+
set uniqueName(value) {
|
|
39
|
+
this._uniqueName = value;
|
|
40
|
+
}
|
|
41
|
+
get periodNumber() {
|
|
42
|
+
return this._periodNumber;
|
|
43
|
+
}
|
|
44
|
+
set periodNumber(value) {
|
|
45
|
+
this._periodNumber = value;
|
|
46
|
+
}
|
|
47
|
+
get intOffr() {
|
|
48
|
+
return this.intOffr;
|
|
49
|
+
}
|
|
50
|
+
set intOffr(value) {
|
|
51
|
+
this.intOffr = value;
|
|
52
|
+
}
|
|
53
|
+
get intAns() {
|
|
54
|
+
return this._intAns;
|
|
55
|
+
}
|
|
56
|
+
set intAns(value) {
|
|
57
|
+
this._intAns = value;
|
|
58
|
+
}
|
|
59
|
+
get intAbn() {
|
|
60
|
+
return this._intAbn;
|
|
61
|
+
}
|
|
62
|
+
set intAbn(value) {
|
|
63
|
+
this._intAbn = value;
|
|
64
|
+
}
|
|
65
|
+
get slaTarget() {
|
|
66
|
+
return this._slaTarget;
|
|
67
|
+
}
|
|
68
|
+
set slaTarget(value) {
|
|
69
|
+
this._slaTarget = value;
|
|
70
|
+
}
|
|
71
|
+
get totalServiceLevel() {
|
|
72
|
+
return this._totalServiceLevel;
|
|
73
|
+
}
|
|
74
|
+
set totalServiceLevel(value) {
|
|
75
|
+
this._totalServiceLevel = value;
|
|
76
|
+
}
|
|
77
|
+
get sumTalkTime() {
|
|
78
|
+
return this._sumTalkTime;
|
|
79
|
+
}
|
|
80
|
+
set sumTalkTime(value) {
|
|
81
|
+
this._sumTalkTime = value;
|
|
82
|
+
}
|
|
83
|
+
get sumHoldTime() {
|
|
84
|
+
return this._sumHoldTime;
|
|
85
|
+
}
|
|
86
|
+
set sumHoldTime(value) {
|
|
87
|
+
this._sumHoldTime = value;
|
|
88
|
+
}
|
|
89
|
+
get sumWaitTime() {
|
|
90
|
+
return this._sumWaitTime;
|
|
91
|
+
}
|
|
92
|
+
set sumWaitTime(value) {
|
|
93
|
+
this._sumWaitTime = value;
|
|
94
|
+
}
|
|
95
|
+
get longestWaitTime() {
|
|
96
|
+
return this._longestWaitTime;
|
|
97
|
+
}
|
|
98
|
+
set longestWaitTime(value) {
|
|
99
|
+
this._longestWaitTime = value;
|
|
100
|
+
}
|
|
101
|
+
get longestHoldTime() {
|
|
102
|
+
return this._longestHoldTime;
|
|
103
|
+
}
|
|
104
|
+
set longestHoldTime(value) {
|
|
105
|
+
this._longestHoldTime = value;
|
|
106
|
+
}
|
|
107
|
+
get longestTalkTime() {
|
|
108
|
+
return this._longestTalkTime;
|
|
109
|
+
}
|
|
110
|
+
set longestTalkTime(value) {
|
|
111
|
+
this._longestTalkTime = value;
|
|
112
|
+
}
|
|
113
|
+
get longestInboundACDIntereaction() {
|
|
114
|
+
return this._longestInboundACDIntereaction;
|
|
115
|
+
}
|
|
116
|
+
set longestInboundACDIntereaction(value) {
|
|
117
|
+
this._longestInboundACDIntereaction = value;
|
|
118
|
+
}
|
|
119
|
+
get longestOutboundACDIntereaction() {
|
|
120
|
+
return this._longestOutboundACDIntereaction;
|
|
121
|
+
}
|
|
122
|
+
set longestOutboundACDIntereaction(value) {
|
|
123
|
+
this._longestOutboundACDIntereaction = value;
|
|
124
|
+
}
|
|
125
|
+
get createdAt() {
|
|
126
|
+
return this._createdAt;
|
|
127
|
+
}
|
|
128
|
+
set createdAt(value) {
|
|
129
|
+
this._createdAt = value;
|
|
130
|
+
}
|
|
131
|
+
get updatedAt() {
|
|
132
|
+
return this._updatedAt;
|
|
133
|
+
}
|
|
134
|
+
set updatedAt(value) {
|
|
135
|
+
this._updatedAt = value;
|
|
136
|
+
}
|
|
137
|
+
get eventId() {
|
|
138
|
+
return this._eventId;
|
|
139
|
+
}
|
|
140
|
+
set eventId(value) {
|
|
141
|
+
this._eventId = value;
|
|
142
|
+
}
|
|
143
|
+
// Validation Method
|
|
144
|
+
validateData() {
|
|
145
|
+
this.validationMessages = [];
|
|
146
|
+
if (typeof this._id !== "string" || !this._id.trim()) {
|
|
147
|
+
this.validationMessages.push({
|
|
148
|
+
type: "Error",
|
|
149
|
+
fieldDescription: "id",
|
|
150
|
+
message: "ID must be a non-empty string",
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
if (typeof this._uniqueName !== "string" || !this._uniqueName.trim()) {
|
|
154
|
+
this.validationMessages.push({
|
|
155
|
+
type: "Error",
|
|
156
|
+
fieldDescription: "uniqueName",
|
|
157
|
+
message: "Unique name must be a non-empty string",
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
if (typeof this._periodNumber !== "string" || !this._periodNumber.trim()) {
|
|
161
|
+
this.validationMessages.push({
|
|
162
|
+
type: "Error",
|
|
163
|
+
fieldDescription: "periodNumber",
|
|
164
|
+
message: "Period number must be a non-empty string",
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
if (typeof this._intOffr !== "number" || this.intOffr < 0) {
|
|
168
|
+
this.validationMessages.push({
|
|
169
|
+
type: "Error",
|
|
170
|
+
fieldDescription: "intOffr",
|
|
171
|
+
message: "intOffr must be a non-negative number",
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
if (typeof this._intAns !== "number" || this._intAns < 0) {
|
|
175
|
+
this.validationMessages.push({
|
|
176
|
+
type: "Error",
|
|
177
|
+
fieldDescription: "intAns",
|
|
178
|
+
message: "intAns must be a non-negative number",
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
if (typeof this._intAbn !== "number" || this._intAbn < 0) {
|
|
182
|
+
this.validationMessages.push({
|
|
183
|
+
type: "Error",
|
|
184
|
+
fieldDescription: "intAbn",
|
|
185
|
+
message: "intAbn must be a non-negative number",
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
if (typeof this._slaTarget !== "number" || this._slaTarget < 0) {
|
|
189
|
+
this.validationMessages.push({
|
|
190
|
+
type: "Error",
|
|
191
|
+
fieldDescription: "slaTarget",
|
|
192
|
+
message: "slaTarget must be a non-negative number",
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
if (typeof this._totalServiceLevel !== "number" || this._totalServiceLevel < 0) {
|
|
196
|
+
this.validationMessages.push({
|
|
197
|
+
type: "Error",
|
|
198
|
+
fieldDescription: "totalServiceLevel",
|
|
199
|
+
message: "totalServiceLevel must be a non-negative number",
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
if (typeof this._sumTalkTime !== "number" || this._sumTalkTime < 0) {
|
|
203
|
+
this.validationMessages.push({
|
|
204
|
+
type: "Error",
|
|
205
|
+
fieldDescription: "sumTalkTime",
|
|
206
|
+
message: "sumTalkTime must be a non-negative number",
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
if (typeof this._sumHoldTime !== "number" || this._sumHoldTime < 0) {
|
|
210
|
+
this.validationMessages.push({
|
|
211
|
+
type: "Error",
|
|
212
|
+
fieldDescription: "sumHoldTime",
|
|
213
|
+
message: "sumHoldTime must be a non-negative number",
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
if (typeof this._sumWaitTime !== "number" || this._sumWaitTime < 0) {
|
|
217
|
+
this.validationMessages.push({
|
|
218
|
+
type: "Error",
|
|
219
|
+
fieldDescription: "sumWaitTime",
|
|
220
|
+
message: "sumWaitTime must be a non-negative number",
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
if (typeof this._longestWaitTime !== "number" || this._longestWaitTime < 0) {
|
|
224
|
+
this.validationMessages.push({
|
|
225
|
+
type: "Error",
|
|
226
|
+
fieldDescription: "longestWaitTime",
|
|
227
|
+
message: "longestWaitTime must be a non-negative number",
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
if (typeof this._longestHoldTime !== "number" || this._longestHoldTime < 0) {
|
|
231
|
+
this.validationMessages.push({
|
|
232
|
+
type: "Error",
|
|
233
|
+
fieldDescription: "longestHoldTime",
|
|
234
|
+
message: "longestHoldTime must be a non-negative number",
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
if (typeof this._longestTalkTime !== "number" || this._longestTalkTime < 0) {
|
|
238
|
+
this.validationMessages.push({
|
|
239
|
+
type: "Error",
|
|
240
|
+
fieldDescription: "longestTalkTime",
|
|
241
|
+
message: "longestTalkTime must be a non-negative number",
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
if (typeof this._longestInboundACDIntereaction !== "number" || this._longestInboundACDIntereaction < 0) {
|
|
245
|
+
this.validationMessages.push({
|
|
246
|
+
type: "Error",
|
|
247
|
+
fieldDescription: "longestInboundACDIntereaction",
|
|
248
|
+
message: "longestInboundACDIntereaction must be a non-negative number",
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
if (typeof this._longestOutboundACDIntereaction !== "number" || this._longestOutboundACDIntereaction < 0) {
|
|
252
|
+
this.validationMessages.push({
|
|
253
|
+
type: "Error",
|
|
254
|
+
fieldDescription: "longestOutboundACDIntereaction",
|
|
255
|
+
message: "longestOutboundACDIntereaction must be a non-negative number",
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
return this.validationMessages;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
exports.QueueDetailsModel = QueueDetailsModel;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
type Department = "gather" | "say";
|
|
4
|
+
type Skills = "text" | "audio";
|
|
5
|
+
export declare class QueueModel extends BaseModel {
|
|
6
|
+
private _id;
|
|
7
|
+
private _name;
|
|
8
|
+
private _duration;
|
|
9
|
+
private _state;
|
|
10
|
+
private _queue;
|
|
11
|
+
private _user;
|
|
12
|
+
private _station;
|
|
13
|
+
private _from;
|
|
14
|
+
private _to;
|
|
15
|
+
private _interactionId;
|
|
16
|
+
constructor(id: string, name: string, duration: string, state: Department, queue: Skills, user: string, station: string | null, from: string | null, to: string | null, interactionId: string);
|
|
17
|
+
get id(): string;
|
|
18
|
+
set id(value: string);
|
|
19
|
+
get name(): string;
|
|
20
|
+
set name(value: string);
|
|
21
|
+
get duration(): string;
|
|
22
|
+
set duration(value: string);
|
|
23
|
+
get state(): Department;
|
|
24
|
+
set state(value: Department);
|
|
25
|
+
get queue(): Skills;
|
|
26
|
+
set queue(value: Skills);
|
|
27
|
+
get user(): string;
|
|
28
|
+
set user(value: string);
|
|
29
|
+
get station(): string | null;
|
|
30
|
+
set station(value: string | null);
|
|
31
|
+
get from(): string | null;
|
|
32
|
+
set from(value: string | null);
|
|
33
|
+
get to(): string | null;
|
|
34
|
+
set to(value: string | null);
|
|
35
|
+
get interactionId(): string;
|
|
36
|
+
set interactionId(value: string);
|
|
37
|
+
validateData(): validationMessage[];
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QueueModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
class QueueModel extends BaseModel_1.BaseModel {
|
|
6
|
+
constructor(id, name, duration, state, queue, user, station, from, to, interactionId) {
|
|
7
|
+
super();
|
|
8
|
+
this._id = id;
|
|
9
|
+
this._name = name;
|
|
10
|
+
this._duration = duration;
|
|
11
|
+
this._state = state;
|
|
12
|
+
this._queue = queue;
|
|
13
|
+
this._user = user;
|
|
14
|
+
this._station = station;
|
|
15
|
+
this._from = from;
|
|
16
|
+
this._to = to;
|
|
17
|
+
this._interactionId = interactionId;
|
|
18
|
+
}
|
|
19
|
+
// Getters and Setters
|
|
20
|
+
get id() {
|
|
21
|
+
return this._id;
|
|
22
|
+
}
|
|
23
|
+
set id(value) {
|
|
24
|
+
this._id = value;
|
|
25
|
+
}
|
|
26
|
+
get name() {
|
|
27
|
+
return this._name;
|
|
28
|
+
}
|
|
29
|
+
set name(value) {
|
|
30
|
+
this._name = value;
|
|
31
|
+
}
|
|
32
|
+
get duration() {
|
|
33
|
+
return this._duration;
|
|
34
|
+
}
|
|
35
|
+
set duration(value) {
|
|
36
|
+
this._duration = value;
|
|
37
|
+
}
|
|
38
|
+
get state() {
|
|
39
|
+
return this._state;
|
|
40
|
+
}
|
|
41
|
+
set state(value) {
|
|
42
|
+
this._state = value;
|
|
43
|
+
}
|
|
44
|
+
get queue() {
|
|
45
|
+
return this._queue;
|
|
46
|
+
}
|
|
47
|
+
set queue(value) {
|
|
48
|
+
this._queue = value;
|
|
49
|
+
}
|
|
50
|
+
get user() {
|
|
51
|
+
return this._user;
|
|
52
|
+
}
|
|
53
|
+
set user(value) {
|
|
54
|
+
this._user = value;
|
|
55
|
+
}
|
|
56
|
+
get station() {
|
|
57
|
+
return this._station;
|
|
58
|
+
}
|
|
59
|
+
set station(value) {
|
|
60
|
+
this._station = value;
|
|
61
|
+
}
|
|
62
|
+
get from() {
|
|
63
|
+
return this._from;
|
|
64
|
+
}
|
|
65
|
+
set from(value) {
|
|
66
|
+
this._from = value;
|
|
67
|
+
}
|
|
68
|
+
get to() {
|
|
69
|
+
return this._to;
|
|
70
|
+
}
|
|
71
|
+
set to(value) {
|
|
72
|
+
this._to = value;
|
|
73
|
+
}
|
|
74
|
+
get interactionId() {
|
|
75
|
+
return this._interactionId;
|
|
76
|
+
}
|
|
77
|
+
set interactionId(value) {
|
|
78
|
+
this._interactionId = value;
|
|
79
|
+
}
|
|
80
|
+
// Validation Method
|
|
81
|
+
validateData() {
|
|
82
|
+
this.validationMessages = [];
|
|
83
|
+
if (typeof this._id !== "string" || !this._id.trim()) {
|
|
84
|
+
this.validationMessages.push({
|
|
85
|
+
type: "Error",
|
|
86
|
+
fieldDescription: "id",
|
|
87
|
+
message: "ID must be a non-empty string",
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
if (typeof this._name !== "string" || !this._name.trim()) {
|
|
91
|
+
this.validationMessages.push({
|
|
92
|
+
type: "Error",
|
|
93
|
+
fieldDescription: "name",
|
|
94
|
+
message: "Name must be a non-empty string",
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
if (typeof this._duration !== "string" || !this._duration.trim()) {
|
|
98
|
+
this.validationMessages.push({
|
|
99
|
+
type: "Error",
|
|
100
|
+
fieldDescription: "duration",
|
|
101
|
+
message: "Duration must be a non-empty string",
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (!["Gather", "Say"].includes(this._state)) {
|
|
105
|
+
this.validationMessages.push({
|
|
106
|
+
type: "Error",
|
|
107
|
+
fieldDescription: "state",
|
|
108
|
+
message: "State must be either 'Gather' or 'Say'",
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
if (!["Text", "Audio"].includes(this._queue)) {
|
|
112
|
+
this.validationMessages.push({
|
|
113
|
+
type: "Error",
|
|
114
|
+
fieldDescription: "queue",
|
|
115
|
+
message: "Queue must be either 'Text' or 'Audio'",
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
if (typeof this._user !== "string" || !this._user.trim()) {
|
|
119
|
+
this.validationMessages.push({
|
|
120
|
+
type: "Error",
|
|
121
|
+
fieldDescription: "user",
|
|
122
|
+
message: "User must be a non-empty string",
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
if (this._station && typeof this._station !== "string") {
|
|
126
|
+
this.validationMessages.push({
|
|
127
|
+
type: "Error",
|
|
128
|
+
fieldDescription: "station",
|
|
129
|
+
message: "Station must be a string or null",
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
if (this._from && typeof this._from !== "string") {
|
|
133
|
+
this.validationMessages.push({
|
|
134
|
+
type: "Error",
|
|
135
|
+
fieldDescription: "from",
|
|
136
|
+
message: "From must be a string or null",
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
if (this._to && typeof this._to !== "string") {
|
|
140
|
+
this.validationMessages.push({
|
|
141
|
+
type: "Error",
|
|
142
|
+
fieldDescription: "to",
|
|
143
|
+
message: "To must be a string or null",
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
if (typeof this._interactionId !== "string" || !this._interactionId.trim()) {
|
|
147
|
+
this.validationMessages.push({
|
|
148
|
+
type: "Error",
|
|
149
|
+
fieldDescription: "interactionId",
|
|
150
|
+
message: "Interaction ID must be a non-empty string",
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
return this.validationMessages;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.QueueModel = QueueModel;
|