Compare commits
11 Commits
kat/image-
...
kat/curren
Author | SHA1 | Date | |
---|---|---|---|
2d6d3964ad | |||
73a58de36e | |||
dc6f246489 | |||
c0a3aa97dc | |||
f4e43b24f2 | |||
51ab8320d7 | |||
f9a00ad3eb | |||
998b2ffc8c | |||
c7642e6204 | |||
b2ce1c2f96 | |||
d0cf071934 |
230
src/index.tsx
230
src/index.tsx
@@ -2002,6 +2002,7 @@ 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"];
|
||||||
@@ -2024,6 +2025,11 @@ 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;
|
||||||
};
|
};
|
||||||
@@ -2786,6 +2792,47 @@ 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";
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
errors: Array<{ __typename?: "VideoProcessingErrorGQL"; message: string }>;
|
||||||
|
statuses: Array<{
|
||||||
|
__typename?: "VideoProcessingStatusGQL";
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
}>;
|
||||||
|
} | null;
|
||||||
|
};
|
||||||
|
|
||||||
export type GetVideoFeedQueryVariables = Exact<{
|
export type GetVideoFeedQueryVariables = Exact<{
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
after?: InputMaybe<Scalars["String"]["input"]>;
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
@@ -2812,6 +2859,7 @@ export type GetVideoFeedQuery = {
|
|||||||
tableSize: number;
|
tableSize: number;
|
||||||
owner?: {
|
owner?: {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
} | null;
|
} | null;
|
||||||
@@ -2825,6 +2873,18 @@ export type GetVideoFeedQuery = {
|
|||||||
name: string;
|
name: string;
|
||||||
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
||||||
}>;
|
}>;
|
||||||
|
currentProcessing?: {
|
||||||
|
__typename?: "VideoProcessingGQL";
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
errors: Array<{
|
||||||
|
__typename?: "VideoProcessingErrorGQL";
|
||||||
|
message: string;
|
||||||
|
}>;
|
||||||
|
statuses: Array<{
|
||||||
|
__typename?: "VideoProcessingStatusGQL";
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
}>;
|
||||||
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
pageInfo: {
|
pageInfo: {
|
||||||
__typename?: "PageInfoGQL";
|
__typename?: "PageInfoGQL";
|
||||||
@@ -2934,6 +2994,20 @@ 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>;
|
||||||
@@ -3956,6 +4030,47 @@ 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 {
|
||||||
|
errors {
|
||||||
|
message
|
||||||
|
}
|
||||||
|
status
|
||||||
|
statuses {
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
export const ShotWithAllFeaturesFragmentDoc = gql`
|
export const ShotWithAllFeaturesFragmentDoc = gql`
|
||||||
fragment ShotWithAllFeatures on ShotGQL {
|
fragment ShotWithAllFeatures on ShotGQL {
|
||||||
id
|
id
|
||||||
@@ -4341,33 +4456,7 @@ export const GetVideoFeedDocument = gql`
|
|||||||
) {
|
) {
|
||||||
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
videos {
|
videos {
|
||||||
id
|
...VideoCardFields
|
||||||
owner {
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
}
|
|
||||||
name
|
|
||||||
screenshotUri
|
|
||||||
totalShotsMade
|
|
||||||
totalShots
|
|
||||||
makePercentage
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
startTime
|
|
||||||
endTime
|
|
||||||
elapsedTime
|
|
||||||
screenshotUri
|
|
||||||
stream {
|
|
||||||
id
|
|
||||||
isCompleted
|
|
||||||
}
|
|
||||||
tableSize
|
|
||||||
tags {
|
|
||||||
tagClasses {
|
|
||||||
name
|
|
||||||
}
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
@@ -4375,6 +4464,7 @@ export const GetVideoFeedDocument = gql`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
${VideoCardFieldsFragmentDoc}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -4835,6 +4925,92 @@ 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!
|
||||||
|
@@ -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
|
||||||
@@ -39,6 +40,46 @@ 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 {
|
||||||
|
errors {
|
||||||
|
message
|
||||||
|
}
|
||||||
|
status
|
||||||
|
statuses {
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
query GetVideoFeed(
|
query GetVideoFeed(
|
||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
$after: String = null
|
$after: String = null
|
||||||
@@ -46,33 +87,7 @@ query GetVideoFeed(
|
|||||||
) {
|
) {
|
||||||
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
videos {
|
videos {
|
||||||
id
|
...VideoCardFields
|
||||||
owner {
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
}
|
|
||||||
name
|
|
||||||
screenshotUri
|
|
||||||
totalShotsMade
|
|
||||||
totalShots
|
|
||||||
makePercentage
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
startTime
|
|
||||||
endTime
|
|
||||||
elapsedTime
|
|
||||||
screenshotUri
|
|
||||||
stream {
|
|
||||||
id
|
|
||||||
isCompleted
|
|
||||||
}
|
|
||||||
tableSize
|
|
||||||
tags {
|
|
||||||
tagClasses {
|
|
||||||
name
|
|
||||||
}
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
|
@@ -40,6 +40,7 @@ mutation UpdateShotAnnotations(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## Should be deprecated
|
||||||
query GetShotsWithVideoGql(
|
query GetShotsWithVideoGql(
|
||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
$shotsOrdering: GetShotsOrdering
|
$shotsOrdering: GetShotsOrdering
|
||||||
@@ -61,6 +62,23 @@ 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!
|
||||||
|
@@ -668,6 +668,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
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
): CreateUploadStreamReturn!
|
): CreateUploadStreamReturn!
|
||||||
|
Reference in New Issue
Block a user