Compare commits
6 Commits
mk/video-c
...
dean/updat
Author | SHA1 | Date | |
---|---|---|---|
e109e89a40 | |||
170ff70b7a | |||
8df09b8c93 | |||
644ea66e98 | |||
0a5097c5c0 | |||
f4445f7ecb |
153
src/index.tsx
153
src/index.tsx
@@ -3219,6 +3219,12 @@ export type GetFeedQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
}>;
|
}>;
|
||||||
@@ -3283,6 +3289,12 @@ export type VideoCardFieldsFragment = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
@@ -3356,6 +3368,12 @@ export type GetVideoFeedQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
}>;
|
}>;
|
||||||
@@ -3594,6 +3612,38 @@ export type GetRunsForHighlightsQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetRunsWithTimestampsQueryVariables = Exact<{
|
||||||
|
filterInput: RunFilterInput;
|
||||||
|
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
||||||
|
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetRunsWithTimestampsQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getRuns: {
|
||||||
|
__typename?: "GetRunsResult";
|
||||||
|
count?: number | null;
|
||||||
|
runIds: Array<number>;
|
||||||
|
runs: Array<{
|
||||||
|
__typename?: "RunGQL";
|
||||||
|
id: number;
|
||||||
|
runLength: number;
|
||||||
|
userId: number;
|
||||||
|
videoId: number;
|
||||||
|
shots: Array<{
|
||||||
|
__typename?: "ShotGQL";
|
||||||
|
videoId: number;
|
||||||
|
id: number;
|
||||||
|
createdAt?: any | null;
|
||||||
|
shotDifficulty?: {
|
||||||
|
__typename?: "PocketingIntentionFeaturesGQL";
|
||||||
|
difficulty?: number | null;
|
||||||
|
} | null;
|
||||||
|
}>;
|
||||||
|
}>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type GetSerializedShotPathsQueryVariables = Exact<{
|
export type GetSerializedShotPathsQueryVariables = Exact<{
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
}>;
|
}>;
|
||||||
@@ -5055,6 +5105,11 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
}
|
}
|
||||||
reaction
|
reaction
|
||||||
}
|
}
|
||||||
@@ -6126,6 +6181,104 @@ export type GetRunsForHighlightsQueryResult = Apollo.QueryResult<
|
|||||||
GetRunsForHighlightsQuery,
|
GetRunsForHighlightsQuery,
|
||||||
GetRunsForHighlightsQueryVariables
|
GetRunsForHighlightsQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetRunsWithTimestampsDocument = gql`
|
||||||
|
query GetRunsWithTimestamps(
|
||||||
|
$filterInput: RunFilterInput!
|
||||||
|
$runIds: [Int!] = null
|
||||||
|
$runsOrdering: GetRunsOrdering
|
||||||
|
) {
|
||||||
|
getRuns(
|
||||||
|
filterInput: $filterInput
|
||||||
|
runIds: $runIds
|
||||||
|
runsOrdering: $runsOrdering
|
||||||
|
) {
|
||||||
|
count
|
||||||
|
runs {
|
||||||
|
id
|
||||||
|
runLength
|
||||||
|
userId
|
||||||
|
videoId
|
||||||
|
shots {
|
||||||
|
videoId
|
||||||
|
id
|
||||||
|
createdAt
|
||||||
|
shotDifficulty: pocketingIntentionFeatures {
|
||||||
|
difficulty
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
runIds
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetRunsWithTimestampsQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetRunsWithTimestampsQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetRunsWithTimestampsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
||||||
|
* you can use to render your UI.
|
||||||
|
*
|
||||||
|
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const { data, loading, error } = useGetRunsWithTimestampsQuery({
|
||||||
|
* variables: {
|
||||||
|
* filterInput: // value for 'filterInput'
|
||||||
|
* runIds: // value for 'runIds'
|
||||||
|
* runsOrdering: // value for 'runsOrdering'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetRunsWithTimestampsQuery(
|
||||||
|
baseOptions: Apollo.QueryHookOptions<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>(GetRunsWithTimestampsDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetRunsWithTimestampsLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>(GetRunsWithTimestampsDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetRunsWithTimestampsSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>(GetRunsWithTimestampsDocument, options);
|
||||||
|
}
|
||||||
|
export type GetRunsWithTimestampsQueryHookResult = ReturnType<
|
||||||
|
typeof useGetRunsWithTimestampsQuery
|
||||||
|
>;
|
||||||
|
export type GetRunsWithTimestampsLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetRunsWithTimestampsLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetRunsWithTimestampsSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetRunsWithTimestampsSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetRunsWithTimestampsQueryResult = Apollo.QueryResult<
|
||||||
|
GetRunsWithTimestampsQuery,
|
||||||
|
GetRunsWithTimestampsQueryVariables
|
||||||
|
>;
|
||||||
export const GetSerializedShotPathsDocument = gql`
|
export const GetSerializedShotPathsDocument = gql`
|
||||||
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
||||||
getShots(filterInput: $filterInput) {
|
getShots(filterInput: $filterInput) {
|
||||||
|
@@ -64,6 +64,11 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
}
|
}
|
||||||
reaction
|
reaction
|
||||||
}
|
}
|
||||||
|
@@ -22,3 +22,32 @@ query GetRunsForHighlights(
|
|||||||
runIds
|
runIds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query GetRunsWithTimestamps(
|
||||||
|
$filterInput: RunFilterInput!
|
||||||
|
$runIds: [Int!] = null
|
||||||
|
$runsOrdering: GetRunsOrdering
|
||||||
|
) {
|
||||||
|
getRuns(
|
||||||
|
filterInput: $filterInput
|
||||||
|
runIds: $runIds
|
||||||
|
runsOrdering: $runsOrdering
|
||||||
|
) {
|
||||||
|
count
|
||||||
|
runs {
|
||||||
|
id
|
||||||
|
runLength
|
||||||
|
userId
|
||||||
|
videoId
|
||||||
|
shots {
|
||||||
|
videoId
|
||||||
|
id
|
||||||
|
createdAt
|
||||||
|
shotDifficulty: pocketingIntentionFeatures {
|
||||||
|
difficulty
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
runIds
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user