update getUploadLink call with headers'

This commit is contained in:
Loewy 2024-03-04 17:20:11 -08:00
parent 32ec7a2339
commit b051809869
2 changed files with 17 additions and 1 deletions

View File

@ -516,7 +516,15 @@ export type GetUploadLinkMutationVariables = Exact<{
export type GetUploadLinkMutation = { export type GetUploadLinkMutation = {
__typename?: "Mutation"; __typename?: "Mutation";
getUploadLink: { __typename?: "GetUploadLinkReturn"; uploadUrl: string }; getUploadLink: {
__typename?: "GetUploadLinkReturn";
uploadUrl: string;
headers: Array<{
__typename?: "Header";
key: string;
value: string;
} | null>;
};
}; };
export type TerminateUploadStreamMutationVariables = Exact<{ export type TerminateUploadStreamMutationVariables = Exact<{
@ -906,6 +914,10 @@ export const GetUploadLinkDocument = gql`
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) { mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) { getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
uploadUrl uploadUrl
headers {
key
value
}
} }
} }
`; `;

View File

@ -31,6 +31,10 @@ mutation CreateUploadStream(
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) { mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) { getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
uploadUrl uploadUrl
headers {
key
value
}
} }
} }