File tree Expand file tree Collapse file tree 7 files changed +22
-6
lines changed
neo4j-driver-deno/lib/core Expand file tree Collapse file tree 7 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ Object.freeze(notificationFilterMinimumSeverityLevel)
4141
4242type NotificationFilterDisabledCategory = ExcludeUnknown < NotificationCategory >
4343/**
44- * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'DEPRECATION' | 'GENERIC' } NotificationFilterDisabledCategory
44+ * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | ' DEPRECATION' | 'GENERIC' } NotificationFilterDisabledCategory
4545 */
4646/**
4747 * Constants that represents the disabled categories in the {@link NotificationFilter}
@@ -51,6 +51,8 @@ const notificationFilterDisabledCategory: EnumRecord<NotificationFilterDisabledC
5151 UNRECOGNIZED : 'UNRECOGNIZED' ,
5252 UNSUPPORTED : 'UNSUPPORTED' ,
5353 PERFORMANCE : 'PERFORMANCE' ,
54+ TOPOLOGY : 'TOPOLOGY' ,
55+ SECURITY : 'SECURITY' ,
5456 DEPRECATION : 'DEPRECATION' ,
5557 GENERIC : 'GENERIC'
5658}
Original file line number Diff line number Diff line change @@ -436,9 +436,9 @@ Object.freeze(notificationSeverityLevel)
436436const severityLevels = Object . values ( notificationSeverityLevel )
437437
438438type NotificationCategory = 'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' | 'PERFORMANCE' |
439- 'DEPRECATION' | 'GENERIC' | 'UNKNOWN'
439+ 'TOPOLOGY' | 'SECURITY' | ' DEPRECATION' | 'GENERIC' | 'UNKNOWN'
440440/**
441- * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'DEPRECATION' | 'GENERIC' | 'UNKNOWN' } NotificationCategory
441+ * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | ' DEPRECATION' | 'GENERIC' | 'UNKNOWN' } NotificationCategory
442442 */
443443/**
444444 * Constants that represents the Category in the {@link Notification}
@@ -449,6 +449,8 @@ const notificationCategory: { [key in NotificationCategory]: key } = {
449449 UNSUPPORTED : 'UNSUPPORTED' ,
450450 PERFORMANCE : 'PERFORMANCE' ,
451451 DEPRECATION : 'DEPRECATION' ,
452+ TOPOLOGY : 'TOPOLOGY' ,
453+ SECURITY : 'SECURITY' ,
452454 GENERIC : 'GENERIC' ,
453455 UNKNOWN : 'UNKNOWN'
454456}
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ function getValidNotificationsCategories (): NotificationFilterDisabledCategory[
7777 'DEPRECATION' ,
7878 'GENERIC' ,
7979 'PERFORMANCE' ,
80+ 'TOPOLOGY' ,
81+ 'SECURITY' ,
8082 'UNRECOGNIZED' ,
8183 'UNSUPPORTED'
8284 ]
Original file line number Diff line number Diff line change @@ -375,6 +375,8 @@ function getValidCategories (): NotificationCategory[] {
375375 'UNRECOGNIZED' ,
376376 'UNSUPPORTED' ,
377377 'PERFORMANCE' ,
378+ 'TOPOLOGY' ,
379+ 'SECURITY' ,
378380 'DEPRECATION' ,
379381 'GENERIC' ,
380382 'UNKNOWN'
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ Object.freeze(notificationFilterMinimumSeverityLevel)
4141
4242type NotificationFilterDisabledCategory = ExcludeUnknown < NotificationCategory >
4343/**
44- * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'DEPRECATION' | 'GENERIC' } NotificationFilterDisabledCategory
44+ * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | ' DEPRECATION' | 'GENERIC' } NotificationFilterDisabledCategory
4545 */
4646/**
4747 * Constants that represents the disabled categories in the {@link NotificationFilter}
@@ -51,6 +51,8 @@ const notificationFilterDisabledCategory: EnumRecord<NotificationFilterDisabledC
5151 UNRECOGNIZED : 'UNRECOGNIZED' ,
5252 UNSUPPORTED : 'UNSUPPORTED' ,
5353 PERFORMANCE : 'PERFORMANCE' ,
54+ TOPOLOGY : 'TOPOLOGY' ,
55+ SECURITY : 'SECURITY' ,
5456 DEPRECATION : 'DEPRECATION' ,
5557 GENERIC : 'GENERIC'
5658}
Original file line number Diff line number Diff line change @@ -436,9 +436,9 @@ Object.freeze(notificationSeverityLevel)
436436const severityLevels = Object . values ( notificationSeverityLevel )
437437
438438type NotificationCategory = 'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' | 'PERFORMANCE' |
439- 'DEPRECATION' | 'GENERIC' | 'UNKNOWN'
439+ 'TOPOLOGY' | 'SECURITY' | ' DEPRECATION' | 'GENERIC' | 'UNKNOWN'
440440/**
441- * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'DEPRECATION' | 'GENERIC' | 'UNKNOWN' } NotificationCategory
441+ * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | ' DEPRECATION' | 'GENERIC' | 'UNKNOWN' } NotificationCategory
442442 */
443443/**
444444 * Constants that represents the Category in the {@link Notification}
@@ -449,6 +449,8 @@ const notificationCategory: { [key in NotificationCategory]: key } = {
449449 UNSUPPORTED : 'UNSUPPORTED' ,
450450 PERFORMANCE : 'PERFORMANCE' ,
451451 DEPRECATION : 'DEPRECATION' ,
452+ TOPOLOGY : 'TOPOLOGY' ,
453+ SECURITY : 'SECURITY' ,
452454 GENERIC : 'GENERIC' ,
453455 UNKNOWN : 'UNKNOWN'
454456}
Original file line number Diff line number Diff line change @@ -145,13 +145,17 @@ const informationSeverity: NotificationSeverityLevel = notificationSeverityLevel
145145const hintCategoryString : string = notificationCategory . HINT
146146const deprecationCategoryString : string = notificationCategory . DEPRECATION
147147const performanceCategoryString : string = notificationCategory . PERFORMANCE
148+ const topologyCategoryString : string = notificationCategory . TOPOLOGY
149+ const securityCategoryString : string = notificationCategory . SECURITY
148150const genericCategoryString : string = notificationCategory . GENERIC
149151const unrecognizedCategoryString : string = notificationCategory . UNRECOGNIZED
150152const unsupportedCategoryString : string = notificationCategory . UNSUPPORTED
151153const unknownCategoryString : string = notificationCategory . UNKNOWN
152154const hintCategory : NotificationCategory = notificationCategory . HINT
153155const deprecationCategory : NotificationCategory = notificationCategory . DEPRECATION
154156const performanceCategory : NotificationCategory = notificationCategory . PERFORMANCE
157+ const topologyCategory : NotificationCategory = notificationCategory . TOPOLOGY
158+ const securityCategory : NotificationCategory = notificationCategory . SECURITY
155159const genericCategory : NotificationCategory = notificationCategory . GENERIC
156160const unrecognizedCategory : NotificationCategory = notificationCategory . UNRECOGNIZED
157161const unsupportedCategory : NotificationCategory = notificationCategory . UNSUPPORTED
You can’t perform that action at this time.
0 commit comments