@mindline/sync 1.0.43 → 1.0.44
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.
- package/.vs/VSWorkspaceState.json +0 -1
- package/.vs/slnx.sqlite +0 -0
- package/.vs/sync/FileContentIndex/6e2eb4de-f03f-41c0-9850-bdcbce22ae29.vsidx +0 -0
- package/.vs/sync/v17/.wsuo +0 -0
- package/index.d.ts +8 -1
- package/index.ts +14 -2
- package/package.json +1 -1
- package/.vs/sync/FileContentIndex/911a1b8c-031f-400d-b772-24db627d3dab.vsidx +0 -0
package/.vs/slnx.sqlite
CHANGED
|
Binary file
|
package/.vs/sync/v17/.wsuo
CHANGED
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IPublicClientApplication } from "@azure/msal-browser";
|
|
2
|
-
|
|
3
2
|
declare module "@mindline/sync" {
|
|
4
3
|
export function sum(a: number, b: number): number;
|
|
5
4
|
export function helloNpm(): string;
|
|
@@ -10,6 +9,14 @@ declare module "@mindline/sync" {
|
|
|
10
9
|
description: string;
|
|
11
10
|
}
|
|
12
11
|
// admin
|
|
12
|
+
export class UserScope {
|
|
13
|
+
group: string;
|
|
14
|
+
value: string;
|
|
15
|
+
consented: boolean;
|
|
16
|
+
expanded: string;
|
|
17
|
+
static compareByValue(a: UserScope, b: UserScope): number;
|
|
18
|
+
static compareByGroup(a: UserScope, b: UserScope): number;
|
|
19
|
+
}
|
|
13
20
|
export class User {
|
|
14
21
|
oid: string; // from AAD ID token
|
|
15
22
|
name: string; // from AAD ID token
|
package/index.ts
CHANGED
|
@@ -24,6 +24,18 @@ export class Group {
|
|
|
24
24
|
displayName: string;
|
|
25
25
|
description: string;
|
|
26
26
|
}
|
|
27
|
+
export class UserScope {
|
|
28
|
+
group: string;
|
|
29
|
+
value: string;
|
|
30
|
+
consented: boolean;
|
|
31
|
+
expanded: string;
|
|
32
|
+
static compareByValue(a: UserScope, b: UserScope): number {
|
|
33
|
+
return a.value.localeCompare(b.value);
|
|
34
|
+
}
|
|
35
|
+
static compareByGroup(a: UserScope, b: UserScope): number {
|
|
36
|
+
return a.group.localeCompare(b.group);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
27
39
|
export class User {
|
|
28
40
|
oid: string;
|
|
29
41
|
name: string;
|
|
@@ -300,6 +312,7 @@ export class InitInfo {
|
|
|
300
312
|
export type TaskType = "initialization" |
|
|
301
313
|
"authenticate user" |
|
|
302
314
|
"reload React" |
|
|
315
|
+
"PUT tenant" |
|
|
303
316
|
"GET tenant details" |
|
|
304
317
|
"POST config init" |
|
|
305
318
|
"GET workspaces" |
|
|
@@ -1093,8 +1106,7 @@ export function signInIncrementally(user: User, scope: string): void {
|
|
|
1093
1106
|
tenantURL += "MicrosoftIdentity/Account/Challenge";
|
|
1094
1107
|
let url: URL = new URL(tenantURL);
|
|
1095
1108
|
url.searchParams.append("redirectUri", window.location.origin);
|
|
1096
|
-
|
|
1097
|
-
url.searchParams.append("scope", scopes);
|
|
1109
|
+
url.searchParams.append("scope", scope);
|
|
1098
1110
|
url.searchParams.append("domainHint", "organizations");
|
|
1099
1111
|
url.searchParams.append("loginHint", user.mail);
|
|
1100
1112
|
window.location.assign(url.href);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindline/sync",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.44",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"exports": "./index.ts",
|
|
7
7
|
"description": "sync is a node.js package encapsulating javscript classes required for configuring Mindline sync service.",
|
|
Binary file
|