From de3bc2f1773afdaf63c702083475c4f42e1f4f57 Mon Sep 17 00:00:00 2001 From: MaxAake <61233757+MaxAake@users.noreply.github.com> Date: Tue, 13 Aug 2024 11:45:13 +0200 Subject: [PATCH] Add SCHEMA notification category Adds support for the SCHEMA notification category and associated tests. The SCHEMA category is used for sending additional information about indexes and constraints. --- packages/core/src/notification-filter.ts | 5 +++-- packages/core/src/notification.ts | 5 +++-- packages/core/test/notification-filter.test.ts | 1 + packages/core/test/notification.test.ts | 2 ++ packages/neo4j-driver-deno/lib/core/notification-filter.ts | 5 +++-- packages/neo4j-driver-deno/lib/core/notification.ts | 5 +++-- packages/neo4j-driver/test/types/index.test.ts | 4 ++++ 7 files changed, 19 insertions(+), 8 deletions(-) diff --git a/packages/core/src/notification-filter.ts b/packages/core/src/notification-filter.ts index 0426ca4b4..624c5287d 100644 --- a/packages/core/src/notification-filter.ts +++ b/packages/core/src/notification-filter.ts @@ -40,7 +40,7 @@ Object.freeze(notificationFilterMinimumSeverityLevel) type NotificationFilterDisabledCategory = ExcludeUnknown /** - * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC'} NotificationFilterDisabledCategory + * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC' | 'SCHEMA'} NotificationFilterDisabledCategory */ /** * Constants that represents the disabled categories in the {@link NotificationFilter} @@ -53,7 +53,8 @@ const notificationFilterDisabledCategory: EnumRecord /** - * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC'} NotificationFilterDisabledCategory + * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC' | 'SCHEMA'} NotificationFilterDisabledCategory */ /** * Constants that represents the disabled categories in the {@link NotificationFilter} @@ -53,7 +53,8 @@ const notificationFilterDisabledCategory: EnumRecord