@mindline/sync 1.0.71 → 1.0.72

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/slnx.sqlite CHANGED
Binary file
Binary file
@@ -72,8 +72,7 @@
72
72
  "RelativeToolTip": "hybridspa.ts",
73
73
  "ViewState": "AQIAANwAAAAAAAAAAAAYwOgAAAAjAAAA",
74
74
  "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
75
- "WhenOpened": "2023-11-25T02:18:34.862Z",
76
- "EditorCaption": ""
75
+ "WhenOpened": "2023-11-25T02:18:34.862Z"
77
76
  },
78
77
  {
79
78
  "$type": "Document",
@@ -83,7 +82,7 @@
83
82
  "RelativeDocumentMoniker": "index.ts",
84
83
  "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.ts",
85
84
  "RelativeToolTip": "index.ts",
86
- "ViewState": "AQIAABMGAAAAAAAAAAAswCYGAAAFAAAA",
85
+ "ViewState": "AQIAAPwGAAAAAAAAAAAcwCwHAAAFAAAA",
87
86
  "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
88
87
  "WhenOpened": "2023-12-05T02:10:16.04Z",
89
88
  "EditorCaption": ""
@@ -96,7 +95,7 @@
96
95
  "RelativeDocumentMoniker": "index.d.ts",
97
96
  "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.d.ts",
98
97
  "RelativeToolTip": "index.d.ts",
99
- "ViewState": "AQIAAAUBAAAAAAAAAAAnwBYBAABBAAAA",
98
+ "ViewState": "AQIAABMBAAAAAAAAAAAEwCsBAAAEAAAA",
100
99
  "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
101
100
  "WhenOpened": "2024-01-01T16:19:43.325Z",
102
101
  "EditorCaption": ""
package/index.d.ts CHANGED
@@ -297,7 +297,7 @@ declare module "@mindline/sync" {
297
297
  debug: boolean): APIResult;
298
298
  export function configRemove(instance: IPublicClientApplication, authorizedUser: User, config: Config, workspaceId: string, debug: boolean): APIResult;
299
299
  export function configsRefresh(instance: IPublicClientApplication, authorizedUser: User, workspaceId: string, ii: InitInfo, debug: boolean): APIResult;
300
- export function initGet(instance: IPublicClientApplication, authorizedUser: User, user: User, ii: InitInfo, tasks: TaskArray, debug: boolean): APIResult;
300
+ export function initGet(instance: IPublicClientApplication, user: User, ii: InitInfo, tasks: TaskArray, debug: boolean): APIResult;
301
301
  export function tenantAdd(instance: IPublicClientApplication, authorizedUser: User, tenant: Tenant, workspaceId: string): APIResult;
302
302
  export function tenantRemove(instance: IPublicClientApplication, authorizedUser: User, tenant: Tenant, workspaceId: string, debug: boolean): APIResult;
303
303
  export function userAdd(instance: IPublicClientApplication, authorizedUser: User, user: User, workspaceId: string): APIResult;
package/index.ts CHANGED
@@ -1793,7 +1793,7 @@ export async function configsRefresh(instance: IPublicClientApplication, authori
1793
1793
  result.status = 500;
1794
1794
  return result;
1795
1795
  }
1796
- export async function initGet(instance: IPublicClientApplication, authorizedUser: User, user: User, ii: InitInfo, tasks: TaskArray, debug: boolean): Promise<APIResult> {
1796
+ export async function initGet(instance: IPublicClientApplication, user: User, ii: InitInfo, tasks: TaskArray, debug: boolean): Promise<APIResult> {
1797
1797
  console.log(`>>>>>> initGet`);
1798
1798
  let result: APIResult = new APIResult();
1799
1799
  if (debug) debugger;
@@ -1814,16 +1814,16 @@ export async function initGet(instance: IPublicClientApplication, authorizedUser
1814
1814
  tasks.setTaskEnd("GET tenant details", new Date(), "complete");
1815
1815
  // store tenant name and domain on user, POST user and tenant to back end
1816
1816
  if (result.result) {
1817
- loggedInUser.companyName = tenant.name;
1818
- loggedInUser.companyDomain = tenant.domain;
1817
+ user.companyName = tenant.name;
1818
+ user.companyDomain = tenant.domain;
1819
1819
  tasks.setTaskStart("POST config init", new Date());
1820
- result = await initPost(instance, authorizedUser, user, debug);
1820
+ result = await initPost(instance, loggedInUser, user, debug);
1821
1821
  tasks.setTaskEnd("POST config init", new Date(), result.result ? "complete" : "failed");
1822
1822
  }
1823
1823
  // simlarly, if we just did our first post, then query config backend for workspace(s) associated with this user
1824
1824
  if (result.result) {
1825
1825
  tasks.setTaskStart("GET workspaces", new Date());
1826
- result = await workspaceInfoGet(instance, authorizedUser, user, ii, debug);
1826
+ result = await workspaceInfoGet(instance, loggedInUser, user, ii, debug);
1827
1827
  tasks.setTaskEnd("GET workspaces", new Date(), result.result ? "complete" : "failed");
1828
1828
  }
1829
1829
  console.log("initGet complete. Version: " + version);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mindline/sync",
3
3
  "type": "module",
4
- "version": "1.0.71",
4
+ "version": "1.0.72",
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.",