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,72 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatisticsNumberDetailsModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
class StatisticsNumberDetailsModel extends BaseModel_1.BaseModel {
|
|
6
|
+
constructor(currentPeriod, currentShift, previousPeriod, previousShift) {
|
|
7
|
+
super();
|
|
8
|
+
this._currentPeriod = currentPeriod;
|
|
9
|
+
this._currentShift = currentShift;
|
|
10
|
+
this._previousPeriod = previousPeriod;
|
|
11
|
+
this._previousShift = previousShift;
|
|
12
|
+
}
|
|
13
|
+
// Getters and Setters
|
|
14
|
+
get currentPeriod() {
|
|
15
|
+
return this._currentPeriod;
|
|
16
|
+
}
|
|
17
|
+
set currentPeriod(value) {
|
|
18
|
+
this._currentPeriod = value;
|
|
19
|
+
}
|
|
20
|
+
get currentShift() {
|
|
21
|
+
return this._currentShift;
|
|
22
|
+
}
|
|
23
|
+
set currentShift(value) {
|
|
24
|
+
this._currentShift = value;
|
|
25
|
+
}
|
|
26
|
+
get previousPeriod() {
|
|
27
|
+
return this._previousPeriod;
|
|
28
|
+
}
|
|
29
|
+
set previousPeriod(value) {
|
|
30
|
+
this._previousPeriod = value;
|
|
31
|
+
}
|
|
32
|
+
get previousShift() {
|
|
33
|
+
return this._previousShift;
|
|
34
|
+
}
|
|
35
|
+
set previousShift(value) {
|
|
36
|
+
this._previousShift = value;
|
|
37
|
+
}
|
|
38
|
+
// Validation Method
|
|
39
|
+
validateData() {
|
|
40
|
+
this.validationMessages = [];
|
|
41
|
+
if (typeof this._currentPeriod !== "number" || this._currentPeriod < 0) {
|
|
42
|
+
this.validationMessages.push({
|
|
43
|
+
type: "Error",
|
|
44
|
+
fieldDescription: "currentPeriod",
|
|
45
|
+
message: "Current period must be a non-negative number",
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (typeof this._currentShift !== "number" || this._currentShift < 0) {
|
|
49
|
+
this.validationMessages.push({
|
|
50
|
+
type: "Error",
|
|
51
|
+
fieldDescription: "currentShift",
|
|
52
|
+
message: "Current shift must be a non-negative number",
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
if (typeof this._previousPeriod !== "number" || this._previousPeriod < 0) {
|
|
56
|
+
this.validationMessages.push({
|
|
57
|
+
type: "Error",
|
|
58
|
+
fieldDescription: "previousPeriod",
|
|
59
|
+
message: "Previous period must be a non-negative number",
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
if (typeof this._previousShift !== "number" || this._previousShift < 0) {
|
|
63
|
+
this.validationMessages.push({
|
|
64
|
+
type: "Error",
|
|
65
|
+
fieldDescription: "previousShift",
|
|
66
|
+
message: "Previous shift must be a non-negative number",
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return this.validationMessages;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.StatisticsNumberDetailsModel = StatisticsNumberDetailsModel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
export declare class StatisticsTimeDetailsModel extends BaseModel {
|
|
4
|
+
private _currentPeriod;
|
|
5
|
+
private _currentShift;
|
|
6
|
+
private _previousPeriod;
|
|
7
|
+
private _previousShift;
|
|
8
|
+
constructor(currentPeriod: string, currentShift: string, previousPeriod: string, previousShift: string);
|
|
9
|
+
get currentPeriod(): string;
|
|
10
|
+
set currentPeriod(value: string);
|
|
11
|
+
get currentShift(): string;
|
|
12
|
+
set currentShift(value: string);
|
|
13
|
+
get previousPeriod(): string;
|
|
14
|
+
set previousPeriod(value: string);
|
|
15
|
+
get previousShift(): string;
|
|
16
|
+
set previousShift(value: string);
|
|
17
|
+
validateData(): validationMessage[];
|
|
18
|
+
}
|
|
@@ -1 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatisticsTimeDetailsModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
class StatisticsTimeDetailsModel extends BaseModel_1.BaseModel {
|
|
6
|
+
constructor(currentPeriod, currentShift, previousPeriod, previousShift) {
|
|
7
|
+
super();
|
|
8
|
+
this._currentPeriod = currentPeriod;
|
|
9
|
+
this._currentShift = currentShift;
|
|
10
|
+
this._previousPeriod = previousPeriod;
|
|
11
|
+
this._previousShift = previousShift;
|
|
12
|
+
}
|
|
13
|
+
// Getters and Setters
|
|
14
|
+
get currentPeriod() {
|
|
15
|
+
return this._currentPeriod;
|
|
16
|
+
}
|
|
17
|
+
set currentPeriod(value) {
|
|
18
|
+
this._currentPeriod = value;
|
|
19
|
+
}
|
|
20
|
+
get currentShift() {
|
|
21
|
+
return this._currentShift;
|
|
22
|
+
}
|
|
23
|
+
set currentShift(value) {
|
|
24
|
+
this._currentShift = value;
|
|
25
|
+
}
|
|
26
|
+
get previousPeriod() {
|
|
27
|
+
return this._previousPeriod;
|
|
28
|
+
}
|
|
29
|
+
set previousPeriod(value) {
|
|
30
|
+
this._previousPeriod = value;
|
|
31
|
+
}
|
|
32
|
+
get previousShift() {
|
|
33
|
+
return this._previousShift;
|
|
34
|
+
}
|
|
35
|
+
set previousShift(value) {
|
|
36
|
+
this._previousShift = value;
|
|
37
|
+
}
|
|
38
|
+
// Validation Method
|
|
39
|
+
validateData() {
|
|
40
|
+
this.validationMessages = [];
|
|
41
|
+
if (typeof this._currentPeriod !== "string" || !this._currentPeriod.trim()) {
|
|
42
|
+
this.validationMessages.push({
|
|
43
|
+
type: "Error",
|
|
44
|
+
fieldDescription: "currentPeriod",
|
|
45
|
+
message: "Current period must be a non-empty string",
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (typeof this._currentShift !== "string" || !this._currentShift.trim()) {
|
|
49
|
+
this.validationMessages.push({
|
|
50
|
+
type: "Error",
|
|
51
|
+
fieldDescription: "currentShift",
|
|
52
|
+
message: "Current shift must be a non-empty string",
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
if (typeof this._previousPeriod !== "string" || !this._previousPeriod.trim()) {
|
|
56
|
+
this.validationMessages.push({
|
|
57
|
+
type: "Error",
|
|
58
|
+
fieldDescription: "previousPeriod",
|
|
59
|
+
message: "Previous period must be a non-empty string",
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
if (typeof this._previousShift !== "string" || !this._previousShift.trim()) {
|
|
63
|
+
this.validationMessages.push({
|
|
64
|
+
type: "Error",
|
|
65
|
+
fieldDescription: "previousShift",
|
|
66
|
+
message: "Previous shift must be a non-empty string",
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return this.validationMessages;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.StatisticsTimeDetailsModel = StatisticsTimeDetailsModel;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
2
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
3
|
+
export declare enum ChannelTypeEnum {
|
|
4
|
+
voice = "voice",
|
|
5
|
+
chat = "chat",
|
|
6
|
+
sms = "sms",
|
|
7
|
+
video = "video",
|
|
8
|
+
email = "email"
|
|
9
|
+
}
|
|
10
|
+
export declare class TaskAttributesModel extends BaseModel {
|
|
11
|
+
private _channelType;
|
|
12
|
+
private _from;
|
|
13
|
+
private _email;
|
|
14
|
+
private _customerDevice;
|
|
15
|
+
private _onHoldTime;
|
|
16
|
+
private _conversationSid;
|
|
17
|
+
constructor(channelType: ChannelTypeEnum, from: string, email: string, customerDevice: string, onHoldTime: number, conversationSid: string);
|
|
18
|
+
get channelType(): ChannelTypeEnum;
|
|
19
|
+
set channelType(value: ChannelTypeEnum);
|
|
20
|
+
get from(): string;
|
|
21
|
+
set from(value: string);
|
|
22
|
+
get email(): string;
|
|
23
|
+
set email(value: string);
|
|
24
|
+
get customerDevice(): string;
|
|
25
|
+
set customerDevice(value: string);
|
|
26
|
+
get onHoldTime(): number;
|
|
27
|
+
set onHoldTime(value: number);
|
|
28
|
+
get conversationSid(): string;
|
|
29
|
+
set conversationSid(value: string);
|
|
30
|
+
validateData(): validationMessage[];
|
|
31
|
+
}
|
|
@@ -1 +1,108 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaskAttributesModel = exports.ChannelTypeEnum = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
var ChannelTypeEnum;
|
|
6
|
+
(function (ChannelTypeEnum) {
|
|
7
|
+
ChannelTypeEnum["voice"] = "voice";
|
|
8
|
+
ChannelTypeEnum["chat"] = "chat";
|
|
9
|
+
ChannelTypeEnum["sms"] = "sms";
|
|
10
|
+
ChannelTypeEnum["video"] = "video";
|
|
11
|
+
ChannelTypeEnum["email"] = "email";
|
|
12
|
+
})(ChannelTypeEnum || (exports.ChannelTypeEnum = ChannelTypeEnum = {}));
|
|
13
|
+
class TaskAttributesModel extends BaseModel_1.BaseModel {
|
|
14
|
+
constructor(channelType, from, email, customerDevice, onHoldTime, conversationSid) {
|
|
15
|
+
super();
|
|
16
|
+
this._channelType = channelType;
|
|
17
|
+
this._from = from;
|
|
18
|
+
this._email = email;
|
|
19
|
+
this._customerDevice = customerDevice;
|
|
20
|
+
this._onHoldTime = onHoldTime;
|
|
21
|
+
this._conversationSid = conversationSid;
|
|
22
|
+
}
|
|
23
|
+
// Getters and Setters
|
|
24
|
+
get channelType() {
|
|
25
|
+
return this._channelType;
|
|
26
|
+
}
|
|
27
|
+
set channelType(value) {
|
|
28
|
+
this._channelType = value;
|
|
29
|
+
}
|
|
30
|
+
get from() {
|
|
31
|
+
return this._from;
|
|
32
|
+
}
|
|
33
|
+
set from(value) {
|
|
34
|
+
this._from = value;
|
|
35
|
+
}
|
|
36
|
+
get email() {
|
|
37
|
+
return this._email;
|
|
38
|
+
}
|
|
39
|
+
set email(value) {
|
|
40
|
+
this._email = value;
|
|
41
|
+
}
|
|
42
|
+
get customerDevice() {
|
|
43
|
+
return this._customerDevice;
|
|
44
|
+
}
|
|
45
|
+
set customerDevice(value) {
|
|
46
|
+
this._customerDevice = value;
|
|
47
|
+
}
|
|
48
|
+
get onHoldTime() {
|
|
49
|
+
return this._onHoldTime;
|
|
50
|
+
}
|
|
51
|
+
set onHoldTime(value) {
|
|
52
|
+
this._onHoldTime = value;
|
|
53
|
+
}
|
|
54
|
+
get conversationSid() {
|
|
55
|
+
return this._conversationSid;
|
|
56
|
+
}
|
|
57
|
+
set conversationSid(value) {
|
|
58
|
+
this._conversationSid = value;
|
|
59
|
+
}
|
|
60
|
+
// Validation Method
|
|
61
|
+
validateData() {
|
|
62
|
+
this.validationMessages = [];
|
|
63
|
+
if (!Object.values(ChannelTypeEnum).includes(this._channelType)) {
|
|
64
|
+
this.validationMessages.push({
|
|
65
|
+
type: "Error",
|
|
66
|
+
fieldDescription: "channelType",
|
|
67
|
+
message: "ChannelType must be a valid enum value",
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
if (typeof this._from !== "string" || !this._from.trim()) {
|
|
71
|
+
this.validationMessages.push({
|
|
72
|
+
type: "Error",
|
|
73
|
+
fieldDescription: "from",
|
|
74
|
+
message: "From must be a non-empty string",
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
if (typeof this._email !== "string" || !this._email.trim()) {
|
|
78
|
+
this.validationMessages.push({
|
|
79
|
+
type: "Error",
|
|
80
|
+
fieldDescription: "email",
|
|
81
|
+
message: "Email must be a non-empty string",
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
if (typeof this._customerDevice !== "string" || !this._customerDevice.trim()) {
|
|
85
|
+
this.validationMessages.push({
|
|
86
|
+
type: "Error",
|
|
87
|
+
fieldDescription: "customerDevice",
|
|
88
|
+
message: "CustomerDevice must be a non-empty string",
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
if (typeof this._onHoldTime !== "number" || this._onHoldTime < 0) {
|
|
92
|
+
this.validationMessages.push({
|
|
93
|
+
type: "Error",
|
|
94
|
+
fieldDescription: "onHoldTime",
|
|
95
|
+
message: "OnHoldTime must be a non-negative number",
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
if (typeof this._conversationSid !== "string" || !this._conversationSid.trim()) {
|
|
99
|
+
this.validationMessages.push({
|
|
100
|
+
type: "Error",
|
|
101
|
+
fieldDescription: "conversationSid",
|
|
102
|
+
message: "ConversationSid must be a non-empty string",
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
return this.validationMessages;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.TaskAttributesModel = TaskAttributesModel;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
export declare class TaskChannelModel extends BaseModel {
|
|
4
|
+
private _channel;
|
|
5
|
+
private _capacity;
|
|
6
|
+
private _isAvailable;
|
|
7
|
+
constructor(channel: string, capacity: number, isAvailable: boolean);
|
|
8
|
+
get channel(): string;
|
|
9
|
+
set channel(value: string);
|
|
10
|
+
get capacity(): number;
|
|
11
|
+
set capacity(value: number);
|
|
12
|
+
get isAvailable(): boolean;
|
|
13
|
+
set isAvailable(value: boolean);
|
|
14
|
+
validateData(): validationMessage[];
|
|
15
|
+
}
|
|
@@ -1 +1,69 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaskChannelModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
class TaskChannelModel extends BaseModel_1.BaseModel {
|
|
6
|
+
constructor(channel, capacity, isAvailable) {
|
|
7
|
+
super();
|
|
8
|
+
this._channel = channel;
|
|
9
|
+
this._capacity = capacity;
|
|
10
|
+
this._isAvailable = isAvailable;
|
|
11
|
+
}
|
|
12
|
+
// Getters and Setters
|
|
13
|
+
get channel() {
|
|
14
|
+
return this._channel;
|
|
15
|
+
}
|
|
16
|
+
set channel(value) {
|
|
17
|
+
if (typeof value === "string" && value.trim() !== "") {
|
|
18
|
+
this._channel = value;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
throw new Error("Invalid channel");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
get capacity() {
|
|
25
|
+
return this._capacity;
|
|
26
|
+
}
|
|
27
|
+
set capacity(value) {
|
|
28
|
+
if (typeof value === "number" && value >= 0) {
|
|
29
|
+
this._capacity = value;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
throw new Error("Invalid capacity");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
get isAvailable() {
|
|
36
|
+
return this._isAvailable;
|
|
37
|
+
}
|
|
38
|
+
set isAvailable(value) {
|
|
39
|
+
if (typeof value === "boolean") {
|
|
40
|
+
this._isAvailable = value;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
throw new Error("Invalid isAvailable value");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
// Validate data
|
|
47
|
+
validateData() {
|
|
48
|
+
this.validationMessages = [];
|
|
49
|
+
const validationRules = {
|
|
50
|
+
channel: (value) => typeof value === "string" && value.trim() !== "",
|
|
51
|
+
capacity: (value) => typeof value === "number" && value >= 0,
|
|
52
|
+
isAvailable: (value) => typeof value === "boolean",
|
|
53
|
+
};
|
|
54
|
+
// Validate each property
|
|
55
|
+
Object.keys(validationRules).forEach((key) => {
|
|
56
|
+
const validator = validationRules[key];
|
|
57
|
+
const fieldValue = this[key];
|
|
58
|
+
if (!validator(fieldValue)) {
|
|
59
|
+
this.validationMessages.push({
|
|
60
|
+
type: "Error",
|
|
61
|
+
fieldDescription: key,
|
|
62
|
+
message: `${key} is not valid`,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
return this.validationMessages;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.TaskChannelModel = TaskChannelModel;
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
+
export declare class TaskInfoPanelModel extends BaseModel {
|
|
4
|
+
private _id;
|
|
5
|
+
private _callSid;
|
|
6
|
+
private _ivrPath;
|
|
7
|
+
constructor(id: string, callSid: string, ivrPath: string);
|
|
8
|
+
get id(): string;
|
|
9
|
+
get callSid(): string;
|
|
10
|
+
get ivrPath(): string;
|
|
11
|
+
set id(value: string);
|
|
12
|
+
set callSid(value: string);
|
|
13
|
+
set ivrPath(value: string);
|
|
14
|
+
validateData(): validationMessage[];
|
|
15
|
+
setValidationMessages(message: validationMessage): void;
|
|
16
|
+
}
|
|
@@ -1 +1,69 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaskInfoPanelModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
+
const uuid_1 = require("uuid");
|
|
6
|
+
// id: uuidv4(),
|
|
7
|
+
// callSid,
|
|
8
|
+
// ivrPath: `${Digits}`,
|
|
9
|
+
class TaskInfoPanelModel extends BaseModel_1.BaseModel {
|
|
10
|
+
constructor(id, callSid, ivrPath) {
|
|
11
|
+
super();
|
|
12
|
+
// Initialize private attributes
|
|
13
|
+
this._id = id;
|
|
14
|
+
this._callSid = callSid;
|
|
15
|
+
this._ivrPath = ivrPath;
|
|
16
|
+
this.validateData();
|
|
17
|
+
}
|
|
18
|
+
// Getters
|
|
19
|
+
get id() {
|
|
20
|
+
return this._id;
|
|
21
|
+
}
|
|
22
|
+
get callSid() {
|
|
23
|
+
return this._callSid;
|
|
24
|
+
}
|
|
25
|
+
get ivrPath() {
|
|
26
|
+
return this._ivrPath;
|
|
27
|
+
}
|
|
28
|
+
//setters
|
|
29
|
+
set id(value) {
|
|
30
|
+
if (!(0, uuid_1.validate)(value)) {
|
|
31
|
+
throw new Error("Invalid ID format.");
|
|
32
|
+
}
|
|
33
|
+
this._id = value;
|
|
34
|
+
}
|
|
35
|
+
set callSid(value) {
|
|
36
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
37
|
+
throw new Error("callSid must be a non-empty string.");
|
|
38
|
+
}
|
|
39
|
+
this._callSid = value;
|
|
40
|
+
}
|
|
41
|
+
set ivrPath(value) {
|
|
42
|
+
this._ivrPath = value;
|
|
43
|
+
}
|
|
44
|
+
// Validation logic
|
|
45
|
+
validateData() {
|
|
46
|
+
this.validationMessages = [];
|
|
47
|
+
const validationRules = {
|
|
48
|
+
id: (value) => typeof value === "string" && (0, uuid_1.validate)(value),
|
|
49
|
+
callSid: (value) => typeof value === "string" && value.trim() !== "",
|
|
50
|
+
ivrPath: (value) => typeof value === "string" || value === null
|
|
51
|
+
};
|
|
52
|
+
for (const key in validationRules) {
|
|
53
|
+
const validator = validationRules[key];
|
|
54
|
+
const value = this[key];
|
|
55
|
+
if (!validator(value)) {
|
|
56
|
+
this.setValidationMessages({
|
|
57
|
+
type: "Error",
|
|
58
|
+
fieldDescription: key,
|
|
59
|
+
message: `${key} is invalid.`,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return this.validationMessages;
|
|
64
|
+
}
|
|
65
|
+
setValidationMessages(message) {
|
|
66
|
+
this.validationMessages.push(message);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.TaskInfoPanelModel = TaskInfoPanelModel;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { validationMessage } from "../interface/IBaseModel";
|
|
2
|
+
import { BaseModel } from "../abstract/BaseModel";
|
|
3
|
+
import { TaskAttributesModel } from "./TaskAttributesModel";
|
|
4
|
+
export declare enum AssignmentStatusEnum {
|
|
5
|
+
reserved = "reserved",
|
|
6
|
+
pending = "pending",
|
|
7
|
+
assigned = "assigned",
|
|
8
|
+
completed = "completed",
|
|
9
|
+
canceled = "canceled"
|
|
10
|
+
}
|
|
11
|
+
export declare class TaskModel extends BaseModel {
|
|
12
|
+
private _accountSid;
|
|
13
|
+
private _age;
|
|
14
|
+
private _assignmentStatus;
|
|
15
|
+
private _attributes;
|
|
16
|
+
private _dateCreated;
|
|
17
|
+
private _dateUpdated;
|
|
18
|
+
private _priority;
|
|
19
|
+
private _reason;
|
|
20
|
+
private _sid;
|
|
21
|
+
private _taskQueueSid;
|
|
22
|
+
private _timeout;
|
|
23
|
+
private _workflowSid;
|
|
24
|
+
private _workspaceSid;
|
|
25
|
+
private _workflowFriendlyName;
|
|
26
|
+
private _queueFriendlyName;
|
|
27
|
+
private _routingTarget;
|
|
28
|
+
private _requiredAttention;
|
|
29
|
+
constructor(accountSid: string, age: number, assignmentStatus: AssignmentStatusEnum, attributes: TaskAttributesModel, dateCreated: Date, dateUpdated: Date, priority: number, reason: string, sid: string, taskQueueSid: string, timeout: number, workflowSid: string, workspaceSid: string, workflowFriendlyName: string, queueFriendlyName: string, routingTarget: string, requiredAttention: boolean);
|
|
30
|
+
set accountSid(value: string);
|
|
31
|
+
get age(): number;
|
|
32
|
+
get assignmentStatus(): AssignmentStatusEnum;
|
|
33
|
+
set assignmentStatus(value: AssignmentStatusEnum);
|
|
34
|
+
get attributes(): TaskAttributesModel;
|
|
35
|
+
set attributes(value: TaskAttributesModel);
|
|
36
|
+
get dateCreated(): Date;
|
|
37
|
+
get dateUpdated(): Date;
|
|
38
|
+
get priority(): number;
|
|
39
|
+
set priority(value: number);
|
|
40
|
+
get reason(): string;
|
|
41
|
+
set reason(value: string);
|
|
42
|
+
get sid(): string;
|
|
43
|
+
set sid(value: string);
|
|
44
|
+
get taskQueueSid(): string;
|
|
45
|
+
set taskQueueSid(value: string);
|
|
46
|
+
get timeout(): number;
|
|
47
|
+
set timeout(value: number);
|
|
48
|
+
get workflowSid(): string;
|
|
49
|
+
set workflowSid(value: string);
|
|
50
|
+
get workspaceSid(): string;
|
|
51
|
+
get workflowFriendlyName(): string;
|
|
52
|
+
get queueFriendlyName(): string;
|
|
53
|
+
set queueFriendlyName(value: string);
|
|
54
|
+
get routingTarget(): string;
|
|
55
|
+
set routingTarget(value: string);
|
|
56
|
+
get requiredAttention(): boolean;
|
|
57
|
+
set requiredAttention(value: boolean);
|
|
58
|
+
validateData(): validationMessage[];
|
|
59
|
+
}
|