@types/office-js 1.0.338 → 1.0.340
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 +82 -77
- 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: Fri, 25 Aug 2023 17:33:47 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js/index.d.ts
CHANGED
|
@@ -10649,76 +10649,77 @@ declare namespace Office {
|
|
|
10649
10649
|
/**
|
|
10650
10650
|
* Asynchronously saves an item.
|
|
10651
10651
|
*
|
|
10652
|
-
*
|
|
10653
|
-
*
|
|
10654
|
-
*
|
|
10652
|
+
* Since appointments have no draft state, if `saveAsync` is called on an appointment in compose mode, the item is saved as a normal
|
|
10653
|
+
* appointment on the user's calendar. For new appointments that haven't been saved before, no invitation is sent.
|
|
10654
|
+
* For existing appointments, an update is sent to added or removed attendees.
|
|
10655
10655
|
*
|
|
10656
|
-
*
|
|
10657
|
-
*
|
|
10658
|
-
*
|
|
10656
|
+
* @remarks
|
|
10657
|
+
* [Api set: Mailbox 1.3]
|
|
10658
|
+
*
|
|
10659
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
10660
|
+
*
|
|
10661
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10662
|
+
*
|
|
10663
|
+
* **Important**:
|
|
10659
10664
|
*
|
|
10660
|
-
*
|
|
10665
|
+
* - In Outlook on the web or Outlook in online mode, the item is saved to the server. In Outlook in cached mode, the item is saved to the local cache.
|
|
10666
|
+
*
|
|
10667
|
+
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10661
10668
|
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
10662
10669
|
*
|
|
10663
|
-
*
|
|
10664
|
-
*
|
|
10670
|
+
* - If your add-in calls `saveAsync` on an item in compose mode in order to get an item ID to use with EWS or the REST API, be aware that
|
|
10671
|
+
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
10665
10672
|
* Until the item is synced, using the item ID will return an error.
|
|
10666
10673
|
*
|
|
10667
|
-
*
|
|
10674
|
+
* - In Outlook on Mac, only Build 16.35.308 or later supports saving a meeting.
|
|
10668
10675
|
* Otherwise, the `saveAsync` method fails when called from a meeting in compose mode.
|
|
10669
10676
|
* For a workaround, see {@link https://learn.microsoft.com/outlook/troubleshoot/calendars/cannot-save-meeting-as-draft-in-outlook-for-mac | Cannot save a meeting as a draft in Outlook for Mac by using Office JS API}.
|
|
10670
10677
|
*
|
|
10671
|
-
* @remarks
|
|
10672
|
-
* [Api set: Mailbox 1.3]
|
|
10673
|
-
*
|
|
10674
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
10675
|
-
*
|
|
10676
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10677
|
-
*
|
|
10678
10678
|
* **Errors**:
|
|
10679
10679
|
*
|
|
10680
10680
|
* - `InvalidAttachmentId`: The attachment identifier does not exist.
|
|
10681
10681
|
*
|
|
10682
10682
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
10683
10683
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10684
|
-
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10685
|
-
*
|
|
10684
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
10685
|
+
* which is an `Office.AsyncResult` object. The appointment ID is returned in the `asyncResult.value` property.
|
|
10686
10686
|
*/
|
|
10687
10687
|
saveAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10688
10688
|
/**
|
|
10689
10689
|
* Asynchronously saves an item.
|
|
10690
10690
|
*
|
|
10691
|
-
*
|
|
10692
|
-
*
|
|
10691
|
+
* Since appointments have no draft state, if `saveAsync` is called on an appointment in compose mode, the item is saved as a normal
|
|
10692
|
+
* appointment on the user's calendar. For new appointments that haven't been saved before, no invitation is sent.
|
|
10693
|
+
* For existing appointments, an update is sent to added or removed attendees.
|
|
10694
|
+
*
|
|
10695
|
+
* @remarks
|
|
10696
|
+
* [Api set: Mailbox 1.3]
|
|
10697
|
+
*
|
|
10698
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
10699
|
+
*
|
|
10700
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10701
|
+
*
|
|
10702
|
+
* **Important**:
|
|
10693
10703
|
*
|
|
10694
|
-
*
|
|
10695
|
-
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
10696
|
-
* Saving an existing appointment will send an update to added or removed attendees.
|
|
10704
|
+
* - In Outlook on the web or Outlook in online mode, the item is saved to the server. In Outlook in cached mode, the item is saved to the local cache.
|
|
10697
10705
|
*
|
|
10698
|
-
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10706
|
+
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10699
10707
|
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
10700
10708
|
*
|
|
10701
|
-
*
|
|
10709
|
+
* - If your add-in calls `saveAsync` on an item in compose mode in order to get an item ID to use with EWS or the REST API, be aware that
|
|
10702
10710
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
10703
10711
|
* Until the item is synced, using the item ID will return an error.
|
|
10704
10712
|
*
|
|
10705
|
-
*
|
|
10713
|
+
* - In Outlook on Mac, only Build 16.35.308 or later supports saving a meeting.
|
|
10706
10714
|
* Otherwise, the `saveAsync` method fails when called from a meeting in compose mode.
|
|
10707
10715
|
* For a workaround, see {@link https://learn.microsoft.com/outlook/troubleshoot/calendars/cannot-save-meeting-as-draft-in-outlook-for-mac | Cannot save a meeting as a draft in Outlook for Mac by using Office JS API}.
|
|
10708
10716
|
*
|
|
10709
|
-
* @remarks
|
|
10710
|
-
* [Api set: Mailbox 1.3]
|
|
10711
|
-
*
|
|
10712
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
10713
|
-
*
|
|
10714
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10715
|
-
*
|
|
10716
10717
|
* **Errors**:
|
|
10717
10718
|
*
|
|
10718
10719
|
* - `InvalidAttachmentId`: The attachment identifier does not exist.
|
|
10719
10720
|
*
|
|
10720
|
-
* @param callback - When the method completes, the function passed in the callback parameter is called with a single parameter
|
|
10721
|
-
*
|
|
10721
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
10722
|
+
* which is an `Office.AsyncResult` object. The appointment ID is returned in the `asyncResult.value` property.
|
|
10722
10723
|
*/
|
|
10723
10724
|
saveAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10724
10725
|
/**
|
|
@@ -16145,22 +16146,7 @@ declare namespace Office {
|
|
|
16145
16146
|
*/
|
|
16146
16147
|
removeHandlerAsync(eventType: Office.EventType | string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
16147
16148
|
/**
|
|
16148
|
-
* Asynchronously saves
|
|
16149
|
-
*
|
|
16150
|
-
* When invoked, this method saves the current message as a draft and returns the item ID via the callback function.
|
|
16151
|
-
* In Outlook on the web or Outlook in online mode, the item is saved to the server.
|
|
16152
|
-
* In Outlook in cached mode, the item is saved to the local cache.
|
|
16153
|
-
*
|
|
16154
|
-
* Since appointments have no draft state, if `saveAsync` is called on an appointment in compose mode, the item will be saved as a normal
|
|
16155
|
-
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
16156
|
-
* Saving an existing appointment will send an update to added or removed attendees.
|
|
16157
|
-
*
|
|
16158
|
-
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
16159
|
-
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
16160
|
-
*
|
|
16161
|
-
* **Note**: If your add-in calls `saveAsync` on an item in compose mode in order to get an item ID to use with EWS or the REST API, be aware
|
|
16162
|
-
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
16163
|
-
* Until the item is synced, using the itemId will return an error.
|
|
16149
|
+
* Asynchronously saves the current message as a draft.
|
|
16164
16150
|
*
|
|
16165
16151
|
* @remarks
|
|
16166
16152
|
* [Api set: Mailbox 1.3]
|
|
@@ -16169,33 +16155,35 @@ declare namespace Office {
|
|
|
16169
16155
|
*
|
|
16170
16156
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
16171
16157
|
*
|
|
16158
|
+
* **Important**:
|
|
16159
|
+
*
|
|
16160
|
+
* - In Outlook on the web or Outlook in online mode, the item is saved to the server. In Outlook in cached mode, the item is saved to the local cache.
|
|
16161
|
+
*
|
|
16162
|
+
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
16163
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
16164
|
+
*
|
|
16165
|
+
* - If your add-in calls `saveAsync` on an item in compose mode in order to get an item ID to use with EWS or the REST API, be aware that
|
|
16166
|
+
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
16167
|
+
* Until the item is synced, using the item ID will return an error.
|
|
16168
|
+
*
|
|
16169
|
+
* - In Outlook on the web, the mailbox account to which a draft is saved varies when `saveAsync` is called on a message that will be sent
|
|
16170
|
+
* from a shared mailbox account. If the sender creates a new message from their personal mailbox and selects the shared mailbox account
|
|
16171
|
+
* in the **From** field, `saveAsync` saves the draft to the **Drafts** folder of the user's personal mailbox. If the sender opens the
|
|
16172
|
+
* shared mailbox account in a separate browser tab (through the **Open another mailbox** option, for example) and creates a new message
|
|
16173
|
+
* there, `saveAsync` saves the draft to the **Drafts** folder of the shared mailbox.
|
|
16174
|
+
*
|
|
16172
16175
|
* **Errors**:
|
|
16173
16176
|
*
|
|
16174
16177
|
* - `InvalidAttachmentId`: The attachment identifier does not exist.
|
|
16175
16178
|
*
|
|
16176
16179
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
16177
16180
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
16178
|
-
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
16179
|
-
*
|
|
16181
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
16182
|
+
* which is an `Office.AsyncResult` object. The message ID is returned in the `asyncResult.value` property.
|
|
16180
16183
|
*/
|
|
16181
16184
|
saveAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16182
16185
|
/**
|
|
16183
|
-
* Asynchronously saves
|
|
16184
|
-
*
|
|
16185
|
-
* When invoked, this method saves the current message as a draft and returns the item ID via the callback function.
|
|
16186
|
-
* In Outlook on the web or Outlook in online mode, the item is saved to the server.
|
|
16187
|
-
* In Outlook in cached mode, the item is saved to the local cache.
|
|
16188
|
-
*
|
|
16189
|
-
* Since appointments have no draft state, if `saveAsync` is called on an appointment in compose mode, the item will be saved as a normal
|
|
16190
|
-
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
16191
|
-
* Saving an existing appointment will send an update to added or removed attendees.
|
|
16192
|
-
*
|
|
16193
|
-
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
16194
|
-
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
16195
|
-
*
|
|
16196
|
-
* **Note**: If your add-in calls `saveAsync` on an item in compose mode in order to get an item ID to use with EWS or the REST API, be aware
|
|
16197
|
-
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
16198
|
-
* Until the item is synced, using the `itemId` will return an error.
|
|
16186
|
+
* Asynchronously saves the current message as a draft.
|
|
16199
16187
|
*
|
|
16200
16188
|
* @remarks
|
|
16201
16189
|
* [Api set: Mailbox 1.3]
|
|
@@ -16204,12 +16192,29 @@ declare namespace Office {
|
|
|
16204
16192
|
*
|
|
16205
16193
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
16206
16194
|
*
|
|
16195
|
+
* **Important**:
|
|
16196
|
+
*
|
|
16197
|
+
* - In Outlook on the web or Outlook in online mode, the item is saved to the server. In Outlook in cached mode, the item is saved to the local cache.
|
|
16198
|
+
*
|
|
16199
|
+
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
16200
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
16201
|
+
*
|
|
16202
|
+
* - If your add-in calls `saveAsync` on an item in compose mode in order to get an item ID to use with EWS or the REST API, be aware that
|
|
16203
|
+
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
16204
|
+
* Until the item is synced, using the item ID will return an error.
|
|
16205
|
+
*
|
|
16206
|
+
* - In Outlook on the web, the mailbox account to which a draft is saved varies when `saveAsync` is called on a message that will be sent
|
|
16207
|
+
* from a shared mailbox account. If the sender creates a new message from their personal mailbox and selects the shared mailbox account
|
|
16208
|
+
* in the **From** field, `saveAsync` saves the draft to the **Drafts** folder of the user's personal mailbox. If the sender opens the
|
|
16209
|
+
* shared mailbox account in a separate browser tab (through the **Open another mailbox** option, for example) and creates a new message
|
|
16210
|
+
* there, `saveAsync` saves the draft to the **Drafts** folder of the shared mailbox.
|
|
16211
|
+
*
|
|
16207
16212
|
* **Errors**:
|
|
16208
16213
|
*
|
|
16209
16214
|
* - `InvalidAttachmentId`: The attachment identifier does not exist.
|
|
16210
16215
|
*
|
|
16211
|
-
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
16212
|
-
*
|
|
16216
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
16217
|
+
* which is an `Office.AsyncResult` object. The message ID is returned in the `asyncResult.value` property.
|
|
16213
16218
|
*/
|
|
16214
16219
|
saveAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16215
16220
|
/**
|
|
@@ -60958,7 +60963,7 @@ declare namespace Excel {
|
|
|
60958
60963
|
unsupportedSheet = "UnsupportedSheet",
|
|
60959
60964
|
invalidOperationInCellEditMode = "InvalidOperationInCellEditMode"
|
|
60960
60965
|
}
|
|
60961
|
-
|
|
60966
|
+
namespace Interfaces {
|
|
60962
60967
|
/**
|
|
60963
60968
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
60964
60969
|
*/
|
|
@@ -93894,7 +93899,7 @@ declare namespace Word {
|
|
|
93894
93899
|
searchDialogIsOpen = "SearchDialogIsOpen",
|
|
93895
93900
|
searchStringInvalidOrTooLong = "SearchStringInvalidOrTooLong",
|
|
93896
93901
|
}
|
|
93897
|
-
|
|
93902
|
+
namespace Interfaces {
|
|
93898
93903
|
/**
|
|
93899
93904
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
93900
93905
|
*/
|
|
@@ -104648,7 +104653,7 @@ declare namespace OneNote {
|
|
|
104648
104653
|
notSupported = "NotSupported",
|
|
104649
104654
|
operationAborted = "OperationAborted",
|
|
104650
104655
|
}
|
|
104651
|
-
|
|
104656
|
+
namespace Interfaces {
|
|
104652
104657
|
/**
|
|
104653
104658
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
104654
104659
|
*/
|
|
@@ -109726,7 +109731,7 @@ declare namespace Visio {
|
|
|
109726
109731
|
notImplemented = "NotImplemented",
|
|
109727
109732
|
unsupportedOperation = "UnsupportedOperation",
|
|
109728
109733
|
}
|
|
109729
|
-
|
|
109734
|
+
namespace Interfaces {
|
|
109730
109735
|
/**
|
|
109731
109736
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
109732
109737
|
*/
|
|
@@ -114231,7 +114236,7 @@ declare namespace PowerPoint {
|
|
|
114231
114236
|
enum ErrorCodes {
|
|
114232
114237
|
generalException = "GeneralException",
|
|
114233
114238
|
}
|
|
114234
|
-
|
|
114239
|
+
namespace Interfaces {
|
|
114235
114240
|
/**
|
|
114236
114241
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
114237
114242
|
*/
|
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.340",
|
|
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": "fbbf75bbbe0a56a921785db0e31b99fa3afcd7bcb2f861d9c32917fe678a5e63",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|