Compare commits
1 Commits
volodymyr/
...
loewy/incl
Author | SHA1 | Date | |
---|---|---|---|
b34bce6e5f |
168
src/index.tsx
168
src/index.tsx
@@ -2210,7 +2210,6 @@ export type QueryGetBucketSetArgs = {
|
|||||||
export type QueryGetFeedVideosArgs = {
|
export type QueryGetFeedVideosArgs = {
|
||||||
after?: InputMaybe<Scalars["String"]["input"]>;
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
filters?: InputMaybe<VideoFilterInput>;
|
filters?: InputMaybe<VideoFilterInput>;
|
||||||
includeCallersVideos?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2228,7 +2227,6 @@ export type QueryGetOrderedShotsArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type QueryGetPlayTimeArgs = {
|
export type QueryGetPlayTimeArgs = {
|
||||||
filters?: InputMaybe<VideoFilterInput>;
|
|
||||||
userId: Scalars["Int"]["input"];
|
userId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2609,8 +2607,6 @@ export type UserRelationshipsResult = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type VideoFilterInput = {
|
export type VideoFilterInput = {
|
||||||
createdAt?: InputMaybe<DateRangeFilter>;
|
|
||||||
excludeVideosWithNoShots?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
||||||
isStreamCompleted?: InputMaybe<Scalars["Boolean"]["input"]>;
|
isStreamCompleted?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
requireCursorCompletion?: Scalars["Boolean"]["input"];
|
requireCursorCompletion?: Scalars["Boolean"]["input"];
|
||||||
};
|
};
|
||||||
@@ -2780,15 +2776,9 @@ export type GetFeedQuery = {
|
|||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
startTime?: any | null;
|
startTime?: any | null;
|
||||||
endTime?: any | null;
|
endTime?: any | null;
|
||||||
private: boolean;
|
|
||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
owner?: {
|
owner?: { __typename?: "UserGQL"; username: string } | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
} | null;
|
|
||||||
stream?: {
|
stream?: {
|
||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
id: string;
|
id: string;
|
||||||
@@ -2799,19 +2789,6 @@ export type GetFeedQuery = {
|
|||||||
name: string;
|
name: string;
|
||||||
tagClasses: Array<{ __typename?: "VideoTagClass"; 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: {
|
pageInfo: {
|
||||||
__typename?: "PageInfoGQL";
|
__typename?: "PageInfoGQL";
|
||||||
@@ -2833,7 +2810,6 @@ export type VideoCardFieldsFragment = {
|
|||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
startTime?: any | null;
|
startTime?: any | null;
|
||||||
endTime?: any | null;
|
endTime?: any | null;
|
||||||
private: boolean;
|
|
||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
owner?: {
|
owner?: {
|
||||||
@@ -2868,7 +2844,6 @@ export type GetVideoFeedQueryVariables = Exact<{
|
|||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
after?: InputMaybe<Scalars["String"]["input"]>;
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
filters?: InputMaybe<VideoFilterInput>;
|
filters?: InputMaybe<VideoFilterInput>;
|
||||||
includeCallersVideos?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetVideoFeedQuery = {
|
export type GetVideoFeedQuery = {
|
||||||
@@ -2887,7 +2862,6 @@ export type GetVideoFeedQuery = {
|
|||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
startTime?: any | null;
|
startTime?: any | null;
|
||||||
endTime?: any | null;
|
endTime?: any | null;
|
||||||
private: boolean;
|
|
||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
owner?: {
|
owner?: {
|
||||||
@@ -3032,14 +3006,12 @@ export type GetShotsWithJustIdsQueryVariables = Exact<{
|
|||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
||||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
countRespectsLimit?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetShotsWithJustIdsQuery = {
|
export type GetShotsWithJustIdsQuery = {
|
||||||
__typename?: "Query";
|
__typename?: "Query";
|
||||||
getOrderedShots: {
|
getOrderedShots: {
|
||||||
__typename?: "GetShotsResult";
|
__typename?: "GetShotsResult";
|
||||||
count?: number | null;
|
|
||||||
shots: Array<{ __typename?: "ShotGQL"; id: number; videoId: number }>;
|
shots: Array<{ __typename?: "ShotGQL"; id: number; videoId: number }>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -3338,13 +3310,11 @@ export type GetLoggedInUserQuery = {
|
|||||||
activeVideoId?: number | null;
|
activeVideoId?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
videosPrivateByDefault?: boolean | null;
|
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetUserPlayTimeQueryVariables = Exact<{
|
export type GetUserPlayTimeQueryVariables = Exact<{
|
||||||
userId: Scalars["Int"]["input"];
|
userId: Scalars["Int"]["input"];
|
||||||
filters?: InputMaybe<VideoFilterInput>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetUserPlayTimeQuery = {
|
export type GetUserPlayTimeQuery = {
|
||||||
@@ -3467,25 +3437,6 @@ export type DoesUsernameExistQuery = {
|
|||||||
doesUsernameExist: boolean;
|
doesUsernameExist: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EditUserMutationVariables = Exact<{
|
|
||||||
username?: InputMaybe<Scalars["String"]["input"]>;
|
|
||||||
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
|
||||||
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type EditUserMutation = {
|
|
||||||
__typename?: "Mutation";
|
|
||||||
editUser: {
|
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
firebaseUid?: string | null;
|
|
||||||
username: string;
|
|
||||||
fargoRating?: number | null;
|
|
||||||
updatedAt?: any | null;
|
|
||||||
videosPrivateByDefault?: boolean | null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
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"]>;
|
||||||
@@ -3501,6 +3452,7 @@ export type GetStreamMonitoringDetailsQuery = {
|
|||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
currentHomography?: {
|
currentHomography?: {
|
||||||
__typename?: "HomographyInfoGQL";
|
__typename?: "HomographyInfoGQL";
|
||||||
|
id: number;
|
||||||
frameIndex: number;
|
frameIndex: number;
|
||||||
crop: {
|
crop: {
|
||||||
__typename?: "BoundingBoxGQL";
|
__typename?: "BoundingBoxGQL";
|
||||||
@@ -3715,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";
|
||||||
@@ -3925,6 +3878,7 @@ export type FindPrerecordTableLayoutMutation = {
|
|||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
findPrerecordTableLayout?: {
|
findPrerecordTableLayout?: {
|
||||||
__typename?: "HomographyInfoGQL";
|
__typename?: "HomographyInfoGQL";
|
||||||
|
id: number;
|
||||||
frameIndex: number;
|
frameIndex: number;
|
||||||
crop: {
|
crop: {
|
||||||
__typename?: "BoundingBoxGQL";
|
__typename?: "BoundingBoxGQL";
|
||||||
@@ -3954,6 +3908,7 @@ export type FindPrerecordTableLayoutMutation = {
|
|||||||
|
|
||||||
export type HomographyInfoFragment = {
|
export type HomographyInfoFragment = {
|
||||||
__typename?: "HomographyInfoGQL";
|
__typename?: "HomographyInfoGQL";
|
||||||
|
id: number;
|
||||||
frameIndex: number;
|
frameIndex: number;
|
||||||
crop: {
|
crop: {
|
||||||
__typename?: "BoundingBoxGQL";
|
__typename?: "BoundingBoxGQL";
|
||||||
@@ -4169,7 +4124,6 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
updatedAt
|
updatedAt
|
||||||
startTime
|
startTime
|
||||||
endTime
|
endTime
|
||||||
private
|
|
||||||
elapsedTime
|
elapsedTime
|
||||||
screenshotUri
|
screenshotUri
|
||||||
stream {
|
stream {
|
||||||
@@ -4315,6 +4269,7 @@ export const VideoDurationDataFragmentDoc = gql`
|
|||||||
`;
|
`;
|
||||||
export const HomographyInfoFragmentDoc = gql`
|
export const HomographyInfoFragmentDoc = gql`
|
||||||
fragment HomographyInfo on HomographyInfoGQL {
|
fragment HomographyInfo on HomographyInfoGQL {
|
||||||
|
id
|
||||||
frameIndex
|
frameIndex
|
||||||
crop {
|
crop {
|
||||||
left
|
left
|
||||||
@@ -4520,7 +4475,32 @@ export const GetFeedDocument = gql`
|
|||||||
) {
|
) {
|
||||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
videos {
|
videos {
|
||||||
...VideoCardFields
|
id
|
||||||
|
owner {
|
||||||
|
username
|
||||||
|
}
|
||||||
|
name
|
||||||
|
screenshotUri
|
||||||
|
totalShotsMade
|
||||||
|
totalShots
|
||||||
|
makePercentage
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
startTime
|
||||||
|
endTime
|
||||||
|
elapsedTime
|
||||||
|
screenshotUri
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
isCompleted
|
||||||
|
}
|
||||||
|
tableSize
|
||||||
|
tags {
|
||||||
|
tagClasses {
|
||||||
|
name
|
||||||
|
}
|
||||||
|
name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
@@ -4528,7 +4508,6 @@ export const GetFeedDocument = gql`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
${VideoCardFieldsFragmentDoc}
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -4596,14 +4575,8 @@ export const GetVideoFeedDocument = gql`
|
|||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
$after: String = null
|
$after: String = null
|
||||||
$filters: VideoFilterInput = null
|
$filters: VideoFilterInput = null
|
||||||
$includeCallersVideos: Boolean = null
|
|
||||||
) {
|
) {
|
||||||
getFeedVideos(
|
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
limit: $limit
|
|
||||||
after: $after
|
|
||||||
filters: $filters
|
|
||||||
includeCallersVideos: $includeCallersVideos
|
|
||||||
) {
|
|
||||||
videos {
|
videos {
|
||||||
...VideoCardFields
|
...VideoCardFields
|
||||||
}
|
}
|
||||||
@@ -4631,7 +4604,6 @@ export const GetVideoFeedDocument = gql`
|
|||||||
* limit: // value for 'limit'
|
* limit: // value for 'limit'
|
||||||
* after: // value for 'after'
|
* after: // value for 'after'
|
||||||
* filters: // value for 'filters'
|
* filters: // value for 'filters'
|
||||||
* includeCallersVideos: // value for 'includeCallersVideos'
|
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
@@ -5080,15 +5052,12 @@ export const GetShotsWithJustIdsDocument = gql`
|
|||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
$shotsOrdering: GetShotsOrdering
|
$shotsOrdering: GetShotsOrdering
|
||||||
$limit: Int
|
$limit: Int
|
||||||
$countRespectsLimit: Boolean
|
|
||||||
) {
|
) {
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: $filterInput
|
filterInput: $filterInput
|
||||||
shotsOrdering: $shotsOrdering
|
shotsOrdering: $shotsOrdering
|
||||||
limit: $limit
|
limit: $limit
|
||||||
countRespectsLimit: $countRespectsLimit
|
|
||||||
) {
|
) {
|
||||||
count
|
|
||||||
shots {
|
shots {
|
||||||
id
|
id
|
||||||
videoId
|
videoId
|
||||||
@@ -5112,7 +5081,6 @@ export const GetShotsWithJustIdsDocument = gql`
|
|||||||
* filterInput: // value for 'filterInput'
|
* filterInput: // value for 'filterInput'
|
||||||
* shotsOrdering: // value for 'shotsOrdering'
|
* shotsOrdering: // value for 'shotsOrdering'
|
||||||
* limit: // value for 'limit'
|
* limit: // value for 'limit'
|
||||||
* countRespectsLimit: // value for 'countRespectsLimit'
|
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
@@ -5556,7 +5524,6 @@ export const GetLoggedInUserDocument = gql`
|
|||||||
activeVideoId
|
activeVideoId
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -5626,8 +5593,8 @@ export type GetLoggedInUserQueryResult = Apollo.QueryResult<
|
|||||||
GetLoggedInUserQueryVariables
|
GetLoggedInUserQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetUserPlayTimeDocument = gql`
|
export const GetUserPlayTimeDocument = gql`
|
||||||
query GetUserPlayTime($userId: Int!, $filters: VideoFilterInput) {
|
query GetUserPlayTime($userId: Int!) {
|
||||||
getPlayTime(userId: $userId, filters: $filters) {
|
getPlayTime(userId: $userId) {
|
||||||
totalSeconds
|
totalSeconds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5646,7 +5613,6 @@ export const GetUserPlayTimeDocument = gql`
|
|||||||
* const { data, loading, error } = useGetUserPlayTimeQuery({
|
* const { data, loading, error } = useGetUserPlayTimeQuery({
|
||||||
* variables: {
|
* variables: {
|
||||||
* userId: // value for 'userId'
|
* userId: // value for 'userId'
|
||||||
* filters: // value for 'filters'
|
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
@@ -6209,70 +6175,6 @@ export type DoesUsernameExistQueryResult = Apollo.QueryResult<
|
|||||||
DoesUsernameExistQuery,
|
DoesUsernameExistQuery,
|
||||||
DoesUsernameExistQueryVariables
|
DoesUsernameExistQueryVariables
|
||||||
>;
|
>;
|
||||||
export const EditUserDocument = gql`
|
|
||||||
mutation editUser(
|
|
||||||
$username: String
|
|
||||||
$fargoRating: Int
|
|
||||||
$videosPrivateByDefault: Boolean
|
|
||||||
) {
|
|
||||||
editUser(
|
|
||||||
input: {
|
|
||||||
username: $username
|
|
||||||
fargoRating: $fargoRating
|
|
||||||
videosPrivateByDefault: $videosPrivateByDefault
|
|
||||||
}
|
|
||||||
) {
|
|
||||||
id
|
|
||||||
firebaseUid
|
|
||||||
username
|
|
||||||
fargoRating
|
|
||||||
updatedAt
|
|
||||||
videosPrivateByDefault
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
export type EditUserMutationFn = Apollo.MutationFunction<
|
|
||||||
EditUserMutation,
|
|
||||||
EditUserMutationVariables
|
|
||||||
>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useEditUserMutation__
|
|
||||||
*
|
|
||||||
* To run a mutation, you first call `useEditUserMutation` within a React component and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useEditUserMutation` 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 [editUserMutation, { data, loading, error }] = useEditUserMutation({
|
|
||||||
* variables: {
|
|
||||||
* username: // value for 'username'
|
|
||||||
* fargoRating: // value for 'fargoRating'
|
|
||||||
* videosPrivateByDefault: // value for 'videosPrivateByDefault'
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useEditUserMutation(
|
|
||||||
baseOptions?: Apollo.MutationHookOptions<
|
|
||||||
EditUserMutation,
|
|
||||||
EditUserMutationVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useMutation<EditUserMutation, EditUserMutationVariables>(
|
|
||||||
EditUserDocument,
|
|
||||||
options,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
export type EditUserMutationHookResult = ReturnType<typeof useEditUserMutation>;
|
|
||||||
export type EditUserMutationResult = Apollo.MutationResult<EditUserMutation>;
|
|
||||||
export type EditUserMutationOptions = Apollo.BaseMutationOptions<
|
|
||||||
EditUserMutation,
|
|
||||||
EditUserMutationVariables
|
|
||||||
>;
|
|
||||||
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) {
|
||||||
|
@@ -6,7 +6,32 @@ query GetFeed(
|
|||||||
) {
|
) {
|
||||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
videos {
|
videos {
|
||||||
...VideoCardFields
|
id
|
||||||
|
owner {
|
||||||
|
username
|
||||||
|
}
|
||||||
|
name
|
||||||
|
screenshotUri
|
||||||
|
totalShotsMade
|
||||||
|
totalShots
|
||||||
|
makePercentage
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
startTime
|
||||||
|
endTime
|
||||||
|
elapsedTime
|
||||||
|
screenshotUri
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
isCompleted
|
||||||
|
}
|
||||||
|
tableSize
|
||||||
|
tags {
|
||||||
|
tagClasses {
|
||||||
|
name
|
||||||
|
}
|
||||||
|
name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
@@ -31,7 +56,6 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
updatedAt
|
updatedAt
|
||||||
startTime
|
startTime
|
||||||
endTime
|
endTime
|
||||||
private
|
|
||||||
elapsedTime
|
elapsedTime
|
||||||
screenshotUri
|
screenshotUri
|
||||||
stream {
|
stream {
|
||||||
@@ -61,14 +85,8 @@ query GetVideoFeed(
|
|||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
$after: String = null
|
$after: String = null
|
||||||
$filters: VideoFilterInput = null
|
$filters: VideoFilterInput = null
|
||||||
$includeCallersVideos: Boolean = null
|
|
||||||
) {
|
) {
|
||||||
getFeedVideos(
|
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
limit: $limit
|
|
||||||
after: $after
|
|
||||||
filters: $filters
|
|
||||||
includeCallersVideos: $includeCallersVideos
|
|
||||||
) {
|
|
||||||
videos {
|
videos {
|
||||||
...VideoCardFields
|
...VideoCardFields
|
||||||
}
|
}
|
||||||
|
@@ -66,15 +66,12 @@ query GetShotsWithJustIds(
|
|||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
$shotsOrdering: GetShotsOrdering
|
$shotsOrdering: GetShotsOrdering
|
||||||
$limit: Int
|
$limit: Int
|
||||||
$countRespectsLimit: Boolean
|
|
||||||
) {
|
) {
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: $filterInput
|
filterInput: $filterInput
|
||||||
shotsOrdering: $shotsOrdering
|
shotsOrdering: $shotsOrdering
|
||||||
limit: $limit
|
limit: $limit
|
||||||
countRespectsLimit: $countRespectsLimit
|
|
||||||
) {
|
) {
|
||||||
count
|
|
||||||
shots {
|
shots {
|
||||||
id
|
id
|
||||||
videoId
|
videoId
|
||||||
|
@@ -41,12 +41,11 @@ query getLoggedInUser {
|
|||||||
activeVideoId
|
activeVideoId
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetUserPlayTime($userId: Int!, $filters: VideoFilterInput) {
|
query GetUserPlayTime($userId: Int!) {
|
||||||
getPlayTime(userId: $userId, filters: $filters) {
|
getPlayTime(userId: $userId) {
|
||||||
totalSeconds
|
totalSeconds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -136,24 +135,3 @@ query getUserFollowingFollowers {
|
|||||||
query doesUsernameExist($candidateUsername: String!) {
|
query doesUsernameExist($candidateUsername: String!) {
|
||||||
doesUsernameExist(candidateUsername: $candidateUsername)
|
doesUsernameExist(candidateUsername: $candidateUsername)
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation editUser(
|
|
||||||
$username: String
|
|
||||||
$fargoRating: Int
|
|
||||||
$videosPrivateByDefault: Boolean
|
|
||||||
) {
|
|
||||||
editUser(
|
|
||||||
input: {
|
|
||||||
username: $username
|
|
||||||
fargoRating: $fargoRating
|
|
||||||
videosPrivateByDefault: $videosPrivateByDefault
|
|
||||||
}
|
|
||||||
) {
|
|
||||||
id
|
|
||||||
firebaseUid
|
|
||||||
username
|
|
||||||
fargoRating
|
|
||||||
updatedAt
|
|
||||||
videosPrivateByDefault
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@@ -221,6 +221,7 @@ mutation FindPrerecordTableLayout($b64Image: String!, $videoId: Int!) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fragment HomographyInfo on HomographyInfoGQL {
|
fragment HomographyInfo on HomographyInfoGQL {
|
||||||
|
id
|
||||||
frameIndex
|
frameIndex
|
||||||
crop {
|
crop {
|
||||||
left
|
left
|
||||||
|
@@ -46,7 +46,7 @@ type Query {
|
|||||||
limit: Int = 100
|
limit: Int = 100
|
||||||
after: String = null
|
after: String = null
|
||||||
): UserRelationshipsResult!
|
): UserRelationshipsResult!
|
||||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
getPlayTime(userId: Int!): UserPlayTimeGQL!
|
||||||
getUserVideos(
|
getUserVideos(
|
||||||
userId: Int = null
|
userId: Int = null
|
||||||
limit: Int! = 5
|
limit: Int! = 5
|
||||||
@@ -59,7 +59,6 @@ type Query {
|
|||||||
getFeedVideos(
|
getFeedVideos(
|
||||||
limit: Int! = 5
|
limit: Int! = 5
|
||||||
after: String = null
|
after: String = null
|
||||||
includeCallersVideos: Boolean = true
|
|
||||||
filters: VideoFilterInput = null
|
filters: VideoFilterInput = null
|
||||||
): VideoHistoryGQL!
|
): VideoHistoryGQL!
|
||||||
}
|
}
|
||||||
@@ -625,13 +624,6 @@ type UserPlayTimeGQL {
|
|||||||
totalSeconds: Float!
|
totalSeconds: Float!
|
||||||
}
|
}
|
||||||
|
|
||||||
input VideoFilterInput {
|
|
||||||
isStreamCompleted: Boolean = null
|
|
||||||
requireCursorCompletion: Boolean! = true
|
|
||||||
createdAt: DateRangeFilter = null
|
|
||||||
excludeVideosWithNoShots: Boolean = null
|
|
||||||
}
|
|
||||||
|
|
||||||
type VideoHistoryGQL {
|
type VideoHistoryGQL {
|
||||||
videos: [VideoGQL!]!
|
videos: [VideoGQL!]!
|
||||||
pageInfo: PageInfoGQL!
|
pageInfo: PageInfoGQL!
|
||||||
@@ -642,6 +634,11 @@ type PageInfoGQL {
|
|||||||
endCursor: String
|
endCursor: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input VideoFilterInput {
|
||||||
|
isStreamCompleted: Boolean = null
|
||||||
|
requireCursorCompletion: Boolean! = true
|
||||||
|
}
|
||||||
|
|
||||||
type TagGQL {
|
type TagGQL {
|
||||||
name: String!
|
name: String!
|
||||||
id: Int!
|
id: Int!
|
||||||
|
Reference in New Issue
Block a user