Add separate return to profile image #40

Merged
countablecloud merged 2 commits from mk/add-separate-return-to-image-upload-link into master 2024-08-19 15:58:16 -06:00
4 changed files with 78 additions and 45 deletions

View File

@ -1097,6 +1097,16 @@ export type FilterInput =
videoId: Array<Scalars["Int"]["input"]>; videoId: Array<Scalars["Int"]["input"]>;
}; };
export type GetProfileUploadLinkErrors = {
__typename?: "GetProfileUploadLinkErrors";
error: TooManyProfileImageUploadsErr;
};
export type GetProfileUploadLinkReturn = {
__typename?: "GetProfileUploadLinkReturn";
value: UploadLinkGetProfileUploadLinkErrors;
};
export type GetShotsPagination = { export type GetShotsPagination = {
createdAfter: CreatedAfter; createdAfter: CreatedAfter;
startFrameAfter: Scalars["Int"]["input"]; startFrameAfter: Scalars["Int"]["input"];
@ -1176,7 +1186,7 @@ export type Mutation = {
editProfileImageUri: UserGql; editProfileImageUri: UserGql;
editUploadStream: Scalars["Boolean"]["output"]; editUploadStream: Scalars["Boolean"]["output"];
getHlsInitUploadLink: GetUploadLinkReturn; getHlsInitUploadLink: GetUploadLinkReturn;
getProfileImageUploadLink: GetUploadLinkReturn; getProfileImageUploadLink: GetProfileUploadLinkReturn;
getUploadLink: GetUploadLinkReturn; getUploadLink: GetUploadLinkReturn;
setLoggerLevel: Scalars["Boolean"]["output"]; setLoggerLevel: Scalars["Boolean"]["output"];
setSegmentDuration: Scalars["Boolean"]["output"]; setSegmentDuration: Scalars["Boolean"]["output"];
@ -1452,6 +1462,10 @@ export type UploadLink = {
uploadUrl: Scalars["String"]["output"]; uploadUrl: Scalars["String"]["output"];
}; };
export type UploadLinkGetProfileUploadLinkErrors =
| GetProfileUploadLinkErrors
| UploadLink;
export type UploadLinkGetUploadLinkErrors = GetUploadLinkErrors | UploadLink; export type UploadLinkGetUploadLinkErrors = GetUploadLinkErrors | UploadLink;
export type UploadSegmentGql = { export type UploadSegmentGql = {
@ -1777,19 +1791,14 @@ export type GetProfileImageUploadLinkMutationVariables = Exact<{
export type GetProfileImageUploadLinkMutation = { export type GetProfileImageUploadLinkMutation = {
__typename?: "Mutation"; __typename?: "Mutation";
getProfileImageUploadLink: { getProfileImageUploadLink: {
__typename?: "GetUploadLinkReturn"; __typename?: "GetProfileUploadLinkReturn";
value: value:
| { | {
__typename?: "GetUploadLinkErrors"; __typename?: "GetProfileUploadLinkErrors";
error: error: {
| { __typename?: "MustHaveSetForUploadLinkErr" } __typename?: "TooManyProfileImageUploadsErr";
| { __typename?: "NoInitForChunkedUploadErr" } linksRequested: number;
| { __typename?: "ProcessingFailedErr" } };
| { __typename?: "SegmentAlreadyUploadedErr" }
| {
__typename?: "TooManyProfileImageUploadsErr";
linksRequested: number;
};
} }
| { | {
__typename?: "UploadLink"; __typename?: "UploadLink";
@ -2191,6 +2200,10 @@ export type GetUploadLinkMutation = {
value: string; value: string;
} | null>; } | null>;
}; };
stream?: {
__typename?: "UploadStreamGQL";
uploadCompletionCursor: number;
} | null;
}; };
}; };
@ -2842,7 +2855,7 @@ export const GetProfileImageUploadLinkDocument = gql`
value value
} }
} }
... on GetUploadLinkErrors { ... on GetProfileUploadLinkErrors {
error { error {
... on TooManyProfileImageUploadsErr { ... on TooManyProfileImageUploadsErr {
linksRequested linksRequested
@ -4140,6 +4153,9 @@ export const GetUploadLinkDocument = gql`
} }
} }
} }
stream {
uploadCompletionCursor
}
} }
} }
`; `;

