@types/office-js-preview 1.0.492 → 1.0.494
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-preview/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for office-js-preview (https://github.com
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue, 06 Aug 2024
|
|
11
|
+
* Last updated: Tue, 06 Aug 2024 21:35:50 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -3508,7 +3508,7 @@ declare namespace Office {
|
|
|
3508
3508
|
value: T;
|
|
3509
3509
|
}
|
|
3510
3510
|
/**
|
|
3511
|
-
* The Office Auth namespace, `Office.auth`, provides
|
|
3511
|
+
* The Office Auth namespace, `Office.auth`, provides methods for the Office client application to obtain access tokens to the add-in's web application.
|
|
3512
3512
|
* Indirectly, this also enables the add-in to access the signed-in user's Microsoft Graph data without requiring the user to sign in a second time.
|
|
3513
3513
|
*/
|
|
3514
3514
|
interface Auth {
|
|
@@ -3594,6 +3594,19 @@ declare namespace Office {
|
|
|
3594
3594
|
* @returns Promise to the access token.
|
|
3595
3595
|
*/
|
|
3596
3596
|
getAccessToken(options?: AuthOptions): Promise<string>;
|
|
3597
|
+
/**
|
|
3598
|
+
* Gets information about the signed-in user.
|
|
3599
|
+
* The add-in can pass this information to the Microsoft authentication library (MSAL.js) to get an access token for the current session.
|
|
3600
|
+
*
|
|
3601
|
+
* @remarks
|
|
3602
|
+
*
|
|
3603
|
+
* **Hosts**: Excel, OneNote, Outlook, PowerPoint, Word
|
|
3604
|
+
*
|
|
3605
|
+
* **Requirement set**: NestedAppAuth 1.1
|
|
3606
|
+
*
|
|
3607
|
+
* @returns Promise to the AuthContext object.
|
|
3608
|
+
*/
|
|
3609
|
+
getAuthContext(): Promise<AuthContext>;
|
|
3597
3610
|
}
|
|
3598
3611
|
/**
|
|
3599
3612
|
* 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.
|
|
@@ -3654,6 +3667,35 @@ declare namespace Office {
|
|
|
3654
3667
|
*/
|
|
3655
3668
|
forMSGraphAccess?: boolean;
|
|
3656
3669
|
}
|
|
3670
|
+
/**
|
|
3671
|
+
* Represents the user information which can be passed to msal.js.
|
|
3672
|
+
*/
|
|
3673
|
+
interface AuthContext {
|
|
3674
|
+
/**
|
|
3675
|
+
* The unique ID of the account.
|
|
3676
|
+
*/
|
|
3677
|
+
userObjectId: string;
|
|
3678
|
+
/**
|
|
3679
|
+
* The full tenant or organizational ID that this account belongs to.
|
|
3680
|
+
*/
|
|
3681
|
+
tenantId: string;
|
|
3682
|
+
/**
|
|
3683
|
+
* The user's internet-style login name, based on the Internet standard RFC. Also known as UPN.
|
|
3684
|
+
*/
|
|
3685
|
+
userPrincipalName: string;
|
|
3686
|
+
/**
|
|
3687
|
+
* 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/4a7c48e9-ff5a-e9c6-5a5c-1a57d66c3bfa | Microsoft personal account}.
|
|
3688
|
+
*/
|
|
3689
|
+
authorityType: "aad" | "msa" | "other";
|
|
3690
|
+
/**
|
|
3691
|
+
* The URL that indicates a directory that MSAL can request tokens from.
|
|
3692
|
+
*/
|
|
3693
|
+
authorityBaseUrl: string;
|
|
3694
|
+
/**
|
|
3695
|
+
* An optional claim that provides a hint about the user account attempting to sign in.
|
|
3696
|
+
*/
|
|
3697
|
+
loginHint: string;
|
|
3698
|
+
}
|
|
3657
3699
|
/**
|
|
3658
3700
|
* 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.
|
|
3659
3701
|
* 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-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.494",
|
|
4
4
|
"description": "TypeScript definitions for office-js-preview",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "fb964ea2ef10f5363e9aa2ef1daed5492d08f1fc21ae126b172ba25da916a42c",
|
|
49
49
|
"typeScriptVersion": "4.8",
|
|
50
50
|
"nonNpm": true
|
|
51
51
|
}
|