@types/office-js 1.0.418 → 1.0.420
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- office-js/README.md +1 -1
- office-js/index.d.ts +56 -57
- office-js/package.json +2 -2
office-js/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for office-js (https://github.com/OfficeD
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 10 Sep 2024 19:07:18 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -8833,7 +8833,7 @@ declare namespace Office {
|
|
|
8833
8833
|
Removed = "removed"
|
|
8834
8834
|
}
|
|
8835
8835
|
/**
|
|
8836
|
-
* Specifies
|
|
8836
|
+
* Specifies the attachment's type.
|
|
8837
8837
|
*
|
|
8838
8838
|
* @remarks
|
|
8839
8839
|
*
|
|
@@ -10335,16 +10335,17 @@ declare namespace Office {
|
|
|
10335
10335
|
/**
|
|
10336
10336
|
* Gets the ID of the series that an instance belongs to.
|
|
10337
10337
|
*
|
|
10338
|
-
* In Outlook on the web
|
|
10339
|
-
*
|
|
10338
|
+
* In Outlook on the web, on Windows ({@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new} and classic), and on Mac,
|
|
10339
|
+
* the `seriesId` property returns the Exchange Web Services (EWS) ID of the parent (series) item that this item belongs to.
|
|
10340
|
+
* However, in Outlook on Android and on iOS, `seriesId` returns the REST ID of the parent item.
|
|
10340
10341
|
*
|
|
10341
10342
|
* **Note**: The identifier returned by the `seriesId` property is the same as the Exchange Web Services item identifier.
|
|
10342
|
-
* The `seriesId` property
|
|
10343
|
+
* The `seriesId` property isn't identical to the Outlook IDs used by the Outlook REST API.
|
|
10343
10344
|
* Before making REST API calls using this value, it should be converted using `Office.context.mailbox.convertToRestId`.
|
|
10344
10345
|
* For more details, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/use-rest-api | Use the Outlook REST APIs from an Outlook add-in}.
|
|
10345
10346
|
*
|
|
10346
|
-
* The `seriesId` property returns `null` for items that
|
|
10347
|
-
* and returns `undefined` for any other items that
|
|
10347
|
+
* The `seriesId` property returns `null` for items that don't have parent items such as single appointments, series items, or meeting requests
|
|
10348
|
+
* and returns `undefined` for any other items that aren't meeting requests.
|
|
10348
10349
|
*
|
|
10349
10350
|
* @remarks
|
|
10350
10351
|
* [Api set: Mailbox 1.7]
|
|
@@ -10430,8 +10431,7 @@ declare namespace Office {
|
|
|
10430
10431
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
10431
10432
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
10432
10433
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10433
|
-
* `isInline`: If true, indicates that the attachment will be shown inline in the message body
|
|
10434
|
-
* and should not be displayed in the attachment list.
|
|
10434
|
+
* `isInline`: If true, indicates that the attachment will be shown inline as an image in the message body and won't be displayed in the attachment list.
|
|
10435
10435
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10436
10436
|
* of type `Office.AsyncResult`.
|
|
10437
10437
|
* On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
|
@@ -10509,8 +10509,7 @@ declare namespace Office {
|
|
|
10509
10509
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
10510
10510
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
10511
10511
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10512
|
-
* `isInline`: If true, indicates that the attachment will be shown inline in the message body
|
|
10513
|
-
* and should not be displayed in the attachment list.
|
|
10512
|
+
* `isInline`: If true, indicates that the attachment will be shown inline as an image in the message body and won't be displayed in the attachment list.
|
|
10514
10513
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10515
10514
|
* of type `Office.AsyncResult`.
|
|
10516
10515
|
* On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
|
@@ -10674,7 +10673,7 @@ declare namespace Office {
|
|
|
10674
10673
|
* The behavior of the `close` method depends on the current state of the item being composed.
|
|
10675
10674
|
* If the item has unsaved changes, the client prompts the user to save, discard, or close the action.
|
|
10676
10675
|
*
|
|
10677
|
-
* In
|
|
10676
|
+
* In Outlook on Windows (classic) and on Mac, the `close` method has no effect on a reply in the Reading Pane.
|
|
10678
10677
|
*
|
|
10679
10678
|
* @remarks
|
|
10680
10679
|
* [Api set: Mailbox 1.3]
|
|
@@ -11001,12 +11000,12 @@ declare namespace Office {
|
|
|
11001
11000
|
/**
|
|
11002
11001
|
* Gets if the client signature is enabled.
|
|
11003
11002
|
*
|
|
11004
|
-
*
|
|
11003
|
+
* In Outlook on Windows (classic) and on Mac, returns `true` if the default signature for new messages, replies, or forwards is set
|
|
11005
11004
|
* to a template for the sending Outlook account.
|
|
11006
|
-
*
|
|
11007
|
-
*
|
|
11008
|
-
* If the settings are set to "(none)" in Windows (classic) or Mac
|
|
11009
|
-
*
|
|
11005
|
+
* In Outlook on the web and {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows},
|
|
11006
|
+
* returns `true` if the signature is enabled for compose types `newMail`, `reply`, or `forward`.
|
|
11007
|
+
* If the settings are set to "(none)" in Outlook on Windows (classic) or on Mac or disabled in Outlook on the web or new Outlook on Windows,
|
|
11008
|
+
* returns `false`.
|
|
11010
11009
|
*
|
|
11011
11010
|
* @remarks
|
|
11012
11011
|
* [Api set: Mailbox 1.10]
|
|
@@ -11024,12 +11023,12 @@ declare namespace Office {
|
|
|
11024
11023
|
/**
|
|
11025
11024
|
* Gets if the client signature is enabled.
|
|
11026
11025
|
*
|
|
11027
|
-
*
|
|
11026
|
+
* In Outlook on Windows (classic) and on Mac, returns `true` if the default signature for new messages, replies, or forwards is set
|
|
11028
11027
|
* to a template for the sending Outlook account.
|
|
11029
|
-
*
|
|
11030
|
-
*
|
|
11031
|
-
* If the settings are set to "(none)" in Windows (classic) or Mac
|
|
11032
|
-
*
|
|
11028
|
+
* In Outlook on the web and {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows},
|
|
11029
|
+
* returns `true` if the signature is enabled for compose types `newMail`, `reply`, or `forward`.
|
|
11030
|
+
* If the settings are set to "(none)" in Outlook on Windows (classic) or on Mac or disabled in Outlook on the web or new Outlook on Windows,
|
|
11031
|
+
* returns `false`.
|
|
11033
11032
|
*
|
|
11034
11033
|
* @remarks
|
|
11035
11034
|
* [Api set: Mailbox 1.10]
|
|
@@ -11751,8 +11750,9 @@ declare namespace Office {
|
|
|
11751
11750
|
/**
|
|
11752
11751
|
* Gets the ID of the series that an instance belongs to.
|
|
11753
11752
|
*
|
|
11754
|
-
* In Outlook on the web
|
|
11755
|
-
*
|
|
11753
|
+
* In Outlook on the web, on Windows ({@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new} and classic), and on Mac,
|
|
11754
|
+
* the `seriesId` returns the Exchange Web Services (EWS) ID of the parent (series) item that this item belongs to.
|
|
11755
|
+
* However, on iOS and Android, the seriesId returns the REST ID of the parent item.
|
|
11756
11756
|
*
|
|
11757
11757
|
* **Note**: The identifier returned by the `seriesId` property is the same as the Exchange Web Services item identifier.
|
|
11758
11758
|
* The `seriesId` property is not identical to the Outlook IDs used by the Outlook REST API. Before making REST API calls using this value, it
|
|
@@ -12461,7 +12461,7 @@ declare namespace Office {
|
|
|
12461
12461
|
/**
|
|
12462
12462
|
* Represents an attachment on an item. Compose mode only.
|
|
12463
12463
|
*
|
|
12464
|
-
* An array of `AttachmentDetailsCompose` objects is returned
|
|
12464
|
+
* An array of `AttachmentDetailsCompose` objects is returned by the `getAttachmentsAsync` method.
|
|
12465
12465
|
*
|
|
12466
12466
|
* @remarks
|
|
12467
12467
|
* [Api set: Mailbox 1.8]
|
|
@@ -12472,7 +12472,7 @@ declare namespace Office {
|
|
|
12472
12472
|
*/
|
|
12473
12473
|
interface AttachmentDetailsCompose {
|
|
12474
12474
|
/**
|
|
12475
|
-
* Gets a value that indicates the type
|
|
12475
|
+
* Gets a value that indicates the attachment's type.
|
|
12476
12476
|
*/
|
|
12477
12477
|
attachmentType: MailboxEnums.AttachmentType | string;
|
|
12478
12478
|
/**
|
|
@@ -12480,7 +12480,7 @@ declare namespace Office {
|
|
|
12480
12480
|
*/
|
|
12481
12481
|
id: string;
|
|
12482
12482
|
/**
|
|
12483
|
-
* Gets a value that indicates whether the attachment
|
|
12483
|
+
* Gets a value that indicates whether the attachment appears as an image in the body of the item instead of in the attachment list.
|
|
12484
12484
|
*/
|
|
12485
12485
|
isInline: boolean;
|
|
12486
12486
|
/**
|
|
@@ -12502,7 +12502,7 @@ declare namespace Office {
|
|
|
12502
12502
|
/**
|
|
12503
12503
|
* Represents an attachment on an item from the server. Read mode only.
|
|
12504
12504
|
*
|
|
12505
|
-
* An array of `AttachmentDetails` objects is returned as the attachments property of an appointment or message item.
|
|
12505
|
+
* An array of `AttachmentDetails` objects is returned as the `attachments` property of an appointment or message item.
|
|
12506
12506
|
*
|
|
12507
12507
|
* @remarks
|
|
12508
12508
|
* [Api set: Mailbox 1.1]
|
|
@@ -12513,7 +12513,7 @@ declare namespace Office {
|
|
|
12513
12513
|
*/
|
|
12514
12514
|
interface AttachmentDetails {
|
|
12515
12515
|
/**
|
|
12516
|
-
* Gets a value that indicates the type
|
|
12516
|
+
* Gets a value that indicates the attachment's type.
|
|
12517
12517
|
*/
|
|
12518
12518
|
attachmentType: MailboxEnums.AttachmentType | string;
|
|
12519
12519
|
/**
|
|
@@ -12532,7 +12532,7 @@ declare namespace Office {
|
|
|
12532
12532
|
*/
|
|
12533
12533
|
id: string;
|
|
12534
12534
|
/**
|
|
12535
|
-
* Gets a value that indicates whether the attachment
|
|
12535
|
+
* Gets a value that indicates whether the attachment appears as an image in the body of the item instead of in the attachment list.
|
|
12536
12536
|
*/
|
|
12537
12537
|
isInline: boolean;
|
|
12538
12538
|
/**
|
|
@@ -12548,7 +12548,7 @@ declare namespace Office {
|
|
|
12548
12548
|
size: number;
|
|
12549
12549
|
}
|
|
12550
12550
|
/**
|
|
12551
|
-
* Provides information about
|
|
12551
|
+
* Provides information about the attachment on a mail item that raised the
|
|
12552
12552
|
* `Office.EventType.AttachmentsChanged` event.
|
|
12553
12553
|
*
|
|
12554
12554
|
* @remarks
|
|
@@ -13768,8 +13768,8 @@ declare namespace Office {
|
|
|
13768
13768
|
*
|
|
13769
13769
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
|
|
13770
13770
|
*
|
|
13771
|
-
* **Important**: The `Outlook` value is returned for Outlook
|
|
13772
|
-
* {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows
|
|
13771
|
+
* **Important**: The `Outlook` value is returned for Outlook on Windows (classic) and on Mac. `newOutlookWindows` is returned for
|
|
13772
|
+
* {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows}.
|
|
13773
13773
|
*/
|
|
13774
13774
|
hostName: string;
|
|
13775
13775
|
/**
|
|
@@ -14711,8 +14711,8 @@ declare namespace Office {
|
|
|
14711
14711
|
* Contains the following members.
|
|
14712
14712
|
*
|
|
14713
14713
|
* - `hostName` (string): A string that represents the name of the Office application.
|
|
14714
|
-
* It should be one of the following values: `Outlook`, `OutlookWebApp`, `OutlookIOS`, or `OutlookAndroid`.
|
|
14715
|
-
* **Note**: The "Outlook" value is returned for Outlook on
|
|
14714
|
+
* It should be one of the following values: `Outlook`, `newOutlookWindows`, `OutlookWebApp`, `OutlookIOS`, or `OutlookAndroid`.
|
|
14715
|
+
* **Note**: The "Outlook" value is returned for Outlook on Windows (classic) and on Mac.
|
|
14716
14716
|
*
|
|
14717
14717
|
* - `hostVersion` (string): A string that represents the version of either the Office application or the Exchange Server (e.g., "15.0.468.0").
|
|
14718
14718
|
* If the mail add-in is running in Outlook on Windows (classic), on Mac, or on mobile devices, the `hostVersion` property returns the version of the
|
|
@@ -15132,7 +15132,7 @@ declare namespace Office {
|
|
|
15132
15132
|
* If you don't specify any attendees as input arguments, the method displays a form with a **Save** button.
|
|
15133
15133
|
* If you have specified attendees, the form would include the attendees and a **Send** button.
|
|
15134
15134
|
*
|
|
15135
|
-
* In
|
|
15135
|
+
* In Outlook on Windows (classic) and on Mac, if you specify any attendees or resources in the `requiredAttendees`, `optionalAttendees`, or
|
|
15136
15136
|
* `resources` parameter, this method displays a meeting form with a **Send** button.
|
|
15137
15137
|
* If you don't specify any recipients, this method displays an appointment form with a **Save & Close** button.
|
|
15138
15138
|
*
|
|
@@ -15162,7 +15162,7 @@ declare namespace Office {
|
|
|
15162
15162
|
* If you do not specify any attendees as input arguments, the method displays a form with a **Save** button.
|
|
15163
15163
|
* If you have specified attendees, the form would include the attendees and a **Send** button.
|
|
15164
15164
|
*
|
|
15165
|
-
* In
|
|
15165
|
+
* In Outlook on Windows (classic) and on Mac, if you specify any attendees or resources in the `requiredAttendees`, `optionalAttendees`, or
|
|
15166
15166
|
* `resources` parameter, this method displays a meeting form with a **Send** button.
|
|
15167
15167
|
* If you don't specify any recipients, this method displays an appointment form with a **Save & Close** button.
|
|
15168
15168
|
*
|
|
@@ -15195,7 +15195,7 @@ declare namespace Office {
|
|
|
15195
15195
|
* If you do not specify any attendees as input arguments, the method displays a form with a **Save** button.
|
|
15196
15196
|
* If you have specified attendees, the form would include the attendees and a **Send** button.
|
|
15197
15197
|
*
|
|
15198
|
-
* In
|
|
15198
|
+
* In Outlook on Windows (classic) and on Mac, if you specify any attendees or resources in the `requiredAttendees`, `optionalAttendees`, or
|
|
15199
15199
|
* `resources` parameter, this method displays a meeting form with a **Send** button.
|
|
15200
15200
|
* If you don't specify any recipients, this method displays an appointment form with a **Save & Close** button.
|
|
15201
15201
|
*
|
|
@@ -15247,18 +15247,18 @@ declare namespace Office {
|
|
|
15247
15247
|
*
|
|
15248
15248
|
* `attachments`: An array of JSON objects that are either file or item attachments.
|
|
15249
15249
|
*
|
|
15250
|
-
* `attachments.type`: Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
|
|
15250
|
+
* `attachments.type`: Indicates the type of attachment. Must be `file` for a file attachment or `item` for an item attachment.
|
|
15251
15251
|
*
|
|
15252
15252
|
* `attachments.name`: A string that contains the name of the attachment, up to 255 characters in length.
|
|
15253
15253
|
*
|
|
15254
|
-
* `attachments.url`: Only used if type is set to file
|
|
15254
|
+
* `attachments.url`: Only used if the attachment type is set to `file`. The URI of the location for the file. **Important**: This link must be
|
|
15255
15255
|
* publicly accessible, without need for authentication by Exchange Online servers. However, with on-premises Exchange, the link can
|
|
15256
15256
|
* be accessible on a private network as long as it doesn't need further authentication.
|
|
15257
15257
|
*
|
|
15258
|
-
* `attachments.isInline`: Only used if type is set to file
|
|
15259
|
-
* message body
|
|
15258
|
+
* `attachments.isInline`: Only used if the attachment type is set to `file`. If true, indicates that the attachment will be shown inline as an image
|
|
15259
|
+
* in the message body and won't be displayed in the attachment list.
|
|
15260
15260
|
*
|
|
15261
|
-
* `attachments.itemId`: Only used if type is set to item
|
|
15261
|
+
* `attachments.itemId`: Only used if the attachment type is set to `item`. The EWS item ID of the existing e-mail you want to attach to the new message.
|
|
15262
15262
|
* This is a string up to 100 characters.
|
|
15263
15263
|
*/
|
|
15264
15264
|
displayNewMessageForm(parameters: any): void;
|
|
@@ -15294,18 +15294,18 @@ declare namespace Office {
|
|
|
15294
15294
|
*
|
|
15295
15295
|
* `attachments`: An array of JSON objects that are either file or item attachments.
|
|
15296
15296
|
*
|
|
15297
|
-
* `attachments.type`: Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
|
|
15297
|
+
* `attachments.type`: Indicates the type of attachment. Must be `file` for a file attachment or `item` for an item attachment.
|
|
15298
15298
|
*
|
|
15299
15299
|
* `attachments.name`: A string that contains the name of the attachment, up to 255 characters in length.
|
|
15300
15300
|
*
|
|
15301
|
-
* `attachments.url`: Only used if type is set to file
|
|
15301
|
+
* `attachments.url`: Only used if the attachment type is set to `file`. The URI of the location for the file. **Important**: This link must be
|
|
15302
15302
|
* publicly accessible, without need for authentication by Exchange Online servers. However, with on-premises Exchange, the link can
|
|
15303
15303
|
* be accessible on a private network as long as it doesn't need further authentication.
|
|
15304
15304
|
*
|
|
15305
|
-
* `attachments.isInline`: Only used if type is set to file
|
|
15306
|
-
* message body
|
|
15305
|
+
* `attachments.isInline`: Only used if the attachment type is set to `file`. If true, indicates that the attachment will be shown inline as an image
|
|
15306
|
+
* in the message body and won't be displayed in the attachment list.
|
|
15307
15307
|
*
|
|
15308
|
-
* `attachments.itemId`: Only used if type is set to item
|
|
15308
|
+
* `attachments.itemId`: Only used if the attachment type is set to `item`. The EWS item ID of the existing e-mail you want to attach to the new message.
|
|
15309
15309
|
* This is a string up to 100 characters.
|
|
15310
15310
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
15311
15311
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
@@ -15345,18 +15345,18 @@ declare namespace Office {
|
|
|
15345
15345
|
*
|
|
15346
15346
|
* `attachments`: An array of JSON objects that are either file or item attachments.
|
|
15347
15347
|
*
|
|
15348
|
-
* `attachments.type`: Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
|
|
15348
|
+
* `attachments.type`: Indicates the type of attachment. Must be `file` for a file attachment or `item` for an item attachment.
|
|
15349
15349
|
*
|
|
15350
15350
|
* `attachments.name`: A string that contains the name of the attachment, up to 255 characters in length.
|
|
15351
15351
|
*
|
|
15352
|
-
* `attachments.url`: Only used if type is set to file
|
|
15352
|
+
* `attachments.url`: Only used if the attachment type is set to `file`. The URI of the location for the file. **Important**: This link must be
|
|
15353
15353
|
* publicly accessible, without need for authentication by Exchange Online servers. However, with on-premises Exchange, the link can
|
|
15354
15354
|
* be accessible on a private network as long as it doesn't need further authentication.
|
|
15355
15355
|
*
|
|
15356
|
-
* `attachments.isInline`: Only used if type is set to file
|
|
15357
|
-
* message body
|
|
15356
|
+
* `attachments.isInline`: Only used if the attachment type is set to `file`. If true, indicates that the attachment will be shown inline as an image
|
|
15357
|
+
* in the message body and won't be displayed in the attachment list.
|
|
15358
15358
|
*
|
|
15359
|
-
* `attachments.itemId`: Only used if type is set to item
|
|
15359
|
+
* `attachments.itemId`: Only used if the attachment type is set to `item`. The EWS item ID of the existing e-mail you want to attach to the new message.
|
|
15360
15360
|
* This is a string up to 100 characters.
|
|
15361
15361
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
15362
15362
|
* `asyncResult`, which is an `Office.AsyncResult` object.
|
|
@@ -16245,8 +16245,7 @@ declare namespace Office {
|
|
|
16245
16245
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
16246
16246
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
16247
16247
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
16248
|
-
* `isInline`: If true, indicates that the attachment will be shown inline in the message body
|
|
16249
|
-
* attachment list.
|
|
16248
|
+
* `isInline`: If true, indicates that the attachment will be shown inline as an image in the message body and won't be displayed in the attachment list.
|
|
16250
16249
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
16251
16250
|
* type `Office.AsyncResult`. On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
|
16252
16251
|
* If uploading the attachment fails, the `asyncResult` object will contain an `Error` object that provides a description of
|
|
@@ -16327,7 +16326,7 @@ declare namespace Office {
|
|
|
16327
16326
|
* @param attachmentName - The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters.
|
|
16328
16327
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
16329
16328
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
16330
|
-
* `isInline`: If true, indicates that the attachment will be shown inline in the message body and
|
|
16329
|
+
* `isInline`: If true, indicates that the attachment will be shown inline as an image in the message body and won't be displayed in the attachment list.
|
|
16331
16330
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter of
|
|
16332
16331
|
* type Office.AsyncResult. On success, the attachment identifier will be provided in the `asyncResult.value` property.
|
|
16333
16332
|
* If uploading the attachment fails, the `asyncResult` object will contain an `Error` object that provides a description of the error.
|
|
@@ -16490,7 +16489,7 @@ declare namespace Office {
|
|
|
16490
16489
|
* The behavior of the `close` method depends on the current state of the item being composed.
|
|
16491
16490
|
* If the item has unsaved changes, the client prompts the user to save, discard, or close the action.
|
|
16492
16491
|
*
|
|
16493
|
-
* In
|
|
16492
|
+
* In Outlook on Windows (classic) and on Mac, the `close` method has no effect on a reply in the Reading Pane.
|
|
16494
16493
|
*
|
|
16495
16494
|
* @remarks
|
|
16496
16495
|
* [Api set: Mailbox 1.3]
|
|
@@ -16511,7 +16510,7 @@ declare namespace Office {
|
|
|
16511
16510
|
*
|
|
16512
16511
|
* - Determine when a user cancels the save item dialog on a message being composed.
|
|
16513
16512
|
*
|
|
16514
|
-
* - Close a reply in the Reading Pane or an existing draft
|
|
16513
|
+
* - Close a reply in the Reading Pane or an existing draft.
|
|
16515
16514
|
*/
|
|
16516
16515
|
close(): void;
|
|
16517
16516
|
/**
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.420",
|
|
4
4
|
"description": "TypeScript definitions for office-js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "e8183854d0fcc340bbf9614b6657e7246b4cb8c40b294f81bf50c420901042a6",
|
|
49
49
|
"typeScriptVersion": "4.8"
|
|
50
50
|
}
|