hgs-twilio-class-lib 1.1.72 → 1.1.74
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/README.md +5 -5
- package/lib/aws/abstract/ServiceObjectStore.d.ts +9 -0
- package/lib/aws/abstract/ServiceObjectStore.js +10 -0
- package/lib/aws/abstract/ServiceOpenRequest.d.ts +7 -0
- package/lib/aws/abstract/ServiceOpenRequest.js +10 -0
- package/lib/aws/abstract/ServiceRequest.d.ts +3 -0
- package/lib/aws/abstract/ServiceRequest.js +7 -0
- package/lib/aws/abstract/ServiceResource.d.ts +20 -0
- package/lib/aws/abstract/ServiceResource.js +31 -0
- package/lib/aws/abstract/ServiceResourceFactory.d.ts +13 -0
- package/lib/aws/abstract/ServiceResourceFactory.js +14 -0
- package/lib/aws/abstract/ServiceTransaction.d.ts +6 -0
- package/lib/aws/abstract/ServiceTransaction.js +11 -0
- package/lib/aws/impl/AWSAPIConfig.d.ts +14 -0
- package/lib/aws/impl/AWSAPIConfig.js +38 -0
- package/lib/aws/impl/AWSClient.d.ts +5 -0
- package/lib/aws/impl/AWSClient.js +21 -0
- package/lib/aws/impl/AWSConnectAPIConfig.d.ts +17 -0
- package/lib/aws/impl/AWSConnectAPIConfig.js +38 -0
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.d.ts +18 -0
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.js +24 -0
- package/lib/aws/impl/DynamoDB/DynamoRequest.d.ts +16 -0
- package/lib/aws/impl/DynamoDB/DynamoRequest.js +21 -0
- package/lib/aws/impl/DynamoDB/DynamoResourse.d.ts +29 -0
- package/lib/aws/impl/DynamoDB/DynamoResourse.js +45 -0
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.d.ts +16 -0
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.js +63 -0
- package/lib/aws/impl/DynamoDB/DynamoTable.d.ts +26 -0
- package/lib/aws/impl/DynamoDB/DynamoTable.js +126 -0
- package/lib/aws/impl/DynamoDB/DynamoTransaction.d.ts +21 -0
- package/lib/aws/impl/DynamoDB/DynamoTransaction.js +37 -0
- package/lib/aws/impl/HoopServices/HoopService.d.ts +28 -0
- package/lib/aws/impl/HoopServices/HoopService.js +124 -0
- package/lib/aws/impl/HoopServices/HoopServiceFactory.d.ts +17 -0
- package/lib/aws/impl/HoopServices/HoopServiceFactory.js +53 -0
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.d.ts +18 -0
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.js +24 -0
- package/lib/aws/impl/HoopServices/HoopServiceResource.d.ts +29 -0
- package/lib/aws/impl/HoopServices/HoopServiceResource.js +46 -0
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.d.ts +22 -0
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.js +37 -0
- package/lib/aws/interface/IDirection.d.ts +2 -0
- package/lib/aws/interface/IDirection.js +2 -0
- package/lib/aws/interface/ILink.d.ts +2 -0
- package/lib/aws/interface/ILink.js +2 -0
- package/lib/aws/interface/IServiceDBOpenRequest.d.ts +3 -0
- package/lib/aws/interface/IServiceDBOpenRequest.js +2 -0
- package/lib/aws/interface/IServiceObjectStore.d.ts +3 -0
- package/lib/aws/interface/IServiceObjectStore.js +2 -0
- package/lib/aws/interface/IServiceObjectStoreParameters.d.ts +4 -0
- package/lib/aws/interface/IServiceObjectStoreParameters.js +2 -0
- package/lib/aws/interface/IServiceRequest.d.ts +3 -0
- package/lib/aws/interface/IServiceRequest.js +2 -0
- package/lib/aws/interface/IServiceResource.d.ts +7 -0
- package/lib/aws/interface/IServiceResource.js +2 -0
- package/lib/aws/interface/IServiceTransation.d.ts +3 -0
- package/lib/aws/interface/IServiceTransation.js +2 -0
- package/lib/aws/interface/ISubResourceUri.d.ts +2 -0
- package/lib/aws/interface/ISubResourceUri.js +2 -0
- package/lib/aws/interface/ISyncItemData.d.ts +0 -0
- package/lib/aws/interface/ISyncItemData.js +1 -0
- package/lib/aws/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/aws/interface/ISyncObjectStoreParameters.js +1 -0
- package/lib/aws/interface/ISyncTransactionOptions.d.ts +4 -0
- package/lib/aws/interface/ISyncTransactionOptions.js +2 -0
- package/lib/common/abstract/CommonError.d.ts +8 -0
- package/lib/common/abstract/CommonError.js +12 -0
- package/lib/common/abstract/Database.d.ts +44 -0
- package/lib/common/abstract/Database.js +58 -0
- package/lib/common/abstract/DatabaseClient.d.ts +11 -0
- package/lib/common/abstract/DatabaseClient.js +21 -0
- package/lib/common/abstract/DatabaseClientConfig.d.ts +5 -0
- package/lib/common/abstract/DatabaseClientConfig.js +9 -0
- package/lib/common/abstract/DatabaseFactory.d.ts +70 -0
- package/lib/common/abstract/DatabaseFactory.js +32 -0
- package/lib/common/abstract/DatabaseObjectStore.d.ts +29 -0
- package/lib/common/abstract/DatabaseObjectStore.js +13 -0
- package/lib/common/abstract/DatabaseOpenRequest.d.ts +24 -0
- package/lib/common/abstract/DatabaseOpenRequest.js +13 -0
- package/lib/common/abstract/DatabaseRequest.d.ts +21 -0
- package/lib/common/abstract/DatabaseRequest.js +14 -0
- package/lib/common/abstract/DatabaseTransaction.d.ts +22 -0
- package/lib/common/abstract/DatabaseTransaction.js +13 -0
- package/lib/common/abstract/Filter.d.ts +12 -0
- package/lib/common/abstract/Filter.js +30 -0
- package/lib/common/enum/ErrorTypes.d.ts +4 -0
- package/lib/common/enum/ErrorTypes.js +9 -0
- package/lib/common/enum/FilterTypes.d.ts +10 -0
- package/lib/common/enum/FilterTypes.js +14 -0
- package/lib/common/interface/IDatabaesInfo.d.ts +2 -0
- package/lib/common/interface/IDatabaesInfo.js +2 -0
- package/lib/common/interface/IDatabase.d.ts +4 -0
- package/lib/common/interface/IDatabase.js +2 -0
- package/lib/common/interface/IDatabaseClient.d.ts +5 -0
- package/lib/common/interface/IDatabaseClient.js +2 -0
- package/lib/common/interface/IDatabaseConfig.d.ts +8 -0
- package/lib/common/interface/IDatabaseConfig.js +10 -0
- package/lib/common/interface/IDatabaseDBOpenRequest.d.ts +2 -0
- package/lib/common/interface/IDatabaseDBOpenRequest.js +2 -0
- package/lib/common/interface/IDatabaseFactory.d.ts +21 -0
- package/lib/common/interface/IDatabaseFactory.js +2 -0
- package/lib/common/interface/IDatabaseObjectStore.d.ts +2 -0
- package/lib/common/interface/IDatabaseObjectStore.js +2 -0
- package/lib/common/interface/IDatabaseObjectStoreParameters.d.ts +2 -0
- package/lib/common/interface/IDatabaseObjectStoreParameters.js +2 -0
- package/lib/common/interface/IDatabaseRecord.d.ts +2 -0
- package/lib/common/interface/IDatabaseRecord.js +2 -0
- package/lib/common/interface/IDatabaseRequest.d.ts +2 -0
- package/lib/common/interface/IDatabaseRequest.js +2 -0
- package/lib/common/interface/IDatabaseTransaction.d.ts +2 -0
- package/lib/common/interface/IDatabaseTransaction.js +2 -0
- package/lib/common/interface/IDatabaseTransactionOptions.d.ts +2 -0
- package/lib/common/interface/IDatabaseTransactionOptions.js +2 -0
- package/lib/common/interface/IError.d.ts +5 -0
- package/lib/common/interface/IError.js +2 -0
- package/lib/common/interface/IErrorDetails.d.ts +6 -0
- package/lib/common/interface/IErrorDetails.js +2 -0
- package/lib/common/interface/IFilter.d.ts +25 -0
- package/lib/common/interface/IFilter.js +2 -0
- package/lib/common/type/DatabaseReadyType.d.ts +1 -0
- package/lib/common/type/DatabaseReadyType.js +2 -0
- package/lib/common/type/FilterInputType.d.ts +1 -0
- package/lib/common/type/FilterInputType.js +2 -0
- package/lib/common/type/SearchParameterType.d.ts +15 -0
- package/lib/common/type/SearchParameterType.js +3 -0
- package/lib/common/utils/dateFormat.d.ts +1 -0
- package/lib/common/utils/dateFormat.js +58 -0
- package/lib/common/utils/filter.d.ts +1 -0
- package/lib/common/utils/filter.js +99 -0
- package/lib/common/utils/newFilter.d.ts +1 -0
- package/lib/common/utils/newFilter.js +126 -0
- package/lib/common/utils/pagination.d.ts +1 -0
- package/lib/common/utils/pagination.js +9 -0
- package/lib/common/utils/search.d.ts +1 -0
- package/lib/common/utils/search.js +14 -0
- package/lib/common/utils/sort.d.ts +1 -0
- package/lib/common/utils/sort.js +29 -0
- package/lib/config/AWSConfig.d.ts +6 -0
- package/lib/config/AWSConfig.js +9 -0
- package/lib/config/DatabaseConfig.d.ts +6 -0
- package/lib/config/DatabaseConfig.js +38 -0
- package/lib/config/TwilioConfig.d.ts +4 -0
- package/lib/config/TwilioConfig.js +7 -0
- package/lib/controller/Common.d.ts +20 -0
- package/lib/controller/Common.js +57 -0
- package/lib/controller/DatabaseFactoryCollection.d.ts +6 -0
- package/lib/controller/DatabaseFactoryCollection.js +14 -0
- package/lib/controller/MainController.d.ts +6 -0
- package/lib/controller/MainController.js +174 -0
- package/lib/controller/RealTimeDashboardController.d.ts +39 -0
- package/lib/controller/RealTimeDashboardController.js +267 -0
- package/lib/controller/aws/HoopBuisnessHours.d.ts +23 -0
- package/lib/controller/aws/HoopBuisnessHours.js +408 -0
- package/lib/controller/aws/HoopOperationsController.d.ts +9 -0
- package/lib/controller/aws/HoopOperationsController.js +86 -0
- package/lib/controller/aws/HoopOverrideBranchesController.d.ts +7 -0
- package/lib/controller/aws/HoopOverrideBranchesController.js +40 -0
- package/lib/controller/aws/HoopProfilesListController.d.ts +8 -0
- package/lib/controller/aws/HoopProfilesListController.js +61 -0
- package/lib/controller/aws/PlaybackScreenrecordings.d.ts +9 -0
- package/lib/controller/aws/PlaybackScreenrecordings.js +63 -0
- package/lib/controller/twilio/AgentActionsController.d.ts +54 -0
- package/lib/controller/twilio/AgentActionsController.js +177 -0
- package/lib/controller/twilio/AgentScorecardController.d.ts +53 -0
- package/lib/controller/twilio/AgentScorecardController.js +173 -0
- package/lib/controller/twilio/AuditLogController.d.ts +15 -0
- package/lib/controller/twilio/AuditLogController.js +137 -0
- package/lib/controller/twilio/CallLogsController.d.ts +12 -0
- package/lib/controller/twilio/CallLogsController.js +131 -0
- package/lib/controller/twilio/CallbackAndVoicemailController.d.ts +12 -0
- package/lib/controller/twilio/CallbackAndVoicemailController.js +114 -0
- package/lib/controller/twilio/ChannelSettingTaskInfoController.d.ts +11 -0
- package/lib/controller/twilio/ChannelSettingTaskInfoController.js +117 -0
- package/lib/controller/twilio/ChannelSettingsController.d.ts +16 -0
- package/lib/controller/twilio/ChannelSettingsController.js +142 -0
- package/lib/controller/twilio/CxConfigAssetController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigAssetController.js +128 -0
- package/lib/controller/twilio/CxConfigController.d.ts +18 -0
- package/lib/controller/twilio/CxConfigController.js +112 -0
- package/lib/controller/twilio/CxConfigExternalNumbersController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigExternalNumbersController.js +138 -0
- package/lib/controller/twilio/CxConfigOther.d.ts +16 -0
- package/lib/controller/twilio/CxConfigOther.js +138 -0
- package/lib/controller/twilio/CxConfigQueueMenuController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigQueueMenuController.js +129 -0
- package/lib/controller/twilio/CxConfigUIconfigController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigUIconfigController.js +132 -0
- package/lib/controller/twilio/GPMController.d.ts +12 -0
- package/lib/controller/twilio/GPMController.js +151 -0
- package/lib/controller/twilio/HoopBusinessHoursController.d.ts +18 -0
- package/lib/controller/twilio/HoopBusinessHoursController.js +285 -0
- package/lib/controller/twilio/HoopHolidaysController.d.ts +14 -0
- package/lib/controller/twilio/HoopHolidaysController.js +152 -0
- package/lib/controller/twilio/HoopMainController.d.ts +13 -0
- package/lib/controller/twilio/HoopMainController.js +297 -0
- package/lib/controller/twilio/HoopNotesController.d.ts +14 -0
- package/lib/controller/twilio/HoopNotesController.js +149 -0
- package/lib/controller/twilio/HoopOperationsController.d.ts +14 -0
- package/lib/controller/twilio/HoopOperationsController.js +138 -0
- package/lib/controller/twilio/HoopOverrideBranchesController.d.ts +14 -0
- package/lib/controller/twilio/HoopOverrideBranchesController.js +137 -0
- package/lib/controller/twilio/HoopPartialDaysController.d.ts +14 -0
- package/lib/controller/twilio/HoopPartialDaysController.js +152 -0
- package/lib/controller/twilio/HoopProfilesListController.d.ts +14 -0
- package/lib/controller/twilio/HoopProfilesListController.js +147 -0
- package/lib/controller/twilio/NavigationController.d.ts +13 -0
- package/lib/controller/twilio/NavigationController.js +170 -0
- package/lib/controller/twilio/QualityFormsController.d.ts +12 -0
- package/lib/controller/twilio/QualityFormsController.js +129 -0
- package/lib/controller/twilio/QuickLinkController.d.ts +11 -0
- package/lib/controller/twilio/QuickLinkController.js +122 -0
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.d.ts +14 -0
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.js +126 -0
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.d.ts +53 -0
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.js +160 -0
- package/lib/controller/twilio/TaskInfoPanelController.d.ts +15 -0
- package/lib/controller/twilio/TaskInfoPanelController.js +134 -0
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.js +52 -0
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.js +89 -0
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.js +81 -0
- package/lib/controller/twilio/filterImpl/CallLogsFilter.d.ts +20 -0
- package/lib/controller/twilio/filterImpl/CallLogsFilter.js +101 -0
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.js +59 -0
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.js +67 -0
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.js +52 -0
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.d.ts +17 -0
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.js +78 -0
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.js +51 -0
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.js +58 -0
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.js +51 -0
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js +58 -0
- package/lib/controller/twilio/filterImpl/MainFilterService.d.ts +4 -0
- package/lib/controller/twilio/filterImpl/MainFilterService.js +108 -0
- package/lib/controller/twilio/filterImpl/NavigationFilter.d.ts +20 -0
- package/lib/controller/twilio/filterImpl/NavigationFilter.js +90 -0
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.js +53 -0
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.js +62 -0
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.js +52 -0
- package/lib/express/ApiResponse.d.ts +15 -0
- package/lib/express/ApiResponse.js +11 -0
- package/lib/express/RequestValidator.d.ts +50 -0
- package/lib/express/RequestValidator.js +77 -0
- package/lib/express/RequireParamsPicker.d.ts +7 -0
- package/lib/express/RequireParamsPicker.js +14 -0
- package/lib/express/ValidateRequireParameters.d.ts +3 -0
- package/lib/express/ValidateRequireParameters.js +39 -0
- package/lib/index.d.ts +39 -0
- package/lib/index.js +100 -0
- package/lib/models/BatchUpdateSkills.model.d.ts +0 -0
- package/lib/models/BatchUpdateSkills.model.js +11 -0
- package/lib/models/CannedMessage.model.d.ts +4 -0
- package/lib/models/CannedMessage.model.js +1 -0
- package/lib/models/ChannelSettingsTaskInfo.model.d.ts +87 -0
- package/lib/models/ChannelSettingsTaskInfo.model.js +1 -0
- package/lib/models/CustomerFeedback.model.d.ts +9 -0
- package/lib/models/CustomerFeedback.model.js +1 -0
- package/lib/models/Filter.model.d.ts +15 -0
- package/lib/models/Filter.model.js +2 -0
- package/lib/models/Hoop.model.d.ts +15 -0
- package/lib/models/Hoop.model.js +18 -0
- package/lib/models/Navigation.model.d.ts +28 -0
- package/lib/models/Navigation.model.js +8 -0
- package/lib/models/Roles.Model.d.ts +8 -0
- package/lib/models/Roles.Model.js +1 -0
- package/lib/models/abstract/BaseModel.d.ts +17 -0
- package/lib/models/abstract/BaseModel.js +40 -0
- package/lib/models/impl/AgentActionsLogsModel.d.ts +27 -0
- package/lib/models/impl/AgentActionsLogsModel.js +89 -0
- package/lib/models/impl/AgentActionsModel.d.ts +19 -0
- package/lib/models/impl/AgentActionsModel.js +60 -0
- package/lib/models/impl/AgentScorecardModel.d.ts +66 -0
- package/lib/models/impl/AgentScorecardModel.js +282 -0
- package/lib/models/impl/AuditLogsModel.d.ts +31 -0
- package/lib/models/impl/AuditLogsModel.js +146 -0
- package/lib/models/impl/CallLogsModel.d.ts +37 -0
- package/lib/models/impl/CallLogsModel.js +109 -0
- package/lib/models/impl/CallStatisticsModel.d.ts +16 -0
- package/lib/models/impl/CallStatisticsModel.js +52 -0
- package/lib/models/impl/CategoryDetailsModel.d.ts +17 -0
- package/lib/models/impl/CategoryDetailsModel.js +44 -0
- package/lib/models/impl/DailySummaryModel.d.ts +60 -0
- package/lib/models/impl/DailySummaryModel.js +247 -0
- package/lib/models/impl/IntervalSummaryModel.d.ts +63 -0
- package/lib/models/impl/IntervalSummaryModel.js +261 -0
- package/lib/models/impl/MemberModel.d.ts +42 -0
- package/lib/models/impl/MemberModel.js +170 -0
- package/lib/models/impl/ModelValidationError.d.ts +6 -0
- package/lib/models/impl/ModelValidationError.js +15 -0
- package/lib/models/impl/NavigationModel.d.ts +39 -0
- package/lib/models/impl/NavigationModel.js +126 -0
- package/lib/models/impl/PerformanceStatisticsModel.d.ts +41 -0
- package/lib/models/impl/PerformanceStatisticsModel.js +129 -0
- package/lib/models/impl/PlaybackScreenrecordings.d.ts +39 -0
- package/lib/models/impl/PlaybackScreenrecordings.js +133 -0
- package/lib/models/impl/ProfileModel.d.ts +23 -0
- package/lib/models/impl/ProfileModel.js +102 -0
- package/lib/models/impl/QualityFormsModel.d.ts +39 -0
- package/lib/models/impl/QualityFormsModel.js +150 -0
- package/lib/models/impl/QuestionDetailsModel.d.ts +39 -0
- package/lib/models/impl/QuestionDetailsModel.js +173 -0
- package/lib/models/impl/QueueDetailsModel.d.ts +63 -0
- package/lib/models/impl/QueueDetailsModel.js +261 -0
- package/lib/models/impl/QueueModel.d.ts +39 -0
- package/lib/models/impl/QueueModel.js +156 -0
- package/lib/models/impl/QuickLinkModel.d.ts +24 -0
- package/lib/models/impl/QuickLinkModel.js +122 -0
- package/lib/models/impl/StatisticsNumberDetailsModel.d.ts +18 -0
- package/lib/models/impl/StatisticsNumberDetailsModel.js +72 -0
- package/lib/models/impl/StatisticsTimeDetailsModel.d.ts +18 -0
- package/lib/models/impl/StatisticsTimeDetailsModel.js +72 -0
- package/lib/models/impl/TaskAttributesModel.d.ts +31 -0
- package/lib/models/impl/TaskAttributesModel.js +108 -0
- package/lib/models/impl/TaskChannelModel.d.ts +15 -0
- package/lib/models/impl/TaskChannelModel.js +69 -0
- package/lib/models/impl/TaskComplete.d.ts +0 -0
- package/lib/models/impl/TaskComplete.js +1 -0
- package/lib/models/impl/TaskInfoPanelModel.d.ts +16 -0
- package/lib/models/impl/TaskInfoPanelModel.js +69 -0
- package/lib/models/impl/TaskModel.d.ts +59 -0
- package/lib/models/impl/TaskModel.js +234 -0
- package/lib/models/impl/WorkGroupDetailsModel.d.ts +63 -0
- package/lib/models/impl/WorkGroupDetailsModel.js +281 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.d.ts +33 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.js +140 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.d.ts +8 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.js +12 -0
- package/lib/models/impl/callbackandvoicemail/CallbackModel.d.ts +19 -0
- package/lib/models/impl/callbackandvoicemail/CallbackModel.js +82 -0
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.d.ts +25 -0
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.js +108 -0
- package/lib/models/impl/channelsettings/ChannelSettingModel.d.ts +68 -0
- package/lib/models/impl/channelsettings/ChannelSettingModel.js +240 -0
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.d.ts +31 -0
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.js +106 -0
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.d.ts +25 -0
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.js +80 -0
- package/lib/models/impl/channelsettings/TaskInfoModel.d.ts +13 -0
- package/lib/models/impl/channelsettings/TaskInfoModel.js +52 -0
- package/lib/models/impl/cxconfig/CxConfigNamespace.d.ts +16 -0
- package/lib/models/impl/cxconfig/CxConfigNamespace.js +20 -0
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.d.ts +27 -0
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.js +173 -0
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.d.ts +24 -0
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.js +103 -0
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.d.ts +24 -0
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.js +149 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.d.ts +27 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.js +179 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.d.ts +37 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.js +197 -0
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.d.ts +27 -0
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.js +159 -0
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.d.ts +40 -0
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.js +128 -0
- package/lib/models/impl/hoop/HoopBusinessHoursModel.d.ts +39 -0
- package/lib/models/impl/hoop/HoopBusinessHoursModel.js +122 -0
- package/lib/models/impl/hoop/HoopDescriptionModel.d.ts +16 -0
- package/lib/models/impl/hoop/HoopDescriptionModel.js +64 -0
- package/lib/models/impl/hoop/HoopHolidaysImplModel.d.ts +25 -0
- package/lib/models/impl/hoop/HoopHolidaysImplModel.js +118 -0
- package/lib/models/impl/hoop/HoopNotesImplModel.d.ts +25 -0
- package/lib/models/impl/hoop/HoopNotesImplModel.js +117 -0
- package/lib/models/impl/hoop/HoopOperationsImplModel.d.ts +28 -0
- package/lib/models/impl/hoop/HoopOperationsImplModel.js +161 -0
- package/lib/models/impl/hoop/HoopOverrideImplModel.d.ts +22 -0
- package/lib/models/impl/hoop/HoopOverrideImplModel.js +143 -0
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.d.ts +31 -0
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.js +140 -0
- package/lib/models/impl/hoop/HoopProfilesListImplModel.d.ts +22 -0
- package/lib/models/impl/hoop/HoopProfilesListImplModel.js +104 -0
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.d.ts +22 -0
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.js +86 -0
- package/lib/models/index.d.ts +27 -0
- package/lib/models/index.js +57 -0
- package/lib/models/interface/IBaseModel.d.ts +11 -0
- package/lib/models/interface/IBaseModel.js +2 -0
- package/lib/models/types/AgentScorecard.type.d.ts +6 -0
- package/lib/models/types/AgentScorecard.type.js +7 -0
- package/lib/models/types/AuditLog.type.d.ts +13 -0
- package/lib/models/types/AuditLog.type.js +10 -0
- package/lib/models/types/CallLog.type.d.ts +16 -0
- package/lib/models/types/CallLog.type.js +10 -0
- package/lib/models/types/ChannelSetting.type.d.ts +7 -0
- package/lib/models/types/ChannelSetting.type.js +11 -0
- package/lib/models/types/CxConfig.type.d.ts +72 -0
- package/lib/models/types/CxConfig.type.js +43 -0
- package/lib/models/types/Hoop.type.d.ts +9 -0
- package/lib/models/types/Hoop.type.js +13 -0
- package/lib/models/types/Navigation.type.d.ts +11 -0
- package/lib/models/types/Navigation.type.js +8 -0
- package/lib/models/types/Profile.type.d.ts +1 -0
- package/lib/models/types/Profile.type.js +2 -0
- package/lib/models/types/QueueDetails.type.d.ts +6 -0
- package/lib/models/types/QueueDetails.type.js +7 -0
- package/lib/models/types/RealtimeSyncMapDetails.type.d.ts +6 -0
- package/lib/models/types/RealtimeSyncMapDetails.type.js +7 -0
- package/lib/models/types/TaskComplete.type.d.ts +7 -0
- package/lib/models/types/TaskComplete.type.js +6 -0
- package/lib/models/types/TaskInfoPanel.type.d.ts +6 -0
- package/lib/models/types/TaskInfoPanel.type.js +7 -0
- package/lib/server.d.ts +1 -0
- package/lib/server.js +41 -0
- package/lib/twilio/abstract/ServiceObjectStore.d.ts +6 -0
- package/lib/twilio/abstract/ServiceObjectStore.js +10 -0
- package/lib/twilio/abstract/ServiceOpenRequest.d.ts +7 -0
- package/lib/twilio/abstract/ServiceOpenRequest.js +10 -0
- package/lib/twilio/abstract/ServiceRequest.d.ts +3 -0
- package/lib/twilio/abstract/ServiceRequest.js +7 -0
- package/lib/twilio/abstract/ServiceResource.d.ts +23 -0
- package/lib/twilio/abstract/ServiceResource.js +37 -0
- package/lib/twilio/abstract/ServiceResourceFactory.d.ts +15 -0
- package/lib/twilio/abstract/ServiceResourceFactory.js +18 -0
- package/lib/twilio/abstract/ServiceTransaction.d.ts +6 -0
- package/lib/twilio/abstract/ServiceTransaction.js +11 -0
- package/lib/twilio/abstract/SyncServiceItemResource.d.ts +31 -0
- package/lib/twilio/abstract/SyncServiceItemResource.js +60 -0
- package/lib/twilio/abstract/TwilioClientConfig.d.ts +0 -0
- package/lib/twilio/abstract/TwilioClientConfig.js +1 -0
- package/lib/twilio/impl/TwilioAPIKeyConfig.d.ts +14 -0
- package/lib/twilio/impl/TwilioAPIKeyConfig.js +31 -0
- package/lib/twilio/impl/TwilioAuthTokenConfig.d.ts +11 -0
- package/lib/twilio/impl/TwilioAuthTokenConfig.js +24 -0
- package/lib/twilio/impl/TwilioClient.d.ts +6 -0
- package/lib/twilio/impl/TwilioClient.js +21 -0
- package/lib/twilio/impl/message/messageService.d.ts +0 -0
- package/lib/twilio/impl/message/messageService.js +42 -0
- package/lib/twilio/impl/sync/SyncDocument.d.ts +24 -0
- package/lib/twilio/impl/sync/SyncDocument.js +52 -0
- package/lib/twilio/impl/sync/SyncDocumentTransaction.d.ts +20 -0
- package/lib/twilio/impl/sync/SyncDocumentTransaction.js +31 -0
- package/lib/twilio/impl/sync/SyncList.d.ts +24 -0
- package/lib/twilio/impl/sync/SyncList.js +52 -0
- package/lib/twilio/impl/sync/SyncListItem.d.ts +5 -0
- package/lib/twilio/impl/sync/SyncListItem.js +22 -0
- package/lib/twilio/impl/sync/SyncListTransaction.d.ts +20 -0
- package/lib/twilio/impl/sync/SyncListTransaction.js +31 -0
- package/lib/twilio/impl/sync/SyncMap.d.ts +25 -0
- package/lib/twilio/impl/sync/SyncMap.js +81 -0
- package/lib/twilio/impl/sync/SyncMapItem.d.ts +25 -0
- package/lib/twilio/impl/sync/SyncMapItem.js +139 -0
- package/lib/twilio/impl/sync/SyncMapItemsTransaction.d.ts +22 -0
- package/lib/twilio/impl/sync/SyncMapItemsTransaction.js +38 -0
- package/lib/twilio/impl/sync/SyncMapTransaction.d.ts +22 -0
- package/lib/twilio/impl/sync/SyncMapTransaction.js +38 -0
- package/lib/twilio/impl/sync/SyncOpenRequest.d.ts +18 -0
- package/lib/twilio/impl/sync/SyncOpenRequest.js +24 -0
- package/lib/twilio/impl/sync/SyncRequest.d.ts +16 -0
- package/lib/twilio/impl/sync/SyncRequest.js +21 -0
- package/lib/twilio/impl/sync/SyncResource.d.ts +51 -0
- package/lib/twilio/impl/sync/SyncResource.js +104 -0
- package/lib/twilio/impl/sync/SyncServiceFactory.d.ts +22 -0
- package/lib/twilio/impl/sync/SyncServiceFactory.js +116 -0
- package/lib/twilio/interface/IDirection.d.ts +2 -0
- package/lib/twilio/interface/IDirection.js +2 -0
- package/lib/twilio/interface/ILink.d.ts +2 -0
- package/lib/twilio/interface/ILink.js +2 -0
- package/lib/twilio/interface/IServiceDBOpenRequest.d.ts +3 -0
- package/lib/twilio/interface/IServiceDBOpenRequest.js +2 -0
- package/lib/twilio/interface/IServiceObjectStore.d.ts +3 -0
- package/lib/twilio/interface/IServiceObjectStore.js +2 -0
- package/lib/twilio/interface/IServiceObjectStoreParameters.d.ts +4 -0
- package/lib/twilio/interface/IServiceObjectStoreParameters.js +2 -0
- package/lib/twilio/interface/IServiceRequest.d.ts +3 -0
- package/lib/twilio/interface/IServiceRequest.js +2 -0
- package/lib/twilio/interface/IServiceResource.d.ts +8 -0
- package/lib/twilio/interface/IServiceResource.js +2 -0
- package/lib/twilio/interface/IServiceTransation.d.ts +3 -0
- package/lib/twilio/interface/IServiceTransation.js +2 -0
- package/lib/twilio/interface/ISubResourceUri.d.ts +2 -0
- package/lib/twilio/interface/ISubResourceUri.js +2 -0
- package/lib/twilio/interface/ISyncItemData.d.ts +0 -0
- package/lib/twilio/interface/ISyncItemData.js +1 -0
- package/lib/twilio/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/twilio/interface/ISyncObjectStoreParameters.js +1 -0
- package/lib/twilio/interface/ISyncTransactionOptions.d.ts +4 -0
- package/lib/twilio/interface/ISyncTransactionOptions.js +2 -0
- package/package.json +56 -56
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# Flex V2 Backend Code
|
|
2
|
-
|
|
3
|
-
Package to manage Flex V2 Backend.
|
|
4
|
-
|
|
5
|
-
Run "npm install hgs-twilio-class-lib --save"
|
|
1
|
+
# Flex V2 Backend Code
|
|
2
|
+
|
|
3
|
+
Package to manage Flex V2 Backend.
|
|
4
|
+
|
|
5
|
+
Run "npm install hgs-twilio-class-lib --save"
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DatabaseObjectStore } from "../../common/abstract/DatabaseObjectStore";
|
|
2
|
+
import { SearchParameterType } from "../../common/type/SearchParameterType";
|
|
3
|
+
import { IServiceObjectStore } from "../interface/IServiceObjectStore";
|
|
4
|
+
import { IServiceTransaction } from "../interface/IServiceTransation";
|
|
5
|
+
export declare abstract class ServiceObjectStore extends DatabaseObjectStore implements IServiceObjectStore {
|
|
6
|
+
constructor(name: string, transaction?: IServiceTransaction, autoIncrement?: boolean, indexNames?: DOMStringList, keyPath?: string);
|
|
7
|
+
abstract asyncGet(query: IDBValidKey | IDBKeyRange): Promise<any[]>;
|
|
8
|
+
abstract asyncGetAll(query: SearchParameterType, count?: number | undefined): Promise<IDBRequest<any[]>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceObjectStore = void 0;
|
|
4
|
+
const DatabaseObjectStore_1 = require("../../common/abstract/DatabaseObjectStore");
|
|
5
|
+
class ServiceObjectStore extends DatabaseObjectStore_1.DatabaseObjectStore {
|
|
6
|
+
constructor(name, transaction, autoIncrement, indexNames, keyPath) {
|
|
7
|
+
super(name, transaction, autoIncrement, indexNames, keyPath);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ServiceObjectStore = ServiceObjectStore;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DatabaseOpenRequest } from "../../common/abstract/DatabaseOpenRequest";
|
|
2
|
+
import { IServiceDBOpenRequest } from "../interface/IServiceDBOpenRequest";
|
|
3
|
+
import { IServiceObjectStore } from "../interface/IServiceObjectStore";
|
|
4
|
+
import { IServiceTransaction } from "../interface/IServiceTransation";
|
|
5
|
+
export declare abstract class ServiceDBOpenRequest extends DatabaseOpenRequest implements IServiceDBOpenRequest {
|
|
6
|
+
constructor(result: any, readyState: IDBRequestReadyState, source?: IServiceObjectStore, transaction?: IServiceTransaction | null, error?: DOMException | null);
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceDBOpenRequest = void 0;
|
|
4
|
+
const DatabaseOpenRequest_1 = require("../../common/abstract/DatabaseOpenRequest");
|
|
5
|
+
class ServiceDBOpenRequest extends DatabaseOpenRequest_1.DatabaseOpenRequest {
|
|
6
|
+
constructor(result, readyState, source, transaction, error) {
|
|
7
|
+
super(result, readyState, source, transaction, error);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ServiceDBOpenRequest = ServiceDBOpenRequest;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceRequest = void 0;
|
|
4
|
+
const DatabaseRequest_1 = require("../../common/abstract/DatabaseRequest");
|
|
5
|
+
class ServiceRequest extends DatabaseRequest_1.DatabaseRequest {
|
|
6
|
+
}
|
|
7
|
+
exports.ServiceRequest = ServiceRequest;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Database } from "../../common/abstract/Database";
|
|
2
|
+
import { IServiceObjectStore } from "../interface/IServiceObjectStore";
|
|
3
|
+
import { IServiceObjectStoreParameters } from "../interface/IServiceObjectStoreParameters";
|
|
4
|
+
import { IServiceResource } from "../interface/IServiceResource";
|
|
5
|
+
export declare abstract class ServiceResource extends Database implements IServiceResource {
|
|
6
|
+
private _region;
|
|
7
|
+
private _endpoint;
|
|
8
|
+
private _accessKeyId;
|
|
9
|
+
private _secretAccessKey;
|
|
10
|
+
get region(): string;
|
|
11
|
+
set region(value: string);
|
|
12
|
+
get endpoint(): string;
|
|
13
|
+
set endpoint(value: string);
|
|
14
|
+
get accessKeyId(): string;
|
|
15
|
+
set accessKeyId(value: string);
|
|
16
|
+
get secretAccessKey(): string;
|
|
17
|
+
set secretAccessKey(value: string);
|
|
18
|
+
abstract createObjectStore(name: string, options?: IServiceObjectStoreParameters | undefined): IServiceObjectStore;
|
|
19
|
+
abstract fetchObjectStores(): IServiceObjectStore[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceResource = void 0;
|
|
4
|
+
const Database_1 = require("../../common/abstract/Database");
|
|
5
|
+
class ServiceResource extends Database_1.Database {
|
|
6
|
+
get region() {
|
|
7
|
+
return this._region;
|
|
8
|
+
}
|
|
9
|
+
set region(value) {
|
|
10
|
+
this._region = value;
|
|
11
|
+
}
|
|
12
|
+
get endpoint() {
|
|
13
|
+
return this._endpoint;
|
|
14
|
+
}
|
|
15
|
+
set endpoint(value) {
|
|
16
|
+
this._endpoint = value;
|
|
17
|
+
}
|
|
18
|
+
get accessKeyId() {
|
|
19
|
+
return this._accessKeyId;
|
|
20
|
+
}
|
|
21
|
+
set accessKeyId(value) {
|
|
22
|
+
this._accessKeyId = value;
|
|
23
|
+
}
|
|
24
|
+
get secretAccessKey() {
|
|
25
|
+
return this._secretAccessKey;
|
|
26
|
+
}
|
|
27
|
+
set secretAccessKey(value) {
|
|
28
|
+
this._secretAccessKey = value;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.ServiceResource = ServiceResource;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DatabaseFactory } from "../../common/abstract/DatabaseFactory";
|
|
2
|
+
import { IDatabaseInfo } from "../../common/interface/IDatabaesInfo";
|
|
3
|
+
import { IServiceDBOpenRequest } from "../interface/IServiceDBOpenRequest";
|
|
4
|
+
import { AWSClient } from "../impl/AWSClient";
|
|
5
|
+
export declare abstract class ServiceResourceFactory extends DatabaseFactory {
|
|
6
|
+
private _awsService;
|
|
7
|
+
constructor(AWSClient: AWSClient);
|
|
8
|
+
get awsService(): any;
|
|
9
|
+
abstract open(name: string, version?: number): IServiceDBOpenRequest;
|
|
10
|
+
abstract asyncOpen(name: string, version?: number): Promise<IServiceDBOpenRequest>;
|
|
11
|
+
abstract deleteDatabase(name: string): IServiceDBOpenRequest;
|
|
12
|
+
abstract databases(): Promise<IDatabaseInfo[]>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceResourceFactory = void 0;
|
|
4
|
+
const DatabaseFactory_1 = require("../../common/abstract/DatabaseFactory");
|
|
5
|
+
class ServiceResourceFactory extends DatabaseFactory_1.DatabaseFactory {
|
|
6
|
+
constructor(AWSClient) {
|
|
7
|
+
super(AWSClient);
|
|
8
|
+
this._awsService = this.databaseClient.databaseInstance;
|
|
9
|
+
}
|
|
10
|
+
get awsService() {
|
|
11
|
+
return this._awsService;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ServiceResourceFactory = ServiceResourceFactory;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DatabaseTransaction } from "../../common/abstract/DatabaseTransaction";
|
|
2
|
+
import { IServiceResource } from "../interface/IServiceResource";
|
|
3
|
+
export declare abstract class ServiceTransaction extends DatabaseTransaction {
|
|
4
|
+
private _syncResource;
|
|
5
|
+
constructor(db: IServiceResource, mode: IDBTransactionMode, error?: DOMException | null, objectStoreNames?: DOMStringList, durability?: IDBTransactionDurability);
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceTransaction = void 0;
|
|
4
|
+
const DatabaseTransaction_1 = require("../../common/abstract/DatabaseTransaction");
|
|
5
|
+
class ServiceTransaction extends DatabaseTransaction_1.DatabaseTransaction {
|
|
6
|
+
constructor(db, mode, error, objectStoreNames, durability) {
|
|
7
|
+
super(db, mode, error, objectStoreNames, durability);
|
|
8
|
+
this._syncResource = this.db;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ServiceTransaction = ServiceTransaction;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DatabaseTypes, IDatabaseClientConfig } from "../../common/interface/IDatabaseConfig";
|
|
2
|
+
export declare class AWSAPIConfig implements IDatabaseClientConfig {
|
|
3
|
+
type: DatabaseTypes;
|
|
4
|
+
private _region;
|
|
5
|
+
private _accessKeyId;
|
|
6
|
+
private _secretAccessKey;
|
|
7
|
+
constructor(region: string, accessKeyId: string, secretAccessKey: string);
|
|
8
|
+
set region(value: string);
|
|
9
|
+
get region(): string;
|
|
10
|
+
set accessKeyId(value: string);
|
|
11
|
+
get accessKeyId(): string;
|
|
12
|
+
set secretAccessKey(value: string);
|
|
13
|
+
get secretAccessKey(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AWSAPIConfig = void 0;
|
|
4
|
+
const IDatabaseConfig_1 = require("../../common/interface/IDatabaseConfig");
|
|
5
|
+
class AWSAPIConfig {
|
|
6
|
+
constructor(region, accessKeyId, secretAccessKey) {
|
|
7
|
+
this.type = IDatabaseConfig_1.DatabaseTypes.AWS;
|
|
8
|
+
this.region = region;
|
|
9
|
+
// this.endpoint = endpoint;
|
|
10
|
+
this.accessKeyId = accessKeyId;
|
|
11
|
+
this.secretAccessKey = secretAccessKey;
|
|
12
|
+
}
|
|
13
|
+
set region(value) {
|
|
14
|
+
this._region = value;
|
|
15
|
+
}
|
|
16
|
+
get region() {
|
|
17
|
+
return this._region;
|
|
18
|
+
}
|
|
19
|
+
// set endpoint(value: string) {
|
|
20
|
+
// this._endpoint = value;
|
|
21
|
+
// }
|
|
22
|
+
// get endpoint() {
|
|
23
|
+
// return this._endpoint;
|
|
24
|
+
// }
|
|
25
|
+
set accessKeyId(value) {
|
|
26
|
+
this._accessKeyId = value;
|
|
27
|
+
}
|
|
28
|
+
get accessKeyId() {
|
|
29
|
+
return this._accessKeyId;
|
|
30
|
+
}
|
|
31
|
+
set secretAccessKey(value) {
|
|
32
|
+
this._secretAccessKey = value;
|
|
33
|
+
}
|
|
34
|
+
get secretAccessKey() {
|
|
35
|
+
return this._secretAccessKey;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.AWSAPIConfig = AWSAPIConfig;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AWSClient = void 0;
|
|
4
|
+
const client_connect_1 = require("@aws-sdk/client-connect");
|
|
5
|
+
const AWSConnectAPIConfig_1 = require("./AWSConnectAPIConfig");
|
|
6
|
+
const DatabaseClient_1 = require("../../common/abstract/DatabaseClient");
|
|
7
|
+
class AWSClient extends DatabaseClient_1.DatabaseClient {
|
|
8
|
+
constructor(AWSClientConfig) {
|
|
9
|
+
super(AWSClientConfig);
|
|
10
|
+
if (AWSClientConfig instanceof AWSConnectAPIConfig_1.AWSConnectAPIConfig) {
|
|
11
|
+
const _AWSClientConfig = AWSClientConfig;
|
|
12
|
+
const config = {
|
|
13
|
+
"region": _AWSClientConfig.region,
|
|
14
|
+
"accessKeyId": _AWSClientConfig.accessKeyId,
|
|
15
|
+
"secretAccessKey": _AWSClientConfig.secretAccessKey
|
|
16
|
+
};
|
|
17
|
+
this.databaseInstance = new client_connect_1.ConnectClient(config);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.AWSClient = AWSClient;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DatabaseTypes, IDatabaseClientConfig } from "../../common/interface/IDatabaseConfig";
|
|
2
|
+
export declare class AWSConnectAPIConfig implements IDatabaseClientConfig {
|
|
3
|
+
type: DatabaseTypes;
|
|
4
|
+
private _region;
|
|
5
|
+
private _service;
|
|
6
|
+
private _accessKeyId;
|
|
7
|
+
private _secretAccessKey;
|
|
8
|
+
constructor(region: string, service: string, accessKeyId: string, secretAccessKey: string);
|
|
9
|
+
set region(value: string);
|
|
10
|
+
get region(): string;
|
|
11
|
+
set service(value: string);
|
|
12
|
+
get service(): string;
|
|
13
|
+
set accessKeyId(value: string);
|
|
14
|
+
get accessKeyId(): string;
|
|
15
|
+
set secretAccessKey(value: string);
|
|
16
|
+
get secretAccessKey(): string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AWSConnectAPIConfig = void 0;
|
|
4
|
+
const IDatabaseConfig_1 = require("../../common/interface/IDatabaseConfig");
|
|
5
|
+
class AWSConnectAPIConfig {
|
|
6
|
+
constructor(region, service, accessKeyId, secretAccessKey) {
|
|
7
|
+
this.type = IDatabaseConfig_1.DatabaseTypes.AWS;
|
|
8
|
+
this.region = region;
|
|
9
|
+
this.service = service;
|
|
10
|
+
this.accessKeyId = accessKeyId;
|
|
11
|
+
this.secretAccessKey = secretAccessKey;
|
|
12
|
+
}
|
|
13
|
+
set region(value) {
|
|
14
|
+
this._region = value;
|
|
15
|
+
}
|
|
16
|
+
get region() {
|
|
17
|
+
return this._region;
|
|
18
|
+
}
|
|
19
|
+
set service(value) {
|
|
20
|
+
this._service = value;
|
|
21
|
+
}
|
|
22
|
+
get service() {
|
|
23
|
+
return this._service;
|
|
24
|
+
}
|
|
25
|
+
set accessKeyId(value) {
|
|
26
|
+
this._accessKeyId = value;
|
|
27
|
+
}
|
|
28
|
+
get accessKeyId() {
|
|
29
|
+
return this._accessKeyId;
|
|
30
|
+
}
|
|
31
|
+
set secretAccessKey(value) {
|
|
32
|
+
this._secretAccessKey = value;
|
|
33
|
+
}
|
|
34
|
+
get secretAccessKey() {
|
|
35
|
+
return this._secretAccessKey;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.AWSConnectAPIConfig = AWSConnectAPIConfig;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IDatabase } from "../../../common/interface/IDatabase";
|
|
2
|
+
import { IDatabaseRequest } from "../../../common/interface/IDatabaseRequest";
|
|
3
|
+
import { ServiceDBOpenRequest } from "../../abstract/ServiceOpenRequest";
|
|
4
|
+
import { IServiceDBOpenRequest } from "../../interface/IServiceDBOpenRequest";
|
|
5
|
+
import { IServiceObjectStore } from "../../interface/IServiceObjectStore";
|
|
6
|
+
import { IServiceTransaction } from "../../interface/IServiceTransation";
|
|
7
|
+
export declare class DynamoOpenDBRequest extends ServiceDBOpenRequest {
|
|
8
|
+
constructor(result: any, readyState: IDBRequestReadyState, error?: any | null, source?: IServiceObjectStore, transaction?: IServiceTransaction);
|
|
9
|
+
onblocked: ((this: IServiceDBOpenRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
10
|
+
onupgradeneeded: ((this: IServiceDBOpenRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
11
|
+
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IServiceDBOpenRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
12
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
13
|
+
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IServiceDBOpenRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
14
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
15
|
+
onerror: ((this: IDatabaseRequest<IDatabase>, ev: Event) => any) | null;
|
|
16
|
+
onsuccess: ((this: IDatabaseRequest<IDatabase>, ev: Event) => any) | null;
|
|
17
|
+
dispatchEvent(event: Event): boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoOpenDBRequest = void 0;
|
|
4
|
+
const ServiceOpenRequest_1 = require("../../abstract/ServiceOpenRequest");
|
|
5
|
+
class DynamoOpenDBRequest extends ServiceOpenRequest_1.ServiceDBOpenRequest {
|
|
6
|
+
constructor(result, readyState, error, source, transaction) {
|
|
7
|
+
super(result, readyState, source, transaction, error);
|
|
8
|
+
this.onblocked = null;
|
|
9
|
+
this.onupgradeneeded = null;
|
|
10
|
+
this.onerror = null;
|
|
11
|
+
this.onsuccess = null;
|
|
12
|
+
this.result = result;
|
|
13
|
+
}
|
|
14
|
+
addEventListener(type, listener, options) {
|
|
15
|
+
throw new Error("Method not implemented.");
|
|
16
|
+
}
|
|
17
|
+
removeEventListener(type, listener, options) {
|
|
18
|
+
throw new Error("Method not implemented.");
|
|
19
|
+
}
|
|
20
|
+
dispatchEvent(event) {
|
|
21
|
+
throw new Error("Method not implemented.");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.DynamoOpenDBRequest = DynamoOpenDBRequest;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ServiceRequest } from "../../abstract/ServiceRequest";
|
|
2
|
+
import { IServiceObjectStore } from "../../interface/IServiceObjectStore";
|
|
3
|
+
import { IServiceRequest } from "../../interface/IServiceRequest";
|
|
4
|
+
import { IServiceTransaction } from "../../interface/IServiceTransation";
|
|
5
|
+
export declare class DynamoRequest extends ServiceRequest implements IServiceRequest<any> {
|
|
6
|
+
constructor(result: any, readyState: IDBRequestReadyState, error?: any | null, source?: IServiceObjectStore, transaction?: IServiceTransaction);
|
|
7
|
+
onerror: ((this: IServiceRequest<any>, ev: Event) => any) | null;
|
|
8
|
+
onsuccess: ((this: IServiceRequest<any>, ev: Event) => any) | null;
|
|
9
|
+
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IServiceRequest<any>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
10
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
11
|
+
addEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
12
|
+
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IServiceRequest<any>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
13
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
14
|
+
removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
15
|
+
dispatchEvent(event: Event): boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoRequest = void 0;
|
|
4
|
+
const ServiceRequest_1 = require("../../abstract/ServiceRequest");
|
|
5
|
+
class DynamoRequest extends ServiceRequest_1.ServiceRequest {
|
|
6
|
+
constructor(result, readyState, error, source, transaction) {
|
|
7
|
+
super(result, readyState, error, source, transaction);
|
|
8
|
+
this.onerror = null;
|
|
9
|
+
this.onsuccess = null;
|
|
10
|
+
}
|
|
11
|
+
addEventListener(type, listener, options) {
|
|
12
|
+
throw new Error("Method not implemented.");
|
|
13
|
+
}
|
|
14
|
+
removeEventListener(type, listener, options) {
|
|
15
|
+
throw new Error("Method not implemented.");
|
|
16
|
+
}
|
|
17
|
+
dispatchEvent(event) {
|
|
18
|
+
throw new Error("Method not implemented.");
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.DynamoRequest = DynamoRequest;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IDatabase } from "../../../common/interface/IDatabase";
|
|
2
|
+
import { ServiceResource } from "../../abstract/ServiceResource";
|
|
3
|
+
import { IServiceObjectStoreParameters } from "../../interface/IServiceObjectStoreParameters";
|
|
4
|
+
import { IServiceResource } from "../../interface/IServiceResource";
|
|
5
|
+
import { IServiceTransaction } from "../../interface/IServiceTransation";
|
|
6
|
+
import { ISyncTransactionOptions } from "../../interface/ISyncTransactionOptions";
|
|
7
|
+
import { DynamoTable } from "./DynamoTable";
|
|
8
|
+
export declare class DynamoResource extends ServiceResource {
|
|
9
|
+
private static _dynamoResourceInstance;
|
|
10
|
+
static get DynamoResourceInstance(): any;
|
|
11
|
+
onabort: ((this: IDatabase, ev: Event) => any) | null;
|
|
12
|
+
onclose: ((this: IDatabase, ev: Event) => any) | null;
|
|
13
|
+
onerror: ((this: IDatabase, ev: Event) => any) | null;
|
|
14
|
+
onversionchange: ((this: IDatabase, ev: IDBVersionChangeEvent) => any) | null;
|
|
15
|
+
close(): void;
|
|
16
|
+
createObjectStore(name: string, options: IServiceObjectStoreParameters): DynamoTable;
|
|
17
|
+
fetchObjectStores(): DynamoTable[];
|
|
18
|
+
deleteObjectStore(name: string): void;
|
|
19
|
+
transaction(storeNames: string | string[], mode?: IDBTransactionMode | undefined, options?: ISyncTransactionOptions | undefined): IServiceTransaction;
|
|
20
|
+
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode | undefined, options?: ISyncTransactionOptions | undefined): IServiceTransaction;
|
|
21
|
+
transaction(storeNames: unknown, mode?: unknown, options?: unknown): IServiceTransaction;
|
|
22
|
+
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IServiceResource, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
23
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
24
|
+
addEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
25
|
+
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IServiceResource, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
26
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
27
|
+
removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
28
|
+
dispatchEvent(event: Event): boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoResource = void 0;
|
|
4
|
+
const ServiceResource_1 = require("../../abstract/ServiceResource");
|
|
5
|
+
const DynamoTransaction_1 = require("./DynamoTransaction");
|
|
6
|
+
class DynamoResource extends ServiceResource_1.ServiceResource {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.onabort = null;
|
|
10
|
+
this.onclose = null;
|
|
11
|
+
this.onerror = null;
|
|
12
|
+
this.onversionchange = null;
|
|
13
|
+
}
|
|
14
|
+
//TODO : Need to follow the way how Indexed DB uses the transaction to hold the database connection. Refer tansaction method below
|
|
15
|
+
static get DynamoResourceInstance() {
|
|
16
|
+
return this._dynamoResourceInstance;
|
|
17
|
+
}
|
|
18
|
+
close() {
|
|
19
|
+
throw new Error("Method not implemented.");
|
|
20
|
+
}
|
|
21
|
+
createObjectStore(name, options) {
|
|
22
|
+
throw new Error("Feature is not available");
|
|
23
|
+
}
|
|
24
|
+
fetchObjectStores() {
|
|
25
|
+
throw new Error("Feature is not available");
|
|
26
|
+
}
|
|
27
|
+
deleteObjectStore(name) {
|
|
28
|
+
throw new Error("Feature is not available");
|
|
29
|
+
}
|
|
30
|
+
transaction(storeNames, mode, options) {
|
|
31
|
+
//Not setting the storenames - need to be checked
|
|
32
|
+
//
|
|
33
|
+
return new DynamoTransaction_1.DynamoTransaction(DynamoResource.DynamoResourceInstance, mode);
|
|
34
|
+
}
|
|
35
|
+
addEventListener(type, listener, options) {
|
|
36
|
+
throw new Error("Method not implemented.");
|
|
37
|
+
}
|
|
38
|
+
removeEventListener(type, listener, options) {
|
|
39
|
+
throw new Error("Method not implemented.");
|
|
40
|
+
}
|
|
41
|
+
dispatchEvent(event) {
|
|
42
|
+
throw new Error("Method not implemented.");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.DynamoResource = DynamoResource;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IDatabaseInfo } from "../../../common/interface/IDatabaesInfo";
|
|
2
|
+
import { IDatabase } from "../../../common/interface/IDatabase";
|
|
3
|
+
import { IDatabaseRequest } from "../../../common/interface/IDatabaseRequest";
|
|
4
|
+
import { ServiceResourceFactory } from "../../abstract/ServiceResourceFactory";
|
|
5
|
+
import { IServiceDBOpenRequest } from "../../interface/IServiceDBOpenRequest";
|
|
6
|
+
import { AWSClient } from "../AWSClient";
|
|
7
|
+
export declare class DynamoServiceFactory extends ServiceResourceFactory {
|
|
8
|
+
static DynamoServiceInstance: any;
|
|
9
|
+
constructor(AwsClient: AWSClient);
|
|
10
|
+
open(name: string, version?: number): IServiceDBOpenRequest;
|
|
11
|
+
asyncOpen(name: string, version?: number): Promise<IServiceDBOpenRequest>;
|
|
12
|
+
deleteDatabase(name: string): IServiceDBOpenRequest;
|
|
13
|
+
databases(): Promise<IDatabaseInfo[]>;
|
|
14
|
+
create(database: IDatabase): Promise<IDatabaseRequest<IDatabase>>;
|
|
15
|
+
cmp(first: any, second: any): number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DynamoServiceFactory = void 0;
|
|
13
|
+
const ServiceResourceFactory_1 = require("../../abstract/ServiceResourceFactory");
|
|
14
|
+
const DynamoOpenRequest_1 = require("./DynamoOpenRequest");
|
|
15
|
+
const DynamoResourse_1 = require("./DynamoResourse");
|
|
16
|
+
class DynamoServiceFactory extends ServiceResourceFactory_1.ServiceResourceFactory {
|
|
17
|
+
constructor(AwsClient) {
|
|
18
|
+
super(AwsClient);
|
|
19
|
+
// DynamoServiceFactory.DynamoServiceInstance = new this.awsService.DynamoDB({});
|
|
20
|
+
}
|
|
21
|
+
open(name, version) {
|
|
22
|
+
// console.log("Test---1111",name);
|
|
23
|
+
// // Assuming you have the AWS configuration set up properly elsewhere
|
|
24
|
+
// const dynamoDB = new DynamoDB();
|
|
25
|
+
// // Check if the table exists (assuming "name" is the table name)
|
|
26
|
+
// dynamoDB.scan({ TableName: name }, (error, data) => {
|
|
27
|
+
// if (error) {
|
|
28
|
+
// // If an error occurs, throw the error
|
|
29
|
+
// throw new Error("Failed to connect to DynamoDB: " + error.message);
|
|
30
|
+
// } else {
|
|
31
|
+
// // If the table exists, you can do something here
|
|
32
|
+
// console.log('Connected to DynamoDB successfully:', data);
|
|
33
|
+
// return data;
|
|
34
|
+
// }
|
|
35
|
+
// });
|
|
36
|
+
throw new Error("Method not implemented.inside open");
|
|
37
|
+
}
|
|
38
|
+
asyncOpen(name, version) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
try {
|
|
41
|
+
return new Promise((resolve) => {
|
|
42
|
+
resolve(new DynamoOpenRequest_1.DynamoOpenDBRequest(new DynamoResourse_1.DynamoResource("No Database", 1), 'done'));
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
throw new Error("Failed to open connection to DynamoDB:");
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
deleteDatabase(name) {
|
|
51
|
+
throw new Error("Method not implemented.");
|
|
52
|
+
}
|
|
53
|
+
databases() {
|
|
54
|
+
throw new Error("Method not implemented.");
|
|
55
|
+
}
|
|
56
|
+
create(database) {
|
|
57
|
+
throw new Error("Method not implemented.");
|
|
58
|
+
}
|
|
59
|
+
cmp(first, second) {
|
|
60
|
+
throw new Error("Method not implemented.");
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.DynamoServiceFactory = DynamoServiceFactory;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SearchParameterType } from "../../../common/type/SearchParameterType";
|
|
2
|
+
import { ServiceObjectStore } from "../../abstract/ServiceObjectStore";
|
|
3
|
+
export declare class DynamoTable extends ServiceObjectStore {
|
|
4
|
+
constructor(name: string, transaction?: IDBTransaction, autoIncrement?: boolean, indexNames?: DOMStringList, keyPath?: string);
|
|
5
|
+
add(value: any, key?: IDBValidKey | undefined): IDBRequest<IDBValidKey>;
|
|
6
|
+
clear(): IDBRequest<undefined>;
|
|
7
|
+
count(query?: IDBValidKey | IDBKeyRange | undefined): IDBRequest<number>;
|
|
8
|
+
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters | undefined): IDBIndex;
|
|
9
|
+
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters | undefined): IDBIndex;
|
|
10
|
+
createIndex(name: unknown, keyPath: unknown, options?: unknown): IDBIndex;
|
|
11
|
+
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
|
|
12
|
+
delete(query: IDBValidKey | IDBKeyRange): Promise<IDBRequest<undefined>>;
|
|
13
|
+
deleteIndex(name: string): void;
|
|
14
|
+
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
|
|
15
|
+
getAll(query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined): IDBRequest<any[]>;
|
|
16
|
+
getAll(query: SearchParameterType, count?: number | undefined): Promise<IDBRequest<any[]>>;
|
|
17
|
+
asyncGet(query: IDBValidKey | IDBKeyRange): Promise<any[]>;
|
|
18
|
+
asyncGetAll(query: SearchParameterType, count?: number | undefined): Promise<any>;
|
|
19
|
+
getAllKeys(query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined): IDBRequest<IDBValidKey[]>;
|
|
20
|
+
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
|
|
21
|
+
index(name: string): IDBIndex;
|
|
22
|
+
openCursor(query?: IDBValidKey | IDBKeyRange | null | undefined, direction?: IDBCursorDirection | undefined): IDBRequest<IDBCursorWithValue | null>;
|
|
23
|
+
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null | undefined, direction?: IDBCursorDirection | undefined): IDBRequest<IDBCursor | null>;
|
|
24
|
+
put(value: any, key?: IDBValidKey | undefined): IDBRequest<IDBValidKey>;
|
|
25
|
+
put(value: Object, key: IDBValidKey): Promise<IDBRequest<IDBValidKey>>;
|
|
26
|
+
}
|