-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v7.0.0-beta' into minor-fixes
- Loading branch information
Showing
37 changed files
with
2,239 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Interface of an attachment object from Nylas. | ||
*/ | ||
export interface Attachment { | ||
/** | ||
* A globally unique object identifier. | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* Attachment's name. | ||
*/ | ||
filename: string; | ||
|
||
/** | ||
* Attachment's content type. | ||
*/ | ||
contentType: string; | ||
|
||
/** | ||
* Grant ID of the Nylas account. | ||
*/ | ||
grantId: string; | ||
|
||
/** | ||
* If it's an inline attachment. | ||
*/ | ||
isInline: boolean; | ||
|
||
/** | ||
* Attachment's size in bytes. | ||
*/ | ||
size: number; | ||
} | ||
|
||
/** | ||
* Interface representing of the query parameters for finding an attachment's metadata. | ||
*/ | ||
export interface FindAttachmentQueryParams { | ||
/** | ||
* ID of the message the attachment belongs to. | ||
*/ | ||
messageId: string; | ||
} | ||
|
||
/** | ||
* Interface representing of the query parameters for downloading an attachment. | ||
*/ | ||
export type DownloadAttachmentQueryParams = FindAttachmentQueryParams; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.