Compare commits
3 Commits
b4fd4c92a6
...
a78f9e7b9d
Author | SHA1 | Date | |
---|---|---|---|
a78f9e7b9d | |||
f98c98ecdd | |||
3f6314aab7 |
@ -2169,6 +2169,7 @@ export type Query = {
|
|||||||
getUserTags: Array<TagGql>;
|
getUserTags: Array<TagGql>;
|
||||||
getUserVideos: VideoHistoryGql;
|
getUserVideos: VideoHistoryGql;
|
||||||
getUsernames: Array<Scalars["String"]["output"]>;
|
getUsernames: Array<Scalars["String"]["output"]>;
|
||||||
|
getUsernamesAndFollowing: UsernamesAndFollowingResponse;
|
||||||
getVideo: VideoGql;
|
getVideo: VideoGql;
|
||||||
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
|
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
|
||||||
getVideos: Array<VideoGql>;
|
getVideos: Array<VideoGql>;
|
||||||
@ -2238,6 +2239,13 @@ export type QueryGetUsernamesArgs = {
|
|||||||
matchString?: InputMaybe<Scalars["String"]["input"]>;
|
matchString?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QueryGetUsernamesAndFollowingArgs = {
|
||||||
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
matchString?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
userId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type QueryGetVideoArgs = {
|
export type QueryGetVideoArgs = {
|
||||||
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
|
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
@ -2404,15 +2412,6 @@ export type SuccessfulAddAddShotAnnotationErrors =
|
|||||||
| AddShotAnnotationErrors
|
| AddShotAnnotationErrors
|
||||||
| SuccessfulAdd;
|
| SuccessfulAdd;
|
||||||
|
|
||||||
export type SuccessfulUpdate = {
|
|
||||||
__typename?: "SuccessfulUpdate";
|
|
||||||
value: Scalars["Boolean"]["output"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type SuccessfulUpdateUpdateShotAnnotationErrors =
|
|
||||||
| SuccessfulUpdate
|
|
||||||
| UpdateShotAnnotationErrors;
|
|
||||||
|
|
||||||
export type TagGql = {
|
export type TagGql = {
|
||||||
__typename?: "TagGQL";
|
__typename?: "TagGQL";
|
||||||
group?: Maybe<Scalars["String"]["output"]>;
|
group?: Maybe<Scalars["String"]["output"]>;
|
||||||
@ -2455,14 +2454,10 @@ export type UpdateAnnotationInputGql = {
|
|||||||
notes?: InputMaybe<Scalars["String"]["input"]>;
|
notes?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UpdateShotAnnotationErrors = {
|
|
||||||
__typename?: "UpdateShotAnnotationErrors";
|
|
||||||
error?: Maybe<DoesNotOwnShotErr>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type UpdateShotAnnotationReturn = {
|
export type UpdateShotAnnotationReturn = {
|
||||||
__typename?: "UpdateShotAnnotationReturn";
|
__typename?: "UpdateShotAnnotationReturn";
|
||||||
value: SuccessfulUpdateUpdateShotAnnotationErrors;
|
error?: Maybe<DoesNotOwnShotErr>;
|
||||||
|
shot?: Maybe<ShotGql>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UploadLink = {
|
export type UploadLink = {
|
||||||
@ -2528,6 +2523,13 @@ export type UserPlayTimeGql = {
|
|||||||
totalSeconds: Scalars["Float"]["output"];
|
totalSeconds: Scalars["Float"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type UsernamesAndFollowingResponse = {
|
||||||
|
__typename?: "UsernamesAndFollowingResponse";
|
||||||
|
followers: Array<Scalars["Int"]["output"]>;
|
||||||
|
following: Array<Scalars["Int"]["output"]>;
|
||||||
|
usernames: Array<Scalars["String"]["output"]>;
|
||||||
|
};
|
||||||
|
|
||||||
export type VideoFilterInput = {
|
export type VideoFilterInput = {
|
||||||
isStreamCompleted?: InputMaybe<Scalars["Boolean"]["input"]>;
|
isStreamCompleted?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
requireCursorCompletion?: Scalars["Boolean"]["input"];
|
requireCursorCompletion?: Scalars["Boolean"]["input"];
|
||||||
@ -2768,17 +2770,27 @@ export type UpdateShotAnnotationsMutation = {
|
|||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
updateShotAnnotations: {
|
updateShotAnnotations: {
|
||||||
__typename?: "UpdateShotAnnotationReturn";
|
__typename?: "UpdateShotAnnotationReturn";
|
||||||
value:
|
shot?: {
|
||||||
| { __typename?: "SuccessfulUpdate"; value: boolean }
|
__typename?: "ShotGQL";
|
||||||
| {
|
id: number;
|
||||||
__typename?: "UpdateShotAnnotationErrors";
|
annotations: Array<{
|
||||||
|
__typename?: "ShotAnnotationGQL";
|
||||||
|
shotId: number;
|
||||||
|
notes: string;
|
||||||
|
errorDefault: boolean;
|
||||||
|
type: {
|
||||||
|
__typename?: "ShotAnnotationTypeGQL";
|
||||||
|
id: number;
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
}>;
|
||||||
|
} | null;
|
||||||
error?: {
|
error?: {
|
||||||
__typename?: "DoesNotOwnShotErr";
|
__typename?: "DoesNotOwnShotErr";
|
||||||
shotId: number;
|
shotId: number;
|
||||||
msg?: string | null;
|
msg?: string | null;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetShotsWithVideoGqlQueryVariables = Exact<{
|
export type GetShotsWithVideoGqlQueryVariables = Exact<{
|
||||||
@ -4340,19 +4352,24 @@ export const UpdateShotAnnotationsDocument = gql`
|
|||||||
$annotations: [UpdateAnnotationInputGQL!]!
|
$annotations: [UpdateAnnotationInputGQL!]!
|
||||||
) {
|
) {
|
||||||
updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
|
updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
|
||||||
value {
|
shot {
|
||||||
... on SuccessfulUpdate {
|
id
|
||||||
value
|
annotations {
|
||||||
|
shotId
|
||||||
|
type {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
|
notes
|
||||||
|
errorDefault
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on UpdateShotAnnotationErrors {
|
|
||||||
error {
|
error {
|
||||||
shotId
|
shotId
|
||||||
msg
|
msg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
`;
|
||||||
export type UpdateShotAnnotationsMutationFn = Apollo.MutationFunction<
|
export type UpdateShotAnnotationsMutationFn = Apollo.MutationFunction<
|
||||||
UpdateShotAnnotationsMutation,
|
UpdateShotAnnotationsMutation,
|
||||||
|
@ -22,18 +22,23 @@ mutation UpdateShotAnnotations(
|
|||||||
$annotations: [UpdateAnnotationInputGQL!]!
|
$annotations: [UpdateAnnotationInputGQL!]!
|
||||||
) {
|
) {
|
||||||
updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
|
updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
|
||||||
value {
|
shot {
|
||||||
... on SuccessfulUpdate {
|
id
|
||||||
value
|
annotations {
|
||||||
|
shotId
|
||||||
|
type {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
|
notes
|
||||||
|
errorDefault
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on UpdateShotAnnotationErrors {
|
|
||||||
error {
|
error {
|
||||||
shotId
|
shotId
|
||||||
msg
|
msg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
|
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
|
||||||
|
@ -35,6 +35,12 @@ type Query {
|
|||||||
limit: Int = null
|
limit: Int = null
|
||||||
after: String = null
|
after: String = null
|
||||||
): [String!]!
|
): [String!]!
|
||||||
|
getUsernamesAndFollowing(
|
||||||
|
userId: Int!
|
||||||
|
matchString: String = null
|
||||||
|
limit: Int = 100
|
||||||
|
after: String = null
|
||||||
|
): UsernamesAndFollowingResponse!
|
||||||
getPlayTime(userId: Int!): UserPlayTimeGQL!
|
getPlayTime(userId: Int!): UserPlayTimeGQL!
|
||||||
getUserVideos(
|
getUserVideos(
|
||||||
userId: Int = null
|
userId: Int = null
|
||||||
@ -548,6 +554,12 @@ input CreatedAfter @oneOf {
|
|||||||
createdAt: DateTime
|
createdAt: DateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type UsernamesAndFollowingResponse {
|
||||||
|
usernames: [String!]!
|
||||||
|
following: [Int!]!
|
||||||
|
followers: [Int!]!
|
||||||
|
}
|
||||||
|
|
||||||
type UserPlayTimeGQL {
|
type UserPlayTimeGQL {
|
||||||
totalSeconds: Float!
|
totalSeconds: Float!
|
||||||
}
|
}
|
||||||
@ -650,18 +662,7 @@ type OtherErrorNeedsNote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UpdateShotAnnotationReturn {
|
type UpdateShotAnnotationReturn {
|
||||||
value: SuccessfulUpdateUpdateShotAnnotationErrors!
|
shot: ShotGQL
|
||||||
}
|
|
||||||
|
|
||||||
union SuccessfulUpdateUpdateShotAnnotationErrors =
|
|
||||||
SuccessfulUpdate
|
|
||||||
| UpdateShotAnnotationErrors
|
|
||||||
|
|
||||||
type SuccessfulUpdate {
|
|
||||||
value: Boolean!
|
|
||||||
}
|
|
||||||
|
|
||||||
type UpdateShotAnnotationErrors {
|
|
||||||
error: DoesNotOwnShotErr
|
error: DoesNotOwnShotErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user