Compare commits
1 Commits
dean/updat
...
653f31e96a
Author | SHA1 | Date | |
---|---|---|---|
653f31e96a |
184
src/index.tsx
184
src/index.tsx
@@ -122,6 +122,16 @@ export enum ClientUploadStatusEnum {
|
||||
UploadEnabled = "UPLOAD_ENABLED",
|
||||
}
|
||||
|
||||
export type CommentGql = {
|
||||
__typename?: "CommentGQL";
|
||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
id: Scalars["Int"]["output"];
|
||||
message: Scalars["String"]["output"];
|
||||
replies: Array<CommentGql>;
|
||||
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
user: UserGql;
|
||||
};
|
||||
|
||||
export type CountLeaderboardGql = {
|
||||
__typename?: "CountLeaderboardGQL";
|
||||
entries: Array<UserShotCountEntry>;
|
||||
@@ -2226,10 +2236,13 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
|
||||
export type Mutation = {
|
||||
__typename?: "Mutation";
|
||||
addAnnotationToShot: AddShotAnnotationReturn;
|
||||
commentOnVideo: Scalars["Boolean"]["output"];
|
||||
createBucketSet: BucketSetGql;
|
||||
createUploadStream: CreateUploadStreamReturn;
|
||||
deleteComment: Scalars["Boolean"]["output"];
|
||||
deleteTags: Scalars["Boolean"]["output"];
|
||||
deleteVideo: Scalars["Boolean"]["output"];
|
||||
editComment: Scalars["Boolean"]["output"];
|
||||
editProfileImageUri: UserGql;
|
||||
editShot: EditShotReturn;
|
||||
editUploadStream: Scalars["Boolean"]["output"];
|
||||
@@ -2253,6 +2266,12 @@ export type MutationAddAnnotationToShotArgs = {
|
||||
shotId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationCommentOnVideoArgs = {
|
||||
message: Scalars["String"]["input"];
|
||||
parentCommentId?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationCreateBucketSetArgs = {
|
||||
params: CreateBucketSetInput;
|
||||
};
|
||||
@@ -2261,6 +2280,11 @@ export type MutationCreateUploadStreamArgs = {
|
||||
videoMetadata: VideoMetadataInput;
|
||||
};
|
||||
|
||||
export type MutationDeleteCommentArgs = {
|
||||
commentId: Scalars["Int"]["input"];
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationDeleteTagsArgs = {
|
||||
tagsToDelete: Array<VideoTagInput>;
|
||||
videoId: Scalars["Int"]["input"];
|
||||
@@ -2270,6 +2294,12 @@ export type MutationDeleteVideoArgs = {
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationEditCommentArgs = {
|
||||
commentId: Scalars["Int"]["input"];
|
||||
newMessage: Scalars["String"]["input"];
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationEditProfileImageUriArgs = {
|
||||
profileImageUri: Scalars["String"]["input"];
|
||||
};
|
||||
@@ -3008,6 +3038,7 @@ export type VideoGql = {
|
||||
__typename?: "VideoGQL";
|
||||
averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
|
||||
averageTimeBetweenShots?: Maybe<Scalars["Float"]["output"]>;
|
||||
comments: Array<CommentGql>;
|
||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
currentHomography?: Maybe<HomographyInfoGql>;
|
||||
currentProcessing?: Maybe<VideoProcessingGql>;
|
||||
@@ -3219,12 +3250,6 @@ export type GetFeedQuery = {
|
||||
id: number;
|
||||
username: string;
|
||||
profileImageUri?: string | null;
|
||||
followers?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
profileImageUri?: string | null;
|
||||
}> | null;
|
||||
};
|
||||
}>;
|
||||
}>;
|
||||
@@ -3289,12 +3314,6 @@ export type VideoCardFieldsFragment = {
|
||||
id: number;
|
||||
username: string;
|
||||
profileImageUri?: string | null;
|
||||
followers?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
profileImageUri?: string | null;
|
||||
}> | null;
|
||||
};
|
||||
}>;
|
||||
};
|
||||
@@ -3368,12 +3387,6 @@ export type GetVideoFeedQuery = {
|
||||
id: number;
|
||||
username: string;
|
||||
profileImageUri?: string | null;
|
||||
followers?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
profileImageUri?: string | null;
|
||||
}> | null;
|
||||
};
|
||||
}>;
|
||||
}>;
|
||||
@@ -3612,38 +3625,6 @@ export type GetRunsForHighlightsQuery = {
|
||||
};
|
||||
};
|
||||
|
||||
export type GetRunsWithTimestampsQueryVariables = Exact<{
|
||||
filterInput: RunFilterInput;
|
||||
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
||||
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
||||
}>;
|
||||
|
||||
export type GetRunsWithTimestampsQuery = {
|
||||
__typename?: "Query";
|
||||
getRuns: {
|
||||
__typename?: "GetRunsResult";
|
||||
count?: number | null;
|
||||
runIds: Array<number>;
|
||||
runs: Array<{
|
||||
__typename?: "RunGQL";
|
||||
id: number;
|
||||
runLength: number;
|
||||
userId: number;
|
||||
videoId: number;
|
||||
shots: Array<{
|
||||
__typename?: "ShotGQL";
|
||||
videoId: number;
|
||||
id: number;
|
||||
createdAt?: any | null;
|
||||
shotDifficulty?: {
|
||||
__typename?: "PocketingIntentionFeaturesGQL";
|
||||
difficulty?: number | null;
|
||||
} | null;
|
||||
}>;
|
||||
}>;
|
||||
};
|
||||
};
|
||||
|
||||
export type GetSerializedShotPathsQueryVariables = Exact<{
|
||||
filterInput: FilterInput;
|
||||
}>;
|
||||
@@ -5105,11 +5086,6 @@ export const VideoCardFieldsFragmentDoc = gql`
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
followers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
}
|
||||
reaction
|
||||
}
|
||||
@@ -6181,104 +6157,6 @@ export type GetRunsForHighlightsQueryResult = Apollo.QueryResult<
|
||||
GetRunsForHighlightsQuery,
|
||||
GetRunsForHighlightsQueryVariables
|
||||
>;
|
||||
export const GetRunsWithTimestampsDocument = gql`
|
||||
query GetRunsWithTimestamps(
|
||||
$filterInput: RunFilterInput!
|
||||
$runIds: [Int!] = null
|
||||
$runsOrdering: GetRunsOrdering
|
||||
) {
|
||||
getRuns(
|
||||
filterInput: $filterInput
|
||||
runIds: $runIds
|
||||
runsOrdering: $runsOrdering
|
||||
) {
|
||||
count
|
||||
runs {
|
||||
id
|
||||
runLength
|
||||
userId
|
||||
videoId
|
||||
shots {
|
||||
videoId
|
||||
id
|
||||
createdAt
|
||||
shotDifficulty: pocketingIntentionFeatures {
|
||||
difficulty
|
||||
}
|
||||
}
|
||||
}
|
||||
runIds
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* __useGetRunsWithTimestampsQuery__
|
||||
*
|
||||
* To run a query within a React component, call `useGetRunsWithTimestampsQuery` and pass it any options that fit your needs.
|
||||
* When your component renders, `useGetRunsWithTimestampsQuery` 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 } = useGetRunsWithTimestampsQuery({
|
||||
* variables: {
|
||||
* filterInput: // value for 'filterInput'
|
||||
* runIds: // value for 'runIds'
|
||||
* runsOrdering: // value for 'runsOrdering'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetRunsWithTimestampsQuery(
|
||||
baseOptions: Apollo.QueryHookOptions<
|
||||
GetRunsWithTimestampsQuery,
|
||||
GetRunsWithTimestampsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useQuery<
|
||||
GetRunsWithTimestampsQuery,
|
||||
GetRunsWithTimestampsQueryVariables
|
||||
>(GetRunsWithTimestampsDocument, options);
|
||||
}
|
||||
export function useGetRunsWithTimestampsLazyQuery(
|
||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
GetRunsWithTimestampsQuery,
|
||||
GetRunsWithTimestampsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useLazyQuery<
|
||||
GetRunsWithTimestampsQuery,
|
||||
GetRunsWithTimestampsQueryVariables
|
||||
>(GetRunsWithTimestampsDocument, options);
|
||||
}
|
||||
export function useGetRunsWithTimestampsSuspenseQuery(
|
||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||
GetRunsWithTimestampsQuery,
|
||||
GetRunsWithTimestampsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useSuspenseQuery<
|
||||
GetRunsWithTimestampsQuery,
|
||||
GetRunsWithTimestampsQueryVariables
|
||||
>(GetRunsWithTimestampsDocument, options);
|
||||
}
|
||||
export type GetRunsWithTimestampsQueryHookResult = ReturnType<
|
||||
typeof useGetRunsWithTimestampsQuery
|
||||
>;
|
||||
export type GetRunsWithTimestampsLazyQueryHookResult = ReturnType<
|
||||
typeof useGetRunsWithTimestampsLazyQuery
|
||||
>;
|
||||
export type GetRunsWithTimestampsSuspenseQueryHookResult = ReturnType<
|
||||
typeof useGetRunsWithTimestampsSuspenseQuery
|
||||
>;
|
||||
export type GetRunsWithTimestampsQueryResult = Apollo.QueryResult<
|
||||
GetRunsWithTimestampsQuery,
|
||||
GetRunsWithTimestampsQueryVariables
|
||||
>;
|
||||
export const GetSerializedShotPathsDocument = gql`
|
||||
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
||||
getShots(filterInput: $filterInput) {
|
||||
|
@@ -64,11 +64,6 @@ fragment VideoCardFields on VideoGQL {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
followers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
}
|
||||
reaction
|
||||
}
|
||||
|
@@ -22,32 +22,3 @@ query GetRunsForHighlights(
|
||||
runIds
|
||||
}
|
||||
}
|
||||
|
||||
query GetRunsWithTimestamps(
|
||||
$filterInput: RunFilterInput!
|
||||
$runIds: [Int!] = null
|
||||
$runsOrdering: GetRunsOrdering
|
||||
) {
|
||||
getRuns(
|
||||
filterInput: $filterInput
|
||||
runIds: $runIds
|
||||
runsOrdering: $runsOrdering
|
||||
) {
|
||||
count
|
||||
runs {
|
||||
id
|
||||
runLength
|
||||
userId
|
||||
videoId
|
||||
shots {
|
||||
videoId
|
||||
id
|
||||
createdAt
|
||||
shotDifficulty: pocketingIntentionFeatures {
|
||||
difficulty
|
||||
}
|
||||
}
|
||||
}
|
||||
runIds
|
||||
}
|
||||
}
|
||||
|
@@ -480,6 +480,7 @@ type VideoGQL {
|
||||
homographyHistory: [HomographyInfoGQL!]!
|
||||
currentProcessing: VideoProcessingGQL
|
||||
reactions: [ReactionGQL!]!
|
||||
comments: [CommentGQL!]!
|
||||
}
|
||||
|
||||
type UploadStreamGQL {
|
||||
@@ -621,6 +622,15 @@ type ReactionGQL {
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
type CommentGQL {
|
||||
id: Int!
|
||||
user: UserGQL!
|
||||
message: String!
|
||||
replies: [CommentGQL!]!
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
enum ReactionEnum {
|
||||
LIKE
|
||||
HEART
|
||||
@@ -818,6 +828,13 @@ type Mutation {
|
||||
deleteVideo(videoId: Int!): Boolean!
|
||||
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
|
||||
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
||||
commentOnVideo(
|
||||
videoId: Int!
|
||||
message: String!
|
||||
parentCommentId: Int
|
||||
): Boolean!
|
||||
editComment(videoId: Int!, commentId: Int!, newMessage: String!): Boolean!
|
||||
deleteComment(videoId: Int!, commentId: Int!): Boolean!
|
||||
}
|
||||
|
||||
input CreateBucketSetInput {
|
||||
@@ -852,7 +869,7 @@ type AddShotAnnotationReturn {
|
||||
}
|
||||
|
||||
union SuccessfulAddAddShotAnnotationErrors =
|
||||
SuccessfulAdd
|
||||
| SuccessfulAdd
|
||||
| AddShotAnnotationErrors
|
||||
|
||||
type SuccessfulAdd {
|
||||
@@ -864,7 +881,7 @@ type AddShotAnnotationErrors {
|
||||
}
|
||||
|
||||
union DoesNotOwnShotErrOtherErrorNeedsNote =
|
||||
DoesNotOwnShotErr
|
||||
| DoesNotOwnShotErr
|
||||
| OtherErrorNeedsNote
|
||||
|
||||
type OtherErrorNeedsNote {
|
||||
@@ -886,7 +903,7 @@ type GetProfileUploadLinkReturn {
|
||||
}
|
||||
|
||||
union UploadLinkGetProfileUploadLinkErrors =
|
||||
UploadLink
|
||||
| UploadLink
|
||||
| GetProfileUploadLinkErrors
|
||||
|
||||
type UploadLink {
|
||||
@@ -955,7 +972,7 @@ type GetUploadLinkErrors {
|
||||
}
|
||||
|
||||
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr =
|
||||
MustHaveSetForUploadLinkErr
|
||||
| MustHaveSetForUploadLinkErr
|
||||
| SegmentAlreadyUploadedErr
|
||||
| ProcessingFailedErr
|
||||
| NoInitForChunkedUploadErr
|
||||
|
Reference in New Issue
Block a user