@types/office-js-preview 1.0.654 → 1.0.656

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-preview (https://github.com
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: Fri, 17 Oct 2025 17:33:42 GMT
11
+ * Last updated: Mon, 27 Oct 2025 20:02:18 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -9051,14 +9051,16 @@ declare namespace Office {
9051
9051
  *
9052
9052
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
9053
9053
  *
9054
- * **Important**: This enum is only supported in Outlook on the web and new Outlook on Windows. On these platforms, users can organize their messages as
9055
- * conversations or individual messages in **Settings** > **Mail** > **Layout** > **Message organization**. This user setting affects the portion of the body of a message that's displayed.
9054
+ * **Important**: This enum is only supported in Outlook on the web, on mobile devices (starting in Version 4.2538.0), and in the new Outlook on Windows.
9056
9055
  *
9057
- * The `BodyMode` enum supports the following message organization settings.
9056
+ * In Outlook on the web and the new Outlook on Windows, users can organize their messages as conversations or individual messages in
9057
+ * **Settings** \> **Mail** \> **Layout** \> **Message organization**. This user setting affects the portion of the body of a message that's displayed.
9058
+ * The `BodyMode` enum supports the following message organization settings on these clients.
9058
9059
  *
9059
- * - Conversations: **Group messages by conversation** > **All messages from the selected conversation** or **Show email grouped by conversation** > **Newest on top**\/**Newest on bottom**
9060
+ * - Conversations: **Group messages by conversation** \> **All messages from the selected conversation** or
9061
+ * **Show email grouped by conversation** \> **Newest on top**\/**Newest on bottom**
9060
9062
  *
9061
- * - Individual messages: **Do not group messages** > **Only a single message** or **Show email as individual messages**
9063
+ * - Individual messages: **Do not group messages** \> **Only a single message** or **Show email as individual messages**
9062
9064
  *
9063
9065
  * For more information, see {@link https://support.microsoft.com/office/57fe0cd8-e90b-4b1b-91e4-a0ba658c0042 | Change how the message list is displayed in Outlook}.
9064
9066
  */
@@ -9068,9 +9070,11 @@ declare namespace Office {
9068
9070
  */
9069
9071
  FullBody = 0,
9070
9072
  /**
9071
- * The body mode depends on the user's current setting for message organization (that is, messages are organized as conversations or individual messages).
9072
- * If messages are organized by conversation, it specifies only the current body of the reply. Conversely, if messages are organized as individual
9073
+ * In Outlook on the web and the new Outlook on Windows, the body mode depends on the user's current setting for message organization (that is, messages are organized as conversations or individual messages).
9074
+ * If messages are organized by conversation, it specifies the body of the current reply. Conversely, if messages are organized as individual
9073
9075
  * messages, it specifies the entire body of a message, including previous messages from the same conversation thread.
9076
+ *
9077
+ * In Outlook on mobile, specifies the body of the current reply.
9074
9078
  */
9075
9079
  HostConfig = 1
9076
9080
  }
@@ -13300,22 +13304,29 @@ declare namespace Office {
13300
13304
  * in the `getAsync` call may not always provide reliable formatting. Specify `Office.CoercionType.Html` instead especially if the body contains
13301
13305
  * formatted elements, such as tables, lists, and links.
13302
13306
  *
13303
- * - In Outlook on the web and new Outlook on Windows, users can organize their messages as conversations or individual messages in **Settings** > **Mail** > **Layout** > **Message organization**
13304
- * (see {@link https://support.microsoft.com/office/57fe0cd8-e90b-4b1b-91e4-a0ba658c0042 | Change how the message list is displayed in Outlook}).
13307
+ * - In Outlook on the web and in the new Outlook on Windows, users can organize their messages as conversations or individual messages in
13308
+ * **Settings** \> **Mail** \> **Layout** \> **Message organization** (see {@link https://support.microsoft.com/office/57fe0cd8-e90b-4b1b-91e4-a0ba658c0042 | Change how the message list is displayed in Outlook}).
13305
13309
  * This setting affects how much of a message's body is displayed to the user (that is, the entire conversation thread of a message or just the current message).
13306
13310
  * In Message Compose mode, particularly for replies to a conversation thread with more than one message, if you want the returned body to reflect the user's setting,
13307
13311
  * specify the `bodyMode: Office.MailboxEnums.BodyMode.HostConfig` parameter in your `getAsync` call. If messages are grouped by conversation,
13308
13312
  * only the body of the current reply is returned. Conversely, if messages are displayed individually, the entire conversation thread is returned.
13309
13313
  *
13314
+ * - In Outlook on mobile devices, the `bodyMode` property is available starting with Version 4.2538.0.
13315
+ *
13316
+ * - In Outlook on mobile devices, specifying `bodyMode: Office.MailboxEnums.BodyMode.HostConfig` returns the body of the current reply.
13317
+ *
13318
+ * - In Outlook on mobile devices, while in quick reply mode (the reply field at the bottom of the message), only the body of the current reply is returned.
13319
+ * This applies even if `bodyMode: Office.MailboxEnums.BodyMode.FullBody` is specified in the `getAsync` call.
13320
+ *
13310
13321
  * - The `bodyMode` option isn't supported on a message that's loaded using the `loadItemByIdAsync` method. For more information, see
13311
13322
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/item-multi-select | Activate your Outlook add-in on multiple messages}.
13312
13323
  *
13313
13324
  * @param coercionType - The format for the returned body.
13314
13325
  * @param options - An object literal that contains one or more of the following properties.
13315
13326
  * `asyncContext`: Any data you want to access in the callback function.
13316
- * `bodyMode`: In Outlook on the web and new Outlook on Windows, specifies whether only the body of the current message or the entire body of a message conversation is returned.
13327
+ * `bodyMode`: In Outlook on the web, on mobile devices, and in the new Outlook on Windows, specifies whether only the body of the current message or the entire body of a message conversation is returned.
13317
13328
  * If a value isn't specified, `bodyMode` defaults to `Office.MailboxEnums.BodyMode.FullBody`, which returns the entire body of a message conversation. The `bodyMode` property only
13318
- * applies to replies on the Message Compose surface. It's ignored in Outlook on Windows (classic), on Mac, and on mobile devices.
13329
+ * applies to replies on the Message Compose surface. It's ignored in Outlook on Windows (classic) and on Mac.
13319
13330
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
13320
13331
  * of type Office.AsyncResult. The body is provided in the requested format in the `asyncResult.value` property.
13321
13332
  */
@@ -13340,13 +13351,20 @@ declare namespace Office {
13340
13351
  * in the `getAsync` call may not always provide reliable formatting. Specify `Office.CoercionType.Html` instead especially if the body contains
13341
13352
  * formatted elements, such as tables, lists, and links.
13342
13353
  *
13343
- * - In Outlook on the web and new Outlook on Windows, users can organize their messages as conversations or individual messages in **Settings** > **Mail** > **Layout** > **Message organization**
13344
- * (see {@link https://support.microsoft.com/office/57fe0cd8-e90b-4b1b-91e4-a0ba658c0042 | Change how the message list is displayed in Outlook}).
13354
+ * - In Outlook on the web and in the new Outlook on Windows, users can organize their messages as conversations or individual messages in
13355
+ * **Settings** \> **Mail** \> **Layout** \> **Message organization** (see {@link https://support.microsoft.com/office/57fe0cd8-e90b-4b1b-91e4-a0ba658c0042 | Change how the message list is displayed in Outlook}).
13345
13356
  * This setting affects how much of a message's body is displayed to the user (that is, the entire conversation thread of a message or just the current message).
13346
13357
  * In Message Compose mode, particularly for replies to a conversation thread with more than one message, if you want the returned body to reflect the user's setting,
13347
13358
  * specify the `bodyMode: Office.MailboxEnums.BodyMode.HostConfig` parameter in your `getAsync` call. If messages are grouped by conversation,
13348
13359
  * only the body of the current reply is returned. Conversely, if messages are displayed individually, the entire conversation thread is returned.
13349
13360
  *
13361
+ * - In Outlook on mobile devices, the `bodyMode` property is available starting with Version 4.2538.0.
13362
+ *
13363
+ * - In Outlook on mobile devices, specifying `bodyMode: Office.MailboxEnums.BodyMode.HostConfig` returns the body of the current reply.
13364
+ *
13365
+ * - In Outlook on mobile devices, while in quick reply mode (the reply field at the bottom of the message), only the body of the current reply is returned.
13366
+ * This applies even if `bodyMode: Office.MailboxEnums.BodyMode.FullBody` is specified in the `getAsync` call.
13367
+ *
13350
13368
  * @param coercionType - The format for the returned body.
13351
13369
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
13352
13370
  * of type Office.AsyncResult. The body is provided in the requested format in the `asyncResult.value` property.
@@ -13622,7 +13640,7 @@ declare namespace Office {
13622
13640
  * - The `setAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
13623
13641
  * For more information, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/item-multi-select | Activate your Outlook add-in on multiple messages}.
13624
13642
  *
13625
- * - In Outlook on the web and new Outlook on Windows, users can organize their messages as conversations or individual messages in **Settings** > **Mail** > **Layout** > **Message organization**
13643
+ * - In Outlook on the web and new Outlook on Windows, users can organize their messages as conversations or individual messages in **Settings** \> **Mail** \> **Layout** \> **Message organization**
13626
13644
  * (see {@link https://support.microsoft.com/office/57fe0cd8-e90b-4b1b-91e4-a0ba658c0042 | Change how the message list is displayed in Outlook}).
13627
13645
  * This setting affects how much of a message's body is displayed to the user (that is, the entire conversation thread of a message or just the current message).
13628
13646
  * In Message Compose mode, particularly for replies to a conversation thread with more than one message, if you want to honor the user's settings when
@@ -13632,7 +13650,7 @@ declare namespace Office {
13632
13650
  *
13633
13651
  * - In Outlook on the web and new Outlook on Windows, if the `bodyMode` property isn't specified or is set to `Office.MailboxEnums.BodyMode.FullBody`, the entire body of a message,
13634
13652
  * including previous messages from the conversation thread, is replaced. This applies even if a user's messages are organized by conversation. In this scenario, the user's
13635
- * setting is temporarily changed to **Individual messages: Do not group messages** > **Only a single message** or **Show email as individual messages** during the `setAsync` call.
13653
+ * setting is temporarily changed to **Individual messages: Do not group messages** \> **Only a single message** or **Show email as individual messages** during the `setAsync` call.
13636
13654
  * A notification is shown to the user to alert them to this change. Once the call completes, the user's setting is reinstated.
13637
13655
  *
13638
13656
  * **Errors**:
@@ -13692,7 +13710,7 @@ declare namespace Office {
13692
13710
  * - The `setAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
13693
13711
  * For more information, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/item-multi-select | Activate your Outlook add-in on multiple messages}.
13694
13712
  *
13695
- * - In Outlook on the web and new Outlook on Windows, users can organize their messages as conversations or individual messages in **Settings** > **Mail** > **Layout** > **Message organization**
13713
+ * - In Outlook on the web and new Outlook on Windows, users can organize their messages as conversations or individual messages in **Settings** \> **Mail** \> **Layout** \> **Message organization**
13696
13714
  * (see {@link https://support.microsoft.com/office/57fe0cd8-e90b-4b1b-91e4-a0ba658c0042 | Change how the message list is displayed in Outlook}).
13697
13715
  * This setting affects how much of a message's body is displayed to the user (that is, the entire conversation thread of a message or just the current message).
13698
13716
  * In Message Compose mode, particularly for replies in a conversation thread with more than one message, if you want to honor the user's settings when
@@ -13702,7 +13720,7 @@ declare namespace Office {
13702
13720
  *
13703
13721
  * - In Outlook on the web and new Outlook on Windows, if the `bodyMode` property isn't specified or is set to `Office.MailboxEnums.BodyMode.FullBody`, the entire body of a message,
13704
13722
  * including previous messages from the conversation thread, is replaced. This applies even if a user's messages are organized by conversation. In this scenario, the user's
13705
- * setting is temporarily changed to **Individual messages: Do not group messages** > **Only a single message** or **Show email as individual messages** during the `setAsync` call.
13723
+ * setting is temporarily changed to **Individual messages: Do not group messages** \> **Only a single message** or **Show email as individual messages** during the `setAsync` call.
13706
13724
  * A notification is shown to the user to alert them to this change. Once the call completes, the user's setting is reinstated.
13707
13725
  *
13708
13726
  * **Errors**:
@@ -18816,7 +18834,7 @@ declare namespace Office {
18816
18834
  * @remarks
18817
18835
  * [Api set: Mailbox 1.15]
18818
18836
  *
18819
- * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
18837
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write mailbox**
18820
18838
  *
18821
18839
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
18822
18840
  *
@@ -18850,7 +18868,7 @@ declare namespace Office {
18850
18868
  * @remarks
18851
18869
  * [Api set: Mailbox 1.15]
18852
18870
  *
18853
- * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
18871
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write mailbox**
18854
18872
  *
18855
18873
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
18856
18874
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.654",
3
+ "version": "1.0.656",
4
4
  "description": "TypeScript definitions for office-js-preview",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
48
  "peerDependencies": {},
49
- "typesPublisherContentHash": "5a97a706cad05488969099f25c7dc3a3c2f05d6a5a3db1df45cf4ac59ddc4850",
49
+ "typesPublisherContentHash": "4090b860a07ec4001ac64acefacf925d750c3861a203f085408cb3de0dacaf8f",
50
50
  "typeScriptVersion": "5.2",
51
51
  "nonNpm": true
52
52
  }