@mindline/sync 1.0.86 → 1.0.88

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.
Binary file
@@ -0,0 +1,93 @@
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\\package.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
7
+ "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:package.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
8
+ }
9
+ ],
10
+ "DocumentGroupContainers": [
11
+ {
12
+ "Orientation": 0,
13
+ "VerticalTabListWidth": 256,
14
+ "DocumentGroups": [
15
+ {
16
+ "DockedWidth": 200,
17
+ "SelectedChildIndex": 9,
18
+ "Children": [
19
+ {
20
+ "$type": "Bookmark",
21
+ "Name": "ST:0:0:{e506b91c-c606-466a-90a9-123d1d1e12b3}"
22
+ },
23
+ {
24
+ "$type": "Bookmark",
25
+ "Name": "ST:128:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
26
+ },
27
+ {
28
+ "$type": "Bookmark",
29
+ "Name": "ST:129:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
30
+ },
31
+ {
32
+ "$type": "Bookmark",
33
+ "Name": "ST:131:0:{75188d03-9892-4ae2-abf1-207126247ce5}"
34
+ },
35
+ {
36
+ "$type": "Bookmark",
37
+ "Name": "ST:130:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
38
+ },
39
+ {
40
+ "$type": "Bookmark",
41
+ "Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}"
42
+ },
43
+ {
44
+ "$type": "Bookmark",
45
+ "Name": "ST:0:0:{d78612c7-9962-4b83-95d9-268046dad23a}"
46
+ },
47
+ {
48
+ "$type": "Bookmark",
49
+ "Name": "ST:1:0:{d212f56b-c48a-434c-a121-1c5d80b59b9f}"
50
+ },
51
+ {
52
+ "$type": "Bookmark",
53
+ "Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
54
+ },
55
+ {
56
+ "$type": "Document",
57
+ "DocumentIndex": 0,
58
+ "Title": "package.json",
59
+ "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\package.json",
60
+ "RelativeDocumentMoniker": "package.json",
61
+ "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\package.json",
62
+ "RelativeToolTip": "package.json",
63
+ "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
64
+ "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
65
+ "WhenOpened": "2025-03-30T14:35:19.537Z",
66
+ "EditorCaption": ""
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "DockedWidth": 254,
72
+ "SelectedChildIndex": -1,
73
+ "Children": [
74
+ {
75
+ "$type": "Bookmark",
76
+ "Name": "ST:0:0:{004be353-6879-467c-9d1e-9ac23cdf6d49}"
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ "DockedWidth": 200,
82
+ "SelectedChildIndex": -1,
83
+ "Children": [
84
+ {
85
+ "$type": "Bookmark",
86
+ "Name": "ST:0:0:{633c14d1-94e6-4de0-b649-bde18d3de13d}"
87
+ }
88
+ ]
89
+ }
90
+ ]
91
+ }
92
+ ]
93
+ }
@@ -2,13 +2,17 @@
2
2
  "Version": 1,
3
3
  "WorkspaceRootPath": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\",
4
4
  "Documents": [
5
+ {
6
+ "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\package.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
7
+ "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:package.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
8
+ },
5
9
  {
6
10
  "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
11
  "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:index.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
8
12
  },
9
13
  {
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}"
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}"
12
16
  }
13
17
  ],
14
18
  "DocumentGroupContainers": [
@@ -18,7 +22,7 @@
18
22
  "DocumentGroups": [
19
23
  {
20
24
  "DockedWidth": 200,
21
- "SelectedChildIndex": 9,
25
+ "SelectedChildIndex": 11,
22
26
  "Children": [
23
27
  {
24
28
  "$type": "Bookmark",
@@ -53,29 +57,46 @@
53
57
  "Name": "ST:1:0:{d212f56b-c48a-434c-a121-1c5d80b59b9f}"
54
58
  },
55
59
  {
56
- "$type": "Document",
57
- "DocumentIndex": 1,
58
- "Title": "hybridspa.ts",
59
- "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\hybridspa.ts",
60
- "RelativeDocumentMoniker": "hybridspa.ts",
61
- "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\hybridspa.ts",
62
- "RelativeToolTip": "hybridspa.ts",
63
- "ViewState": "AgIAAAAAAAAAAAAAAAAAACsAAAAAAAAAAAAAAA==",
64
- "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
65
- "WhenOpened": "2025-03-28T16:08:06.165Z",
66
- "EditorCaption": ""
60
+ "$type": "Bookmark",
61
+ "Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
67
62
  },
68
63
  {
69
64
  "$type": "Document",
70
- "DocumentIndex": 0,
65
+ "DocumentIndex": 1,
71
66
  "Title": "index.ts",
72
67
  "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.ts",
73
68
  "RelativeDocumentMoniker": "index.ts",
74
69
  "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.ts",
75
70
  "RelativeToolTip": "index.ts",
76
- "ViewState": "AgIAAAAAAAAAAAAAAAAAAGEFAAAAAAAAAAAAAA==",
71
+ "ViewState": "AgIAAAAAAAAAAAAAAAAAABgAAAAbAAAAAAAAAA==",
77
72
  "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
78
- "WhenOpened": "2025-03-28T15:55:38.875Z",
73
+ "WhenOpened": "2025-03-30T15:12:58.969Z",
74
+ "EditorCaption": ""
75
+ },
76
+ {
77
+ "$type": "Document",
78
+ "DocumentIndex": 2,
79
+ "Title": "index.d.ts",
80
+ "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.d.ts",
81
+ "RelativeDocumentMoniker": "index.d.ts",
82
+ "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.d.ts",
83
+ "RelativeToolTip": "index.d.ts",
84
+ "ViewState": "AgIAADYBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
85
+ "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
86
+ "WhenOpened": "2025-03-30T15:10:50.461Z",
87
+ "EditorCaption": ""
88
+ },
89
+ {
90
+ "$type": "Document",
91
+ "DocumentIndex": 0,
92
+ "Title": "package.json",
93
+ "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\package.json",
94
+ "RelativeDocumentMoniker": "package.json",
95
+ "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\package.json",
96
+ "RelativeToolTip": "package.json",
97
+ "ViewState": "AgIAAAAAAAAAAAAAAAAAABcAAAAEAAAAAAAAAA==",
98
+ "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
99
+ "WhenOpened": "2025-03-30T14:35:19.537Z",
79
100
  "EditorCaption": ""
80
101
  }
81
102
  ]
package/hybridspa.ts CHANGED
@@ -40,7 +40,6 @@ async function mindlineDefineHeaders(
40
40
  // always call acquireTokenSilent, handling expired tokens on exception
41
41
  const apiScope: string = getAPIScope(user);
42
42
  try {
43
- debugger;
44
43
  let accounts: AccountInfo[] = instance.getAllAccounts();
45
44
  let homeAccountId = user.oid + "." + user.tid;
46
45
  let account: AccountInfo = null;
package/index.ts CHANGED
@@ -1363,7 +1363,7 @@ export class ActorNode {
1363
1363
  // ======================= Azure AD Graph API ===============================
1364
1364
  // helper functions
1365
1365
  function getGraphAPIScope(user: User): string {
1366
- return "Group.Read.All User.Read.All openid profile offline_access User.Read Contacts.Read CrossTenantInformation.ReadBasic.All https://analysis.windows.net/powerbi/api/App.Read.All https://analysis.windows.net/powerbi/api/Dataset.ReadWrite.All https://analysis.windows.net/powerbi/api/Report.ReadWrite.All https://analysis.windows.net/powerbi/api/Workspace.ReadWrite.All";
1366
+ return "Group.Read.All User.Read.All openid profile offline_access User.Read Contacts.Read CrossTenantInformation.ReadBasic.All";
1367
1367
  }
1368
1368
  // TODO: this is where you want to trigger a re-authentication if token expires
1369
1369
  async function graphDefineHeaders(
@@ -1374,11 +1374,9 @@ async function graphDefineHeaders(
1374
1374
  headers.append("Content-Type", "application/json");
1375
1375
  headers.append("accept", "*/*");
1376
1376
  const graphAPIScope: string = getGraphAPIScope(user);
1377
- debugger;
1378
1377
  // only call acquireTokenByCode if we have never redeemed the code
1379
1378
  if (user.graphAccessToken == null || user.graphAccessToken === "") {
1380
1379
  try {
1381
- debugger;
1382
1380
  let response: AuthenticationResult = await instance.acquireTokenByCode({
1383
1381
  code: user.spacode,
1384
1382
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mindline/sync",
3
3
  "type": "module",
4
- "version": "1.0.86",
4
+ "version": "1.0.88",
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.",
@@ -13,14 +13,14 @@
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "devDependencies": {
16
- "@types/react": "^18.2.21",
17
- "@types/react-dom": "^18.2.7",
18
- "typescript": "^5.2.2",
19
- "vitest": "^0.29.8"
16
+ "@types/react": "^18.3.12",
17
+ "@types/react-dom": "^18.3.0",
18
+ "typescript": "^5.8.2",
19
+ "vitest": "3.0.9"
20
20
  },
21
21
  "dependencies": {
22
- "@microsoft/signalr": "^7.0.10",
22
+ "@microsoft/signalr": "^8.0.7",
23
23
  "class-transformer": "^0.5.1",
24
- "reflect-metadata": "^0.1.13"
24
+ "reflect-metadata": "^0.2.2"
25
25
  }
26
26
  }