@mindline/sync 1.0.30 → 1.0.31
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/ProjectSettings.json +3 -0
- package/.vs/VSWorkspaceState.json +7 -0
- package/.vs/slnx.sqlite +0 -0
- package/.vs/sync/FileContentIndex/fb298f0b-51e7-476b-b64e-2c2b2bf7631d.vsidx +0 -0
- package/.vs/sync/config/applicationhost.config +1011 -0
- package/.vs/sync/v17/.wsuo +0 -0
- package/hybridspa.ts +761 -715
- package/index.d.ts +5 -2
- package/index.ts +9 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ declare module "@mindline/sync" {
|
|
|
136
136
|
constructor(config: Config|null, syncPortalGlobalState: InitInfo|null, bClearLocalStorage: boolean);
|
|
137
137
|
// populate tenantNodes based on config tenants
|
|
138
138
|
init(config: Config|null, syncPortalGlobalState: InitInfo|null, bClearLocalStorage: boolean): void;
|
|
139
|
-
test(): void;
|
|
139
|
+
test(config: Config): void;
|
|
140
140
|
}
|
|
141
141
|
export class TenantNode {
|
|
142
142
|
expanded: boolean;
|
|
@@ -178,5 +178,8 @@ declare module "@mindline/sync" {
|
|
|
178
178
|
export function tenantComplete(instance: IPublicClientApplication, authorizedUser: User, tenant: Tenant, debug: boolean): APIResult;
|
|
179
179
|
export function tenantRemove(instance: IPublicClientApplication, authorizedUser: User, tenant: Tenant, workspaceId: string, debug: boolean): APIResult;
|
|
180
180
|
export function userAdd(instance: IPublicClientApplication, authorizedUser: User, user: User, workspaceId: string): APIResult;
|
|
181
|
-
|
|
181
|
+
export function userRemove(instance: IPublicClientApplication, authorizedUser: User, user: User, workspaceId: string): APIResult;
|
|
182
|
+
//
|
|
183
|
+
// Mindline Sync API
|
|
184
|
+
//
|
|
182
185
|
}
|
package/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//index.ts - published interface - AAD implementations, facade to Mindline Config API
|
|
2
2
|
import { IPublicClientApplication, AuthenticationResult } from "@azure/msal-browser"
|
|
3
3
|
import { deserializeArray } from 'class-transformer';
|
|
4
|
-
import { adminDelete, adminPost, adminsGet, configDelete, configsGet, configPost, configPut, graphConfig, initPost, tenantPut, tenantPost, tenantDelete, tenantsGet, workspacesGet} from './hybridspa';
|
|
4
|
+
import { adminDelete, adminPost, adminsGet, configDelete, configsGet, configPost, configPut, graphConfig, initPost, readerPost, tenantPut, tenantPost, tenantDelete, tenantsGet, workspacesGet} from './hybridspa';
|
|
5
5
|
import { version } from './package.json';
|
|
6
6
|
import users from "./users.json";
|
|
7
7
|
import tenants from "./tenants.json";
|
|
@@ -67,7 +67,7 @@ export enum TenantPermissionType {
|
|
|
67
67
|
write = 2,
|
|
68
68
|
notassigned = 3
|
|
69
69
|
}
|
|
70
|
-
type TenantPermissionTypeStrings = keyof typeof TenantPermissionType;
|
|
70
|
+
export type TenantPermissionTypeStrings = keyof typeof TenantPermissionType;
|
|
71
71
|
export class Tenant {
|
|
72
72
|
tid: string;
|
|
73
73
|
name: string;
|
|
@@ -528,11 +528,17 @@ export class BatchArray {
|
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
// cycle through test state machine
|
|
531
|
-
test() : void {
|
|
531
|
+
test(instance: IPublicClientApplication, authorizedUser: User, config: Config) : void {
|
|
532
532
|
if (this.tenantNodes == null || this.tenantNodes.length == 0) {
|
|
533
533
|
// we should not have an empty batch array for a test
|
|
534
534
|
debugger;
|
|
535
535
|
}
|
|
536
|
+
// execute post to reader endpoint
|
|
537
|
+
debugger;
|
|
538
|
+
readerPost(instance, authorizedUser, config);
|
|
539
|
+
|
|
540
|
+
// start SignalR connection
|
|
541
|
+
|
|
536
542
|
// cycle through desired states for sources and targets
|
|
537
543
|
if (this.tenantNodes != null) {
|
|
538
544
|
this.tenantNodes.map((sourceTenantNode: TenantNode) => {
|
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.31",
|
|
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.",
|