@mindline/sync 1.0.63 → 1.0.65
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/84f0adcf-097f-4dbb-bfd0-bad019a52af3.vsidx +0 -0
- package/.vs/sync/v17/.wsuo +0 -0
- package/.vs/sync/v17/DocumentLayout.json +121 -0
- package/hybridspa.ts +16 -16
- package/index.d.ts +11 -10
- package/index.ts +119 -80
- package/package.json +1 -1
- package/tsconfig.json +27 -27
- package/tsconfig.node.json +9 -9
- package/.vs/sync/FileContentIndex/33a3ee4b-9c43-4e0d-ae64-59dc9fd9c401.vsidx +0 -0
- package/.vs/sync/FileContentIndex/4199b40e-a51a-4aab-a20d-788df6fd8a20.vsidx +0 -0
- package/.vs/sync/FileContentIndex/9661818c-cb81-4929-ad9b-3efa4622ff45.vsidx +0 -0
- package/.vs/sync/config/applicationhost.config +0 -1011
package/.vs/slnx.sqlite
CHANGED
|
Binary file
|
package/.vs/sync/v17/.wsuo
CHANGED
|
Binary file
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Version": 1,
|
|
3
|
+
"WorkspaceRootPath": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\",
|
|
4
|
+
"Documents": [
|
|
5
|
+
{
|
|
6
|
+
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
|
|
7
|
+
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:index.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\hybridspa.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
|
|
11
|
+
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:hybridspa.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.d.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
|
|
15
|
+
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:index.d.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"DocumentGroupContainers": [
|
|
19
|
+
{
|
|
20
|
+
"Orientation": 0,
|
|
21
|
+
"VerticalTabListWidth": 256,
|
|
22
|
+
"DocumentGroups": [
|
|
23
|
+
{
|
|
24
|
+
"DockedWidth": 179,
|
|
25
|
+
"SelectedChildIndex": 10,
|
|
26
|
+
"Children": [
|
|
27
|
+
{
|
|
28
|
+
"$type": "Bookmark",
|
|
29
|
+
"Name": "ST:0:0:{e506b91c-c606-466a-90a9-123d1d1e12b3}"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"$type": "Bookmark",
|
|
33
|
+
"Name": "ST:128:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"$type": "Bookmark",
|
|
37
|
+
"Name": "ST:129:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"$type": "Bookmark",
|
|
41
|
+
"Name": "ST:131:0:{75188d03-9892-4ae2-abf1-207126247ce5}"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"$type": "Bookmark",
|
|
45
|
+
"Name": "ST:130:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"$type": "Bookmark",
|
|
49
|
+
"Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"$type": "Bookmark",
|
|
53
|
+
"Name": "ST:0:0:{d78612c7-9962-4b83-95d9-268046dad23a}"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"$type": "Bookmark",
|
|
57
|
+
"Name": "ST:1:0:{d212f56b-c48a-434c-a121-1c5d80b59b9f}"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"$type": "Document",
|
|
61
|
+
"DocumentIndex": 2,
|
|
62
|
+
"Title": "index.d.ts",
|
|
63
|
+
"DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.d.ts",
|
|
64
|
+
"RelativeDocumentMoniker": "index.d.ts",
|
|
65
|
+
"ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.d.ts",
|
|
66
|
+
"RelativeToolTip": "index.d.ts",
|
|
67
|
+
"ViewState": "AQIAAP0AAAAAAAAAAAAhwA4BAABQAAAA",
|
|
68
|
+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
|
|
69
|
+
"WhenOpened": "2023-11-25T03:36:49.251Z"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"$type": "Document",
|
|
73
|
+
"DocumentIndex": 1,
|
|
74
|
+
"Title": "hybridspa.ts",
|
|
75
|
+
"DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\hybridspa.ts",
|
|
76
|
+
"RelativeDocumentMoniker": "hybridspa.ts",
|
|
77
|
+
"ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\hybridspa.ts",
|
|
78
|
+
"RelativeToolTip": "hybridspa.ts",
|
|
79
|
+
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
80
|
+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
|
|
81
|
+
"WhenOpened": "2023-11-25T02:18:34.862Z"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"$type": "Document",
|
|
85
|
+
"DocumentIndex": 0,
|
|
86
|
+
"Title": "index.ts",
|
|
87
|
+
"DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.ts",
|
|
88
|
+
"RelativeDocumentMoniker": "index.ts",
|
|
89
|
+
"ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.ts",
|
|
90
|
+
"RelativeToolTip": "index.ts",
|
|
91
|
+
"ViewState": "AQIAANkBAAAAAAAAAAARwGcFAAAAAAAA",
|
|
92
|
+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
|
|
93
|
+
"WhenOpened": "2023-11-25T04:05:46.842Z",
|
|
94
|
+
"EditorCaption": ""
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"DockedWidth": 221,
|
|
100
|
+
"SelectedChildIndex": -1,
|
|
101
|
+
"Children": [
|
|
102
|
+
{
|
|
103
|
+
"$type": "Bookmark",
|
|
104
|
+
"Name": "ST:0:0:{004be353-6879-467c-9d1e-9ac23cdf6d49}"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"DockedWidth": 294,
|
|
110
|
+
"SelectedChildIndex": -1,
|
|
111
|
+
"Children": [
|
|
112
|
+
{
|
|
113
|
+
"$type": "Bookmark",
|
|
114
|
+
"Name": "ST:0:0:{633c14d1-94e6-4de0-b649-bde18d3de13d}"
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
package/hybridspa.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
APIResult,
|
|
4
4
|
Config,
|
|
5
|
-
|
|
5
|
+
mindlineConfig,
|
|
6
6
|
Tenant,
|
|
7
7
|
TenantConfigInfo,
|
|
8
8
|
User
|
|
@@ -80,12 +80,12 @@ export async function adminDelete(
|
|
|
80
80
|
// are we performing deletion of a full admin?
|
|
81
81
|
let url: URL | null = null;
|
|
82
82
|
if (user.oid !== user.mail) {
|
|
83
|
-
url = new URL(
|
|
83
|
+
url = new URL(mindlineConfig.adminEndpoint());
|
|
84
84
|
url.searchParams.append("workspaceId", workspaceId);
|
|
85
85
|
}
|
|
86
86
|
// or of an incomplete admin?
|
|
87
87
|
else if (user.mail !== "") {
|
|
88
|
-
url = new URL(
|
|
88
|
+
url = new URL(mindlineConfig.adminIncompleteEndpoint());
|
|
89
89
|
url.searchParams.append("email", user.mail);
|
|
90
90
|
url.searchParams.append("workspaceId", workspaceId);
|
|
91
91
|
}
|
|
@@ -131,7 +131,7 @@ export async function adminsGet(
|
|
|
131
131
|
return result;
|
|
132
132
|
}
|
|
133
133
|
// create endpoint
|
|
134
|
-
let endpoint: string =
|
|
134
|
+
let endpoint: string = mindlineConfig.adminsEndpoint();
|
|
135
135
|
// add parameter to endpoint
|
|
136
136
|
let url: URL = new URL(endpoint);
|
|
137
137
|
url.searchParams.append("workspaceId", workspaceID);
|
|
@@ -191,7 +191,7 @@ export async function adminPost(
|
|
|
191
191
|
return result;
|
|
192
192
|
}
|
|
193
193
|
// create admin endpoint
|
|
194
|
-
let endpoint: string =
|
|
194
|
+
let endpoint: string = mindlineConfig.adminEndpoint();
|
|
195
195
|
// create headers
|
|
196
196
|
const headers = await defineHeaders(instance, authorizedUser);
|
|
197
197
|
// create admin body
|
|
@@ -240,7 +240,7 @@ export async function configDelete(
|
|
|
240
240
|
return result;
|
|
241
241
|
}
|
|
242
242
|
let url: URL | null = null;
|
|
243
|
-
url = new URL(
|
|
243
|
+
url = new URL(mindlineConfig.configEndpoint());
|
|
244
244
|
url.searchParams.append("configurationId", config.id);
|
|
245
245
|
// create headers
|
|
246
246
|
const headers = await defineHeaders(instance, authorizedUser);
|
|
@@ -286,7 +286,7 @@ export async function configPost(
|
|
|
286
286
|
return result;
|
|
287
287
|
}
|
|
288
288
|
// create no parameter config endpoint
|
|
289
|
-
let endpoint: string =
|
|
289
|
+
let endpoint: string = mindlineConfig.configEndpoint();
|
|
290
290
|
// create config headers
|
|
291
291
|
const headers = await defineHeaders(instance, authorizedUser);
|
|
292
292
|
// create config body
|
|
@@ -362,7 +362,7 @@ export async function configPut(
|
|
|
362
362
|
return result;
|
|
363
363
|
}
|
|
364
364
|
// create parametrized config endpoint
|
|
365
|
-
let endpoint: string =
|
|
365
|
+
let endpoint: string = mindlineConfig.configEndpoint();
|
|
366
366
|
let url: URL = new URL(endpoint);
|
|
367
367
|
url.searchParams.append("configurationId", config.id);
|
|
368
368
|
// create config headers
|
|
@@ -437,7 +437,7 @@ export async function configsGet(
|
|
|
437
437
|
return result;
|
|
438
438
|
}
|
|
439
439
|
// create endpoint
|
|
440
|
-
let endpoint: string =
|
|
440
|
+
let endpoint: string = mindlineConfig.configsEndpoint();
|
|
441
441
|
// add parameter to endpoint
|
|
442
442
|
let url: URL = new URL(endpoint);
|
|
443
443
|
url.searchParams.append("workspaceId", workspaceID);
|
|
@@ -498,7 +498,7 @@ export async function initPost(
|
|
|
498
498
|
return result;
|
|
499
499
|
}
|
|
500
500
|
// create init endpoint
|
|
501
|
-
let endpoint: string =
|
|
501
|
+
let endpoint: string = mindlineConfig.initEndpoint();
|
|
502
502
|
// create init headers
|
|
503
503
|
const headers = await defineHeaders(instance, authorizedUser);
|
|
504
504
|
// create init body
|
|
@@ -556,7 +556,7 @@ export async function tenantDelete(
|
|
|
556
556
|
return result;
|
|
557
557
|
}
|
|
558
558
|
// create parametrized tenant endpoint
|
|
559
|
-
let url: URL = new URL(
|
|
559
|
+
let url: URL = new URL(mindlineConfig.tenantEndpoint());
|
|
560
560
|
url.searchParams.append("tenantId", tenant.tid);
|
|
561
561
|
url.searchParams.append("workspaceId", workspaceId);
|
|
562
562
|
// create headers
|
|
@@ -603,7 +603,7 @@ export async function tenantsGet(
|
|
|
603
603
|
return result;
|
|
604
604
|
}
|
|
605
605
|
// create endpoint
|
|
606
|
-
let endpoint: string =
|
|
606
|
+
let endpoint: string = mindlineConfig.tenantsEndpoint();
|
|
607
607
|
// add parameter to endpoint
|
|
608
608
|
let url: URL = new URL(endpoint);
|
|
609
609
|
url.searchParams.append("workspaceId", workspaceID);
|
|
@@ -664,7 +664,7 @@ export async function tenantPost(
|
|
|
664
664
|
return result;
|
|
665
665
|
}
|
|
666
666
|
// create parametrized tenant endpoint
|
|
667
|
-
let endpoint: string =
|
|
667
|
+
let endpoint: string = mindlineConfig.tenantEndpoint();
|
|
668
668
|
let url: URL = new URL(endpoint);
|
|
669
669
|
url.searchParams.append("workspaceId", workspaceId);
|
|
670
670
|
// create tenant headers
|
|
@@ -719,7 +719,7 @@ export async function tenantPut(
|
|
|
719
719
|
return result;
|
|
720
720
|
}
|
|
721
721
|
// create tenant endpoint
|
|
722
|
-
let endpoint: string =
|
|
722
|
+
let endpoint: string = mindlineConfig.tenantEndpoint();
|
|
723
723
|
// create tenant headers
|
|
724
724
|
const headers = await defineHeaders(instance, authorizedUser);
|
|
725
725
|
// establish read and write service principals ("notassigned" is default")
|
|
@@ -784,7 +784,7 @@ export async function workspacesGet(
|
|
|
784
784
|
return result;
|
|
785
785
|
}
|
|
786
786
|
// create workspaces endpoint
|
|
787
|
-
let endpoint: string =
|
|
787
|
+
let endpoint: string = mindlineConfig.workspaceEndpoint();
|
|
788
788
|
// create workspace endpoint
|
|
789
789
|
let url: URL = new URL(endpoint);
|
|
790
790
|
// create workspace headers
|
|
@@ -843,7 +843,7 @@ export async function readerPost(
|
|
|
843
843
|
return result;
|
|
844
844
|
}
|
|
845
845
|
// create reader endpoint
|
|
846
|
-
let readerEndpoint: string =
|
|
846
|
+
let readerEndpoint: string = mindlineConfig.readerStartSyncEndpoint();
|
|
847
847
|
let url: URL = new URL(readerEndpoint);
|
|
848
848
|
url.searchParams.append("configurationId", config.id);
|
|
849
849
|
// create headers
|
package/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare module "@mindline/sync" {
|
|
|
11
11
|
array: Array<Object> | null;
|
|
12
12
|
constructor();
|
|
13
13
|
}
|
|
14
|
-
export class
|
|
14
|
+
export class mindlineConfig {
|
|
15
15
|
static environmentTag: string;
|
|
16
16
|
// config API endpoints
|
|
17
17
|
static adminEndpoint(): string;
|
|
@@ -26,14 +26,15 @@ declare module "@mindline/sync" {
|
|
|
26
26
|
static workspaceEndpoint(): string;
|
|
27
27
|
// SignalR endpoint
|
|
28
28
|
static signalREndpoint(): string;
|
|
29
|
+
}
|
|
30
|
+
export class graphConfig {
|
|
29
31
|
// graph API endpoints
|
|
30
|
-
static
|
|
31
|
-
static
|
|
32
|
-
static
|
|
33
|
-
static
|
|
34
|
-
static
|
|
35
|
-
static
|
|
36
|
-
// sovereign cloud tenant info endpoints
|
|
32
|
+
static graphGroupsPredicate: string;
|
|
33
|
+
static graphMailPredicate: string;
|
|
34
|
+
static graphMePredicate: string;
|
|
35
|
+
static graphOauth2PermissionGrantsPredicate: string;
|
|
36
|
+
static graphServicePrincipalsPredicate: string;
|
|
37
|
+
static graphUsersPredicate: string;
|
|
37
38
|
static graphTenantByDomainPredicate: string;
|
|
38
39
|
static graphTenantByIdPredicate: string;
|
|
39
40
|
// authority values are based on the well-known OIDC auth endpoints
|
|
@@ -267,9 +268,9 @@ declare module "@mindline/sync" {
|
|
|
267
268
|
// Azure AD Graph API
|
|
268
269
|
//
|
|
269
270
|
export function groupsGet(instance: IPublicClientApplication, user: User | undefined, groupSearchString: string): Promise<{ groups: Group[], error: string }>;
|
|
270
|
-
export function oauth2PermissionGrantsGet(options: RequestInit, spid: string, oid: string): Promise<{grants: string, error: string}>;
|
|
271
|
+
export function oauth2PermissionGrantsGet(options: RequestInit, user: User, spid: string, oid: string): Promise<{grants: string, error: string}>;
|
|
271
272
|
export function requestAdminConsent(user: User, scope: string): void;
|
|
272
|
-
export function servicePrincipalGet(options: RequestInit, appid: string): Promise<{ spid: string, error: string }>;
|
|
273
|
+
export function servicePrincipalGet(options: RequestInit, user: User, appid: string): Promise<{ spid: string, error: string }>;
|
|
273
274
|
export function signIn(user: User, tasks: TaskArray): boolean;
|
|
274
275
|
export function signInIncrementally(user: User, scope: string): void;
|
|
275
276
|
export function signOut(user: User): boolean;
|