Compare commits
36 Commits
cfcf1dbcd2
...
loewy/incl
Author | SHA1 | Date | |
---|---|---|---|
b34bce6e5f | |||
0e00ae9297 | |||
e16812f242 | |||
3e9b7a0d16 | |||
309deb9473 | |||
d5ba9c2ba5 | |||
73771a263a | |||
655e59c43c | |||
056120a68a | |||
bd7ffa7fdb | |||
ec58923c65 | |||
63869cd7ca | |||
08ae9611cf | |||
4e610b7df2 | |||
2d6d3964ad | |||
73a58de36e | |||
dc6f246489 | |||
c0a3aa97dc | |||
f4e43b24f2 | |||
51ab8320d7 | |||
f9a00ad3eb | |||
998b2ffc8c | |||
c7642e6204 | |||
b2ce1c2f96 | |||
d0cf071934 | |||
6b410b3d78 | |||
607504261c | |||
0421be855d | |||
014aab473b | |||
353872401e | |||
433dfdaf74 | |||
a2d9e688e9 | |||
b3259dac1f | |||
0982b9e60c | |||
1710ae451c | |||
de9e7dea6a |
712
src/index.tsx
712
src/index.tsx
@@ -184,6 +184,7 @@ export type DoesNotOwnShotErrOtherErrorNeedsNote =
|
|||||||
export type EditUserInputGql = {
|
export type EditUserInputGql = {
|
||||||
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
username?: InputMaybe<Scalars["String"]["input"]>;
|
username?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EnumAggregation = {
|
export type EnumAggregation = {
|
||||||
@@ -1942,6 +1943,7 @@ export type HomographyInfoGql = {
|
|||||||
crop: BoundingBoxGql;
|
crop: BoundingBoxGql;
|
||||||
destPoints: PocketPointsGql;
|
destPoints: PocketPointsGql;
|
||||||
frameIndex: Scalars["Int"]["output"];
|
frameIndex: Scalars["Int"]["output"];
|
||||||
|
id: Scalars["Int"]["output"];
|
||||||
pockets: Array<BoundingBoxGql>;
|
pockets: Array<BoundingBoxGql>;
|
||||||
sourcePoints: PocketPointsGql;
|
sourcePoints: PocketPointsGql;
|
||||||
};
|
};
|
||||||
@@ -2008,6 +2010,7 @@ export type Mutation = {
|
|||||||
editProfileImageUri: UserGql;
|
editProfileImageUri: UserGql;
|
||||||
editUploadStream: Scalars["Boolean"]["output"];
|
editUploadStream: Scalars["Boolean"]["output"];
|
||||||
editUser: UserGql;
|
editUser: UserGql;
|
||||||
|
findPrerecordTableLayout?: Maybe<HomographyInfoGql>;
|
||||||
followUser: UserGql;
|
followUser: UserGql;
|
||||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||||
@@ -2049,6 +2052,11 @@ export type MutationEditUserArgs = {
|
|||||||
input: EditUserInputGql;
|
input: EditUserInputGql;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationFindPrerecordTableLayoutArgs = {
|
||||||
|
b64Image: Scalars["String"]["input"];
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationFollowUserArgs = {
|
export type MutationFollowUserArgs = {
|
||||||
followedUserId: Scalars["Int"]["input"];
|
followedUserId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
@@ -2211,6 +2219,7 @@ export type QueryGetMedalsArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type QueryGetOrderedShotsArgs = {
|
export type QueryGetOrderedShotsArgs = {
|
||||||
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
ids?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
ids?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
@@ -2226,6 +2235,7 @@ export type QueryGetShotAnnotationTypesArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type QueryGetShotsArgs = {
|
export type QueryGetShotsArgs = {
|
||||||
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
shotsPagination?: InputMaybe<GetShotsPagination>;
|
shotsPagination?: InputMaybe<GetShotsPagination>;
|
||||||
@@ -2236,6 +2246,7 @@ export type QueryGetShotsByIdsArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type QueryGetShotsWithMetadataArgs = {
|
export type QueryGetShotsWithMetadataArgs = {
|
||||||
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
ids?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
ids?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
@@ -2574,6 +2585,7 @@ export type UserGql = {
|
|||||||
profileImageUri?: Maybe<Scalars["String"]["output"]>;
|
profileImageUri?: Maybe<Scalars["String"]["output"]>;
|
||||||
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
username: Scalars["String"]["output"];
|
username: Scalars["String"]["output"];
|
||||||
|
videosPrivateByDefault?: Maybe<Scalars["Boolean"]["output"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UserPlayTimeGql = {
|
export type UserPlayTimeGql = {
|
||||||
@@ -2615,6 +2627,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>;
|
||||||
|
private: Scalars["Boolean"]["output"];
|
||||||
screenshotUri?: Maybe<Scalars["String"]["output"]>;
|
screenshotUri?: Maybe<Scalars["String"]["output"]>;
|
||||||
shots: Array<ShotGql>;
|
shots: Array<ShotGql>;
|
||||||
startTime?: Maybe<Scalars["DateTime"]["output"]>;
|
startTime?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
@@ -2638,6 +2651,7 @@ export type VideoMetadataInput = {
|
|||||||
framesPerSecond?: InputMaybe<Scalars["Float"]["input"]>;
|
framesPerSecond?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
lastIntendedSegmentBound?: InputMaybe<Scalars["Int"]["input"]>;
|
lastIntendedSegmentBound?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
private?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
resolution?: InputMaybe<VideoResolution>;
|
resolution?: InputMaybe<VideoResolution>;
|
||||||
startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
streamSegmentType?: InputMaybe<StreamSegmentTypeEnum>;
|
streamSegmentType?: InputMaybe<StreamSegmentTypeEnum>;
|
||||||
@@ -2655,6 +2669,7 @@ export type VideoProcessingErrorGql = {
|
|||||||
export type VideoProcessingGql = {
|
export type VideoProcessingGql = {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
errors: Array<VideoProcessingErrorGql>;
|
errors: Array<VideoProcessingErrorGql>;
|
||||||
|
id: Scalars["Int"]["output"];
|
||||||
status: ProcessingStatusEnum;
|
status: ProcessingStatusEnum;
|
||||||
statuses: Array<VideoProcessingStatusGql>;
|
statuses: Array<VideoProcessingStatusGql>;
|
||||||
};
|
};
|
||||||
@@ -2783,6 +2798,110 @@ export type GetFeedQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type VideoCardFieldsFragment = {
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
id: number;
|
||||||
|
name?: string | null;
|
||||||
|
screenshotUri?: string | null;
|
||||||
|
totalShotsMade: number;
|
||||||
|
totalShots: number;
|
||||||
|
makePercentage: number;
|
||||||
|
createdAt?: any | null;
|
||||||
|
updatedAt?: any | null;
|
||||||
|
startTime?: any | null;
|
||||||
|
endTime?: any | null;
|
||||||
|
elapsedTime?: number | null;
|
||||||
|
tableSize: number;
|
||||||
|
owner?: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
} | null;
|
||||||
|
stream?: {
|
||||||
|
__typename?: "UploadStreamGQL";
|
||||||
|
id: string;
|
||||||
|
isCompleted: boolean;
|
||||||
|
} | null;
|
||||||
|
tags: Array<{
|
||||||
|
__typename?: "VideoTag";
|
||||||
|
name: string;
|
||||||
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
||||||
|
}>;
|
||||||
|
currentProcessing?: {
|
||||||
|
__typename?: "VideoProcessingGQL";
|
||||||
|
id: number;
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
errors: Array<{ __typename?: "VideoProcessingErrorGQL"; message: string }>;
|
||||||
|
statuses: Array<{
|
||||||
|
__typename?: "VideoProcessingStatusGQL";
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
}>;
|
||||||
|
} | null;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetVideoFeedQueryVariables = Exact<{
|
||||||
|
limit?: Scalars["Int"]["input"];
|
||||||
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
filters?: InputMaybe<VideoFilterInput>;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetVideoFeedQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getFeedVideos: {
|
||||||
|
__typename?: "VideoHistoryGQL";
|
||||||
|
videos: Array<{
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
id: number;
|
||||||
|
name?: string | null;
|
||||||
|
screenshotUri?: string | null;
|
||||||
|
totalShotsMade: number;
|
||||||
|
totalShots: number;
|
||||||
|
makePercentage: number;
|
||||||
|
createdAt?: any | null;
|
||||||
|
updatedAt?: any | null;
|
||||||
|
startTime?: any | null;
|
||||||
|
endTime?: any | null;
|
||||||
|
elapsedTime?: number | null;
|
||||||
|
tableSize: number;
|
||||||
|
owner?: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
} | null;
|
||||||
|
stream?: {
|
||||||
|
__typename?: "UploadStreamGQL";
|
||||||
|
id: string;
|
||||||
|
isCompleted: boolean;
|
||||||
|
} | null;
|
||||||
|
tags: Array<{
|
||||||
|
__typename?: "VideoTag";
|
||||||
|
name: string;
|
||||||
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
||||||
|
}>;
|
||||||
|
currentProcessing?: {
|
||||||
|
__typename?: "VideoProcessingGQL";
|
||||||
|
id: number;
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
errors: Array<{
|
||||||
|
__typename?: "VideoProcessingErrorGQL";
|
||||||
|
message: string;
|
||||||
|
}>;
|
||||||
|
statuses: Array<{
|
||||||
|
__typename?: "VideoProcessingStatusGQL";
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
}>;
|
||||||
|
} | null;
|
||||||
|
}>;
|
||||||
|
pageInfo: {
|
||||||
|
__typename?: "PageInfoGQL";
|
||||||
|
hasNextPage: boolean;
|
||||||
|
endCursor?: string | null;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
|
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
|
||||||
videoId: Scalars["ID"]["input"];
|
videoId: Scalars["ID"]["input"];
|
||||||
intervalDuration: Scalars["Int"]["input"];
|
intervalDuration: Scalars["Int"]["input"];
|
||||||
@@ -2883,11 +3002,26 @@ export type GetShotsWithVideoGqlQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetShotsWithJustIdsQueryVariables = Exact<{
|
||||||
|
filterInput: FilterInput;
|
||||||
|
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
||||||
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetShotsWithJustIdsQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getOrderedShots: {
|
||||||
|
__typename?: "GetShotsResult";
|
||||||
|
shots: Array<{ __typename?: "ShotGQL"; id: number; videoId: number }>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type GetShotsWithMetadataFilterResultQueryVariables = Exact<{
|
export type GetShotsWithMetadataFilterResultQueryVariables = Exact<{
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
||||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
ids?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
ids?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
||||||
|
countRespectsLimit?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetShotsWithMetadataFilterResultQuery = {
|
export type GetShotsWithMetadataFilterResultQuery = {
|
||||||
@@ -3235,8 +3369,17 @@ export type FollowUserMutation = {
|
|||||||
followUser: {
|
followUser: {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
username: string;
|
username: string;
|
||||||
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
id: number;
|
||||||
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
following?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
}> | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
}> | null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3249,8 +3392,17 @@ export type UnfollowUserMutation = {
|
|||||||
unfollowUser: {
|
unfollowUser: {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
username: string;
|
username: string;
|
||||||
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
id: number;
|
||||||
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
following?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
}> | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
}> | null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3262,6 +3414,7 @@ export type GetUserFollowingFollowersQuery = {
|
|||||||
__typename?: "Query";
|
__typename?: "Query";
|
||||||
getLoggedInUser?: {
|
getLoggedInUser?: {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
following?: Array<{
|
following?: Array<{
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
id: number;
|
id: number;
|
||||||
@@ -3275,6 +3428,15 @@ export type GetUserFollowingFollowersQuery = {
|
|||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type DoesUsernameExistQueryVariables = Exact<{
|
||||||
|
candidateUsername: Scalars["String"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type DoesUsernameExistQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
doesUsernameExist: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
export type GetStreamMonitoringDetailsQueryVariables = Exact<{
|
export type GetStreamMonitoringDetailsQueryVariables = Exact<{
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
|
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
|
||||||
@@ -3290,6 +3452,8 @@ export type GetStreamMonitoringDetailsQuery = {
|
|||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
currentHomography?: {
|
currentHomography?: {
|
||||||
__typename?: "HomographyInfoGQL";
|
__typename?: "HomographyInfoGQL";
|
||||||
|
id: number;
|
||||||
|
frameIndex: number;
|
||||||
crop: {
|
crop: {
|
||||||
__typename?: "BoundingBoxGQL";
|
__typename?: "BoundingBoxGQL";
|
||||||
left: number;
|
left: number;
|
||||||
@@ -3503,6 +3667,7 @@ export type GetVideoQuery = {
|
|||||||
} | null;
|
} | null;
|
||||||
homographyHistory: Array<{
|
homographyHistory: Array<{
|
||||||
__typename?: "HomographyInfoGQL";
|
__typename?: "HomographyInfoGQL";
|
||||||
|
id: number;
|
||||||
frameIndex: number;
|
frameIndex: number;
|
||||||
crop: {
|
crop: {
|
||||||
__typename?: "BoundingBoxGQL";
|
__typename?: "BoundingBoxGQL";
|
||||||
@@ -3704,6 +3869,72 @@ export type GetHeaderInfoByVideoIdQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type FindPrerecordTableLayoutMutationVariables = Exact<{
|
||||||
|
b64Image: Scalars["String"]["input"];
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type FindPrerecordTableLayoutMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
findPrerecordTableLayout?: {
|
||||||
|
__typename?: "HomographyInfoGQL";
|
||||||
|
id: number;
|
||||||
|
frameIndex: number;
|
||||||
|
crop: {
|
||||||
|
__typename?: "BoundingBoxGQL";
|
||||||
|
left: number;
|
||||||
|
top: number;
|
||||||
|
width: number;
|
||||||
|
height: number;
|
||||||
|
};
|
||||||
|
pockets: Array<{
|
||||||
|
__typename?: "BoundingBoxGQL";
|
||||||
|
left: number;
|
||||||
|
top: number;
|
||||||
|
width: number;
|
||||||
|
height: number;
|
||||||
|
}>;
|
||||||
|
sourcePoints: {
|
||||||
|
__typename?: "PocketPointsGQL";
|
||||||
|
topLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
topSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
topRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
bottomLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
bottomSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
};
|
||||||
|
} | null;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type HomographyInfoFragment = {
|
||||||
|
__typename?: "HomographyInfoGQL";
|
||||||
|
id: number;
|
||||||
|
frameIndex: number;
|
||||||
|
crop: {
|
||||||
|
__typename?: "BoundingBoxGQL";
|
||||||
|
left: number;
|
||||||
|
top: number;
|
||||||
|
width: number;
|
||||||
|
height: number;
|
||||||
|
};
|
||||||
|
pockets: Array<{
|
||||||
|
__typename?: "BoundingBoxGQL";
|
||||||
|
left: number;
|
||||||
|
top: number;
|
||||||
|
width: number;
|
||||||
|
height: number;
|
||||||
|
}>;
|
||||||
|
sourcePoints: {
|
||||||
|
__typename?: "PocketPointsGQL";
|
||||||
|
topLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
topSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
topRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
bottomLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
bottomSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type CreateUploadStreamMutationVariables = Exact<{
|
export type CreateUploadStreamMutationVariables = Exact<{
|
||||||
videoMetadataInput: VideoMetadataInput;
|
videoMetadataInput: VideoMetadataInput;
|
||||||
}>;
|
}>;
|
||||||
@@ -3876,6 +4107,48 @@ export type GetUploadStreamsWithDetailsQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const VideoCardFieldsFragmentDoc = gql`
|
||||||
|
fragment VideoCardFields on VideoGQL {
|
||||||
|
id
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
name
|
||||||
|
screenshotUri
|
||||||
|
totalShotsMade
|
||||||
|
totalShots
|
||||||
|
makePercentage
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
startTime
|
||||||
|
endTime
|
||||||
|
elapsedTime
|
||||||
|
screenshotUri
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
isCompleted
|
||||||
|
}
|
||||||
|
tableSize
|
||||||
|
tags {
|
||||||
|
tagClasses {
|
||||||
|
name
|
||||||
|
}
|
||||||
|
name
|
||||||
|
}
|
||||||
|
currentProcessing {
|
||||||
|
id
|
||||||
|
errors {
|
||||||
|
message
|
||||||
|
}
|
||||||
|
status
|
||||||
|
statuses {
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
export const ShotWithAllFeaturesFragmentDoc = gql`
|
export const ShotWithAllFeaturesFragmentDoc = gql`
|
||||||
fragment ShotWithAllFeatures on ShotGQL {
|
fragment ShotWithAllFeatures on ShotGQL {
|
||||||
id
|
id
|
||||||
@@ -3994,6 +4267,50 @@ export const VideoDurationDataFragmentDoc = gql`
|
|||||||
${PlaylistWithSegmentStartTimesFragmentDoc}
|
${PlaylistWithSegmentStartTimesFragmentDoc}
|
||||||
${StreamWithEndFramesFragmentDoc}
|
${StreamWithEndFramesFragmentDoc}
|
||||||
`;
|
`;
|
||||||
|
export const HomographyInfoFragmentDoc = gql`
|
||||||
|
fragment HomographyInfo on HomographyInfoGQL {
|
||||||
|
id
|
||||||
|
frameIndex
|
||||||
|
crop {
|
||||||
|
left
|
||||||
|
top
|
||||||
|
width
|
||||||
|
height
|
||||||
|
}
|
||||||
|
pockets {
|
||||||
|
left
|
||||||
|
top
|
||||||
|
width
|
||||||
|
height
|
||||||
|
}
|
||||||
|
sourcePoints {
|
||||||
|
topLeft {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
topSide {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
topRight {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
bottomLeft {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
bottomSide {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
bottomRight {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
export const GetAggregatedShotMetricsDocument = gql`
|
export const GetAggregatedShotMetricsDocument = gql`
|
||||||
query GetAggregatedShotMetrics($aggregateInput: AggregateInputGQL!) {
|
query GetAggregatedShotMetrics($aggregateInput: AggregateInputGQL!) {
|
||||||
getAggregatedShotMetrics(aggregateInput: $aggregateInput) {
|
getAggregatedShotMetrics(aggregateInput: $aggregateInput) {
|
||||||
@@ -4253,6 +4570,92 @@ export type GetFeedQueryResult = Apollo.QueryResult<
|
|||||||
GetFeedQuery,
|
GetFeedQuery,
|
||||||
GetFeedQueryVariables
|
GetFeedQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetVideoFeedDocument = gql`
|
||||||
|
query GetVideoFeed(
|
||||||
|
$limit: Int! = 5
|
||||||
|
$after: String = null
|
||||||
|
$filters: VideoFilterInput = null
|
||||||
|
) {
|
||||||
|
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
|
videos {
|
||||||
|
...VideoCardFields
|
||||||
|
}
|
||||||
|
pageInfo {
|
||||||
|
hasNextPage
|
||||||
|
endCursor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${VideoCardFieldsFragmentDoc}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetVideoFeedQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetVideoFeedQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetVideoFeedQuery` 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 } = useGetVideoFeedQuery({
|
||||||
|
* variables: {
|
||||||
|
* limit: // value for 'limit'
|
||||||
|
* after: // value for 'after'
|
||||||
|
* filters: // value for 'filters'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetVideoFeedQuery(
|
||||||
|
baseOptions?: Apollo.QueryHookOptions<
|
||||||
|
GetVideoFeedQuery,
|
||||||
|
GetVideoFeedQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<GetVideoFeedQuery, GetVideoFeedQueryVariables>(
|
||||||
|
GetVideoFeedDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export function useGetVideoFeedLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetVideoFeedQuery,
|
||||||
|
GetVideoFeedQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<GetVideoFeedQuery, GetVideoFeedQueryVariables>(
|
||||||
|
GetVideoFeedDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export function useGetVideoFeedSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetVideoFeedQuery,
|
||||||
|
GetVideoFeedQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<GetVideoFeedQuery, GetVideoFeedQueryVariables>(
|
||||||
|
GetVideoFeedDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export type GetVideoFeedQueryHookResult = ReturnType<
|
||||||
|
typeof useGetVideoFeedQuery
|
||||||
|
>;
|
||||||
|
export type GetVideoFeedLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetVideoFeedLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetVideoFeedSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetVideoFeedSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetVideoFeedQueryResult = Apollo.QueryResult<
|
||||||
|
GetVideoFeedQuery,
|
||||||
|
GetVideoFeedQueryVariables
|
||||||
|
>;
|
||||||
export const GetVideoMakePercentageIntervalsDocument = gql`
|
export const GetVideoMakePercentageIntervalsDocument = gql`
|
||||||
query GetVideoMakePercentageIntervals(
|
query GetVideoMakePercentageIntervals(
|
||||||
$videoId: ID!
|
$videoId: ID!
|
||||||
@@ -4644,18 +5047,106 @@ export type GetShotsWithVideoGqlQueryResult = Apollo.QueryResult<
|
|||||||
GetShotsWithVideoGqlQuery,
|
GetShotsWithVideoGqlQuery,
|
||||||
GetShotsWithVideoGqlQueryVariables
|
GetShotsWithVideoGqlQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetShotsWithJustIdsDocument = gql`
|
||||||
|
query GetShotsWithJustIds(
|
||||||
|
$filterInput: FilterInput!
|
||||||
|
$shotsOrdering: GetShotsOrdering
|
||||||
|
$limit: Int
|
||||||
|
) {
|
||||||
|
getOrderedShots(
|
||||||
|
filterInput: $filterInput
|
||||||
|
shotsOrdering: $shotsOrdering
|
||||||
|
limit: $limit
|
||||||
|
) {
|
||||||
|
shots {
|
||||||
|
id
|
||||||
|
videoId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetShotsWithJustIdsQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetShotsWithJustIdsQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetShotsWithJustIdsQuery` 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 } = useGetShotsWithJustIdsQuery({
|
||||||
|
* variables: {
|
||||||
|
* filterInput: // value for 'filterInput'
|
||||||
|
* shotsOrdering: // value for 'shotsOrdering'
|
||||||
|
* limit: // value for 'limit'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetShotsWithJustIdsQuery(
|
||||||
|
baseOptions: Apollo.QueryHookOptions<
|
||||||
|
GetShotsWithJustIdsQuery,
|
||||||
|
GetShotsWithJustIdsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<
|
||||||
|
GetShotsWithJustIdsQuery,
|
||||||
|
GetShotsWithJustIdsQueryVariables
|
||||||
|
>(GetShotsWithJustIdsDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetShotsWithJustIdsLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetShotsWithJustIdsQuery,
|
||||||
|
GetShotsWithJustIdsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetShotsWithJustIdsQuery,
|
||||||
|
GetShotsWithJustIdsQueryVariables
|
||||||
|
>(GetShotsWithJustIdsDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetShotsWithJustIdsSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetShotsWithJustIdsQuery,
|
||||||
|
GetShotsWithJustIdsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetShotsWithJustIdsQuery,
|
||||||
|
GetShotsWithJustIdsQueryVariables
|
||||||
|
>(GetShotsWithJustIdsDocument, options);
|
||||||
|
}
|
||||||
|
export type GetShotsWithJustIdsQueryHookResult = ReturnType<
|
||||||
|
typeof useGetShotsWithJustIdsQuery
|
||||||
|
>;
|
||||||
|
export type GetShotsWithJustIdsLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetShotsWithJustIdsLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetShotsWithJustIdsSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetShotsWithJustIdsSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetShotsWithJustIdsQueryResult = Apollo.QueryResult<
|
||||||
|
GetShotsWithJustIdsQuery,
|
||||||
|
GetShotsWithJustIdsQueryVariables
|
||||||
|
>;
|
||||||
export const GetShotsWithMetadataFilterResultDocument = gql`
|
export const GetShotsWithMetadataFilterResultDocument = gql`
|
||||||
query GetShotsWithMetadataFilterResult(
|
query GetShotsWithMetadataFilterResult(
|
||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
$shotsOrdering: GetShotsOrdering
|
$shotsOrdering: GetShotsOrdering
|
||||||
$limit: Int
|
$limit: Int
|
||||||
$ids: [Int!]
|
$ids: [Int!]
|
||||||
|
$countRespectsLimit: Boolean
|
||||||
) {
|
) {
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: $filterInput
|
filterInput: $filterInput
|
||||||
shotsOrdering: $shotsOrdering
|
shotsOrdering: $shotsOrdering
|
||||||
limit: $limit
|
limit: $limit
|
||||||
ids: $ids
|
ids: $ids
|
||||||
|
countRespectsLimit: $countRespectsLimit
|
||||||
) {
|
) {
|
||||||
count
|
count
|
||||||
shots {
|
shots {
|
||||||
@@ -4683,6 +5174,7 @@ export const GetShotsWithMetadataFilterResultDocument = gql`
|
|||||||
* shotsOrdering: // value for 'shotsOrdering'
|
* shotsOrdering: // value for 'shotsOrdering'
|
||||||
* limit: // value for 'limit'
|
* limit: // value for 'limit'
|
||||||
* ids: // value for 'ids'
|
* ids: // value for 'ids'
|
||||||
|
* countRespectsLimit: // value for 'countRespectsLimit'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
@@ -5418,11 +5910,14 @@ export const FollowUserDocument = gql`
|
|||||||
mutation followUser($followedUserId: Int!) {
|
mutation followUser($followedUserId: Int!) {
|
||||||
followUser(followedUserId: $followedUserId) {
|
followUser(followedUserId: $followedUserId) {
|
||||||
username
|
username
|
||||||
|
id
|
||||||
following {
|
following {
|
||||||
id
|
id
|
||||||
|
username
|
||||||
}
|
}
|
||||||
followers {
|
followers {
|
||||||
id
|
id
|
||||||
|
username
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5474,11 +5969,14 @@ export const UnfollowUserDocument = gql`
|
|||||||
mutation unfollowUser($followedUserId: Int!) {
|
mutation unfollowUser($followedUserId: Int!) {
|
||||||
unfollowUser(followedUserId: $followedUserId) {
|
unfollowUser(followedUserId: $followedUserId) {
|
||||||
username
|
username
|
||||||
|
id
|
||||||
following {
|
following {
|
||||||
id
|
id
|
||||||
|
username
|
||||||
}
|
}
|
||||||
followers {
|
followers {
|
||||||
id
|
id
|
||||||
|
username
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5529,6 +6027,7 @@ export type UnfollowUserMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
export const GetUserFollowingFollowersDocument = gql`
|
export const GetUserFollowingFollowersDocument = gql`
|
||||||
query getUserFollowingFollowers {
|
query getUserFollowingFollowers {
|
||||||
getLoggedInUser {
|
getLoggedInUser {
|
||||||
|
id
|
||||||
following {
|
following {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
@@ -5605,6 +6104,77 @@ export type GetUserFollowingFollowersQueryResult = Apollo.QueryResult<
|
|||||||
GetUserFollowingFollowersQuery,
|
GetUserFollowingFollowersQuery,
|
||||||
GetUserFollowingFollowersQueryVariables
|
GetUserFollowingFollowersQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const DoesUsernameExistDocument = gql`
|
||||||
|
query doesUsernameExist($candidateUsername: String!) {
|
||||||
|
doesUsernameExist(candidateUsername: $candidateUsername)
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useDoesUsernameExistQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useDoesUsernameExistQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useDoesUsernameExistQuery` 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 } = useDoesUsernameExistQuery({
|
||||||
|
* variables: {
|
||||||
|
* candidateUsername: // value for 'candidateUsername'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useDoesUsernameExistQuery(
|
||||||
|
baseOptions: Apollo.QueryHookOptions<
|
||||||
|
DoesUsernameExistQuery,
|
||||||
|
DoesUsernameExistQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<
|
||||||
|
DoesUsernameExistQuery,
|
||||||
|
DoesUsernameExistQueryVariables
|
||||||
|
>(DoesUsernameExistDocument, options);
|
||||||
|
}
|
||||||
|
export function useDoesUsernameExistLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
DoesUsernameExistQuery,
|
||||||
|
DoesUsernameExistQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
DoesUsernameExistQuery,
|
||||||
|
DoesUsernameExistQueryVariables
|
||||||
|
>(DoesUsernameExistDocument, options);
|
||||||
|
}
|
||||||
|
export function useDoesUsernameExistSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
DoesUsernameExistQuery,
|
||||||
|
DoesUsernameExistQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
DoesUsernameExistQuery,
|
||||||
|
DoesUsernameExistQueryVariables
|
||||||
|
>(DoesUsernameExistDocument, options);
|
||||||
|
}
|
||||||
|
export type DoesUsernameExistQueryHookResult = ReturnType<
|
||||||
|
typeof useDoesUsernameExistQuery
|
||||||
|
>;
|
||||||
|
export type DoesUsernameExistLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useDoesUsernameExistLazyQuery
|
||||||
|
>;
|
||||||
|
export type DoesUsernameExistSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useDoesUsernameExistSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type DoesUsernameExistQueryResult = Apollo.QueryResult<
|
||||||
|
DoesUsernameExistQuery,
|
||||||
|
DoesUsernameExistQueryVariables
|
||||||
|
>;
|
||||||
export const GetStreamMonitoringDetailsDocument = gql`
|
export const GetStreamMonitoringDetailsDocument = gql`
|
||||||
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||||
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
|
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
|
||||||
@@ -5613,44 +6183,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
|
|||||||
makePercentage
|
makePercentage
|
||||||
elapsedTime
|
elapsedTime
|
||||||
currentHomography {
|
currentHomography {
|
||||||
crop {
|
...HomographyInfo
|
||||||
left
|
|
||||||
top
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
pockets {
|
|
||||||
left
|
|
||||||
top
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
sourcePoints {
|
|
||||||
topLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
@@ -5671,6 +6204,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
${HomographyInfoFragmentDoc}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -6120,45 +6654,7 @@ export const GetVideoDocument = gql`
|
|||||||
segmentDurations
|
segmentDurations
|
||||||
}
|
}
|
||||||
homographyHistory {
|
homographyHistory {
|
||||||
frameIndex
|
...HomographyInfo
|
||||||
crop {
|
|
||||||
left
|
|
||||||
top
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
pockets {
|
|
||||||
left
|
|
||||||
top
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
sourcePoints {
|
|
||||||
topLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
@@ -6175,6 +6671,7 @@ export const GetVideoDocument = gql`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
${HomographyInfoFragmentDoc}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -6608,6 +7105,59 @@ export type GetHeaderInfoByVideoIdQueryResult = Apollo.QueryResult<
|
|||||||
GetHeaderInfoByVideoIdQuery,
|
GetHeaderInfoByVideoIdQuery,
|
||||||
GetHeaderInfoByVideoIdQueryVariables
|
GetHeaderInfoByVideoIdQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const FindPrerecordTableLayoutDocument = gql`
|
||||||
|
mutation FindPrerecordTableLayout($b64Image: String!, $videoId: Int!) {
|
||||||
|
findPrerecordTableLayout(b64Image: $b64Image, videoId: $videoId) {
|
||||||
|
...HomographyInfo
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${HomographyInfoFragmentDoc}
|
||||||
|
`;
|
||||||
|
export type FindPrerecordTableLayoutMutationFn = Apollo.MutationFunction<
|
||||||
|
FindPrerecordTableLayoutMutation,
|
||||||
|
FindPrerecordTableLayoutMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useFindPrerecordTableLayoutMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useFindPrerecordTableLayoutMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useFindPrerecordTableLayoutMutation` 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 [findPrerecordTableLayoutMutation, { data, loading, error }] = useFindPrerecordTableLayoutMutation({
|
||||||
|
* variables: {
|
||||||
|
* b64Image: // value for 'b64Image'
|
||||||
|
* videoId: // value for 'videoId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useFindPrerecordTableLayoutMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
FindPrerecordTableLayoutMutation,
|
||||||
|
FindPrerecordTableLayoutMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<
|
||||||
|
FindPrerecordTableLayoutMutation,
|
||||||
|
FindPrerecordTableLayoutMutationVariables
|
||||||
|
>(FindPrerecordTableLayoutDocument, options);
|
||||||
|
}
|
||||||
|
export type FindPrerecordTableLayoutMutationHookResult = ReturnType<
|
||||||
|
typeof useFindPrerecordTableLayoutMutation
|
||||||
|
>;
|
||||||
|
export type FindPrerecordTableLayoutMutationResult =
|
||||||
|
Apollo.MutationResult<FindPrerecordTableLayoutMutation>;
|
||||||
|
export type FindPrerecordTableLayoutMutationOptions =
|
||||||
|
Apollo.BaseMutationOptions<
|
||||||
|
FindPrerecordTableLayoutMutation,
|
||||||
|
FindPrerecordTableLayoutMutationVariables
|
||||||
|
>;
|
||||||
export const CreateUploadStreamDocument = gql`
|
export const CreateUploadStreamDocument = gql`
|
||||||
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
||||||
createUploadStream(videoMetadata: $videoMetadataInput) {
|
createUploadStream(videoMetadata: $videoMetadataInput) {
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
# DO NOT USE: use getVideoFeed instead
|
||||||
query GetFeed(
|
query GetFeed(
|
||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
$after: String = null
|
$after: String = null
|
||||||
@@ -38,3 +39,60 @@ query GetFeed(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment VideoCardFields on VideoGQL {
|
||||||
|
id
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
name
|
||||||
|
screenshotUri
|
||||||
|
totalShotsMade
|
||||||
|
totalShots
|
||||||
|
makePercentage
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
startTime
|
||||||
|
endTime
|
||||||
|
elapsedTime
|
||||||
|
screenshotUri
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
isCompleted
|
||||||
|
}
|
||||||
|
tableSize
|
||||||
|
tags {
|
||||||
|
tagClasses {
|
||||||
|
name
|
||||||
|
}
|
||||||
|
name
|
||||||
|
}
|
||||||
|
currentProcessing {
|
||||||
|
id
|
||||||
|
errors {
|
||||||
|
message
|
||||||
|
}
|
||||||
|
status
|
||||||
|
statuses {
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetVideoFeed(
|
||||||
|
$limit: Int! = 5
|
||||||
|
$after: String = null
|
||||||
|
$filters: VideoFilterInput = null
|
||||||
|
) {
|
||||||
|
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
|
videos {
|
||||||
|
...VideoCardFields
|
||||||
|
}
|
||||||
|
pageInfo {
|
||||||
|
hasNextPage
|
||||||
|
endCursor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -40,6 +40,7 @@ mutation UpdateShotAnnotations(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## Should be deprecated
|
||||||
query GetShotsWithVideoGql(
|
query GetShotsWithVideoGql(
|
||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
$shotsOrdering: GetShotsOrdering
|
$shotsOrdering: GetShotsOrdering
|
||||||
@@ -61,18 +62,37 @@ query GetShotsWithVideoGql(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query GetShotsWithJustIds(
|
||||||
|
$filterInput: FilterInput!
|
||||||
|
$shotsOrdering: GetShotsOrdering
|
||||||
|
$limit: Int
|
||||||
|
) {
|
||||||
|
getOrderedShots(
|
||||||
|
filterInput: $filterInput
|
||||||
|
shotsOrdering: $shotsOrdering
|
||||||
|
limit: $limit
|
||||||
|
) {
|
||||||
|
shots {
|
||||||
|
id
|
||||||
|
videoId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
## Reserved for playlists (which are created from a filter)
|
## Reserved for playlists (which are created from a filter)
|
||||||
query GetShotsWithMetadataFilterResult(
|
query GetShotsWithMetadataFilterResult(
|
||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
$shotsOrdering: GetShotsOrdering
|
$shotsOrdering: GetShotsOrdering
|
||||||
$limit: Int
|
$limit: Int
|
||||||
$ids: [Int!]
|
$ids: [Int!]
|
||||||
|
$countRespectsLimit: Boolean
|
||||||
) {
|
) {
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: $filterInput
|
filterInput: $filterInput
|
||||||
shotsOrdering: $shotsOrdering
|
shotsOrdering: $shotsOrdering
|
||||||
limit: $limit
|
limit: $limit
|
||||||
ids: $ids
|
ids: $ids
|
||||||
|
countRespectsLimit: $countRespectsLimit
|
||||||
) {
|
) {
|
||||||
count
|
count
|
||||||
shots {
|
shots {
|
||||||
|
@@ -91,11 +91,14 @@ query GetUserTags {
|
|||||||
mutation followUser($followedUserId: Int!) {
|
mutation followUser($followedUserId: Int!) {
|
||||||
followUser(followedUserId: $followedUserId) {
|
followUser(followedUserId: $followedUserId) {
|
||||||
username
|
username
|
||||||
|
id
|
||||||
following {
|
following {
|
||||||
id
|
id
|
||||||
|
username
|
||||||
}
|
}
|
||||||
followers {
|
followers {
|
||||||
id
|
id
|
||||||
|
username
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -103,17 +106,21 @@ mutation followUser($followedUserId: Int!) {
|
|||||||
mutation unfollowUser($followedUserId: Int!) {
|
mutation unfollowUser($followedUserId: Int!) {
|
||||||
unfollowUser(followedUserId: $followedUserId) {
|
unfollowUser(followedUserId: $followedUserId) {
|
||||||
username
|
username
|
||||||
|
id
|
||||||
following {
|
following {
|
||||||
id
|
id
|
||||||
|
username
|
||||||
}
|
}
|
||||||
followers {
|
followers {
|
||||||
id
|
id
|
||||||
|
username
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query getUserFollowingFollowers {
|
query getUserFollowingFollowers {
|
||||||
getLoggedInUser {
|
getLoggedInUser {
|
||||||
|
id
|
||||||
following {
|
following {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
@@ -124,3 +131,7 @@ query getUserFollowingFollowers {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query doesUsernameExist($candidateUsername: String!) {
|
||||||
|
doesUsernameExist(candidateUsername: $candidateUsername)
|
||||||
|
}
|
||||||
|
@@ -5,44 +5,7 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
|||||||
makePercentage
|
makePercentage
|
||||||
elapsedTime
|
elapsedTime
|
||||||
currentHomography {
|
currentHomography {
|
||||||
crop {
|
...HomographyInfo
|
||||||
left
|
|
||||||
top
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
pockets {
|
|
||||||
left
|
|
||||||
top
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
sourcePoints {
|
|
||||||
topLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
@@ -154,45 +117,7 @@ query GetVideo($videoId: Int!) {
|
|||||||
segmentDurations
|
segmentDurations
|
||||||
}
|
}
|
||||||
homographyHistory {
|
homographyHistory {
|
||||||
frameIndex
|
...HomographyInfo
|
||||||
crop {
|
|
||||||
left
|
|
||||||
top
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
pockets {
|
|
||||||
left
|
|
||||||
top
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
sourcePoints {
|
|
||||||
topLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
@@ -288,3 +213,52 @@ query GetHeaderInfoByVideoId($videoId: Int!) {
|
|||||||
startTime
|
startTime
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutation FindPrerecordTableLayout($b64Image: String!, $videoId: Int!) {
|
||||||
|
findPrerecordTableLayout(b64Image: $b64Image, videoId: $videoId) {
|
||||||
|
...HomographyInfo
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fragment HomographyInfo on HomographyInfoGQL {
|
||||||
|
id
|
||||||
|
frameIndex
|
||||||
|
crop {
|
||||||
|
left
|
||||||
|
top
|
||||||
|
width
|
||||||
|
height
|
||||||
|
}
|
||||||
|
pockets {
|
||||||
|
left
|
||||||
|
top
|
||||||
|
width
|
||||||
|
height
|
||||||
|
}
|
||||||
|
sourcePoints {
|
||||||
|
topLeft {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
topSide {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
topRight {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
bottomLeft {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
bottomSide {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
bottomRight {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -15,17 +15,20 @@ type Query {
|
|||||||
ids: [Int!] = null
|
ids: [Int!] = null
|
||||||
shotsOrdering: GetShotsOrdering = null
|
shotsOrdering: GetShotsOrdering = null
|
||||||
limit: Int! = 500
|
limit: Int! = 500
|
||||||
|
countRespectsLimit: Boolean! = false
|
||||||
): GetShotsResult!
|
): GetShotsResult!
|
||||||
getShotsWithMetadata(
|
getShotsWithMetadata(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
ids: [Int!] = null
|
ids: [Int!] = null
|
||||||
shotsPagination: GetShotsPagination = null
|
shotsPagination: GetShotsPagination = null
|
||||||
limit: Int! = 500
|
limit: Int! = 500
|
||||||
|
countRespectsLimit: Boolean! = false
|
||||||
): GetShotsResult!
|
): GetShotsResult!
|
||||||
getShots(
|
getShots(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
shotsPagination: GetShotsPagination = null
|
shotsPagination: GetShotsPagination = null
|
||||||
limit: Int! = 500
|
limit: Int! = 500
|
||||||
|
countRespectsLimit: Boolean! = false
|
||||||
): [ShotGQL!]!
|
): [ShotGQL!]!
|
||||||
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
||||||
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
||||||
@@ -397,6 +400,7 @@ type UserGQL {
|
|||||||
profileImageUri: String
|
profileImageUri: String
|
||||||
createdAt: DateTime
|
createdAt: DateTime
|
||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
|
videosPrivateByDefault: Boolean
|
||||||
following: [UserGQL!]
|
following: [UserGQL!]
|
||||||
followers: [UserGQL!]
|
followers: [UserGQL!]
|
||||||
}
|
}
|
||||||
@@ -434,6 +438,7 @@ type VideoGQL {
|
|||||||
elapsedTime: Float
|
elapsedTime: Float
|
||||||
framesPerSecond: Float!
|
framesPerSecond: Float!
|
||||||
tableSize: Float!
|
tableSize: Float!
|
||||||
|
private: Boolean!
|
||||||
stream: UploadStreamGQL
|
stream: UploadStreamGQL
|
||||||
playlist: HLSPlaylistGQL
|
playlist: HLSPlaylistGQL
|
||||||
tags: [VideoTag!]!
|
tags: [VideoTag!]!
|
||||||
@@ -506,6 +511,7 @@ type VideoTagClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type HomographyInfoGQL {
|
type HomographyInfoGQL {
|
||||||
|
id: Int!
|
||||||
frameIndex: Int!
|
frameIndex: Int!
|
||||||
crop: BoundingBoxGQL!
|
crop: BoundingBoxGQL!
|
||||||
pockets: [BoundingBoxGQL!]!
|
pockets: [BoundingBoxGQL!]!
|
||||||
@@ -535,6 +541,7 @@ type IntPoint2D {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type VideoProcessingGQL {
|
type VideoProcessingGQL {
|
||||||
|
id: Int!
|
||||||
errors: [VideoProcessingErrorGQL!]!
|
errors: [VideoProcessingErrorGQL!]!
|
||||||
status: ProcessingStatusEnum!
|
status: ProcessingStatusEnum!
|
||||||
statuses: [VideoProcessingStatusGQL!]!
|
statuses: [VideoProcessingStatusGQL!]!
|
||||||
@@ -665,6 +672,7 @@ type Mutation {
|
|||||||
editUser(input: EditUserInputGQL!): UserGQL!
|
editUser(input: EditUserInputGQL!): UserGQL!
|
||||||
followUser(followedUserId: Int!): UserGQL!
|
followUser(followedUserId: Int!): UserGQL!
|
||||||
unfollowUser(followedUserId: Int!): UserGQL!
|
unfollowUser(followedUserId: Int!): UserGQL!
|
||||||
|
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
): CreateUploadStreamReturn!
|
): CreateUploadStreamReturn!
|
||||||
@@ -753,6 +761,7 @@ type TooManyProfileImageUploadsErr {
|
|||||||
input EditUserInputGQL {
|
input EditUserInputGQL {
|
||||||
username: String = null
|
username: String = null
|
||||||
fargoRating: Int = null
|
fargoRating: Int = null
|
||||||
|
videosPrivateByDefault: Boolean = null
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateUploadStreamReturn {
|
type CreateUploadStreamReturn {
|
||||||
@@ -767,6 +776,7 @@ input VideoMetadataInput {
|
|||||||
tableSize: Float = null
|
tableSize: Float = null
|
||||||
lastIntendedSegmentBound: Int = null
|
lastIntendedSegmentBound: Int = null
|
||||||
streamSegmentType: StreamSegmentTypeEnum = null
|
streamSegmentType: StreamSegmentTypeEnum = null
|
||||||
|
private: Boolean = null
|
||||||
endStream: Boolean! = false
|
endStream: Boolean! = false
|
||||||
resolution: VideoResolution = null
|
resolution: VideoResolution = null
|
||||||
framesPerSecond: Float = null
|
framesPerSecond: Float = null
|
||||||
|
Reference in New Issue
Block a user