Skip to content

Commit 961f858

Browse files
🤖 Merge PR DefinitelyTyped#74214 [office-js][office-js-preview] (Outlook) Clarify values returned by from and sender properties by @samantharamon
1 parent 11df58f commit 961f858

File tree

2 files changed

+45
-28
lines changed

2 files changed

+45
-28
lines changed

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

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16993,8 +16993,9 @@ declare namespace Office {
1699316993
*
1699416994
* **Important**:
1699516995
*
16996-
* - The `from` and `sender` properties represent the same person unless the message is sent by a delegate.
16997-
* In that case, the `from` property represents the delegator, and the `sender` property represents the delegate.
16996+
* - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions.
16997+
* In this case, the `from` property returns the delegator's email address and the `sender` property returns the delegate's address. For information about mailbox delegation, see
16998+
* {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}.
1699816999
*
1699917000
* - The `recipientType` property of the `EmailAddressDetails` object in the `from` property is undefined.
1700017001
*/
@@ -17198,8 +17199,9 @@ declare namespace Office {
1719817199
*
1719917200
* **Important**:
1720017201
*
17201-
* - The `from` and `sender` properties represent the same person unless the message is sent by a delegate.
17202-
* In that case, the `from` property represents the delegator, and the `sender` property represents the delegate.
17202+
* - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions.
17203+
* In this case, the `from` property returns the delegator's email address and the `sender` property returns the delegate's address. For information about mailbox delegation, see
17204+
* {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}.
1720317205
*
1720417206
* - The `recipientType` property of the `EmailAddressDetails` object in the `sender` property is undefined.
1720517207
*/
@@ -21290,18 +21292,21 @@ declare namespace Office {
2129021292
/**
2129121293
* Gets the email address of the sender of a message.
2129221294
*
21293-
* The `from` and `sender` properties represent the same person unless the message is sent by a delegate.
21294-
* In that case, the `from` property represents the delegator, and the `sender` property represents the delegate.
21295-
*
21296-
* **Note**: The `recipientType` property of the `EmailAddressDetails` object in the `from` property is undefined.
21297-
*
2129821295
* The `from` property returns an `EmailAddressDetails` object.
2129921296
*
2130021297
* @remarks
2130121298
*
2130221299
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
2130321300
*
2130421301
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
21302+
*
21303+
* **Important**:
21304+
*
21305+
* - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions.
21306+
* In this case, the `from` property returns the delegator's email address and the `sender` property returns the delegate's address. For information about mailbox delegation, see
21307+
* {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}.
21308+
*
21309+
* - The `recipientType` property of the `EmailAddressDetails` object in the `from` property is undefined.
2130521310
*/
2130621311
from: EmailAddressDetails;
2130721312
/**
@@ -21484,16 +21489,19 @@ declare namespace Office {
2148421489
/**
2148521490
* Gets the email address of the sender of an email message.
2148621491
*
21487-
* The `from` and `sender` properties represent the same person unless the message is sent by a delegate.
21488-
* In that case, the `from` property represents the delegator, and the `sender` property represents the delegate.
21489-
*
21490-
* **Note**: The `recipientType` property of the `EmailAddressDetails` object in the `sender` property is undefined.
21491-
*
2149221492
* @remarks
2149321493
*
2149421494
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
2149521495
*
2149621496
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
21497+
*
21498+
* **Important**:
21499+
*
21500+
* - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions.
21501+
* In this case, the `from` property returns the delegator's email address and the `sender` property returns the delegate's address. For information about mailbox delegation, see
21502+
* {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}.
21503+
*
21504+
* - The `recipientType` property of the `EmailAddressDetails` object in the `sender` property is undefined.
2149721505
*/
2149821506
sender: EmailAddressDetails;
2149921507
/**

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

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16454,8 +16454,9 @@ declare namespace Office {
1645416454
*
1645516455
* **Important**:
1645616456
*
16457-
* - The `from` and `sender` properties represent the same person unless the message is sent by a delegate.
16458-
* In that case, the `from` property represents the delegator, and the `sender` property represents the delegate.
16457+
* - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions.
16458+
* In this case, the `from` property returns the delegator's email address and the `sender` property returns the delegate's address. For information about mailbox delegation, see
16459+
* {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}.
1645916460
*
1646016461
* - The `recipientType` property of the `EmailAddressDetails` object in the `from` property is undefined.
1646116462
*/
@@ -16659,8 +16660,9 @@ declare namespace Office {
1665916660
*
1666016661
* **Important**:
1666116662
*
16662-
* - The `from` and `sender` properties represent the same person unless the message is sent by a delegate.
16663-
* In that case, the `from` property represents the delegator, and the `sender` property represents the delegate.
16663+
* - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions.
16664+
* In this case, the `from` property returns the delegator's email address and the `sender` property returns the delegate's address. For information about mailbox delegation, see
16665+
* {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}.
1666416666
*
1666516667
* - The `recipientType` property of the `EmailAddressDetails` object in the `sender` property is undefined.
1666616668
*/
@@ -20630,18 +20632,22 @@ declare namespace Office {
2063020632
/**
2063120633
* Gets the email address of the sender of a message.
2063220634
*
20633-
* The `from` and `sender` properties represent the same person unless the message is sent by a delegate.
20634-
* In that case, the `from` property represents the delegator, and the `sender` property represents the delegate.
20635-
*
20636-
* **Note**: The `recipientType` property of the `EmailAddressDetails` object in the `from` property is undefined.
20637-
*
2063820635
* The `from` property returns an `EmailAddressDetails` object.
2063920636
*
2064020637
* @remarks
2064120638
*
2064220639
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
2064320640
*
2064420641
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
20642+
*
20643+
*
20644+
* **Important**:
20645+
*
20646+
* - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions.
20647+
* In this case, the `from` property returns the delegator's email address and the `sender` property returns the delegate's address. For information about mailbox delegation, see
20648+
* {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}.
20649+
*
20650+
* - The `recipientType` property of the `EmailAddressDetails` object in the `from` property is undefined.
2064520651
*/
2064620652
from: EmailAddressDetails;
2064720653
/**
@@ -20824,16 +20830,19 @@ declare namespace Office {
2082420830
/**
2082520831
* Gets the email address of the sender of an email message.
2082620832
*
20827-
* The `from` and `sender` properties represent the same person unless the message is sent by a delegate.
20828-
* In that case, the `from` property represents the delegator, and the `sender` property represents the delegate.
20829-
*
20830-
* **Note**: The `recipientType` property of the `EmailAddressDetails` object in the `sender` property is undefined.
20831-
*
2083220833
* @remarks
2083320834
*
2083420835
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item**
2083520836
*
2083620837
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
20838+
*
20839+
* **Important**:
20840+
*
20841+
* - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions.
20842+
* In this case, the `from` property returns the delegator's email address and the `sender` property returns the delegate's address. For information about mailbox delegation, see
20843+
* {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}.
20844+
*
20845+
* - The `recipientType` property of the `EmailAddressDetails` object in the `sender` property is undefined.
2083720846
*/
2083820847
sender: EmailAddressDetails;
2083920848
/**

0 commit comments

Comments
 (0)