Skip to content

Commit 8631bd2

Browse files
lucasfcostagabrielmfern
authored andcommitted
feat: avoid downloading attachments ourselves (#685)
1 parent a3baafe commit 8631bd2

File tree

4 files changed

+39
-249
lines changed

4 files changed

+39
-249
lines changed

src/attachments/receiving/interfaces/attachment.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
export interface InboundAttachment {
2-
id: string;
3-
filename?: string;
4-
content_type: string;
5-
content_disposition: 'inline' | 'attachment';
6-
content_id?: string;
7-
content: string; // base64
8-
}
9-
10-
export interface ApiInboundAttachment {
112
id: string;
123
filename?: string;
134
content_type: string;

src/attachments/receiving/interfaces/get-attachment.interface.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
import type { ErrorResponse } from '../../../interfaces';
2-
import type { ApiInboundAttachment, InboundAttachment } from './attachment';
2+
import type { InboundAttachment } from './attachment';
33

44
export interface GetAttachmentOptions {
55
emailId: string;
66
id: string;
77
}
88

9-
export interface GetAttachmentApiResponse {
10-
object: 'attachment';
11-
data: ApiInboundAttachment;
12-
}
13-
149
export interface GetAttachmentResponseSuccess {
1510
object: 'attachment';
1611
data: InboundAttachment;

0 commit comments

Comments
 (0)