@types/office-js 1.0.550 → 1.0.552

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 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: 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
office-js/index.d.ts CHANGED
@@ -9041,14 +9041,16 @@ declare namespace Office {
9041
9041
  *
9042
9042
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
9043
9043
  *
9044
- * **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
9045
- * 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.
9044
+ * **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.
9046
9045
  *
9047
- * The `BodyMode` enum supports the following message organization settings.
9046
+ * In Outlook on the web and the new Outlook on Windows, users can organize their messages as conversations or individual messages in
9047
+ * **Settings** \> **Mail** \> **Layout** \> **Message organization**. This user setting affects the portion of the body of a message that's displayed.
9048
+ * The `BodyMode` enum supports the following message organization settings on these clients.
9048
9049
  *
9049
- * - Conversations: **Group messages by conversation** > **All messages from the selected conversation** or **Show email grouped by conversation** > **Newest on top**\/**Newest on bottom**
9050
+ * - Conversations: **Group messages by conversation** \> **All messages from the selected conversation** or
9051
+ * **Show email grouped by conversation** \> **Newest on top**\/**Newest on bottom**
9050
9052
  *
9051
- * - Individual messages: **Do not group messages** > **Only a single message** or **Show email as individual messages**
9053
+ * - Individual messages: **Do not group messages** \> **Only a single message** or **Show email as individual messages**
9052
9054
  *
9053
9055
  * For more information, see {@link https://support.microsoft.com/office/57fe0cd8-e90b-4b1b-91e4-a0ba658c0042 | Change how the message list is displayed in Outlook}.
9054
9056
  */
@@ -9058,9 +9060,11 @@ declare namespace Office {
9058
9060
  */
9059
9061
  FullBody = 0,
9060
9062
  /**
9061
- * The body mode depends on the user's current setting for message organization (that is, messages are organized as conversations or individual messages).
9062
- * If messages are organized by conversation, it specifies only the current body of the reply. Conversely, if messages are organized as individual
9063
+ * 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).
9064
+ * If messages are organized by conversation, it specifies the body of the current reply. Conversely, if messages are organized as individual
9063
9065
  * messages, it specifies the entire body of a message, including previous messages from the same conversation thread.
9066
+ *
9067
+ * In Outlook on mobile, specifies the body of the current reply.
9064
9068
  */
9065
9069
  HostConfig = 1
9066
9070
  }
@@ -13252,22 +13256,29 @@ declare namespace Office {
13252
13256
  * in the `getAsync` call may not always provide reliable formatting. Specify `Office.CoercionType.Html` instead especially if the body contains
13253
13257
  * formatted elements, such as tables, lists, and links.
13254
13258
  *
13255
- * - 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**
13256
- * (see {@link https://support.microsoft.com/office/57fe0cd8-e90b-4b1b-91e4-a0ba658c0042 | Change how the message list is displayed in Outlook}).
13259
+ * - In Outlook on the web and in the new Outlook on Windows, users can organize their messages as conversations or individual messages in
13260
+ * **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}).
13257
13261
  * 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).
13258
13262
  * 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,
13259
13263
  * specify the `bodyMode: Office.MailboxEnums.BodyMode.HostConfig` parameter in your `getAsync` call. If messages are grouped by conversation,
13260
13264
  * only the body of the current reply is returned. Conversely, if messages are displayed individually, the entire conversation thread is returned.
13261
13265
  *
13266
+ * - In Outlook on mobile devices, the `bodyMode` property is available starting with Version 4.2538.0.
13267
+ *
13268
+ * - In Outlook on mobile devices, specifying `bodyMode: Office.MailboxEnums.BodyMode.HostConfig` returns the body of the current reply.
13269
+ *
13270
+ * - 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.
13271
+ * This applies even if `bodyMode: Office.MailboxEnums.BodyMode.FullBody` is specified in the `getAsync` call.
13272
+ *
13262
13273
  * - The `bodyMode` option isn't supported on a message that's loaded using the `loadItemByIdAsync` method. For more information, see
13263
13274
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/item-multi-select | Activate your Outlook add-in on multiple messages}.
13264
13275
  *
13265
13276
  * @param coercionType - The format for the returned body.
13266
13277
  * @param options - An object literal that contains one or more of the following properties.
13267
13278
  * `asyncContext`: Any data you want to access in the callback function.
13268
- * `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.
13279
+ * `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.
13269
13280
  * 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
13270
- * applies to replies on the Message Compose surface. It's ignored in Outlook on Windows (classic), on Mac, and on mobile devices.
13281
+ * applies to replies on the Message Compose surface. It's ignored in Outlook on Windows (classic) and on Mac.
13271
13282
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
13272
13283
  * of type Office.AsyncResult. The body is provided in the requested format in the `asyncResult.value` property.
