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,40 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseModel = void 0;
|
|
4
|
+
class BaseModel {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.validationMessages = [];
|
|
7
|
+
}
|
|
8
|
+
setValidationMessages(data) {
|
|
9
|
+
throw new Error("Method not implemented.");
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Getter to serialize the instance into a plain object.
|
|
13
|
+
*/
|
|
14
|
+
get serialize() {
|
|
15
|
+
const serializedData = {};
|
|
16
|
+
Object.getOwnPropertyNames(this).forEach((key) => {
|
|
17
|
+
if (key.startsWith("_")) {
|
|
18
|
+
const publicKey = key.substring(1); // Remove the `_` prefix
|
|
19
|
+
serializedData[publicKey] = this[key];
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return serializedData;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Deserialize a plain object into the current instance.
|
|
26
|
+
* Accepts only class-defined properties.
|
|
27
|
+
* @param data - Object containing data to populate
|
|
28
|
+
*/
|
|
29
|
+
deserialize(data) {
|
|
30
|
+
Object.getOwnPropertyNames(this).forEach((key) => {
|
|
31
|
+
if (key.startsWith("_")) {
|
|
32
|
+
const publicKey = key.substring(1); // Remove `_` prefix
|
|
33
|
+
if (data.hasOwnProperty(publicKey)) {
|
|
34
|
+
this[key] = data[publicKey];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.BaseModel = BaseModel;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
export declare class AgentActionsLogsModel extends BaseModel {
|
|
4
|
+
private _taskSid;
|
|
5
|
+
private _SEQ;
|
|
6
|
+
private _callSid;
|
|
7
|
+
private _worker;
|
|
8
|
+
private _event;
|
|
9
|
+
private _eventDescription;
|
|
10
|
+
private _timestamp;
|
|
11
|
+
constructor(taskSid: string | null, SEQ: number | null, callSid: string | null, worker: string | null, event: string | null, eventDescription: string | null, timestamp: Date | undefined | string);
|
|
12
|
+
get taskSid(): string | null;
|
|
13
|
+
set taskSid(value: string | null);
|
|
14
|
+
get SEQ(): number | null;
|
|
15
|
+
set SEQ(value: number | null);
|
|
16
|
+
get callSid(): string | null;
|
|
17
|
+
set callSid(value: string | null);
|
|
18
|
+
get worker(): string | null;
|
|
19
|
+
set worker(value: string | null);
|
|
20
|
+
get event(): string | null;
|
|
21
|
+
set event(value: string | null);
|
|
22
|
+
get eventDescription(): string | null;
|
|
23
|
+
set eventDescription(value: string | null);
|
|
24
|
+
get timestamp(): Date | undefined | string;
|
|
25
|
+
set timestamp(value: Date | undefined | string);
|
|
26
|
+
validateData(): validationMessage[];
|
|
27
|
+
}
|
|
@@ -1 +1,89 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentActionsLogsModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
class AgentActionsLogsModel extends BaseModel_1.BaseModel {
|
|
6
|
+
constructor(taskSid, SEQ, callSid, worker, event, eventDescription, timestamp) {
|
|
7
|
+
super();
|
|
8
|
+
this._taskSid = taskSid;
|
|
9
|
+
this._SEQ = SEQ;
|
|
10
|
+
this._callSid = callSid;
|
|
11
|
+
this._worker = worker;
|
|
12
|
+
this._event = event;
|
|
13
|
+
this._eventDescription = eventDescription;
|
|
14
|
+
this._timestamp = timestamp;
|
|
15
|
+
}
|
|
16
|
+
// Getters and Setters
|
|
17
|
+
get taskSid() {
|
|
18
|
+
return this._taskSid;
|
|
19
|
+
}
|
|
20
|
+
set taskSid(value) {
|
|
21
|
+
this._taskSid = value;
|
|
22
|
+
}
|
|
23
|
+
get SEQ() {
|
|
24
|
+
return this._SEQ;
|
|
25
|
+
}
|
|
26
|
+
set SEQ(value) {
|
|
27
|
+
this._SEQ = value;
|
|
28
|
+
}
|
|
29
|
+
get callSid() {
|
|
30
|
+
return this._callSid;
|
|
31
|
+
}
|
|
32
|
+
set callSid(value) {
|
|
33
|
+
this._callSid = value;
|
|
34
|
+
}
|
|
35
|
+
get worker() {
|
|
36
|
+
return this._worker;
|
|
37
|
+
}
|
|
38
|
+
set worker(value) {
|
|
39
|
+
this._worker = value;
|
|
40
|
+
}
|
|
41
|
+
get event() {
|
|
42
|
+
return this._event;
|
|
43
|
+
}
|
|
44
|
+
set event(value) {
|
|
45
|
+
this._event = value;
|
|
46
|
+
}
|
|
47
|
+
get eventDescription() {
|
|
48
|
+
return this._eventDescription;
|
|
49
|
+
}
|
|
50
|
+
set eventDescription(value) {
|
|
51
|
+
this._eventDescription = value;
|
|
52
|
+
}
|
|
53
|
+
get timestamp() {
|
|
54
|
+
return this._timestamp;
|
|
55
|
+
}
|
|
56
|
+
set timestamp(value) {
|
|
57
|
+
this._timestamp = value;
|
|
58
|
+
}
|
|
59
|
+
// Validate data
|
|
60
|
+
validateData() {
|
|
61
|
+
this.validationMessages = [];
|
|
62
|
+
const validationRules = {
|
|
63
|
+
taskSid: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
64
|
+
SEQ: (value) => value === null || (typeof value === "number" && value >= 0),
|
|
65
|
+
callSid: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
66
|
+
worker: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
67
|
+
event: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
68
|
+
eventDescription: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
69
|
+
timestamp: (value) => {
|
|
70
|
+
const parsedDate = new Date(value);
|
|
71
|
+
return parsedDate instanceof Date && !isNaN(parsedDate.getTime());
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
// Validate each property
|
|
75
|
+
Object.keys(validationRules).forEach((key) => {
|
|
76
|
+
const validator = validationRules[key];
|
|
77
|
+
const fieldValue = this[key];
|
|
78
|
+
if (!validator(fieldValue)) {
|
|
79
|
+
this.validationMessages.push({
|
|
80
|
+
type: "Error",
|
|
81
|
+
fieldDescription: key,
|
|
82
|
+
message: `${key} is not valid`,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
return this.validationMessages;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.AgentActionsLogsModel = AgentActionsLogsModel;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
import { AgentActionsLogsModel } from "./AgentActionsLogsModel";
|
|
4
|
+
export declare class AgentActionsModel extends BaseModel {
|
|
5
|
+
private _taskSid;
|
|
6
|
+
private _logs;
|
|
7
|
+
private _callSid;
|
|
8
|
+
private _transfer;
|
|
9
|
+
constructor(taskSid: string, logs: AgentActionsLogsModel[], callSid: string | null, transfer: number | string | null);
|
|
10
|
+
get taskSid(): string;
|
|
11
|
+
set taskSid(value: string);
|
|
12
|
+
get callSid(): string | null;
|
|
13
|
+
set callSid(value: string | null);
|
|
14
|
+
get logs(): AgentActionsLogsModel[];
|
|
15
|
+
set logs(value: AgentActionsLogsModel[]);
|
|
16
|
+
get transfer(): number | string | null;
|
|
17
|
+
set transfer(value: number | string | null);
|
|
18
|
+
validateData(): validationMessage[];
|
|
19
|
+
}
|
|
@@ -1 +1,60 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentActionsModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
class AgentActionsModel extends BaseModel_1.BaseModel {
|
|
6
|
+
constructor(taskSid, logs, callSid, transfer) {
|
|
7
|
+
super();
|
|
8
|
+
this._taskSid = taskSid;
|
|
9
|
+
this._logs = logs;
|
|
10
|
+
this._callSid = callSid;
|
|
11
|
+
this._transfer = transfer;
|
|
12
|
+
}
|
|
13
|
+
// Getters and Setters
|
|
14
|
+
get taskSid() {
|
|
15
|
+
return this._taskSid;
|
|
16
|
+
}
|
|
17
|
+
set taskSid(value) {
|
|
18
|
+
this._taskSid = value;
|
|
19
|
+
}
|
|
20
|
+
get callSid() {
|
|
21
|
+
return this._callSid;
|
|
22
|
+
}
|
|
23
|
+
set callSid(value) {
|
|
24
|
+
this._callSid = value;
|
|
25
|
+
}
|
|
26
|
+
get logs() {
|
|
27
|
+
return this._logs;
|
|
28
|
+
}
|
|
29
|
+
set logs(value) {
|
|
30
|
+
this._logs = value;
|
|
31
|
+
}
|
|
32
|
+
get transfer() {
|
|
33
|
+
return this._transfer;
|
|
34
|
+
}
|
|
35
|
+
set transfer(value) {
|
|
36
|
+
this._transfer = value;
|
|
37
|
+
}
|
|
38
|
+
// Validate data
|
|
39
|
+
validateData() {
|
|
40
|
+
this.validationMessages = [];
|
|
41
|
+
const validationRules = {
|
|
42
|
+
taskSid: (value) => (typeof value === "string" && value.trim() !== ""),
|
|
43
|
+
callSid: (value) => value === null || (typeof value === "string" && value.trim() !== "")
|
|
44
|
+
};
|
|
45
|
+
// Validate each property
|
|
46
|
+
Object.keys(validationRules).forEach((key) => {
|
|
47
|
+
const validator = validationRules[key];
|
|
48
|
+
const fieldValue = this[key];
|
|
49
|
+
if (!validator(fieldValue)) {
|
|
50
|
+
this.validationMessages.push({
|
|
51
|
+
type: "Error",
|
|
52
|
+
fieldDescription: key,
|
|
53
|
+
message: `${key} is not valid`,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
return this.validationMessages;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.AgentActionsModel = AgentActionsModel;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
export declare class AgentScorecardModel extends BaseModel {
|
|
4
|
+
private _id;
|
|
5
|
+
private _ht;
|
|
6
|
+
private _uniqueName;
|
|
7
|
+
private _tsCompleted;
|
|
8
|
+
private _tsCreated;
|
|
9
|
+
private _taskSid;
|
|
10
|
+
private _queueName;
|
|
11
|
+
private _channel;
|
|
12
|
+
private _HoldTimeline;
|
|
13
|
+
private _UnHoldTimeline;
|
|
14
|
+
private _taskCreated;
|
|
15
|
+
private _reservationCreated;
|
|
16
|
+
private _tsHangUp;
|
|
17
|
+
private _from;
|
|
18
|
+
private _to;
|
|
19
|
+
private _isOutbound;
|
|
20
|
+
private _queueSid;
|
|
21
|
+
private _hang_up_by;
|
|
22
|
+
private _createdAt;
|
|
23
|
+
private _updatedAt;
|
|
24
|
+
constructor(id: string, ht: string, uniqueName: string, tsCompleted: string, tsCreated: string, taskSid: string, queueName: string, channel: string, HoldTimeline: number, UnHoldTimeline: number, taskCreated: number, reservationCreated: number, tsHangUp: number, from: number, to: number, isOutbound: number, queueSid: string, hang_up_by: string, createdAt: Date | undefined | string, updatedAt: Date | undefined | string);
|
|
25
|
+
get id(): string;
|
|
26
|
+
set id(value: string);
|
|
27
|
+
get ht(): string;
|
|
28
|
+
set ht(value: string);
|
|
29
|
+
get uniqueName(): string;
|
|
30
|
+
set uniqueName(value: string);
|
|
31
|
+
get tsCompleted(): string;
|
|
32
|
+
set tsCompleted(value: string);
|
|
33
|
+
get tsCreated(): string;
|
|
34
|
+
set tsCreated(value: string);
|
|
35
|
+
get taskSid(): string;
|
|
36
|
+
set taskSid(value: string);
|
|
37
|
+
get queueName(): string;
|
|
38
|
+
set queueName(value: string);
|
|
39
|
+
get channel(): string;
|
|
40
|
+
set channel(value: string);
|
|
41
|
+
get HoldTimeline(): number;
|
|
42
|
+
set HoldTimeline(value: number);
|
|
43
|
+
get UnHoldTimeline(): number;
|
|
44
|
+
set UnHoldTimeline(value: number);
|
|
45
|
+
get taskCreated(): number;
|
|
46
|
+
set taskCreated(value: number);
|
|
47
|
+
get reservationCreated(): number;
|
|
48
|
+
set reservationCreated(value: number);
|
|
49
|
+
get tsHangUp(): number;
|
|
50
|
+
set tsHangUp(value: number);
|
|
51
|
+
get from(): number;
|
|
52
|
+
set from(value: number);
|
|
53
|
+
get to(): number;
|
|
54
|
+
set to(value: number);
|
|
55
|
+
get isOutbound(): number;
|
|
56
|
+
set isOutbound(value: number);
|
|
57
|
+
get queueSid(): string;
|
|
58
|
+
set queueSid(value: string);
|
|
59
|
+
get hang_up_by(): string;
|
|
60
|
+
set hang_up_by(value: string);
|
|
61
|
+
get createdAt(): Date | undefined | string;
|
|
62
|
+
set createdAt(value: Date | undefined | string);
|
|
63
|
+
get updatedAt(): Date | undefined | string;
|
|
64
|
+
set updatedAt(value: Date | undefined | string);
|
|
65
|
+
validateData(): validationMessage[];
|
|
66
|
+
}
|
|
@@ -1 +1,282 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentScorecardModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
class AgentScorecardModel extends BaseModel_1.BaseModel {
|
|
6
|
+
constructor(id, ht, uniqueName, tsCompleted, tsCreated, taskSid, queueName, channel, HoldTimeline, UnHoldTimeline, taskCreated, reservationCreated, tsHangUp, from, to, isOutbound, queueSid, hang_up_by, createdAt, updatedAt) {
|
|
7
|
+
super();
|
|
8
|
+
this._id = id;
|
|
9
|
+
this._ht = ht;
|
|
10
|
+
this._uniqueName = uniqueName;
|
|
11
|
+
this._tsCompleted = tsCompleted;
|
|
12
|
+
this._tsCreated = tsCreated;
|
|
13
|
+
this._taskSid = taskSid;
|
|
14
|
+
this._queueName = queueName;
|
|
15
|
+
this._channel = channel;
|
|
16
|
+
this._HoldTimeline = HoldTimeline;
|
|
17
|
+
this._UnHoldTimeline = UnHoldTimeline;
|
|
18
|
+
this._taskCreated = taskCreated;
|
|
19
|
+
this._reservationCreated = reservationCreated;
|
|
20
|
+
this._tsHangUp = tsHangUp;
|
|
21
|
+
this._from = from;
|
|
22
|
+
this._to = to;
|
|
23
|
+
this._isOutbound = isOutbound;
|
|
24
|
+
this._queueSid = queueSid;
|
|
25
|
+
this._hang_up_by = hang_up_by;
|
|
26
|
+
this._createdAt = createdAt;
|
|
27
|
+
this._updatedAt = updatedAt;
|
|
28
|
+
}
|
|
29
|
+
// Getters and Setters
|
|
30
|
+
get id() {
|
|
31
|
+
return this._id;
|
|
32
|
+
}
|
|
33
|
+
set id(value) {
|
|
34
|
+
this._id = value;
|
|
35
|
+
}
|
|
36
|
+
get ht() {
|
|
37
|
+
return this.ht;
|
|
38
|
+
}
|
|
39
|
+
set ht(value) {
|
|
40
|
+
this._ht = value;
|
|
41
|
+
}
|
|
42
|
+
get uniqueName() {
|
|
43
|
+
return this._uniqueName;
|
|
44
|
+
}
|
|
45
|
+
set uniqueName(value) {
|
|
46
|
+
this._uniqueName = value;
|
|
47
|
+
}
|
|
48
|
+
get tsCompleted() {
|
|
49
|
+
return this._tsCompleted;
|
|
50
|
+
}
|
|
51
|
+
set tsCompleted(value) {
|
|
52
|
+
this._tsCompleted = value;
|
|
53
|
+
}
|
|
54
|
+
get tsCreated() {
|
|
55
|
+
return this._tsCreated;
|
|
56
|
+
}
|
|
57
|
+
set tsCreated(value) {
|
|
58
|
+
this._tsCreated = value;
|
|
59
|
+
}
|
|
60
|
+
get taskSid() {
|
|
61
|
+
return this._taskSid;
|
|
62
|
+
}
|
|
63
|
+
set taskSid(value) {
|
|
64
|
+
this._taskSid = value;
|
|
65
|
+
}
|
|
66
|
+
get queueName() {
|
|
67
|
+
return this._queueName;
|
|
68
|
+
}
|
|
69
|
+
set queueName(value) {
|
|
70
|
+
this._queueName = value;
|
|
71
|
+
}
|
|
72
|
+
get channel() {
|
|
73
|
+
return this._channel;
|
|
74
|
+
}
|
|
75
|
+
set channel(value) {
|
|
76
|
+
this._channel = value;
|
|
77
|
+
}
|
|
78
|
+
get HoldTimeline() {
|
|
79
|
+
return this._HoldTimeline;
|
|
80
|
+
}
|
|
81
|
+
set HoldTimeline(value) {
|
|
82
|
+
this._HoldTimeline = value;
|
|
83
|
+
}
|
|
84
|
+
get UnHoldTimeline() {
|
|
85
|
+
return this._UnHoldTimeline;
|
|
86
|
+
}
|
|
87
|
+
set UnHoldTimeline(value) {
|
|
88
|
+
this._UnHoldTimeline = value;
|
|
89
|
+
}
|
|
90
|
+
get taskCreated() {
|
|
91
|
+
return this._taskCreated;
|
|
92
|
+
}
|
|
93
|
+
set taskCreated(value) {
|
|
94
|
+
this._taskCreated = value;
|
|
95
|
+
}
|
|
96
|
+
get reservationCreated() {
|
|
97
|
+
return this._reservationCreated;
|
|
98
|
+
}
|
|
99
|
+
set reservationCreated(value) {
|
|
100
|
+
this._reservationCreated = value;
|
|
101
|
+
}
|
|
102
|
+
get tsHangUp() {
|
|
103
|
+
return this._tsHangUp;
|
|
104
|
+
}
|
|
105
|
+
set tsHangUp(value) {
|
|
106
|
+
this._tsHangUp = value;
|
|
107
|
+
}
|
|
108
|
+
get from() {
|
|
109
|
+
return this._from;
|
|
110
|
+
}
|
|
111
|
+
set from(value) {
|
|
112
|
+
this._from = value;
|
|
113
|
+
}
|
|
114
|
+
get to() {
|
|
115
|
+
return this._to;
|
|
116
|
+
}
|
|
117
|
+
set to(value) {
|
|
118
|
+
this._to = value;
|
|
119
|
+
}
|
|
120
|
+
get isOutbound() {
|
|
121
|
+
return this._isOutbound;
|
|
122
|
+
}
|
|
123
|
+
set isOutbound(value) {
|
|
124
|
+
this._isOutbound = value;
|
|
125
|
+
}
|
|
126
|
+
get queueSid() {
|
|
127
|
+
return this._queueSid;
|
|
128
|
+
}
|
|
129
|
+
set queueSid(value) {
|
|
130
|
+
this._queueSid = value;
|
|
131
|
+
}
|
|
132
|
+
get hang_up_by() {
|
|
133
|
+
return this._hang_up_by;
|
|
134
|
+
}
|
|
135
|
+
set hang_up_by(value) {
|
|
136
|
+
this._hang_up_by = value;
|
|
137
|
+
}
|
|
138
|
+
get createdAt() {
|
|
139
|
+
return this._createdAt;
|
|
140
|
+
}
|
|
141
|
+
set createdAt(value) {
|
|
142
|
+
this._createdAt = value;
|
|
143
|
+
}
|
|
144
|
+
get updatedAt() {
|
|
145
|
+
return this._updatedAt;
|
|
146
|
+
}
|
|
147
|
+
set updatedAt(value) {
|
|
148
|
+
this._updatedAt = value;
|
|
149
|
+
}
|
|
150
|
+
// Validation Method
|
|
151
|
+
validateData() {
|
|
152
|
+
this.validationMessages = [];
|
|
153
|
+
if (typeof this._id !== "string" || !this._id.trim()) {
|
|
154
|
+
this.validationMessages.push({
|
|
155
|
+
type: "Error",
|
|
156
|
+
fieldDescription: "id",
|
|
157
|
+
message: "ID must be a non-empty string",
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
if (typeof this._ht !== "string" || !this._ht.trim()) {
|
|
161
|
+
this.validationMessages.push({
|
|
162
|
+
type: "Error",
|
|
163
|
+
fieldDescription: "ht",
|
|
164
|
+
message: "ht must be a non-empty string",
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
if (typeof this._uniqueName !== "string" || !this._uniqueName.trim()) {
|
|
168
|
+
this.validationMessages.push({
|
|
169
|
+
type: "Error",
|
|
170
|
+
fieldDescription: "uniqueName",
|
|
171
|
+
message: "uniqueName must be a non-empty string",
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
if (typeof this._tsCompleted !== "string" || !this._tsCompleted.trim()) {
|
|
175
|
+
this.validationMessages.push({
|
|
176
|
+
type: "Error",
|
|
177
|
+
fieldDescription: "tsCompleted",
|
|
178
|
+
message: "tsCompleted must be a non-empty string",
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
if (typeof this._tsCreated !== "string" || this._tsCreated.trim()) {
|
|
182
|
+
this.validationMessages.push({
|
|
183
|
+
type: "Error",
|
|
184
|
+
fieldDescription: "tsCreated",
|
|
185
|
+
message: "tsCreated must be a non-empty string",
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
if (typeof this._taskSid !== "string" || this._taskSid.trim()) {
|
|
189
|
+
this.validationMessages.push({
|
|
190
|
+
type: "Error",
|
|
191
|
+
fieldDescription: "taskSid",
|
|
192
|
+
message: "taskSid must be a non-empty string",
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
if (typeof this._queueName !== "string" || this._queueName.trim()) {
|
|
196
|
+
this.validationMessages.push({
|
|
197
|
+
type: "Error",
|
|
198
|
+
fieldDescription: "queueName",
|
|
199
|
+
message: "queueName must be a non-empty string",
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
if (typeof this._channel !== "string" || this._channel.trim()) {
|
|
203
|
+
this.validationMessages.push({
|
|
204
|
+
type: "Error",
|
|
205
|
+
fieldDescription: "channel",
|
|
206
|
+
message: "Channel must be a non-empty string",
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
if (typeof this._HoldTimeline !== "number" || this._HoldTimeline < 0) {
|
|
210
|
+
this.validationMessages.push({
|
|
211
|
+
type: "Error",
|
|
212
|
+
fieldDescription: "HoldTimeline",
|
|
213
|
+
message: "HoldTimeline must be a non-negative number",
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
if (typeof this._UnHoldTimeline !== "number" || this._UnHoldTimeline < 0) {
|
|
217
|
+
this.validationMessages.push({
|
|
218
|
+
type: "Error",
|
|
219
|
+
fieldDescription: "UnHoldTimeline",
|
|
220
|
+
message: "UnHoldTimeline must be a non-negative number",
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
if (typeof this._taskCreated !== "number" || this._taskCreated < 0) {
|
|
224
|
+
this.validationMessages.push({
|
|
225
|
+
type: "Error",
|
|
226
|
+
fieldDescription: "taskCreated",
|
|
227
|
+
message: "taskCreated must be a non-negative number",
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
if (typeof this._reservationCreated !== "number" || this._reservationCreated < 0) {
|
|
231
|
+
this.validationMessages.push({
|
|
232
|
+
type: "Error",
|
|
233
|
+
fieldDescription: "reservationCreated",
|
|
234
|
+
message: "reservationCreated must be a non-negative number",
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
if (typeof this._tsHangUp !== "number" || this._tsHangUp < 0) {
|
|
238
|
+
this.validationMessages.push({
|
|
239
|
+
type: "Error",
|
|
240
|
+
fieldDescription: "tsHangUp",
|
|
241
|
+
message: "tsHangUp must be a non-negative number",
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
if (typeof this._from !== "number" || this._from < 0) {
|
|
245
|
+
this.validationMessages.push({
|
|
246
|
+
type: "Error",
|
|
247
|
+
fieldDescription: "from",
|
|
248
|
+
message: "from must be a non-negative number",
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
if (typeof this._to !== "number" || this._to < 0) {
|
|
252
|
+
this.validationMessages.push({
|
|
253
|
+
type: "Error",
|
|
254
|
+
fieldDescription: "to",
|
|
255
|
+
message: "to must be a non-negative number",
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
if (typeof this._isOutbound !== "number" || this._isOutbound < 0) {
|
|
259
|
+
this.validationMessages.push({
|
|
260
|
+
type: "Error",
|
|
261
|
+
fieldDescription: "isOutbound",
|
|
262
|
+
message: "isOutbound must be a non-negative number",
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
if (typeof this._queueSid !== "string" || this._queueSid.trim()) {
|
|
266
|
+
this.validationMessages.push({
|
|
267
|
+
type: "Error",
|
|
268
|
+
fieldDescription: "queueSid",
|
|
269
|
+
message: "queueSid must be a non-empty string",
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
if (typeof this._hang_up_by !== "string" || this._hang_up_by.trim()) {
|
|
273
|
+
this.validationMessages.push({
|
|
274
|
+
type: "Error",
|
|
275
|
+
fieldDescription: "hang_up_by",
|
|
276
|
+
message: "hang_up_by must be a non-empty string"
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
return this.validationMessages;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
exports.AgentScorecardModel = AgentScorecardModel;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
export declare class AuditLogModel extends BaseModel {
|
|
4
|
+
private _id;
|
|
5
|
+
private _workerSid;
|
|
6
|
+
private _fieldName;
|
|
7
|
+
private _category;
|
|
8
|
+
private _date;
|
|
9
|
+
private _oldValue;
|
|
10
|
+
private _newValue;
|
|
11
|
+
private _action;
|
|
12
|
+
constructor(id: string, workerSid: string, fieldName: string, category: string, date: Date, oldValue: string, newValue: string, action: "create" | "edit" | "delete");
|
|
13
|
+
get id(): string;
|
|
14
|
+
get workerSid(): string;
|
|
15
|
+
get fieldName(): string;
|
|
16
|
+
get category(): string;
|
|
17
|
+
get date(): Date;
|
|
18
|
+
get oldValue(): string;
|
|
19
|
+
get newValue(): string;
|
|
20
|
+
get action(): "create" | "edit" | "delete";
|
|
21
|
+
set id(value: string);
|
|
22
|
+
set workerSid(value: string);
|
|
23
|
+
set fieldName(value: string);
|
|
24
|
+
set category(value: string);
|
|
25
|
+
set date(value: Date | undefined);
|
|
26
|
+
set oldValue(value: string);
|
|
27
|
+
set newValue(value: string);
|
|
28
|
+
set action(value: "create" | "edit" | "delete");
|
|
29
|
+
validateData(): validationMessage[];
|
|
30
|
+
setValidationMessages(message: validationMessage): void;
|
|
31
|
+
}
|