Skip to content

Commit 9bb9aab

Browse files
[office-js][office-js-preview] (Outlook) Clarify the description of the Office.NotificationMessageDetails.icon property (DefinitelyTyped#72799)
1 parent ebaed3d commit 9bb9aab

File tree

2 files changed

+102
-14
lines changed

2 files changed

+102
-14
lines changed

types/office-js-preview/index.d.ts

Lines changed: 51 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10432,7 +10432,12 @@ declare namespace Office {
1043210432
*
1043310433
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
1043410434
*
10435-
* **Important**: This property isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
10435+
* **Important**:
10436+
*
10437+
* - To learn about the different types of notification messages you can implement, see
10438+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
10439+
*
10440+
* - This property isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
1043610441
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
1043710442
*/
1043810443
notificationMessages: NotificationMessages;
@@ -12009,7 +12014,12 @@ declare namespace Office {
1200912014
*
1201012015
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
1201112016
*
12012-
* **Important**: This property isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
12017+
* **Important**:
12018+
*
12019+
* - To learn about the different types of notification messages you can implement, see
12020+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
12021+
*
12022+
* - This property isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
1201312023
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
1201412024
*/
1201512025
notificationMessages: NotificationMessages;
@@ -15363,7 +15373,12 @@ declare namespace Office {
1536315373
*
1536415374
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
1536515375
*
15366-
* **Important**: Only the `getAllAsync` method of the NotificationMessages object is supported.
15376+
* **Important**:
15377+
*
15378+
* - To learn about the different types of notification messages you can implement, see
15379+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
15380+
*
15381+
* - Only the `getAllAsync` method of the NotificationMessages object is supported.
1536715382
*/
1536815383
notificationMessages: NotificationMessages;
1536915384
/**
@@ -16385,6 +16400,9 @@ declare namespace Office {
1638516400
*
1638616401
* **Important**:
1638716402
*
16403+
* - To learn about the different types of notification messages you can implement, see
16404+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
16405+
*
1638816406
* - Only the `getAllAsync` method of the NotificationMessages object is supported.
1638916407
*/
1639016408
notificationMessages: NotificationMessages;
@@ -18815,6 +18833,9 @@ declare namespace Office {
1881518833
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
1881618834
*
1881718835
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
18836+
*
18837+
* **Important**: To learn about the different types of notification messages you can implement, see
18838+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
1881818839
*/
1881918840
notificationMessages: NotificationMessages;
1882018841
/**
@@ -20553,6 +20574,9 @@ declare namespace Office {
2055320574
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
2055420575
*
2055520576
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
20577+
*
20578+
* **Important**: To learn about the different types of notification messages you can implement, see
20579+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
2055620580
*/
2055720581
notificationMessages: NotificationMessages;
2055820582
/**
@@ -21506,6 +21530,9 @@ declare namespace Office {
2150621530
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
2150721531
*
2150821532
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
21533+
*
21534+
* **Important**: To learn about the different types of notification messages you can implement, see
21535+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
2150921536
*/
2151021537
interface NotificationMessageDetails {
2151121538
/**
@@ -21532,13 +21559,27 @@ declare namespace Office {
2153221559
*/
2153321560
type: MailboxEnums.ItemNotificationMessageType | string;
2153421561
/**
21535-
* A reference to an icon that's defined in the manifest. It appears in the infobar area.
21536-
* It's applicable if the type is `InformationalMessage`, and is required if the type is `InsightMessage`.
21537-
* Specifying this parameter for an unsupported type results in an exception.
21562+
* A reference to a custom icon that's defined in the manifest. The icon appears before the notification message in the infobar area.
21563+
* An icon must be specified for `InformationalMessage` and `InsightMessage` notifications.
2153821564
*
2153921565
* @remarks
2154021566
*
21541-
* **Important**: Currently, the custom icon is only displayed in classic Outlook on Windows.
21567+
* **Important**:
21568+
*
21569+
* - Currently, the custom icon is only displayed in classic Outlook on Windows.
21570+
*
21571+
* - A custom icon is only supported in `InformationalMessage` and `InsightMessage` notifications. Specifying an icon for other notification
21572+
* types results in an exception.
21573+
*
21574+
* - If your add-in uses the {@link https://learn.microsoft.com/office/dev/add-ins/develop/add-in-manifests | add-in only manifest}, the icon
21575+
* must be specified in the {@link https://learn.microsoft.com/javascript/api/manifest/images | Images} element of the
21576+
* {@link https://learn.microsoft.com/javascript/api/manifest/resources | Resources} section of the manifest.
21577+
*
21578+
* - If your add-in uses the {@link https://learn.microsoft.com/office/dev/add-ins/develop/unified-manifest-overview | unified manifest for Microsoft 365},
21579+
* you can't currently customize the icon of an `InformationalMessage` or `InsightMessage` notification. The notification uses the first image specified in the
21580+
* {@link https://learn.microsoft.com/microsoft-365/extensibility/schema/extension-common-icon | "icons"} array of the first
21581+
* {@link https://learn.microsoft.com/microsoft-365/extensibility/schema/extension-common-custom-group-controls-item | extensions.ribbons.tabs.groups.controls} object
21582+
* of the manifest. Although this is the case, you must still specify a string in the `icon` property (for example, "icon-16").
2154221583
*/
2154321584
icon?: string;
2154421585
/**
@@ -21578,6 +21619,9 @@ declare namespace Office {
2157821619
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
2157921620
*
2158021621
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
21622+
*
21623+
* **Important**: To learn about the different types of notification messages you can implement, see
21624+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
2158121625
*/
2158221626
interface NotificationMessages {
2158321627
/**

types/office-js/index.d.ts

Lines changed: 51 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10367,7 +10367,12 @@ declare namespace Office {
1036710367
*
1036810368
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
1036910369
*
10370-
* **Important**: This property isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
10370+
* **Important**:
10371+
*
10372+
* - To learn about the different types of notification messages you can implement, see
10373+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
10374+
*
10375+
* - This property isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
1037110376
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
1037210377
*/
1037310378
notificationMessages: NotificationMessages;
@@ -11935,7 +11940,12 @@ declare namespace Office {
1193511940
*
1193611941
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
1193711942
*
11938-
* **Important**: This property isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
11943+
* **Important**:
11944+
*
11945+
* - To learn about the different types of notification messages you can implement, see
11946+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
11947+
*
11948+
* - This property isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
1193911949
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
1194011950
*/
1194111951
notificationMessages: NotificationMessages;
@@ -15102,7 +15112,12 @@ declare namespace Office {
1510215112
*
1510315113
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
1510415114
*
15105-
* **Important**: Only the `getAllAsync` method of the NotificationMessages object is supported.
15115+
* **Important**:
15116+
*
15117+
* - To learn about the different types of notification messages you can implement, see
15118+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
15119+
*
15120+
* - Only the `getAllAsync` method of the NotificationMessages object is supported.
1510615121
*/
1510715122
notificationMessages: NotificationMessages;
1510815123
/**
@@ -16103,6 +16118,9 @@ declare namespace Office {
1610316118
*
1610416119
* **Important**:
1610516120
*
16121+
* - To learn about the different types of notification messages you can implement, see
16122+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
16123+
*
1610616124
* - Only the `getAllAsync` method of the NotificationMessages object is supported.
1610716125
*/
1610816126
notificationMessages: NotificationMessages;
@@ -18520,6 +18538,9 @@ declare namespace Office {
1852018538
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
1852118539
*
1852218540
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
18541+
*
18542+
* **Important**: To learn about the different types of notification messages you can implement, see
18543+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
1852318544
*/
1852418545
notificationMessages: NotificationMessages;
1852518546
/**
@@ -20246,6 +20267,9 @@ declare namespace Office {
2024620267
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
2024720268
*
2024820269
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
20270+
*
20271+
* **Important**: To learn about the different types of notification messages you can implement, see
20272+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
2024920273
*/
2025020274
notificationMessages: NotificationMessages;
2025120275
/**
@@ -21109,6 +21133,9 @@ declare namespace Office {
2110921133
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
2111021134
*
2111121135
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
21136+
*
21137+
* **Important**: To learn about the different types of notification messages you can implement, see
21138+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
2111221139
*/
2111321140
interface NotificationMessageDetails {
2111421141
/**
@@ -21135,13 +21162,27 @@ declare namespace Office {
2113521162
*/
2113621163
type: MailboxEnums.ItemNotificationMessageType | string;
2113721164
/**
21138-
* A reference to an icon that's defined in the manifest. It appears in the infobar area.
21139-
* It's applicable if the type is `InformationalMessage`, and is required if the type is `InsightMessage`.
21140-
* Specifying this parameter for an unsupported type results in an exception.
21165+
* A reference to a custom icon that's defined in the manifest. The icon appears before the notification message in the infobar area.
21166+
* An icon must be specified for `InformationalMessage` and `InsightMessage` notifications.
2114121167
*
2114221168
* @remarks
2114321169
*
21144-
* **Important**: Currently, the custom icon is only displayed in classic Outlook on Windows.
21170+
* **Important**:
21171+
*
21172+
* - Currently, the custom icon is only displayed in classic Outlook on Windows.
21173+
*
21174+
* - A custom icon is only supported in `InformationalMessage` and `InsightMessage` notifications. Specifying an icon for other notification
21175+
* types results in an exception.
21176+
*
21177+
* - If your add-in uses the {@link https://learn.microsoft.com/office/dev/add-ins/develop/add-in-manifests | add-in only manifest}, the icon
21178+
* must be specified in the {@link https://learn.microsoft.com/javascript/api/manifest/images | Images} element of the
21179+
* {@link https://learn.microsoft.com/javascript/api/manifest/resources | Resources} section of the manifest.
21180+
*
21181+
* - If your add-in uses the {@link https://learn.microsoft.com/office/dev/add-ins/develop/unified-manifest-overview | unified manifest for Microsoft 365},
21182+
* you can't currently customize the icon of an `InformationalMessage` or `InsightMessage` notification. The notification uses the first image specified in the
21183+
* {@link https://learn.microsoft.com/microsoft-365/extensibility/schema/extension-common-icon | "icons"} array of the first
21184+
* {@link https://learn.microsoft.com/microsoft-365/extensibility/schema/extension-common-custom-group-controls-item | extensions.ribbons.tabs.groups.controls} object
21185+
* of the manifest. Although this is the case, you must still specify a string in the `icon` property (for example, "icon-16").
2114521186
*/
2114621187
icon?: string;
2114721188
/**
@@ -21181,6 +21222,9 @@ declare namespace Office {
2118121222
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
2118221223
*
2118321224
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
21225+
*
21226+
* **Important**: To learn about the different types of notification messages you can implement, see
21227+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/notifications | Create notifications for your Outlook add-in}.
2118421228
*/
2118521229
interface NotificationMessages {
2118621230
/**

0 commit comments

Comments
 (0)