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,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IError } from "../interface/IError";
|
|
2
|
+
import { IErrorDetails } from "../interface/IErrorDetails";
|
|
3
|
+
export declare abstract class CommonError implements IError {
|
|
4
|
+
private _error;
|
|
5
|
+
constructor(error: IErrorDetails);
|
|
6
|
+
abstract handleError(error: IErrorDetails): IErrorDetails;
|
|
7
|
+
get error(): IErrorDetails;
|
|
8
|
+
}
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommonError = void 0;
|
|
4
|
+
class CommonError {
|
|
5
|
+
constructor(error) {
|
|
6
|
+
this._error = error;
|
|
7
|
+
}
|
|
8
|
+
get error() {
|
|
9
|
+
return this._error;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.CommonError = CommonError;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IDatabase } from "../interface/IDatabase";
|
|
2
|
+
import { IDatabaseObjectStore } from "../interface/IDatabaseObjectStore";
|
|
3
|
+
import { IDatabaseTransaction } from "../interface/IDatabaseTransaction";
|
|
4
|
+
export declare abstract class Database implements IDatabase {
|
|
5
|
+
private _name;
|
|
6
|
+
private _objectStoreNames;
|
|
7
|
+
private _objectStore;
|
|
8
|
+
private _version;
|
|
9
|
+
constructor(name: string, version: number);
|
|
10
|
+
get name(): string;
|
|
11
|
+
set name(value: string);
|
|
12
|
+
get version(): number;
|
|
13
|
+
set version(value: number);
|
|
14
|
+
get objectStore(): IDatabaseObjectStore[];
|
|
15
|
+
get objectStoreNames(): DOMStringList;
|
|
16
|
+
abstract onabort: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
17
|
+
abstract onclose: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
18
|
+
abstract onerror: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
19
|
+
abstract onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
|
|
20
|
+
abstract close(): void;
|
|
21
|
+
abstract createObjectStore(name: string, options?: IDBObjectStoreParameters | undefined): IDatabaseObjectStore;
|
|
22
|
+
abstract fetchObjectStores(): IDatabaseObjectStore[];
|
|
23
|
+
abstract deleteObjectStore(name: string): void;
|
|
24
|
+
abstract transaction(storeNames: string | string[], mode?: IDBTransactionMode | undefined, options?: IDBTransactionOptions | undefined): IDatabaseTransaction;
|
|
25
|
+
abstract transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode | undefined, options?: IDBTransactionOptions | undefined): IDatabaseTransaction;
|
|
26
|
+
abstract transaction(storeNames: unknown, mode?: unknown, options?: unknown): IDatabaseTransaction;
|
|
27
|
+
abstract addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
28
|
+
abstract addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
29
|
+
abstract addEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
30
|
+
abstract removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
31
|
+
abstract removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
32
|
+
abstract removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
33
|
+
abstract dispatchEvent(event: Event): boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare class SimpleDOMStringList implements DOMStringList {
|
|
36
|
+
private items;
|
|
37
|
+
get length(): number;
|
|
38
|
+
item(index: number): string | null;
|
|
39
|
+
contains(str: string): boolean;
|
|
40
|
+
add(str: string): void;
|
|
41
|
+
remove(str: string): void;
|
|
42
|
+
[Symbol.iterator](): IterableIterator<string>;
|
|
43
|
+
[index: number]: string;
|
|
44
|
+
}
|
|
@@ -1 +1,58 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimpleDOMStringList = exports.Database = void 0;
|
|
4
|
+
class Database {
|
|
5
|
+
// Below code is not required as the object store need to be generated from Database class not from intantiating class
|
|
6
|
+
// constructor(name: string, version: number, objectStore: IDatabaseObjectStore[]);
|
|
7
|
+
// constructor(name: string, version: number, objectStore?: IDatabaseObjectStore[])
|
|
8
|
+
constructor(name, version) {
|
|
9
|
+
this._name = name;
|
|
10
|
+
this._version = version;
|
|
11
|
+
this._objectStoreNames = new SimpleDOMStringList();
|
|
12
|
+
}
|
|
13
|
+
get name() {
|
|
14
|
+
return this._name;
|
|
15
|
+
}
|
|
16
|
+
set name(value) {
|
|
17
|
+
this._name = value;
|
|
18
|
+
}
|
|
19
|
+
get version() {
|
|
20
|
+
return this._version;
|
|
21
|
+
}
|
|
22
|
+
set version(value) {
|
|
23
|
+
this._version = value;
|
|
24
|
+
}
|
|
25
|
+
get objectStore() {
|
|
26
|
+
return this._objectStore;
|
|
27
|
+
}
|
|
28
|
+
get objectStoreNames() {
|
|
29
|
+
return this._objectStoreNames;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.Database = Database;
|
|
33
|
+
class SimpleDOMStringList {
|
|
34
|
+
constructor() {
|
|
35
|
+
this.items = [];
|
|
36
|
+
}
|
|
37
|
+
get length() {
|
|
38
|
+
return this.items.length;
|
|
39
|
+
}
|
|
40
|
+
item(index) {
|
|
41
|
+
var _a;
|
|
42
|
+
return (_a = this.items[index]) !== null && _a !== void 0 ? _a : null;
|
|
43
|
+
}
|
|
44
|
+
contains(str) {
|
|
45
|
+
return this.items.includes(str);
|
|
46
|
+
}
|
|
47
|
+
add(str) {
|
|
48
|
+
if (!this.contains(str))
|
|
49
|
+
this.items.push(str);
|
|
50
|
+
}
|
|
51
|
+
remove(str) {
|
|
52
|
+
this.items = this.items.filter(i => i !== str);
|
|
53
|
+
}
|
|
54
|
+
[Symbol.iterator]() {
|
|
55
|
+
return this.items[Symbol.iterator]();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.SimpleDOMStringList = SimpleDOMStringList;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IDatabaseClient } from "../interface/IDatabaseClient";
|
|
2
|
+
import { IDatabaseClientConfig } from "../interface/IDatabaseConfig";
|
|
3
|
+
export declare abstract class DatabaseClient implements IDatabaseClient {
|
|
4
|
+
private _databaseInstance;
|
|
5
|
+
private _databaseConfig;
|
|
6
|
+
constructor(databaseConfig: IDatabaseClientConfig);
|
|
7
|
+
get databaseInstance(): any;
|
|
8
|
+
set databaseInstance(value: any);
|
|
9
|
+
get databaseConfig(): IDatabaseClientConfig;
|
|
10
|
+
set databaseConfig(value: IDatabaseClientConfig);
|
|
11
|
+
}
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DatabaseClient = void 0;
|
|
4
|
+
class DatabaseClient {
|
|
5
|
+
constructor(databaseConfig) {
|
|
6
|
+
this._databaseConfig = databaseConfig;
|
|
7
|
+
}
|
|
8
|
+
get databaseInstance() {
|
|
9
|
+
return this._databaseInstance;
|
|
10
|
+
}
|
|
11
|
+
set databaseInstance(value) {
|
|
12
|
+
this._databaseInstance = value;
|
|
13
|
+
}
|
|
14
|
+
get databaseConfig() {
|
|
15
|
+
return this._databaseConfig;
|
|
16
|
+
}
|
|
17
|
+
set databaseConfig(value) {
|
|
18
|
+
this._databaseConfig = this.databaseConfig;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.DatabaseClient = DatabaseClient;
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DatabaseClientConfig = void 0;
|
|
4
|
+
class DatabaseClientConfig {
|
|
5
|
+
constructor(type) {
|
|
6
|
+
this.type = type;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.DatabaseClientConfig = DatabaseClientConfig;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { IDatabaseInfo } from "../interface/IDatabaesInfo";
|
|
2
|
+
import { IDatabase } from "../interface/IDatabase";
|
|
3
|
+
import { IDatabaseDBOpenRequest } from "../interface/IDatabaseDBOpenRequest";
|
|
4
|
+
import { IDatabaseClient } from "../interface/IDatabaseClient";
|
|
5
|
+
import { IDatabaseFactory } from "../interface/IDatabaseFactory";
|
|
6
|
+
import { IDatabaseRequest } from "../interface/IDatabaseRequest";
|
|
7
|
+
/**
|
|
8
|
+
* Factory class for creating database instances.
|
|
9
|
+
* @abstract
|
|
10
|
+
* @implements {IDatabaseFactory}
|
|
11
|
+
*/
|
|
12
|
+
export declare abstract class DatabaseFactory implements IDatabaseFactory {
|
|
13
|
+
/**
|
|
14
|
+
* the database client.
|
|
15
|
+
* @private
|
|
16
|
+
* @type {IDatabaseClient}
|
|
17
|
+
*/
|
|
18
|
+
private _databaseClient;
|
|
19
|
+
/**
|
|
20
|
+
* Constructs a new DatabaseFactory instance.
|
|
21
|
+
* @param {IDatabaseClientConfig} value - The configuration for the database client.
|
|
22
|
+
*/
|
|
23
|
+
constructor(value: IDatabaseClient);
|
|
24
|
+
/**
|
|
25
|
+
* Gets the configuration for the database client.
|
|
26
|
+
* @returns {IDatabaseClientConfig} The configuration for the database client.
|
|
27
|
+
*/
|
|
28
|
+
get databaseClient(): IDatabaseClient;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the configuration for the database client.
|
|
31
|
+
* @param {IDatabaseClientConfig} value - The configuration for the database client.
|
|
32
|
+
*/
|
|
33
|
+
set databaseClient(value: IDatabaseClient);
|
|
34
|
+
/**
|
|
35
|
+
* Opens a connection to the database.
|
|
36
|
+
* @abstract
|
|
37
|
+
* @returns {IDatabaseOpenDBRequest} The opened database factory instance.
|
|
38
|
+
*/
|
|
39
|
+
abstract open(name: string, version?: number): IDatabaseDBOpenRequest;
|
|
40
|
+
abstract asyncOpen(name: string, version?: number): Promise<IDatabaseDBOpenRequest>;
|
|
41
|
+
/**
|
|
42
|
+
* Deletes the database.
|
|
43
|
+
* @abstract
|
|
44
|
+
* @returns {IDatabaseOpenDBRequest} The opened database factory instance.
|
|
45
|
+
*/
|
|
46
|
+
abstract deleteDatabase(name: string): IDatabaseDBOpenRequest;
|
|
47
|
+
/**
|
|
48
|
+
* Gets a list of databases.
|
|
49
|
+
* @abstract
|
|
50
|
+
* @returns {Promise<IDatabaseInfo[]>} An array of database factory instances.
|
|
51
|
+
*/
|
|
52
|
+
abstract databases(): Promise<IDatabaseInfo[]>;
|
|
53
|
+
/**
|
|
54
|
+
* Creates a new database.
|
|
55
|
+
* @abstract
|
|
56
|
+
* @param {IDatabase} database - The database instance to be created.
|
|
57
|
+
* @returns {IDatabaseRequest<any>} An IDBRequest object representing the asynchronous operation to create the database.
|
|
58
|
+
*/
|
|
59
|
+
abstract create(database: IDatabase): Promise<IDatabaseRequest<IDatabase>>;
|
|
60
|
+
/**
|
|
61
|
+
* Compares two values and returns a number indicating their relative order.
|
|
62
|
+
* @abstract
|
|
63
|
+
* @param {*} first - The first value to compare.
|
|
64
|
+
* @param {*} second - The second value to compare.
|
|
65
|
+
* @returns {number} A negative value if the first value is less than the second,
|
|
66
|
+
* a positive value if the first value is greater than the second,
|
|
67
|
+
* or zero if the values are equal.
|
|
68
|
+
*/
|
|
69
|
+
abstract cmp(first: any, second: any): number;
|
|
70
|
+
}
|
|
@@ -1 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DatabaseFactory = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Factory class for creating database instances.
|
|
6
|
+
* @abstract
|
|
7
|
+
* @implements {IDatabaseFactory}
|
|
8
|
+
*/
|
|
9
|
+
class DatabaseFactory {
|
|
10
|
+
/**
|
|
11
|
+
* Constructs a new DatabaseFactory instance.
|
|
12
|
+
* @param {IDatabaseClientConfig} value - The configuration for the database client.
|
|
13
|
+
*/
|
|
14
|
+
constructor(value) {
|
|
15
|
+
this._databaseClient = value;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Gets the configuration for the database client.
|
|
19
|
+
* @returns {IDatabaseClientConfig} The configuration for the database client.
|
|
20
|
+
*/
|
|
21
|
+
get databaseClient() {
|
|
22
|
+
return this._databaseClient;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Sets the configuration for the database client.
|
|
26
|
+
* @param {IDatabaseClientConfig} value - The configuration for the database client.
|
|
27
|
+
*/
|
|
28
|
+
set databaseClient(value) {
|
|
29
|
+
this._databaseClient = value;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.DatabaseFactory = DatabaseFactory;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IDatabaseObjectStore } from "../interface/IDatabaseObjectStore";
|
|
2
|
+
import { SearchParameterType } from "../type/SearchParameterType";
|
|
3
|
+
export declare abstract class DatabaseObjectStore implements IDatabaseObjectStore {
|
|
4
|
+
autoIncrement: boolean;
|
|
5
|
+
indexNames: DOMStringList;
|
|
6
|
+
keyPath: string | string[];
|
|
7
|
+
name: string;
|
|
8
|
+
transaction: IDBTransaction;
|
|
9
|
+
constructor(name: string, transaction: IDBTransaction, autoIncrement?: boolean, indexNames?: DOMStringList, keyPath?: string);
|
|
10
|
+
abstract add(value: any, key?: IDBValidKey | undefined): IDBRequest<IDBValidKey>;
|
|
11
|
+
abstract clear(): IDBRequest<undefined>;
|
|
12
|
+
abstract count(query?: IDBValidKey | IDBKeyRange | undefined): IDBRequest<number>;
|
|
13
|
+
abstract createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters | undefined): IDBIndex;
|
|
14
|
+
abstract createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters | undefined): IDBIndex;
|
|
15
|
+
abstract createIndex(name: unknown, keyPath: unknown, options?: unknown): IDBIndex;
|
|
16
|
+
abstract delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
|
|
17
|
+
abstract delete(query: IDBValidKey | IDBKeyRange): Promise<IDBRequest<undefined>>;
|
|
18
|
+
abstract deleteIndex(name: string): void;
|
|
19
|
+
abstract get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
|
|
20
|
+
abstract getAll(query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined): IDBRequest<any[]>;
|
|
21
|
+
abstract getAll(query: SearchParameterType, count?: number | undefined): Promise<IDBRequest<any[]>>;
|
|
22
|
+
abstract getAllKeys(query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined): IDBRequest<IDBValidKey[]>;
|
|
23
|
+
abstract getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
|
|
24
|
+
abstract index(name: string): IDBIndex;
|
|
25
|
+
abstract openCursor(query?: IDBValidKey | IDBKeyRange | null | undefined, direction?: IDBCursorDirection | undefined): IDBRequest<IDBCursorWithValue | null>;
|
|
26
|
+
abstract openKeyCursor(query?: IDBValidKey | IDBKeyRange | null | undefined, direction?: IDBCursorDirection | undefined): IDBRequest<IDBCursor | null>;
|
|
27
|
+
abstract put(value: any, key?: IDBValidKey | undefined): IDBRequest<IDBValidKey>;
|
|
28
|
+
abstract put(value: Object, key: IDBValidKey): Promise<IDBRequest<IDBValidKey>>;
|
|
29
|
+
}
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DatabaseObjectStore = void 0;
|
|
4
|
+
class DatabaseObjectStore {
|
|
5
|
+
constructor(name, transaction, autoIncrement, indexNames, keyPath) {
|
|
6
|
+
this.name = name;
|
|
7
|
+
this.autoIncrement = autoIncrement || true;
|
|
8
|
+
this.keyPath = keyPath || [];
|
|
9
|
+
this.indexNames = indexNames;
|
|
10
|
+
this.transaction = transaction;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.DatabaseObjectStore = DatabaseObjectStore;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IDatabase } from "../interface/IDatabase";
|
|
2
|
+
import { IDatabaseDBOpenRequest } from "../interface/IDatabaseDBOpenRequest";
|
|
3
|
+
import { IDatabaseObjectStore } from "../interface/IDatabaseObjectStore";
|
|
4
|
+
import { IDatabaseRequest } from "../interface/IDatabaseRequest";
|
|
5
|
+
import { IDatabaseTransaction } from "../interface/IDatabaseTransaction";
|
|
6
|
+
export declare abstract class DatabaseOpenRequest implements IDatabaseDBOpenRequest {
|
|
7
|
+
readyState: IDBRequestReadyState;
|
|
8
|
+
result: IDatabase;
|
|
9
|
+
source: IDatabaseObjectStore | IDBIndex | IDBCursor;
|
|
10
|
+
transaction: IDatabaseTransaction | null;
|
|
11
|
+
error: DOMException | null;
|
|
12
|
+
constructor(result: any, readyState: IDBRequestReadyState, source?: IDatabaseObjectStore | IDBIndex | IDBCursor, transaction?: IDatabaseTransaction | null, error?: DOMException | null);
|
|
13
|
+
abstract onblocked: ((this: IDatabaseDBOpenRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
14
|
+
abstract onupgradeneeded: ((this: IDatabaseDBOpenRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
15
|
+
abstract addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDatabaseDBOpenRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
16
|
+
abstract addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
17
|
+
abstract addEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
18
|
+
abstract removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDatabaseDBOpenRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
19
|
+
abstract removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
20
|
+
abstract removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
21
|
+
abstract onerror: ((this: IDatabaseRequest<IDatabase>, ev: Event) => any) | null;
|
|
22
|
+
abstract onsuccess: ((this: IDatabaseRequest<IDatabase>, ev: Event) => any) | null;
|
|
23
|
+
abstract dispatchEvent(event: Event): boolean;
|
|
24
|
+
}
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DatabaseOpenRequest = void 0;
|
|
4
|
+
class DatabaseOpenRequest {
|
|
5
|
+
constructor(result, readyState, source, transaction, error) {
|
|
6
|
+
this.readyState = readyState;
|
|
7
|
+
this.result = result;
|
|
8
|
+
this.source = source;
|
|
9
|
+
this.transaction = transaction;
|
|
10
|
+
this.error = error;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.DatabaseOpenRequest = DatabaseOpenRequest;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IDatabase } from "../interface/IDatabase";
|
|
2
|
+
import { IDatabaseObjectStore } from "../interface/IDatabaseObjectStore";
|
|
3
|
+
import { IDatabaseRequest } from "../interface/IDatabaseRequest";
|
|
4
|
+
import { IDatabaseTransaction } from "../interface/IDatabaseTransaction";
|
|
5
|
+
export declare abstract class DatabaseRequest implements IDatabaseRequest<IDatabase> {
|
|
6
|
+
readyState: IDBRequestReadyState;
|
|
7
|
+
result: any;
|
|
8
|
+
source: IDatabaseObjectStore | IDBIndex | IDBCursor;
|
|
9
|
+
transaction: IDatabaseTransaction | null;
|
|
10
|
+
error: DOMException | null;
|
|
11
|
+
constructor(result: any, readyState: IDBRequestReadyState, error: DOMException | null, source: IDatabaseObjectStore | IDBIndex | IDBCursor, transaction: IDatabaseTransaction | null);
|
|
12
|
+
abstract onerror: ((this: IDatabaseRequest<any>, ev: Event) => any) | null;
|
|
13
|
+
abstract onsuccess: ((this: IDatabaseRequest<any>, ev: Event) => any) | null;
|
|
14
|
+
abstract addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDatabaseRequest<any>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
15
|
+
abstract addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
16
|
+
abstract addEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
17
|
+
abstract removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDatabaseRequest<any>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
18
|
+
abstract removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
19
|
+
abstract removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
20
|
+
abstract dispatchEvent(event: Event): boolean;
|
|
21
|
+
}
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DatabaseRequest = void 0;
|
|
4
|
+
//Add
|
|
5
|
+
class DatabaseRequest {
|
|
6
|
+
constructor(result, readyState, error, source, transaction) {
|
|
7
|
+
this.readyState = readyState;
|
|
8
|
+
this.result = result;
|
|
9
|
+
this.source = source;
|
|
10
|
+
this.transaction = transaction;
|
|
11
|
+
this.error = error;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.DatabaseRequest = DatabaseRequest;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IDatabaseTransaction } from "../interface/IDatabaseTransaction";
|
|
2
|
+
export declare abstract class DatabaseTransaction implements IDatabaseTransaction {
|
|
3
|
+
db: IDBDatabase;
|
|
4
|
+
durability: IDBTransactionDurability;
|
|
5
|
+
error: DOMException | null;
|
|
6
|
+
mode: IDBTransactionMode;
|
|
7
|
+
objectStoreNames: DOMStringList;
|
|
8
|
+
constructor(db: IDBDatabase, mode: IDBTransactionMode, error?: DOMException | null, objectStoreNames?: DOMStringList, durability?: IDBTransactionDurability);
|
|
9
|
+
abstract onabort: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
10
|
+
abstract oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
11
|
+
abstract onerror: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
12
|
+
abstract abort(): void;
|
|
13
|
+
abstract commit(): void;
|
|
14
|
+
abstract objectStore(name: string): IDBObjectStore;
|
|
15
|
+
abstract addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
16
|
+
abstract addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
17
|
+
abstract addEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
18
|
+
abstract removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
19
|
+
abstract removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
20
|
+
abstract removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
21
|
+
abstract dispatchEvent(event: Event): boolean;
|
|
22
|
+
}
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DatabaseTransaction = void 0;
|
|
4
|
+
class DatabaseTransaction {
|
|
5
|
+
constructor(db, mode, error, objectStoreNames, durability) {
|
|
6
|
+
this.db = db;
|
|
7
|
+
this.durability = durability;
|
|
8
|
+
this.error = error;
|
|
9
|
+
this.mode = mode;
|
|
10
|
+
this.objectStoreNames = objectStoreNames;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.DatabaseTransaction = DatabaseTransaction;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FilterTypes } from "../enum/FilterTypes";
|
|
2
|
+
import { IFilter } from "../interface/IFilter";
|
|
3
|
+
export declare abstract class Filter implements IFilter {
|
|
4
|
+
filterType: FilterTypes;
|
|
5
|
+
fieldName: string;
|
|
6
|
+
value: any;
|
|
7
|
+
caseSensitive: boolean;
|
|
8
|
+
ignoreNull: boolean;
|
|
9
|
+
constructor(options: IFilter);
|
|
10
|
+
abstract applyFilter(data: any[]): any[];
|
|
11
|
+
static generateFilterOptions(data: any[], allowedFields: string[]): Record<string, any[]>;
|
|
12
|
+
}
|
|
@@ -1 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Filter = void 0;
|
|
4
|
+
class Filter {
|
|
5
|
+
constructor(options) {
|
|
6
|
+
this.filterType = options.filterType;
|
|
7
|
+
this.fieldName = options.fieldName;
|
|
8
|
+
this.value = options.value;
|
|
9
|
+
this.caseSensitive = options.caseSensitive;
|
|
10
|
+
this.ignoreNull = options.ignoreNull;
|
|
11
|
+
}
|
|
12
|
+
static generateFilterOptions(data, allowedFields) {
|
|
13
|
+
const filterOptions = {};
|
|
14
|
+
allowedFields.forEach(field => {
|
|
15
|
+
filterOptions[field] = new Set();
|
|
16
|
+
data.forEach(item => {
|
|
17
|
+
if (item[field] !== undefined && item[field] !== null) {
|
|
18
|
+
filterOptions[field].add(item[field]);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
// Convert Sets to Arrays for each field
|
|
23
|
+
const filterOptionsAsArray = {};
|
|
24
|
+
for (const field in filterOptions) {
|
|
25
|
+
filterOptionsAsArray[field] = Array.from(filterOptions[field]);
|
|
26
|
+
}
|
|
27
|
+
return filterOptionsAsArray;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.Filter = Filter;
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorTypes = void 0;
|
|
4
|
+
var ErrorTypes;
|
|
5
|
+
(function (ErrorTypes) {
|
|
6
|
+
ErrorTypes["APIError"] = "API Error";
|
|
7
|
+
ErrorTypes["ValidationError"] = "Validation Error";
|
|
8
|
+
})(ErrorTypes || (exports.ErrorTypes = ErrorTypes = {}));
|
|
9
|
+
;
|