@types/office-js 1.0.518 → 1.0.520
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 +1 -1
- office-js/index.d.ts +44 -2
- office-js/package.json +2 -2
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:
|
|
11
|
+
* Last updated: Mon, 28 Jul 2025 18:44:19 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -3635,6 +3635,19 @@ declare namespace Office {
|
|
|
3635
3635
|
* @returns Promise to the access token.
|
|
3636
3636
|
*/
|
|
3637
3637
|
getAccessToken(options?: AuthOptions): Promise<string>;
|
|
3638
|
+
/**
|
|
3639
|
+
* Gets information about the signed-in user.
|
|
3640
|
+
* The add-in can pass this information to the Microsoft authentication library (MSAL.js) to get an access token for the current session.
|
|
3641
|
+
*
|
|
3642
|
+
* @remarks
|
|
3643
|
+
*
|
|
3644
|
+
* **Hosts**: Excel, OneNote, Outlook, PowerPoint, Word
|
|
3645
|
+
*
|
|
3646
|
+
* **Requirement set**: NestedAppAuth 1.1
|
|
3647
|
+
*
|
|
3648
|
+
* @returns Promise to the AuthContext object.
|
|
3649
|
+
*/
|
|
3650
|
+
getAuthContext(): Promise<AuthContext>;
|
|
3638
3651
|
}
|
|
3639
3652
|
/**
|
|
3640
3653
|
* Provides options for the user experience when Office obtains an access token to the add-in from AAD v. 2.0 with the `getAccessToken` method.
|
|
@@ -3691,6 +3704,35 @@ declare namespace Office {
|
|
|
3691
3704
|
*/
|
|
3692
3705
|
forMSGraphAccess?: boolean;
|
|
3693
3706
|
}
|
|
3707
|
+
/**
|
|
3708
|
+
* Represents the user information which can be passed to the Microsoft Authentication Library for JavaScript (MSAL.js).
|
|
3709
|
+
*/
|
|
3710
|
+
interface AuthContext {
|
|
3711
|
+
/**
|
|
3712
|
+
* The unique ID of the account.
|
|
3713
|
+
*/
|
|
3714
|
+
userObjectId: string;
|
|
3715
|
+
/**
|
|
3716
|
+
* The full tenant or organizational ID that this account belongs to.
|
|
3717
|
+
*/
|
|
3718
|
+
tenantId: string;
|
|
3719
|
+
/**
|
|
3720
|
+
* The user's internet-style login name, based on the Internet standard RFC. Also known as UPN.
|
|
3721
|
+
*/
|
|
3722
|
+
userPrincipalName: string;
|
|
3723
|
+
/**
|
|
3724
|
+
* The identity type by its identity provider (IdP) for this account. "aad" represents an organization account and "msa" represents a {@link https://support.microsoft.com/account-billing/72f10e1e-cab8-4950-a8da-7c45339575b0 | Microsoft personal account}.
|
|
3725
|
+
*/
|
|
3726
|
+
authorityType: "aad" | "msa" | "other";
|
|
3727
|
+
/**
|
|
3728
|
+
* The URL that indicates a directory that MSAL can request tokens from.
|
|
3729
|
+
*/
|
|
3730
|
+
authorityBaseUrl: string;
|
|
3731
|
+
/**
|
|
3732
|
+
* An optional claim that provides a hint about the user account attempting to sign in.
|
|
3733
|
+
*/
|
|
3734
|
+
loginHint: string;
|
|
3735
|
+
}
|
|
3694
3736
|
/**
|
|
3695
3737
|
* Represents a modal notification dialog that can appear when the user attempts to close a document. The document won't close until the user responds.
|
|
3696
3738
|
* The notification dialog will allow the user to confirm the request to close the document or cancel the request to close the document.
|
|
@@ -21889,7 +21931,7 @@ declare namespace Office {
|
|
|
21889
21931
|
* However, take note of the following:
|
|
21890
21932
|
*
|
|
21891
21933
|
* - In Outlook on the web, on Windows (new and classic), and on Mac (classic UI), you can have a maximum of 500 recipients in a target field.
|
|
21892
|
-
* If you need to
|
|
21934
|
+
* If you need to add more recipients after setting 100 recipients, you can call `addAsync` repeatedly, but be mindful of the recipient limit of the field.
|
|
21893
21935
|
*
|
|
21894
21936
|
* - In Outlook on Android and on iOS, the `setAsync` method isn't supported in the Message Compose mode. Only the Appointment Organizer mode is
|
|
21895
21937
|
* supported. For more information on supported APIs in Outlook mobile, see
|
|
@@ -21932,7 +21974,7 @@ declare namespace Office {
|
|
|
21932
21974
|
* However, take note of the following:
|
|
21933
21975
|
*
|
|
21934
21976
|
* - In Outlook on the web, on Windows (new and classic), and on Mac (classic UI), you can have a maximum of 500 recipients in a target field.
|
|
21935
|
-
* If you need to
|
|
21977
|
+
* If you need to add more recipients after setting 100 recipients, you can call `addAsync` repeatedly, but be mindful of the recipient limit of the field.
|
|
21936
21978
|
*
|
|
21937
21979
|
* - In Outlook on Android and on iOS, the `setAsync` method isn't supported in the Message Compose mode. Only the Appointment Organizer mode is
|
|
21938
21980
|
* supported. For more information on supported APIs in Outlook mobile, see
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.520",
|
|
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": "
|
|
49
|
+
"typesPublisherContentHash": "80099809888ae7e100dfcf21138a0a08b3fc85019da7fd1a9c9570e0a9044f6a",
|
|
50
50
|
"typeScriptVersion": "5.1"
|
|
51
51
|
}
|