Compare commits
3 Commits
volodymyr/
...
ec58923c65
Author | SHA1 | Date | |
---|---|---|---|
ec58923c65 | |||
63869cd7ca | |||
08ae9611cf |
179
src/index.tsx
179
src/index.tsx
@@ -28,6 +28,8 @@ export type Scalars = {
|
|||||||
Boolean: { input: boolean; output: boolean };
|
Boolean: { input: boolean; output: boolean };
|
||||||
Int: { input: number; output: number };
|
Int: { input: number; output: number };
|
||||||
Float: { input: number; output: number };
|
Float: { input: number; output: number };
|
||||||
|
/** Represents binary data as Base64-encoded strings, using the standard alphabet. */
|
||||||
|
Base64: { input: any; output: any };
|
||||||
/** Date (isoformat) */
|
/** Date (isoformat) */
|
||||||
Date: { input: any; output: any };
|
Date: { input: any; output: any };
|
||||||
/** Date with time (isoformat) */
|
/** Date with time (isoformat) */
|
||||||
@@ -1942,6 +1944,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;
|
||||||
};
|
};
|
||||||
@@ -2002,13 +2005,13 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
|
|||||||
export type Mutation = {
|
export type Mutation = {
|
||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
addAnnotationToShot: AddShotAnnotationReturn;
|
addAnnotationToShot: AddShotAnnotationReturn;
|
||||||
checkHomographyIsValid?: Maybe<HomographyInfoGql>;
|
|
||||||
createBucketSet: BucketSetGql;
|
createBucketSet: BucketSetGql;
|
||||||
createUploadStream: CreateUploadStreamReturn;
|
createUploadStream: CreateUploadStreamReturn;
|
||||||
deleteVideo: Scalars["Boolean"]["output"];
|
deleteVideo: Scalars["Boolean"]["output"];
|
||||||
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;
|
||||||
@@ -2025,11 +2028,6 @@ export type MutationAddAnnotationToShotArgs = {
|
|||||||
shotId: Scalars["Int"]["input"];
|
shotId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MutationCheckHomographyIsValidArgs = {
|
|
||||||
b64Image: Scalars["String"]["input"];
|
|
||||||
videoId: Scalars["Int"]["input"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type MutationCreateBucketSetArgs = {
|
export type MutationCreateBucketSetArgs = {
|
||||||
params: CreateBucketSetInput;
|
params: CreateBucketSetInput;
|
||||||
};
|
};
|
||||||
@@ -2055,6 +2053,11 @@ export type MutationEditUserArgs = {
|
|||||||
input: EditUserInputGql;
|
input: EditUserInputGql;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationFindPrerecordTableLayoutArgs = {
|
||||||
|
b64Image: Scalars["Base64"]["input"];
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationFollowUserArgs = {
|
export type MutationFollowUserArgs = {
|
||||||
followedUserId: Scalars["Int"]["input"];
|
followedUserId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
@@ -2664,6 +2667,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>;
|
||||||
};
|
};
|
||||||
@@ -2734,51 +2738,6 @@ export type GetAggregatedShotMetricsQuery = {
|
|||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CheckHomographyIsValidMutationVariables = Exact<{
|
|
||||||
b64Image: Scalars["String"]["input"];
|
|
||||||
videoId: Scalars["Int"]["input"];
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type CheckHomographyIsValidMutation = {
|
|
||||||
__typename?: "Mutation";
|
|
||||||
checkHomographyIsValid?: {
|
|
||||||
__typename?: "HomographyInfoGQL";
|
|
||||||
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 };
|
|
||||||
};
|
|
||||||
destPoints: {
|
|
||||||
__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 GetDeployedConfigQueryVariables = Exact<{ [key: string]: never }>;
|
export type GetDeployedConfigQueryVariables = Exact<{ [key: string]: never }>;
|
||||||
|
|
||||||
export type GetDeployedConfigQuery = {
|
export type GetDeployedConfigQuery = {
|
||||||
@@ -2869,6 +2828,7 @@ export type VideoCardFieldsFragment = {
|
|||||||
}>;
|
}>;
|
||||||
currentProcessing?: {
|
currentProcessing?: {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
|
id: number;
|
||||||
status: ProcessingStatusEnum;
|
status: ProcessingStatusEnum;
|
||||||
errors: Array<{ __typename?: "VideoProcessingErrorGQL"; message: string }>;
|
errors: Array<{ __typename?: "VideoProcessingErrorGQL"; message: string }>;
|
||||||
statuses: Array<{
|
statuses: Array<{
|
||||||
@@ -2920,6 +2880,7 @@ export type GetVideoFeedQuery = {
|
|||||||
}>;
|
}>;
|
||||||
currentProcessing?: {
|
currentProcessing?: {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
|
id: number;
|
||||||
status: ProcessingStatusEnum;
|
status: ProcessingStatusEnum;
|
||||||
errors: Array<{
|
errors: Array<{
|
||||||
__typename?: "VideoProcessingErrorGQL";
|
__typename?: "VideoProcessingErrorGQL";
|
||||||
@@ -4106,6 +4067,7 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
name
|
name
|
||||||
}
|
}
|
||||||
currentProcessing {
|
currentProcessing {
|
||||||
|
id
|
||||||
errors {
|
errors {
|
||||||
message
|
message
|
||||||
}
|
}
|
||||||
@@ -4314,121 +4276,6 @@ export type GetAggregatedShotMetricsQueryResult = Apollo.QueryResult<
|
|||||||
GetAggregatedShotMetricsQuery,
|
GetAggregatedShotMetricsQuery,
|
||||||
GetAggregatedShotMetricsQueryVariables
|
GetAggregatedShotMetricsQueryVariables
|
||||||
>;
|
>;
|
||||||
export const CheckHomographyIsValidDocument = gql`
|
|
||||||
mutation checkHomographyIsValid($b64Image: String!, $videoId: Int!) {
|
|
||||||
checkHomographyIsValid(b64Image: $b64Image, videoId: $videoId) {
|
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
destPoints {
|
|
||||||
topLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
export type CheckHomographyIsValidMutationFn = Apollo.MutationFunction<
|
|
||||||
CheckHomographyIsValidMutation,
|
|
||||||
CheckHomographyIsValidMutationVariables
|
|
||||||
>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useCheckHomographyIsValidMutation__
|
|
||||||
*
|
|
||||||
* To run a mutation, you first call `useCheckHomographyIsValidMutation` within a React component and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useCheckHomographyIsValidMutation` 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 [checkHomographyIsValidMutation, { data, loading, error }] = useCheckHomographyIsValidMutation({
|
|
||||||
* variables: {
|
|
||||||
* b64Image: // value for 'b64Image'
|
|
||||||
* videoId: // value for 'videoId'
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useCheckHomographyIsValidMutation(
|
|
||||||
baseOptions?: Apollo.MutationHookOptions<
|
|
||||||
CheckHomographyIsValidMutation,
|
|
||||||
CheckHomographyIsValidMutationVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useMutation<
|
|
||||||
CheckHomographyIsValidMutation,
|
|
||||||
CheckHomographyIsValidMutationVariables
|
|
||||||
>(CheckHomographyIsValidDocument, options);
|
|
||||||
}
|
|
||||||
export type CheckHomographyIsValidMutationHookResult = ReturnType<
|
|
||||||
typeof useCheckHomographyIsValidMutation
|
|
||||||
>;
|
|
||||||
export type CheckHomographyIsValidMutationResult =
|
|
||||||
Apollo.MutationResult<CheckHomographyIsValidMutation>;
|
|
||||||
export type CheckHomographyIsValidMutationOptions = Apollo.BaseMutationOptions<
|
|
||||||
CheckHomographyIsValidMutation,
|
|
||||||
CheckHomographyIsValidMutationVariables
|
|
||||||
>;
|
|
||||||
export const GetDeployedConfigDocument = gql`
|
export const GetDeployedConfigDocument = gql`
|
||||||
query getDeployedConfig {
|
query getDeployedConfig {
|
||||||
getDeployedConfig {
|
getDeployedConfig {
|
||||||
|
@@ -1,69 +0,0 @@
|
|||||||
mutation checkHomographyIsValid($b64Image: String!, $videoId: Int!) {
|
|
||||||
checkHomographyIsValid(b64Image: $b64Image, videoId: $videoId) {
|
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
destPoints {
|
|
||||||
topLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -70,6 +70,7 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
name
|
name
|
||||||
}
|
}
|
||||||
currentProcessing {
|
currentProcessing {
|
||||||
|
id
|
||||||
errors {
|
errors {
|
||||||
message
|
message
|
||||||
}
|
}
|
||||||
|
@@ -509,6 +509,7 @@ type VideoTagClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type HomographyInfoGQL {
|
type HomographyInfoGQL {
|
||||||
|
id: Int!
|
||||||
frameIndex: Int!
|
frameIndex: Int!
|
||||||
crop: BoundingBoxGQL!
|
crop: BoundingBoxGQL!
|
||||||
pockets: [BoundingBoxGQL!]!
|
pockets: [BoundingBoxGQL!]!
|
||||||
@@ -538,6 +539,7 @@ type IntPoint2D {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type VideoProcessingGQL {
|
type VideoProcessingGQL {
|
||||||
|
id: Int!
|
||||||
errors: [VideoProcessingErrorGQL!]!
|
errors: [VideoProcessingErrorGQL!]!
|
||||||
status: ProcessingStatusEnum!
|
status: ProcessingStatusEnum!
|
||||||
statuses: [VideoProcessingStatusGQL!]!
|
statuses: [VideoProcessingStatusGQL!]!
|
||||||
@@ -668,7 +670,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!
|
||||||
checkHomographyIsValid(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
findPrerecordTableLayout(b64Image: Base64!, videoId: Int!): HomographyInfoGQL
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
): CreateUploadStreamReturn!
|
): CreateUploadStreamReturn!
|
||||||
@@ -759,6 +761,14 @@ input EditUserInputGQL {
|
|||||||
fargoRating: Int = null
|
fargoRating: Int = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
Represents binary data as Base64-encoded strings, using the standard alphabet.
|
||||||
|
"""
|
||||||
|
scalar Base64
|
||||||
|
@specifiedBy(
|
||||||
|
url: "https://datatracker.ietf.org/doc/html/rfc4648.html#section-4"
|
||||||
|
)
|
||||||
|
|
||||||
type CreateUploadStreamReturn {
|
type CreateUploadStreamReturn {
|
||||||
videoId: Int!
|
videoId: Int!
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user