@types/office-js-preview 1.0.579 → 1.0.581
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 +84 -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: Mon, 14 Apr 2025 18:02:23 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -10433,6 +10433,9 @@ declare namespace Office {
|
|
|
10433
10433
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
10434
10434
|
*
|
|
10435
10435
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10436
|
+
*
|
|
10437
|
+
* **Important**: This property isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
|
|
10438
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
10436
10439
|
*/
|
|
10437
10440
|
notificationMessages: NotificationMessages;
|
|
10438
10441
|
/**
|
|
@@ -12007,6 +12010,9 @@ declare namespace Office {
|
|
|
12007
12010
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
|
|
12008
12011
|
*
|
|
12009
12012
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
|
|
12013
|
+
*
|
|
12014
|
+
* **Important**: This property isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
|
|
12015
|
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
12010
12016
|
*/
|
|
12011
12017
|
notificationMessages: NotificationMessages;
|
|
12012
12018
|
/**
|
|
@@ -12844,6 +12850,21 @@ declare namespace Office {
|
|
|
12844
12850
|
interface AttachmentDetailsCompose {
|
|
12845
12851
|
/**
|
|
12846
12852
|
* Gets a value that indicates the attachment's type.
|
|
12853
|
+
*
|
|
12854
|
+
* @remarks
|
|
12855
|
+
*
|
|
12856
|
+
* **Important**:
|
|
12857
|
+
*
|
|
12858
|
+
* - In Outlook on the web and new Outlook on Windows, a message or appointment that's locally saved then attached using
|
|
12859
|
+
* drag-and-drop or the **Attach Item** option is of type `Office.MailboxEnums.AttachmentType.File`. The file name extension is
|
|
12860
|
+
* returned in the `name` property. However, a message or appointment that's attached using the **Forward as Attachment** option
|
|
12861
|
+
* is of type `Office.MailboxEnums.AttachmentType.Item`. In this case, an extension isn't returned in the `name` property.
|
|
12862
|
+
*
|
|
12863
|
+
* - In classic Outlook on Windows, a message or appointment that's attached using drag-and-drop, **Attach File**, or
|
|
12864
|
+
* **Forward as Attachment** is of type `Office.MailboxEnums.AttachmentType.Item`. A file name extension isn't returned in the `name` property.
|
|
12865
|
+
*
|
|
12866
|
+
* - In Outlook on Mac, a message or appointment that's attached using drag-and-drop, **Attach Item**, or **Forward as Attachment** is of type
|
|
12867
|
+
* `Office.MailboxEnums.AttachmentType.File`. The file name extension is returned in the `name` property.
|
|
12847
12868
|
*/
|
|
12848
12869
|
attachmentType: MailboxEnums.AttachmentType | string;
|
|
12849
12870
|
/**
|
|
@@ -12857,8 +12878,22 @@ declare namespace Office {
|
|
|
12857
12878
|
/**
|
|
12858
12879
|
* Gets the name of the attachment.
|
|
12859
12880
|
*
|
|
12860
|
-
*
|
|
12861
|
-
*
|
|
12881
|
+
* @remarks
|
|
12882
|
+
*
|
|
12883
|
+
* **Important**:
|
|
12884
|
+
*
|
|
12885
|
+
* - An attachment of type `Office.MailboxEnums.AttachmentType.Item` doesn't return a file name extension in the `name` property.
|
|
12886
|
+
*
|
|
12887
|
+
* - In Outlook on the web and new Outlook on Windows, a message or appointment that's locally saved then attached using
|
|
12888
|
+
* drag-and-drop or the **Attach Item** option is of type `Office.MailboxEnums.AttachmentType.File`. The file name extension is
|
|
12889
|
+
* returned in the `name` property. However, a message or appointment that's attached using the **Forward as Attachment** option
|
|
12890
|
+
* is of type `Office.MailboxEnums.AttachmentType.Item`. In this case, an extension isn't returned in the `name` property.
|
|
12891
|
+
*
|
|
12892
|
+
* - In classic Outlook on Windows, a message or appointment that's attached using drag-and-drop, **Attach File**, or
|
|
12893
|
+
* **Forward as Attachment** is of type `Office.MailboxEnums.AttachmentType.Item`. A file name extension isn't returned in the `name` property.
|
|
12894
|
+
*
|
|
12895
|
+
* - In Outlook on Mac, a message or appointment that's attached using drag-and-drop, **Attach Item**, or **Forward as Attachment** is of type
|
|
12896
|
+
* `Office.MailboxEnums.AttachmentType.File`. The file name extension is returned in the `name` property.
|
|
12862
12897
|
*/
|
|
12863
12898
|
name: string;
|
|
12864
12899
|
/**
|
|
@@ -12909,8 +12944,9 @@ declare namespace Office {
|
|
|
12909
12944
|
/**
|
|
12910
12945
|
* Gets the name of the attachment.
|
|
12911
12946
|
*
|
|
12912
|
-
*
|
|
12913
|
-
*
|
|
12947
|
+
* @remarks
|
|
12948
|
+
*
|
|
12949
|
+
* **Important**: An attachment of type `Office.MailboxEnums.AttachmentType.Item` doesn't return a file name extension in the `name` property.
|
|
12914
12950
|
*/
|
|
12915
12951
|
name: string;
|
|
12916
12952
|
/**
|
|
@@ -21499,6 +21535,10 @@ declare namespace Office {
|
|
|
21499
21535
|
*
|
|
21500
21536
|
* - To retrieve the JSON data, call `Office.context.mailboxitem.getInitializationContextAsync`. If you create a JSON string using
|
|
21501
21537
|
* `JSON.stringify()` and assign it to the `contextData` property, you must parse the string using `JSON.parse()` once you retrieve it.
|
|
21538
|
+
*
|
|
21539
|
+
* - To prevent the task pane of a notification message from relaunching if it's already open, implement a handler for the `Office.EventType.InitializationContextChanged` event.
|
|
21540
|
+
* You can then pass the {@link https://learn.microsoft.com/javascript/api/outlook/office.initializationcontextchangedeventargs?view=outlook-js-1.15&preserve-view=true | event arguments}
|
|
21541
|
+
* to the `contextData` property.
|
|
21502
21542
|
*/
|
|
21503
21543
|
contextData: any;
|
|
21504
21544
|
}
|
|
@@ -21520,21 +21560,30 @@ declare namespace Office {
|
|
|
21520
21560
|
/**
|
|
21521
21561
|
* Specifies the `ItemNotificationMessageType` of message.
|
|
21522
21562
|
*
|
|
21523
|
-
*
|
|
21524
|
-
*
|
|
21563
|
+
* @remarks
|
|
21564
|
+
*
|
|
21565
|
+
* **Important**:
|
|
21566
|
+
*
|
|
21567
|
+
* - For the `ProgressIndicator` or `ErrorMessage` types, an icon is automatically supplied
|
|
21568
|
+
* and the message isn't persistent. Therefore, the icon and persistent properties aren't valid for these types of messages.
|
|
21525
21569
|
* Including them will result in an `ArgumentException`.
|
|
21526
21570
|
*
|
|
21527
|
-
*
|
|
21571
|
+
* - For the `ProgressIndicator` type, you should remove or replace the progress indicator when the action is complete.
|
|
21528
21572
|
*
|
|
21529
|
-
*
|
|
21573
|
+
* - In Outlook on Android and on iOS, only the `ProgressIndicator`, `InformationalMessage`, and `ErrorMessage` notification types are supported.
|
|
21574
|
+
*
|
|
21575
|
+
* - In compose mode, while the style of each notification type varies on other Outlook clients, notifications in Outlook on Android and on iOS
|
|
21576
|
+
* all use the same style. The notification message is always prefixed with an informational icon.
|
|
21530
21577
|
*/
|
|
21531
21578
|
type: MailboxEnums.ItemNotificationMessageType | string;
|
|
21532
21579
|
/**
|
|
21533
|
-
* A reference to an icon that
|
|
21534
|
-
* It
|
|
21580
|
+
* A reference to an icon that's defined in the manifest. It appears in the infobar area.
|
|
21581
|
+
* It's applicable if the type is `InformationalMessage`, and is required if the type is `InsightMessage`.
|
|
21535
21582
|
* Specifying this parameter for an unsupported type results in an exception.
|
|
21536
21583
|
*
|
|
21537
|
-
*
|
|
21584
|
+
* @remarks
|
|
21585
|
+
*
|
|
21586
|
+
* **Important**: Currently, the custom icon is only displayed in classic Outlook on Windows.
|
|
21538
21587
|
*/
|
|
21539
21588
|
icon?: string;
|
|
21540
21589
|
/**
|
|
@@ -21579,8 +21628,6 @@ declare namespace Office {
|
|
|
21579
21628
|
/**
|
|
21580
21629
|
* Adds a notification to an item.
|
|
21581
21630
|
*
|
|
21582
|
-
* There are a maximum of 5 notifications per message. Setting more will return a `NumberOfNotificationMessagesExceeded` error.
|
|
21583
|
-
*
|
|
21584
21631
|
* @remarks
|
|
21585
21632
|
* [Api set: Mailbox 1.3]
|
|
21586
21633
|
*
|
|
@@ -21590,13 +21637,20 @@ declare namespace Office {
|
|
|
21590
21637
|
*
|
|
21591
21638
|
* **Important**:
|
|
21592
21639
|
*
|
|
21640
|
+
* - In Outlook on the web, on Windows (new and classic), and on Mac, you can set a maximum of five notifications per message.
|
|
21641
|
+
* Setting more returns a `NumberOfNotificationMessagesExceeded` error. In Outlook on Android and on iOS, you can only set one notification per message.
|
|
21642
|
+
* Setting an additional notification replaces the previous one.
|
|
21643
|
+
*
|
|
21593
21644
|
* - Only one notification of type {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxenums.itemnotificationmessagetype#fields | InsightMessage}
|
|
21594
21645
|
* is allowed per add-in. Attempting to add more will throw an error.
|
|
21595
21646
|
*
|
|
21596
21647
|
* - In modern Outlook on the web and {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows},
|
|
21597
21648
|
* you can add an `InsightMessage` notification only in Compose mode.
|
|
21598
21649
|
*
|
|
21599
|
-
* -
|
|
21650
|
+
* - In Outlook on Android and on iOS, only the `ProgressIndicator`, `InformationalMessage`, and `ErrorMessage` notification types are supported.
|
|
21651
|
+
*
|
|
21652
|
+
* - In compose mode, while the style of each notification type varies on other Outlook clients, notifications in Outlook on Android and on iOS
|
|
21653
|
+
* all use the same style. The notification message is always prefixed with an informational icon.
|
|
21600
21654
|
*
|
|
21601
21655
|
* - The `addAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
|
|
21602
21656
|
* 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}.
|
|
@@ -21614,8 +21668,6 @@ declare namespace Office {
|
|
|
21614
21668
|
/**
|
|
21615
21669
|
* Adds a notification to an item.
|
|
21616
21670
|
*
|
|
21617
|
-
* There are a maximum of 5 notifications per message. Setting more will return a `NumberOfNotificationMessagesExceeded` error.
|
|
21618
|
-
*
|
|
21619
21671
|
* @remarks
|
|
21620
21672
|
* [Api set: Mailbox 1.3]
|
|
21621
21673
|
*
|
|
@@ -21625,13 +21677,20 @@ declare namespace Office {
|
|
|
21625
21677
|
*
|
|
21626
21678
|
* **Important**:
|
|
21627
21679
|
*
|
|
21680
|
+
* - In Outlook on the web, on Windows (new and classic), and on Mac, you can set a maximum of five notifications per message.
|
|
21681
|
+
* Setting more returns a `NumberOfNotificationMessagesExceeded` error. In Outlook on Android and on iOS, you can only set one notification per message.
|
|
21682
|
+
* Setting an additional notification replaces the previous one.
|
|
21683
|
+
*
|
|
21628
21684
|
* - Only one notification of type {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxenums.itemnotificationmessagetype#fields | InsightMessage}
|
|
21629
21685
|
* is allowed per add-in. Attempting to add more will throw an error.
|
|
21630
21686
|
*
|
|
21631
21687
|
* - In modern Outlook on the web and {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows},
|
|
21632
21688
|
* you can add an `InsightMessage` notification only in Compose mode.
|
|
21633
21689
|
*
|
|
21634
|
-
* -
|
|
21690
|
+
* - In Outlook on Android and on iOS, only the `ProgressIndicator`, `InformationalMessage`, and `ErrorMessage` notification types are supported.
|
|
21691
|
+
*
|
|
21692
|
+
* - In compose mode, while the style of each notification type varies on other Outlook clients, notifications in Outlook on Android and on iOS
|
|
21693
|
+
* all use the same style. The notification message is always prefixed with an informational icon.
|
|
21635
21694
|
*
|
|
21636
21695
|
* - The `addAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
|
|
21637
21696
|
* 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}.
|
|
@@ -23644,6 +23703,10 @@ declare namespace Office {
|
|
|
23644
23703
|
*
|
|
23645
23704
|
* - When you configure a button in the Smart Alerts dialog to run a function, a button for the function is also added to the ribbon or action bar of the Outlook client.
|
|
23646
23705
|
* Use the `contextData` option to distinguish when a user runs the function from the Smart Alerts dialog.
|
|
23706
|
+
*
|
|
23707
|
+
* - To prevent the task pane of a Smart Alerts add-in from relaunching if it's already open, implement a handler for the `Office.EventType.InitializationContextChanged` event.
|
|
23708
|
+
* You can then pass the {@link https://learn.microsoft.com/javascript/api/outlook/office.initializationcontextchangedeventargs?view=outlook-js-1.15&preserve-view=true | event arguments}
|
|
23709
|
+
* to the `contextData` property.
|
|
23647
23710
|
*/
|
|
23648
23711
|
contextData?: any;
|
|
23649
23712
|
/**
|
|
@@ -23823,6 +23886,10 @@ declare namespace Office {
|
|
|
23823
23886
|
*
|
|
23824
23887
|
* - 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.
|
|
23825
23888
|
*
|
|
23889
|
+
* - To prevent the task pane of a spam-reporting add-in from relaunching if it's already open, implement a handler for the `Office.EventType.InitializationContextChanged` event.
|
|
23890
|
+
* You can then pass the {@link https://learn.microsoft.com/javascript/api/outlook/office.initializationcontextchangedeventargs?view=outlook-js-1.15&preserve-view=true | event arguments}
|
|
23891
|
+
* to the `contextData` property.
|
|
23892
|
+
*
|
|
23826
23893
|
* - To retrieve the value of the `contextData` property, you must call `Office.context.mailbox.item.getInitializationContextAsync` in the JavaScript implementation
|
|
23827
23894
|
* 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
|
|
23828
23895
|
* `JSON.parse()` once you retrieve it.
|
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.581",
|
|
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": "8d7daadd2fa671c5c307604df6832d22c441817c290570338e4564253191c58d",
|
|
50
50
|
"typeScriptVersion": "5.1",
|
|
51
51
|
"nonNpm": true
|
|
52
52
|
}
|