@types/office-js 1.0.487 → 1.0.489

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: Tue, 01 Apr 2025 18:39:20 GMT
11
+ * Last updated: Mon, 14 Apr 2025 18:02:23 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
office-js/index.d.ts CHANGED
@@ -10368,6 +10368,9 @@ declare namespace Office {
10368
10368
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
10369
10369
  *
10370
10370
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
10371
+ *
10372
+ * **Important**: This property isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
10373
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
10371
10374
  */
10372
10375
  notificationMessages: NotificationMessages;
10373
10376
  /**
@@ -11933,6 +11936,9 @@ declare namespace Office {
11933
11936
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
11934
11937
  *
11935
11938
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
11939
+ *
11940
+ * **Important**: This property isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
11941
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
11936
11942
  */
11937
11943
  notificationMessages: NotificationMessages;
11938
11944
  /**
@@ -12757,6 +12763,21 @@ declare namespace Office {
12757
12763
  interface AttachmentDetailsCompose {
12758
12764
  /**
12759
12765
  * Gets a value that indicates the attachment's type.
12766
+ *
12767
+ * @remarks
12768
+ *
12769
+ * **Important**:
12770
+ *
12771
+ * - In Outlook on the web and new Outlook on Windows, a message or appointment that's locally saved then attached using
12772
+ * drag-and-drop or the **Attach Item** option is of type `Office.MailboxEnums.AttachmentType.File`. The file name extension is
12773
+ * returned in the `name` property. However, a message or appointment that's attached using the **Forward as Attachment** option
12774
+ * is of type `Office.MailboxEnums.AttachmentType.Item`. In this case, an extension isn't returned in the `name` property.
12775
+ *
12776
+ * - In classic Outlook on Windows, a message or appointment that's attached using drag-and-drop, **Attach File**, or
12777
+ * **Forward as Attachment** is of type `Office.MailboxEnums.AttachmentType.Item`. A file name extension isn't returned in the `name` property.
12778
+ *
12779
+ * - In Outlook on Mac, a message or appointment that's attached using drag-and-drop, **Attach Item**, or **Forward as Attachment** is of type
12780
+ * `Office.MailboxEnums.AttachmentType.File`. The file name extension is returned in the `name` property.
12760
12781
  */
12761
12782
  attachmentType: MailboxEnums.AttachmentType | string;
12762
12783
  /**
@@ -12770,8 +12791,23 @@ declare namespace Office {
12770
12791
  /**
12771
12792
  * Gets the name of the attachment.
12772
12793
  *
12773
- * **Important**: For message or appointment items that were attached by drag-and-drop or "Attach Item",
12774
- * `name` includes a file extension in Outlook on Mac, but excludes the extension on the web or on Windows.
12794
+ * @remarks
12795
+ *
12796
+ * **Important**:
12797
+ *
12798
+ * - An attachment of type `Office.MailboxEnums.AttachmentType.Item` doesn't return a file name extension in the `name` property.
12799
+ *
12800
+ * - In Outlook on the web and new Outlook on Windows, a message or appointment that's locally saved then attached using
12801
+ * drag-and-drop or the **Attach Item** option is of type `Office.MailboxEnums.AttachmentType.File`. The file name extension is
12802
+ * returned in the `name` property. However, a message or appointment that's attached using the **Forward as Attachment** option
12803
+ * is of type `Office.MailboxEnums.AttachmentType.Item`. In this case, an extension isn't returned in the `name` property.
12804
+ *
12805
+ * - In classic Outlook on Windows, a message or appointment that's attached using drag-and-drop, **Attach Item**, or
12806
+ * **Forward as Attachment** is of type `Office.MailboxEnums.AttachmentType.Item`. A file name extension isn't returned in the `name` property.
12807
+ * A calendar item that's attached
12808
+ *
12809
+ * - In Outlook on Mac, a message or appointment that's attached using drag-and-drop, **Attach Item**, or **Forward as Attachment** is of type
12810
+ * `Office.MailboxEnums.AttachmentType.File`. The file name extension is returned in the `name` property.
12775
12811
  */
12776
12812
  name: string;
12777
12813
  /**
@@ -12822,8 +12858,9 @@ declare namespace Office {
12822
12858
  /**
12823
12859
  * Gets the name of the attachment.
12824
12860
  *
12825
- * **Important**: For message or appointment items that were attached by drag-and-drop or "Attach Item",
12826
- * `name` includes a file extension in Outlook on Mac, but excludes the extension on the web or on Windows.
12861
+ * @remarks
12862
+ *
12863
+ * **Important**: An attachment of type `Office.MailboxEnums.AttachmentType.Item` doesn't return a file name extension in the `name` property.
12827
12864
  */
12828
12865
  name: string;
12829
12866
  /**
@@ -21033,6 +21070,10 @@ declare namespace Office {
21033
21070
  *
21034
21071
  * - To retrieve the JSON data, call `Office.context.mailboxitem.getInitializationContextAsync`. If you create a JSON string using
21035
21072
  * `JSON.stringify()` and assign it to the `contextData` property, you must parse the string using `JSON.parse()` once you retrieve it.
21073
+ *
21074
+ * - 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.
21075
+ * 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}
21076
+ * to the `contextData` property.
21036
21077
  */
21037
21078
  contextData: any;
21038
21079
  }
