Skip to content

Commit

Permalink
chore(deps): bump 'notifications' image to 'sha256:5e1661025c423c60be…
Browse files Browse the repository at this point in the history
…f419e7f715deeee84c4aa047b1e4510a66e4a6f9a5756a'
  • Loading branch information
galoybot committed Apr 18, 2024
1 parent 9c14d7b commit 192fca7
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 14 deletions.
76 changes: 63 additions & 13 deletions charts/galoy/apollo-router/notifications-schema.graphql
Original file line number Diff line number Diff line change
@@ -1,32 +1,82 @@
type InAppNotification {
type Mutation {
statefulNotificationAcknowledge(input: StatefulNotificationAcknowledgeInput!): StatefulNotificationAcknowledgePayload!
}

"""
Information about pagination in a connection
"""
type PageInfo @shareable {
"""
When paginating backwards, are there more items?
"""
hasPreviousPage: Boolean!
"""
When paginating forwards, are there more items?
"""
hasNextPage: Boolean!
"""
When paginating backwards, the cursor to continue.
"""
startCursor: String
"""
When paginating forwards, the cursor to continue.
"""
endCursor: String
}


type StatefulNotification {
id: ID!
title: String!
body: String!
deepLink: String
createdAt: Timestamp!
readAt: Timestamp
acknowledgedAt: Timestamp
}

input StatefulNotificationAcknowledgeInput {
notificationId: ID!
}

type Mutation {
userInAppNotificationMarkAsRead(input: UserInAppNotificationMarkAsReadInput!): UserInAppNotificationMarkAsReadPayload!
type StatefulNotificationAcknowledgePayload {
notification: StatefulNotification!
}

type StatefulNotificationConnection @shareable {
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
"""
A list of edges.
"""
edges: [StatefulNotificationEdge!]!
"""
A list of nodes.
"""
nodes: [StatefulNotification!]!
}

"""
An edge in a connection.
"""
type StatefulNotificationEdge @shareable {
"""
The item at the end of the edge
"""
node: StatefulNotification!
"""
A cursor for use in pagination
"""
cursor: String!
}


scalar Timestamp

extend type User @key(fields: "id") {
id: ID! @external
inAppNotifications(onlyUnread: Boolean): [InAppNotification!]!
}

input UserInAppNotificationMarkAsReadInput {
notificationId: ID!
}

type UserInAppNotificationMarkAsReadPayload {
notification: InAppNotification!
statefulNotifications(first: Int!, after: String): StatefulNotificationConnection!
}

extend schema @link(
Expand Down
2 changes: 1 addition & 1 deletion charts/galoy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ galoy:
repository: us.gcr.io/galoy-org/galoy-notifications
## Digest of the image
##
digest: "sha256:d6ad12c9cf7808828c23015fb6ee9edb6637f5365d88dfdefb512fbf2aee9e48" # METADATA:: repository=https://github.com/GaloyMoney/galoy;commit_ref=da49c22;app=notifications;monorepo_subdir=core/notifications;
digest: "sha256:5e1661025c423c60bef419e7f715deeee84c4aa047b1e4510a66e4a6f9a5756a" # METADATA:: repository=https://github.com/GaloyMoney/galoy;commit_ref=4bb2d09;app=notifications;monorepo_subdir=core/notifications;
## Galoy Application MongoDB Migration Image details
##
mongodbMigrate:
Expand Down

0 comments on commit 192fca7

Please sign in to comment.