@frontapp/ui-bridge
Advanced tools
Comparing version 2.0.0-beta4 to 2.0.0-beta5
@@ -216,13 +216,8 @@ import { ApplicationCancelToken } from './asyncTypesV2'; | ||
* {@link listMessages} which returns messages with any attachments. | ||
* This will be returned in the format of a Blob which can be converted to a file by the following: | ||
* | ||
* new File([blob], "filename") | ||
* | ||
* Ref: https://www.w3.org/TR/FileAPI/#constructorParams | ||
* @param messageId Message id for the attachment. | ||
* @param attachmentId Attachment id to be fetched. | ||
* @param cancelToken Cancel the request. | ||
* @returns Blob holding the data of the attachment | ||
* @returns File holding the data of the attachment | ||
*/ | ||
downloadAttachment(messageId: ApplicationMessageId, attachmentId: ApplicationAttachmentId, cancelToken?: ApplicationCancelToken): Promise<Blob | undefined>; | ||
downloadAttachment(messageId: ApplicationMessageId, attachmentId: ApplicationAttachmentId, cancelToken?: ApplicationCancelToken): Promise<File | undefined>; | ||
} | ||
@@ -229,0 +224,0 @@ export interface MultiConversationsContext extends ExistingConversationBaseContext { |
@@ -49,2 +49,4 @@ import { ApplicationChannel } from './channelTypesV2'; | ||
content?: ApplicationDraftContent; | ||
/** Attachments to be added to draft */ | ||
attachments?: ReadonlyArray<File>; | ||
} | ||
@@ -56,3 +58,5 @@ export interface ApplicationDraftUpdate extends ApplicationDraftTemplateBase { | ||
content?: ApplicationDraftContent; | ||
/** Attachments for the draft */ | ||
attachments?: ReadonlyArray<File>; | ||
} | ||
export {}; |
{ | ||
"name": "@frontapp/ui-bridge", | ||
"version": "2.0.0-beta4", | ||
"version": "2.0.0-beta5", | ||
"description": "Helpers and TypeScript definitions for the Front SDK bridge", | ||
@@ -5,0 +5,0 @@ "author": { |
42342
939