Compare commits
13 Commits
volodymyr/
...
loewy/incl
Author | SHA1 | Date | |
---|---|---|---|
b34bce6e5f | |||
0e00ae9297 | |||
e16812f242 | |||
3e9b7a0d16 | |||
309deb9473 | |||
d5ba9c2ba5 | |||
73771a263a | |||
655e59c43c | |||
056120a68a | |||
bd7ffa7fdb | |||
ec58923c65 | |||
63869cd7ca | |||
08ae9611cf |
268
src/index.tsx
268
src/index.tsx
@@ -184,6 +184,7 @@ export type DoesNotOwnShotErrOtherErrorNeedsNote =
|
||||
export type EditUserInputGql = {
|
||||
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
username?: InputMaybe<Scalars["String"]["input"]>;
|
||||
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
};
|
||||
|
||||
export type EnumAggregation = {
|
||||
@@ -1942,6 +1943,7 @@ export type HomographyInfoGql = {
|
||||
crop: BoundingBoxGql;
|
||||
destPoints: PocketPointsGql;
|
||||
frameIndex: Scalars["Int"]["output"];
|
||||
id: Scalars["Int"]["output"];
|
||||
pockets: Array<BoundingBoxGql>;
|
||||
sourcePoints: PocketPointsGql;
|
||||
};
|
||||
@@ -2002,13 +2004,13 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
|
||||
export type Mutation = {
|
||||
__typename?: "Mutation";
|
||||
addAnnotationToShot: AddShotAnnotationReturn;
|
||||
checkHomographyIsValid?: Maybe<HomographyInfoGql>;
|
||||
createBucketSet: BucketSetGql;
|
||||
createUploadStream: CreateUploadStreamReturn;
|
||||
deleteVideo: Scalars["Boolean"]["output"];
|
||||
editProfileImageUri: UserGql;
|
||||
editUploadStream: Scalars["Boolean"]["output"];
|
||||
editUser: UserGql;
|
||||
findPrerecordTableLayout?: Maybe<HomographyInfoGql>;
|
||||
followUser: UserGql;
|
||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||
@@ -2025,11 +2027,6 @@ export type MutationAddAnnotationToShotArgs = {
|
||||
shotId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationCheckHomographyIsValidArgs = {
|
||||
b64Image: Scalars["String"]["input"];
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationCreateBucketSetArgs = {
|
||||
params: CreateBucketSetInput;
|
||||
};
|
||||
@@ -2055,6 +2052,11 @@ export type MutationEditUserArgs = {
|
||||
input: EditUserInputGql;
|
||||
};
|
||||
|
||||
export type MutationFindPrerecordTableLayoutArgs = {
|
||||
b64Image: Scalars["String"]["input"];
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationFollowUserArgs = {
|
||||
followedUserId: Scalars["Int"]["input"];
|
||||
};
|
||||
@@ -2583,6 +2585,7 @@ export type UserGql = {
|
||||
profileImageUri?: Maybe<Scalars["String"]["output"]>;
|
||||
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
username: Scalars["String"]["output"];
|
||||
videosPrivateByDefault?: Maybe<Scalars["Boolean"]["output"]>;
|
||||
};
|
||||
|
||||
export type UserPlayTimeGql = {
|
||||
@@ -2624,6 +2627,7 @@ export type VideoGql = {
|
||||
name?: Maybe<Scalars["String"]["output"]>;
|
||||
owner?: Maybe<UserGql>;
|
||||
playlist?: Maybe<HlsPlaylistGql>;
|
||||
private: Scalars["Boolean"]["output"];
|
||||
screenshotUri?: Maybe<Scalars["String"]["output"]>;
|
||||
shots: Array<ShotGql>;
|
||||
startTime?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
@@ -2647,6 +2651,7 @@ export type VideoMetadataInput = {
|
||||
framesPerSecond?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
||||
lastIntendedSegmentBound?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
private?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
resolution?: InputMaybe<VideoResolution>;
|
||||
startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||
streamSegmentType?: InputMaybe<StreamSegmentTypeEnum>;
|
||||
@@ -2664,6 +2669,7 @@ export type VideoProcessingErrorGql = {
|
||||
export type VideoProcessingGql = {
|
||||
__typename?: "VideoProcessingGQL";
|
||||
errors: Array<VideoProcessingErrorGql>;
|
||||
id: Scalars["Int"]["output"];
|
||||
status: ProcessingStatusEnum;
|
||||
statuses: Array<VideoProcessingStatusGql>;
|
||||
};
|
||||
@@ -2824,6 +2830,7 @@ export type VideoCardFieldsFragment = {
|
||||
}>;
|
||||
currentProcessing?: {
|
||||
__typename?: "VideoProcessingGQL";
|
||||
id: number;
|
||||
status: ProcessingStatusEnum;
|
||||
errors: Array<{ __typename?: "VideoProcessingErrorGQL"; message: string }>;
|
||||
statuses: Array<{
|
||||
@@ -2875,6 +2882,7 @@ export type GetVideoFeedQuery = {
|
||||
}>;
|
||||
currentProcessing?: {
|
||||
__typename?: "VideoProcessingGQL";
|
||||
id: number;
|
||||
status: ProcessingStatusEnum;
|
||||
errors: Array<{
|
||||
__typename?: "VideoProcessingErrorGQL";
|
||||
@@ -3444,6 +3452,8 @@ export type GetStreamMonitoringDetailsQuery = {
|
||||
elapsedTime?: number | null;
|
||||
currentHomography?: {
|
||||
__typename?: "HomographyInfoGQL";
|
||||
id: number;
|
||||
frameIndex: number;
|
||||
crop: {
|
||||
__typename?: "BoundingBoxGQL";
|
||||
left: number;
|
||||
@@ -3657,6 +3667,7 @@ export type GetVideoQuery = {
|
||||
} | null;
|
||||
homographyHistory: Array<{
|
||||
__typename?: "HomographyInfoGQL";
|
||||
id: number;
|
||||
frameIndex: number;
|
||||
crop: {
|
||||
__typename?: "BoundingBoxGQL";
|
||||
@@ -3858,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<{
|
||||
videoMetadataInput: VideoMetadataInput;
|
||||
}>;
|
||||
@@ -4061,6 +4138,7 @@ export const VideoCardFieldsFragmentDoc = gql`
|
||||
name
|
||||
}
|
||||
currentProcessing {
|
||||
id
|
||||
errors {
|
||||
message
|
||||
}
|
||||
@@ -4189,6 +4267,50 @@ export const VideoDurationDataFragmentDoc = gql`
|
||||
${PlaylistWithSegmentStartTimesFragmentDoc}
|
||||
${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`
|
||||
query GetAggregatedShotMetrics($aggregateInput: AggregateInputGQL!) {
|
||||
getAggregatedShotMetrics(aggregateInput: $aggregateInput) {
|
||||
@@ -6061,44 +6183,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
|
||||
makePercentage
|
||||
elapsedTime
|
||||
currentHomography {
|
||||
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
|
||||
}
|
||||
}
|
||||
...HomographyInfo
|
||||
}
|
||||
stream {
|
||||
id
|
||||
@@ -6119,6 +6204,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
${HomographyInfoFragmentDoc}
|
||||
`;
|
||||
|
||||
/**
|
||||
@@ -6568,45 +6654,7 @@ export const GetVideoDocument = gql`
|
||||
segmentDurations
|
||||
}
|
||||
homographyHistory {
|
||||
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
|
||||
}
|
||||
}
|
||||
...HomographyInfo
|
||||
}
|
||||
stream {
|
||||
id
|
||||
@@ -6623,6 +6671,7 @@ export const GetVideoDocument = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
${HomographyInfoFragmentDoc}
|
||||
`;
|
||||
|
||||
/**
|
||||
@@ -7056,6 +7105,59 @@ export type GetHeaderInfoByVideoIdQueryResult = Apollo.QueryResult<
|
||||
GetHeaderInfoByVideoIdQuery,
|
||||
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`
|
||||
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
||||
createUploadStream(videoMetadata: $videoMetadataInput) {
|
||||
|
@@ -70,6 +70,7 @@ fragment VideoCardFields on VideoGQL {
|
||||
name
|
||||
}
|
||||
currentProcessing {
|
||||
id
|
||||
errors {
|
||||
message
|
||||
}
|
||||
|
@@ -5,44 +5,7 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||
makePercentage
|
||||
elapsedTime
|
||||
currentHomography {
|
||||
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
|
||||
}
|
||||
}
|
||||
...HomographyInfo
|
||||
}
|
||||
stream {
|
||||
id
|
||||
@@ -154,45 +117,7 @@ query GetVideo($videoId: Int!) {
|
||||
segmentDurations
|
||||
}
|
||||
homographyHistory {
|
||||
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
|
||||
}
|
||||
}
|
||||
...HomographyInfo
|
||||
}
|
||||
stream {
|
||||
id
|
||||
@@ -288,3 +213,52 @@ query GetHeaderInfoByVideoId($videoId: Int!) {
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -400,6 +400,7 @@ type UserGQL {
|
||||
profileImageUri: String
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
videosPrivateByDefault: Boolean
|
||||
following: [UserGQL!]
|
||||
followers: [UserGQL!]
|
||||
}
|
||||
@@ -437,6 +438,7 @@ type VideoGQL {
|
||||
elapsedTime: Float
|
||||
framesPerSecond: Float!
|
||||
tableSize: Float!
|
||||
private: Boolean!
|
||||
stream: UploadStreamGQL
|
||||
playlist: HLSPlaylistGQL
|
||||
tags: [VideoTag!]!
|
||||
@@ -509,6 +511,7 @@ type VideoTagClass {
|
||||
}
|
||||
|
||||
type HomographyInfoGQL {
|
||||
id: Int!
|
||||
frameIndex: Int!
|
||||
crop: BoundingBoxGQL!
|
||||
pockets: [BoundingBoxGQL!]!
|
||||
@@ -538,6 +541,7 @@ type IntPoint2D {
|
||||
}
|
||||
|
||||
type VideoProcessingGQL {
|
||||
id: Int!
|
||||
errors: [VideoProcessingErrorGQL!]!
|
||||
status: ProcessingStatusEnum!
|
||||
statuses: [VideoProcessingStatusGQL!]!
|
||||
@@ -668,7 +672,7 @@ type Mutation {
|
||||
editUser(input: EditUserInputGQL!): UserGQL!
|
||||
followUser(followedUserId: Int!): UserGQL!
|
||||
unfollowUser(followedUserId: Int!): UserGQL!
|
||||
checkHomographyIsValid(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
): CreateUploadStreamReturn!
|
||||
@@ -757,6 +761,7 @@ type TooManyProfileImageUploadsErr {
|
||||
input EditUserInputGQL {
|
||||
username: String = null
|
||||
fargoRating: Int = null
|
||||
videosPrivateByDefault: Boolean = null
|
||||
}
|
||||
|
||||
type CreateUploadStreamReturn {
|
||||
@@ -771,6 +776,7 @@ input VideoMetadataInput {
|
||||
tableSize: Float = null
|
||||
lastIntendedSegmentBound: Int = null
|
||||
streamSegmentType: StreamSegmentTypeEnum = null
|
||||
private: Boolean = null
|
||||
endStream: Boolean! = false
|
||||
resolution: VideoResolution = null
|
||||
framesPerSecond: Float = null
|
||||
|
Reference in New Issue
Block a user