From 961f8582b222d49aaceb695333c03b509b6b77c1 Mon Sep 17 00:00:00 2001 From: Sam Ramon <15154970+samantharamon@users.noreply.github.com> Date: Wed, 17 Dec 2025 14:27:18 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74214=20[office-js?= =?UTF-8?q?][office-js-preview]=20(Outlook)=20Clarify=20values=20returned?= =?UTF-8?q?=20by=20from=20and=20sender=20properties=20by=20@samantharamon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/office-js-preview/index.d.ts | 36 ++++++++++++++++++----------- types/office-js/index.d.ts | 37 +++++++++++++++++++----------- 2 files changed, 45 insertions(+), 28 deletions(-) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 4560004d91b810..2fb78a94e8261e 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -16993,8 +16993,9 @@ declare namespace Office { * * **Important**: * - * - The `from` and `sender` properties represent the same person unless the message is sent by a delegate. - * In that case, the `from` property represents the delegator, and the `sender` property represents the delegate. + * - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions. + * 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 + * {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}. * * - The `recipientType` property of the `EmailAddressDetails` object in the `from` property is undefined. */ @@ -17198,8 +17199,9 @@ declare namespace Office { * * **Important**: * - * - The `from` and `sender` properties represent the same person unless the message is sent by a delegate. - * In that case, the `from` property represents the delegator, and the `sender` property represents the delegate. + * - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions. + * 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 + * {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}. * * - The `recipientType` property of the `EmailAddressDetails` object in the `sender` property is undefined. */ @@ -21290,11 +21292,6 @@ declare namespace Office { /** * Gets the email address of the sender of a message. * - * The `from` and `sender` properties represent the same person unless the message is sent by a delegate. - * In that case, the `from` property represents the delegator, and the `sender` property represents the delegate. - * - * **Note**: The `recipientType` property of the `EmailAddressDetails` object in the `from` property is undefined. - * * The `from` property returns an `EmailAddressDetails` object. * * @remarks @@ -21302,6 +21299,14 @@ declare namespace Office { * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item** * * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read + * + * **Important**: + * + * - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions. + * 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 + * {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}. + * + * - The `recipientType` property of the `EmailAddressDetails` object in the `from` property is undefined. */ from: EmailAddressDetails; /** @@ -21484,16 +21489,19 @@ declare namespace Office { /** * Gets the email address of the sender of an email message. * - * The `from` and `sender` properties represent the same person unless the message is sent by a delegate. - * In that case, the `from` property represents the delegator, and the `sender` property represents the delegate. - * - * **Note**: The `recipientType` property of the `EmailAddressDetails` object in the `sender` property is undefined. - * * @remarks * * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item** * * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read + * + * **Important**: + * + * - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions. + * 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 + * {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}. + * + * - The `recipientType` property of the `EmailAddressDetails` object in the `sender` property is undefined. */ sender: EmailAddressDetails; /** diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 993d3dcb1089a4..3102cba52b9e0d 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -16454,8 +16454,9 @@ declare namespace Office { * * **Important**: * - * - The `from` and `sender` properties represent the same person unless the message is sent by a delegate. - * In that case, the `from` property represents the delegator, and the `sender` property represents the delegate. + * - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions. + * 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 + * {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}. * * - The `recipientType` property of the `EmailAddressDetails` object in the `from` property is undefined. */ @@ -16659,8 +16660,9 @@ declare namespace Office { * * **Important**: * - * - The `from` and `sender` properties represent the same person unless the message is sent by a delegate. - * In that case, the `from` property represents the delegator, and the `sender` property represents the delegate. + * - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions. + * 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 + * {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}. * * - The `recipientType` property of the `EmailAddressDetails` object in the `sender` property is undefined. */ @@ -20630,11 +20632,6 @@ declare namespace Office { /** * Gets the email address of the sender of a message. * - * The `from` and `sender` properties represent the same person unless the message is sent by a delegate. - * In that case, the `from` property represents the delegator, and the `sender` property represents the delegate. - * - * **Note**: The `recipientType` property of the `EmailAddressDetails` object in the `from` property is undefined. - * * The `from` property returns an `EmailAddressDetails` object. * * @remarks @@ -20642,6 +20639,15 @@ declare namespace Office { * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item** * * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read + * + * + * **Important**: + * + * - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions. + * 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 + * {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}. + * + * - The `recipientType` property of the `EmailAddressDetails` object in the `from` property is undefined. */ from: EmailAddressDetails; /** @@ -20824,16 +20830,19 @@ declare namespace Office { /** * Gets the email address of the sender of an email message. * - * The `from` and `sender` properties represent the same person unless the message is sent by a delegate. - * In that case, the `from` property represents the delegator, and the `sender` property represents the delegate. - * - * **Note**: The `recipientType` property of the `EmailAddressDetails` object in the `sender` property is undefined. - * * @remarks * * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read item** * * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read + * + * **Important**: + * + * - The `from` and `sender` properties represent the same person unless the message is sent by a delegate with **Send on behalf** permissions. + * 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 + * {@link https://learn.microsoft.com/exchange/recipients-in-exchange-online/manage-permissions-for-recipients | Manage permissions for recipients in Exchange Online}. + * + * - The `recipientType` property of the `EmailAddressDetails` object in the `sender` property is undefined. */ sender: EmailAddressDetails; /**