diff --git a/app/graphql/generated.gql b/app/graphql/generated.gql index f88632edf2..b4a81c8f8f 100644 --- a/app/graphql/generated.gql +++ b/app/graphql/generated.gql @@ -867,7 +867,7 @@ query StatefulNotifications($after: String) { deepLink createdAt acknowledgedAt - addToBulletin + bulletinEnabled __typename } pageInfo { diff --git a/app/graphql/generated.ts b/app/graphql/generated.ts index f86af14a67..b424fb65ba 100644 --- a/app/graphql/generated.ts +++ b/app/graphql/generated.ts @@ -1815,8 +1815,8 @@ export type SettlementViaOnChain = { export type StatefulNotification = { readonly __typename: 'StatefulNotification'; readonly acknowledgedAt?: Maybe; - readonly addToBulletin: Scalars['Boolean']['output']; readonly body: Scalars['String']['output']; + readonly bulletinEnabled: Scalars['Boolean']['output']; readonly createdAt: Scalars['Timestamp']['output']; readonly deepLink?: Maybe; readonly id: Scalars['ID']['output']; @@ -2108,6 +2108,7 @@ export type User = { /** Whether TOTP is enabled for this user. */ readonly totpEnabled: Scalars['Boolean']['output']; readonly unacknowledgedStatefulNotificationsCount: Scalars['Int']['output']; + readonly unacknowledgedStatefulNotificationsWithBulletinEnabled: StatefulNotificationConnection; /** * Optional immutable user friendly identifier. * @deprecated will be moved to @Handle in Account and Wallet @@ -2126,6 +2127,12 @@ export type UserStatefulNotificationsArgs = { first: Scalars['Int']['input']; }; + +export type UserUnacknowledgedStatefulNotificationsWithBulletinEnabledArgs = { + after?: InputMaybe; + first: Scalars['Int']['input']; +}; + export type UserContact = { readonly __typename: 'UserContact'; /** @@ -2611,7 +2618,7 @@ export type StatefulNotificationsQueryVariables = Exact<{ }>; -export type StatefulNotificationsQuery = { readonly __typename: 'Query', readonly me?: { readonly __typename: 'User', readonly statefulNotifications: { readonly __typename: 'StatefulNotificationConnection', readonly nodes: ReadonlyArray<{ readonly __typename: 'StatefulNotification', readonly id: string, readonly title: string, readonly body: string, readonly deepLink?: string | null, readonly createdAt: number, readonly acknowledgedAt?: number | null, readonly addToBulletin: boolean }>, readonly pageInfo: { readonly __typename: 'PageInfo', readonly endCursor?: string | null, readonly hasNextPage: boolean, readonly hasPreviousPage: boolean, readonly startCursor?: string | null } } } | null }; +export type StatefulNotificationsQuery = { readonly __typename: 'Query', readonly me?: { readonly __typename: 'User', readonly statefulNotifications: { readonly __typename: 'StatefulNotificationConnection', readonly nodes: ReadonlyArray<{ readonly __typename: 'StatefulNotification', readonly id: string, readonly title: string, readonly body: string, readonly deepLink?: string | null, readonly createdAt: number, readonly acknowledgedAt?: number | null, readonly bulletinEnabled: boolean }>, readonly pageInfo: { readonly __typename: 'PageInfo', readonly endCursor?: string | null, readonly hasNextPage: boolean, readonly hasPreviousPage: boolean, readonly startCursor?: string | null } } } | null }; export type StatefulNotificationAcknowledgeMutationVariables = Exact<{ input: StatefulNotificationAcknowledgeInput; @@ -4742,7 +4749,7 @@ export const StatefulNotificationsDocument = gql` deepLink createdAt acknowledgedAt - addToBulletin + bulletinEnabled } pageInfo { endCursor @@ -9161,8 +9168,8 @@ export interface SignedDisplayMajorAmountScalarConfig extends GraphQLScalarTypeC export type StatefulNotificationResolvers = { acknowledgedAt?: Resolver, ParentType, ContextType>; - addToBulletin?: Resolver; body?: Resolver; + bulletinEnabled?: Resolver; createdAt?: Resolver; deepLink?: Resolver, ParentType, ContextType>; id?: Resolver; @@ -9307,6 +9314,7 @@ export type UserResolvers, ParentType, ContextType>; totpEnabled?: Resolver; unacknowledgedStatefulNotificationsCount?: Resolver; + unacknowledgedStatefulNotificationsWithBulletinEnabled?: Resolver>; username?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }; diff --git a/app/screens/notification-history-screen/notification-history-screen.tsx b/app/screens/notification-history-screen/notification-history-screen.tsx index 803de270b8..f123d2cc17 100644 --- a/app/screens/notification-history-screen/notification-history-screen.tsx +++ b/app/screens/notification-history-screen/notification-history-screen.tsx @@ -20,7 +20,7 @@ gql` deepLink createdAt acknowledgedAt - addToBulletin + bulletinEnabled } pageInfo { endCursor