Signal attachment updates
This commit is contained in:
parent
8c6e954fdf
commit
31faf22fd5
3 changed files with 128 additions and 38 deletions
|
|
@ -89,7 +89,7 @@ export class AttachmentsApi extends runtime.BaseAPI {
|
|||
async v1AttachmentsAttachmentGetRaw(
|
||||
requestParameters: V1AttachmentsAttachmentGetRequest,
|
||||
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||
): Promise<runtime.ApiResponse<string>> {
|
||||
): Promise<runtime.ApiResponse<Blob>> {
|
||||
if (requestParameters["attachment"] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
"attachment",
|
||||
|
|
@ -114,11 +114,7 @@ export class AttachmentsApi extends runtime.BaseAPI {
|
|||
initOverrides,
|
||||
);
|
||||
|
||||
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||
return new runtime.JSONApiResponse<string>(response);
|
||||
} else {
|
||||
return new runtime.TextApiResponse(response) as any;
|
||||
}
|
||||
return new runtime.BlobApiResponse(response) as any;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -128,7 +124,7 @@ export class AttachmentsApi extends runtime.BaseAPI {
|
|||
async v1AttachmentsAttachmentGet(
|
||||
requestParameters: V1AttachmentsAttachmentGetRequest,
|
||||
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||
): Promise<string> {
|
||||
): Promise<Blob> {
|
||||
const response = await this.v1AttachmentsAttachmentGetRaw(
|
||||
requestParameters,
|
||||
initOverrides,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue