@types/office-js-preview 1.0.653 → 1.0.655
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 +63 -17
- 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-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:
|
|
11
|
+
* Last updated: Thu, 23 Oct 2025 17:34:47 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
*
|
|
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**
|
|
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**
|
|
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
|
-
*
|
|
9072
|
-
* If messages are organized by conversation, it specifies
|
|
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
|
|
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)
|
|
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
|
|
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.
|
|
@@ -190847,6 +190865,8 @@ declare namespace Visio {
|
|
|
190847
190865
|
|
|
190848
190866
|
declare namespace PowerPoint {
|
|
190849
190867
|
/**
|
|
190868
|
+
* Represents the PowerPoint application that manages the presentation.
|
|
190869
|
+
*
|
|
190850
190870
|
* @remarks
|
|
190851
190871
|
* [Api set: PowerPointApi 1.0]
|
|
190852
190872
|
*/
|
|
@@ -190866,6 +190886,10 @@ declare namespace PowerPoint {
|
|
|
190866
190886
|
};
|
|
190867
190887
|
}
|
|
190868
190888
|
/**
|
|
190889
|
+
* The `Presentation` object is the top-level object with one or more slides that contain the contents of the presentation.
|
|
190890
|
+
To learn more about the PowerPoint object model,
|
|
190891
|
+
see {@link https://learn.microsoft.com/office/dev/add-ins/powerpoint/core-concepts | PowerPoint JavaScript object model}.
|
|
190892
|
+
*
|
|
190869
190893
|
* @remarks
|
|
190870
190894
|
* [Api set: PowerPointApi 1.0]
|
|
190871
190895
|
*/
|
|
@@ -190929,6 +190953,12 @@ declare namespace PowerPoint {
|
|
|
190929
190953
|
* [Api set: PowerPointApi 1.5]
|
|
190930
190954
|
*/
|
|
190931
190955
|
readonly id: string;
|
|
190956
|
+
/**
|
|
190957
|
+
* Returns the title of the presentation.
|
|
190958
|
+
*
|
|
190959
|
+
* @remarks
|
|
190960
|
+
* [Api set: PowerPointApi 1.0]
|
|
190961
|
+
*/
|
|
190932
190962
|
readonly title: string;
|
|
190933
190963
|
/**
|
|
190934
190964
|
* Returns the selected shapes in the current slide of the presentation.
|
|
@@ -192998,8 +193028,8 @@ declare namespace PowerPoint {
|
|
|
192998
193028
|
*/
|
|
192999
193029
|
getCount(): OfficeExtension.ClientResult<number>;
|
|
193000
193030
|
/**
|
|
193001
|
-
* Gets a hyperlink using its zero-based index in the collection.
|
|
193002
|
-
Throws an `InvalidArgument` exception
|
|
193031
|
+
* Gets a hyperlink using its zero-based index in the collection.
|
|
193032
|
+
Throws an `InvalidArgument` exception if the index is out of range.
|
|
193003
193033
|
*
|
|
193004
193034
|
* @remarks
|
|
193005
193035
|
* [Api set: PowerPointApi 1.6]
|
|
@@ -198445,8 +198475,8 @@ declare namespace PowerPoint {
|
|
|
198445
198475
|
delete(): void;
|
|
198446
198476
|
/**
|
|
198447
198477
|
* Exports the slide to its own presentation file, returned as Base64-encoded data.
|
|
198448
|
-
|
|
198449
|
-
|
|
198478
|
+
|
|
198479
|
+
Note: This method is optimized to export a single slide. Exporting multiple slides can impact performance.
|
|
198450
198480
|
*
|
|
198451
198481
|
* @remarks
|
|
198452
198482
|
* [Api set: PowerPointApi 1.8]
|
|
@@ -200888,6 +200918,12 @@ declare namespace PowerPoint {
|
|
|
200888
200918
|
* [Api set: PowerPointApi 1.5]
|
|
200889
200919
|
*/
|
|
200890
200920
|
id?: string;
|
|
200921
|
+
/**
|
|
200922
|
+
* Returns the title of the presentation.
|
|
200923
|
+
*
|
|
200924
|
+
* @remarks
|
|
200925
|
+
* [Api set: PowerPointApi 1.0]
|
|
200926
|
+
*/
|
|
200891
200927
|
title?: string;
|
|
200892
200928
|
}
|
|
200893
200929
|
/** An interface describing the data returned by calling `adjustments.toJSON()`. */
|
|
@@ -202064,6 +202100,10 @@ declare namespace PowerPoint {
|
|
|
202064
202100
|
items?: PowerPoint.Interfaces.SlideMasterData[];
|
|
202065
202101
|
}
|
|
202066
202102
|
/**
|
|
202103
|
+
* The `Presentation` object is the top-level object with one or more slides that contain the contents of the presentation.
|
|
202104
|
+
To learn more about the PowerPoint object model,
|
|
202105
|
+
see {@link https://learn.microsoft.com/office/dev/add-ins/powerpoint/core-concepts | PowerPoint JavaScript object model}.
|
|
202106
|
+
*
|
|
202067
202107
|
* @remarks
|
|
202068
202108
|
* [Api set: PowerPointApi 1.0]
|
|
202069
202109
|
*/
|
|
@@ -202094,6 +202134,12 @@ declare namespace PowerPoint {
|
|
|
202094
202134
|
* [Api set: PowerPointApi 1.5]
|
|
202095
202135
|
*/
|
|
202096
202136
|
id?: boolean;
|
|
202137
|
+
/**
|
|
202138
|
+
* Returns the title of the presentation.
|
|
202139
|
+
*
|
|
202140
|
+
* @remarks
|
|
202141
|
+
* [Api set: PowerPointApi 1.0]
|
|
202142
|
+
*/
|
|
202097
202143
|
title?: boolean;
|
|
202098
202144
|
}
|
|
202099
202145
|
/**
|
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.655",
|
|
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": "
|
|
49
|
+
"typesPublisherContentHash": "47dd453d06caa385eb3c4a94bce7d6a9a39b3f37adad9094c91572bd619fded0",
|
|
50
50
|
"typeScriptVersion": "5.2",
|
|
51
51
|
"nonNpm": true
|
|
52
52
|
}
|