From 51b031f55590f137b6a4d053077dc4c1a127f979 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Wed, 17 Apr 2024 20:27:56 +0000 Subject: [PATCH] chore(deps): bump 'notifications' image to 'sha256:d6ad12c9cf7808828c23015fb6ee9edb6637f5365d88dfdefb512fbf2aee9e48' --- .../notifications-schema.graphql | 61 ++++++------------- charts/galoy/values.yaml | 2 +- 2 files changed, 18 insertions(+), 45 deletions(-) diff --git a/charts/galoy/apollo-router/notifications-schema.graphql b/charts/galoy/apollo-router/notifications-schema.graphql index 082cfa85d6..a6e693e998 100644 --- a/charts/galoy/apollo-router/notifications-schema.graphql +++ b/charts/galoy/apollo-router/notifications-schema.graphql @@ -1,59 +1,32 @@ -type Mutation { - userDisableNotificationChannel(input: UserDisableNotificationChannelInput!): UserUpdateNotificationSettingsPayload! - userEnableNotificationChannel(input: UserEnableNotificationChannelInput!): UserUpdateNotificationSettingsPayload! - userDisableNotificationCategory(input: UserDisableNotificationCategoryInput!): UserUpdateNotificationSettingsPayload! - userEnableNotificationCategory(input: UserEnableNotificationCategoryInput!): UserUpdateNotificationSettingsPayload! -} - - - -extend type User @key(fields: "id") { - id: ID! @external - notificationSettings: UserNotificationSettings! -} - -input UserDisableNotificationCategoryInput { - channel: UserNotificationChannel! - category: UserNotificationCategory! +type InAppNotification { + id: ID! + title: String! + body: String! + deepLink: String + createdAt: Timestamp! + readAt: Timestamp } -input UserDisableNotificationChannelInput { - channel: UserNotificationChannel! -} -input UserEnableNotificationCategoryInput { - channel: UserNotificationChannel! - category: UserNotificationCategory! +type Mutation { + userInAppNotificationMarkAsRead(input: UserInAppNotificationMarkAsReadInput!): UserInAppNotificationMarkAsReadPayload! } -input UserEnableNotificationChannelInput { - channel: UserNotificationChannel! -} -enum UserNotificationCategory { - CIRCLES - PAYMENTS - ADMIN_NOTIFICATION - MARKETING - PRICE - SECURITY -} -enum UserNotificationChannel { - PUSH -} +scalar Timestamp -type UserNotificationChannelSettings { - enabled: Boolean! - disabledCategories: [UserNotificationCategory!]! +extend type User @key(fields: "id") { + id: ID! @external + inAppNotifications(onlyUnread: Boolean): [InAppNotification!]! } -type UserNotificationSettings { - push: UserNotificationChannelSettings! +input UserInAppNotificationMarkAsReadInput { + notificationId: ID! } -type UserUpdateNotificationSettingsPayload { - notificationSettings: UserNotificationSettings! +type UserInAppNotificationMarkAsReadPayload { + notification: InAppNotification! } extend schema @link( diff --git a/charts/galoy/values.yaml b/charts/galoy/values.yaml index 25e3e15f3a..5c72aca9b6 100644 --- a/charts/galoy/values.yaml +++ b/charts/galoy/values.yaml @@ -75,7 +75,7 @@ galoy: repository: us.gcr.io/galoy-org/galoy-notifications ## Digest of the image ## - digest: "sha256:6463fd024ba6de7c5f98745aeec8c2328fee909a3ae1cd18b1fde92473f43f2a" # METADATA:: repository=https://github.com/GaloyMoney/galoy;commit_ref=b260709;app=notifications;monorepo_subdir=core/notifications; + digest: "sha256:d6ad12c9cf7808828c23015fb6ee9edb6637f5365d88dfdefb512fbf2aee9e48" # METADATA:: repository=https://github.com/GaloyMoney/galoy;commit_ref=da49c22;app=notifications;monorepo_subdir=core/notifications; ## Galoy Application MongoDB Migration Image details ## mongodbMigrate: