hgs-twilio-class-lib 1.1.53 → 1.1.55
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 -1
- package/lib/aws/abstract/ServiceOpenRequest.d.ts +7 -0
- package/lib/aws/abstract/ServiceOpenRequest.js +10 -1
- package/lib/aws/abstract/ServiceRequest.d.ts +3 -0
- package/lib/aws/abstract/ServiceRequest.js +7 -1
- package/lib/aws/abstract/ServiceResource.d.ts +20 -0
- package/lib/aws/abstract/ServiceResource.js +31 -1
- package/lib/aws/abstract/ServiceResourceFactory.d.ts +13 -0
- package/lib/aws/abstract/ServiceResourceFactory.js +14 -1
- package/lib/aws/abstract/ServiceTransaction.d.ts +6 -0
- package/lib/aws/abstract/ServiceTransaction.js +11 -1
- package/lib/aws/impl/AWSAPIConfig.d.ts +14 -0
- package/lib/aws/impl/AWSAPIConfig.js +38 -1
- package/lib/aws/impl/AWSClient.d.ts +5 -0
- package/lib/aws/impl/AWSClient.js +21 -1
- package/lib/aws/impl/AWSConnectAPIConfig.d.ts +17 -0
- package/lib/aws/impl/AWSConnectAPIConfig.js +38 -1
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.d.ts +18 -0
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.js +24 -1
- package/lib/aws/impl/DynamoDB/DynamoRequest.d.ts +16 -0
- package/lib/aws/impl/DynamoDB/DynamoRequest.js +21 -1
- package/lib/aws/impl/DynamoDB/DynamoResourse.d.ts +29 -0
- package/lib/aws/impl/DynamoDB/DynamoResourse.js +45 -1
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.d.ts +16 -0
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.js +63 -1
- package/lib/aws/impl/DynamoDB/DynamoTable.d.ts +26 -0
- package/lib/aws/impl/DynamoDB/DynamoTable.js +126 -1
- package/lib/aws/impl/DynamoDB/DynamoTransaction.d.ts +21 -0
- package/lib/aws/impl/DynamoDB/DynamoTransaction.js +37 -1
- package/lib/aws/impl/HoopServices/HoopService.d.ts +28 -0
- package/lib/aws/impl/HoopServices/HoopService.js +124 -1
- package/lib/aws/impl/HoopServices/HoopServiceFactory.d.ts +17 -0
- package/lib/aws/impl/HoopServices/HoopServiceFactory.js +53 -1
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.d.ts +18 -0
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.js +24 -1
- package/lib/aws/impl/HoopServices/HoopServiceResource.d.ts +29 -0
- package/lib/aws/impl/HoopServices/HoopServiceResource.js +46 -1
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.d.ts +22 -0
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.js +37 -1
- package/lib/aws/interface/IDirection.d.ts +2 -0
- package/lib/aws/interface/IDirection.js +2 -1
- package/lib/aws/interface/ILink.d.ts +2 -0
- package/lib/aws/interface/ILink.js +2 -1
- package/lib/aws/interface/IServiceDBOpenRequest.d.ts +3 -0
- package/lib/aws/interface/IServiceDBOpenRequest.js +2 -1
- package/lib/aws/interface/IServiceObjectStore.d.ts +3 -0
- package/lib/aws/interface/IServiceObjectStore.js +2 -1
- package/lib/aws/interface/IServiceObjectStoreParameters.d.ts +4 -0
- package/lib/aws/interface/IServiceObjectStoreParameters.js +2 -1
- package/lib/aws/interface/IServiceRequest.d.ts +3 -0
- package/lib/aws/interface/IServiceRequest.js +2 -1
- package/lib/aws/interface/IServiceResource.d.ts +7 -0
- package/lib/aws/interface/IServiceResource.js +2 -1
- package/lib/aws/interface/IServiceTransation.d.ts +3 -0
- package/lib/aws/interface/IServiceTransation.js +2 -1
- package/lib/aws/interface/ISubResourceUri.d.ts +2 -0
- package/lib/aws/interface/ISubResourceUri.js +2 -1
- package/lib/aws/interface/ISyncItemData.d.ts +0 -0
- package/lib/aws/interface/ISyncItemData.js +1 -1
- package/lib/aws/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/aws/interface/ISyncObjectStoreParameters.js +1 -1
- package/lib/aws/interface/ISyncTransactionOptions.d.ts +4 -0
- package/lib/aws/interface/ISyncTransactionOptions.js +2 -1
- package/lib/common/abstract/CommonError.d.ts +8 -0
- package/lib/common/abstract/CommonError.js +12 -1
- package/lib/common/abstract/Database.d.ts +44 -0
- package/lib/common/abstract/Database.js +58 -1
- package/lib/common/abstract/DatabaseClient.d.ts +11 -0
- package/lib/common/abstract/DatabaseClient.js +21 -1
- package/lib/common/abstract/DatabaseClientConfig.d.ts +5 -0
- package/lib/common/abstract/DatabaseClientConfig.js +9 -1
- package/lib/common/abstract/DatabaseFactory.d.ts +70 -0
- package/lib/common/abstract/DatabaseFactory.js +32 -1
- package/lib/common/abstract/DatabaseObjectStore.d.ts +29 -0
- package/lib/common/abstract/DatabaseObjectStore.js +13 -1
- package/lib/common/abstract/DatabaseOpenRequest.d.ts +24 -0
- package/lib/common/abstract/DatabaseOpenRequest.js +13 -1
- package/lib/common/abstract/DatabaseRequest.d.ts +21 -0
- package/lib/common/abstract/DatabaseRequest.js +14 -1
- package/lib/common/abstract/DatabaseTransaction.d.ts +22 -0
- package/lib/common/abstract/DatabaseTransaction.js +13 -1
- package/lib/common/abstract/Filter.d.ts +12 -0
- package/lib/common/abstract/Filter.js +30 -1
- package/lib/common/enum/ErrorTypes.d.ts +4 -0
- package/lib/common/enum/ErrorTypes.js +9 -1
- package/lib/common/enum/FilterTypes.d.ts +10 -0
- package/lib/common/enum/FilterTypes.js +14 -1
- package/lib/common/interface/IDatabaesInfo.d.ts +2 -0
- package/lib/common/interface/IDatabaesInfo.js +2 -1
- package/lib/common/interface/IDatabase.d.ts +4 -0
- package/lib/common/interface/IDatabase.js +2 -1
- package/lib/common/interface/IDatabaseClient.d.ts +5 -0
- package/lib/common/interface/IDatabaseClient.js +2 -1
- package/lib/common/interface/IDatabaseConfig.d.ts +8 -0
- package/lib/common/interface/IDatabaseConfig.js +10 -1
- package/lib/common/interface/IDatabaseDBOpenRequest.d.ts +2 -0
- package/lib/common/interface/IDatabaseDBOpenRequest.js +2 -1
- package/lib/common/interface/IDatabaseFactory.d.ts +21 -0
- package/lib/common/interface/IDatabaseFactory.js +2 -1
- package/lib/common/interface/IDatabaseObjectStore.d.ts +2 -0
- package/lib/common/interface/IDatabaseObjectStore.js +2 -1
- package/lib/common/interface/IDatabaseObjectStoreParameters.d.ts +2 -0
- package/lib/common/interface/IDatabaseObjectStoreParameters.js +2 -1
- package/lib/common/interface/IDatabaseRecord.d.ts +2 -0
- package/lib/common/interface/IDatabaseRecord.js +2 -1
- package/lib/common/interface/IDatabaseRequest.d.ts +2 -0
- package/lib/common/interface/IDatabaseRequest.js +2 -1
- package/lib/common/interface/IDatabaseTransaction.d.ts +2 -0
- package/lib/common/interface/IDatabaseTransaction.js +2 -1
- package/lib/common/interface/IDatabaseTransactionOptions.d.ts +2 -0
- package/lib/common/interface/IDatabaseTransactionOptions.js +2 -1
- package/lib/common/interface/IError.d.ts +5 -0
- package/lib/common/interface/IError.js +2 -1
- package/lib/common/interface/IErrorDetails.d.ts +6 -0
- package/lib/common/interface/IErrorDetails.js +2 -1
- package/lib/common/interface/IFilter.d.ts +25 -0
- package/lib/common/interface/IFilter.js +2 -1
- package/lib/common/type/DatabaseReadyType.d.ts +1 -0
- package/lib/common/type/DatabaseReadyType.js +2 -1
- package/lib/common/type/FilterInputType.d.ts +1 -0
- package/lib/common/type/FilterInputType.js +2 -1
- package/lib/common/type/SearchParameterType.d.ts +15 -0
- package/lib/common/type/SearchParameterType.js +3 -1
- package/lib/common/utils/dateFormat.d.ts +1 -0
- package/lib/common/utils/dateFormat.js +58 -1
- package/lib/common/utils/filter.d.ts +1 -0
- package/lib/common/utils/filter.js +99 -1
- package/lib/common/utils/newFilter.d.ts +1 -0
- package/lib/common/utils/newFilter.js +126 -1
- package/lib/common/utils/pagination.d.ts +1 -0
- package/lib/common/utils/pagination.js +9 -1
- package/lib/common/utils/search.d.ts +1 -0
- package/lib/common/utils/search.js +14 -1
- package/lib/common/utils/sort.d.ts +1 -0
- package/lib/common/utils/sort.js +13 -1
- package/lib/config/AWSConfig.d.ts +6 -0
- package/lib/config/AWSConfig.js +9 -1
- package/lib/config/DatabaseConfig.d.ts +33 -0
- package/lib/config/DatabaseConfig.js +36 -1
- package/lib/config/TwilioConfig.d.ts +4 -0
- package/lib/config/TwilioConfig.js +7 -1
- package/lib/controller/Common.d.ts +20 -0
- package/lib/controller/Common.js +57 -1
- package/lib/controller/DatabaseFactoryCollection.d.ts +6 -0
- package/lib/controller/DatabaseFactoryCollection.js +14 -1
- package/lib/controller/MainController.d.ts +6 -0
- package/lib/controller/MainController.js +174 -1
- package/lib/controller/aws/HoopBuisnessHours.d.ts +23 -0
- package/lib/controller/aws/HoopBuisnessHours.js +408 -1
- package/lib/controller/aws/HoopOperationsController.d.ts +9 -0
- package/lib/controller/aws/HoopOperationsController.js +86 -1
- package/lib/controller/aws/HoopOverrideBranchesController.d.ts +7 -0
- package/lib/controller/aws/HoopOverrideBranchesController.js +40 -1
- package/lib/controller/aws/HoopProfilesListController.d.ts +8 -0
- package/lib/controller/aws/HoopProfilesListController.js +61 -1
- package/lib/controller/aws/PlaybackScreenrecordings.d.ts +9 -0
- package/lib/controller/aws/PlaybackScreenrecordings.js +63 -1
- package/lib/controller/twilio/AgentActionsController.d.ts +54 -0
- package/lib/controller/twilio/AgentActionsController.js +177 -1
- package/lib/controller/twilio/AgentScorecardController.d.ts +53 -0
- package/lib/controller/twilio/AgentScorecardController.js +173 -1
- package/lib/controller/twilio/AuditLogController.d.ts +15 -0
- package/lib/controller/twilio/AuditLogController.js +137 -1
- package/lib/controller/twilio/CallLogsController.d.ts +12 -0
- package/lib/controller/twilio/CallLogsController.js +131 -1
- package/lib/controller/twilio/CallbackAndVoicemailController.d.ts +12 -0
- package/lib/controller/twilio/CallbackAndVoicemailController.js +114 -1
- package/lib/controller/twilio/ChannelSettingTaskInfoController.d.ts +11 -0
- package/lib/controller/twilio/ChannelSettingTaskInfoController.js +117 -1
- package/lib/controller/twilio/ChannelSettingsController.d.ts +16 -0
- package/lib/controller/twilio/ChannelSettingsController.js +142 -1
- package/lib/controller/twilio/CxConfigAssetController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigAssetController.js +128 -1
- package/lib/controller/twilio/CxConfigController.d.ts +18 -0
- package/lib/controller/twilio/CxConfigController.js +112 -1
- package/lib/controller/twilio/CxConfigExternalNumbersController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigExternalNumbersController.js +138 -1
- package/lib/controller/twilio/CxConfigOther.d.ts +16 -0
- package/lib/controller/twilio/CxConfigOther.js +128 -1
- package/lib/controller/twilio/CxConfigQueueMenuController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigQueueMenuController.js +129 -1
- package/lib/controller/twilio/CxConfigUIconfigController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigUIconfigController.js +132 -1
- package/lib/controller/twilio/GPMController.d.ts +12 -0
- package/lib/controller/twilio/GPMController.js +151 -1
- package/lib/controller/twilio/HoopBusinessHoursController.d.ts +18 -0
- package/lib/controller/twilio/HoopBusinessHoursController.js +285 -1
- package/lib/controller/twilio/HoopHolidaysController.d.ts +14 -0
- package/lib/controller/twilio/HoopHolidaysController.js +150 -1
- package/lib/controller/twilio/HoopMainController.d.ts +13 -0
- package/lib/controller/twilio/HoopMainController.js +297 -1
- package/lib/controller/twilio/HoopNotesController.d.ts +14 -0
- package/lib/controller/twilio/HoopNotesController.js +149 -1
- package/lib/controller/twilio/HoopOperationsController.d.ts +14 -0
- package/lib/controller/twilio/HoopOperationsController.js +138 -1
- package/lib/controller/twilio/HoopOverrideBranchesController.d.ts +14 -0
- package/lib/controller/twilio/HoopOverrideBranchesController.js +137 -1
- package/lib/controller/twilio/HoopPartialDaysController.d.ts +14 -0
- package/lib/controller/twilio/HoopPartialDaysController.js +150 -1
- package/lib/controller/twilio/HoopProfilesListController.d.ts +14 -0
- package/lib/controller/twilio/HoopProfilesListController.js +147 -1
- package/lib/controller/twilio/NavigationController.d.ts +13 -0
- package/lib/controller/twilio/NavigationController.js +170 -1
- package/lib/controller/twilio/QualityFormsController.d.ts +12 -0
- package/lib/controller/twilio/QualityFormsController.js +129 -1
- package/lib/controller/twilio/QuickLinkController.d.ts +11 -0
- package/lib/controller/twilio/QuickLinkController.js +122 -1
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.d.ts +14 -0
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.js +126 -1
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.d.ts +53 -0
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.js +160 -1
- package/lib/controller/twilio/TaskInfoPanelController.d.ts +15 -0
- package/lib/controller/twilio/TaskInfoPanelController.js +134 -1
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.js +52 -1
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.js +89 -1
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.js +81 -1
- package/lib/controller/twilio/filterImpl/CallLogsFilter.d.ts +20 -0
- package/lib/controller/twilio/filterImpl/CallLogsFilter.js +101 -1
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.js +59 -1
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.js +67 -1
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.js +52 -1
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.d.ts +17 -0
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.js +78 -1
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.js +51 -1
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.js +55 -1
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.js +51 -1
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js +55 -1
- package/lib/controller/twilio/filterImpl/MainFilterService.d.ts +4 -0
- package/lib/controller/twilio/filterImpl/MainFilterService.js +108 -1
- package/lib/controller/twilio/filterImpl/NavigationFilter.d.ts +20 -0
- package/lib/controller/twilio/filterImpl/NavigationFilter.js +90 -1
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.js +53 -1
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.js +62 -1
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.js +52 -1
- package/lib/express/ApiResponse.d.ts +15 -0
- package/lib/express/ApiResponse.js +11 -1
- package/lib/express/RequestValidator.d.ts +50 -0
- package/lib/express/RequestValidator.js +77 -1
- package/lib/express/RequireParamsPicker.d.ts +7 -0
- package/lib/express/RequireParamsPicker.js +14 -1
- package/lib/express/ValidateRequireParameters.d.ts +3 -0
- package/lib/express/ValidateRequireParameters.js +39 -1
- package/lib/index.d.ts +39 -0
- package/lib/index.js +100 -1
- package/lib/models/BatchUpdateSkills.model.d.ts +0 -0
- package/lib/models/BatchUpdateSkills.model.js +11 -1
- package/lib/models/CannedMessage.model.d.ts +4 -0
- package/lib/models/CannedMessage.model.js +1 -1
- package/lib/models/ChannelSettingsTaskInfo.model.d.ts +87 -0
- package/lib/models/ChannelSettingsTaskInfo.model.js +1 -1
- package/lib/models/CustomerFeedback.model.d.ts +9 -0
- package/lib/models/CustomerFeedback.model.js +1 -1
- package/lib/models/Filter.model.d.ts +15 -0
- package/lib/models/Filter.model.js +2 -1
- package/lib/models/Hoop.model.d.ts +9 -0
- package/lib/models/Hoop.model.js +9 -1
- package/lib/models/Navigation.model.d.ts +28 -0
- package/lib/models/Navigation.model.js +8 -1
- package/lib/models/Roles.Model.d.ts +8 -0
- package/lib/models/Roles.Model.js +1 -1
- package/lib/models/abstract/BaseModel.d.ts +17 -0
- package/lib/models/abstract/BaseModel.js +40 -1
- package/lib/models/impl/AgentActionsLogsModel.d.ts +27 -0
- package/lib/models/impl/AgentActionsLogsModel.js +89 -1
- package/lib/models/impl/AgentActionsModel.d.ts +19 -0
- package/lib/models/impl/AgentActionsModel.js +60 -1
- package/lib/models/impl/AgentScorecardModel.d.ts +66 -0
- package/lib/models/impl/AgentScorecardModel.js +282 -1
- package/lib/models/impl/AuditLogsModel.d.ts +31 -0
- package/lib/models/impl/AuditLogsModel.js +146 -1
- package/lib/models/impl/CallLogsModel.d.ts +37 -0
- package/lib/models/impl/CallLogsModel.js +109 -1
- package/lib/models/impl/CallStatisticsModel.d.ts +16 -0
- package/lib/models/impl/CallStatisticsModel.js +52 -1
- package/lib/models/impl/CategoryDetailsModel.d.ts +17 -0
- package/lib/models/impl/CategoryDetailsModel.js +44 -1
- package/lib/models/impl/MemberModel.d.ts +42 -0
- package/lib/models/impl/MemberModel.js +170 -1
- package/lib/models/impl/ModelValidationError.d.ts +6 -0
- package/lib/models/impl/ModelValidationError.js +15 -1
- package/lib/models/impl/NavigationModel.d.ts +39 -0
- package/lib/models/impl/NavigationModel.js +126 -1
- package/lib/models/impl/PerformanceStatisticsModel.d.ts +41 -0
- package/lib/models/impl/PerformanceStatisticsModel.js +129 -1
- package/lib/models/impl/PlaybackScreenrecordings.d.ts +39 -0
- package/lib/models/impl/PlaybackScreenrecordings.js +133 -1
- package/lib/models/impl/ProfileModel.d.ts +23 -0
- package/lib/models/impl/ProfileModel.js +102 -1
- package/lib/models/impl/QualityFormsModel.d.ts +39 -0
- package/lib/models/impl/QualityFormsModel.js +150 -1
- package/lib/models/impl/QuestionDetailsModel.d.ts +39 -0
- package/lib/models/impl/QuestionDetailsModel.js +173 -1
- package/lib/models/impl/QueueDetailsModel.d.ts +63 -0
- package/lib/models/impl/QueueDetailsModel.js +261 -1
- package/lib/models/impl/QueueModel.d.ts +39 -0
- package/lib/models/impl/QueueModel.js +156 -1
- package/lib/models/impl/QuickLinkModel.d.ts +24 -0
- package/lib/models/impl/QuickLinkModel.js +122 -1
- package/lib/models/impl/StatisticsNumberDetailsModel.d.ts +18 -0
- package/lib/models/impl/StatisticsNumberDetailsModel.js +72 -1
- package/lib/models/impl/StatisticsTimeDetailsModel.d.ts +18 -0
- package/lib/models/impl/StatisticsTimeDetailsModel.js +72 -1
- package/lib/models/impl/TaskAttributesModel.d.ts +31 -0
- package/lib/models/impl/TaskAttributesModel.js +108 -1
- package/lib/models/impl/TaskChannelModel.d.ts +15 -0
- package/lib/models/impl/TaskChannelModel.js +69 -1
- package/lib/models/impl/TaskComplete.d.ts +0 -0
- package/lib/models/impl/TaskComplete.js +1 -1
- package/lib/models/impl/TaskInfoPanelModel.d.ts +16 -0
- package/lib/models/impl/TaskInfoPanelModel.js +69 -1
- package/lib/models/impl/TaskModel.d.ts +59 -0
- package/lib/models/impl/TaskModel.js +234 -1
- package/lib/models/impl/WorkGroupDetailsModel.d.ts +63 -0
- package/lib/models/impl/WorkGroupDetailsModel.js +281 -1
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.d.ts +33 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.js +140 -1
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.d.ts +8 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.js +12 -1
- package/lib/models/impl/callbackandvoicemail/CallbackModel.d.ts +19 -0
- package/lib/models/impl/callbackandvoicemail/CallbackModel.js +82 -1
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.d.ts +25 -0
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.js +108 -1
- package/lib/models/impl/channelsettings/ChannelSettingModel.d.ts +68 -0
- package/lib/models/impl/channelsettings/ChannelSettingModel.js +240 -1
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.d.ts +31 -0
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.js +106 -1
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.d.ts +25 -0
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.js +80 -1
- package/lib/models/impl/channelsettings/TaskInfoModel.d.ts +13 -0
- package/lib/models/impl/channelsettings/TaskInfoModel.js +52 -1
- package/lib/models/impl/cxconfig/CxConfigNamespace.d.ts +16 -0
- package/lib/models/impl/cxconfig/CxConfigNamespace.js +20 -1
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.d.ts +27 -0
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.js +173 -1
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.d.ts +24 -0
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.js +103 -1
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.d.ts +24 -0
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.js +149 -1
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.d.ts +27 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.js +179 -1
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.d.ts +40 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.js +213 -1
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.d.ts +27 -0
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.js +159 -1
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.d.ts +40 -0
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.js +128 -1
- package/lib/models/impl/hoop/HoopBusinessHoursModel.d.ts +39 -0
- package/lib/models/impl/hoop/HoopBusinessHoursModel.js +122 -1
- package/lib/models/impl/hoop/HoopDescriptionModel.d.ts +16 -0
- package/lib/models/impl/hoop/HoopDescriptionModel.js +64 -1
- package/lib/models/impl/hoop/HoopHolidaysImplModel.d.ts +25 -0
- package/lib/models/impl/hoop/HoopHolidaysImplModel.js +118 -1
- package/lib/models/impl/hoop/HoopNotesImplModel.d.ts +25 -0
- package/lib/models/impl/hoop/HoopNotesImplModel.js +117 -1
- package/lib/models/impl/hoop/HoopOperationsImplModel.d.ts +28 -0
- package/lib/models/impl/hoop/HoopOperationsImplModel.js +161 -1
- package/lib/models/impl/hoop/HoopOverrideImplModel.d.ts +22 -0
- package/lib/models/impl/hoop/HoopOverrideImplModel.js +143 -1
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.d.ts +31 -0
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.js +140 -1
- package/lib/models/impl/hoop/HoopProfilesListImplModel.d.ts +22 -0
- package/lib/models/impl/hoop/HoopProfilesListImplModel.js +104 -1
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.d.ts +22 -0
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.js +86 -1
- package/lib/models/index.d.ts +25 -0
- package/lib/models/index.js +53 -1
- package/lib/models/interface/IBaseModel.d.ts +11 -0
- package/lib/models/interface/IBaseModel.js +2 -1
- package/lib/models/types/AgentScorecard.type.d.ts +6 -0
- package/lib/models/types/AgentScorecard.type.js +7 -1
- package/lib/models/types/AuditLog.type.d.ts +13 -0
- package/lib/models/types/AuditLog.type.js +10 -1
- package/lib/models/types/CallLog.type.d.ts +16 -0
- package/lib/models/types/CallLog.type.js +10 -1
- package/lib/models/types/ChannelSetting.type.d.ts +7 -0
- package/lib/models/types/ChannelSetting.type.js +11 -1
- package/lib/models/types/CxConfig.type.d.ts +72 -0
- package/lib/models/types/CxConfig.type.js +43 -1
- package/lib/models/types/Hoop.type.d.ts +9 -0
- package/lib/models/types/Hoop.type.js +13 -1
- package/lib/models/types/Navigation.type.d.ts +11 -0
- package/lib/models/types/Navigation.type.js +8 -1
- package/lib/models/types/Profile.type.d.ts +1 -0
- package/lib/models/types/Profile.type.js +2 -1
- package/lib/models/types/QueueDetails.type.d.ts +6 -0
- package/lib/models/types/QueueDetails.type.js +7 -1
- package/lib/models/types/TaskComplete.type.d.ts +7 -0
- package/lib/models/types/TaskComplete.type.js +6 -1
- package/lib/models/types/TaskInfoPanel.type.d.ts +6 -0
- package/lib/models/types/TaskInfoPanel.type.js +7 -1
- package/lib/server.d.ts +1 -0
- package/lib/server.js +39 -1
- package/lib/twilio/abstract/ServiceObjectStore.d.ts +6 -0
- package/lib/twilio/abstract/ServiceObjectStore.js +10 -1
- package/lib/twilio/abstract/ServiceOpenRequest.d.ts +7 -0
- package/lib/twilio/abstract/ServiceOpenRequest.js +10 -1
- package/lib/twilio/abstract/ServiceRequest.d.ts +3 -0
- package/lib/twilio/abstract/ServiceRequest.js +7 -1
- package/lib/twilio/abstract/ServiceResource.d.ts +23 -0
- package/lib/twilio/abstract/ServiceResource.js +37 -1
- package/lib/twilio/abstract/ServiceResourceFactory.d.ts +15 -0
- package/lib/twilio/abstract/ServiceResourceFactory.js +18 -1
- package/lib/twilio/abstract/ServiceTransaction.d.ts +6 -0
- package/lib/twilio/abstract/ServiceTransaction.js +11 -1
- package/lib/twilio/abstract/SyncServiceItemResource.d.ts +31 -0
- package/lib/twilio/abstract/SyncServiceItemResource.js +60 -1
- package/lib/twilio/abstract/TwilioClientConfig.d.ts +0 -0
- package/lib/twilio/abstract/TwilioClientConfig.js +1 -1
- package/lib/twilio/impl/TwilioAPIKeyConfig.d.ts +14 -0
- package/lib/twilio/impl/TwilioAPIKeyConfig.js +31 -1
- package/lib/twilio/impl/TwilioAuthTokenConfig.d.ts +11 -0
- package/lib/twilio/impl/TwilioAuthTokenConfig.js +24 -1
- package/lib/twilio/impl/TwilioClient.d.ts +6 -0
- package/lib/twilio/impl/TwilioClient.js +21 -1
- package/lib/twilio/impl/message/messageService.d.ts +0 -0
- package/lib/twilio/impl/message/messageService.js +42 -1
- package/lib/twilio/impl/sync/SyncDocument.d.ts +24 -0
- package/lib/twilio/impl/sync/SyncDocument.js +52 -1
- package/lib/twilio/impl/sync/SyncDocumentTransaction.d.ts +20 -0
- package/lib/twilio/impl/sync/SyncDocumentTransaction.js +31 -1
- package/lib/twilio/impl/sync/SyncList.d.ts +24 -0
- package/lib/twilio/impl/sync/SyncList.js +52 -1
- package/lib/twilio/impl/sync/SyncListItem.d.ts +5 -0
- package/lib/twilio/impl/sync/SyncListItem.js +22 -1
- package/lib/twilio/impl/sync/SyncListTransaction.d.ts +20 -0
- package/lib/twilio/impl/sync/SyncListTransaction.js +31 -1
- package/lib/twilio/impl/sync/SyncMap.d.ts +25 -0
- package/lib/twilio/impl/sync/SyncMap.js +139 -1
- package/lib/twilio/impl/sync/SyncMapItem.d.ts +5 -0
- package/lib/twilio/impl/sync/SyncMapItem.js +7 -1
- package/lib/twilio/impl/sync/SyncMapTransaction.d.ts +22 -0
- package/lib/twilio/impl/sync/SyncMapTransaction.js +38 -1
- package/lib/twilio/impl/sync/SyncOpenRequest.d.ts +18 -0
- package/lib/twilio/impl/sync/SyncOpenRequest.js +24 -1
- package/lib/twilio/impl/sync/SyncRequest.d.ts +16 -0
- package/lib/twilio/impl/sync/SyncRequest.js +21 -1
- package/lib/twilio/impl/sync/SyncResource.d.ts +50 -0
- package/lib/twilio/impl/sync/SyncResource.js +97 -1
- package/lib/twilio/impl/sync/SyncServiceFactory.d.ts +22 -0
- package/lib/twilio/impl/sync/SyncServiceFactory.js +117 -1
- package/lib/twilio/interface/IDirection.d.ts +2 -0
- package/lib/twilio/interface/IDirection.js +2 -1
- package/lib/twilio/interface/ILink.d.ts +2 -0
- package/lib/twilio/interface/ILink.js +2 -1
- package/lib/twilio/interface/IServiceDBOpenRequest.d.ts +3 -0
- package/lib/twilio/interface/IServiceDBOpenRequest.js +2 -1
- package/lib/twilio/interface/IServiceObjectStore.d.ts +3 -0
- package/lib/twilio/interface/IServiceObjectStore.js +2 -1
- package/lib/twilio/interface/IServiceObjectStoreParameters.d.ts +4 -0
- package/lib/twilio/interface/IServiceObjectStoreParameters.js +2 -1
- package/lib/twilio/interface/IServiceRequest.d.ts +3 -0
- package/lib/twilio/interface/IServiceRequest.js +2 -1
- package/lib/twilio/interface/IServiceResource.d.ts +8 -0
- package/lib/twilio/interface/IServiceResource.js +2 -1
- package/lib/twilio/interface/IServiceTransation.d.ts +3 -0
- package/lib/twilio/interface/IServiceTransation.js +2 -1
- package/lib/twilio/interface/ISubResourceUri.d.ts +2 -0
- package/lib/twilio/interface/ISubResourceUri.js +2 -1
- package/lib/twilio/interface/ISyncItemData.d.ts +0 -0
- package/lib/twilio/interface/ISyncItemData.js +1 -1
- package/lib/twilio/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/twilio/interface/ISyncObjectStoreParameters.js +1 -1
- package/lib/twilio/interface/ISyncTransactionOptions.d.ts +4 -0
- package/lib/twilio/interface/ISyncTransactionOptions.js +2 -1
- package/package.json +9 -5
- package/lib/models/abstract/BaseModelOld.js +0 -1
|
@@ -1 +1,146 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuditLogModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
const uuid_1 = require("uuid");
|
|
6
|
+
class AuditLogModel extends BaseModel_1.BaseModel {
|
|
7
|
+
constructor(id, workerSid, fieldName, category, date, oldValue, newValue, action) {
|
|
8
|
+
super();
|
|
9
|
+
// Initialize private attributes
|
|
10
|
+
this._id = id;
|
|
11
|
+
this._workerSid = workerSid;
|
|
12
|
+
this._fieldName = fieldName;
|
|
13
|
+
this._category = category;
|
|
14
|
+
this._date = date;
|
|
15
|
+
this._oldValue = oldValue;
|
|
16
|
+
this._newValue = newValue;
|
|
17
|
+
this._action = action;
|
|
18
|
+
this.validateData();
|
|
19
|
+
}
|
|
20
|
+
// Getters
|
|
21
|
+
get id() {
|
|
22
|
+
return this._id;
|
|
23
|
+
}
|
|
24
|
+
get workerSid() {
|
|
25
|
+
return this._workerSid;
|
|
26
|
+
}
|
|
27
|
+
get fieldName() {
|
|
28
|
+
return this._fieldName;
|
|
29
|
+
}
|
|
30
|
+
get category() {
|
|
31
|
+
return this._category;
|
|
32
|
+
}
|
|
33
|
+
get date() {
|
|
34
|
+
return this._date;
|
|
35
|
+
}
|
|
36
|
+
get oldValue() {
|
|
37
|
+
return this._oldValue;
|
|
38
|
+
}
|
|
39
|
+
get newValue() {
|
|
40
|
+
return this._newValue;
|
|
41
|
+
}
|
|
42
|
+
get action() {
|
|
43
|
+
return this._action;
|
|
44
|
+
}
|
|
45
|
+
// Setters
|
|
46
|
+
set id(value) {
|
|
47
|
+
if (!(0, uuid_1.validate)(value)) {
|
|
48
|
+
throw new Error("Invalid ID format.");
|
|
49
|
+
}
|
|
50
|
+
this._id = value;
|
|
51
|
+
}
|
|
52
|
+
set workerSid(value) {
|
|
53
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
54
|
+
throw new Error("workerSid must be a non-empty string.");
|
|
55
|
+
}
|
|
56
|
+
this._workerSid = value;
|
|
57
|
+
}
|
|
58
|
+
set fieldName(value) {
|
|
59
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
60
|
+
throw new Error("fieldName must be a non-empty string.");
|
|
61
|
+
}
|
|
62
|
+
this._fieldName = value;
|
|
63
|
+
}
|
|
64
|
+
set category(value) {
|
|
65
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
66
|
+
throw new Error("category must be a non-empty string.");
|
|
67
|
+
}
|
|
68
|
+
this._category = value;
|
|
69
|
+
}
|
|
70
|
+
set date(value) {
|
|
71
|
+
if (!(value instanceof Date) || isNaN(value.getTime())) {
|
|
72
|
+
throw new Error("Invalid date value.");
|
|
73
|
+
}
|
|
74
|
+
this._date = value;
|
|
75
|
+
}
|
|
76
|
+
set oldValue(value) {
|
|
77
|
+
if (typeof value !== "string" && value !== null) {
|
|
78
|
+
throw new Error("oldValue must be a string or null.");
|
|
79
|
+
}
|
|
80
|
+
this._oldValue = value;
|
|
81
|
+
}
|
|
82
|
+
set newValue(value) {
|
|
83
|
+
if (typeof value !== "string" && value !== "") {
|
|
84
|
+
throw new Error("newValue must be a string or null.");
|
|
85
|
+
}
|
|
86
|
+
this._newValue = value;
|
|
87
|
+
}
|
|
88
|
+
set action(value) {
|
|
89
|
+
if (!["create", "edit", "delete"].includes(value)) {
|
|
90
|
+
throw new Error("Invalid action value.");
|
|
91
|
+
}
|
|
92
|
+
this._action = value;
|
|
93
|
+
}
|
|
94
|
+
// Validation logic
|
|
95
|
+
validateData() {
|
|
96
|
+
this.validationMessages = [];
|
|
97
|
+
const validationRules = {
|
|
98
|
+
id: (value) => typeof value === "string" && (0, uuid_1.validate)(value),
|
|
99
|
+
workerSid: (value) => typeof value === "string" && value.trim() !== "",
|
|
100
|
+
fieldName: (value) => typeof value === "string" && value.trim() !== "",
|
|
101
|
+
category: (value) => typeof value === "string" && value.trim() !== "",
|
|
102
|
+
date: (value) => value instanceof Date && !isNaN(value.getTime()),
|
|
103
|
+
oldValue: (value) => typeof value === "string" || value === null,
|
|
104
|
+
newValue: (value) => typeof value === "string" || value === null,
|
|
105
|
+
action: (value) => ["create", "edit", "delete"].includes(value),
|
|
106
|
+
};
|
|
107
|
+
for (const key in validationRules) {
|
|
108
|
+
const validator = validationRules[key];
|
|
109
|
+
const value = this[key];
|
|
110
|
+
if (!validator(value)) {
|
|
111
|
+
this.setValidationMessages({
|
|
112
|
+
type: "Error",
|
|
113
|
+
fieldDescription: key,
|
|
114
|
+
message: `${key} is invalid.`,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return this.validationMessages;
|
|
119
|
+
}
|
|
120
|
+
setValidationMessages(message) {
|
|
121
|
+
this.validationMessages.push(message);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.AuditLogModel = AuditLogModel;
|
|
125
|
+
// var auditLog = new AuditLogModel("b84f9268-3c34-4e33-a4d9-c8f3154",
|
|
126
|
+
// "",
|
|
127
|
+
// "",
|
|
128
|
+
// "status",
|
|
129
|
+
// new Date(),
|
|
130
|
+
// "",
|
|
131
|
+
// "closed",
|
|
132
|
+
// "edit"
|
|
133
|
+
// );
|
|
134
|
+
// console.log(auditLog.validationMessages);
|
|
135
|
+
// console.log(auditLog.serialize);
|
|
136
|
+
// auditLog.deserialize({
|
|
137
|
+
// id: 'b84f9268-3c34-4e33-a4d9-c8f3154',
|
|
138
|
+
// workerSid: '',
|
|
139
|
+
// fieldName: '',
|
|
140
|
+
// category: 'status',
|
|
141
|
+
// date: "2025-01-03T18:22:30.135Z",
|
|
142
|
+
// oldValue: '',
|
|
143
|
+
// newValue: 'closed',
|
|
144
|
+
// action: 'edit'
|
|
145
|
+
// })
|
|
146
|
+
// console.log(auditLog);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
import { hangUpType } from "../types/CallLog.type";
|
|
4
|
+
export declare class CallLogsModel extends BaseModel {
|
|
5
|
+
private _id;
|
|
6
|
+
private _uniqueName;
|
|
7
|
+
private _disposition;
|
|
8
|
+
private _fromNumber;
|
|
9
|
+
private _toNumber;
|
|
10
|
+
private _start;
|
|
11
|
+
private _end;
|
|
12
|
+
private _duration;
|
|
13
|
+
private _hangUpDirection;
|
|
14
|
+
private _callSid;
|
|
15
|
+
constructor(id: string, uniqueName: string, disposition: string | null, fromNumber: string | null, toNumber: string | null, start: Date | undefined, end: Date | undefined, duration: number, hangUpDirection: hangUpType, callSid: string | null);
|
|
16
|
+
get id(): string;
|
|
17
|
+
set id(value: string);
|
|
18
|
+
get uniqueName(): string;
|
|
19
|
+
set uniqueName(value: string);
|
|
20
|
+
get disposition(): string | null;
|
|
21
|
+
set disposition(value: string | null);
|
|
22
|
+
get fromNumber(): string | null;
|
|
23
|
+
set fromNumber(value: string | null);
|
|
24
|
+
get toNumber(): string | null;
|
|
25
|
+
set toNumber(value: string | null);
|
|
26
|
+
get start(): Date | undefined;
|
|
27
|
+
set start(value: Date | undefined);
|
|
28
|
+
get end(): Date | undefined;
|
|
29
|
+
set end(value: Date | undefined);
|
|
30
|
+
get duration(): number;
|
|
31
|
+
set duration(value: number);
|
|
32
|
+
get hangUpDirection(): hangUpType;
|
|
33
|
+
set hangUpDirection(value: hangUpType);
|
|
34
|
+
get callSid(): string | null;
|
|
35
|
+
set callSid(value: string | null);
|
|
36
|
+
validateData(): validationMessage[];
|
|
37
|
+
}
|
|
@@ -1 +1,109 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallLogsModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
const uuid_1 = require("uuid");
|
|
6
|
+
class CallLogsModel extends BaseModel_1.BaseModel {
|
|
7
|
+
constructor(id, uniqueName, disposition, fromNumber, toNumber, start, end, duration, hangUpDirection, callSid) {
|
|
8
|
+
super();
|
|
9
|
+
this._id = id;
|
|
10
|
+
this._uniqueName = uniqueName;
|
|
11
|
+
this._disposition = disposition;
|
|
12
|
+
this._fromNumber = fromNumber;
|
|
13
|
+
this._toNumber = toNumber;
|
|
14
|
+
this._start = start;
|
|
15
|
+
this._end = end;
|
|
16
|
+
this._duration = duration;
|
|
17
|
+
this._hangUpDirection = hangUpDirection;
|
|
18
|
+
this._callSid = callSid;
|
|
19
|
+
}
|
|
20
|
+
// Getters and Setters
|
|
21
|
+
get id() {
|
|
22
|
+
return this._id;
|
|
23
|
+
}
|
|
24
|
+
set id(value) {
|
|
25
|
+
this._id = value;
|
|
26
|
+
}
|
|
27
|
+
get uniqueName() {
|
|
28
|
+
return this._uniqueName;
|
|
29
|
+
}
|
|
30
|
+
set uniqueName(value) {
|
|
31
|
+
this._uniqueName = value;
|
|
32
|
+
}
|
|
33
|
+
get disposition() {
|
|
34
|
+
return this._disposition;
|
|
35
|
+
}
|
|
36
|
+
set disposition(value) {
|
|
37
|
+
this._disposition = value;
|
|
38
|
+
}
|
|
39
|
+
get fromNumber() {
|
|
40
|
+
return this._fromNumber;
|
|
41
|
+
}
|
|
42
|
+
set fromNumber(value) {
|
|
43
|
+
this._fromNumber = value;
|
|
44
|
+
}
|
|
45
|
+
get toNumber() {
|
|
46
|
+
return this._toNumber;
|
|
47
|
+
}
|
|
48
|
+
set toNumber(value) {
|
|
49
|
+
this._toNumber = value;
|
|
50
|
+
}
|
|
51
|
+
get start() {
|
|
52
|
+
return this._start;
|
|
53
|
+
}
|
|
54
|
+
set start(value) {
|
|
55
|
+
this._start = value;
|
|
56
|
+
}
|
|
57
|
+
get end() {
|
|
58
|
+
return this._end;
|
|
59
|
+
}
|
|
60
|
+
set end(value) {
|
|
61
|
+
this._end = value;
|
|
62
|
+
}
|
|
63
|
+
get duration() {
|
|
64
|
+
return this._duration;
|
|
65
|
+
}
|
|
66
|
+
set duration(value) {
|
|
67
|
+
this._duration = value;
|
|
68
|
+
}
|
|
69
|
+
get hangUpDirection() {
|
|
70
|
+
return this._hangUpDirection;
|
|
71
|
+
}
|
|
72
|
+
set hangUpDirection(value) {
|
|
73
|
+
this._hangUpDirection = value;
|
|
74
|
+
}
|
|
75
|
+
get callSid() {
|
|
76
|
+
return this._callSid;
|
|
77
|
+
}
|
|
78
|
+
set callSid(value) {
|
|
79
|
+
this._callSid = value;
|
|
80
|
+
}
|
|
81
|
+
// Validation logic
|
|
82
|
+
validateData() {
|
|
83
|
+
this.validationMessages = [];
|
|
84
|
+
const validationRules = {
|
|
85
|
+
id: (value) => typeof value === "string" && (0, uuid_1.validate)(value),
|
|
86
|
+
disposition: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
87
|
+
fromNumber: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
88
|
+
toNumber: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
89
|
+
start: (value) => !isNaN(new Date(value).getTime()),
|
|
90
|
+
end: (value) => !isNaN(new Date(value).getTime()),
|
|
91
|
+
duration: (value) => typeof value === "number" && value >= 0,
|
|
92
|
+
hangUpDirection: (value) => typeof value === "string" && value.trim() !== "",
|
|
93
|
+
callSid: (value) => value === null || (typeof value === "string" && value.trim() !== "")
|
|
94
|
+
};
|
|
95
|
+
for (const key in validationRules) {
|
|
96
|
+
const validator = validationRules[key];
|
|
97
|
+
const value = this[`_${key}`];
|
|
98
|
+
if (!validator(value)) {
|
|
99
|
+
this.validationMessages.push({
|
|
100
|
+
type: 'Error',
|
|
101
|
+
fieldDescription: key,
|
|
102
|
+
message: `${key} is not valid`,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return this.validationMessages;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.CallLogsModel = CallLogsModel;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
import { StatisticsNumberDetailsModel } from "./StatisticsNumberDetailsModel";
|
|
4
|
+
export declare class CallStatisticsModel extends BaseModel {
|
|
5
|
+
private _interactionsReceived;
|
|
6
|
+
private _interactionsAnswered;
|
|
7
|
+
private _interactionsAbandoned;
|
|
8
|
+
constructor(interactionsReceived: StatisticsNumberDetailsModel, interactionsAnswered: StatisticsNumberDetailsModel, interactionsAbandoned: StatisticsNumberDetailsModel);
|
|
9
|
+
get interactionsReceived(): StatisticsNumberDetailsModel;
|
|
10
|
+
set interactionsReceived(value: StatisticsNumberDetailsModel);
|
|
11
|
+
get interactionsAnswered(): StatisticsNumberDetailsModel;
|
|
12
|
+
set interactionsAnswered(value: StatisticsNumberDetailsModel);
|
|
13
|
+
get interactionsAbandoned(): StatisticsNumberDetailsModel;
|
|
14
|
+
set interactionsAbandoned(value: StatisticsNumberDetailsModel);
|
|
15
|
+
validateData(): validationMessage[];
|
|
16
|
+
}
|
|
@@ -1 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallStatisticsModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
const StatisticsNumberDetailsModel_1 = require("./StatisticsNumberDetailsModel");
|
|
6
|
+
class CallStatisticsModel extends BaseModel_1.BaseModel {
|
|
7
|
+
constructor(interactionsReceived, interactionsAnswered, interactionsAbandoned) {
|
|
8
|
+
super();
|
|
9
|
+
this._interactionsReceived = interactionsReceived;
|
|
10
|
+
this._interactionsAnswered = interactionsAnswered;
|
|
11
|
+
this._interactionsAbandoned = interactionsAbandoned;
|
|
12
|
+
}
|
|
13
|
+
// Getters and Setters
|
|
14
|
+
get interactionsReceived() {
|
|
15
|
+
return this._interactionsReceived;
|
|
16
|
+
}
|
|
17
|
+
set interactionsReceived(value) {
|
|
18
|
+
this._interactionsReceived = value;
|
|
19
|
+
}
|
|
20
|
+
get interactionsAnswered() {
|
|
21
|
+
return this._interactionsAnswered;
|
|
22
|
+
}
|
|
23
|
+
set interactionsAnswered(value) {
|
|
24
|
+
this._interactionsAnswered = value;
|
|
25
|
+
}
|
|
26
|
+
get interactionsAbandoned() {
|
|
27
|
+
return this._interactionsAbandoned;
|
|
28
|
+
}
|
|
29
|
+
set interactionsAbandoned(value) {
|
|
30
|
+
this._interactionsAbandoned = value;
|
|
31
|
+
}
|
|
32
|
+
// Validation Method
|
|
33
|
+
validateData() {
|
|
34
|
+
this.validationMessages = [];
|
|
35
|
+
const fields = [
|
|
36
|
+
{ field: this._interactionsReceived, name: "interactionsReceived" },
|
|
37
|
+
{ field: this._interactionsAnswered, name: "interactionsAnswered" },
|
|
38
|
+
{ field: this._interactionsAbandoned, name: "interactionsAbandoned" },
|
|
39
|
+
];
|
|
40
|
+
fields.forEach(({ field, name }) => {
|
|
41
|
+
if (!(field instanceof StatisticsNumberDetailsModel_1.StatisticsNumberDetailsModel)) {
|
|
42
|
+
this.validationMessages.push({
|
|
43
|
+
type: "Error",
|
|
44
|
+
fieldDescription: name,
|
|
45
|
+
message: "Invalid StatisticsNumberDetailsModel instance",
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
return this.validationMessages;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.CallStatisticsModel = CallStatisticsModel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
import { QuestionDetailsModel } from "./QuestionDetailsModel";
|
|
4
|
+
export declare class CategoryDetailModel extends BaseModel {
|
|
5
|
+
private _categories;
|
|
6
|
+
constructor(categories: {
|
|
7
|
+
[category: string]: QuestionDetailsModel[];
|
|
8
|
+
});
|
|
9
|
+
get categories(): {
|
|
10
|
+
[category: string]: QuestionDetailsModel[];
|
|
11
|
+
};
|
|
12
|
+
set categories(value: {
|
|
13
|
+
[category: string]: QuestionDetailsModel[];
|
|
14
|
+
});
|
|
15
|
+
private validateCategories;
|
|
16
|
+
validateData(): validationMessage[];
|
|
17
|
+
}
|
|
@@ -1 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CategoryDetailModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
const QuestionDetailsModel_1 = require("./QuestionDetailsModel");
|
|
6
|
+
class CategoryDetailModel extends BaseModel_1.BaseModel {
|
|
7
|
+
constructor(categories) {
|
|
8
|
+
super();
|
|
9
|
+
this._categories = categories;
|
|
10
|
+
}
|
|
11
|
+
// Getter and Setter
|
|
12
|
+
get categories() {
|
|
13
|
+
return this._categories;
|
|
14
|
+
}
|
|
15
|
+
set categories(value) {
|
|
16
|
+
if (this.validateCategories(value)) {
|
|
17
|
+
this._categories = value;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid categories data");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
// Validation for categories
|
|
24
|
+
validateCategories(value) {
|
|
25
|
+
return (typeof value === "object" &&
|
|
26
|
+
value !== null &&
|
|
27
|
+
Object.keys(value).every((key) => typeof key === "string" &&
|
|
28
|
+
Array.isArray(value[key]) &&
|
|
29
|
+
value[key].every((item) => item instanceof QuestionDetailsModel_1.QuestionDetailsModel)));
|
|
30
|
+
}
|
|
31
|
+
// Validate Data
|
|
32
|
+
validateData() {
|
|
33
|
+
this.validationMessages = [];
|
|
34
|
+
if (!this.validateCategories(this._categories)) {
|
|
35
|
+
this.validationMessages.push({
|
|
36
|
+
type: "Error",
|
|
37
|
+
fieldDescription: "categories",
|
|
38
|
+
message: "Categories must be an object with keys as strings and values as arrays of QuestionDetailsModel instances.",
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return this.validationMessages;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CategoryDetailModel = CategoryDetailModel;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
type Department = "gather" | "say";
|
|
4
|
+
type Skills = "aext" | "audio";
|
|
5
|
+
export declare class MemberModel extends BaseModel {
|
|
6
|
+
private _id;
|
|
7
|
+
private _fullName;
|
|
8
|
+
private _extension;
|
|
9
|
+
private _department;
|
|
10
|
+
private _skills;
|
|
11
|
+
private _status;
|
|
12
|
+
private _loggedOn;
|
|
13
|
+
private _timeInStatus;
|
|
14
|
+
private _state;
|
|
15
|
+
private _duration;
|
|
16
|
+
private _interactionId;
|
|
17
|
+
constructor(id: string, fullName: string, extension: string, department: Department, skills: Skills, status: string, loggedOn: string | null, timeInStatus: string | null, state: string, duration: string | null, interactionId: string);
|
|
18
|
+
get id(): string;
|
|
19
|
+
set id(value: string);
|
|
20
|
+
get fullName(): string;
|
|
21
|
+
set fullName(value: string);
|
|
22
|
+
get extension(): string;
|
|
23
|
+
set extension(value: string);
|
|
24
|
+
get department(): Department;
|
|
25
|
+
set department(value: Department);
|
|
26
|
+
get skills(): Skills;
|
|
27
|
+
set skills(value: Skills);
|
|
28
|
+
get status(): string;
|
|
29
|
+
set status(value: string);
|
|
30
|
+
get loggedOn(): string | null;
|
|
31
|
+
set loggedOn(value: string | null);
|
|
32
|
+
get timeInStatus(): string | null;
|
|
33
|
+
set timeInStatus(value: string | null);
|
|
34
|
+
get state(): string;
|
|
35
|
+
set state(value: string);
|
|
36
|
+
get duration(): string | null;
|
|
37
|
+
set duration(value: string | null);
|
|
38
|
+
get interactionId(): string;
|
|
39
|
+
set interactionId(value: string);
|
|
40
|
+
validateData(): validationMessage[];
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -1 +1,170 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MemberModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
class MemberModel extends BaseModel_1.BaseModel {
|
|
6
|
+
constructor(id, fullName, extension, department, skills, status, loggedOn, timeInStatus, state, duration, interactionId) {
|
|
7
|
+
super();
|
|
8
|
+
this._id = id;
|
|
9
|
+
this._fullName = fullName;
|
|
10
|
+
this._extension = extension;
|
|
11
|
+
this._department = department;
|
|
12
|
+
this._skills = skills;
|
|
13
|
+
this._status = status;
|
|
14
|
+
this._loggedOn = loggedOn;
|
|
15
|
+
this._timeInStatus = timeInStatus;
|
|
16
|
+
this._state = state;
|
|
17
|
+
this._duration = duration;
|
|
18
|
+
this._interactionId = interactionId;
|
|
19
|
+
}
|
|
20
|
+
// Getters and Setters
|
|
21
|
+
get id() {
|
|
22
|
+
return this._id;
|
|
23
|
+
}
|
|
24
|
+
set id(value) {
|
|
25
|
+
this._id = value;
|
|
26
|
+
}
|
|
27
|
+
get fullName() {
|
|
28
|
+
return this._fullName;
|
|
29
|
+
}
|
|
30
|
+
set fullName(value) {
|
|
31
|
+
this._fullName = value;
|
|
32
|
+
}
|
|
33
|
+
get extension() {
|
|
34
|
+
return this._extension;
|
|
35
|
+
}
|
|
36
|
+
set extension(value) {
|
|
37
|
+
this._extension = value;
|
|
38
|
+
}
|
|
39
|
+
get department() {
|
|
40
|
+
return this._department;
|
|
41
|
+
}
|
|
42
|
+
set department(value) {
|
|
43
|
+
this._department = value;
|
|
44
|
+
}
|
|
45
|
+
get skills() {
|
|
46
|
+
return this._skills;
|
|
47
|
+
}
|
|
48
|
+
set skills(value) {
|
|
49
|
+
this._skills = value;
|
|
50
|
+
}
|
|
51
|
+
get status() {
|
|
52
|
+
return this._status;
|
|
53
|
+
}
|
|
54
|
+
set status(value) {
|
|
55
|
+
this._status = value;
|
|
56
|
+
}
|
|
57
|
+
get loggedOn() {
|
|
58
|
+
return this._loggedOn;
|
|
59
|
+
}
|
|
60
|
+
set loggedOn(value) {
|
|
61
|
+
this._loggedOn = value;
|
|
62
|
+
}
|
|
63
|
+
get timeInStatus() {
|
|
64
|
+
return this._timeInStatus;
|
|
65
|
+
}
|
|
66
|
+
set timeInStatus(value) {
|
|
67
|
+
this._timeInStatus = value;
|
|
68
|
+
}
|
|
69
|
+
get state() {
|
|
70
|
+
return this._state;
|
|
71
|
+
}
|
|
72
|
+
set state(value) {
|
|
73
|
+
this._state = value;
|
|
74
|
+
}
|
|
75
|
+
get duration() {
|
|
76
|
+
return this._duration;
|
|
77
|
+
}
|
|
78
|
+
set duration(value) {
|
|
79
|
+
this._duration = value;
|
|
80
|
+
}
|
|
81
|
+
get interactionId() {
|
|
82
|
+
return this._interactionId;
|
|
83
|
+
}
|
|
84
|
+
set interactionId(value) {
|
|
85
|
+
this._interactionId = value;
|
|
86
|
+
}
|
|
87
|
+
// Validation Method
|
|
88
|
+
validateData() {
|
|
89
|
+
this.validationMessages = [];
|
|
90
|
+
if (typeof this._id !== "string" || !this._id.trim()) {
|
|
91
|
+
this.validationMessages.push({
|
|
92
|
+
type: "Error",
|
|
93
|
+
fieldDescription: "id",
|
|
94
|
+
message: "ID must be a non-empty string",
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
if (typeof this._fullName !== "string" || !this._fullName.trim()) {
|
|
98
|
+
this.validationMessages.push({
|
|
99
|
+
type: "Error",
|
|
100
|
+
fieldDescription: "fullName",
|
|
101
|
+
message: "Full name must be a non-empty string",
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (typeof this._extension !== "string" || !this._extension.trim()) {
|
|
105
|
+
this.validationMessages.push({
|
|
106
|
+
type: "Error",
|
|
107
|
+
fieldDescription: "extension",
|
|
108
|
+
message: "Extension must be a non-empty string",
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
if (!["Gather", "Say"].includes(this._department)) {
|
|
112
|
+
this.validationMessages.push({
|
|
113
|
+
type: "Error",
|
|
114
|
+
fieldDescription: "department",
|
|
115
|
+
message: "Department must be either 'Gather' or 'Say'",
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
if (!["Text", "Audio"].includes(this._skills)) {
|
|
119
|
+
this.validationMessages.push({
|
|
120
|
+
type: "Error",
|
|
121
|
+
fieldDescription: "skills",
|
|
122
|
+
message: "Skills must be either 'Text' or 'Audio'",
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
if (typeof this._status !== "string" || !this._status.trim()) {
|
|
126
|
+
this.validationMessages.push({
|
|
127
|
+
type: "Error",
|
|
128
|
+
fieldDescription: "status",
|
|
129
|
+
message: "Status must be a non-empty string",
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
if (this._loggedOn && typeof this._loggedOn !== "string") {
|
|
133
|
+
this.validationMessages.push({
|
|
134
|
+
type: "Error",
|
|
135
|
+
fieldDescription: "loggedOn",
|
|
136
|
+
message: "LoggedOn must be a string or null",
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
if (this._timeInStatus && typeof this._timeInStatus !== "string") {
|
|
140
|
+
this.validationMessages.push({
|
|
141
|
+
type: "Error",
|
|
142
|
+
fieldDescription: "timeInStatus",
|
|
143
|
+
message: "TimeInStatus must be a string or null",
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
if (typeof this._state !== "string" || !this._state.trim()) {
|
|
147
|
+
this.validationMessages.push({
|
|
148
|
+
type: "Error",
|
|
149
|
+
fieldDescription: "state",
|
|
150
|
+
message: "State must be a non-empty string",
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
if (this._duration && typeof this._duration !== "string") {
|
|
154
|
+
this.validationMessages.push({
|
|
155
|
+
type: "Error",
|
|
156
|
+
fieldDescription: "duration",
|
|
157
|
+
message: "Duration must be a string or null",
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
if (typeof this._interactionId !== "string" || !this._interactionId.trim()) {
|
|
161
|
+
this.validationMessages.push({
|
|
162
|
+
type: "Error",
|
|
163
|
+
fieldDescription: "interactionId",
|
|
164
|
+
message: "Interaction ID must be a non-empty string",
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
return this.validationMessages;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.MemberModel = MemberModel;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CommonError } from "../../common/abstract/CommonError";
|
|
2
|
+
import { IErrorDetails } from "../../common/interface/IErrorDetails";
|
|
3
|
+
export declare class ModelValidationError extends CommonError {
|
|
4
|
+
constructor(error: IErrorDetails);
|
|
5
|
+
handleError(error: IErrorDetails): IErrorDetails;
|
|
6
|
+
}
|