You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
8878
8880
*/
8879
8881
enum AttachmentType {
8880
8882
/**
8881
-
* The attachment is a file.
8882
-
*/
8883
-
File = "file",
8884
-
/**
8885
-
* The attachment is an Exchange item.
8883
+
* The attachment is a Base64-encoded file.
8884
+
*
8885
+
* **Important**: The `base64` attachment type is only supported by the `displayReplyAllForm`, `displayReplyAllFormAsync`, `displayReplyForm`, and
8886
+
* `displayReplyFormAsync` methods.
8887
+
*
8888
+
* [Api set: Mailbox 1.15]
8886
8889
*/
8887
-
Item = "item",
8890
+
Base64 = "base64",
8888
8891
/**
8889
8892
* The attachment is stored in a cloud location, such as OneDrive.
8890
8893
*
8891
8894
* **Important**: In Read mode, the `id` property of the attachment's {@link Office.AttachmentDetails | details} object
8892
8895
* contains a URL to the file.
8893
8896
* From requirement set 1.8, the `url` property included in the attachment's {@link Office.AttachmentDetailsCompose | details} object
8894
8897
* contains a URL to the file in Compose mode.
8898
+
*
8899
+
* The `cloud` attachment type isn't supported by the `displayNewMessageForm`, `displayNewMessageFormAsync`, `displayReplyAllForm`, `displayReplyAllFormAsync`,
8900
+
* `displayReplyForm`, and `displayReplyFormAsync` methods.
* Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
22463
+
* Indicates the type of attachment.
22464
+
*
22465
+
* @remarks
22466
+
*
22467
+
* **Important**:
22468
+
*
22469
+
* - The `base64` attachment type was introduced in Mailbox requirement set 1.15. It's only supported by the `displayReplyAllForm`, `displayReplyAllFormAsync`, `displayReplyForm`, and
22470
+
* `displayReplyFormAsync` methods.
22471
+
*
22472
+
* - The `cloud` attachment type isn't supported by the `displayNewMessageForm`, `displayNewMessageFormAsync`, `displayReplyAllForm`, `displayReplyAllFormAsync`,
22473
+
* `displayReplyForm`, and `displayReplyFormAsync` methods.
22447
22474
*/
22448
-
type: string;
22475
+
type: MailboxEnums.AttachmentType;
22449
22476
/**
22450
22477
* A string that contains the name of the attachment, up to 255 characters in length.
22451
22478
*/
22452
22479
name: string;
22453
22480
/**
22454
-
* Only used if type is set to file. The URI of the location for the file.
22481
+
* The URI of the location for the file. Only use if `type` is set to `file`.
22455
22482
*
22456
-
* **Important**: This link must be publicly accessible, without need for authentication by Exchange Online servers. However, with
22483
+
* @remarks
22484
+
*
22485
+
* **Important**: This link must be publicly accessible without need for authentication by Exchange Online servers. However, with
22457
22486
* on-premises Exchange, the link can be accessible on a private network as long as it doesn't need further authentication.
22458
22487
*/
22459
22488
url?: string;
22460
22489
/**
22461
-
* Only used if type is set to file. If true, indicates that the attachment will be shown inline in the message body, and should not be
22462
-
* displayed in the attachment list.
22490
+
* If true, indicates that the attachment will be shown inline in the message body and shouldn't be displayed in the attachment list.
22491
+
* Only use if `type` is set to `file`.
22463
22492
*/
22464
22493
inLine?: boolean;
22465
22494
/**
22466
-
* Only used if type is set to item. The EWS item ID of the attachment. This is a string up to 100 characters.
22495
+
* The EWS item ID of the attachment. This is a string up to 100 characters. Only use if `type` is set to `item`.
22467
22496
*/
22468
22497
itemId?: string;
22498
+
/**
22499
+
* The Base64-encoded string of the file to be attached. Only use if `type` is set to `base64`.
22500
+
*
22501
+
* @remarks
22502
+
*
22503
+
* [Api set: Mailbox 1.15]
22504
+
*/
22505
+
base64File?: string;
22469
22506
}
22470
22507
/**
22471
22508
* A ReplyFormData object that contains body or attachment data and a callback function. Used when displaying a reply form.
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
8826
8828
*/
8827
8829
enum AttachmentType {
8828
8830
/**
8829
-
* The attachment is a file.
8830
-
*/
8831
-
File = "file",
8832
-
/**
8833
-
* The attachment is an Exchange item.
8831
+
* The attachment is a Base64-encoded file.
8832
+
*
8833
+
* **Important**: The `base64` attachment type is only supported by the `displayReplyAllForm`, `displayReplyAllFormAsync`, `displayReplyForm`, and
8834
+
* `displayReplyFormAsync` methods.
8835
+
*
8836
+
* [Api set: Mailbox 1.15]
8834
8837
*/
8835
-
Item = "item",
8838
+
Base64 = "base64",
8836
8839
/**
8837
8840
* The attachment is stored in a cloud location, such as OneDrive.
8838
8841
*
8839
8842
* **Important**: In Read mode, the `id` property of the attachment's {@link Office.AttachmentDetails | details} object
8840
8843
* contains a URL to the file.
8841
-
* From requirement set 1.8, the `url` property included in the attachment's
* From requirement set 1.8, the `url` property included in the attachment's {@link Office.AttachmentDetailsCompose | details} object
8843
8845
* contains a URL to the file in Compose mode.
8846
+
*
8847
+
* The `cloud` attachment type isn't supported by the `displayNewMessageForm`, `displayNewMessageFormAsync`, `displayReplyAllForm`, `displayReplyAllFormAsync`,
8848
+
* `displayReplyForm`, and `displayReplyFormAsync` methods.
* Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
20068
+
* Indicates the type of attachment.
20069
+
*
20070
+
* @remarks
20071
+
*
20072
+
* **Important**:
20073
+
*
20074
+
* - The `base64` attachment type was introduced in Mailbox requirement set 1.15. It's only supported by the `displayReplyAllForm`, `displayReplyAllFormAsync`, `displayReplyForm`, and
20075
+
* `displayReplyFormAsync` methods.
20076
+
*
20077
+
* - The `cloud` attachment type isn't supported by the `displayNewMessageForm`, `displayNewMessageFormAsync`, `displayReplyAllForm`, `displayReplyAllFormAsync`,
20078
+
* `displayReplyForm`, and `displayReplyFormAsync` methods.
20053
20079
*/
20054
-
type: string;
20080
+
type: MailboxEnums.AttachmentType;
20055
20081
/**
20056
20082
* A string that contains the name of the attachment, up to 255 characters in length.
20057
20083
*/
20058
20084
name: string;
20059
20085
/**
20060
-
* Only used if type is set to file. The URI of the location for the file.
20086
+
* The URI of the location for the file. Only use if `type` is set to `file`.
20061
20087
*
20062
-
* **Important**: This link must be publicly accessible, without need for authentication by Exchange Online servers. However, with
20088
+
* **Important**: This link must be publicly accessible without need for authentication by Exchange Online servers. However, with
20063
20089
* on-premises Exchange, the link can be accessible on a private network as long as it doesn't need further authentication.
20064
20090
*/
20065
20091
url?: string;
20066
20092
/**
20067
-
* Only used if type is set to file. If true, indicates that the attachment will be shown inline in the message body, and should not be
20068
-
* displayed in the attachment list.
20093
+
* If true, indicates that the attachment will be shown inline in the message body and shouldn't be displayed in the attachment list.
20094
+
* Only use if `type` is set to `file`.
20069
20095
*/
20070
20096
inLine?: boolean;
20071
20097
/**
20072
-
* Only used if type is set to item. The EWS item ID of the attachment. This is a string up to 100 characters.
20098
+
* The EWS item ID of the attachment. This is a string up to 100 characters. Only use if `type` is set to `item`.
20073
20099
*/
20074
20100
itemId?: string;
20101
+
/**
20102
+
* The Base64-encoded string of the file to be attached. Only use if `type` is set to `base64`.
20103
+
*
20104
+
* @remarks
20105
+
*
20106
+
* [Api set: Mailbox 1.15]
20107
+
*/
20108
+
base64File?: string;
20075
20109
}
20076
20110
/**
20077
20111
* A ReplyFormData object that contains body or attachment data and a callback function. Used when displaying a reply form.
0 commit comments