@types/office-js-preview 1.0.407 → 1.0.408

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.
@@ -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: Thu, 17 Aug 2023 21:32:55 GMT
11
+ * Last updated: Thu, 24 Aug 2023 19:33:02 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -10914,76 +10914,77 @@ declare namespace Office {
10914
10914
  /**
10915
10915
  * Asynchronously saves an item.
10916
10916
  *
10917
- * When invoked, this method saves the current message as a draft and returns the item ID via the callback function.
10918
- * In Outlook on the web or Outlook in online mode, the item is saved to the server.
10919
- * In Outlook in cached mode, the item is saved to the local cache.
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
- * Since appointments have no draft state, if `saveAsync` is called on an appointment in compose mode, the item will be saved as a normal
10922
- * appointment on the user's calendar. For new appointments that have not been saved before, no invitation will be sent.
10923
- * Saving an existing appointment will send an update to added or removed attendees.
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
- * When working with HTML-formatted content, it's important to note that the Outlook client may modify the content. This means that
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
- * **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
10929
- * that when Outlook is in cached mode, it may take some time before the item is actually synced to the server.
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
- * **Note**: In Outlook on Mac, only build 16.35.308 or later supports saving a meeting.
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 of
10950
- * type `Office.AsyncResult`.
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
- * When invoked, this method saves the current message as a draft and returns the item ID via the callback function.
10957
- * 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.
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
- * Since appointments have no draft state, if `saveAsync` is called on an appointment in compose mode, the item will be saved as a normal
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
- * **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 that
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
- * **Note**: In Outlook on Mac, only build 16.35.308 or later supports saving a meeting.
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 of
10986
- * type `Office.AsyncResult`.
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 an item.
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 of
16686
- * type `Office.AsyncResult`.
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 an item.
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 of
16719
- * type `Office.AsyncResult`.
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
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.407",
3
+ "version": "1.0.408",
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": "5356f9c6216807b1a06e2a09ccb3d4bfc6629a701f92322ecece04ab49deb69a",
48
+ "typesPublisherContentHash": "f138bc7b98f3e21b6d6ab063d872521600d7837574544caf59e86db9dbb81959",
49
49
  "typeScriptVersion": "4.3"
50
50
  }