diff --git a/packages/atlas/.storybook/preview.jsx b/packages/atlas/.storybook/preview.jsx
index 1d0d291a33..f6a7f737c9 100644
--- a/packages/atlas/.storybook/preview.jsx
+++ b/packages/atlas/.storybook/preview.jsx
@@ -2,6 +2,8 @@ import styled from '@emotion/styled'
import { useRef } from 'react'
import useResizeObserver from 'use-resize-observer'
+import { OperatorsContext } from '@/providers/assets/assets.provider'
+import { JoystreamContext } from '@/providers/joystream/joystream.provider'
import { GlobalStyles } from '@/styles'
const Wrapper = styled.div`
@@ -26,8 +28,19 @@ const StylesWrapperDecorator = (styleFn) => {
)
}
+const OperatorsContextDecorator = (Story) => (
+
+
+
+)
-export const decorators = [StylesWrapperDecorator]
+const TokenPriceDecorator = (Story) => (
+
+
+
+)
+
+export const decorators = [OperatorsContextDecorator, TokenPriceDecorator, StylesWrapperDecorator]
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
diff --git a/packages/atlas/src/.env b/packages/atlas/src/.env
index 70e8dd4f58..abcd73cd4c 100644
--- a/packages/atlas/src/.env
+++ b/packages/atlas/src/.env
@@ -54,9 +54,11 @@ VITE_NEXT_FAUCET_URL=https://atlas-next.joystream.org/member-faucet/register
VITE_NEXT_YPP_FAUCET_URL=https://52.204.147.11.nip.io/membership
# Local development env URLs
-VITE_LOCAL_ORION_URL=http://localhost:6116/graphql
+VITE_LOCAL_ORION_AUTH_URL=http://localhost:4074/api/v1
+VITE_LOCAL_ORION_URL=http://localhost:4350/graphql
VITE_LOCAL_QUERY_NODE_SUBSCRIPTION_URL=ws://localhost:8081/graphql
VITE_LOCAL_NODE_URL=ws://localhost:9944/ws-rpc
VITE_LOCAL_FAUCET_URL=http://localhost:3002/register
+VITE_LOCAL_YPP_FAUCET_URL=https://52.204.147.11.nip.io/membership
VITE_SENTRY_AUTH_TOKEN=
diff --git a/packages/atlas/src/api/hooks/notifications.ts b/packages/atlas/src/api/hooks/notifications.ts
index 2700e63931..b6e9b2e2d3 100644
--- a/packages/atlas/src/api/hooks/notifications.ts
+++ b/packages/atlas/src/api/hooks/notifications.ts
@@ -5,28 +5,30 @@ import {
GetNftActivitiesCountQueryVariables,
GetNftActivitiesQuery,
GetNftActivitiesQueryVariables,
- GetNotificationsConnectionQuery,
- GetNotificationsConnectionQueryVariables,
useGetNftActivitiesCountQuery,
useGetNftActivitiesQuery,
useGetNotificationsConnectionQuery,
+ useMarkNotificationsAsReadMutation,
} from '@/api/queries/__generated__/notifications.generated'
-import { NftActivityOrderByInput } from '../queries/__generated__/baseTypes.generated'
+import { NftActivityOrderByInput, RecipientTypeWhereInput } from '../queries/__generated__/baseTypes.generated'
export const useRawNotifications = (
- accountId: string,
- opts?: QueryHookOptions
+ recipient: RecipientTypeWhereInput | undefined,
+ opts?: Pick
) => {
const { data, ...rest } = useGetNotificationsConnectionQuery({
- variables: { first: 10, accountId },
- skip: !accountId,
+ variables: { first: 10, recipient: recipient as RecipientTypeWhereInput },
...opts,
+ skip: !recipient,
})
+
+ const [markNotificationsAsReadMutation] = useMarkNotificationsAsReadMutation()
+
return {
notifications: data?.notificationsConnection.edges || [],
- totalCount: data?.notificationsConnection.totalCount,
pageInfo: data?.notificationsConnection.pageInfo,
+ markNotificationsAsReadMutation,
...rest,
}
}
diff --git a/packages/atlas/src/api/queries/__generated__/baseTypes.generated.ts b/packages/atlas/src/api/queries/__generated__/baseTypes.generated.ts
index a992c1a1ac..f58cd3d2b7 100644
--- a/packages/atlas/src/api/queries/__generated__/baseTypes.generated.ts
+++ b/packages/atlas/src/api/queries/__generated__/baseTypes.generated.ts
@@ -33,6 +33,8 @@ export type Account = {
notificationPreferences: AccountNotificationPreferences
/** runtime notifications */
notifications: Array
+ /** ID of the channel which referred the user to the platform */
+ referrerChannelId?: Maybe
/** Time when the gateway account was registered */
registeredAt: Scalars['DateTime']
/** The user associated with the gateway account (the Gateway Account Owner) */
@@ -55,7 +57,7 @@ export type AccountData = {
isEmailConfirmed: Scalars['Boolean']
joystreamAccount: Scalars['String']
membershipId: Scalars['String']
- notificationPreferences?: Maybe
+ preferences?: Maybe
}
export type AccountEdge = {
@@ -74,6 +76,7 @@ export type AccountNotificationPreferences = {
channelFundsWithdrawn: NotificationPreference
channelPaymentReceived: NotificationPreference
channelReceivedFundsFromWg: NotificationPreference
+ creatorTimedAuctionExpired: NotificationPreference
fundsFromCouncilReceived: NotificationPreference
fundsFromWgReceived: NotificationPreference
fundsToExternalWalletSent: NotificationPreference
@@ -92,12 +95,11 @@ export type AccountNotificationPreferences = {
videoCommentCreated: NotificationPreference
videoDisliked: NotificationPreference
videoExcludedFromApp: NotificationPreference
- videoFeaturedAsHero: NotificationPreference
- videoFeaturedOnCategoryPage: NotificationPreference
videoLiked: NotificationPreference
videoPosted: NotificationPreference
yppChannelSuspended: NotificationPreference
yppChannelVerified: NotificationPreference
+ yppSignupSuccessful: NotificationPreference
}
export type AccountNotificationPreferencesInput = {
@@ -109,6 +111,7 @@ export type AccountNotificationPreferencesInput = {
channelFundsWithdrawn?: InputMaybe
channelPaymentReceived?: InputMaybe
channelReceivedFundsFromWg?: InputMaybe
+ creatorTimedAuctionExpired?: InputMaybe
fundsFromCouncilReceived?: InputMaybe
fundsFromWgReceived?: InputMaybe
fundsToExternalWalletSent?: InputMaybe
@@ -127,48 +130,47 @@ export type AccountNotificationPreferencesInput = {
videoCommentCreated?: InputMaybe
videoDisliked?: InputMaybe
videoExcludedFromApp?: InputMaybe
- videoFeaturedAsHero?: InputMaybe
- videoFeaturedOnCategoryPage?: InputMaybe
videoLiked?: InputMaybe
videoPosted?: InputMaybe
yppChannelSuspended?: InputMaybe
yppChannelVerified?: InputMaybe
+ yppSignupSuccessful?: InputMaybe
}
export type AccountNotificationPreferencesOutput = {
__typename?: 'AccountNotificationPreferencesOutput'
- auctionLost: NotificationPreferenceOutput
- auctionWon: NotificationPreferenceOutput
- bidMadeOnNft: NotificationPreferenceOutput
- channelCreated: NotificationPreferenceOutput
- channelExcludedFromApp: NotificationPreferenceOutput
- channelFundsWithdrawn: NotificationPreferenceOutput
- channelPaymentReceived: NotificationPreferenceOutput
- channelReceivedFundsFromWg: NotificationPreferenceOutput
- fundsFromCouncilReceived: NotificationPreferenceOutput
- fundsFromWgReceived: NotificationPreferenceOutput
- fundsToExternalWalletSent: NotificationPreferenceOutput
- higherBidThanYoursMade: NotificationPreferenceOutput
- newChannelFollower: NotificationPreferenceOutput
- newNftOnAuction: NotificationPreferenceOutput
- newNftOnSale: NotificationPreferenceOutput
- newPayoutUpdatedByCouncil: NotificationPreferenceOutput
- nftBought: NotificationPreferenceOutput
- nftFeaturedOnMarketPlace: NotificationPreferenceOutput
- openAuctionBidCanBeWithdrawn: NotificationPreferenceOutput
- reactionToComment: NotificationPreferenceOutput
- replyToComment: NotificationPreferenceOutput
- royaltyReceived: NotificationPreferenceOutput
- timedAuctionExpired: NotificationPreferenceOutput
- videoCommentCreated: NotificationPreferenceOutput
- videoDisliked: NotificationPreferenceOutput
- videoExcludedFromApp: NotificationPreferenceOutput
- videoFeaturedAsHero: NotificationPreferenceOutput
- videoFeaturedOnCategoryPage: NotificationPreferenceOutput
- videoLiked: NotificationPreferenceOutput
- videoPosted: NotificationPreferenceOutput
- yppChannelSuspended: NotificationPreferenceOutput
- yppChannelVerified: NotificationPreferenceOutput
+ auctionLost?: Maybe
+ auctionWon?: Maybe
+ bidMadeOnNft?: Maybe
+ channelCreated?: Maybe
+ channelExcludedFromApp?: Maybe
+ channelFundsWithdrawn?: Maybe
+ channelPaymentReceived?: Maybe
+ channelReceivedFundsFromWg?: Maybe
+ creatorTimedAuctionExpired?: Maybe
+ fundsFromCouncilReceived?: Maybe
+ fundsFromWgReceived?: Maybe
+ fundsToExternalWalletSent?: Maybe
+ higherBidThanYoursMade?: Maybe
+ newChannelFollower?: Maybe
+ newNftOnAuction?: Maybe
+ newNftOnSale?: Maybe
+ newPayoutUpdatedByCouncil?: Maybe
+ nftBought?: Maybe
+ nftFeaturedOnMarketPlace?: Maybe
+ openAuctionBidCanBeWithdrawn?: Maybe
+ reactionToComment?: Maybe
+ replyToComment?: Maybe
+ royaltyReceived?: Maybe
+ timedAuctionExpired?: Maybe
+ videoCommentCreated?: Maybe
+ videoDisliked?: Maybe
+ videoExcludedFromApp?: Maybe
+ videoLiked?: Maybe
+ videoPosted?: Maybe
+ yppChannelSuspended?: Maybe
+ yppChannelVerified?: Maybe
+ yppSignupSuccessful?: Maybe
}
export type AccountNotificationPreferencesResult = {
@@ -193,6 +195,8 @@ export type AccountNotificationPreferencesWhereInput = {
channelPaymentReceived_isNull?: InputMaybe
channelReceivedFundsFromWg?: InputMaybe
channelReceivedFundsFromWg_isNull?: InputMaybe
+ creatorTimedAuctionExpired?: InputMaybe
+ creatorTimedAuctionExpired_isNull?: InputMaybe
fundsFromCouncilReceived?: InputMaybe
fundsFromCouncilReceived_isNull?: InputMaybe
fundsFromWgReceived?: InputMaybe
@@ -229,10 +233,6 @@ export type AccountNotificationPreferencesWhereInput = {
videoDisliked_isNull?: InputMaybe
videoExcludedFromApp?: InputMaybe
videoExcludedFromApp_isNull?: InputMaybe
- videoFeaturedAsHero?: InputMaybe
- videoFeaturedAsHero_isNull?: InputMaybe
- videoFeaturedOnCategoryPage?: InputMaybe
- videoFeaturedOnCategoryPage_isNull?: InputMaybe
videoLiked?: InputMaybe
videoLiked_isNull?: InputMaybe
videoPosted?: InputMaybe
@@ -241,6 +241,8 @@ export type AccountNotificationPreferencesWhereInput = {
yppChannelSuspended_isNull?: InputMaybe
yppChannelVerified?: InputMaybe
yppChannelVerified_isNull?: InputMaybe
+ yppSignupSuccessful?: InputMaybe
+ yppSignupSuccessful_isNull?: InputMaybe
}
export enum AccountOrderByInput {
@@ -264,6 +266,8 @@ export enum AccountOrderByInput {
MembershipIdDesc = 'membership_id_DESC',
MembershipTotalChannelsCreatedAsc = 'membership_totalChannelsCreated_ASC',
MembershipTotalChannelsCreatedDesc = 'membership_totalChannelsCreated_DESC',
+ ReferrerChannelIdAsc = 'referrerChannelId_ASC',
+ ReferrerChannelIdDesc = 'referrerChannelId_DESC',
RegisteredAtAsc = 'registeredAt_ASC',
RegisteredAtDesc = 'registeredAt_DESC',
UserIdAsc = 'user_id_ASC',
@@ -339,6 +343,23 @@ export type AccountWhereInput = {
notifications_every?: InputMaybe
notifications_none?: InputMaybe
notifications_some?: InputMaybe
+ referrerChannelId_contains?: InputMaybe
+ referrerChannelId_containsInsensitive?: InputMaybe
+ referrerChannelId_endsWith?: InputMaybe
+ referrerChannelId_eq?: InputMaybe
+ referrerChannelId_gt?: InputMaybe
+ referrerChannelId_gte?: InputMaybe
+ referrerChannelId_in?: InputMaybe>
+ referrerChannelId_isNull?: InputMaybe
+ referrerChannelId_lt?: InputMaybe
+ referrerChannelId_lte?: InputMaybe
+ referrerChannelId_not_contains?: InputMaybe
+ referrerChannelId_not_containsInsensitive?: InputMaybe
+ referrerChannelId_not_endsWith?: InputMaybe
+ referrerChannelId_not_eq?: InputMaybe
+ referrerChannelId_not_in?: InputMaybe>
+ referrerChannelId_not_startsWith?: InputMaybe
+ referrerChannelId_startsWith?: InputMaybe
registeredAt_eq?: InputMaybe
registeredAt_gt?: InputMaybe
registeredAt_gte?: InputMaybe
@@ -770,6 +791,16 @@ export type AuctionEdge = {
node: Auction
}
+export type AuctionLost = {
+ __typename?: 'AuctionLost'
+ /** Auction type */
+ type: AuctionType
+ /** video Id used for link */
+ videoId: Scalars['String']
+ /** video title for notification text */
+ videoTitle: Scalars['String']
+}
+
export enum AuctionOrderByInput {
AuctionTypeBidLockDurationAsc = 'auctionType_bidLockDuration_ASC',
AuctionTypeBidLockDurationDesc = 'auctionType_bidLockDuration_DESC',
@@ -1075,6 +1106,16 @@ export type AuctionWhitelistedMembersConnection = {
totalCount: Scalars['Int']
}
+export type AuctionWon = {
+ __typename?: 'AuctionWon'
+ /** Auction type */
+ type: AuctionType
+ /** video Id used for link */
+ videoId: Scalars['String']
+ /** video title for notification text */
+ videoTitle: Scalars['String']
+}
+
export type AuctionsConnection = {
__typename?: 'AuctionsConnection'
edges: Array
@@ -1258,20 +1299,6 @@ export type BidEdge = {
node: Bid
}
-export type BidMadeCompletingAuction = {
- __typename?: 'BidMadeCompletingAuction'
- /** bid amount */
- amount: Scalars['BigInt']
- /** bidder handle for notification text */
- bidderHandle: Scalars['String']
- /** recipient */
- recipient: RecipientType
- /** video Id used for link */
- videoId: Scalars['String']
- /** video title for notification text */
- videoTitle: Scalars['String']
-}
-
export type BidMadeCompletingAuctionEventData = {
__typename?: 'BidMadeCompletingAuctionEventData'
/** NFT owner before the auction was completed */
@@ -1505,12 +1532,10 @@ export type ChannelVideosArgs = {
export type ChannelCreated = {
__typename?: 'ChannelCreated'
- /** channelId for link */
+ /** id for link construction */
channelId: Scalars['String']
- /** channel title for notification text */
+ /** title for link construction */
channelTitle: Scalars['String']
- /** recipient */
- recipient: RecipientType
}
export type ChannelCreatedEventData = {
@@ -1527,8 +1552,7 @@ export type ChannelEdge = {
export type ChannelExcluded = {
__typename?: 'ChannelExcluded'
- /** recipient also used for text production */
- recipient: RecipientType
+ phantom?: Maybe
}
export type ChannelFollow = {
@@ -1631,8 +1655,6 @@ export type ChannelFundsWithdrawn = {
__typename?: 'ChannelFundsWithdrawn'
/** amount */
amount: Scalars['BigInt']
- /** recipient */
- recipient: RecipientType
}
export type ChannelFundsWithdrawnEventData = {
@@ -1788,8 +1810,8 @@ export type ChannelPayoutsUpdatedEventData = {
export type ChannelRecipient = {
__typename?: 'ChannelRecipient'
- /** channel title */
- channelTitle: Scalars['String']
+ /** channel */
+ channel: Channel
}
export type ChannelReportInfo = {
@@ -1823,8 +1845,7 @@ export type ChannelRewardClaimedEventData = {
export type ChannelSuspended = {
__typename?: 'ChannelSuspended'
- /** recipient also used for text production */
- recipient: RecipientType
+ phantom?: Maybe
}
export type ChannelSuspension = {
@@ -2022,8 +2043,7 @@ export type ChannelVerificationsConnection = {
export type ChannelVerified = {
__typename?: 'ChannelVerified'
- /** recipient */
- recipient: RecipientType
+ phantom?: Maybe
}
export type ChannelWhereInput = {
@@ -2398,10 +2418,10 @@ export enum CommentOrderByInput {
export type CommentPostedToVideo = {
__typename?: 'CommentPostedToVideo'
+ /** id for the comment used for the link */
+ comentId: Scalars['String']
/** commenter handle for text */
memberHandle: Scalars['String']
- /** recipient */
- recipient: RecipientType
/** video Id used for link */
videoId: Scalars['String']
/** video title used for notification text */
@@ -2565,10 +2585,10 @@ export type CommentReactionsCountByReactionId = {
export type CommentReply = {
__typename?: 'CommentReply'
+ /** comment Id for the link */
+ commentId: Scalars['String']
/** member who replied */
memberHandle: Scalars['String']
- /** recipient */
- recipient: RecipientType
/** video Id used for link */
videoId: Scalars['String']
/** video title for notification text */
@@ -2758,8 +2778,6 @@ export type CreatorReceivesAuctionBid = {
amount: Scalars['BigInt']
/** bidder handle for notification text */
bidderHandle: Scalars['String']
- /** recipient */
- recipient: RecipientType
/** videoId used for notification link */
videoId: Scalars['String']
/** video title used for notification text */
@@ -2951,8 +2969,6 @@ export type DirectChannelPaymentByMember = {
amount: Scalars['BigInt']
/** payer handle */
payerHandle: Scalars['String']
- /** recipient, contains also channel title */
- recipient: RecipientType
}
export type DistributionBucket = {
@@ -3532,6 +3548,8 @@ export enum EncryptionArtifactsOrderByInput {
AccountIsEmailConfirmedDesc = 'account_isEmailConfirmed_DESC',
AccountJoystreamAccountAsc = 'account_joystreamAccount_ASC',
AccountJoystreamAccountDesc = 'account_joystreamAccount_DESC',
+ AccountReferrerChannelIdAsc = 'account_referrerChannelId_ASC',
+ AccountReferrerChannelIdDesc = 'account_referrerChannelId_DESC',
AccountRegisteredAtAsc = 'account_registeredAt_ASC',
AccountRegisteredAtDesc = 'account_registeredAt_DESC',
CipherIvAsc = 'cipherIv_ASC',
@@ -3600,28 +3618,6 @@ export type EncryptionArtifactsWhereInput = {
id_startsWith?: InputMaybe
}
-export type EnglishAuctionLost = {
- __typename?: 'EnglishAuctionLost'
- /** recipient */
- recipient: RecipientType
- /** video Id used for link */
- videoId: Scalars['String']
- /** video title for notification text */
- videoTitle: Scalars['String']
-}
-
-export type EnglishAuctionSettled = {
- __typename?: 'EnglishAuctionSettled'
- /** price paid */
- price: Scalars['BigInt']
- /** recipient */
- recipient: RecipientType
- /** video Id used for link */
- videoId: Scalars['String']
- /** video title for notification text */
- videoTitle: Scalars['String']
-}
-
export type EnglishAuctionSettledEventData = {
__typename?: 'EnglishAuctionSettledEventData'
/** NFT owner before the english auction was settled */
@@ -3640,16 +3636,6 @@ export type EnglishAuctionStartedEventData = {
nftOwner: NftOwner
}
-export type EnglishAuctionWon = {
- __typename?: 'EnglishAuctionWon'
- /** recipient */
- recipient: RecipientType
- /** video Id used for link */
- videoId: Scalars['String']
- /** video title for notification text */
- videoTitle: Scalars['String']
-}
-
export type EntityReportInfo = {
__typename?: 'EntityReportInfo'
created: Scalars['Boolean']
@@ -4332,8 +4318,6 @@ export type HigherBidPlaced = {
__typename?: 'HigherBidPlaced'
/** new bidder handle */
newBidderHandle: Scalars['String']
- /** recipient */
- recipient: RecipientType
/** video Id used for link */
videoId: Scalars['String']
/** video title for notification text */
@@ -4571,8 +4555,8 @@ export type MemberMetadataWhereInput = {
export type MemberRecipient = {
__typename?: 'MemberRecipient'
- /** member handle */
- memberHandle: Scalars['String']
+ /** membership */
+ membership: Membership
}
/** Stored information about a registered user */
@@ -4993,24 +4977,10 @@ export type MutationVerifyChannelArgs = {
export type NewAuction = {
__typename?: 'NewAuction'
+ /** channel id for notification link */
+ channelId: Scalars['String']
/** channel title for notification text */
channelTitle: Scalars['String']
- /** recipient */
- recipient: RecipientType
- /** video Id used for link */
- videoId: Scalars['String']
- /** video title for notification text */
- videoTitle: Scalars['String']
-}
-
-export type NewAuctionBid = {
- __typename?: 'NewAuctionBid'
- /** bid amount */
- amount: Scalars['BigInt']
- /** bidder handle for notification text */
- bidderHandle: Scalars['String']
- /** recipient */
- recipient: RecipientType
/** video Id used for link */
videoId: Scalars['String']
/** video title for notification text */
@@ -5021,16 +4991,14 @@ export type NewChannelFollower = {
__typename?: 'NewChannelFollower'
/** follower member handle for link */
followerHandle: Scalars['String']
- /** recipient also used for text production */
- recipient: RecipientType
}
export type NewNftOnSale = {
__typename?: 'NewNftOnSale'
+ /** channel id for notification link */
+ channelId: Scalars['String']
/** channel title for notification text */
channelTitle: Scalars['String']
- /** recipient */
- recipient: RecipientType
/** video Id used for link */
videoId: Scalars['String']
/** video title for notification text */
@@ -5125,8 +5093,6 @@ export type NftBoughtEventData = {
export type NftFeaturedOnMarketPlace = {
__typename?: 'NftFeaturedOnMarketPlace'
- /** recipient */
- recipient: RecipientType
/** videoId used for link construction */
videoId: Scalars['String']
/** video title for notification text */
@@ -5337,18 +5303,6 @@ export type NftIssuedEventData = {
nftOwner: NftOwner
}
-export type NftOffered = {
- __typename?: 'NftOffered'
- /** offering amount */
- amount: Scalars['BigInt']
- /** recipient */
- recipient: RecipientType
- /** videoId used for notification link */
- videoId: Scalars['String']
- /** video title used for notification text */
- videoTitle: Scalars['String']
-}
-
export type NftOfferedEventData = {
__typename?: 'NftOfferedEventData'
/** Nft owner at the time the nft was offered */
@@ -5397,8 +5351,6 @@ export type NftPurchased = {
buyerHandle: Scalars['String']
/** price paid */
price: Scalars['BigInt']
- /** recipient */
- recipient: RecipientType
/** video Id used for link */
videoId: Scalars['String']
/** video title for notification text */
@@ -5409,8 +5361,6 @@ export type NftRoyaltyPaid = {
__typename?: 'NftRoyaltyPaid'
/** bid amount */
amount: Scalars['BigInt']
- /** recipient */
- recipient: RecipientType
/** video Id used for link */
videoId: Scalars['String']
/** video title for notification text */
@@ -5487,8 +5437,12 @@ export type Notification = {
/** related event for on chain notifications */
event?: Maybe
id: Scalars['String']
+ /** wether this notification should be displayed in app */
+ inApp: Scalars['Boolean']
/** type of the notification, used for */
notificationType: NotificationType
+ /** recipient */
+ recipient: RecipientType
/** status */
status: ReadOrUnread
}
@@ -5536,6 +5490,8 @@ export enum NotificationEmailDeliveryOrderByInput {
NotificationCreatedAtDesc = 'notification_createdAt_DESC',
NotificationIdAsc = 'notification_id_ASC',
NotificationIdDesc = 'notification_id_DESC',
+ NotificationInAppAsc = 'notification_inApp_ASC',
+ NotificationInAppDesc = 'notification_inApp_DESC',
}
export type NotificationEmailDeliveryWhereInput = {
@@ -5567,60 +5523,6 @@ export type NotificationEmailDeliveryWhereInput = {
notification_isNull?: InputMaybe
}
-export type NotificationInAppDeliveriesConnection = {
- __typename?: 'NotificationInAppDeliveriesConnection'
- edges: Array
- pageInfo: PageInfo
- totalCount: Scalars['Int']
-}
-
-export type NotificationInAppDelivery = {
- __typename?: 'NotificationInAppDelivery'
- /** Autoincremented */
- id: Scalars['String']
- /** the notification being delivered */
- notification: Notification
-}
-
-export type NotificationInAppDeliveryEdge = {
- __typename?: 'NotificationInAppDeliveryEdge'
- cursor: Scalars['String']
- node: NotificationInAppDelivery
-}
-
-export enum NotificationInAppDeliveryOrderByInput {
- IdAsc = 'id_ASC',
- IdDesc = 'id_DESC',
- NotificationCreatedAtAsc = 'notification_createdAt_ASC',
- NotificationCreatedAtDesc = 'notification_createdAt_DESC',
- NotificationIdAsc = 'notification_id_ASC',
- NotificationIdDesc = 'notification_id_DESC',
-}
-
-export type NotificationInAppDeliveryWhereInput = {
- AND?: InputMaybe>
- OR?: InputMaybe>
- id_contains?: InputMaybe
- id_containsInsensitive?: InputMaybe
- id_endsWith?: InputMaybe
- id_eq?: InputMaybe
- id_gt?: InputMaybe
- id_gte?: InputMaybe
- id_in?: InputMaybe>
- id_isNull?: InputMaybe
- id_lt?: InputMaybe
- id_lte?: InputMaybe
- id_not_contains?: InputMaybe
- id_not_containsInsensitive?: InputMaybe
- id_not_endsWith?: InputMaybe
- id_not_eq?: InputMaybe
- id_not_in?: InputMaybe>
- id_not_startsWith?: InputMaybe
- id_startsWith?: InputMaybe
- notification?: InputMaybe
- notification_isNull?: InputMaybe
-}
-
export enum NotificationOrderByInput {
AccountEmailAsc = 'account_email_ASC',
AccountEmailDesc = 'account_email_DESC',
@@ -5632,6 +5534,8 @@ export enum NotificationOrderByInput {
AccountIsEmailConfirmedDesc = 'account_isEmailConfirmed_DESC',
AccountJoystreamAccountAsc = 'account_joystreamAccount_ASC',
AccountJoystreamAccountDesc = 'account_joystreamAccount_DESC',
+ AccountReferrerChannelIdAsc = 'account_referrerChannelId_ASC',
+ AccountReferrerChannelIdDesc = 'account_referrerChannelId_DESC',
AccountRegisteredAtAsc = 'account_registeredAt_ASC',
AccountRegisteredAtDesc = 'account_registeredAt_DESC',
CreatedAtAsc = 'createdAt_ASC',
@@ -5648,20 +5552,22 @@ export enum NotificationOrderByInput {
EventTimestampDesc = 'event_timestamp_DESC',
IdAsc = 'id_ASC',
IdDesc = 'id_DESC',
+ InAppAsc = 'inApp_ASC',
+ InAppDesc = 'inApp_DESC',
NotificationTypeAmountAsc = 'notificationType_amount_ASC',
NotificationTypeAmountDesc = 'notificationType_amount_DESC',
NotificationTypeBidderHandleAsc = 'notificationType_bidderHandle_ASC',
NotificationTypeBidderHandleDesc = 'notificationType_bidderHandle_DESC',
NotificationTypeBuyerHandleAsc = 'notificationType_buyerHandle_ASC',
NotificationTypeBuyerHandleDesc = 'notificationType_buyerHandle_DESC',
- NotificationTypeCategoryIdAsc = 'notificationType_categoryId_ASC',
- NotificationTypeCategoryIdDesc = 'notificationType_categoryId_DESC',
- NotificationTypeCategoryNameAsc = 'notificationType_categoryName_ASC',
- NotificationTypeCategoryNameDesc = 'notificationType_categoryName_DESC',
NotificationTypeChannelIdAsc = 'notificationType_channelId_ASC',
NotificationTypeChannelIdDesc = 'notificationType_channelId_DESC',
NotificationTypeChannelTitleAsc = 'notificationType_channelTitle_ASC',
NotificationTypeChannelTitleDesc = 'notificationType_channelTitle_DESC',
+ NotificationTypeComentIdAsc = 'notificationType_comentId_ASC',
+ NotificationTypeComentIdDesc = 'notificationType_comentId_DESC',
+ NotificationTypeCommentIdAsc = 'notificationType_commentId_ASC',
+ NotificationTypeCommentIdDesc = 'notificationType_commentId_DESC',
NotificationTypeFollowerHandleAsc = 'notificationType_followerHandle_ASC',
NotificationTypeFollowerHandleDesc = 'notificationType_followerHandle_DESC',
NotificationTypeIsTypeOfAsc = 'notificationType_isTypeOf_ASC',
@@ -5672,12 +5578,16 @@ export enum NotificationOrderByInput {
NotificationTypeNewBidderHandleDesc = 'notificationType_newBidderHandle_DESC',
NotificationTypePayerHandleAsc = 'notificationType_payerHandle_ASC',
NotificationTypePayerHandleDesc = 'notificationType_payerHandle_DESC',
+ NotificationTypePhantomAsc = 'notificationType_phantom_ASC',
+ NotificationTypePhantomDesc = 'notificationType_phantom_DESC',
NotificationTypePriceAsc = 'notificationType_price_ASC',
NotificationTypePriceDesc = 'notificationType_price_DESC',
NotificationTypeVideoIdAsc = 'notificationType_videoId_ASC',
NotificationTypeVideoIdDesc = 'notificationType_videoId_DESC',
NotificationTypeVideoTitleAsc = 'notificationType_videoTitle_ASC',
NotificationTypeVideoTitleDesc = 'notificationType_videoTitle_DESC',
+ RecipientIsTypeOfAsc = 'recipient_isTypeOf_ASC',
+ RecipientIsTypeOfDesc = 'recipient_isTypeOf_DESC',
StatusIsTypeOfAsc = 'status_isTypeOf_ASC',
StatusIsTypeOfDesc = 'status_isTypeOf_DESC',
StatusPhantomAsc = 'status_phantom_ASC',
@@ -5715,7 +5625,8 @@ export type NotificationPreferenceWhereInput = {
}
export type NotificationType =
- | BidMadeCompletingAuction
+ | AuctionLost
+ | AuctionWon
| ChannelCreated
| ChannelExcluded
| ChannelFundsWithdrawn
@@ -5725,25 +5636,16 @@ export type NotificationType =
| CommentReply
| CreatorReceivesAuctionBid
| DirectChannelPaymentByMember
- | EnglishAuctionLost
- | EnglishAuctionSettled
- | EnglishAuctionWon
| HigherBidPlaced
| NewAuction
- | NewAuctionBid
| NewChannelFollower
| NewNftOnSale
| NftFeaturedOnMarketPlace
- | NftOffered
| NftPurchased
| NftRoyaltyPaid
- | OpenAuctionLost
- | OpenAuctionWon
| ReactionToComment
| VideoDisliked
| VideoExcluded
- | VideoFeaturedAsCategoryHero
- | VideoFeaturedOnCategoryPage
| VideoLiked
| VideoPosted
@@ -5791,40 +5693,6 @@ export type NotificationTypeWhereInput = {
buyerHandle_not_in?: InputMaybe>
buyerHandle_not_startsWith?: InputMaybe
buyerHandle_startsWith?: InputMaybe
- categoryId_contains?: InputMaybe
- categoryId_containsInsensitive?: InputMaybe
- categoryId_endsWith?: InputMaybe
- categoryId_eq?: InputMaybe
- categoryId_gt?: InputMaybe
- categoryId_gte?: InputMaybe
- categoryId_in?: InputMaybe>
- categoryId_isNull?: InputMaybe
- categoryId_lt?: InputMaybe
- categoryId_lte?: InputMaybe
- categoryId_not_contains?: InputMaybe
- categoryId_not_containsInsensitive?: InputMaybe
- categoryId_not_endsWith?: InputMaybe
- categoryId_not_eq?: InputMaybe
- categoryId_not_in?: InputMaybe>
- categoryId_not_startsWith?: InputMaybe
- categoryId_startsWith?: InputMaybe
- categoryName_contains?: InputMaybe
- categoryName_containsInsensitive?: InputMaybe
- categoryName_endsWith?: InputMaybe
- categoryName_eq?: InputMaybe
- categoryName_gt?: InputMaybe
- categoryName_gte?: InputMaybe
- categoryName_in?: InputMaybe>
- categoryName_isNull?: InputMaybe
- categoryName_lt?: InputMaybe
- categoryName_lte?: InputMaybe
- categoryName_not_contains?: InputMaybe
- categoryName_not_containsInsensitive?: InputMaybe
- categoryName_not_endsWith?: InputMaybe
- categoryName_not_eq?: InputMaybe
- categoryName_not_in?: InputMaybe>
- categoryName_not_startsWith?: InputMaybe
- categoryName_startsWith?: InputMaybe
channelId_contains?: InputMaybe
channelId_containsInsensitive?: InputMaybe
channelId_endsWith?: InputMaybe
@@ -5859,6 +5727,40 @@ export type NotificationTypeWhereInput = {
channelTitle_not_in?: InputMaybe>
channelTitle_not_startsWith?: InputMaybe
channelTitle_startsWith?: InputMaybe
+ comentId_contains?: InputMaybe
+ comentId_containsInsensitive?: InputMaybe
+ comentId_endsWith?: InputMaybe
+ comentId_eq?: InputMaybe
+ comentId_gt?: InputMaybe
+ comentId_gte?: InputMaybe
+ comentId_in?: InputMaybe>
+ comentId_isNull?: InputMaybe
+ comentId_lt?: InputMaybe
+ comentId_lte?: InputMaybe
+ comentId_not_contains?: InputMaybe
+ comentId_not_containsInsensitive?: InputMaybe
+ comentId_not_endsWith?: InputMaybe
+ comentId_not_eq?: InputMaybe
+ comentId_not_in?: InputMaybe>
+ comentId_not_startsWith?: InputMaybe
+ comentId_startsWith?: InputMaybe
+ commentId_contains?: InputMaybe
+ commentId_containsInsensitive?: InputMaybe
+ commentId_endsWith?: InputMaybe
+ commentId_eq?: InputMaybe
+ commentId_gt?: InputMaybe
+ commentId_gte?: InputMaybe
+ commentId_in?: InputMaybe>
+ commentId_isNull?: InputMaybe
+ commentId_lt?: InputMaybe
+ commentId_lte?: InputMaybe
+ commentId_not_contains?: InputMaybe
+ commentId_not_containsInsensitive?: InputMaybe
+ commentId_not_endsWith?: InputMaybe
+ commentId_not_eq?: InputMaybe
+ commentId_not_in?: InputMaybe>
+ commentId_not_startsWith?: InputMaybe
+ commentId_startsWith?: InputMaybe
followerHandle_contains?: InputMaybe
followerHandle_containsInsensitive?: InputMaybe
followerHandle_endsWith?: InputMaybe
@@ -5944,6 +5846,15 @@ export type NotificationTypeWhereInput = {
payerHandle_not_in?: InputMaybe>
payerHandle_not_startsWith?: InputMaybe
payerHandle_startsWith?: InputMaybe
+ phantom_eq?: InputMaybe
+ phantom_gt?: InputMaybe
+ phantom_gte?: InputMaybe
+ phantom_in?: InputMaybe>
+ phantom_isNull?: InputMaybe
+ phantom_lt?: InputMaybe
+ phantom_lte?: InputMaybe
+ phantom_not_eq?: InputMaybe
+ phantom_not_in?: InputMaybe>
price_eq?: InputMaybe
price_gt?: InputMaybe
price_gte?: InputMaybe
@@ -5953,8 +5864,8 @@ export type NotificationTypeWhereInput = {
price_lte?: InputMaybe
price_not_eq?: InputMaybe
price_not_in?: InputMaybe>
- recipient?: InputMaybe
- recipient_isNull?: InputMaybe
+ type?: InputMaybe
+ type_isNull?: InputMaybe
videoId_contains?: InputMaybe
videoId_containsInsensitive?: InputMaybe
videoId_endsWith?: InputMaybe
@@ -6024,8 +5935,13 @@ export type NotificationWhereInput = {
id_not_in?: InputMaybe>
id_not_startsWith?: InputMaybe
id_startsWith?: InputMaybe
+ inApp_eq?: InputMaybe
+ inApp_isNull?: InputMaybe
+ inApp_not_eq?: InputMaybe
notificationType?: InputMaybe
notificationType_isNull?: InputMaybe
+ recipient?: InputMaybe
+ recipient_isNull?: InputMaybe
status?: InputMaybe
status_isNull?: InputMaybe
}
@@ -6047,16 +5963,6 @@ export type OpenAuctionBidAcceptedEventData = {
winningBid: Bid
}
-export type OpenAuctionLost = {
- __typename?: 'OpenAuctionLost'
- /** recipient */
- recipient: RecipientType
- /** video Id used for link */
- videoId: Scalars['String']
- /** video title for notification text */
- videoTitle: Scalars['String']
-}
-
export type OpenAuctionStartedEventData = {
__typename?: 'OpenAuctionStartedEventData'
/** Actor that started this auction. */
@@ -6067,16 +5973,6 @@ export type OpenAuctionStartedEventData = {
nftOwner: NftOwner
}
-export type OpenAuctionWon = {
- __typename?: 'OpenAuctionWon'
- /** recipient */
- recipient: RecipientType
- /** video Id used for link */
- videoId: Scalars['String']
- /** video title for notification text */
- videoTitle: Scalars['String']
-}
-
/** Represents NFT details */
export type OwnedNft = {
__typename?: 'OwnedNft'
@@ -6490,11 +6386,6 @@ export type Query = {
notificationEmailDeliveryById?: Maybe
/** @deprecated Use notificationEmailDeliveryById */
notificationEmailDeliveryByUniqueInput?: Maybe
- notificationInAppDeliveries: Array
- notificationInAppDeliveriesConnection: NotificationInAppDeliveriesConnection
- notificationInAppDeliveryById?: Maybe
- /** @deprecated Use notificationInAppDeliveryById */
- notificationInAppDeliveryByUniqueInput?: Maybe
notifications: Array
notificationsConnection: NotificationsConnection
ownedNftById?: Maybe
@@ -7326,28 +7217,6 @@ export type QueryNotificationEmailDeliveryByUniqueInputArgs = {
where: WhereIdInput
}
-export type QueryNotificationInAppDeliveriesArgs = {
- limit?: InputMaybe