hgs-twilio-class-lib 1.1.53 → 1.1.54
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 +180 -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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Request } from 'express';
|
|
2
|
+
/**
|
|
3
|
+
* Represents the result of a validation operation.
|
|
4
|
+
*/
|
|
5
|
+
interface ValidationResult {
|
|
6
|
+
/**
|
|
7
|
+
* Indicates whether the validation passed or not.
|
|
8
|
+
*/
|
|
9
|
+
isValid: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* An array containing the names of missing parameters.
|
|
12
|
+
*/
|
|
13
|
+
missingParams: string[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Class responsible for validating request parameters and body.
|
|
17
|
+
*/
|
|
18
|
+
declare class RequestValidator {
|
|
19
|
+
/**
|
|
20
|
+
* Validates the query parameters of the request.
|
|
21
|
+
* @param {Request} request - The Express request object.
|
|
22
|
+
* @param {{ name: string, type: string }[]} requiredParams - Array of required query parameters with their types.
|
|
23
|
+
* @returns {ValidationResult} The result of the validation operation.
|
|
24
|
+
*/
|
|
25
|
+
static validateQueryParams(request: Request, requiredParams: {
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}[]): ValidationResult;
|
|
29
|
+
/**
|
|
30
|
+
* Validates the request parameters (route params) of the request.
|
|
31
|
+
* @param {Request} request - The Express request object.
|
|
32
|
+
* @param {{ name: string, type: string }[]} requiredParams - Array of required request parameters with their types.
|
|
33
|
+
* @returns {ValidationResult} The result of the validation operation.
|
|
34
|
+
*/
|
|
35
|
+
static validateRequestParams(request: Request, requiredParams: {
|
|
36
|
+
name: string;
|
|
37
|
+
type: string;
|
|
38
|
+
}[]): ValidationResult;
|
|
39
|
+
/**
|
|
40
|
+
* Validates the request body of the request.
|
|
41
|
+
* @param {Request} request - The Express request object.
|
|
42
|
+
* @param {{ name: string, type: string }[]} requiredFields - Array of required fields in the request body with their types.
|
|
43
|
+
* @returns {ValidationResult} The result of the validation operation.
|
|
44
|
+
*/
|
|
45
|
+
static validateRequestBody(request: Request, requiredFields: {
|
|
46
|
+
name: string;
|
|
47
|
+
type: string;
|
|
48
|
+
}[]): ValidationResult;
|
|
49
|
+
}
|
|
50
|
+
export default RequestValidator;
|
|
@@ -1 +1,77 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Class responsible for validating request parameters and body.
|
|
5
|
+
*/
|
|
6
|
+
class RequestValidator {
|
|
7
|
+
/**
|
|
8
|
+
* Validates the query parameters of the request.
|
|
9
|
+
* @param {Request} request - The Express request object.
|
|
10
|
+
* @param {{ name: string, type: string }[]} requiredParams - Array of required query parameters with their types.
|
|
11
|
+
* @returns {ValidationResult} The result of the validation operation.
|
|
12
|
+
*/
|
|
13
|
+
static validateQueryParams(request, requiredParams) {
|
|
14
|
+
const queryParams = request.query;
|
|
15
|
+
const missingParams = [];
|
|
16
|
+
for (const param of requiredParams) {
|
|
17
|
+
const paramName = param.name;
|
|
18
|
+
const paramType = param.type;
|
|
19
|
+
if (!(paramName in queryParams) || typeof queryParams[paramName] !== paramType) {
|
|
20
|
+
missingParams.push(paramName);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
isValid: missingParams.length === 0,
|
|
25
|
+
missingParams
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Validates the request parameters (route params) of the request.
|
|
30
|
+
* @param {Request} request - The Express request object.
|
|
31
|
+
* @param {{ name: string, type: string }[]} requiredParams - Array of required request parameters with their types.
|
|
32
|
+
* @returns {ValidationResult} The result of the validation operation.
|
|
33
|
+
*/
|
|
34
|
+
static validateRequestParams(request, requiredParams) {
|
|
35
|
+
const requestParams = request.params;
|
|
36
|
+
const missingParams = [];
|
|
37
|
+
for (const param of requiredParams) {
|
|
38
|
+
const paramName = param.name;
|
|
39
|
+
const paramType = param.type;
|
|
40
|
+
if (!(paramName in requestParams) || typeof requestParams[paramName] !== paramType) {
|
|
41
|
+
missingParams.push(paramName);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
isValid: missingParams.length === 0,
|
|
46
|
+
missingParams
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Validates the request body of the request.
|
|
51
|
+
* @param {Request} request - The Express request object.
|
|
52
|
+
* @param {{ name: string, type: string }[]} requiredFields - Array of required fields in the request body with their types.
|
|
53
|
+
* @returns {ValidationResult} The result of the validation operation.
|
|
54
|
+
*/
|
|
55
|
+
static validateRequestBody(request, requiredFields) {
|
|
56
|
+
const requestBody = request.body;
|
|
57
|
+
const missingParams = [];
|
|
58
|
+
if (!requestBody) {
|
|
59
|
+
return {
|
|
60
|
+
isValid: false,
|
|
61
|
+
missingParams
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
for (const field of requiredFields) {
|
|
65
|
+
const fieldName = field.name;
|
|
66
|
+
const fieldType = field.type;
|
|
67
|
+
if (!(fieldName in requestBody) || typeof requestBody[fieldName] !== fieldType) {
|
|
68
|
+
missingParams.push(fieldName);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
isValid: missingParams.length === 0,
|
|
73
|
+
missingParams
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.default = RequestValidator;
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequiredParamsPicker = void 0;
|
|
4
|
+
class RequiredParamsPicker {
|
|
5
|
+
static pick(apiName) {
|
|
6
|
+
return this.requiredParamsMap[apiName];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.RequiredParamsPicker = RequiredParamsPicker;
|
|
10
|
+
RequiredParamsPicker.requiredParamsMap = {
|
|
11
|
+
'commonApi': [{ name: 'server', type: 'string' }],
|
|
12
|
+
'getGpmAll': [],
|
|
13
|
+
// Add more API names and their corresponding required parameters here
|
|
14
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NextFunction, Request, Response } from "express";
|
|
2
|
+
export declare function validateRequiredCommonParams(req: Request, res: Response, next: NextFunction): Response<any, Record<string, any>> | undefined;
|
|
3
|
+
export declare function validateRequiredParams(req: Request, res: Response, next: NextFunction): Response<any, Record<string, any>> | undefined;
|
|
@@ -1 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.validateRequiredParams = exports.validateRequiredCommonParams = void 0;
|
|
7
|
+
const RequireParamsPicker_1 = require("./RequireParamsPicker");
|
|
8
|
+
const RequestValidator_1 = __importDefault(require("./RequestValidator"));
|
|
9
|
+
// Middleware function to validate common required parameters
|
|
10
|
+
function validateRequiredCommonParams(req, res, next) {
|
|
11
|
+
const requiredParams = RequireParamsPicker_1.RequiredParamsPicker.pick('commonApi');
|
|
12
|
+
if (!requiredParams) {
|
|
13
|
+
return res.status(500).json({ error: 'Internal server error' });
|
|
14
|
+
}
|
|
15
|
+
const validateRes = RequestValidator_1.default.validateQueryParams(req, requiredParams);
|
|
16
|
+
if (validateRes.isValid) {
|
|
17
|
+
next();
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
res.status(400).json({ error: 'Required parameters are missing ', missingParams: validateRes.missingParams });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.validateRequiredCommonParams = validateRequiredCommonParams;
|
|
24
|
+
// Middleware function to validate required parameters
|
|
25
|
+
function validateRequiredParams(req, res, next) {
|
|
26
|
+
const apiName = req.query.apiName;
|
|
27
|
+
const requiredParams = RequireParamsPicker_1.RequiredParamsPicker.pick(apiName);
|
|
28
|
+
if (!requiredParams) {
|
|
29
|
+
return res.status(400).json({ error: 'API name not found' });
|
|
30
|
+
}
|
|
31
|
+
const validateRes = RequestValidator_1.default.validateQueryParams(req, requiredParams);
|
|
32
|
+
if (validateRes.isValid) {
|
|
33
|
+
next();
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
res.status(400).json({ error: 'Required parameters are missing ', missingParams: validateRes.missingParams });
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.validateRequiredParams = validateRequiredParams;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { DatabaseFactory } from "./common/abstract/DatabaseFactory";
|
|
2
|
+
import { GPMController } from "./controller/twilio/GPMController";
|
|
3
|
+
import { TwilioAuthTokenConfig } from "./twilio/impl/TwilioAuthTokenConfig";
|
|
4
|
+
import { SyncServiceFactory } from "./twilio/impl/sync/SyncServiceFactory";
|
|
5
|
+
import { CallLogsController } from "./controller/twilio/CallLogsController";
|
|
6
|
+
import { CxConfigAssetController } from "./controller/twilio/CxConfigAssetController";
|
|
7
|
+
import { CxConfigController } from "./controller/twilio/CxConfigController";
|
|
8
|
+
import { CxConfigOtherController } from "./controller/twilio/CxConfigOther";
|
|
9
|
+
import { CxConfigExternalNumbersController } from "./controller/twilio/CxConfigExternalNumbersController";
|
|
10
|
+
import { CxConfigQueueMenuController } from "./controller/twilio/CxConfigQueueMenuController";
|
|
11
|
+
import { CxConfigUIConfigController } from "./controller/twilio/CxConfigUIconfigController";
|
|
12
|
+
import { AuditLogController } from "./controller/twilio/AuditLogController";
|
|
13
|
+
import { TwilioClient } from "./twilio/impl/TwilioClient";
|
|
14
|
+
import { NavigationController } from "./controller/twilio/NavigationController";
|
|
15
|
+
import { QuickLinksController } from "./controller/twilio/QuickLinkController";
|
|
16
|
+
import { QualityFormsController } from "./controller/twilio/QualityFormsController";
|
|
17
|
+
import { RealTimeReportsWGDetailsController } from "./controller/twilio/RealTimeReportsWGDetailsController";
|
|
18
|
+
import { RealTimeReportsQueueDetailsController } from "./controller/twilio/RealTimeReportQueueDetailsController";
|
|
19
|
+
import { PlaybackScreenrecordingsController } from "./controller/aws/PlaybackScreenrecordings";
|
|
20
|
+
import { HoopProfilesListController } from "./controller/twilio/HoopProfilesListController";
|
|
21
|
+
import { HoopOverrideBranchesController } from "./controller/twilio/HoopOverrideBranchesController";
|
|
22
|
+
import { HoopOperationsController } from "./controller/twilio/HoopOperationsController";
|
|
23
|
+
import { HoopHolidaysController } from "./controller/twilio/HoopHolidaysController";
|
|
24
|
+
import { HoopPartialDaysController } from "./controller/twilio/HoopPartialDaysController";
|
|
25
|
+
import { HoopBusinessHoursController } from './controller/twilio/HoopBusinessHoursController';
|
|
26
|
+
import { CallbackAndVoicemailController } from "./controller/twilio/CallbackAndVoicemailController";
|
|
27
|
+
import { HoopMainController } from "./controller/twilio/HoopMainController";
|
|
28
|
+
import { HoopNotesController } from "./controller/twilio/HoopNotesController";
|
|
29
|
+
import { HoopBusinessHoursControllerAConnect } from "./controller/aws/HoopBuisnessHours";
|
|
30
|
+
import { AWSConnectAPIConfig } from "./aws/impl/AWSConnectAPIConfig";
|
|
31
|
+
import { AWSClient } from "./aws/impl/AWSClient";
|
|
32
|
+
import { HoopServiceFactory } from "./aws/impl/HoopServices/HoopServiceFactory";
|
|
33
|
+
import { ChannelSettingsController } from "./controller/twilio/ChannelSettingsController";
|
|
34
|
+
import { TaskInfoPanelController } from "./controller/twilio/TaskInfoPanelController";
|
|
35
|
+
import { AgentScorecardController } from "./controller/twilio/AgentScorecardController";
|
|
36
|
+
import { AgentActionsController } from "./controller/twilio/AgentActionsController";
|
|
37
|
+
import * as models from "./models";
|
|
38
|
+
export { DatabaseFactory, GPMController, TwilioAuthTokenConfig, SyncServiceFactory, CxConfigAssetController, CxConfigController, CallLogsController, CxConfigOtherController, CxConfigExternalNumbersController, CxConfigQueueMenuController, TwilioClient, AuditLogController, QuickLinksController, NavigationController, QualityFormsController, RealTimeReportsWGDetailsController, RealTimeReportsQueueDetailsController, PlaybackScreenrecordingsController, CxConfigUIConfigController, HoopProfilesListController, HoopOverrideBranchesController, HoopOperationsController, HoopHolidaysController, HoopPartialDaysController, HoopBusinessHoursController, CallbackAndVoicemailController, HoopMainController, HoopNotesController, HoopBusinessHoursControllerAConnect, AWSConnectAPIConfig, AWSClient, HoopServiceFactory, ChannelSettingsController, TaskInfoPanelController, AgentScorecardController, AgentActionsController };
|
|
39
|
+
export { models };
|
package/lib/index.js
CHANGED
|
@@ -1 +1,100 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.models = exports.AgentActionsController = exports.AgentScorecardController = exports.TaskInfoPanelController = exports.ChannelSettingsController = exports.HoopServiceFactory = exports.AWSClient = exports.AWSConnectAPIConfig = exports.HoopBusinessHoursControllerAConnect = exports.HoopNotesController = exports.HoopMainController = exports.CallbackAndVoicemailController = exports.HoopBusinessHoursController = exports.HoopPartialDaysController = exports.HoopHolidaysController = exports.HoopOperationsController = exports.HoopOverrideBranchesController = exports.HoopProfilesListController = exports.CxConfigUIConfigController = exports.PlaybackScreenrecordingsController = exports.RealTimeReportsQueueDetailsController = exports.RealTimeReportsWGDetailsController = exports.QualityFormsController = exports.NavigationController = exports.QuickLinksController = exports.AuditLogController = exports.TwilioClient = exports.CxConfigQueueMenuController = exports.CxConfigExternalNumbersController = exports.CxConfigOtherController = exports.CallLogsController = exports.CxConfigController = exports.CxConfigAssetController = exports.SyncServiceFactory = exports.TwilioAuthTokenConfig = exports.GPMController = exports.DatabaseFactory = void 0;
|
|
27
|
+
const DatabaseFactory_1 = require("./common/abstract/DatabaseFactory");
|
|
28
|
+
Object.defineProperty(exports, "DatabaseFactory", { enumerable: true, get: function () { return DatabaseFactory_1.DatabaseFactory; } });
|
|
29
|
+
const GPMController_1 = require("./controller/twilio/GPMController");
|
|
30
|
+
Object.defineProperty(exports, "GPMController", { enumerable: true, get: function () { return GPMController_1.GPMController; } });
|
|
31
|
+
const TwilioAuthTokenConfig_1 = require("./twilio/impl/TwilioAuthTokenConfig");
|
|
32
|
+
Object.defineProperty(exports, "TwilioAuthTokenConfig", { enumerable: true, get: function () { return TwilioAuthTokenConfig_1.TwilioAuthTokenConfig; } });
|
|
33
|
+
const SyncServiceFactory_1 = require("./twilio/impl/sync/SyncServiceFactory");
|
|
34
|
+
Object.defineProperty(exports, "SyncServiceFactory", { enumerable: true, get: function () { return SyncServiceFactory_1.SyncServiceFactory; } });
|
|
35
|
+
const CallLogsController_1 = require("./controller/twilio/CallLogsController");
|
|
36
|
+
Object.defineProperty(exports, "CallLogsController", { enumerable: true, get: function () { return CallLogsController_1.CallLogsController; } });
|
|
37
|
+
const CxConfigAssetController_1 = require("./controller/twilio/CxConfigAssetController");
|
|
38
|
+
Object.defineProperty(exports, "CxConfigAssetController", { enumerable: true, get: function () { return CxConfigAssetController_1.CxConfigAssetController; } });
|
|
39
|
+
const CxConfigController_1 = require("./controller/twilio/CxConfigController");
|
|
40
|
+
Object.defineProperty(exports, "CxConfigController", { enumerable: true, get: function () { return CxConfigController_1.CxConfigController; } });
|
|
41
|
+
const CxConfigOther_1 = require("./controller/twilio/CxConfigOther");
|
|
42
|
+
Object.defineProperty(exports, "CxConfigOtherController", { enumerable: true, get: function () { return CxConfigOther_1.CxConfigOtherController; } });
|
|
43
|
+
const CxConfigExternalNumbersController_1 = require("./controller/twilio/CxConfigExternalNumbersController");
|
|
44
|
+
Object.defineProperty(exports, "CxConfigExternalNumbersController", { enumerable: true, get: function () { return CxConfigExternalNumbersController_1.CxConfigExternalNumbersController; } });
|
|
45
|
+
const CxConfigQueueMenuController_1 = require("./controller/twilio/CxConfigQueueMenuController");
|
|
46
|
+
Object.defineProperty(exports, "CxConfigQueueMenuController", { enumerable: true, get: function () { return CxConfigQueueMenuController_1.CxConfigQueueMenuController; } });
|
|
47
|
+
const CxConfigUIconfigController_1 = require("./controller/twilio/CxConfigUIconfigController");
|
|
48
|
+
Object.defineProperty(exports, "CxConfigUIConfigController", { enumerable: true, get: function () { return CxConfigUIconfigController_1.CxConfigUIConfigController; } });
|
|
49
|
+
const AuditLogController_1 = require("./controller/twilio/AuditLogController");
|
|
50
|
+
Object.defineProperty(exports, "AuditLogController", { enumerable: true, get: function () { return AuditLogController_1.AuditLogController; } });
|
|
51
|
+
const TwilioClient_1 = require("./twilio/impl/TwilioClient");
|
|
52
|
+
Object.defineProperty(exports, "TwilioClient", { enumerable: true, get: function () { return TwilioClient_1.TwilioClient; } });
|
|
53
|
+
const NavigationController_1 = require("./controller/twilio/NavigationController");
|
|
54
|
+
Object.defineProperty(exports, "NavigationController", { enumerable: true, get: function () { return NavigationController_1.NavigationController; } });
|
|
55
|
+
const QuickLinkController_1 = require("./controller/twilio/QuickLinkController");
|
|
56
|
+
Object.defineProperty(exports, "QuickLinksController", { enumerable: true, get: function () { return QuickLinkController_1.QuickLinksController; } });
|
|
57
|
+
const QualityFormsController_1 = require("./controller/twilio/QualityFormsController");
|
|
58
|
+
Object.defineProperty(exports, "QualityFormsController", { enumerable: true, get: function () { return QualityFormsController_1.QualityFormsController; } });
|
|
59
|
+
const RealTimeReportsWGDetailsController_1 = require("./controller/twilio/RealTimeReportsWGDetailsController");
|
|
60
|
+
Object.defineProperty(exports, "RealTimeReportsWGDetailsController", { enumerable: true, get: function () { return RealTimeReportsWGDetailsController_1.RealTimeReportsWGDetailsController; } });
|
|
61
|
+
const RealTimeReportQueueDetailsController_1 = require("./controller/twilio/RealTimeReportQueueDetailsController");
|
|
62
|
+
Object.defineProperty(exports, "RealTimeReportsQueueDetailsController", { enumerable: true, get: function () { return RealTimeReportQueueDetailsController_1.RealTimeReportsQueueDetailsController; } });
|
|
63
|
+
const PlaybackScreenrecordings_1 = require("./controller/aws/PlaybackScreenrecordings");
|
|
64
|
+
Object.defineProperty(exports, "PlaybackScreenrecordingsController", { enumerable: true, get: function () { return PlaybackScreenrecordings_1.PlaybackScreenrecordingsController; } });
|
|
65
|
+
const HoopProfilesListController_1 = require("./controller/twilio/HoopProfilesListController");
|
|
66
|
+
Object.defineProperty(exports, "HoopProfilesListController", { enumerable: true, get: function () { return HoopProfilesListController_1.HoopProfilesListController; } });
|
|
67
|
+
const HoopOverrideBranchesController_1 = require("./controller/twilio/HoopOverrideBranchesController");
|
|
68
|
+
Object.defineProperty(exports, "HoopOverrideBranchesController", { enumerable: true, get: function () { return HoopOverrideBranchesController_1.HoopOverrideBranchesController; } });
|
|
69
|
+
const HoopOperationsController_1 = require("./controller/twilio/HoopOperationsController");
|
|
70
|
+
Object.defineProperty(exports, "HoopOperationsController", { enumerable: true, get: function () { return HoopOperationsController_1.HoopOperationsController; } });
|
|
71
|
+
const HoopHolidaysController_1 = require("./controller/twilio/HoopHolidaysController");
|
|
72
|
+
Object.defineProperty(exports, "HoopHolidaysController", { enumerable: true, get: function () { return HoopHolidaysController_1.HoopHolidaysController; } });
|
|
73
|
+
const HoopPartialDaysController_1 = require("./controller/twilio/HoopPartialDaysController");
|
|
74
|
+
Object.defineProperty(exports, "HoopPartialDaysController", { enumerable: true, get: function () { return HoopPartialDaysController_1.HoopPartialDaysController; } });
|
|
75
|
+
const HoopBusinessHoursController_1 = require("./controller/twilio/HoopBusinessHoursController");
|
|
76
|
+
Object.defineProperty(exports, "HoopBusinessHoursController", { enumerable: true, get: function () { return HoopBusinessHoursController_1.HoopBusinessHoursController; } });
|
|
77
|
+
const CallbackAndVoicemailController_1 = require("./controller/twilio/CallbackAndVoicemailController");
|
|
78
|
+
Object.defineProperty(exports, "CallbackAndVoicemailController", { enumerable: true, get: function () { return CallbackAndVoicemailController_1.CallbackAndVoicemailController; } });
|
|
79
|
+
const HoopMainController_1 = require("./controller/twilio/HoopMainController");
|
|
80
|
+
Object.defineProperty(exports, "HoopMainController", { enumerable: true, get: function () { return HoopMainController_1.HoopMainController; } });
|
|
81
|
+
const HoopNotesController_1 = require("./controller/twilio/HoopNotesController");
|
|
82
|
+
Object.defineProperty(exports, "HoopNotesController", { enumerable: true, get: function () { return HoopNotesController_1.HoopNotesController; } });
|
|
83
|
+
const HoopBuisnessHours_1 = require("./controller/aws/HoopBuisnessHours");
|
|
84
|
+
Object.defineProperty(exports, "HoopBusinessHoursControllerAConnect", { enumerable: true, get: function () { return HoopBuisnessHours_1.HoopBusinessHoursControllerAConnect; } });
|
|
85
|
+
const AWSConnectAPIConfig_1 = require("./aws/impl/AWSConnectAPIConfig");
|
|
86
|
+
Object.defineProperty(exports, "AWSConnectAPIConfig", { enumerable: true, get: function () { return AWSConnectAPIConfig_1.AWSConnectAPIConfig; } });
|
|
87
|
+
const AWSClient_1 = require("./aws/impl/AWSClient");
|
|
88
|
+
Object.defineProperty(exports, "AWSClient", { enumerable: true, get: function () { return AWSClient_1.AWSClient; } });
|
|
89
|
+
const HoopServiceFactory_1 = require("./aws/impl/HoopServices/HoopServiceFactory");
|
|
90
|
+
Object.defineProperty(exports, "HoopServiceFactory", { enumerable: true, get: function () { return HoopServiceFactory_1.HoopServiceFactory; } });
|
|
91
|
+
const ChannelSettingsController_1 = require("./controller/twilio/ChannelSettingsController");
|
|
92
|
+
Object.defineProperty(exports, "ChannelSettingsController", { enumerable: true, get: function () { return ChannelSettingsController_1.ChannelSettingsController; } });
|
|
93
|
+
const TaskInfoPanelController_1 = require("./controller/twilio/TaskInfoPanelController");
|
|
94
|
+
Object.defineProperty(exports, "TaskInfoPanelController", { enumerable: true, get: function () { return TaskInfoPanelController_1.TaskInfoPanelController; } });
|
|
95
|
+
const AgentScorecardController_1 = require("./controller/twilio/AgentScorecardController");
|
|
96
|
+
Object.defineProperty(exports, "AgentScorecardController", { enumerable: true, get: function () { return AgentScorecardController_1.AgentScorecardController; } });
|
|
97
|
+
const AgentActionsController_1 = require("./controller/twilio/AgentActionsController");
|
|
98
|
+
Object.defineProperty(exports, "AgentActionsController", { enumerable: true, get: function () { return AgentActionsController_1.AgentActionsController; } });
|
|
99
|
+
const models = __importStar(require("./models"));
|
|
100
|
+
exports.models = models;
|
|
File without changes
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { profileProperty } from "./Profile.model";
|
|
3
|
+
// type batchSkills = {
|
|
4
|
+
// skillId: string;
|
|
5
|
+
// skillName: string;
|
|
6
|
+
// skillLevel: string;
|
|
7
|
+
// };
|
|
8
|
+
// type batchUpdateSkillsProperty = {
|
|
9
|
+
// batchSkills: batchSkills[];
|
|
10
|
+
// profiles: profileProperty[];
|
|
11
|
+
// };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
type generalSettings = {
|
|
2
|
+
applicationLabel: string;
|
|
3
|
+
desktopLogo: string;
|
|
4
|
+
mobileLogo: string;
|
|
5
|
+
favIcon: string;
|
|
6
|
+
alternateText: string;
|
|
7
|
+
};
|
|
8
|
+
type generalVoice = {
|
|
9
|
+
alert: string;
|
|
10
|
+
autoAccept: boolean;
|
|
11
|
+
autoComplete: boolean;
|
|
12
|
+
autoCallRecording: boolean;
|
|
13
|
+
autoCallTranscript: boolean;
|
|
14
|
+
customReports: boolean;
|
|
15
|
+
waitMusic: {
|
|
16
|
+
isTTSEnabled: boolean;
|
|
17
|
+
welcomeMessage: string;
|
|
18
|
+
welcomeMessageVoice: string;
|
|
19
|
+
audioFile: string;
|
|
20
|
+
};
|
|
21
|
+
customDirectPhoneNumber: {
|
|
22
|
+
isEnabled: boolean;
|
|
23
|
+
phoneNumber: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type greetingVoice = {};
|
|
27
|
+
type voiceSettings = {
|
|
28
|
+
generalVoice: generalVoice;
|
|
29
|
+
greetingVoice: greetingVoice;
|
|
30
|
+
};
|
|
31
|
+
type generalChat = {
|
|
32
|
+
alert: string;
|
|
33
|
+
autoAccept: boolean;
|
|
34
|
+
autoComplete: boolean;
|
|
35
|
+
autoScreenRecording: boolean;
|
|
36
|
+
customReports: boolean;
|
|
37
|
+
waitMessage: string;
|
|
38
|
+
};
|
|
39
|
+
type greetingChat = {};
|
|
40
|
+
type chatSettings = {
|
|
41
|
+
generalChat: generalChat;
|
|
42
|
+
greetingChat: greetingChat;
|
|
43
|
+
};
|
|
44
|
+
type generalVideo = {
|
|
45
|
+
alert: boolean;
|
|
46
|
+
autoAccept: boolean;
|
|
47
|
+
autoRecording: boolean;
|
|
48
|
+
autoScreenRecording: boolean;
|
|
49
|
+
autoTranscript: boolean;
|
|
50
|
+
customReports: boolean;
|
|
51
|
+
waitMusic: {
|
|
52
|
+
isTTSEnabled: boolean;
|
|
53
|
+
audioFile: string;
|
|
54
|
+
};
|
|
55
|
+
customDirectPhoneNumber: {
|
|
56
|
+
isEnabled: boolean;
|
|
57
|
+
phoneNumber: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
type greetingVideo = {};
|
|
61
|
+
type videoSettings = {
|
|
62
|
+
generalVideo: generalVideo;
|
|
63
|
+
greetingVideo: greetingVideo;
|
|
64
|
+
};
|
|
65
|
+
type generalSMS = {
|
|
66
|
+
alert: string;
|
|
67
|
+
autoScreenRecording: boolean;
|
|
68
|
+
customReports: boolean;
|
|
69
|
+
waitMessage: string;
|
|
70
|
+
};
|
|
71
|
+
type greetingSMS = {};
|
|
72
|
+
type smsSettings = {
|
|
73
|
+
generalSMS: generalSMS;
|
|
74
|
+
greetingSMS: greetingSMS;
|
|
75
|
+
};
|
|
76
|
+
type taskInfo = {
|
|
77
|
+
key: string;
|
|
78
|
+
value: string[];
|
|
79
|
+
};
|
|
80
|
+
type ChannelSettingsTaskProperty = {
|
|
81
|
+
general: generalSettings;
|
|
82
|
+
voice: voiceSettings;
|
|
83
|
+
chat: chatSettings;
|
|
84
|
+
video: videoSettings;
|
|
85
|
+
sms: smsSettings;
|
|
86
|
+
taskInfo: taskInfo[];
|
|
87
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type inputType = "checkbox" | "input" | "dropdown" | "switch" | "dateRange" | "dateTimeRange";
|
|
2
|
+
export type filterProperty = {
|
|
3
|
+
type: inputType;
|
|
4
|
+
attributeName: string;
|
|
5
|
+
dataList?: Array<any>;
|
|
6
|
+
isRequired?: boolean;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
isSelectAll?: boolean;
|
|
9
|
+
isAutocomplete?: boolean;
|
|
10
|
+
hasError?: boolean;
|
|
11
|
+
isMultiselect?: boolean;
|
|
12
|
+
label: string;
|
|
13
|
+
initialValue?: any;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lib/models/Hoop.model.js
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
// export type profilesListModel = {
|
|
3
|
+
// profileId: string;
|
|
4
|
+
// profileName: string;
|
|
5
|
+
// timeZone: string;
|
|
6
|
+
// createdAt: Date | undefined;
|
|
7
|
+
// updatedAt: Date | undefined;
|
|
8
|
+
// };
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type RoleType = "admin" | "agent" | "supervisor";
|
|
2
|
+
export type ManagementRoleType = "admin" | "supervisor";
|
|
3
|
+
export type pluginProperty = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
is_enabled: boolean;
|
|
7
|
+
visible: boolean;
|
|
8
|
+
appliedVersion: string;
|
|
9
|
+
latestVersion: string;
|
|
10
|
+
dateOflatestVersion: string;
|
|
11
|
+
description: string;
|
|
12
|
+
route: string;
|
|
13
|
+
managementAccessRoles: ManagementRoleType;
|
|
14
|
+
featureAccessRoles: RoleType[];
|
|
15
|
+
createdAt: Date | undefined;
|
|
16
|
+
updatedAt: Date | undefined;
|
|
17
|
+
};
|
|
18
|
+
export declare enum NavigationAllowedFields {
|
|
19
|
+
appliedVersion = 0,
|
|
20
|
+
latestVersion = 1
|
|
21
|
+
}
|
|
22
|
+
export type NavigationFilterFields = {
|
|
23
|
+
name: "string";
|
|
24
|
+
is_enabled: "boolean";
|
|
25
|
+
appliedVersion: "string";
|
|
26
|
+
latestVersion: "string";
|
|
27
|
+
dateOflatestVersion: "dateRange";
|
|
28
|
+
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NavigationAllowedFields = void 0;
|
|
4
|
+
var NavigationAllowedFields;
|
|
5
|
+
(function (NavigationAllowedFields) {
|
|
6
|
+
NavigationAllowedFields[NavigationAllowedFields["appliedVersion"] = 0] = "appliedVersion";
|
|
7
|
+
NavigationAllowedFields[NavigationAllowedFields["latestVersion"] = 1] = "latestVersion";
|
|
8
|
+
})(NavigationAllowedFields || (exports.NavigationAllowedFields = NavigationAllowedFields = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IBaseModel, validationMessage } from "../interface/IBaseModel";
|
|
2
|
+
export declare abstract class BaseModel implements IBaseModel {
|
|
3
|
+
validationMessages: validationMessage[];
|
|
4
|
+
constructor();
|
|
5
|
+
setValidationMessages(data: validationMessage): void;
|
|
6
|
+
abstract validateData(): validationMessage[];
|
|
7
|
+
/**
|
|
8
|
+
* Getter to serialize the instance into a plain object.
|
|
9
|
+
*/
|
|
10
|
+
get serialize(): Record<string, any>;
|
|
11
|
+
/**
|
|
12
|
+
* Deserialize a plain object into the current instance.
|
|
13
|
+
* Accepts only class-defined properties.
|
|
14
|
+
* @param data - Object containing data to populate
|
|
15
|
+
*/
|
|
16
|
+
deserialize(data: Record<string, any>): void;
|
|
17
|
+
}
|