@types/office-js-preview 1.0.564 → 1.0.565
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
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, 27 Feb 2025 19:32:14 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -23435,6 +23435,73 @@ declare namespace Office {
|
|
|
23435
23435
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
23436
23436
|
*/
|
|
23437
23437
|
interface SpamReportingEventCompletedOptions {
|
|
23438
|
+
/**
|
|
23439
|
+
* When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal that a reported message has finished processing,
|
|
23440
|
+
* this property specifies the ID of the task pane that opens after the message is processed.
|
|
23441
|
+
*
|
|
23442
|
+
* @remarks
|
|
23443
|
+
*
|
|
23444
|
+
* [Api set: Mailbox preview]
|
|
23445
|
+
*
|
|
23446
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **read item**
|
|
23447
|
+
*
|
|
23448
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
23449
|
+
*
|
|
23450
|
+
* **Important**:
|
|
23451
|
+
*
|
|
23452
|
+
* - The `commandId` option is currently in preview in Outlook on the web and on Windows (new and classic). To preview this feature in classic Outlook on Windows,
|
|
23453
|
+
* install Version 2411 (Build 18227.20034) or later. Then, join the
|
|
23454
|
+
* {@link https://techcommunity.microsoft.com/blog/microsoft365insiderblog/join-the-microsoft-365-insider-program-on-windows/4206638 | Microsoft 365 Insider program}
|
|
23455
|
+
* and select the **Beta Channel** option. To learn how to implement this in your spam-reporting add-in, see
|
|
23456
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting#open-a-task-pane-after-reporting-a-message-preview | Open a task pane after reporting a message (preview)}.
|
|
23457
|
+
*
|
|
23458
|
+
* - The `commandId` value must match the task pane ID specified in the manifest of your add-in. In an add-in only manifest,
|
|
23459
|
+
* the ID is specified in the `id` attribute of the {@link https://learn.microsoft.com/javascript/api/manifest/control | Control} element that represents the task pane.
|
|
23460
|
+
* The `commandId` property isn't currently supported in a spam-reporting add-in that uses a unified manifest for Microsoft 365.
|
|
23461
|
+
*
|
|
23462
|
+
* - If you configure the `commandId` option in the `event.completed` call, a post-processing dialog isn't shown to the user
|
|
23463
|
+
* even if the `showPostProcessingDialog` option is specified in the call.
|
|
23464
|
+
*
|
|
23465
|
+
* - If you implement a task pane to open after a reported message is processed, when the `event.completed` call occurs, any task pane that's open or pinned is closed.
|
|
23466
|
+
*
|
|
23467
|
+
* @beta
|
|
23468
|
+
*/
|
|
23469
|
+
commandId?: string;
|
|
23470
|
+
/**
|
|
23471
|
+
* When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal that a reported message has finished processing,
|
|
23472
|
+
* this property specifies any JSON data passed to the add-in's task pane after the message is processed.
|
|
23473
|
+
*
|
|
23474
|
+
* @remarks
|
|
23475
|
+
*
|
|
23476
|
+
* [Api set: Mailbox preview]
|
|
23477
|
+
*
|
|
23478
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **read item**
|
|
23479
|
+
*
|
|
23480
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
23481
|
+
*
|
|
23482
|
+
* **Important**:
|
|
23483
|
+
*
|
|
23484
|
+
* - The `contextData` option is currently in preview in Outlook on the web and on Windows (new and classic). To preview this feature in classic Outlook on Windows,
|
|
23485
|
+
* install Version 2411 (Build 18227.20034) or later. Then, join the
|
|
23486
|
+
* {@link https://techcommunity.microsoft.com/blog/microsoft365insiderblog/join-the-microsoft-365-insider-program-on-windows/4206638 | Microsoft 365 Insider program}
|
|
23487
|
+
* and select the **Beta Channel** option. To learn how to implement this in your spam-reporting add-in, see
|
|
23488
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting#open-a-task-pane-after-reporting-a-message-preview | Open a task pane after reporting a message (preview)}.
|
|
23489
|
+
*
|
|
23490
|
+
* - If you specify the `contextData` option in your `event.completed` call, you must also assign a task pane ID to the `commandId` option.
|
|
23491
|
+
* Otherwise, the JSON data assigned to `contextData` is ignored.
|
|
23492
|
+
*
|
|
23493
|
+
* - If you configure the `commandId` and `contextData` options in the `event.completed` call, a post-processing dialog isn't shown to the user
|
|
23494
|
+
* even if the `showPostProcessingDialog` option is specified in the call.
|
|
23495
|
+
*
|
|
23496
|
+
* - If you implement a task pane to open after a reported message is processed, when the `event.completed` call occurs, any task pane that's open or pinned is closed.
|
|
23497
|
+
*
|
|
23498
|
+
* - To retrieve the value of the `contextData` property, you must call `Office.context.mailbox.item.getInitializationContextAsync` in the JavaScript implementation
|
|
23499
|
+
* of your task pane. If you create a JSON string using `JSON.stringify()` and assign it to the `contextData` property, you must parse the string using
|
|
23500
|
+
* `JSON.parse()` once you retrieve it.
|
|
23501
|
+
*
|
|
23502
|
+
* @beta
|
|
23503
|
+
*/
|
|
23504
|
+
contextData?: any;
|
|
23438
23505
|
/**
|
|
23439
23506
|
* When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal that a reported message has finished processing,
|
|
23440
23507
|
* this property specifies the Outlook mailbox folder to which the message will be moved.
|
|
@@ -23477,6 +23544,9 @@ declare namespace Office {
|
|
|
23477
23544
|
* - If the property is set to `Office.MailboxEnums.MoveSpamItemTo.CustomFolder`, you must specify the name of the folder to which
|
|
23478
23545
|
* the message will be moved in the `folderName` property of the `event.completed` call. Otherwise, the `moveItemTo` property will default to
|
|
23479
23546
|
* `Office.MailboxEnums.MoveSpamItemTo.JunkFolder` and move the reported message to the **Junk Email** folder.
|
|
23547
|
+
*
|
|
23548
|
+
* - If you configure the `commandId` and `contextData` options in the `event.completed` call to open a task pane after a user selects the **Report** option from the preprocessing dialog,
|
|
23549
|
+
* you must set the `moveItemTo` option to `Office.MailboxEnums.MoveSpamItemTo.NoMove`. Otherwise, the task pane won't open.
|
|
23480
23550
|
*/
|
|
23481
23551
|
moveItemTo?: MailboxEnums.MoveSpamItemTo;
|
|
23482
23552
|
/**
|
|
@@ -23538,6 +23608,9 @@ declare namespace Office {
|
|
|
23538
23608
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **read item**
|
|
23539
23609
|
*
|
|
23540
23610
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
23611
|
+
*
|
|
23612
|
+
* **Important**: If you configure the `commandId` and `contextData` options in the `event.completed` call to open a task pane after a user selects the **Report** option from the preprocessing dialog,
|
|
23613
|
+
* a post-processing dialog isn't shown to the user. This behavior applies even if the `showPostProcessingDialog` is specified in the `event.completed` call.
|
|
23541
23614
|
*/
|
|
23542
23615
|
showPostProcessingDialog?: object;
|
|
23543
23616
|
}
|
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.565",
|
|
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": "896e9c26e25a4e3d2baf139a5d6e61f0fd591fef7b14211c3ead26d67904f132",
|
|
50
50
|
"typeScriptVersion": "5.0",
|
|
51
51
|
"nonNpm": true
|
|
52
52
|
}
|