@types/office-js-preview 1.0.407 → 1.0.409
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-preview/README.md +1 -1
- office-js-preview/index.d.ts +82 -77
- office-js-preview/package.json +2 -2
office-js-preview/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-preview.
|
|
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-preview/index.d.ts
CHANGED
|
@@ -10914,76 +10914,77 @@ declare namespace Office {
|
|
|
10914
10914
|
/**
|
|
10915
10915
|
* Asynchronously saves an item.
|
|
10916
10916
|
*
|
|
10917
|
-
*
|
|
10918
|
-
*
|
|
10919
|
-
*
|
|
10917
|
+
* Since appointments have no draft state, if `saveAsync` is called on an appointment in compose mode, the item is saved as a normal
|
|
10918
|
+
* appointment on the user's calendar. For new appointments that haven't been saved before, no invitation is sent.
|
|
10919
|
+
* For existing appointments, an update is sent to added or removed attendees.
|
|
10920
10920
|
*
|
|
10921
|
-
*
|
|
10922
|
-
*
|
|
10923
|
-
*
|
|
10921
|
+
* @remarks
|
|
10922
|
+
* [Api set: Mailbox 1.3]
|
|
10923
|
+
*
|
|
10924
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
10925
|
+
*
|
|
10926
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10927
|
+
*
|
|
10928
|
+
* **Important**:
|
|
10924
10929
|
*
|
|
10925
|
-
*
|
|
10930
|
+
* - 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.
|
|
10931
|
+
*
|
|
10932
|
+
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10926
10933
|
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
10927
10934
|
*
|
|
10928
|
-
*
|
|
10929
|
-
*
|
|
10935
|
+
* - 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
|
|
10936
|
+
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
10930
10937
|
* Until the item is synced, using the item ID will return an error.
|
|
10931
10938
|
*
|
|
10932
|
-
*
|
|
10939
|
+
* - In Outlook on Mac, only Build 16.35.308 or later supports saving a meeting.
|
|
10933
10940
|
* Otherwise, the `saveAsync` method fails when called from a meeting in compose mode.
|
|
10934
10941
|
* 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}.
|
|
10935
10942
|
*
|
|
10936
|
-
* @remarks
|
|
10937
|
-
* [Api set: Mailbox 1.3]
|
|
10938
|
-
*
|
|
10939
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
10940
|
-
*
|
|
10941
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10942
|
-
*
|
|
10943
10943
|
* **Errors**:
|
|
10944
10944
|
*
|
|
10945
10945
|
* - `InvalidAttachmentId`: The attachment identifier does not exist.
|
|
10946
10946
|
*
|
|
10947
10947
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
10948
10948
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10949
|
-
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10950
|
-
*
|
|
10949
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
10950
|
+
* which is an `Office.AsyncResult` object. The appointment ID is returned in the `asyncResult.value` property.
|
|
10951
10951
|
*/
|
|
10952
10952
|
saveAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10953
10953
|
/**
|
|
10954
10954
|
* Asynchronously saves an item.
|
|
10955
10955
|
*
|
|
10956
|
-
*
|
|
10957
|
-
*
|
|
10956
|
+
* Since appointments have no draft state, if `saveAsync` is called on an appointment in compose mode, the item is saved as a normal
|
|
10957
|
+
* appointment on the user's calendar. For new appointments that haven't been saved before, no invitation is sent.
|
|
10958
|
+
* For existing appointments, an update is sent to added or removed attendees.
|
|
10959
|
+
*
|
|
10960
|
+
* @remarks
|
|
10961
|
+
* [Api set: Mailbox 1.3]
|
|
10962
|
+
*
|
|
10963
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
10964
|
+
*
|
|
10965
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10966
|
+
*
|
|
10967
|
+
* **Important**:
|
|
10958
10968
|
*
|
|
10959
|
-
*
|
|
10960
|
-
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
10961
|
-
* Saving an existing appointment will send an update to added or removed attendees.
|
|
10969
|
+
* - 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.
|
|
10962
10970
|
*
|
|
10963
|
-
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10971
|
+
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
10964
10972
|
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
10965
10973
|
*
|
|
10966
|
-
*
|
|
10974
|
+
* - 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
|
|
10967
10975
|
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
10968
10976
|
* Until the item is synced, using the item ID will return an error.
|
|
10969
10977
|
*
|
|
10970
|
-
*
|
|
10978
|
+
* - In Outlook on Mac, only Build 16.35.308 or later supports saving a meeting.
|
|
10971
10979
|
* Otherwise, the `saveAsync` method fails when called from a meeting in compose mode.
|
|
10972
10980
|
* 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}.
|
|
10973
10981
|
*
|
|
10974
|
-
* @remarks
|
|
10975
|
-
* [Api set: Mailbox 1.3]
|
|
10976
|
-
*
|
|
10977
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
10978
|
-
*
|
|
10979
|
-
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10980
|
-
*
|
|
10981
10982
|
* **Errors**:
|
|
10982
10983
|
*
|
|
10983
10984
|
* - `InvalidAttachmentId`: The attachment identifier does not exist.
|
|
10984
10985
|
*
|
|
10985
|
-
* @param callback - When the method completes, the function passed in the callback parameter is called with a single parameter
|
|
10986
|
-
*
|
|
10986
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
10987
|
+
* which is an `Office.AsyncResult` object. The appointment ID is returned in the `asyncResult.value` property.
|
|
10987
10988
|
*/
|
|
10988
10989
|
saveAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10989
10990
|
/**
|
|
@@ -16652,22 +16653,7 @@ declare namespace Office {
|
|
|
16652
16653
|
*/
|
|
16653
16654
|
removeHandlerAsync(eventType: Office.EventType | string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
16654
16655
|
/**
|
|
16655
|
-
* Asynchronously saves
|
|
16656
|
-
*
|
|
16657
|
-
* When invoked, this method saves the current message as a draft and returns the item ID via the callback function.
|
|
16658
|
-
* In Outlook on the web or Outlook in online mode, the item is saved to the server.
|
|
16659
|
-
* In Outlook in cached mode, the item is saved to the local cache.
|
|
16660
|
-
*
|
|
16661
|
-
* Since appointments have no draft state, if `saveAsync` is called on an appointment in compose mode, the item will be saved as a normal
|
|
16662
|
-
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
16663
|
-
* Saving an existing appointment will send an update to added or removed attendees.
|
|
16664
|
-
*
|
|
16665
|
-
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
16666
|
-
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
16667
|
-
*
|
|
16668
|
-
* **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
|
|
16669
|
-
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
16670
|
-
* Until the item is synced, using the itemId will return an error.
|
|
16656
|
+
* Asynchronously saves the current message as a draft.
|
|
16671
16657
|
*
|
|
16672
16658
|
* @remarks
|
|
16673
16659
|
* [Api set: Mailbox 1.3]
|
|
@@ -16676,33 +16662,35 @@ declare namespace Office {
|
|
|
16676
16662
|
*
|
|
16677
16663
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
16678
16664
|
*
|
|
16665
|
+
* **Important**:
|
|
16666
|
+
*
|
|
16667
|
+
* - 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.
|
|
16668
|
+
*
|
|
16669
|
+
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
16670
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
16671
|
+
*
|
|
16672
|
+
* - 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
|
|
16673
|
+
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
16674
|
+
* Until the item is synced, using the item ID will return an error.
|
|
16675
|
+
*
|
|
16676
|
+
* - 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
|
|
16677
|
+
* from a shared mailbox account. If the sender creates a new message from their personal mailbox and selects the shared mailbox account
|
|
16678
|
+
* in the **From** field, `saveAsync` saves the draft to the **Drafts** folder of the user's personal mailbox. If the sender opens the
|
|
16679
|
+
* shared mailbox account in a separate browser tab (through the **Open another mailbox** option, for example) and creates a new message
|
|
16680
|
+
* there, `saveAsync` saves the draft to the **Drafts** folder of the shared mailbox.
|
|
16681
|
+
*
|
|
16679
16682
|
* **Errors**:
|
|
16680
16683
|
*
|
|
16681
16684
|
* - `InvalidAttachmentId`: The attachment identifier does not exist.
|
|
16682
16685
|
*
|
|
16683
16686
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
16684
16687
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
16685
|
-
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
16686
|
-
*
|
|
16688
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
16689
|
+
* which is an `Office.AsyncResult` object. The message ID is returned in the `asyncResult.value` property.
|
|
16687
16690
|
*/
|
|
16688
16691
|
saveAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16689
16692
|
/**
|
|
16690
|
-
* Asynchronously saves
|
|
16691
|
-
*
|
|
16692
|
-
* When invoked, this method saves the current message as a draft and returns the item ID via the callback function.
|
|
16693
|
-
* In Outlook on the web or Outlook in online mode, the item is saved to the server.
|
|
16694
|
-
* In Outlook in cached mode, the item is saved to the local cache.
|
|
16695
|
-
*
|
|
16696
|
-
* Since appointments have no draft state, if `saveAsync` is called on an appointment in compose mode, the item will be saved as a normal
|
|
16697
|
-
* appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
|
|
16698
|
-
* Saving an existing appointment will send an update to added or removed attendees.
|
|
16699
|
-
*
|
|
16700
|
-
* When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
16701
|
-
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
16702
|
-
*
|
|
16703
|
-
* **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
|
|
16704
|
-
* that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
16705
|
-
* Until the item is synced, using the `itemId` will return an error.
|
|
16693
|
+
* Asynchronously saves the current message as a draft.
|
|
16706
16694
|
*
|
|
16707
16695
|
* @remarks
|
|
16708
16696
|
* [Api set: Mailbox 1.3]
|
|
@@ -16711,12 +16699,29 @@ declare namespace Office {
|
|
|
16711
16699
|
*
|
|
16712
16700
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
16713
16701
|
*
|
|
16702
|
+
* **Important**:
|
|
16703
|
+
*
|
|
16704
|
+
* - 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.
|
|
16705
|
+
*
|
|
16706
|
+
* - When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
|
|
16707
|
+
* subsequent calls to methods like `Body.getAsync`, `Body.setAsync`, and even `saveAsync` may not result in the same content.
|
|
16708
|
+
*
|
|
16709
|
+
* - 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
|
|
16710
|
+
* when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
|
|
16711
|
+
* Until the item is synced, using the item ID will return an error.
|
|
16712
|
+
*
|
|
16713
|
+
* - 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
|
|
16714
|
+
* from a shared mailbox account. If the sender creates a new message from their personal mailbox and selects the shared mailbox account
|
|
16715
|
+
* in the **From** field, `saveAsync` saves the draft to the **Drafts** folder of the user's personal mailbox. If the sender opens the
|
|
16716
|
+
* shared mailbox account in a separate browser tab (through the **Open another mailbox** option, for example) and creates a new message
|
|
16717
|
+
* there, `saveAsync` saves the draft to the **Drafts** folder of the shared mailbox.
|
|
16718
|
+
*
|
|
16714
16719
|
* **Errors**:
|
|
16715
16720
|
*
|
|
16716
16721
|
* - `InvalidAttachmentId`: The attachment identifier does not exist.
|
|
16717
16722
|
*
|
|
16718
|
-
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
16719
|
-
*
|
|
16723
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter, `asyncResult`,
|
|
16724
|
+
* which is an `Office.AsyncResult` object. The message ID is returned in the `asyncResult.value` property.
|
|
16720
16725
|
*/
|
|
16721
16726
|
saveAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16722
16727
|
/**
|
|
@@ -64638,7 +64643,7 @@ declare namespace Excel {
|
|
|
64638
64643
|
unsupportedSheet = "UnsupportedSheet",
|
|
64639
64644
|
invalidOperationInCellEditMode = "InvalidOperationInCellEditMode"
|
|
64640
64645
|
}
|
|
64641
|
-
|
|
64646
|
+
namespace Interfaces {
|
|
64642
64647
|
/**
|
|
64643
64648
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
64644
64649
|
*/
|
|
@@ -100919,7 +100924,7 @@ declare namespace Word {
|
|
|
100919
100924
|
searchDialogIsOpen = "SearchDialogIsOpen",
|
|
100920
100925
|
searchStringInvalidOrTooLong = "SearchStringInvalidOrTooLong",
|
|
100921
100926
|
}
|
|
100922
|
-
|
|
100927
|
+
namespace Interfaces {
|
|
100923
100928
|
/**
|
|
100924
100929
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
100925
100930
|
*/
|
|
@@ -112725,7 +112730,7 @@ declare namespace OneNote {
|
|
|
112725
112730
|
notSupported = "NotSupported",
|
|
112726
112731
|
operationAborted = "OperationAborted",
|
|
112727
112732
|
}
|
|
112728
|
-
|
|
112733
|
+
namespace Interfaces {
|
|
112729
112734
|
/**
|
|
112730
112735
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
112731
112736
|
*/
|
|
@@ -117803,7 +117808,7 @@ declare namespace Visio {
|
|
|
117803
117808
|
notImplemented = "NotImplemented",
|
|
117804
117809
|
unsupportedOperation = "UnsupportedOperation",
|
|
117805
117810
|
}
|
|
117806
|
-
|
|
117811
|
+
namespace Interfaces {
|
|
117807
117812
|
/**
|
|
117808
117813
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
117809
117814
|
*/
|
|
@@ -122308,7 +122313,7 @@ declare namespace PowerPoint {
|
|
|
122308
122313
|
enum ErrorCodes {
|
|
122309
122314
|
generalException = "GeneralException",
|
|
122310
122315
|
}
|
|
122311
|
-
|
|
122316
|
+
namespace Interfaces {
|
|
122312
122317
|
/**
|
|
122313
122318
|
* Provides ways to load properties of only a subset of members of a collection.
|
|
122314
122319
|
*/
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.409",
|
|
4
4
|
"description": "TypeScript definitions for Office.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "2f3fe95d1cc42e31b28d024a29ac81aaa7fd1cbe036f36f57fb1b10dbd92fb2e",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|