|
|
|
@@ -2412,15 +2412,6 @@ export type SuccessfulAddAddShotAnnotationErrors =
|
|
|
|
|
| AddShotAnnotationErrors
|
|
|
|
|
| SuccessfulAdd;
|
|
|
|
|
|
|
|
|
|
export type SuccessfulUpdate = {
|
|
|
|
|
__typename?: "SuccessfulUpdate";
|
|
|
|
|
value: Scalars["Boolean"]["output"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type SuccessfulUpdateUpdateShotAnnotationErrors =
|
|
|
|
|
| SuccessfulUpdate
|
|
|
|
|
| UpdateShotAnnotationErrors;
|
|
|
|
|
|
|
|
|
|
export type TagGql = {
|
|
|
|
|
__typename?: "TagGQL";
|
|
|
|
|
group?: Maybe<Scalars["String"]["output"]>;
|
|
|
|
@@ -2463,14 +2454,10 @@ export type UpdateAnnotationInputGql = {
|
|
|
|
|
notes?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type UpdateShotAnnotationErrors = {
|
|
|
|
|
__typename?: "UpdateShotAnnotationErrors";
|
|
|
|
|
error?: Maybe<DoesNotOwnShotErr>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type UpdateShotAnnotationReturn = {
|
|
|
|
|
__typename?: "UpdateShotAnnotationReturn";
|
|
|
|
|
value: SuccessfulUpdateUpdateShotAnnotationErrors;
|
|
|
|
|
error?: Maybe<DoesNotOwnShotErr>;
|
|
|
|
|
shot?: Maybe<ShotGql>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type UploadLink = {
|
|
|
|
@@ -2783,17 +2770,27 @@ export type UpdateShotAnnotationsMutation = {
|
|
|
|
|
__typename?: "Mutation";
|
|
|
|
|
updateShotAnnotations: {
|
|
|
|
|
__typename?: "UpdateShotAnnotationReturn";
|
|
|
|
|
value:
|
|
|
|
|
| { __typename?: "SuccessfulUpdate"; value: boolean }
|
|
|
|
|
| {
|
|
|
|
|
__typename?: "UpdateShotAnnotationErrors";
|
|
|
|
|
shot?: {
|
|
|
|
|
__typename?: "ShotGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
annotations: Array<{
|
|
|
|
|
__typename?: "ShotAnnotationGQL";
|
|
|
|
|
shotId: number;
|
|
|
|
|
notes: string;
|
|
|
|
|
errorDefault: boolean;
|
|
|
|
|
type: {
|
|
|
|
|
__typename?: "ShotAnnotationTypeGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
name: string;
|
|
|
|
|
};
|
|
|
|
|
}>;
|
|
|
|
|
} | null;
|
|
|
|
|
error?: {
|
|
|
|
|
__typename?: "DoesNotOwnShotErr";
|
|
|
|
|
shotId: number;
|
|
|
|
|
msg?: string | null;
|
|
|
|
|
} | null;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetShotsWithVideoGqlQueryVariables = Exact<{
|
|
|
|
@@ -3134,6 +3131,23 @@ export type GetUsernamesQuery = {
|
|
|
|
|
getUsernames: Array<string>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetUsernamesAndFollowingQueryVariables = Exact<{
|
|
|
|
|
userId: Scalars["Int"]["input"];
|
|
|
|
|
matchString: Scalars["String"]["input"];
|
|
|
|
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetUsernamesAndFollowingQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
getUsernamesAndFollowing: {
|
|
|
|
|
__typename?: "UsernamesAndFollowingResponse";
|
|
|
|
|
followers: Array<number>;
|
|
|
|
|
following: Array<number>;
|
|
|
|
|
usernames: Array<string>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetUserTagsQueryVariables = Exact<{ [key: string]: never }>;
|
|
|
|
|
|
|
|
|
|
export type GetUserTagsQuery = {
|
|
|
|
@@ -4355,19 +4369,24 @@ export const UpdateShotAnnotationsDocument = gql`
|
|
|
|
|
$annotations: [UpdateAnnotationInputGQL!]!
|
|
|
|
|
) {
|
|
|
|
|
updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
|
|
|
|
|
value {
|
|
|
|
|
... on SuccessfulUpdate {
|
|
|
|
|
value
|
|
|
|
|
shot {
|
|
|
|
|
id
|
|
|
|
|
annotations {
|
|
|
|
|
shotId
|
|
|
|
|
type {
|
|
|
|
|
id
|
|
|
|
|
name
|
|
|
|
|
}
|
|
|
|
|
notes
|
|
|
|
|
errorDefault
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
... on UpdateShotAnnotationErrors {
|
|
|
|
|
error {
|
|
|
|
|
shotId
|
|
|
|
|
msg
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
export type UpdateShotAnnotationsMutationFn = Apollo.MutationFunction<
|
|
|
|
|
UpdateShotAnnotationsMutation,
|
|
|
|
@@ -5100,6 +5119,94 @@ export type GetUsernamesQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetUsernamesQuery,
|
|
|
|
|
GetUsernamesQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetUsernamesAndFollowingDocument = gql`
|
|
|
|
|
query getUsernamesAndFollowing(
|
|
|
|
|
$userId: Int!
|
|
|
|
|
$matchString: String!
|
|
|
|
|
$limit: Int = null
|
|
|
|
|
$after: String = null
|
|
|
|
|
) {
|
|
|
|
|
getUsernamesAndFollowing(
|
|
|
|
|
userId: $userId
|
|
|
|
|
matchString: $matchString
|
|
|
|
|
limit: $limit
|
|
|
|
|
after: $after
|
|
|
|
|
) {
|
|
|
|
|
followers
|
|
|
|
|
following
|
|
|
|
|
usernames
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useGetUsernamesAndFollowingQuery__
|
|
|
|
|
*
|
|
|
|
|
* To run a query within a React component, call `useGetUsernamesAndFollowingQuery` and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useGetUsernamesAndFollowingQuery` 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 } = useGetUsernamesAndFollowingQuery({
|
|
|
|
|
* variables: {
|
|
|
|
|
* userId: // value for 'userId'
|
|
|
|
|
* matchString: // value for 'matchString'
|
|
|
|
|
* limit: // value for 'limit'
|
|
|
|
|
* after: // value for 'after'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useGetUsernamesAndFollowingQuery(
|
|
|
|
|
baseOptions: Apollo.QueryHookOptions<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useQuery<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>(GetUsernamesAndFollowingDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetUsernamesAndFollowingLazyQuery(
|
|
|
|
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useLazyQuery<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>(GetUsernamesAndFollowingDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetUsernamesAndFollowingSuspenseQuery(
|
|
|
|
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useSuspenseQuery<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>(GetUsernamesAndFollowingDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type GetUsernamesAndFollowingQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetUsernamesAndFollowingQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetUsernamesAndFollowingLazyQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetUsernamesAndFollowingLazyQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetUsernamesAndFollowingSuspenseQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetUsernamesAndFollowingSuspenseQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetUsernamesAndFollowingQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetUserTagsDocument = gql`
|
|
|
|
|
query GetUserTags {
|
|
|
|
|
getUserTags {
|
|
|
|
|