13273
13284
  */
@@ -13292,13 +13303,20 @@ declare namespace Office {
13292
13303
  * in the `getAsync` call may not always provide reliable formatting. Specify `Office.CoercionType.Html` instead especially if the body contains
13293
13304
  * formatted elements, such as tables, lists, and links.
13294
13305
  *
13295
- * - 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**
13296
- * (see {@link https://support.microsoft.com/office/57fe0cd8-e90b-4b1b-91e4-a0ba658c0042 | Change how the message list is displayed in Outlook}).
13306
+ * - In Outlook on the web and in the new Outlook on Windows, users can organize their messages as conversations or individual messages in
13307
+ * **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}).
13297
13308
  * 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).
13298
13309
  * 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,
13299
13310
  * specify the `bodyMode: Office.MailboxEnums.BodyMode.HostConfig` parameter in your `getAsync` call. If messages are grouped by conversation,
13300
13311
  * only the body of the current reply is returned. Conversely, if messages are displayed individually, the entire conversation thread is returned.
13301
13312
  *
13313
+ * - In Outlook on mobile devices, the `bodyMode` property is available starting with Version 4.2538.0.
13314
+ *
13315
+ * - In Outlook on mobile devices, specifying `bodyMode: Office.MailboxEnums.BodyMode.HostConfig` returns the body of the current reply.
13316
+ *
13317
+ * - 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.
13318
+ * This applies even if `bodyMode: Office.MailboxEnums.BodyMode.FullBody` is specified in the `getAsync` call.
13319
+ *
13302
13320
  * @param coercionType - The format for the returned body.
13303
13321
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
13304
13322
  * of type Office.AsyncResult. The body is provided in the requested format in the `asyncResult.value` property.
@@ -13574,7 +13592,7 @@ declare namespace Office {
13574
13592
  * - The `setAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
13575
13593
  * 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}.
13576
13594
  *
13577
- * - 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**
13595
+ * - 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**
13578
13596
  * (see {@link https://support.microsoft.com/office/57fe0cd8-e90b-4b1b-91e4-a0ba658c0042 | Change how the message list is displayed in Outlook}).
13579
13597
  * 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).
13580
13598
  * 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
@@ -13584,7 +13602,7 @@ declare namespace Office {
13584
13602
  *
13585
13603
  * - 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,
13586
13604
  * 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
13587
- * 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.
13605
+ * 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.
13588
13606
  * A notification is shown to the user to alert them to this change. Once the call completes, the user's setting is reinstated.
13589
13607
  *
13590
13608
  * **Errors**:
@@ -13644,7 +13662,7 @@ declare namespace Office {
13644
13662
  * - The `setAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
13645
13663
  * 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}.
13646
13664
  *
13647
- * - 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**
13665
+ * - 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**
13648
13666
  * (see {@link https://support.microsoft.com/office/57fe0cd8-e90b-4b1b-91e4-a0ba658c0042 | Change how the message list is displayed in Outlook}).
13649
13667
  * 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).
13650
13668
  * 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
@@ -13654,7 +13672,7 @@ declare namespace Office {
13654
13672
  *
13655
13673
  * - 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,
13656
13674
  * 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
13657
- * 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.
13675
+ * 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.
13658
13676
  * A notification is shown to the user to alert them to this change. Once the call completes, the user's setting is reinstated.
13659
13677
  *
13660
13678
  * **Errors**:
@@ -18402,7 +18420,7 @@ declare namespace Office {
18402
18420
  * @remarks
18403
18421
  * [Api set: Mailbox 1.15]
18404
18422
  *
18405
- * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
18423
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write mailbox**
18406
18424
  *
18407
18425
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
18408
18426
  *
@@ -18436,7 +18454,7 @@ declare namespace Office {
18436
18454
  * @remarks
18437
18455
  * [Api set: Mailbox 1.15]
18438
18456
  *
18439
- * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
18457
+ * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write mailbox**
18440
18458
  *
18441
18459
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose, Read
18442
18460
  *
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.550",
3
+ "version": "1.0.552",
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",
@@ -46,6 +46,6 @@
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
48
  "peerDependencies": {},
49
- "typesPublisherContentHash": "b1e8be294937c4121c363cd25322de05308826649d3a8f291efbef3228b01bf9",
49
+ "typesPublisherContentHash": "d5bc41fb72a8482c164d31d01d3b66c093c610510129454f70570e177c58b96c",
50
50
  "typeScriptVersion": "5.2"
51
51
  }