Compare commits
12 Commits
dean/add-h
...
dean/add-p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce8d2aaec8 | ||
| 0f89f97006 | |||
| cdf438c089 | |||
| 7dbfadf13a | |||
| a74a11e789 | |||
| 3b2f88c0e0 | |||
| a3ac769cd4 | |||
| 00fc2ab44b | |||
| 58ab272289 | |||
| 242afae92b | |||
| 6bf597a2ec | |||
| 5c62d45068 |
580
src/index.tsx
580
src/index.tsx
@@ -2286,6 +2286,7 @@ export type Mutation = {
|
|||||||
createSubscription: CreateSubscriptionResultGql;
|
createSubscription: CreateSubscriptionResultGql;
|
||||||
createUploadStream: CreateUploadStreamReturn;
|
createUploadStream: CreateUploadStreamReturn;
|
||||||
deleteComment: Scalars["Boolean"]["output"];
|
deleteComment: Scalars["Boolean"]["output"];
|
||||||
|
deleteNotification: Scalars["Boolean"]["output"];
|
||||||
deleteTags: Scalars["Boolean"]["output"];
|
deleteTags: Scalars["Boolean"]["output"];
|
||||||
deleteUser: Scalars["Boolean"]["output"];
|
deleteUser: Scalars["Boolean"]["output"];
|
||||||
deleteVideo: Scalars["Boolean"]["output"];
|
deleteVideo: Scalars["Boolean"]["output"];
|
||||||
@@ -2300,6 +2301,9 @@ export type Mutation = {
|
|||||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||||
getUploadLink: GetUploadLinkReturn;
|
getUploadLink: GetUploadLinkReturn;
|
||||||
|
markAllNotificationsAsRead: Scalars["Boolean"]["output"];
|
||||||
|
markNotificationAsRead: Scalars["Boolean"]["output"];
|
||||||
|
markNotificationsAsRead: Scalars["Boolean"]["output"];
|
||||||
reactToVideo: Scalars["Boolean"]["output"];
|
reactToVideo: Scalars["Boolean"]["output"];
|
||||||
reportContent: Scalars["Boolean"]["output"];
|
reportContent: Scalars["Boolean"]["output"];
|
||||||
retireTags: Scalars["Boolean"]["output"];
|
retireTags: Scalars["Boolean"]["output"];
|
||||||
@@ -2346,6 +2350,10 @@ export type MutationDeleteCommentArgs = {
|
|||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationDeleteNotificationArgs = {
|
||||||
|
notificationId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationDeleteTagsArgs = {
|
export type MutationDeleteTagsArgs = {
|
||||||
tagsToDelete: Array<VideoTagInput>;
|
tagsToDelete: Array<VideoTagInput>;
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
@@ -2401,6 +2409,14 @@ export type MutationGetUploadLinkArgs = {
|
|||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationMarkNotificationAsReadArgs = {
|
||||||
|
notificationId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type MutationMarkNotificationsAsReadArgs = {
|
||||||
|
notificationIds: Array<Scalars["Int"]["input"]>;
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationReactToVideoArgs = {
|
export type MutationReactToVideoArgs = {
|
||||||
reaction?: InputMaybe<ReactionEnum>;
|
reaction?: InputMaybe<ReactionEnum>;
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
@@ -2441,6 +2457,39 @@ export type NoInitForChunkedUploadErr = {
|
|||||||
segmentType: StreamSegmentTypeEnum;
|
segmentType: StreamSegmentTypeEnum;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type NotificationConnection = {
|
||||||
|
__typename?: "NotificationConnection";
|
||||||
|
hasMore: Scalars["Boolean"]["output"];
|
||||||
|
notifications: Array<NotificationGql>;
|
||||||
|
totalCount: Scalars["Int"]["output"];
|
||||||
|
unreadCount: Scalars["Int"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type NotificationFilters = {
|
||||||
|
isRead?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
|
notificationTypes?: InputMaybe<Array<NotificationTypeEnum>>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type NotificationGql = {
|
||||||
|
__typename?: "NotificationGQL";
|
||||||
|
actor: UserGql;
|
||||||
|
comment?: Maybe<CommentGql>;
|
||||||
|
createdAt: Scalars["DateTime"]["output"];
|
||||||
|
id: Scalars["Int"]["output"];
|
||||||
|
isRead: Scalars["Boolean"]["output"];
|
||||||
|
notificationType: NotificationTypeEnum;
|
||||||
|
reactionType?: Maybe<Scalars["String"]["output"]>;
|
||||||
|
readAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
|
videoId?: Maybe<Scalars["Int"]["output"]>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export enum NotificationTypeEnum {
|
||||||
|
Comment = "COMMENT",
|
||||||
|
CommentReply = "COMMENT_REPLY",
|
||||||
|
Follow = "FOLLOW",
|
||||||
|
Reaction = "REACTION",
|
||||||
|
}
|
||||||
|
|
||||||
export type OtherErrorNeedsNote = {
|
export type OtherErrorNeedsNote = {
|
||||||
__typename?: "OtherErrorNeedsNote";
|
__typename?: "OtherErrorNeedsNote";
|
||||||
msg?: Maybe<Scalars["String"]["output"]>;
|
msg?: Maybe<Scalars["String"]["output"]>;
|
||||||
@@ -2550,6 +2599,8 @@ export type Query = {
|
|||||||
getVideo: VideoGql;
|
getVideo: VideoGql;
|
||||||
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
|
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
|
||||||
getVideos: Array<VideoGql>;
|
getVideos: Array<VideoGql>;
|
||||||
|
notifications: NotificationConnection;
|
||||||
|
unreadNotificationCount: Scalars["Int"]["output"];
|
||||||
waitFor: Scalars["Float"]["output"];
|
waitFor: Scalars["Float"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2689,6 +2740,12 @@ export type QueryGetVideosArgs = {
|
|||||||
videoIds: Array<Scalars["Int"]["input"]>;
|
videoIds: Array<Scalars["Int"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QueryNotificationsArgs = {
|
||||||
|
filters?: InputMaybe<NotificationFilters>;
|
||||||
|
limit?: Scalars["Int"]["input"];
|
||||||
|
offset?: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type QueryWaitForArgs = {
|
export type QueryWaitForArgs = {
|
||||||
duration: Scalars["Float"]["input"];
|
duration: Scalars["Float"]["input"];
|
||||||
};
|
};
|
||||||
@@ -3208,6 +3265,7 @@ export type VideoGql = {
|
|||||||
name?: Maybe<Scalars["String"]["output"]>;
|
name?: Maybe<Scalars["String"]["output"]>;
|
||||||
owner?: Maybe<UserGql>;
|
owner?: Maybe<UserGql>;
|
||||||
playlist?: Maybe<HlsPlaylistGql>;
|
playlist?: Maybe<HlsPlaylistGql>;
|
||||||
|
pocketSize?: Maybe<Scalars["Float"]["output"]>;
|
||||||
private: Scalars["Boolean"]["output"];
|
private: Scalars["Boolean"]["output"];
|
||||||
reactions: Array<ReactionGql>;
|
reactions: Array<ReactionGql>;
|
||||||
screenshotUri?: Maybe<Scalars["String"]["output"]>;
|
screenshotUri?: Maybe<Scalars["String"]["output"]>;
|
||||||
@@ -3236,6 +3294,7 @@ export type VideoMetadataInput = {
|
|||||||
/** @deprecated `game_type` is deprecated. Use `tags` instead. */
|
/** @deprecated `game_type` is deprecated. Use `tags` instead. */
|
||||||
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
lastIntendedSegmentBound?: InputMaybe<Scalars["Int"]["input"]>;
|
lastIntendedSegmentBound?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
pocketSize?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
private?: InputMaybe<Scalars["Boolean"]["input"]>;
|
private?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
resolution?: InputMaybe<VideoResolution>;
|
resolution?: InputMaybe<VideoResolution>;
|
||||||
startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
@@ -3956,6 +4015,122 @@ export type GetMedalsQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetNotificationsQueryVariables = Exact<{
|
||||||
|
limit?: Scalars["Int"]["input"];
|
||||||
|
offset?: Scalars["Int"]["input"];
|
||||||
|
filters?: InputMaybe<NotificationFilters>;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetNotificationsQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
notifications: {
|
||||||
|
__typename?: "NotificationConnection";
|
||||||
|
totalCount: number;
|
||||||
|
unreadCount: number;
|
||||||
|
hasMore: boolean;
|
||||||
|
notifications: Array<{
|
||||||
|
__typename?: "NotificationGQL";
|
||||||
|
id: number;
|
||||||
|
notificationType: NotificationTypeEnum;
|
||||||
|
videoId?: number | null;
|
||||||
|
reactionType?: string | null;
|
||||||
|
isRead: boolean;
|
||||||
|
createdAt: any;
|
||||||
|
readAt?: any | null;
|
||||||
|
actor: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
};
|
||||||
|
comment?: {
|
||||||
|
__typename?: "CommentGQL";
|
||||||
|
id: number;
|
||||||
|
message: string;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
};
|
||||||
|
} | null;
|
||||||
|
}>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetUnreadNotificationCountQueryVariables = Exact<{
|
||||||
|
[key: string]: never;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetUnreadNotificationCountQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
unreadNotificationCount: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type MarkNotificationAsReadMutationVariables = Exact<{
|
||||||
|
notificationId: Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type MarkNotificationAsReadMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
markNotificationAsRead: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type MarkNotificationsAsReadMutationVariables = Exact<{
|
||||||
|
notificationIds: Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type MarkNotificationsAsReadMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
markNotificationsAsRead: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type MarkAllNotificationsAsReadMutationVariables = Exact<{
|
||||||
|
[key: string]: never;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type MarkAllNotificationsAsReadMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
markAllNotificationsAsRead: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type DeleteNotificationMutationVariables = Exact<{
|
||||||
|
notificationId: Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type DeleteNotificationMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
deleteNotification: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type NotificationFragment = {
|
||||||
|
__typename?: "NotificationGQL";
|
||||||
|
id: number;
|
||||||
|
notificationType: NotificationTypeEnum;
|
||||||
|
videoId?: number | null;
|
||||||
|
reactionType?: string | null;
|
||||||
|
isRead: boolean;
|
||||||
|
createdAt: any;
|
||||||
|
readAt?: any | null;
|
||||||
|
actor: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
};
|
||||||
|
comment?: {
|
||||||
|
__typename?: "CommentGQL";
|
||||||
|
id: number;
|
||||||
|
message: string;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
};
|
||||||
|
} | null;
|
||||||
|
};
|
||||||
|
|
||||||
export type EnsureStripeCustomerExistsMutationVariables = Exact<{
|
export type EnsureStripeCustomerExistsMutationVariables = Exact<{
|
||||||
[key: string]: never;
|
[key: string]: never;
|
||||||
}>;
|
}>;
|
||||||
@@ -4314,6 +4489,10 @@ export type GetShotsWithMetadataFilterResultQuery = {
|
|||||||
id: string;
|
id: string;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
} | null;
|
} | null;
|
||||||
|
playlist?: {
|
||||||
|
__typename?: "HLSPlaylistGQL";
|
||||||
|
segmentDurations: Array<number>;
|
||||||
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
@@ -4392,6 +4571,10 @@ export type GetShotsWithMetadataQuery = {
|
|||||||
id: string;
|
id: string;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
} | null;
|
} | null;
|
||||||
|
playlist?: {
|
||||||
|
__typename?: "HLSPlaylistGQL";
|
||||||
|
segmentDurations: Array<number>;
|
||||||
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
@@ -4459,6 +4642,10 @@ export type GetShotsByIdsQuery = {
|
|||||||
id: string;
|
id: string;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
} | null;
|
} | null;
|
||||||
|
playlist?: {
|
||||||
|
__typename?: "HLSPlaylistGQL";
|
||||||
|
segmentDurations: Array<number>;
|
||||||
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
@@ -4519,6 +4706,10 @@ export type ShotWithAllFeaturesFragment = {
|
|||||||
id: string;
|
id: string;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
} | null;
|
} | null;
|
||||||
|
playlist?: {
|
||||||
|
__typename?: "HLSPlaylistGQL";
|
||||||
|
segmentDurations: Array<number>;
|
||||||
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -4596,6 +4787,10 @@ export type EditShotMutation = {
|
|||||||
id: string;
|
id: string;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
} | null;
|
} | null;
|
||||||
|
playlist?: {
|
||||||
|
__typename?: "HLSPlaylistGQL";
|
||||||
|
segmentDurations: Array<number>;
|
||||||
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
@@ -4975,6 +5170,7 @@ export type GetVideoUpdatePageDetailsQuery = {
|
|||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
|
pocketSize?: number | null;
|
||||||
private: boolean;
|
private: boolean;
|
||||||
tags: Array<{
|
tags: Array<{
|
||||||
__typename?: "VideoTag";
|
__typename?: "VideoTag";
|
||||||
@@ -5015,6 +5211,7 @@ export type GetVideoDetailsQuery = {
|
|||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
|
pocketSize?: number | null;
|
||||||
private: boolean;
|
private: boolean;
|
||||||
owner?: {
|
owner?: {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
@@ -5041,6 +5238,9 @@ export type GetVideoSocialDetailsByIdQuery = {
|
|||||||
__typename?: "VideoGQL";
|
__typename?: "VideoGQL";
|
||||||
id: number;
|
id: number;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
|
screenshotUri?: string | null;
|
||||||
|
makePercentage: number;
|
||||||
|
totalShots: number;
|
||||||
owner?: {
|
owner?: {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
id: number;
|
id: number;
|
||||||
@@ -5770,6 +5970,31 @@ export const MedalFieldsFragmentDoc = gql`
|
|||||||
nickname
|
nickname
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
export const NotificationFragmentDoc = gql`
|
||||||
|
fragment Notification on NotificationGQL {
|
||||||
|
id
|
||||||
|
notificationType
|
||||||
|
actor {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
videoId
|
||||||
|
comment {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
reactionType
|
||||||
|
isRead
|
||||||
|
createdAt
|
||||||
|
readAt
|
||||||
|
}
|
||||||
|
`;
|
||||||
export const PocketingIntentionFragmentFragmentDoc = gql`
|
export const PocketingIntentionFragmentFragmentDoc = gql`
|
||||||
fragment PocketingIntentionFragment on PocketingIntentionFeaturesGQL {
|
fragment PocketingIntentionFragment on PocketingIntentionFeaturesGQL {
|
||||||
make
|
make
|
||||||
@@ -5841,6 +6066,9 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|||||||
id
|
id
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
}
|
}
|
||||||
|
playlist {
|
||||||
|
segmentDurations
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -7029,6 +7257,353 @@ export type GetMedalsQueryResult = Apollo.QueryResult<
|
|||||||
GetMedalsQuery,
|
GetMedalsQuery,
|
||||||
GetMedalsQueryVariables
|
GetMedalsQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetNotificationsDocument = gql`
|
||||||
|
query GetNotifications(
|
||||||
|
$limit: Int! = 20
|
||||||
|
$offset: Int! = 0
|
||||||
|
$filters: NotificationFilters = null
|
||||||
|
) {
|
||||||
|
notifications(limit: $limit, offset: $offset, filters: $filters) {
|
||||||
|
notifications {
|
||||||
|
...Notification
|
||||||
|
}
|
||||||
|
totalCount
|
||||||
|
unreadCount
|
||||||
|
hasMore
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${NotificationFragmentDoc}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetNotificationsQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetNotificationsQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetNotificationsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
||||||
|
* you can use to render your UI.
|
||||||
|
*
|
||||||
|
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const { data, loading, error } = useGetNotificationsQuery({
|
||||||
|
* variables: {
|
||||||
|
* limit: // value for 'limit'
|
||||||
|
* offset: // value for 'offset'
|
||||||
|
* filters: // value for 'filters'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetNotificationsQuery(
|
||||||
|
baseOptions?: Apollo.QueryHookOptions<
|
||||||
|
GetNotificationsQuery,
|
||||||
|
GetNotificationsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<GetNotificationsQuery, GetNotificationsQueryVariables>(
|
||||||
|
GetNotificationsDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export function useGetNotificationsLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetNotificationsQuery,
|
||||||
|
GetNotificationsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetNotificationsQuery,
|
||||||
|
GetNotificationsQueryVariables
|
||||||
|
>(GetNotificationsDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetNotificationsSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetNotificationsQuery,
|
||||||
|
GetNotificationsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetNotificationsQuery,
|
||||||
|
GetNotificationsQueryVariables
|
||||||
|
>(GetNotificationsDocument, options);
|
||||||
|
}
|
||||||
|
export type GetNotificationsQueryHookResult = ReturnType<
|
||||||
|
typeof useGetNotificationsQuery
|
||||||
|
>;
|
||||||
|
export type GetNotificationsLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetNotificationsLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetNotificationsSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetNotificationsSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetNotificationsQueryResult = Apollo.QueryResult<
|
||||||
|
GetNotificationsQuery,
|
||||||
|
GetNotificationsQueryVariables
|
||||||
|
>;
|
||||||
|
export const GetUnreadNotificationCountDocument = gql`
|
||||||
|
query GetUnreadNotificationCount {
|
||||||
|
unreadNotificationCount
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetUnreadNotificationCountQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetUnreadNotificationCountQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetUnreadNotificationCountQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
||||||
|
* you can use to render your UI.
|
||||||
|
*
|
||||||
|
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const { data, loading, error } = useGetUnreadNotificationCountQuery({
|
||||||
|
* variables: {
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetUnreadNotificationCountQuery(
|
||||||
|
baseOptions?: Apollo.QueryHookOptions<
|
||||||
|
GetUnreadNotificationCountQuery,
|
||||||
|
GetUnreadNotificationCountQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<
|
||||||
|
GetUnreadNotificationCountQuery,
|
||||||
|
GetUnreadNotificationCountQueryVariables
|
||||||
|
>(GetUnreadNotificationCountDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetUnreadNotificationCountLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetUnreadNotificationCountQuery,
|
||||||
|
GetUnreadNotificationCountQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetUnreadNotificationCountQuery,
|
||||||
|
GetUnreadNotificationCountQueryVariables
|
||||||
|
>(GetUnreadNotificationCountDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetUnreadNotificationCountSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetUnreadNotificationCountQuery,
|
||||||
|
GetUnreadNotificationCountQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetUnreadNotificationCountQuery,
|
||||||
|
GetUnreadNotificationCountQueryVariables
|
||||||
|
>(GetUnreadNotificationCountDocument, options);
|
||||||
|
}
|
||||||
|
export type GetUnreadNotificationCountQueryHookResult = ReturnType<
|
||||||
|
typeof useGetUnreadNotificationCountQuery
|
||||||
|
>;
|
||||||
|
export type GetUnreadNotificationCountLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetUnreadNotificationCountLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetUnreadNotificationCountSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetUnreadNotificationCountSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetUnreadNotificationCountQueryResult = Apollo.QueryResult<
|
||||||
|
GetUnreadNotificationCountQuery,
|
||||||
|
GetUnreadNotificationCountQueryVariables
|
||||||
|
>;
|
||||||
|
export const MarkNotificationAsReadDocument = gql`
|
||||||
|
mutation MarkNotificationAsRead($notificationId: Int!) {
|
||||||
|
markNotificationAsRead(notificationId: $notificationId)
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type MarkNotificationAsReadMutationFn = Apollo.MutationFunction<
|
||||||
|
MarkNotificationAsReadMutation,
|
||||||
|
MarkNotificationAsReadMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useMarkNotificationAsReadMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useMarkNotificationAsReadMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useMarkNotificationAsReadMutation` returns a tuple that includes:
|
||||||
|
* - A mutate function that you can call at any time to execute the mutation
|
||||||
|
* - An object with fields that represent the current status of the mutation's execution
|
||||||
|
*
|
||||||
|
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const [markNotificationAsReadMutation, { data, loading, error }] = useMarkNotificationAsReadMutation({
|
||||||
|
* variables: {
|
||||||
|
* notificationId: // value for 'notificationId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useMarkNotificationAsReadMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
MarkNotificationAsReadMutation,
|
||||||
|
MarkNotificationAsReadMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<
|
||||||
|
MarkNotificationAsReadMutation,
|
||||||
|
MarkNotificationAsReadMutationVariables
|
||||||
|
>(MarkNotificationAsReadDocument, options);
|
||||||
|
}
|
||||||
|
export type MarkNotificationAsReadMutationHookResult = ReturnType<
|
||||||
|
typeof useMarkNotificationAsReadMutation
|
||||||
|
>;
|
||||||
|
export type MarkNotificationAsReadMutationResult =
|
||||||
|
Apollo.MutationResult<MarkNotificationAsReadMutation>;
|
||||||
|
export type MarkNotificationAsReadMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
MarkNotificationAsReadMutation,
|
||||||
|
MarkNotificationAsReadMutationVariables
|
||||||
|
>;
|
||||||
|
export const MarkNotificationsAsReadDocument = gql`
|
||||||
|
mutation MarkNotificationsAsRead($notificationIds: [Int!]!) {
|
||||||
|
markNotificationsAsRead(notificationIds: $notificationIds)
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type MarkNotificationsAsReadMutationFn = Apollo.MutationFunction<
|
||||||
|
MarkNotificationsAsReadMutation,
|
||||||
|
MarkNotificationsAsReadMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useMarkNotificationsAsReadMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useMarkNotificationsAsReadMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useMarkNotificationsAsReadMutation` returns a tuple that includes:
|
||||||
|
* - A mutate function that you can call at any time to execute the mutation
|
||||||
|
* - An object with fields that represent the current status of the mutation's execution
|
||||||
|
*
|
||||||
|
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const [markNotificationsAsReadMutation, { data, loading, error }] = useMarkNotificationsAsReadMutation({
|
||||||
|
* variables: {
|
||||||
|
* notificationIds: // value for 'notificationIds'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useMarkNotificationsAsReadMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
MarkNotificationsAsReadMutation,
|
||||||
|
MarkNotificationsAsReadMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<
|
||||||
|
MarkNotificationsAsReadMutation,
|
||||||
|
MarkNotificationsAsReadMutationVariables
|
||||||
|
>(MarkNotificationsAsReadDocument, options);
|
||||||
|
}
|
||||||
|
export type MarkNotificationsAsReadMutationHookResult = ReturnType<
|
||||||
|
typeof useMarkNotificationsAsReadMutation
|
||||||
|
>;
|
||||||
|
export type MarkNotificationsAsReadMutationResult =
|
||||||
|
Apollo.MutationResult<MarkNotificationsAsReadMutation>;
|
||||||
|
export type MarkNotificationsAsReadMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
MarkNotificationsAsReadMutation,
|
||||||
|
MarkNotificationsAsReadMutationVariables
|
||||||
|
>;
|
||||||
|
export const MarkAllNotificationsAsReadDocument = gql`
|
||||||
|
mutation MarkAllNotificationsAsRead {
|
||||||
|
markAllNotificationsAsRead
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type MarkAllNotificationsAsReadMutationFn = Apollo.MutationFunction<
|
||||||
|
MarkAllNotificationsAsReadMutation,
|
||||||
|
MarkAllNotificationsAsReadMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useMarkAllNotificationsAsReadMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useMarkAllNotificationsAsReadMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useMarkAllNotificationsAsReadMutation` returns a tuple that includes:
|
||||||
|
* - A mutate function that you can call at any time to execute the mutation
|
||||||
|
* - An object with fields that represent the current status of the mutation's execution
|
||||||
|
*
|
||||||
|
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const [markAllNotificationsAsReadMutation, { data, loading, error }] = useMarkAllNotificationsAsReadMutation({
|
||||||
|
* variables: {
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useMarkAllNotificationsAsReadMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
MarkAllNotificationsAsReadMutation,
|
||||||
|
MarkAllNotificationsAsReadMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<
|
||||||
|
MarkAllNotificationsAsReadMutation,
|
||||||
|
MarkAllNotificationsAsReadMutationVariables
|
||||||
|
>(MarkAllNotificationsAsReadDocument, options);
|
||||||
|
}
|
||||||
|
export type MarkAllNotificationsAsReadMutationHookResult = ReturnType<
|
||||||
|
typeof useMarkAllNotificationsAsReadMutation
|
||||||
|
>;
|
||||||
|
export type MarkAllNotificationsAsReadMutationResult =
|
||||||
|
Apollo.MutationResult<MarkAllNotificationsAsReadMutation>;
|
||||||
|
export type MarkAllNotificationsAsReadMutationOptions =
|
||||||
|
Apollo.BaseMutationOptions<
|
||||||
|
MarkAllNotificationsAsReadMutation,
|
||||||
|
MarkAllNotificationsAsReadMutationVariables
|
||||||
|
>;
|
||||||
|
export const DeleteNotificationDocument = gql`
|
||||||
|
mutation DeleteNotification($notificationId: Int!) {
|
||||||
|
deleteNotification(notificationId: $notificationId)
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type DeleteNotificationMutationFn = Apollo.MutationFunction<
|
||||||
|
DeleteNotificationMutation,
|
||||||
|
DeleteNotificationMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useDeleteNotificationMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useDeleteNotificationMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useDeleteNotificationMutation` returns a tuple that includes:
|
||||||
|
* - A mutate function that you can call at any time to execute the mutation
|
||||||
|
* - An object with fields that represent the current status of the mutation's execution
|
||||||
|
*
|
||||||
|
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const [deleteNotificationMutation, { data, loading, error }] = useDeleteNotificationMutation({
|
||||||
|
* variables: {
|
||||||
|
* notificationId: // value for 'notificationId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useDeleteNotificationMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
DeleteNotificationMutation,
|
||||||
|
DeleteNotificationMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<
|
||||||
|
DeleteNotificationMutation,
|
||||||
|
DeleteNotificationMutationVariables
|
||||||
|
>(DeleteNotificationDocument, options);
|
||||||
|
}
|
||||||
|
export type DeleteNotificationMutationHookResult = ReturnType<
|
||||||
|
typeof useDeleteNotificationMutation
|
||||||
|
>;
|
||||||
|
export type DeleteNotificationMutationResult =
|
||||||
|
Apollo.MutationResult<DeleteNotificationMutation>;
|
||||||
|
export type DeleteNotificationMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
DeleteNotificationMutation,
|
||||||
|
DeleteNotificationMutationVariables
|
||||||
|
>;
|
||||||
export const EnsureStripeCustomerExistsDocument = gql`
|
export const EnsureStripeCustomerExistsDocument = gql`
|
||||||
mutation EnsureStripeCustomerExists {
|
mutation EnsureStripeCustomerExists {
|
||||||
ensureStripeCustomerExists {
|
ensureStripeCustomerExists {
|
||||||
@@ -9487,6 +10062,7 @@ export const GetVideoUpdatePageDetailsDocument = gql`
|
|||||||
makePercentage
|
makePercentage
|
||||||
elapsedTime
|
elapsedTime
|
||||||
tableSize
|
tableSize
|
||||||
|
pocketSize
|
||||||
private
|
private
|
||||||
tags {
|
tags {
|
||||||
tagClasses {
|
tagClasses {
|
||||||
@@ -9628,6 +10204,7 @@ export const GetVideoDetailsDocument = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
tableSize
|
tableSize
|
||||||
|
pocketSize
|
||||||
private
|
private
|
||||||
owner {
|
owner {
|
||||||
id
|
id
|
||||||
@@ -9715,6 +10292,9 @@ export const GetVideoSocialDetailsByIdDocument = gql`
|
|||||||
getVideo(videoId: $videoId) {
|
getVideo(videoId: $videoId) {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
screenshotUri
|
||||||
|
makePercentage
|
||||||
|
totalShots
|
||||||
owner {
|
owner {
|
||||||
id
|
id
|
||||||
firebaseUid
|
firebaseUid
|
||||||
|
|||||||
58
src/operations/notifications.gql
Normal file
58
src/operations/notifications.gql
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
query GetNotifications(
|
||||||
|
$limit: Int! = 20
|
||||||
|
$offset: Int! = 0
|
||||||
|
$filters: NotificationFilters = null
|
||||||
|
) {
|
||||||
|
notifications(limit: $limit, offset: $offset, filters: $filters) {
|
||||||
|
notifications {
|
||||||
|
...Notification
|
||||||
|
}
|
||||||
|
totalCount
|
||||||
|
unreadCount
|
||||||
|
hasMore
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetUnreadNotificationCount {
|
||||||
|
unreadNotificationCount
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation MarkNotificationAsRead($notificationId: Int!) {
|
||||||
|
markNotificationAsRead(notificationId: $notificationId)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation MarkNotificationsAsRead($notificationIds: [Int!]!) {
|
||||||
|
markNotificationsAsRead(notificationIds: $notificationIds)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation MarkAllNotificationsAsRead {
|
||||||
|
markAllNotificationsAsRead
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation DeleteNotification($notificationId: Int!) {
|
||||||
|
deleteNotification(notificationId: $notificationId)
|
||||||
|
}
|
||||||
|
|
||||||
|
fragment Notification on NotificationGQL {
|
||||||
|
id
|
||||||
|
notificationType
|
||||||
|
actor {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
videoId
|
||||||
|
comment {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
reactionType
|
||||||
|
isRead
|
||||||
|
createdAt
|
||||||
|
readAt
|
||||||
|
}
|
||||||
@@ -191,6 +191,9 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
id
|
id
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
}
|
}
|
||||||
|
playlist {
|
||||||
|
segmentDurations
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ query GetVideoUpdatePageDetails($videoId: Int!) {
|
|||||||
makePercentage
|
makePercentage
|
||||||
elapsedTime
|
elapsedTime
|
||||||
tableSize
|
tableSize
|
||||||
|
pocketSize
|
||||||
private
|
private
|
||||||
tags {
|
tags {
|
||||||
tagClasses {
|
tagClasses {
|
||||||
@@ -66,6 +67,7 @@ query GetVideoDetails($videoId: Int!) {
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
tableSize
|
tableSize
|
||||||
|
pocketSize
|
||||||
private
|
private
|
||||||
owner {
|
owner {
|
||||||
id
|
id
|
||||||
@@ -97,6 +99,9 @@ query GetVideoSocialDetailsById($videoId: Int!) {
|
|||||||
getVideo(videoId: $videoId) {
|
getVideo(videoId: $videoId) {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
screenshotUri
|
||||||
|
makePercentage
|
||||||
|
totalShots
|
||||||
owner {
|
owner {
|
||||||
id
|
id
|
||||||
firebaseUid
|
firebaseUid
|
||||||
|
|||||||
@@ -28,6 +28,12 @@ type Query {
|
|||||||
when: DateTime = null
|
when: DateTime = null
|
||||||
): CountLeaderboardGQL!
|
): CountLeaderboardGQL!
|
||||||
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
||||||
|
notifications(
|
||||||
|
limit: Int! = 20
|
||||||
|
offset: Int! = 0
|
||||||
|
filters: NotificationFilters = null
|
||||||
|
): NotificationConnection!
|
||||||
|
unreadNotificationCount: Int!
|
||||||
getRuns(
|
getRuns(
|
||||||
filterInput: RunFilterInput!
|
filterInput: RunFilterInput!
|
||||||
runIds: [Int!] = null
|
runIds: [Int!] = null
|
||||||
@@ -342,6 +348,7 @@ type VideoGQL {
|
|||||||
elapsedTime: Float
|
elapsedTime: Float
|
||||||
framesPerSecond: Float!
|
framesPerSecond: Float!
|
||||||
tableSize: Float!
|
tableSize: Float!
|
||||||
|
pocketSize: Float
|
||||||
private: Boolean!
|
private: Boolean!
|
||||||
stream: UploadStreamGQL
|
stream: UploadStreamGQL
|
||||||
playlist: HLSPlaylistGQL
|
playlist: HLSPlaylistGQL
|
||||||
@@ -715,6 +722,37 @@ input MedalScope @oneOf {
|
|||||||
datetimeRange: DatetimeRangeAggregationInput
|
datetimeRange: DatetimeRangeAggregationInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type NotificationConnection {
|
||||||
|
notifications: [NotificationGQL!]!
|
||||||
|
totalCount: Int!
|
||||||
|
unreadCount: Int!
|
||||||
|
hasMore: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
|
type NotificationGQL {
|
||||||
|
id: Int!
|
||||||
|
notificationType: NotificationTypeEnum!
|
||||||
|
actor: UserGQL!
|
||||||
|
videoId: Int
|
||||||
|
comment: CommentGQL
|
||||||
|
reactionType: String
|
||||||
|
isRead: Boolean!
|
||||||
|
createdAt: DateTime!
|
||||||
|
readAt: DateTime
|
||||||
|
}
|
||||||
|
|
||||||
|
enum NotificationTypeEnum {
|
||||||
|
COMMENT
|
||||||
|
COMMENT_REPLY
|
||||||
|
REACTION
|
||||||
|
FOLLOW
|
||||||
|
}
|
||||||
|
|
||||||
|
input NotificationFilters {
|
||||||
|
isRead: Boolean = null
|
||||||
|
notificationTypes: [NotificationTypeEnum!] = null
|
||||||
|
}
|
||||||
|
|
||||||
type GetRunsResult {
|
type GetRunsResult {
|
||||||
runs: [RunGQL!]!
|
runs: [RunGQL!]!
|
||||||
count: Int
|
count: Int
|
||||||
@@ -916,6 +954,10 @@ type Mutation {
|
|||||||
reason: ReportReasonEnum!
|
reason: ReportReasonEnum!
|
||||||
customReason: String = null
|
customReason: String = null
|
||||||
): Boolean!
|
): Boolean!
|
||||||
|
markNotificationAsRead(notificationId: Int!): Boolean!
|
||||||
|
markAllNotificationsAsRead: Boolean!
|
||||||
|
markNotificationsAsRead(notificationIds: [Int!]!): Boolean!
|
||||||
|
deleteNotification(notificationId: Int!): Boolean!
|
||||||
addAnnotationToShot(
|
addAnnotationToShot(
|
||||||
shotId: Int!
|
shotId: Int!
|
||||||
annotationName: String!
|
annotationName: String!
|
||||||
@@ -1081,6 +1123,7 @@ input VideoMetadataInput {
|
|||||||
"""
|
"""
|
||||||
tags: [VideoTagInput!] = null
|
tags: [VideoTagInput!] = null
|
||||||
tableSize: Float = null
|
tableSize: Float = null
|
||||||
|
pocketSize: Float = null
|
||||||
lastIntendedSegmentBound: Int = null
|
lastIntendedSegmentBound: Int = null
|
||||||
streamSegmentType: StreamSegmentTypeEnum = null
|
streamSegmentType: StreamSegmentTypeEnum = null
|
||||||
private: Boolean = null
|
private: Boolean = null
|
||||||
|
|||||||
Reference in New Issue
Block a user