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,179 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CxConfiguratorGPMAssetModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../../abstract/BaseModel");
|
|
5
|
+
const uuid_1 = require("uuid");
|
|
6
|
+
class CxConfiguratorGPMAssetModel extends BaseModel_1.BaseModel {
|
|
7
|
+
constructor(id, name, value, type, description, createdAt, updatedAt) {
|
|
8
|
+
super();
|
|
9
|
+
this._id = id;
|
|
10
|
+
this._name = name;
|
|
11
|
+
this._value = value;
|
|
12
|
+
this._type = type;
|
|
13
|
+
this._description = description;
|
|
14
|
+
this._createdAt = createdAt;
|
|
15
|
+
this._updatedAt = updatedAt;
|
|
16
|
+
}
|
|
17
|
+
// Getters and Setters
|
|
18
|
+
get id() {
|
|
19
|
+
return this._id;
|
|
20
|
+
}
|
|
21
|
+
set id(value) {
|
|
22
|
+
this._id = value;
|
|
23
|
+
}
|
|
24
|
+
get name() {
|
|
25
|
+
return this._name;
|
|
26
|
+
}
|
|
27
|
+
set name(value) {
|
|
28
|
+
this._name = value;
|
|
29
|
+
}
|
|
30
|
+
get value() {
|
|
31
|
+
return this._value;
|
|
32
|
+
}
|
|
33
|
+
set value(value) {
|
|
34
|
+
this._value = value;
|
|
35
|
+
}
|
|
36
|
+
get type() {
|
|
37
|
+
return this._type;
|
|
38
|
+
}
|
|
39
|
+
set type(value) {
|
|
40
|
+
this._type = value;
|
|
41
|
+
}
|
|
42
|
+
get description() {
|
|
43
|
+
return this._description;
|
|
44
|
+
}
|
|
45
|
+
set description(value) {
|
|
46
|
+
this._description = value;
|
|
47
|
+
}
|
|
48
|
+
get createdAt() {
|
|
49
|
+
return this._createdAt;
|
|
50
|
+
}
|
|
51
|
+
set createdAt(value) {
|
|
52
|
+
this._createdAt = value;
|
|
53
|
+
}
|
|
54
|
+
get updatedAt() {
|
|
55
|
+
return this._updatedAt;
|
|
56
|
+
}
|
|
57
|
+
set updatedAt(value) {
|
|
58
|
+
this._updatedAt = value;
|
|
59
|
+
}
|
|
60
|
+
// Validation method
|
|
61
|
+
validateData() {
|
|
62
|
+
console.log("data in validation method", this);
|
|
63
|
+
this.validationMessages = [];
|
|
64
|
+
const validationRules = {
|
|
65
|
+
id: {
|
|
66
|
+
validator: (value) => {
|
|
67
|
+
const errors = [];
|
|
68
|
+
if (typeof value !== "string" || value.trim() === "" || !(0, uuid_1.validate)(value)) {
|
|
69
|
+
errors.push("ID must be a valid non-empty UUID.");
|
|
70
|
+
}
|
|
71
|
+
return errors;
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
name: {
|
|
75
|
+
validator: (value) => {
|
|
76
|
+
const errors = [];
|
|
77
|
+
if (typeof value !== "string") {
|
|
78
|
+
errors.push("Name must be a string.");
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
if (value.trim().length < 5) {
|
|
82
|
+
errors.push("Name must be at least 5 characters long.");
|
|
83
|
+
}
|
|
84
|
+
if (!/^[a-zA-Z0-9]/.test(value)) {
|
|
85
|
+
errors.push("Name must start with a letter or number.");
|
|
86
|
+
}
|
|
87
|
+
if (!/[a-zA-Z]/.test(value)) {
|
|
88
|
+
errors.push("Name must contain at least one alphabet character.");
|
|
89
|
+
}
|
|
90
|
+
if (value.length > 100) {
|
|
91
|
+
errors.push("Name must not exceed 100 characters.");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return errors;
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
type: {
|
|
98
|
+
validator: (value) => {
|
|
99
|
+
const errors = [];
|
|
100
|
+
const validFileTypes = [".mp3", ".wav", ".png", ".jpeg"];
|
|
101
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
102
|
+
errors.push("Type must be a non-empty string.");
|
|
103
|
+
}
|
|
104
|
+
else if (!validFileTypes.some(ext => value.toLowerCase().endsWith(ext))) {
|
|
105
|
+
errors.push(`Type must be a valid file type (${validFileTypes.join(", ")}).`);
|
|
106
|
+
}
|
|
107
|
+
return errors;
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
value: {
|
|
111
|
+
validator: (value) => {
|
|
112
|
+
const errors = [];
|
|
113
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
114
|
+
errors.push("Value must be a non-empty string.");
|
|
115
|
+
}
|
|
116
|
+
else if (value.trim().length < 5) {
|
|
117
|
+
errors.push("Value must be at least 5 characters long.");
|
|
118
|
+
}
|
|
119
|
+
return errors;
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
description: {
|
|
123
|
+
validator: (value) => {
|
|
124
|
+
const errors = [];
|
|
125
|
+
if (typeof value !== "string") {
|
|
126
|
+
errors.push("Description must be a string.");
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
if (value.trim().length < 5) {
|
|
130
|
+
errors.push("Description must be at least 5 characters long.");
|
|
131
|
+
}
|
|
132
|
+
if (!/^[a-zA-Z0-9]/.test(value)) {
|
|
133
|
+
errors.push("Description must start with a letter or number.");
|
|
134
|
+
}
|
|
135
|
+
if (!/[a-zA-Z]/.test(value)) {
|
|
136
|
+
errors.push("Description must contain at least one alphabet character.");
|
|
137
|
+
}
|
|
138
|
+
if (value.length > 100) {
|
|
139
|
+
errors.push("Description must not exceed 100 characters.");
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return errors;
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
createdAt: {
|
|
146
|
+
validator: (value) => {
|
|
147
|
+
const parsedDate = new Date(value);
|
|
148
|
+
return parsedDate instanceof Date && !isNaN(parsedDate.getTime())
|
|
149
|
+
? []
|
|
150
|
+
: ["CreatedAt must be a valid date."];
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
updatedAt: {
|
|
154
|
+
validator: (value) => {
|
|
155
|
+
const parsedDate = new Date(value);
|
|
156
|
+
return parsedDate instanceof Date && !isNaN(parsedDate.getTime())
|
|
157
|
+
? []
|
|
158
|
+
: ["UpdatedAt must be a valid date."];
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
};
|
|
162
|
+
for (const key in validationRules) {
|
|
163
|
+
if (!validationRules.hasOwnProperty(key))
|
|
164
|
+
continue;
|
|
165
|
+
const validator = validationRules[key].validator;
|
|
166
|
+
const value = this[key];
|
|
167
|
+
const errors = validator(value, this); // pass full model for conditional validation
|
|
168
|
+
for (const msg of errors) {
|
|
169
|
+
this.validationMessages.push({
|
|
170
|
+
type: "Error",
|
|
171
|
+
fieldDescription: key,
|
|
172
|
+
message: msg,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return this.validationMessages;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
exports.CxConfiguratorGPMAssetModel = CxConfiguratorGPMAssetModel;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PromptWidgetType, PromptFileType } from "../../types/CxConfig.type";
|
|
2
|
+
import { BaseModel } from "../../abstract/BaseModel";
|
|
3
|
+
import { validationMessage } from "../../interface/IBaseModel";
|
|
4
|
+
export declare class CxConfiguratorGPMPromptModel extends BaseModel {
|
|
5
|
+
private _id;
|
|
6
|
+
private _name;
|
|
7
|
+
private _type;
|
|
8
|
+
private _fileType;
|
|
9
|
+
private _value;
|
|
10
|
+
private _language;
|
|
11
|
+
private _voice;
|
|
12
|
+
private _hints;
|
|
13
|
+
private _createdAt;
|
|
14
|
+
private _updatedAt;
|
|
15
|
+
private _fileLocation;
|
|
16
|
+
constructor(id: string, name: string, type: PromptWidgetType, fileType: PromptFileType, value: string, language: string | null, voice: string | null, hints: string | null, createdAt: Date | undefined, updatedAt: Date | undefined, fileLocation: string | null);
|
|
17
|
+
get id(): string;
|
|
18
|
+
set id(value: string);
|
|
19
|
+
get name(): string;
|
|
20
|
+
set name(value: string);
|
|
21
|
+
get type(): PromptWidgetType;
|
|
22
|
+
set type(value: PromptWidgetType);
|
|
23
|
+
get fileType(): PromptFileType;
|
|
24
|
+
set fileType(value: PromptFileType);
|
|
25
|
+
get value(): string;
|
|
26
|
+
set value(value: string);
|
|
27
|
+
get language(): string | null;
|
|
28
|
+
set language(value: string | null);
|
|
29
|
+
get voice(): string | null;
|
|
30
|
+
set voice(value: string | null);
|
|
31
|
+
get hints(): string | null;
|
|
32
|
+
set hints(value: string | null);
|
|
33
|
+
get createdAt(): Date | undefined;
|
|
34
|
+
set createdAt(value: Date | undefined);
|
|
35
|
+
get updatedAt(): Date | undefined;
|
|
36
|
+
set updatedAt(value: Date | undefined);
|
|
37
|
+
get fileLocation(): string | null;
|
|
38
|
+
set fileLocation(value: string | null);
|
|
39
|
+
validateData(): validationMessage[];
|
|
40
|
+
}
|
|
@@ -1 +1,213 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CxConfiguratorGPMPromptModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../../abstract/BaseModel");
|
|
5
|
+
const uuid_1 = require("uuid");
|
|
6
|
+
class CxConfiguratorGPMPromptModel extends BaseModel_1.BaseModel {
|
|
7
|
+
constructor(id, name, type, fileType, value, language, voice, hints, createdAt, updatedAt, fileLocation) {
|
|
8
|
+
super();
|
|
9
|
+
this._id = id;
|
|
10
|
+
this._name = name;
|
|
11
|
+
this._type = type;
|
|
12
|
+
this._fileType = fileType;
|
|
13
|
+
this._value = value;
|
|
14
|
+
this._language = language;
|
|
15
|
+
this._voice = voice;
|
|
16
|
+
this._hints = hints;
|
|
17
|
+
this._createdAt = createdAt;
|
|
18
|
+
this._updatedAt = updatedAt;
|
|
19
|
+
this._fileLocation = fileLocation;
|
|
20
|
+
}
|
|
21
|
+
// Getters and Setters
|
|
22
|
+
get id() {
|
|
23
|
+
return this._id;
|
|
24
|
+
}
|
|
25
|
+
set id(value) {
|
|
26
|
+
this._id = value;
|
|
27
|
+
}
|
|
28
|
+
get name() {
|
|
29
|
+
return this._name;
|
|
30
|
+
}
|
|
31
|
+
set name(value) {
|
|
32
|
+
this._name = value;
|
|
33
|
+
}
|
|
34
|
+
get type() {
|
|
35
|
+
return this._type;
|
|
36
|
+
}
|
|
37
|
+
set type(value) {
|
|
38
|
+
this._type = value;
|
|
39
|
+
}
|
|
40
|
+
get fileType() {
|
|
41
|
+
return this._fileType;
|
|
42
|
+
}
|
|
43
|
+
set fileType(value) {
|
|
44
|
+
this._fileType = value;
|
|
45
|
+
}
|
|
46
|
+
get value() {
|
|
47
|
+
return this._value;
|
|
48
|
+
}
|
|
49
|
+
set value(value) {
|
|
50
|
+
this._value = value;
|
|
51
|
+
}
|
|
52
|
+
get language() {
|
|
53
|
+
return this._language;
|
|
54
|
+
}
|
|
55
|
+
set language(value) {
|
|
56
|
+
this._language = value;
|
|
57
|
+
}
|
|
58
|
+
get voice() {
|
|
59
|
+
return this._voice;
|
|
60
|
+
}
|
|
61
|
+
set voice(value) {
|
|
62
|
+
this._voice = value;
|
|
63
|
+
}
|
|
64
|
+
get hints() {
|
|
65
|
+
return this._hints;
|
|
66
|
+
}
|
|
67
|
+
set hints(value) {
|
|
68
|
+
this._hints = value;
|
|
69
|
+
}
|
|
70
|
+
get createdAt() {
|
|
71
|
+
return this._createdAt;
|
|
72
|
+
}
|
|
73
|
+
set createdAt(value) {
|
|
74
|
+
this._createdAt = value;
|
|
75
|
+
}
|
|
76
|
+
get updatedAt() {
|
|
77
|
+
return this._updatedAt;
|
|
78
|
+
}
|
|
79
|
+
set updatedAt(value) {
|
|
80
|
+
this._updatedAt = value;
|
|
81
|
+
}
|
|
82
|
+
get fileLocation() {
|
|
83
|
+
return this._fileLocation;
|
|
84
|
+
}
|
|
85
|
+
set fileLocation(value) {
|
|
86
|
+
this._fileLocation = value;
|
|
87
|
+
}
|
|
88
|
+
// Validation method
|
|
89
|
+
validateData() {
|
|
90
|
+
console.log(" data in validation method", this);
|
|
91
|
+
this.validationMessages = [];
|
|
92
|
+
const validationRules = {
|
|
93
|
+
id: {
|
|
94
|
+
validator: (value) => {
|
|
95
|
+
const errors = [];
|
|
96
|
+
if (typeof value !== "string" || value.trim() === "" || !(0, uuid_1.validate)(value)) {
|
|
97
|
+
errors.push("ID must be a valid non-empty UUID.");
|
|
98
|
+
}
|
|
99
|
+
return errors;
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
name: {
|
|
103
|
+
validator: (value) => {
|
|
104
|
+
const errors = [];
|
|
105
|
+
if (typeof value !== "string") {
|
|
106
|
+
errors.push("Name must be a string.");
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
if (value.trim().length < 5) {
|
|
110
|
+
errors.push("Name must be at least 5 characters long.");
|
|
111
|
+
}
|
|
112
|
+
if (!/^[a-zA-Z0-9]/.test(value)) {
|
|
113
|
+
errors.push("Name must start with a letter or number.");
|
|
114
|
+
}
|
|
115
|
+
if (!/[a-zA-Z]/.test(value)) {
|
|
116
|
+
errors.push("Name must contain at least one alphabet character.");
|
|
117
|
+
}
|
|
118
|
+
if (value.length > 100) {
|
|
119
|
+
errors.push("Name must not exceed 100 characters.");
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return errors;
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
type: {
|
|
126
|
+
validator: (value) => {
|
|
127
|
+
return value === "Gather" || value === "Say"
|
|
128
|
+
? []
|
|
129
|
+
: ['Type must be either "Gather" or "Say".'];
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
fileType: {
|
|
133
|
+
validator: (value) => {
|
|
134
|
+
return value === "Text" || value === "Audio"
|
|
135
|
+
? []
|
|
136
|
+
: ['File type must be either "Text" or "Audio".'];
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
value: {
|
|
140
|
+
validator: (value) => {
|
|
141
|
+
const errors = [];
|
|
142
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
143
|
+
errors.push("Value must be a non-empty string.");
|
|
144
|
+
}
|
|
145
|
+
else if (value.trim().length < 5) {
|
|
146
|
+
errors.push("Value must be at least 5 characters long.");
|
|
147
|
+
}
|
|
148
|
+
return errors;
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
language: {
|
|
152
|
+
validator: (value) => value === null || (typeof value === "string" && value.trim() !== "")
|
|
153
|
+
? []
|
|
154
|
+
: ["Language must be a non-empty string or null."],
|
|
155
|
+
},
|
|
156
|
+
voice: {
|
|
157
|
+
validator: (value) => value === null || (typeof value === "string" && value.trim() !== "")
|
|
158
|
+
? []
|
|
159
|
+
: ["Voice must be a non-empty string or null."],
|
|
160
|
+
},
|
|
161
|
+
hints: {
|
|
162
|
+
validator: (value) => value === null || (typeof value === "string" && value.trim() !== "")
|
|
163
|
+
? []
|
|
164
|
+
: ["Hints must be a non-empty string or null."],
|
|
165
|
+
},
|
|
166
|
+
createdAt: {
|
|
167
|
+
validator: (value) => {
|
|
168
|
+
const parsedDate = new Date(value);
|
|
169
|
+
return parsedDate instanceof Date && !isNaN(parsedDate.getTime())
|
|
170
|
+
? []
|
|
171
|
+
: ["CreatedAt must be a valid date."];
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
updatedAt: {
|
|
175
|
+
validator: (value) => {
|
|
176
|
+
const parsedDate = new Date(value);
|
|
177
|
+
return parsedDate instanceof Date && !isNaN(parsedDate.getTime())
|
|
178
|
+
? []
|
|
179
|
+
: ["UpdatedAt must be a valid date."];
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
fileLocation: {
|
|
183
|
+
validator: (value, model) => {
|
|
184
|
+
const errors = [];
|
|
185
|
+
const isAudio = model.fileType === "Audio";
|
|
186
|
+
if (isAudio && (value === null || typeof value !== "string" || value.trim() === "")) {
|
|
187
|
+
errors.push("FileLocation is required when fileType is 'Audio'.");
|
|
188
|
+
}
|
|
189
|
+
else if (value !== null && (typeof value !== "string" || value.trim() === "")) {
|
|
190
|
+
errors.push("FileLocation must be a non-empty string or null.");
|
|
191
|
+
}
|
|
192
|
+
return errors;
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
for (const key in validationRules) {
|
|
197
|
+
if (!validationRules.hasOwnProperty(key))
|
|
198
|
+
continue;
|
|
199
|
+
const validator = validationRules[key].validator;
|
|
200
|
+
const value = this[key];
|
|
201
|
+
const errors = validator(value, this); // pass full model for conditional validation
|
|
202
|
+
for (const msg of errors) {
|
|
203
|
+
this.validationMessages.push({
|
|
204
|
+
type: "Error",
|
|
205
|
+
fieldDescription: key,
|
|
206
|
+
message: msg,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
return this.validationMessages;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
exports.CxConfiguratorGPMPromptModel = CxConfiguratorGPMPromptModel;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseModel } from "../../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../../interface/IBaseModel";
|
|
3
|
+
export declare class CxConfiguratorOtherModel extends BaseModel {
|
|
4
|
+
private _id;
|
|
5
|
+
private _name;
|
|
6
|
+
private _key;
|
|
7
|
+
private _value;
|
|
8
|
+
private _description;
|
|
9
|
+
private _createdAt;
|
|
10
|
+
private _updatedAt;
|
|
11
|
+
constructor(id: string, name: string, key: string, value: string, description: string, createdAt: Date | undefined, updatedAt: Date | undefined);
|
|
12
|
+
get id(): string;
|
|
13
|
+
set id(value: string);
|
|
14
|
+
get name(): string;
|
|
15
|
+
set name(value: string);
|
|
16
|
+
get key(): string;
|
|
17
|
+
set key(value: string);
|
|
18
|
+
get value(): string;
|
|
19
|
+
set value(value: string);
|
|
20
|
+
get description(): string;
|
|
21
|
+
set description(value: string);
|
|
22
|
+
get createdAt(): Date | undefined;
|
|
23
|
+
set createdAt(value: Date | undefined);
|
|
24
|
+
get updatedAt(): Date | undefined;
|
|
25
|
+
set updatedAt(value: Date | undefined);
|
|
26
|
+
validateData(): validationMessage[];
|
|
27
|
+
}
|
|
@@ -1 +1,159 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CxConfiguratorOtherModel = void 0;
|
|
4
|
+
const BaseModel_1 = require("../../abstract/BaseModel");
|
|
5
|
+
const uuid_1 = require("uuid");
|
|
6
|
+
class CxConfiguratorOtherModel extends BaseModel_1.BaseModel {
|
|
7
|
+
constructor(id, name, key, value, description, createdAt, updatedAt) {
|
|
8
|
+
super();
|
|
9
|
+
this._id = id;
|
|
10
|
+
this._name = name;
|
|
11
|
+
this._key = key;
|
|
12
|
+
this._value = value;
|
|
13
|
+
this._description = description;
|
|
14
|
+
this._createdAt = createdAt;
|
|
15
|
+
this._updatedAt = updatedAt;
|
|
16
|
+
}
|
|
17
|
+
// Getters and Setters
|
|
18
|
+
get id() {
|
|
19
|
+
return this._id;
|
|
20
|
+
}
|
|
21
|
+
set id(value) {
|
|
22
|
+
this._id = value;
|
|
23
|
+
}
|
|
24
|
+
get name() {
|
|
25
|
+
return this._name;
|
|
26
|
+
}
|
|
27
|
+
set name(value) {
|
|
28
|
+
this._name = value;
|
|
29
|
+
}
|
|
30
|
+
get key() {
|
|
31
|
+
return this._key;
|
|
32
|
+
}
|
|
33
|
+
set key(value) {
|
|
34
|
+
this._key = value;
|
|
35
|
+
}
|
|
36
|
+
get value() {
|
|
37
|
+
return this._value;
|
|
38
|
+
}
|
|
39
|
+
set value(value) {
|
|
40
|
+
this._value = value;
|
|
41
|
+
}
|
|
42
|
+
get description() {
|
|
43
|
+
return this._description;
|
|
44
|
+
}
|
|
45
|
+
set description(value) {
|
|
46
|
+
this._description = value;
|
|
47
|
+
}
|
|
48
|
+
get createdAt() {
|
|
49
|
+
return this._createdAt;
|
|
50
|
+
}
|
|
51
|
+
set createdAt(value) {
|
|
52
|
+
this._createdAt = value;
|
|
53
|
+
}
|
|
54
|
+
get updatedAt() {
|
|
55
|
+
return this._updatedAt;
|
|
56
|
+
}
|
|
57
|
+
set updatedAt(value) {
|
|
58
|
+
this._updatedAt = value;
|
|
59
|
+
}
|
|
60
|
+
// Validation method
|
|
61
|
+
validateData() {
|
|
62
|
+
console.log(" data in validation method", this);
|
|
63
|
+
this.validationMessages = [];
|
|
64
|
+
const validationRules = {
|
|
65
|
+
id: {
|
|
66
|
+
validator: (value) => {
|
|
67
|
+
const errors = [];
|
|
68
|
+
if (typeof value !== "string" || value.trim() === "" || !(0, uuid_1.validate)(value)) {
|
|
69
|
+
errors.push("ID must be a valid non-empty UUID.");
|
|
70
|
+
}
|
|
71
|
+
return errors;
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
name: {
|
|
75
|
+
validator: (value) => {
|
|
76
|
+
const errors = [];
|
|
77
|
+
if (typeof value !== "string") {
|
|
78
|
+
errors.push("Name must be a string.");
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
if (value.trim().length < 5) {
|
|
82
|
+
errors.push("Name must be at least 5 characters long.");
|
|
83
|
+
}
|
|
84
|
+
if (!/^[a-zA-Z0-9]/.test(value)) {
|
|
85
|
+
errors.push("Name must start with a letter or number.");
|
|
86
|
+
}
|
|
87
|
+
if (!/[a-zA-Z]/.test(value)) {
|
|
88
|
+
errors.push("Name must contain at least one alphabet character.");
|
|
89
|
+
}
|
|
90
|
+
if (value.length > 100) {
|
|
91
|
+
errors.push("Name must not exceed 100 characters.");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return errors;
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
key: {
|
|
98
|
+
validator: (value) => {
|
|
99
|
+
return typeof value === "string" && value.trim() !== ""
|
|
100
|
+
? []
|
|
101
|
+
: ["Key must be a non-empty string."];
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
value: {
|
|
105
|
+
validator: (value) => {
|
|
106
|
+
const errors = [];
|
|
107
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
108
|
+
errors.push("Value must be a non-empty string.");
|
|
109
|
+
}
|
|
110
|
+
return errors;
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
description: {
|
|
114
|
+
validator: (value) => {
|
|
115
|
+
const errors = [];
|
|
116
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
117
|
+
errors.push("Description must be a non-empty string.");
|
|
118
|
+
}
|
|
119
|
+
else if (value.trim().length < 5) {
|
|
120
|
+
errors.push("Description must be at least 5 characters long.");
|
|
121
|
+
}
|
|
122
|
+
return errors;
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
createdAt: {
|
|
126
|
+
validator: (value) => {
|
|
127
|
+
const parsedDate = new Date(value);
|
|
128
|
+
return parsedDate instanceof Date && !isNaN(parsedDate.getTime())
|
|
129
|
+
? []
|
|
130
|
+
: ["CreatedAt must be a valid date."];
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
updatedAt: {
|
|
134
|
+
validator: (value) => {
|
|
135
|
+
const parsedDate = new Date(value);
|
|
136
|
+
return parsedDate instanceof Date && !isNaN(parsedDate.getTime())
|
|
137
|
+
? []
|
|
138
|
+
: ["UpdatedAt must be a valid date."];
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
for (const key in validationRules) {
|
|
143
|
+
if (!validationRules.hasOwnProperty(key))
|
|
144
|
+
continue;
|
|
145
|
+
const validator = validationRules[key].validator;
|
|
146
|
+
const value = this[key];
|
|
147
|
+
const errors = validator(value, this);
|
|
148
|
+
for (const msg of errors) {
|
|
149
|
+
this.validationMessages.push({
|
|
150
|
+
type: "Error",
|
|
151
|
+
fieldDescription: key,
|
|
152
|
+
message: msg,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return this.validationMessages;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
exports.CxConfiguratorOtherModel = CxConfiguratorOtherModel;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BaseModel } from "../../abstract/BaseModel";
|
|
2
|
+
import { validationMessage } from "../../interface/IBaseModel";
|
|
3
|
+
import { QueueMenuCategoryType, QueueMenuMessageType } from "../../types/CxConfig.type";
|
|
4
|
+
export declare class CxConfiguratorQueueMenuModel extends BaseModel {
|
|
5
|
+
private _id;
|
|
6
|
+
private _name;
|
|
7
|
+
private _category;
|
|
8
|
+
private _type;
|
|
9
|
+
private _value;
|
|
10
|
+
private _language;
|
|
11
|
+
private _fileName;
|
|
12
|
+
private _voice;
|
|
13
|
+
private _order;
|
|
14
|
+
private _createdAt;
|
|
15
|
+
private _updatedAt;
|
|
16
|
+
constructor(id: string, name: string, category: QueueMenuCategoryType, type: QueueMenuMessageType, value: string, language: string | undefined | null, fileName: string | undefined | null, voice: string | undefined | null, order: number | undefined | null, createdAt: Date | undefined, updatedAt: Date | undefined);
|
|
17
|
+
get id(): string;
|
|
18
|
+
set id(value: string);
|
|
19
|
+
get name(): string;
|
|
20
|
+
set name(value: string);
|
|
21
|
+
get category(): QueueMenuCategoryType;
|
|
22
|
+
set category(value: QueueMenuCategoryType);
|
|
23
|
+
get type(): QueueMenuMessageType;
|
|
24
|
+
set type(value: QueueMenuMessageType);
|
|
25
|
+
get value(): string;
|
|
26
|
+
set value(value: string);
|
|
27
|
+
get language(): string | undefined | null;
|
|
28
|
+
set language(value: string | undefined | null);
|
|
29
|
+
get fileName(): string | undefined | null;
|
|
30
|
+
set fileName(value: string | undefined | null);
|
|
31
|
+
get voice(): string | undefined | null;
|
|
32
|
+
set voice(value: string | undefined | null);
|
|
33
|
+
get order(): number | undefined | null;
|
|
34
|
+
set order(value: number | undefined | null);
|
|
35
|
+
get createdAt(): Date | undefined;
|
|
36
|
+
set createdAt(value: Date | undefined);
|
|
37
|
+
get updatedAt(): Date | undefined;
|
|
38
|
+
set updatedAt(value: Date | undefined);
|
|
39
|
+
validateData(): validationMessage[];
|
|
40
|
+
}
|