@mindline/sync 1.0.106 → 1.0.108
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/CopilotIndices/17.14.260.54502/CodeChunks.db +0 -0
- package/.vs/sync/CopilotIndices/17.14.260.54502/SemanticSymbols.db +0 -0
- package/.vs/sync/FileContentIndex/0a490c4d-e4ea-4e8d-8989-720009d15f9d.vsidx +0 -0
- package/.vs/sync/FileContentIndex/173d280f-33b3-451d-8054-08fc6c991498.vsidx +0 -0
- package/.vs/sync/FileContentIndex/e27fae98-55a0-4376-b1eb-e2efa630b10b.vsidx +0 -0
- package/.vs/sync/FileContentIndex/fae8821f-9f13-46f5-91ef-05b837e2f35a.vsidx +0 -0
- package/.vs/sync/v17/.wsuo +0 -0
- package/.vs/sync/v17/DocumentLayout.backup.json +87 -28
- package/.vs/sync/v17/DocumentLayout.json +81 -15
- package/.vs/sync.slnx/FileContentIndex/13d6a28d-932f-4eb6-818c-efea35f24838.vsidx +0 -0
- package/.vs/sync.slnx/FileContentIndex/46af7fa0-1a65-4634-9faa-600623e92173.vsidx +0 -0
- package/.vs/sync.slnx/FileContentIndex/75bd0095-9fc3-4f35-90e9-f4022b8e4b55.vsidx +0 -0
- package/.vs/sync.slnx/FileContentIndex/92b75297-fe76-448d-80d4-cbf5ef4fcd60.vsidx +0 -0
- package/.vs/sync.slnx/FileContentIndex/eb2f80ef-22e0-4cc0-a8fb-f7837f87af2d.vsidx +0 -0
- package/.vs/sync.slnx/config/applicationhost.config +1011 -0
- package/.vs/sync.slnx/v18/.wsuo +0 -0
- package/.vs/sync.slnx/v18/DocumentLayout.backup.json +104 -0
- package/.vs/sync.slnx/v18/DocumentLayout.json +87 -0
- package/dist/src/index.d.ts +9 -5
- package/dist/sync.es.js +849 -789
- package/dist/sync.es.js.map +1 -1
- package/dist/sync.umd.js +25 -21
- package/dist/sync.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/index.d.ts +14 -14
- package/src/index.ts +231 -60
- package/.vs/sync/FileContentIndex/0d08f64f-8fd9-4bd4-90fc-8322cb33dd00.vsidx +0 -0
- package/.vs/sync/FileContentIndex/5d404a65-c534-43ee-beba-a5efbe6a49b0.vsidx +0 -0
- package/.vs/sync/FileContentIndex/63524bf8-437e-4a1c-951f-7a78da75a1bc.vsidx +0 -0
- package/.vs/sync/FileContentIndex/f95b6302-8444-443b-9e3b-a41d3483c73a.vsidx +0 -0
- /package/.vs/sync/FileContentIndex/{db560492-d007-4291-a6b3-50ccdcbd66b4.vsidx → 72fe2c03-a5ac-417e-b6be-5d2e18aa7d59.vsidx} +0 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ declare module "@mindline/sync" {
|
|
|
4
4
|
export function helloNpm(): string;
|
|
5
5
|
export function getSyncVersion(): string;
|
|
6
6
|
|
|
7
|
-
export class APIResult {
|
|
7
|
+
export class APIResult<T = any> {
|
|
8
8
|
result: boolean;
|
|
9
9
|
status: number;
|
|
10
10
|
error: string;
|
|
11
11
|
version: string;
|
|
12
|
-
array: Array<
|
|
12
|
+
array: Array<T> | null;
|
|
13
13
|
constructor();
|
|
14
14
|
}
|
|
15
15
|
export class azureConfig {
|
|
@@ -189,14 +189,14 @@ declare module "@mindline/sync" {
|
|
|
189
189
|
save(): void;
|
|
190
190
|
tagWithWorkspaces(): boolean;
|
|
191
191
|
}
|
|
192
|
-
export type TaskType = "initialization" |
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
export type TaskType = "initialization" |
|
|
193
|
+
"authenticate user" |
|
|
194
|
+
"reload React" |
|
|
195
|
+
"GET tenant details" |
|
|
196
|
+
"POST config init" |
|
|
197
|
+
"GET workspaces";
|
|
198
198
|
export class TaskArray {
|
|
199
|
-
tasks: Task[];
|
|
199
|
+
tasks: Task[];
|
|
200
200
|
constructor(bClearLocalStorage: boolean);
|
|
201
201
|
init(bClearLocalStorage: boolean): void;
|
|
202
202
|
setTaskStart(taskType: TaskType, startDate: Date): void;
|
|
@@ -257,9 +257,9 @@ declare module "@mindline/sync" {
|
|
|
257
257
|
pb_total: number;
|
|
258
258
|
pb_timer: NodeJS.Timer;
|
|
259
259
|
milestoneArray: MilestoneArray;
|
|
260
|
-
constructor(config: SyncConfig|null, syncPortalGlobalState: InitInfo|null, bClearLocalStorage: boolean);
|
|
260
|
+
constructor(config: SyncConfig | null, syncPortalGlobalState: InitInfo | null, bClearLocalStorage: boolean);
|
|
261
261
|
// populate tenantNodes based on config tenants
|
|
262
|
-
init(config: SyncConfig|null|undefined, syncPortalGlobalState: InitInfo|null, bClearLocalStorage: boolean): void;
|
|
262
|
+
init(config: SyncConfig | null | undefined, syncPortalGlobalState: InitInfo | null, bClearLocalStorage: boolean): void;
|
|
263
263
|
initializeProgressBar(setSyncProgress: (progress: number) => void, setConfigSyncResult: (result: string) => void, setIdleText: (idleText: string) => void, setMilestones: (milestones: Milestone[]) => void): void;
|
|
264
264
|
uninitializeProgressBar(setSyncProgress: (progress: number) => void, setConfigSyncResult: (result: string) => void, setIdleText: (idleText: string) => void, setMilestones: (milestones: Milestone[]) => void): void;
|
|
265
265
|
initializeSignalR(
|
|
@@ -323,7 +323,7 @@ declare module "@mindline/sync" {
|
|
|
323
323
|
}
|
|
324
324
|
// ======================= Azure AD Graph API ===============================
|
|
325
325
|
export function groupsGet(instance: IPublicClientApplication, user: User | undefined, groupSearchString: string): Promise<{ groups: Group[], error: string }>;
|
|
326
|
-
export function oauth2PermissionGrantsGet(options: RequestInit, user: User, spid: string, oid: string): Promise<{grants: string, error: string}>;
|
|
326
|
+
export function oauth2PermissionGrantsGet(options: RequestInit, user: User, spid: string, oid: string): Promise<{ grants: string, error: string }>;
|
|
327
327
|
export function requestAdminConsent(admin: User, tct: TenantConfigType): void;
|
|
328
328
|
export function servicePrincipalGet(options: RequestInit, user: User, appid: string): Promise<{ spid: string, error: string }>;
|
|
329
329
|
export function signIn(user: User, tasks: TaskArray): boolean;
|
|
@@ -338,8 +338,8 @@ declare module "@mindline/sync" {
|
|
|
338
338
|
// ======================= Mindline SyncConfig API ===============================
|
|
339
339
|
export function auditConfigAdd(instance: IPublicClientApplication, user: User, ac: AuditConfig, debug: boolean): Promise<APIResult>;
|
|
340
340
|
export function auditConfigRetrieve(instance: IPublicClientApplication, user: User, configurationId: string, debug: boolean): Promise<APIResult>;
|
|
341
|
-
export function auditConfigEdit(instance: IPublicClientApplication, user: User, configurationId: string, config: AuditConfig, debug: boolean): Promise<APIResult>;
|
|
342
|
-
export function auditConfigRemove(instance: IPublicClientApplication, user: User, configurationId: string, debug: boolean): Promise<APIResult>;
|
|
341
|
+
export function auditConfigEdit(instance: IPublicClientApplication, user: User, configurationId: string, config: AuditConfig, debug: boolean): Promise<APIResult>;
|
|
342
|
+
export function auditConfigRemove(instance: IPublicClientApplication, user: User, configurationId: string, debug: boolean): Promise<APIResult>;
|
|
343
343
|
export function auditEventsRetrieve(instance: IPublicClientApplication, user: User, debug: boolean): Promise<APIResult>;
|
|
344
344
|
export function configEdit(instance: IPublicClientApplication, authorizedUser: User, config: SyncConfig, setConfigId: (id: string) => void, setSelectedConfigs: (selectedConfigs: { [id: string]: boolean | number[] }) => void, workspace: Workspace, ii: InitInfo, debug: boolean): APIResult;
|
|
345
345
|
export function configEnable(instance: IPublicClientApplication, authorizedUser: User, configurationId: string, enabled: boolean, debug: boolean): APIResult;
|