@@ -21054,21 +21095,30 @@ declare namespace Office {
21054
21095
  /**
21055
21096
  * Specifies the `ItemNotificationMessageType` of message.
21056
21097
  *
21057
- * If type is `ProgressIndicator` or `ErrorMessage`, an icon is automatically supplied
21058
- * and the message is not persistent. Therefore the icon and persistent properties are not valid for these types of messages.
21098
+ * @remarks
21099
+ *
21100
+ * **Important**:
21101
+ *
21102
+ * - For the `ProgressIndicator` or `ErrorMessage` types, an icon is automatically supplied
21103
+ * and the message isn't persistent. Therefore, the icon and persistent properties aren't valid for these types of messages.
21059
21104
  * Including them will result in an `ArgumentException`.
21060
21105
  *
21061
- * If type is `ProgressIndicator`, the developer should remove or replace the progress indicator when the action is complete.
21062
- *
21063
- * **Important**: Only the `InformationalMessage` type is supported in Outlook on Android and on iOS.
21106
+ * - For the `ProgressIndicator` type, you should remove or replace the progress indicator when the action is complete.
21107
+ *
21108
+ * - In Outlook on Android and on iOS, only the `ProgressIndicator`, `InformationalMessage`, and `ErrorMessage` notification types are supported.
21109
+ *
21110
+ * - In compose mode, while the style of each notification type varies on other Outlook clients, notifications in Outlook on Android and on iOS
21111
+ * all use the same style. The notification message is always prefixed with an informational icon.
21064
21112
  */
21065
21113
  type: MailboxEnums.ItemNotificationMessageType | string;
21066
21114
  /**
21067
- * A reference to an icon that is defined in the manifest. It appears in the infobar area.
21068
- * It is applicable if the type is `InformationalMessage`, and is required if the type is `InsightMessage`.
21115
+ * A reference to an icon that's defined in the manifest. It appears in the infobar area.
21116
+ * It's applicable if the type is `InformationalMessage`, and is required if the type is `InsightMessage`.
21069
21117
  * Specifying this parameter for an unsupported type results in an exception.
21070
21118
  *
21071
- * **Note**: At present, the custom icon is displayed in Outlook on Windows only and not on other clients (e.g., Mac, web browser).
21119
+ * @remarks
21120
+ *
21121
+ * **Important**: Currently, the custom icon is only displayed in classic Outlook on Windows.
21072
21122
  */
21073
21123
  icon?: string;
21074
21124
  /**
@@ -21113,8 +21163,6 @@ declare namespace Office {
21113
21163
  /**
21114
21164
  * Adds a notification to an item.
21115
21165
  *
21116
- * There are a maximum of 5 notifications per message. Setting more will return a `NumberOfNotificationMessagesExceeded` error.
21117
- *
21118
21166
  * @remarks
21119
21167
  * [Api set: Mailbox 1.3]
21120
21168
  *
@@ -21124,13 +21172,20 @@ declare namespace Office {
21124
21172
  *
21125
21173
  * **Important**:
21126
21174
  *
21175
+ * - In Outlook on the web, on Windows (new and classic), and on Mac, you can set a maximum of five notifications per message.
21176
+ * Setting more returns a `NumberOfNotificationMessagesExceeded` error. In Outlook on Android and on iOS, you can only set one notification per message.
21177
+ * Setting an additional notification replaces the previous one.
21178
+ *
21127
21179
  * - Only one notification of type {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxenums.itemnotificationmessagetype#fields | InsightMessage}
21128
21180
  * is allowed per add-in. Attempting to add more will throw an error.
21129
21181
  *
21130
21182
  * - In modern Outlook on the web and {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows},
21131
21183
  * you can add an `InsightMessage` notification only in Compose mode.
21132
21184
  *
21133
- * - Only the `InformationalMessage` type is supported in Outlook on Android and on iOS.
21185
+ * - In Outlook on Android and on iOS, only the `ProgressIndicator`, `InformationalMessage`, and `ErrorMessage` notification types are supported.
21186
+ *
21187
+ * - In compose mode, while the style of each notification type varies on other Outlook clients, notifications in Outlook on Android and on iOS
21188
+ * all use the same style. The notification message is always prefixed with an informational icon.
21134
21189
  *
21135
21190
  * @param key - A developer-specified key used to reference this notification message.
21136
21191
  * Developers can use it to modify this message later. It can't be longer than 32 characters.
@@ -21145,8 +21200,6 @@ declare namespace Office {
21145
21200
  /**
21146
21201
  * Adds a notification to an item.
21147
21202
  *
21148
- * There are a maximum of 5 notifications per message. Setting more will return a `NumberOfNotificationMessagesExceeded` error.
21149
- *
21150
21203
  * @remarks
21151
21204
  * [Api set: Mailbox 1.3]
21152
21205
  *
@@ -21156,13 +21209,20 @@ declare namespace Office {
21156
21209
  *
21157
21210
  * **Important**:
21158
21211
  *
21212
+ * - In Outlook on the web, on Windows (new and classic), and on Mac, you can set a maximum of five notifications per message.
21213
+ * Setting more returns a `NumberOfNotificationMessagesExceeded` error. In Outlook on Android and on iOS, you can only set one notification per message.
21214
+ * Setting an additional notification replaces the previous one.
21215
+ *
21159
21216
  * - Only one notification of type {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxenums.itemnotificationmessagetype#fields | InsightMessage}
21160
21217
  * is allowed per add-in. Attempting to add more will throw an error.
21161
21218
  *
21162
21219
  * - In modern Outlook on the web and {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows},
21163
21220
  * you can add an `InsightMessage` notification only in Compose mode.
21164
21221
  *
21165
- * - Only the `InformationalMessage` type is supported in Outlook on Android and on iOS.
21222
+ * - In Outlook on Android and on iOS, only the `ProgressIndicator`, `InformationalMessage`, and `ErrorMessage` notification types are supported.
21223
+ *
21224
+ * - In compose mode, while the style of each notification type varies on other Outlook clients, notifications in Outlook on Android and on iOS
21225
+ * all use the same style. The notification message is always prefixed with an informational icon.
21166
21226
  *
21167
21227
  * @param key - A developer-specified key used to reference this notification message.
21168
21228
  * Developers can use it to modify this message later. It can't be longer than 32 characters.
@@ -23119,6 +23179,10 @@ declare namespace Office {
23119
23179
  *
23120
23180
  * - 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.
23121
23181
  * Use the `contextData` option to distinguish when a user runs the function from the Smart Alerts dialog.
23182
+ *
23183
+ * - 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.
23184
+ * 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}
23185
+ * to the `contextData` property.
23122
23186
  */
23123
23187
  contextData?: any;
23124
23188
  /**
@@ -23298,6 +23362,10 @@ declare namespace Office {
23298
23362
  *
23299
23363
  * - 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.
23300
23364
  *
23365
+ * - 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.
23366
+ * 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}
23367
+ * to the `contextData` property.
23368
+ *
23301
23369
  * - To retrieve the value of the `contextData` property, you must call `Office.context.mailbox.item.getInitializationContextAsync` in the JavaScript implementation
23302
23370
  * 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
23303
23371
  * `JSON.parse()` once you retrieve it.
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.487",
3
+ "version": "1.0.489",
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": "24f3ecc1bfac4591486e788bb5c5f4ed9a9344d0013e671c9c24eb84385cf12c",
49
+ "typesPublisherContentHash": "baef25f87a885143e94e10938b818e7528f5520c6e1aff719d3b78361dd91333",
50
50
  "typeScriptVersion": "5.1"
51
51
  }