From f165b49e90c93f63573f72df29512626aeb6b536 Mon Sep 17 00:00:00 2001 From: Lukasz Zajaczkowski Date: Thu, 7 Mar 2024 09:45:29 +0100 Subject: [PATCH] Fix schema for notification routers --- models_gen.go | 10 ++++++++++ schema/schema.graphql | 16 +++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/models_gen.go b/models_gen.go index 61d37c1..8463010 100644 --- a/models_gen.go +++ b/models_gen.go @@ -1873,6 +1873,16 @@ type NotificationRouterAttributes struct { RouterSinks []*RouterSinkAttributes `json:"routerSinks,omitempty"` } +type NotificationRouterConnection struct { + PageInfo PageInfo `json:"pageInfo"` + Edges []*NotificationRouterEdge `json:"edges,omitempty"` +} + +type NotificationRouterEdge struct { + Node *NotificationRouter `json:"node,omitempty"` + Cursor *string `json:"cursor,omitempty"` +} + type NotificationSink struct { ID string `json:"id"` // the name of the sink diff --git a/schema/schema.graphql b/schema/schema.graphql index 29116d3..e23116a 100644 --- a/schema/schema.graphql +++ b/schema/schema.graphql @@ -316,7 +316,7 @@ type RootQueryType { notificationSinks(after: String, first: Int, before: String, last: Int): NotificationSinkConnection - notificationRouters(after: String, first: Int, before: String, last: Int): NotificationSinkConnection + notificationRouters(after: String, first: Int, before: String, last: Int): NotificationRouterConnection deploymentSettings: DeploymentSettings } @@ -626,10 +626,10 @@ type RootMutationType { upsertNotificationSink(attributes: NotificationSinkAttributes!): NotificationSink - upsertNotificationRouter(attributes: NotificationRouterAttributes!): NotificationRouter - deleteNotificationSink(id: ID!): NotificationSink + upsertNotificationRouter(attributes: NotificationRouterAttributes!): NotificationRouter + deleteNotificationRouter(id: ID!): NotificationRouter "a reusable mutation for updating rbac settings on core services" @@ -872,6 +872,11 @@ type NotificationSinkConnection { edges: [NotificationSinkEdge] } +type NotificationRouterConnection { + pageInfo: PageInfo! + edges: [NotificationRouterEdge] +} + enum RestoreStatus { CREATED PENDING @@ -4967,6 +4972,11 @@ type ObjectStoreEdge { cursor: String } +type NotificationRouterEdge { + node: NotificationRouter + cursor: String +} + type NotificationSinkEdge { node: NotificationSink cursor: String