UNPKG

neo4j-driver-core

Version:
66 lines (65 loc) 2.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.notificationFilterDisabledCategory = exports.notificationFilterMinimumSeverityLevel = void 0; /** * @typedef {'WARNING' | 'INFORMATION' | 'OFF'} NotificationFilterMinimumSeverityLevel */ /** * Constants that represents the minimum Severity level in the {@link NotificationFilter} */ var notificationFilterMinimumSeverityLevel = { OFF: 'OFF', WARNING: 'WARNING', INFORMATION: 'INFORMATION' }; exports.notificationFilterMinimumSeverityLevel = notificationFilterMinimumSeverityLevel; Object.freeze(notificationFilterMinimumSeverityLevel); /** * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC'} NotificationFilterDisabledCategory */ /** * Constants that represents the disabled categories in the {@link NotificationFilter} */ var notificationFilterDisabledCategory = { HINT: 'HINT', UNRECOGNIZED: 'UNRECOGNIZED', UNSUPPORTED: 'UNSUPPORTED', PERFORMANCE: 'PERFORMANCE', TOPOLOGY: 'TOPOLOGY', SECURITY: 'SECURITY', DEPRECATION: 'DEPRECATION', GENERIC: 'GENERIC' }; exports.notificationFilterDisabledCategory = notificationFilterDisabledCategory; Object.freeze(notificationFilterDisabledCategory); /** * The notification filter object which can be configured in * the session and driver creation. * * Values not defined are interpreted as default. * * @interface */ var NotificationFilter = /** @class */ (function () { /** * @constructor * @private */ function NotificationFilter() { /** * The minimum level of all notifications to receive. * * @public * @type {?NotificationFilterMinimumSeverityLevel} */ this.minimumSeverityLevel = undefined; /** * Categories the user would like to opt-out of receiving. * @type {?NotificationFilterDisabledCategory[]} */ this.disabledCategories = undefined; throw new Error('Not implemented'); } return NotificationFilter; }()); exports.default = NotificationFilter;