@types/office-js 1.0.518 → 1.0.519
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 +42 -0
- 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: Thu, 24 Jul 2025 22:02:25 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.
|
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.519",
|
|
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": "86be2472f650c9c3355def930eef20cd7cc0407209dd2f98fe4b9d3c0a5e653d",
|
|
50
50
|
"typeScriptVersion": "5.1"
|
|
51
51
|
}
|