View File

@ -8,7 +8,7 @@ mutation getProfileImageUploadLink($fileExt: String = ".png") {
value value
} }
} }
... on GetUploadLinkErrors { ... on GetProfileUploadLinkErrors {
error { error {
... on TooManyProfileImageUploadsErr { ... on TooManyProfileImageUploadsErr {
linksRequested linksRequested

View File

@ -34,6 +34,9 @@ mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
} }
} }
} }
stream {
uploadCompletionCursor
}
} }
} }

View File

@ -435,7 +435,9 @@ type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL! createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
setLoggerLevel(path: String!, level: String!): Boolean! setLoggerLevel(path: String!, level: String!): Boolean!
addAnnotationToShot(shotId: Int!, annotationName: String!): Boolean! addAnnotationToShot(shotId: Int!, annotationName: String!): Boolean!
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn! getProfileImageUploadLink(
fileExt: String = ".png"
): GetProfileUploadLinkReturn!
editProfileImageUri(profileImageUri: String!): UserGQL! editProfileImageUri(profileImageUri: String!): UserGQL!
createUploadStream( createUploadStream(
videoMetadata: VideoMetadataInput! videoMetadata: VideoMetadataInput!
@ -457,12 +459,13 @@ input CreateBucketSetInput {
buckets: [BucketInputGQL!]! buckets: [BucketInputGQL!]!
} }
type GetUploadLinkReturn { type GetProfileUploadLinkReturn {
value: UploadLinkGetUploadLinkErrors! value: UploadLinkGetProfileUploadLinkErrors!
stream: UploadStreamGQL
} }
union UploadLinkGetUploadLinkErrors = UploadLink | GetUploadLinkErrors union UploadLinkGetProfileUploadLinkErrors =
UploadLink
| GetProfileUploadLinkErrors
type UploadLink { type UploadLink {
uploadUrl: String! uploadUrl: String!
@ -474,32 +477,8 @@ type Header {
value: String! value: String!
} }
type GetUploadLinkErrors { type GetProfileUploadLinkErrors {
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr! error: TooManyProfileImageUploadsErr!
}
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr =
MustHaveSetForUploadLinkErr
| SegmentAlreadyUploadedErr
| ProcessingFailedErr
| NoInitForChunkedUploadErr
| TooManyProfileImageUploadsErr
type MustHaveSetForUploadLinkErr {
resolution: Boolean
framesPerSecond: Boolean
}
type SegmentAlreadyUploadedErr {
segmentId: Int!
}
type ProcessingFailedErr {
processing: VideoProcessingGQL!
}
type NoInitForChunkedUploadErr {
segmentType: StreamSegmentTypeEnum!
} }
type TooManyProfileImageUploadsErr { type TooManyProfileImageUploadsErr {
@ -546,3 +525,38 @@ input VideoResolution {
width: Int! width: Int!
height: Int! height: Int!
} }
type GetUploadLinkReturn {
value: UploadLinkGetUploadLinkErrors!
stream: UploadStreamGQL
}
union UploadLinkGetUploadLinkErrors = UploadLink | GetUploadLinkErrors
type GetUploadLinkErrors {
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr!
}
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr =
MustHaveSetForUploadLinkErr
| SegmentAlreadyUploadedErr
| ProcessingFailedErr
| NoInitForChunkedUploadErr
| TooManyProfileImageUploadsErr
type MustHaveSetForUploadLinkErr {
resolution: Boolean
framesPerSecond: Boolean
}
type SegmentAlreadyUploadedErr {
segmentId: Int!
}
type ProcessingFailedErr {
processing: VideoProcessingGQL!
}
type NoInitForChunkedUploadErr {
segmentType: StreamSegmentTypeEnum!
}