hgs-twilio-class-lib 1.1.70 → 1.1.72
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/package.json +56 -56
- package/lib/aws/abstract/ServiceObjectStore.d.ts +0 -9
- package/lib/aws/abstract/ServiceObjectStore.js +0 -10
- package/lib/aws/abstract/ServiceOpenRequest.d.ts +0 -7
- package/lib/aws/abstract/ServiceOpenRequest.js +0 -10
- package/lib/aws/abstract/ServiceRequest.d.ts +0 -3
- package/lib/aws/abstract/ServiceRequest.js +0 -7
- package/lib/aws/abstract/ServiceResource.d.ts +0 -20
- package/lib/aws/abstract/ServiceResource.js +0 -31
- package/lib/aws/abstract/ServiceResourceFactory.d.ts +0 -13
- package/lib/aws/abstract/ServiceResourceFactory.js +0 -14
- package/lib/aws/abstract/ServiceTransaction.d.ts +0 -6
- package/lib/aws/abstract/ServiceTransaction.js +0 -11
- package/lib/aws/impl/AWSAPIConfig.d.ts +0 -14
- package/lib/aws/impl/AWSAPIConfig.js +0 -38
- package/lib/aws/impl/AWSClient.d.ts +0 -5
- package/lib/aws/impl/AWSClient.js +0 -21
- package/lib/aws/impl/AWSConnectAPIConfig.d.ts +0 -17
- package/lib/aws/impl/AWSConnectAPIConfig.js +0 -38
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.d.ts +0 -18
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.js +0 -24
- package/lib/aws/impl/DynamoDB/DynamoRequest.d.ts +0 -16
- package/lib/aws/impl/DynamoDB/DynamoRequest.js +0 -21
- package/lib/aws/impl/DynamoDB/DynamoResourse.d.ts +0 -29
- package/lib/aws/impl/DynamoDB/DynamoResourse.js +0 -45
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.d.ts +0 -16
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.js +0 -63
- package/lib/aws/impl/DynamoDB/DynamoTable.d.ts +0 -26
- package/lib/aws/impl/DynamoDB/DynamoTable.js +0 -126
- package/lib/aws/impl/DynamoDB/DynamoTransaction.d.ts +0 -21
- package/lib/aws/impl/DynamoDB/DynamoTransaction.js +0 -37
- package/lib/aws/impl/HoopServices/HoopService.d.ts +0 -28
- package/lib/aws/impl/HoopServices/HoopService.js +0 -124
- package/lib/aws/impl/HoopServices/HoopServiceFactory.d.ts +0 -17
- package/lib/aws/impl/HoopServices/HoopServiceFactory.js +0 -53
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.d.ts +0 -18
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.js +0 -24
- package/lib/aws/impl/HoopServices/HoopServiceResource.d.ts +0 -29
- package/lib/aws/impl/HoopServices/HoopServiceResource.js +0 -46
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.d.ts +0 -22
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.js +0 -37
- package/lib/aws/interface/IDirection.d.ts +0 -2
- package/lib/aws/interface/IDirection.js +0 -2
- package/lib/aws/interface/ILink.d.ts +0 -2
- package/lib/aws/interface/ILink.js +0 -2
- package/lib/aws/interface/IServiceDBOpenRequest.d.ts +0 -3
- package/lib/aws/interface/IServiceDBOpenRequest.js +0 -2
- package/lib/aws/interface/IServiceObjectStore.d.ts +0 -3
- package/lib/aws/interface/IServiceObjectStore.js +0 -2
- package/lib/aws/interface/IServiceObjectStoreParameters.d.ts +0 -4
- package/lib/aws/interface/IServiceObjectStoreParameters.js +0 -2
- package/lib/aws/interface/IServiceRequest.d.ts +0 -3
- package/lib/aws/interface/IServiceRequest.js +0 -2
- package/lib/aws/interface/IServiceResource.d.ts +0 -7
- package/lib/aws/interface/IServiceResource.js +0 -2
- package/lib/aws/interface/IServiceTransation.d.ts +0 -3
- package/lib/aws/interface/IServiceTransation.js +0 -2
- package/lib/aws/interface/ISubResourceUri.d.ts +0 -2
- package/lib/aws/interface/ISubResourceUri.js +0 -2
- package/lib/aws/interface/ISyncItemData.d.ts +0 -0
- package/lib/aws/interface/ISyncItemData.js +0 -1
- package/lib/aws/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/aws/interface/ISyncObjectStoreParameters.js +0 -1
- package/lib/aws/interface/ISyncTransactionOptions.d.ts +0 -4
- package/lib/aws/interface/ISyncTransactionOptions.js +0 -2
- package/lib/common/abstract/CommonError.d.ts +0 -8
- package/lib/common/abstract/CommonError.js +0 -12
- package/lib/common/abstract/Database.d.ts +0 -44
- package/lib/common/abstract/Database.js +0 -58
- package/lib/common/abstract/DatabaseClient.d.ts +0 -11
- package/lib/common/abstract/DatabaseClient.js +0 -21
- package/lib/common/abstract/DatabaseClientConfig.d.ts +0 -5
- package/lib/common/abstract/DatabaseClientConfig.js +0 -9
- package/lib/common/abstract/DatabaseFactory.d.ts +0 -70
- package/lib/common/abstract/DatabaseFactory.js +0 -32
- package/lib/common/abstract/DatabaseObjectStore.d.ts +0 -29
- package/lib/common/abstract/DatabaseObjectStore.js +0 -13
- package/lib/common/abstract/DatabaseOpenRequest.d.ts +0 -24
- package/lib/common/abstract/DatabaseOpenRequest.js +0 -13
- package/lib/common/abstract/DatabaseRequest.d.ts +0 -21
- package/lib/common/abstract/DatabaseRequest.js +0 -14
- package/lib/common/abstract/DatabaseTransaction.d.ts +0 -22
- package/lib/common/abstract/DatabaseTransaction.js +0 -13
- package/lib/common/abstract/Filter.d.ts +0 -12
- package/lib/common/abstract/Filter.js +0 -30
- package/lib/common/enum/ErrorTypes.d.ts +0 -4
- package/lib/common/enum/ErrorTypes.js +0 -9
- package/lib/common/enum/FilterTypes.d.ts +0 -10
- package/lib/common/enum/FilterTypes.js +0 -14
- package/lib/common/interface/IDatabaesInfo.d.ts +0 -2
- package/lib/common/interface/IDatabaesInfo.js +0 -2
- package/lib/common/interface/IDatabase.d.ts +0 -4
- package/lib/common/interface/IDatabase.js +0 -2
- package/lib/common/interface/IDatabaseClient.d.ts +0 -5
- package/lib/common/interface/IDatabaseClient.js +0 -2
- package/lib/common/interface/IDatabaseConfig.d.ts +0 -8
- package/lib/common/interface/IDatabaseConfig.js +0 -10
- package/lib/common/interface/IDatabaseDBOpenRequest.d.ts +0 -2
- package/lib/common/interface/IDatabaseDBOpenRequest.js +0 -2
- package/lib/common/interface/IDatabaseFactory.d.ts +0 -21
- package/lib/common/interface/IDatabaseFactory.js +0 -2
- package/lib/common/interface/IDatabaseObjectStore.d.ts +0 -2
- package/lib/common/interface/IDatabaseObjectStore.js +0 -2
- package/lib/common/interface/IDatabaseObjectStoreParameters.d.ts +0 -2
- package/lib/common/interface/IDatabaseObjectStoreParameters.js +0 -2
- package/lib/common/interface/IDatabaseRecord.d.ts +0 -2
- package/lib/common/interface/IDatabaseRecord.js +0 -2
- package/lib/common/interface/IDatabaseRequest.d.ts +0 -2
- package/lib/common/interface/IDatabaseRequest.js +0 -2
- package/lib/common/interface/IDatabaseTransaction.d.ts +0 -2
- package/lib/common/interface/IDatabaseTransaction.js +0 -2
- package/lib/common/interface/IDatabaseTransactionOptions.d.ts +0 -2
- package/lib/common/interface/IDatabaseTransactionOptions.js +0 -2
- package/lib/common/interface/IError.d.ts +0 -5
- package/lib/common/interface/IError.js +0 -2
- package/lib/common/interface/IErrorDetails.d.ts +0 -6
- package/lib/common/interface/IErrorDetails.js +0 -2
- package/lib/common/interface/IFilter.d.ts +0 -25
- package/lib/common/interface/IFilter.js +0 -2
- package/lib/common/type/DatabaseReadyType.d.ts +0 -1
- package/lib/common/type/DatabaseReadyType.js +0 -2
- package/lib/common/type/FilterInputType.d.ts +0 -1
- package/lib/common/type/FilterInputType.js +0 -2
- package/lib/common/type/SearchParameterType.d.ts +0 -15
- package/lib/common/type/SearchParameterType.js +0 -3
- package/lib/common/utils/dateFormat.d.ts +0 -1
- package/lib/common/utils/dateFormat.js +0 -58
- package/lib/common/utils/filter.d.ts +0 -1
- package/lib/common/utils/filter.js +0 -99
- package/lib/common/utils/newFilter.d.ts +0 -1
- package/lib/common/utils/newFilter.js +0 -126
- package/lib/common/utils/pagination.d.ts +0 -1
- package/lib/common/utils/pagination.js +0 -9
- package/lib/common/utils/search.d.ts +0 -1
- package/lib/common/utils/search.js +0 -14
- package/lib/common/utils/sort.d.ts +0 -1
- package/lib/common/utils/sort.js +0 -29
- package/lib/config/AWSConfig.d.ts +0 -6
- package/lib/config/AWSConfig.js +0 -9
- package/lib/config/DatabaseConfig.d.ts +0 -33
- package/lib/config/DatabaseConfig.js +0 -36
- package/lib/config/TwilioConfig.d.ts +0 -4
- package/lib/config/TwilioConfig.js +0 -7
- package/lib/controller/Common.d.ts +0 -20
- package/lib/controller/Common.js +0 -57
- package/lib/controller/DatabaseFactoryCollection.d.ts +0 -6
- package/lib/controller/DatabaseFactoryCollection.js +0 -14
- package/lib/controller/MainController.d.ts +0 -6
- package/lib/controller/MainController.js +0 -174
- package/lib/controller/aws/HoopBuisnessHours.d.ts +0 -23
- package/lib/controller/aws/HoopBuisnessHours.js +0 -408
- package/lib/controller/aws/HoopOperationsController.d.ts +0 -9
- package/lib/controller/aws/HoopOperationsController.js +0 -86
- package/lib/controller/aws/HoopOverrideBranchesController.d.ts +0 -7
- package/lib/controller/aws/HoopOverrideBranchesController.js +0 -40
- package/lib/controller/aws/HoopProfilesListController.d.ts +0 -8
- package/lib/controller/aws/HoopProfilesListController.js +0 -61
- package/lib/controller/aws/PlaybackScreenrecordings.d.ts +0 -9
- package/lib/controller/aws/PlaybackScreenrecordings.js +0 -63
- package/lib/controller/twilio/AgentActionsController.d.ts +0 -54
- package/lib/controller/twilio/AgentActionsController.js +0 -177
- package/lib/controller/twilio/AgentScorecardController.d.ts +0 -53
- package/lib/controller/twilio/AgentScorecardController.js +0 -173
- package/lib/controller/twilio/AuditLogController.d.ts +0 -15
- package/lib/controller/twilio/AuditLogController.js +0 -137
- package/lib/controller/twilio/CallLogsController.d.ts +0 -12
- package/lib/controller/twilio/CallLogsController.js +0 -131
- package/lib/controller/twilio/CallbackAndVoicemailController.d.ts +0 -12
- package/lib/controller/twilio/CallbackAndVoicemailController.js +0 -114
- package/lib/controller/twilio/ChannelSettingTaskInfoController.d.ts +0 -11
- package/lib/controller/twilio/ChannelSettingTaskInfoController.js +0 -117
- package/lib/controller/twilio/ChannelSettingsController.d.ts +0 -16
- package/lib/controller/twilio/ChannelSettingsController.js +0 -142
- package/lib/controller/twilio/CxConfigAssetController.d.ts +0 -12
- package/lib/controller/twilio/CxConfigAssetController.js +0 -128
- package/lib/controller/twilio/CxConfigController.d.ts +0 -18
- package/lib/controller/twilio/CxConfigController.js +0 -112
- package/lib/controller/twilio/CxConfigExternalNumbersController.d.ts +0 -12
- package/lib/controller/twilio/CxConfigExternalNumbersController.js +0 -138
- package/lib/controller/twilio/CxConfigOther.d.ts +0 -16
- package/lib/controller/twilio/CxConfigOther.js +0 -128
- package/lib/controller/twilio/CxConfigQueueMenuController.d.ts +0 -12
- package/lib/controller/twilio/CxConfigQueueMenuController.js +0 -129
- package/lib/controller/twilio/CxConfigUIconfigController.d.ts +0 -12
- package/lib/controller/twilio/CxConfigUIconfigController.js +0 -132
- package/lib/controller/twilio/GPMController.d.ts +0 -12
- package/lib/controller/twilio/GPMController.js +0 -151
- package/lib/controller/twilio/HoopBusinessHoursController.d.ts +0 -18
- package/lib/controller/twilio/HoopBusinessHoursController.js +0 -285
- package/lib/controller/twilio/HoopHolidaysController.d.ts +0 -14
- package/lib/controller/twilio/HoopHolidaysController.js +0 -152
- package/lib/controller/twilio/HoopMainController.d.ts +0 -13
- package/lib/controller/twilio/HoopMainController.js +0 -297
- package/lib/controller/twilio/HoopNotesController.d.ts +0 -14
- package/lib/controller/twilio/HoopNotesController.js +0 -149
- package/lib/controller/twilio/HoopOperationsController.d.ts +0 -14
- package/lib/controller/twilio/HoopOperationsController.js +0 -138
- package/lib/controller/twilio/HoopOverrideBranchesController.d.ts +0 -14
- package/lib/controller/twilio/HoopOverrideBranchesController.js +0 -137
- package/lib/controller/twilio/HoopPartialDaysController.d.ts +0 -14
- package/lib/controller/twilio/HoopPartialDaysController.js +0 -152
- package/lib/controller/twilio/HoopProfilesListController.d.ts +0 -14
- package/lib/controller/twilio/HoopProfilesListController.js +0 -147
- package/lib/controller/twilio/NavigationController.d.ts +0 -13
- package/lib/controller/twilio/NavigationController.js +0 -170
- package/lib/controller/twilio/QualityFormsController.d.ts +0 -12
- package/lib/controller/twilio/QualityFormsController.js +0 -129
- package/lib/controller/twilio/QuickLinkController.d.ts +0 -11
- package/lib/controller/twilio/QuickLinkController.js +0 -122
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.d.ts +0 -14
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.js +0 -126
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.d.ts +0 -53
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.js +0 -160
- package/lib/controller/twilio/TaskInfoPanelController.d.ts +0 -15
- package/lib/controller/twilio/TaskInfoPanelController.js +0 -134
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.js +0 -52
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.js +0 -89
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.js +0 -81
- package/lib/controller/twilio/filterImpl/CallLogsFilter.d.ts +0 -20
- package/lib/controller/twilio/filterImpl/CallLogsFilter.js +0 -101
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.js +0 -59
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.js +0 -67
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.d.ts +0 -14
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.js +0 -52
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.d.ts +0 -17
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.js +0 -78
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.js +0 -51
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.d.ts +0 -14
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.js +0 -58
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.js +0 -51
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.d.ts +0 -14
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js +0 -58
- package/lib/controller/twilio/filterImpl/MainFilterService.d.ts +0 -4
- package/lib/controller/twilio/filterImpl/MainFilterService.js +0 -108
- package/lib/controller/twilio/filterImpl/NavigationFilter.d.ts +0 -20
- package/lib/controller/twilio/filterImpl/NavigationFilter.js +0 -90
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.d.ts +0 -14
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.js +0 -53
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.js +0 -62
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.js +0 -52
- package/lib/express/ApiResponse.d.ts +0 -15
- package/lib/express/ApiResponse.js +0 -11
- package/lib/express/RequestValidator.d.ts +0 -50
- package/lib/express/RequestValidator.js +0 -77
- package/lib/express/RequireParamsPicker.d.ts +0 -7
- package/lib/express/RequireParamsPicker.js +0 -14
- package/lib/express/ValidateRequireParameters.d.ts +0 -3
- package/lib/express/ValidateRequireParameters.js +0 -39
- package/lib/index.d.ts +0 -39
- package/lib/index.js +0 -100
- package/lib/models/BatchUpdateSkills.model.d.ts +0 -0
- package/lib/models/BatchUpdateSkills.model.js +0 -11
- package/lib/models/CannedMessage.model.d.ts +0 -4
- package/lib/models/CannedMessage.model.js +0 -1
- package/lib/models/ChannelSettingsTaskInfo.model.d.ts +0 -87
- package/lib/models/ChannelSettingsTaskInfo.model.js +0 -1
- package/lib/models/CustomerFeedback.model.d.ts +0 -9
- package/lib/models/CustomerFeedback.model.js +0 -1
- package/lib/models/Filter.model.d.ts +0 -15
- package/lib/models/Filter.model.js +0 -2
- package/lib/models/Hoop.model.d.ts +0 -15
- package/lib/models/Hoop.model.js +0 -18
- package/lib/models/Navigation.model.d.ts +0 -28
- package/lib/models/Navigation.model.js +0 -8
- package/lib/models/Roles.Model.d.ts +0 -8
- package/lib/models/Roles.Model.js +0 -1
- package/lib/models/abstract/BaseModel.d.ts +0 -17
- package/lib/models/abstract/BaseModel.js +0 -40
- package/lib/models/impl/AgentActionsLogsModel.d.ts +0 -27
- package/lib/models/impl/AgentActionsLogsModel.js +0 -89
- package/lib/models/impl/AgentActionsModel.d.ts +0 -19
- package/lib/models/impl/AgentActionsModel.js +0 -60
- package/lib/models/impl/AgentScorecardModel.d.ts +0 -66
- package/lib/models/impl/AgentScorecardModel.js +0 -282
- package/lib/models/impl/AuditLogsModel.d.ts +0 -31
- package/lib/models/impl/AuditLogsModel.js +0 -146
- package/lib/models/impl/CallLogsModel.d.ts +0 -37
- package/lib/models/impl/CallLogsModel.js +0 -109
- package/lib/models/impl/CallStatisticsModel.d.ts +0 -16
- package/lib/models/impl/CallStatisticsModel.js +0 -52
- package/lib/models/impl/CategoryDetailsModel.d.ts +0 -17
- package/lib/models/impl/CategoryDetailsModel.js +0 -44
- package/lib/models/impl/MemberModel.d.ts +0 -42
- package/lib/models/impl/MemberModel.js +0 -170
- package/lib/models/impl/ModelValidationError.d.ts +0 -6
- package/lib/models/impl/ModelValidationError.js +0 -15
- package/lib/models/impl/NavigationModel.d.ts +0 -39
- package/lib/models/impl/NavigationModel.js +0 -126
- package/lib/models/impl/PerformanceStatisticsModel.d.ts +0 -41
- package/lib/models/impl/PerformanceStatisticsModel.js +0 -129
- package/lib/models/impl/PlaybackScreenrecordings.d.ts +0 -39
- package/lib/models/impl/PlaybackScreenrecordings.js +0 -133
- package/lib/models/impl/ProfileModel.d.ts +0 -23
- package/lib/models/impl/ProfileModel.js +0 -102
- package/lib/models/impl/QualityFormsModel.d.ts +0 -39
- package/lib/models/impl/QualityFormsModel.js +0 -150
- package/lib/models/impl/QuestionDetailsModel.d.ts +0 -39
- package/lib/models/impl/QuestionDetailsModel.js +0 -173
- package/lib/models/impl/QueueDetailsModel.d.ts +0 -63
- package/lib/models/impl/QueueDetailsModel.js +0 -261
- package/lib/models/impl/QueueModel.d.ts +0 -39
- package/lib/models/impl/QueueModel.js +0 -156
- package/lib/models/impl/QuickLinkModel.d.ts +0 -24
- package/lib/models/impl/QuickLinkModel.js +0 -122
- package/lib/models/impl/StatisticsNumberDetailsModel.d.ts +0 -18
- package/lib/models/impl/StatisticsNumberDetailsModel.js +0 -72
- package/lib/models/impl/StatisticsTimeDetailsModel.d.ts +0 -18
- package/lib/models/impl/StatisticsTimeDetailsModel.js +0 -72
- package/lib/models/impl/TaskAttributesModel.d.ts +0 -31
- package/lib/models/impl/TaskAttributesModel.js +0 -108
- package/lib/models/impl/TaskChannelModel.d.ts +0 -15
- package/lib/models/impl/TaskChannelModel.js +0 -69
- package/lib/models/impl/TaskComplete.d.ts +0 -0
- package/lib/models/impl/TaskComplete.js +0 -1
- package/lib/models/impl/TaskInfoPanelModel.d.ts +0 -16
- package/lib/models/impl/TaskInfoPanelModel.js +0 -69
- package/lib/models/impl/TaskModel.d.ts +0 -59
- package/lib/models/impl/TaskModel.js +0 -234
- package/lib/models/impl/WorkGroupDetailsModel.d.ts +0 -63
- package/lib/models/impl/WorkGroupDetailsModel.js +0 -281
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.d.ts +0 -33
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.js +0 -140
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.d.ts +0 -8
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.js +0 -12
- package/lib/models/impl/callbackandvoicemail/CallbackModel.d.ts +0 -19
- package/lib/models/impl/callbackandvoicemail/CallbackModel.js +0 -82
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.d.ts +0 -25
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.js +0 -108
- package/lib/models/impl/channelsettings/ChannelSettingModel.d.ts +0 -68
- package/lib/models/impl/channelsettings/ChannelSettingModel.js +0 -240
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.d.ts +0 -31
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.js +0 -106
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.d.ts +0 -25
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.js +0 -80
- package/lib/models/impl/channelsettings/TaskInfoModel.d.ts +0 -13
- package/lib/models/impl/channelsettings/TaskInfoModel.js +0 -52
- package/lib/models/impl/cxconfig/CxConfigNamespace.d.ts +0 -16
- package/lib/models/impl/cxconfig/CxConfigNamespace.js +0 -20
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.d.ts +0 -27
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.js +0 -173
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.d.ts +0 -24
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.js +0 -103
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.d.ts +0 -24
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.js +0 -149
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.d.ts +0 -27
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.js +0 -179
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.d.ts +0 -37
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.js +0 -197
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.d.ts +0 -27
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.js +0 -159
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.d.ts +0 -40
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.js +0 -128
- package/lib/models/impl/hoop/HoopBusinessHoursModel.d.ts +0 -39
- package/lib/models/impl/hoop/HoopBusinessHoursModel.js +0 -122
- package/lib/models/impl/hoop/HoopDescriptionModel.d.ts +0 -16
- package/lib/models/impl/hoop/HoopDescriptionModel.js +0 -64
- package/lib/models/impl/hoop/HoopHolidaysImplModel.d.ts +0 -25
- package/lib/models/impl/hoop/HoopHolidaysImplModel.js +0 -118
- package/lib/models/impl/hoop/HoopNotesImplModel.d.ts +0 -25
- package/lib/models/impl/hoop/HoopNotesImplModel.js +0 -117
- package/lib/models/impl/hoop/HoopOperationsImplModel.d.ts +0 -28
- package/lib/models/impl/hoop/HoopOperationsImplModel.js +0 -161
- package/lib/models/impl/hoop/HoopOverrideImplModel.d.ts +0 -22
- package/lib/models/impl/hoop/HoopOverrideImplModel.js +0 -143
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.d.ts +0 -31
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.js +0 -140
- package/lib/models/impl/hoop/HoopProfilesListImplModel.d.ts +0 -22
- package/lib/models/impl/hoop/HoopProfilesListImplModel.js +0 -104
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.d.ts +0 -22
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.js +0 -86
- package/lib/models/index.d.ts +0 -25
- package/lib/models/index.js +0 -53
- package/lib/models/interface/IBaseModel.d.ts +0 -11
- package/lib/models/interface/IBaseModel.js +0 -2
- package/lib/models/types/AgentScorecard.type.d.ts +0 -6
- package/lib/models/types/AgentScorecard.type.js +0 -7
- package/lib/models/types/AuditLog.type.d.ts +0 -13
- package/lib/models/types/AuditLog.type.js +0 -10
- package/lib/models/types/CallLog.type.d.ts +0 -16
- package/lib/models/types/CallLog.type.js +0 -10
- package/lib/models/types/ChannelSetting.type.d.ts +0 -7
- package/lib/models/types/ChannelSetting.type.js +0 -11
- package/lib/models/types/CxConfig.type.d.ts +0 -72
- package/lib/models/types/CxConfig.type.js +0 -43
- package/lib/models/types/Hoop.type.d.ts +0 -9
- package/lib/models/types/Hoop.type.js +0 -13
- package/lib/models/types/Navigation.type.d.ts +0 -11
- package/lib/models/types/Navigation.type.js +0 -8
- package/lib/models/types/Profile.type.d.ts +0 -1
- package/lib/models/types/Profile.type.js +0 -2
- package/lib/models/types/QueueDetails.type.d.ts +0 -6
- package/lib/models/types/QueueDetails.type.js +0 -7
- package/lib/models/types/TaskComplete.type.d.ts +0 -7
- package/lib/models/types/TaskComplete.type.js +0 -6
- package/lib/models/types/TaskInfoPanel.type.d.ts +0 -6
- package/lib/models/types/TaskInfoPanel.type.js +0 -7
- package/lib/server.d.ts +0 -1
- package/lib/server.js +0 -39
- package/lib/twilio/abstract/ServiceObjectStore.d.ts +0 -6
- package/lib/twilio/abstract/ServiceObjectStore.js +0 -10
- package/lib/twilio/abstract/ServiceOpenRequest.d.ts +0 -7
- package/lib/twilio/abstract/ServiceOpenRequest.js +0 -10
- package/lib/twilio/abstract/ServiceRequest.d.ts +0 -3
- package/lib/twilio/abstract/ServiceRequest.js +0 -7
- package/lib/twilio/abstract/ServiceResource.d.ts +0 -23
- package/lib/twilio/abstract/ServiceResource.js +0 -37
- package/lib/twilio/abstract/ServiceResourceFactory.d.ts +0 -15
- package/lib/twilio/abstract/ServiceResourceFactory.js +0 -18
- package/lib/twilio/abstract/ServiceTransaction.d.ts +0 -6
- package/lib/twilio/abstract/ServiceTransaction.js +0 -11
- package/lib/twilio/abstract/SyncServiceItemResource.d.ts +0 -31
- package/lib/twilio/abstract/SyncServiceItemResource.js +0 -60
- package/lib/twilio/abstract/TwilioClientConfig.d.ts +0 -0
- package/lib/twilio/abstract/TwilioClientConfig.js +0 -1
- package/lib/twilio/impl/TwilioAPIKeyConfig.d.ts +0 -14
- package/lib/twilio/impl/TwilioAPIKeyConfig.js +0 -31
- package/lib/twilio/impl/TwilioAuthTokenConfig.d.ts +0 -11
- package/lib/twilio/impl/TwilioAuthTokenConfig.js +0 -24
- package/lib/twilio/impl/TwilioClient.d.ts +0 -6
- package/lib/twilio/impl/TwilioClient.js +0 -21
- package/lib/twilio/impl/message/messageService.d.ts +0 -0
- package/lib/twilio/impl/message/messageService.js +0 -42
- package/lib/twilio/impl/sync/SyncDocument.d.ts +0 -24
- package/lib/twilio/impl/sync/SyncDocument.js +0 -52
- package/lib/twilio/impl/sync/SyncDocumentTransaction.d.ts +0 -20
- package/lib/twilio/impl/sync/SyncDocumentTransaction.js +0 -31
- package/lib/twilio/impl/sync/SyncList.d.ts +0 -24
- package/lib/twilio/impl/sync/SyncList.js +0 -52
- package/lib/twilio/impl/sync/SyncListItem.d.ts +0 -5
- package/lib/twilio/impl/sync/SyncListItem.js +0 -22
- package/lib/twilio/impl/sync/SyncListTransaction.d.ts +0 -20
- package/lib/twilio/impl/sync/SyncListTransaction.js +0 -31
- package/lib/twilio/impl/sync/SyncMap.d.ts +0 -25
- package/lib/twilio/impl/sync/SyncMap.js +0 -139
- package/lib/twilio/impl/sync/SyncMapItem.d.ts +0 -5
- package/lib/twilio/impl/sync/SyncMapItem.js +0 -7
- package/lib/twilio/impl/sync/SyncMapTransaction.d.ts +0 -22
- package/lib/twilio/impl/sync/SyncMapTransaction.js +0 -38
- package/lib/twilio/impl/sync/SyncOpenRequest.d.ts +0 -18
- package/lib/twilio/impl/sync/SyncOpenRequest.js +0 -24
- package/lib/twilio/impl/sync/SyncRequest.d.ts +0 -16
- package/lib/twilio/impl/sync/SyncRequest.js +0 -21
- package/lib/twilio/impl/sync/SyncResource.d.ts +0 -50
- package/lib/twilio/impl/sync/SyncResource.js +0 -97
- package/lib/twilio/impl/sync/SyncServiceFactory.d.ts +0 -22
- package/lib/twilio/impl/sync/SyncServiceFactory.js +0 -117
- package/lib/twilio/interface/IDirection.d.ts +0 -2
- package/lib/twilio/interface/IDirection.js +0 -2
- package/lib/twilio/interface/ILink.d.ts +0 -2
- package/lib/twilio/interface/ILink.js +0 -2
- package/lib/twilio/interface/IServiceDBOpenRequest.d.ts +0 -3
- package/lib/twilio/interface/IServiceDBOpenRequest.js +0 -2
- package/lib/twilio/interface/IServiceObjectStore.d.ts +0 -3
- package/lib/twilio/interface/IServiceObjectStore.js +0 -2
- package/lib/twilio/interface/IServiceObjectStoreParameters.d.ts +0 -4
- package/lib/twilio/interface/IServiceObjectStoreParameters.js +0 -2
- package/lib/twilio/interface/IServiceRequest.d.ts +0 -3
- package/lib/twilio/interface/IServiceRequest.js +0 -2
- package/lib/twilio/interface/IServiceResource.d.ts +0 -8
- package/lib/twilio/interface/IServiceResource.js +0 -2
- package/lib/twilio/interface/IServiceTransation.d.ts +0 -3
- package/lib/twilio/interface/IServiceTransation.js +0 -2
- package/lib/twilio/interface/ISubResourceUri.d.ts +0 -2
- package/lib/twilio/interface/ISubResourceUri.js +0 -2
- package/lib/twilio/interface/ISyncItemData.d.ts +0 -0
- package/lib/twilio/interface/ISyncItemData.js +0 -1
- package/lib/twilio/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/twilio/interface/ISyncObjectStoreParameters.js +0 -1
- package/lib/twilio/interface/ISyncTransactionOptions.d.ts +0 -4
- package/lib/twilio/interface/ISyncTransactionOptions.js +0 -2
|
@@ -1,63 +0,0 @@
|
|
|
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;
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
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.DynamoTable = void 0;
|
|
13
|
-
const pagination_1 = require("../../../common/utils/pagination");
|
|
14
|
-
const sort_1 = require("../../../common/utils/sort");
|
|
15
|
-
const search_1 = require("../../../common/utils/search");
|
|
16
|
-
const filter_1 = require("../../../common/utils/filter");
|
|
17
|
-
const ServiceObjectStore_1 = require("../../abstract/ServiceObjectStore");
|
|
18
|
-
const DynamoServiceFactory_1 = require("./DynamoServiceFactory");
|
|
19
|
-
class DynamoTable extends ServiceObjectStore_1.ServiceObjectStore {
|
|
20
|
-
constructor(name, transaction, autoIncrement, indexNames, keyPath) {
|
|
21
|
-
super(name, transaction, autoIncrement, indexNames, keyPath);
|
|
22
|
-
}
|
|
23
|
-
add(value, key) {
|
|
24
|
-
console.log('value ', value, key);
|
|
25
|
-
return DynamoServiceFactory_1.DynamoServiceFactory.DynamoServiceInstance.create({ key: key, data: value });
|
|
26
|
-
}
|
|
27
|
-
clear() {
|
|
28
|
-
throw new Error("Method not implemented.");
|
|
29
|
-
}
|
|
30
|
-
count(query) {
|
|
31
|
-
throw new Error("Method not implemented.");
|
|
32
|
-
}
|
|
33
|
-
createIndex(name, keyPath, options) {
|
|
34
|
-
throw new Error("Method not implemented.");
|
|
35
|
-
}
|
|
36
|
-
delete(query) {
|
|
37
|
-
return DynamoServiceFactory_1.DynamoServiceFactory.DynamoServiceInstance(query).remove().then((Item) => {
|
|
38
|
-
console.log('delete Dynamo item ', Item);
|
|
39
|
-
return true;
|
|
40
|
-
}).catch((error) => {
|
|
41
|
-
throw error;
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
deleteIndex(name) {
|
|
45
|
-
throw new Error("Method not implemented.");
|
|
46
|
-
}
|
|
47
|
-
get(query) {
|
|
48
|
-
return DynamoServiceFactory_1.DynamoServiceFactory.DynamoServiceInstance(query).fetch().then((Item) => {
|
|
49
|
-
return Item.data;
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
getAll(query, count) {
|
|
53
|
-
throw new Error("Method not implemented.");
|
|
54
|
-
}
|
|
55
|
-
asyncGet(query) {
|
|
56
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
throw new Error("Method not implemented.");
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
asyncGetAll(query, count) {
|
|
61
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
// let data = await DynamoServiceFactory.DynamoServiceInstance.scan({TableName : this.name }).promise();
|
|
63
|
-
// // console.log("data----here----", data);
|
|
64
|
-
// return data;
|
|
65
|
-
let data = yield DynamoServiceFactory_1.DynamoServiceFactory.DynamoServiceInstance.scan({ TableName: this.name }).promise();
|
|
66
|
-
let items = data.Items.map((item) => item); // Extract the 'data' field from each item
|
|
67
|
-
let totalPages = 0;
|
|
68
|
-
console.log("items intially:::", items);
|
|
69
|
-
// Check if query is defined and is an object
|
|
70
|
-
if (query && typeof query === 'object') {
|
|
71
|
-
console.log("querry:::", query);
|
|
72
|
-
// Handle sorting
|
|
73
|
-
if ('sortOptions' in query && Array.isArray(query.sortOptions)) {
|
|
74
|
-
query.sortOptions.forEach((item) => {
|
|
75
|
-
const key = Object.keys(item)[0];
|
|
76
|
-
if (key && item[key]) {
|
|
77
|
-
const sortBy = key;
|
|
78
|
-
const direction = item[key] === 'ASC';
|
|
79
|
-
items = (0, sort_1.sortData)(items, sortBy, direction);
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
// Handle searching
|
|
84
|
-
if ('searchOptions' in query && query.searchOptions) {
|
|
85
|
-
items = (0, search_1.searchData)(items, query.searchOptions);
|
|
86
|
-
}
|
|
87
|
-
// Handle filtering
|
|
88
|
-
if ('filters' in query && query.filters) {
|
|
89
|
-
items = (0, filter_1.filterData)(items, query.filters);
|
|
90
|
-
}
|
|
91
|
-
// Handle pagination
|
|
92
|
-
if ('itemsPerPage' in query) {
|
|
93
|
-
const itemsPerPage = query.itemsPerPage || 5;
|
|
94
|
-
const pageNo = query.pageNo || 1;
|
|
95
|
-
totalPages = items.length && itemsPerPage < items.length ? Math.ceil(items.length / itemsPerPage) : 0;
|
|
96
|
-
items = (0, pagination_1.paginateData)(items, itemsPerPage, pageNo);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return {
|
|
100
|
-
totalPages,
|
|
101
|
-
items
|
|
102
|
-
};
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
getAllKeys(query, count) {
|
|
106
|
-
throw new Error("Method not implemented.");
|
|
107
|
-
}
|
|
108
|
-
getKey(query) {
|
|
109
|
-
throw new Error("Method not implemented.");
|
|
110
|
-
}
|
|
111
|
-
index(name) {
|
|
112
|
-
throw new Error("Method not implemented.");
|
|
113
|
-
}
|
|
114
|
-
openCursor(query, direction) {
|
|
115
|
-
throw new Error("Method not implemented.");
|
|
116
|
-
}
|
|
117
|
-
openKeyCursor(query, direction) {
|
|
118
|
-
throw new Error("Method not implemented.");
|
|
119
|
-
}
|
|
120
|
-
put(value, key) {
|
|
121
|
-
return DynamoServiceFactory_1.DynamoServiceFactory.DynamoServiceInstance(key).update({ data: value }).then((Item) => {
|
|
122
|
-
return Item.key;
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
exports.DynamoTable = DynamoTable;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ServiceTransaction } from "../../abstract/ServiceTransaction";
|
|
2
|
-
import { IServiceResource } from "../../interface/IServiceResource";
|
|
3
|
-
import { DynamoTable } from "./DynamoTable";
|
|
4
|
-
export declare class DynamoTransaction extends ServiceTransaction {
|
|
5
|
-
private static _DynamoInstance;
|
|
6
|
-
constructor(db: IServiceResource, mode: IDBTransactionMode, error?: DOMException | null, objectStoreNames?: DOMStringList, durability?: IDBTransactionDurability);
|
|
7
|
-
static get DynamoInstance(): any;
|
|
8
|
-
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
9
|
-
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
10
|
-
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
11
|
-
abort(): void;
|
|
12
|
-
commit(): void;
|
|
13
|
-
objectStore(name: string): DynamoTable;
|
|
14
|
-
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
15
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
16
|
-
addEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
17
|
-
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
18
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
19
|
-
removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
20
|
-
dispatchEvent(event: Event): boolean;
|
|
21
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DynamoTransaction = void 0;
|
|
4
|
-
const ServiceTransaction_1 = require("../../abstract/ServiceTransaction");
|
|
5
|
-
const DynamoServiceFactory_1 = require("./DynamoServiceFactory");
|
|
6
|
-
const DynamoTable_1 = require("./DynamoTable");
|
|
7
|
-
class DynamoTransaction extends ServiceTransaction_1.ServiceTransaction {
|
|
8
|
-
constructor(db, mode, error, objectStoreNames, durability) {
|
|
9
|
-
super(db, mode, error, objectStoreNames, durability);
|
|
10
|
-
this.onabort = null;
|
|
11
|
-
this.oncomplete = null;
|
|
12
|
-
this.onerror = null;
|
|
13
|
-
}
|
|
14
|
-
static get DynamoInstance() {
|
|
15
|
-
return DynamoTransaction._DynamoInstance;
|
|
16
|
-
}
|
|
17
|
-
abort() {
|
|
18
|
-
throw new Error("Method not implemented.");
|
|
19
|
-
}
|
|
20
|
-
commit() {
|
|
21
|
-
throw new Error("Method not implemented.");
|
|
22
|
-
}
|
|
23
|
-
objectStore(name) {
|
|
24
|
-
DynamoTransaction._DynamoInstance = DynamoServiceFactory_1.DynamoServiceFactory.DynamoServiceInstance;
|
|
25
|
-
return new DynamoTable_1.DynamoTable(name, this); // need to explore how to get the database transaction , which holds the connection
|
|
26
|
-
}
|
|
27
|
-
addEventListener(type, listener, options) {
|
|
28
|
-
throw new Error("Method not implemented.");
|
|
29
|
-
}
|
|
30
|
-
removeEventListener(type, listener, options) {
|
|
31
|
-
throw new Error("Method not implemented.");
|
|
32
|
-
}
|
|
33
|
-
dispatchEvent(event) {
|
|
34
|
-
throw new Error("Method not implemented.");
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.DynamoTransaction = DynamoTransaction;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ServiceObjectStore } from "../../abstract/ServiceObjectStore";
|
|
2
|
-
import { SearchParameterType } from "../../../common/type/SearchParameterType";
|
|
3
|
-
export declare class HoopService 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<IDBRequest<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
|
-
customGetOverrides(query: SearchParameterType): Promise<any>;
|
|
27
|
-
customGetHoop(query: SearchParameterType): Promise<any>;
|
|
28
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
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.HoopService = void 0;
|
|
13
|
-
const ServiceObjectStore_1 = require("../../abstract/ServiceObjectStore");
|
|
14
|
-
const HoopServiceTransaction_1 = require("./HoopServiceTransaction");
|
|
15
|
-
const client_connect_1 = require("@aws-sdk/client-connect");
|
|
16
|
-
class HoopService extends ServiceObjectStore_1.ServiceObjectStore {
|
|
17
|
-
constructor(name, transaction, autoIncrement, indexNames, keyPath) {
|
|
18
|
-
super(name, transaction, autoIncrement, indexNames, keyPath);
|
|
19
|
-
}
|
|
20
|
-
add(value, key) {
|
|
21
|
-
throw new Error("Method not implemented.");
|
|
22
|
-
}
|
|
23
|
-
clear() {
|
|
24
|
-
throw new Error("Method not implemented.");
|
|
25
|
-
}
|
|
26
|
-
count(query) {
|
|
27
|
-
throw new Error("Method not implemented.");
|
|
28
|
-
}
|
|
29
|
-
createIndex(name, keyPath, options) {
|
|
30
|
-
throw new Error("Method not implemented.");
|
|
31
|
-
}
|
|
32
|
-
delete(query) {
|
|
33
|
-
throw new Error("Method not implemented.");
|
|
34
|
-
}
|
|
35
|
-
deleteIndex(name) {
|
|
36
|
-
throw new Error("Method not implemented.");
|
|
37
|
-
}
|
|
38
|
-
get(query) {
|
|
39
|
-
throw new Error("Method not implemented.");
|
|
40
|
-
}
|
|
41
|
-
getAll(query, count) {
|
|
42
|
-
throw new Error("Method not implemented.");
|
|
43
|
-
}
|
|
44
|
-
asyncGet(query) {
|
|
45
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
try {
|
|
47
|
-
// const response = await HoopServiceTransaction.hoopInstance.listHoursOfOperations({
|
|
48
|
-
// InstanceId: query,
|
|
49
|
-
// }).promise()
|
|
50
|
-
const instanceId = typeof query === "string" ? query : String(query);
|
|
51
|
-
const input = {
|
|
52
|
-
InstanceId: instanceId
|
|
53
|
-
};
|
|
54
|
-
const command = new client_connect_1.ListHoursOfOperationsCommand(input);
|
|
55
|
-
const response = yield HoopServiceTransaction_1.HoopServiceTransaction.hoopInstance.send(command);
|
|
56
|
-
let items = response.HoursOfOperationSummaryList || [];
|
|
57
|
-
return items;
|
|
58
|
-
}
|
|
59
|
-
catch (error) {
|
|
60
|
-
console.error("Error fetching all hours of operations:", error);
|
|
61
|
-
throw error;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
asyncGetAll(query, count) {
|
|
66
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
throw new Error("Method not implemented.");
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
getAllKeys(query, count) {
|
|
71
|
-
throw new Error("Method not implemented.");
|
|
72
|
-
}
|
|
73
|
-
getKey(query) {
|
|
74
|
-
throw new Error("Method not implemented.");
|
|
75
|
-
}
|
|
76
|
-
index(name) {
|
|
77
|
-
throw new Error("Method not implemented.");
|
|
78
|
-
}
|
|
79
|
-
openCursor(query, direction) {
|
|
80
|
-
throw new Error("Method not implemented.");
|
|
81
|
-
}
|
|
82
|
-
openKeyCursor(query, direction) {
|
|
83
|
-
throw new Error("Method not implemented.");
|
|
84
|
-
}
|
|
85
|
-
put(value, key) {
|
|
86
|
-
throw new Error("Method not implemented.");
|
|
87
|
-
}
|
|
88
|
-
customGetOverrides(query) {
|
|
89
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
try {
|
|
91
|
-
// const instanceId = typeof query === "string" ? query : String(query);
|
|
92
|
-
const input = {
|
|
93
|
-
InstanceId: query.instanceId,
|
|
94
|
-
HoursOfOperationId: query.hoursOfOperationId
|
|
95
|
-
};
|
|
96
|
-
const command = new client_connect_1.ListHoursOfOperationOverridesCommand(input);
|
|
97
|
-
const response = yield HoopServiceTransaction_1.HoopServiceTransaction.hoopInstance.send(command);
|
|
98
|
-
return response;
|
|
99
|
-
}
|
|
100
|
-
catch (error) {
|
|
101
|
-
console.error("Error fetching hours of operation:", error);
|
|
102
|
-
throw error;
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
customGetHoop(query) {
|
|
107
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
try {
|
|
109
|
-
const input = {
|
|
110
|
-
InstanceId: query.instanceId,
|
|
111
|
-
HoursOfOperationId: query.hoursOfOperationId
|
|
112
|
-
};
|
|
113
|
-
const command = new client_connect_1.DescribeHoursOfOperationCommand(input);
|
|
114
|
-
const response = yield HoopServiceTransaction_1.HoopServiceTransaction.hoopInstance.send(command);
|
|
115
|
-
let items = response.HoursOfOperation;
|
|
116
|
-
return items;
|
|
117
|
-
}
|
|
118
|
-
catch (error) {
|
|
119
|
-
throw error;
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
exports.HoopService = HoopService;
|
|
@@ -1,17 +0,0 @@
|
|
|
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 HoopServiceFactory extends ServiceResourceFactory {
|
|
8
|
-
static _HoopServiceInstance: any;
|
|
9
|
-
constructor(AwsClient: AWSClient);
|
|
10
|
-
static get hoopServiceInstance(): any;
|
|
11
|
-
open(name: string, version?: number): IServiceDBOpenRequest;
|
|
12
|
-
asyncOpen(name: string, version?: number): Promise<IServiceDBOpenRequest>;
|
|
13
|
-
deleteDatabase(name: string): IServiceDBOpenRequest;
|
|
14
|
-
databases(): Promise<IDatabaseInfo[]>;
|
|
15
|
-
create(database: IDatabase): Promise<IDatabaseRequest<IDatabase>>;
|
|
16
|
-
cmp(first: any, second: any): number;
|
|
17
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
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.HoopServiceFactory = void 0;
|
|
13
|
-
const ServiceResourceFactory_1 = require("../../abstract/ServiceResourceFactory");
|
|
14
|
-
const HoopServiceOpenRequest_1 = require("./HoopServiceOpenRequest");
|
|
15
|
-
const HoopServiceResource_1 = require("./HoopServiceResource");
|
|
16
|
-
class HoopServiceFactory extends ServiceResourceFactory_1.ServiceResourceFactory {
|
|
17
|
-
constructor(AwsClient) {
|
|
18
|
-
super(AwsClient);
|
|
19
|
-
// Assign the Connect service instance to the static property
|
|
20
|
-
}
|
|
21
|
-
static get hoopServiceInstance() {
|
|
22
|
-
return HoopServiceFactory._HoopServiceInstance;
|
|
23
|
-
}
|
|
24
|
-
open(name, version) {
|
|
25
|
-
throw new Error("Method not implemented.inside open");
|
|
26
|
-
}
|
|
27
|
-
asyncOpen(name, version) {
|
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
try {
|
|
30
|
-
HoopServiceFactory._HoopServiceInstance = this.awsService;
|
|
31
|
-
return new Promise((resolve) => {
|
|
32
|
-
resolve(new HoopServiceOpenRequest_1.HoopServiceOpenRequest(new HoopServiceResource_1.HoopServiceResource(name, 1), 'done'));
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
throw new Error("Failed to open connection to DynamoDB:");
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
deleteDatabase(name) {
|
|
41
|
-
throw new Error("Method not implemented.");
|
|
42
|
-
}
|
|
43
|
-
databases() {
|
|
44
|
-
throw new Error("Method not implemented.");
|
|
45
|
-
}
|
|
46
|
-
create(database) {
|
|
47
|
-
throw new Error("Method not implemented.");
|
|
48
|
-
}
|
|
49
|
-
cmp(first, second) {
|
|
50
|
-
throw new Error("Method not implemented.");
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.HoopServiceFactory = HoopServiceFactory;
|
|
@@ -1,18 +0,0 @@
|
|
|
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 HoopServiceOpenRequest 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
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HoopServiceOpenRequest = void 0;
|
|
4
|
-
const ServiceOpenRequest_1 = require("../../abstract/ServiceOpenRequest");
|
|
5
|
-
class HoopServiceOpenRequest 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.HoopServiceOpenRequest = HoopServiceOpenRequest;
|
|
@@ -1,29 +0,0 @@
|
|
|
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 { HoopService } from "./HoopService";
|
|
8
|
-
export declare class HoopServiceResource extends ServiceResource {
|
|
9
|
-
private static _hoopInstance;
|
|
10
|
-
static get hoopInstance(): 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): HoopService;
|
|
17
|
-
fetchObjectStores(): HoopService[];
|
|
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
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HoopServiceResource = void 0;
|
|
4
|
-
const ServiceResource_1 = require("../../abstract/ServiceResource");
|
|
5
|
-
const HoopServiceTransaction_1 = require("./HoopServiceTransaction");
|
|
6
|
-
const HoopServiceFactory_1 = require("./HoopServiceFactory");
|
|
7
|
-
class HoopServiceResource extends ServiceResource_1.ServiceResource {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.onabort = null;
|
|
11
|
-
this.onclose = null;
|
|
12
|
-
this.onerror = null;
|
|
13
|
-
this.onversionchange = null;
|
|
14
|
-
}
|
|
15
|
-
//TODO : Need to follow the way how Indexed DB uses the transaction to hold the database connection. Refer tansaction method below
|
|
16
|
-
static get hoopInstance() {
|
|
17
|
-
return this._hoopInstance;
|
|
18
|
-
}
|
|
19
|
-
close() {
|
|
20
|
-
throw new Error("Method not implemented.");
|
|
21
|
-
}
|
|
22
|
-
createObjectStore(name, options) {
|
|
23
|
-
throw new Error("Feature is not available");
|
|
24
|
-
}
|
|
25
|
-
fetchObjectStores() {
|
|
26
|
-
throw new Error("Feature is not available");
|
|
27
|
-
}
|
|
28
|
-
deleteObjectStore(name) {
|
|
29
|
-
throw new Error("Feature is not available");
|
|
30
|
-
}
|
|
31
|
-
transaction(storeNames, mode, options) {
|
|
32
|
-
//Not setting the storenames - need to be checked
|
|
33
|
-
//
|
|
34
|
-
return new HoopServiceTransaction_1.HoopServiceTransaction(HoopServiceFactory_1.HoopServiceFactory._HoopServiceInstance, mode);
|
|
35
|
-
}
|
|
36
|
-
addEventListener(type, listener, options) {
|
|
37
|
-
throw new Error("Method not implemented.");
|
|
38
|
-
}
|
|
39
|
-
removeEventListener(type, listener, options) {
|
|
40
|
-
throw new Error("Method not implemented.");
|
|
41
|
-
}
|
|
42
|
-
dispatchEvent(event) {
|
|
43
|
-
throw new Error("Method not implemented.");
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.HoopServiceResource = HoopServiceResource;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ServiceTransaction } from "../../abstract/ServiceTransaction";
|
|
2
|
-
import { IServiceResource } from "../../interface/IServiceResource";
|
|
3
|
-
import { IServiceTransaction } from "../../interface/IServiceTransation";
|
|
4
|
-
import { HoopService } from "./HoopService";
|
|
5
|
-
export declare class HoopServiceTransaction extends ServiceTransaction {
|
|
6
|
-
private static _hoopInstance;
|
|
7
|
-
constructor(db: IServiceResource, mode: IDBTransactionMode, error?: DOMException | null, objectStoreNames?: DOMStringList, durability?: IDBTransactionDurability);
|
|
8
|
-
static get hoopInstance(): any;
|
|
9
|
-
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
10
|
-
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
11
|
-
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
12
|
-
abort(): void;
|
|
13
|
-
commit(): void;
|
|
14
|
-
objectStore(name: string): HoopService;
|
|
15
|
-
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IServiceTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
16
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
17
|
-
addEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
18
|
-
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IServiceTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
19
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
20
|
-
removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
21
|
-
dispatchEvent(event: Event): boolean;
|
|
22
|
-
}
|