Skip to content

Commit a0fbbc4

Browse files
[office-js][office-js-preview] (Outlook) Document Recipients API behaviors (DefinitelyTyped#75186)
1 parent ba171c8 commit a0fbbc4

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23432,6 +23432,14 @@ declare namespace Office {
2343223432
* The `addAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
2343323433
* 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}.
2343423434
*
23435+
* All Outlook clients use regular expression rules to resolve email addresses in recipient fields.
23436+
*
23437+
* In Outlook on the web and the new Outlook on Windows, `addAsync` and `setAsync` add both resolved and unresolved email addresses to recipient fields.
23438+
* However, unresolved email addresses prevent an item from being sent until they are resolved or successfully validated.
23439+
* If unresolved recipients are added by a Smart Alerts add-in to any recipient field, the send operation is blocked and an error notification is displayed.
23440+
* The error notification identifies the add-in that added the unresolved recipients and lists the affected email addresses.
23441+
* If a Smart Alerts dialog is shown after selecting **Send**, the error notification is displayed after the dialog is dismissed (by selecting **Send Anyway** or **Don't Send**, or by closing the dialog).
23442+
*
2343523443
* **Errors**:
2343623444
*
2343723445
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
@@ -23473,6 +23481,14 @@ declare namespace Office {
2347323481
* The `addAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
2347423482
* 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}.
2347523483
*
23484+
* All Outlook clients use regular expression rules to resolve email addresses in recipient fields.
23485+
*
23486+
* In Outlook on the web and the new Outlook on Windows, `addAsync` and `setAsync` add both resolved and unresolved email addresses to recipient fields.
23487+
* However, unresolved email addresses prevent an item from being sent until they are resolved or successfully validated.
23488+
* If unresolved recipients are added by a Smart Alerts add-in to any recipient field, the send operation is blocked and an error notification is displayed.
23489+
* The error notification identifies the add-in that added the unresolved recipients and lists the affected email addresses.
23490+
* If a Smart Alerts dialog is shown after selecting **Send**, the error notification is displayed after the dialog is dismissed (by selecting **Send Anyway** or **Don't Send**, or by closing the dialog).
23491+
*
2347623492
* **Errors**:
2347723493
*
2347823494
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
@@ -23621,6 +23637,14 @@ declare namespace Office {
2362123637
* The `setAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
2362223638
* 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}.
2362323639
*
23640+
* All Outlook clients use regular expression rules to resolve email addresses in recipient fields.
23641+
*
23642+
* In Outlook on the web and the new Outlook on Windows, `addAsync` and `setAsync` add both resolved and unresolved email addresses to recipient fields.
23643+
* However, unresolved email addresses prevent an item from being sent until they are resolved or successfully validated.
23644+
* If unresolved recipients are added by a Smart Alerts add-in to any recipient field, the send operation is blocked and an error notification is displayed.
23645+
* The error notification identifies the add-in that added the unresolved recipients and lists the affected email addresses.
23646+
* If a Smart Alerts dialog is shown after selecting **Send**, the error notification is displayed after the dialog is dismissed (by selecting **Send Anyway** or **Don't Send**, or by closing the dialog).
23647+
*
2362423648
* **Errors**:
2362523649
*
2362623650
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
@@ -23665,6 +23689,14 @@ declare namespace Office {
2366523689
* The `setAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
2366623690
* 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}.
2366723691
*
23692+
* All Outlook clients use regular expression rules to resolve email addresses in recipient fields.
23693+
*
23694+
* In Outlook on the web and the new Outlook on Windows, `addAsync` and `setAsync` add both resolved and unresolved email addresses to recipient fields.
23695+
* However, unresolved email addresses prevent an item from being sent until they are resolved or successfully validated.
23696+
* If unresolved recipients are added by a Smart Alerts add-in to any recipient field, the send operation is blocked and an error notification is displayed.
23697+
* The error notification identifies the add-in that added the unresolved recipients and lists the affected email addresses.
23698+
* If a Smart Alerts dialog is shown after selecting **Send**, the error notification is displayed after the dialog is dismissed (by selecting **Send Anyway** or **Don't Send**, or by closing the dialog).
23699+
*
2366823700
* **Errors**:
2366923701
*
2367023702
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.

types/office-js/index.d.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23075,6 +23075,14 @@ declare namespace Office {
2307523075
* The `addAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
2307623076
* 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}.
2307723077
*
23078+
* All Outlook clients use regular expression rules to resolve email addresses in recipient fields.
23079+
*
23080+
* In Outlook on the web and the new Outlook on Windows, `addAsync` and `setAsync` add both resolved and unresolved email addresses to recipient fields.
23081+
* However, unresolved email addresses prevent an item from being sent until they are resolved or successfully validated.
23082+
* If unresolved recipients are added by a Smart Alerts add-in to any recipient field, the send operation is blocked and an error notification is displayed.
23083+
* The error notification identifies the add-in that added the unresolved recipients and lists the affected email addresses.
23084+
* If a Smart Alerts dialog is shown after selecting **Send**, the error notification is displayed after the dialog is dismissed (by selecting **Send Anyway** or **Don't Send**, or by closing the dialog).
23085+
*
2307823086
* **Errors**:
2307923087
*
2308023088
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
@@ -23116,6 +23124,14 @@ declare namespace Office {
2311623124
* The `addAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
2311723125
* 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}.
2311823126
*
23127+
* All Outlook clients use regular expression rules to resolve email addresses in recipient fields.
23128+
*
23129+
* In Outlook on the web and the new Outlook on Windows, `addAsync` and `setAsync` add both resolved and unresolved email addresses to recipient fields.
23130+
* However, unresolved email addresses prevent an item from being sent until they are resolved or successfully validated.
23131+
* If unresolved recipients are added by a Smart Alerts add-in to any recipient field, the send operation is blocked and an error notification is displayed.
23132+
* The error notification identifies the add-in that added the unresolved recipients and lists the affected email addresses.
23133+
* If a Smart Alerts dialog is shown after selecting **Send**, the error notification is displayed after the dialog is dismissed (by selecting **Send Anyway** or **Don't Send**, or by closing the dialog).
23134+
*
2311923135
* **Errors**:
2312023136
*
2312123137
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
@@ -23264,6 +23280,14 @@ declare namespace Office {
2326423280
* The `setAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
2326523281
* 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}.
2326623282
*
23283+
* All Outlook clients use regular expression rules to resolve email addresses in recipient fields.
23284+
*
23285+
* In Outlook on the web and the new Outlook on Windows, `addAsync` and `setAsync` add both resolved and unresolved email addresses to recipient fields.
23286+
* However, unresolved email addresses prevent an item from being sent until they are resolved or successfully validated.
23287+
* If unresolved recipients are added by a Smart Alerts add-in to any recipient field, the send operation is blocked and an error notification is displayed.
23288+
* The error notification identifies the add-in that added the unresolved recipients and lists the affected email addresses.
23289+
* If a Smart Alerts dialog is shown after selecting **Send**, the error notification is displayed after the dialog is dismissed (by selecting **Send Anyway** or **Don't Send**, or by closing the dialog).
23290+
*
2326723291
* **Errors**:
2326823292
*
2326923293
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.
@@ -23308,6 +23332,14 @@ declare namespace Office {
2330823332
* The `setAsync` method isn't supported on a message that's currently loaded using the `loadItemByIdAsync` method.
2330923333
* 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}.
2331023334
*
23335+
* All Outlook clients use regular expression rules to resolve email addresses in recipient fields.
23336+
*
23337+
* In Outlook on the web and the new Outlook on Windows, `addAsync` and `setAsync` add both resolved and unresolved email addresses to recipient fields.
23338+
* However, unresolved email addresses prevent an item from being sent until they are resolved or successfully validated.
23339+
* If unresolved recipients are added by a Smart Alerts add-in to any recipient field, the send operation is blocked and an error notification is displayed.
23340+
* The error notification identifies the add-in that added the unresolved recipients and lists the affected email addresses.
23341+
* If a Smart Alerts dialog is shown after selecting **Send**, the error notification is displayed after the dialog is dismissed (by selecting **Send Anyway** or **Don't Send**, or by closing the dialog).
23342+
*
2331123343
* **Errors**:
2331223344
*
2331323345
* - `NumberOfRecipientsExceeded`: The number of recipients exceeded 100 entries.

0 commit comments

Comments
 (0)