@mindline/sync 1.0.96 → 1.0.97

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "ExpandedNodes": [
3
- ""
3
+ "",
4
+ "\\src"
4
5
  ],
5
- "SelectedNode": "\\package.json",
6
6
  "PreviewInSolutionExplorer": false
7
7
  }
package/.vs/slnx.sqlite CHANGED
Binary file
Binary file
@@ -6,6 +6,10 @@
6
6
  "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\src\\index.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
7
7
  "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\index.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
8
8
  },
9
+ {
10
+ "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}",
11
+ "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:package.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
12
+ },
9
13
  {
10
14
  "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\src\\index.d.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
11
15
  "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\index.d.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
@@ -18,10 +22,6 @@
18
22
  "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\vite.config.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
19
23
  "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:vite.config.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
20
24
  },
21
- {
22
- "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}",
23
- "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:package.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
24
- },
25
25
  {
26
26
  "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\dist\\sync.es.js.map||{3B902123-F8A7-4915-9F01-361F908088D0}",
27
27
  "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:dist\\sync.es.js.map||{3B902123-F8A7-4915-9F01-361F908088D0}"
@@ -85,7 +85,7 @@
85
85
  },
86
86
  {
87
87
  "$type": "Document",
88
- "DocumentIndex": 2,
88
+ "DocumentIndex": 3,
89
89
  "Title": "package-lock.json",
90
90
  "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\package-lock.json",
91
91
  "RelativeDocumentMoniker": "package-lock.json",
@@ -121,7 +121,7 @@
121
121
  },
122
122
  {
123
123
  "$type": "Document",
124
- "DocumentIndex": 1,
124
+ "DocumentIndex": 2,
125
125
  "Title": "index.d.ts",
126
126
  "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\src\\index.d.ts",
127
127
  "RelativeDocumentMoniker": "src\\index.d.ts",
@@ -163,14 +163,14 @@
163
163
  "RelativeDocumentMoniker": "src\\index.ts",
164
164
  "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\src\\index.ts",
165
165
  "RelativeToolTip": "src\\index.ts",
166
- "ViewState": "AgIAAAkAAAAAAAAAAAD4vxYAAAAmAAAAAAAAAA==",
166
+ "ViewState": "AgIAAAAAAAAAAAAAAAAAABcAAAAJAAAAAAAAAA==",
167
167
  "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
168
168
  "WhenOpened": "2025-04-05T16:26:25.648Z",
169
169
  "EditorCaption": ""
170
170
  },
171
171
  {
172
172
  "$type": "Document",
173
- "DocumentIndex": 4,
173
+ "DocumentIndex": 1,
174
174
  "Title": "package.json",
175
175
  "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\package.json",
176
176
  "RelativeDocumentMoniker": "package.json",
@@ -182,7 +182,7 @@
182
182
  },
183
183
  {
184
184
  "$type": "Document",
185
- "DocumentIndex": 3,
185
+ "DocumentIndex": 4,
186
186
  "Title": "vite.config.ts",
187
187
  "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\vite.config.ts",
188
188
  "RelativeDocumentMoniker": "vite.config.ts",
@@ -2,14 +2,14 @@
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
- },
9
5
  {
10
6
  "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\src\\index.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
11
7
  "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\index.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
12
8
  },
9
+ {
10
+ "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}",
11
+ "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:package.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
12
+ },
13
13
  {
14
14
  "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\src\\index.d.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
15
15
  "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\index.d.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
@@ -45,7 +45,7 @@
45
45
  "DocumentGroups": [
46
46
  {
47
47
  "DockedWidth": 200,
48
- "SelectedChildIndex": 16,
48
+ "SelectedChildIndex": 15,
49
49
  "Children": [
50
50
  {
51
51
  "$type": "Bookmark",
@@ -157,20 +157,20 @@
157
157
  },
158
158
  {
159
159
  "$type": "Document",
160
- "DocumentIndex": 1,
160
+ "DocumentIndex": 0,
161
161
  "Title": "index.ts",
162
162
  "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\src\\index.ts",
163
163
  "RelativeDocumentMoniker": "src\\index.ts",
164
164
  "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\src\\index.ts",
165
165
  "RelativeToolTip": "src\\index.ts",
166
- "ViewState": "AgIAAAkAAAAAAAAAAAD4vxcAAAATAAAAAAAAAA==",
166
+ "ViewState": "AgIAAAQAAAAAAAAAAAAwwBcAAAAJAAAAAAAAAA==",
167
167
  "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
168
168
  "WhenOpened": "2025-04-05T16:26:25.648Z",
169
169
  "EditorCaption": ""
170
170
  },
171
171
  {
172
172
  "$type": "Document",
173
- "DocumentIndex": 0,
173
+ "DocumentIndex": 1,
174
174
  "Title": "package.json",
175
175
  "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\package.json",
176
176
  "RelativeDocumentMoniker": "package.json",
@@ -178,8 +178,7 @@
178
178
  "RelativeToolTip": "package.json",
179
179
  "ViewState": "AgIAAAAAAAAAAAAAAAAAABIAAAAEAAAAAAAAAA==",
180
180
  "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
181
- "WhenOpened": "2025-04-05T14:39:17.505Z",
182
- "EditorCaption": ""
181
+ "WhenOpened": "2025-04-05T14:39:17.505Z"
183
182
  },
184
183
  {
185
184
  "$type": "Document",
package/dist/sync.es.js CHANGED
@@ -146,8 +146,8 @@ function wt(a, t) {
146
146
  function Tt() {
147
147
  return "hello NPM";
148
148
  }
149
- function B() {
150
- return "1.0.95";
149
+ function F() {
150
+ return "1.0.96";
151
151
  }
152
152
  class y {
153
153
  constructor() {
@@ -156,7 +156,7 @@ class y {
156
156
  l(this, "error");
157
157
  l(this, "version");
158
158
  l(this, "array");
159
- this.result = !0, this.status = 200, this.error = "", this.version = B(), this.array = null;
159
+ this.result = !0, this.status = 200, this.error = "", this.version = F(), this.array = null;
160
160
  }
161
161
  }
162
162
  class U {
@@ -393,7 +393,7 @@ var q, ye;
393
393
  class It {
394
394
  constructor(t = !1) {
395
395
  j(this, q);
396
- l(this, "version", B());
396
+ l(this, "version", F());
397
397
  l(this, "tab", 0);
398
398
  l(this, "us", []);
399
399
  l(this, "ts", []);
@@ -418,7 +418,7 @@ class It {
418
418
  }
419
419
  }
420
420
  }
421
- this.tab = 0, this.version = B(), this.configlevelconsent_configid = "", this.configlevelconsent_access = 3;
421
+ this.tab = 0, this.version = F(), this.configlevelconsent_configid = "", this.configlevelconsent_access = 3;
422
422
  var s = JSON.stringify(De), r = JSON.stringify(Re), e = JSON.stringify(Pe), n = JSON.stringify(ve);
423
423
  try {
424
424
  this.us = W(X, s), this.ts = W(L, r), this.cs = W(Y, e), this.ws = W(ee, n), this.tagWithWorkspaces();
@@ -459,7 +459,7 @@ class It {
459
459
  }
460
460
  }
461
461
  q = new WeakSet(), ye = function(t) {
462
- this.tab = t.tab, this.version = B(), this.configlevelconsent_configid = t.configlevelconsent_configid, this.configlevelconsent_access = t.configlevelconsent_access, typeof t.us > "u" ? this.us = new Array() : this.us = t.us.map((s) => {
462
+ this.tab = t.tab, this.version = F(), this.configlevelconsent_configid = t.configlevelconsent_configid, this.configlevelconsent_access = t.configlevelconsent_access, typeof t.us > "u" ? this.us = new Array() : this.us = t.us.map((s) => {
463
463
  let r = new X();
464
464
  return r.oid = s.oid, r.name = s.name, r.mail = s.mail, r.authority = s.authority, r.tid = s.tid, r.companyName = s.companyName, r.companyDomain = s.companyDomain, r.workspaceIDs = s.workspaceIDs, r.session = s.session, r.spacode = s.spacode, r.graphAccessToken = s.graphAccessToken, r.mindlineAccessToken = s.mindlineAccessToken, r.azureAccessToken = s.azureAccessToken, r.loginHint = s.loginHint, r.scopes = s.scopes, r.authTS = new Date(s.authTS), r.sel = s.sel, r.loggingIn = s.loggingIn, r;
465
465
  }), typeof t.ts > "u" ? this.ts = new Array() : this.ts = t.ts.map((s) => {
@@ -609,7 +609,7 @@ class Q {
609
609
  this.start = t, this.startDisplay = `${this.start.getMinutes().toString().padStart(2, "0")}:${this.start.getSeconds().toString().padStart(2, "0")}`;
610
610
  }
611
611
  }
612
- class _ {
612
+ class B {
613
613
  constructor(t) {
614
614
  l(this, "Run", 0);
615
615
  l(this, "Start", /* @__PURE__ */ new Date());
@@ -670,9 +670,9 @@ class Ue {
670
670
  debugger;
671
671
  return;
672
672
  }
673
- let s = Number(this.milestones[0].Run), r = new _(s + 1);
673
+ let s = Number(this.milestones[0].Run), r = new B(s + 1);
674
674
  this.milestones.unshift(r), this.milestones = this.milestones.map((e) => {
675
- let n = new _(e.Run);
675
+ let n = new B(e.Run);
676
676
  return n.Start = e.Start, n.startDisplay = e.startDisplay, n.POST = e.POST, n.postDisplay = e.postDisplay, n.Read = e.Read, n.readDisplay = e.readDisplay, n.Write = e.Write, n.writeDisplay = e.writeDisplay, n.Duration = e.Duration, n.durationDisplay = e.durationDisplay, n;
677
677
  }), t(this.milestones), console.log(`Start milestone: ${this.milestones[0].Run}:${this.milestones[0].Start}`);
678
678
  }
@@ -683,7 +683,7 @@ class Ue {
683
683
  }
684
684
  let s = this.milestones.shift();
685
685
  this.milestones = this.milestones.map((r) => {
686
- let e = new _(r.Run);
686
+ let e = new B(r.Run);
687
687
  return e.Start = r.Start, e.startDisplay = r.startDisplay, e.POST = r.POST, e.postDisplay = r.postDisplay, e.Read = r.Read, e.readDisplay = r.readDisplay, e.Write = r.Write, e.writeDisplay = r.writeDisplay, e.Duration = r.Duration, e.durationDisplay = r.durationDisplay, e;
688
688
  }), t(this.milestones), console.log(`Unstart removed first milestone: ${s.Run}:${s.Start}`);
689
689
  }
@@ -711,14 +711,14 @@ class Ue {
711
711
  console.log(`Removed milestone #${s.Run}: ${s.Start}`);
712
712
  }
713
713
  this.save(), this.milestones = this.milestones.map((s) => {
714
- let r = new _(s.Run);
714
+ let r = new B(s.Run);
715
715
  return r.Start = s.Start, r.startDisplay = s.startDisplay, r.POST = s.POST, r.postDisplay = s.postDisplay, r.Read = s.Read, r.readDisplay = s.readDisplay, r.Write = s.Write, r.writeDisplay = s.writeDisplay, r.Duration = s.Duration, r.durationDisplay = s.durationDisplay, r;
716
716
  }), t(this.milestones);
717
717
  }
718
718
  }
719
719
  z = new WeakSet(), ne = function(t) {
720
720
  t == null ? this.milestones = new Array() : this.milestones = t.map((s) => {
721
- let r = new _(Number(s.Run));
721
+ let r = new B(Number(s.Run));
722
722
  return r.start(s.Start), r.post(s.POST), r.read(s.Read), r.write(s.Write), r;
723
723
  });
724
724
  };
@@ -812,10 +812,10 @@ class $t {
812
812
  h.batchId = D.BatchId;
813
813
  let A = R.Stats, m = Object.keys(A), P = Object.values(A), oe = !1, ie = !1;
814
814
  for (let g = 0; g < m.length; g++) {
815
- let G = m[g].endsWith("TotalCount"), M = m[g].endsWith("CurrentCount"), F = m[g].endsWith("DeferredCount"), V = m[g].endsWith("RescheduledCount");
815
+ let G = m[g].endsWith("TotalCount"), M = m[g].endsWith("CurrentCount"), _ = m[g].endsWith("DeferredCount"), V = m[g].endsWith("RescheduledCount");
816
816
  if (m[g].startsWith("Reader")) {
817
817
  let N = /Reader\/TID:(.+)\/TotalCount/;
818
- if (M && (N = /Reader\/TID:(.+)\/CurrentCount/), F && (N = /Reader\/TID:(.+)\/DeferredCount/), V && (N = /Reader\/TID:(.+)\/RescheduledCount/), m[g].match(N) == null) {
818
+ if (M && (N = /Reader\/TID:(.+)\/CurrentCount/), _ && (N = /Reader\/TID:(.+)\/DeferredCount/), V && (N = /Reader\/TID:(.+)\/RescheduledCount/), m[g].match(N) == null) {
819
819
  console.log(`tid not found in ${m[g]}.`);
820
820
  debugger;
821
821
  return;
@@ -824,7 +824,7 @@ class $t {
824
824
  }
825
825
  if (h.nothingtosync = oe && ie, m[g].startsWith("Writer")) {
826
826
  let N = /Writer\/TID:(.+)\/TotalCount/;
827
- M && (N = /Writer\/TID:(.+)\/CurrentCount/), F && (N = /Writer\/TID:(.+)\/DeferredCount/), V && (N = /Writer\/TID:(.+)\/RescheduledCount/);
827
+ M && (N = /Writer\/TID:(.+)\/CurrentCount/), _ && (N = /Writer\/TID:(.+)\/DeferredCount/), V && (N = /Writer\/TID:(.+)\/RescheduledCount/);
828
828
  let Z = m[g].match(N);
829
829
  if (Z == null) {
830
830
  console.log(`tid not found in ${m[g]}.`);
@@ -841,7 +841,7 @@ class $t {
841
841
  w.total = Math.max(Number(P[g]), w.total), console.log(`----- ${w.name} TID: ${w.tid} batchId: ${w.batchId}`), console.log(`----- ${w.name} Total To Write: ${w.total}`);
842
842
  else if (M)
843
843
  w.written = Math.max(Number(P[g]), w.written), console.log(`----- ${w.name} Total Written: ${w.written}`);
844
- else if (F || V)
844
+ else if (_ || V)
845
845
  w.deferred = Math.max(Number(P[g]), w.deferred), console.log(`----- ${w.name} Total Deferred: ${w.deferred}`);
846
846
  else {
847
847
  console.log("unknown writer type");
@@ -862,8 +862,8 @@ class $t {
862
862
  else {
863
863
  if (le && this.milestoneArray.milestones[0].Read == null) {
864
864
  this.milestoneArray.read(c), u("reading complete"), console.log('Setting config sync result: "reading complete"'), e(t.workspaceId);
865
- let F = (Date.now() - this.pb_startTS) / 1e3 / 8.5;
866
- this.pb_increment = F, console.log(`Setting increment: ${this.pb_increment}% per second`);
865
+ let _ = (Date.now() - this.pb_startTS) / 1e3 / 8.5;
866
+ this.pb_increment = _, console.log(`Setting increment: ${this.pb_increment}% per second`);
867
867
  }
868
868
  ce ? (this.milestoneArray.write(c), u("sync complete"), console.log('Setting config sync result: "complete"')) : de ? (u("writing in progress"), console.log('Setting config sync result: "writing in progress"')) : this.milestoneArray.milestones[0].Read == null && (u("reading in progress"), console.log('Setting config sync result: "reading in progress"'));
869
869
  }
@@ -1390,7 +1390,7 @@ async function Ut(a, t, s, r, e) {
1390
1390
  if (e)
1391
1391
  debugger;
1392
1392
  let o = new L();
1393
- return o.tid = t.tid, o.domain = t.tid, await Te(o, e) ? (t.authority = o.authority, r.setTaskStart("GET tenant details", /* @__PURE__ */ new Date()), n.result = await Je(t, o, s, a, e), r.setTaskEnd("GET tenant details", /* @__PURE__ */ new Date(), "complete"), n.result && (t.companyName = o.name, t.companyDomain = o.domain, r.setTaskStart("POST config init", /* @__PURE__ */ new Date()), n = await ct(a, t, e), r.setTaskEnd("POST config init", /* @__PURE__ */ new Date(), n.result ? "complete" : "failed")), n.result && (r.setTaskStart("GET workspaces", /* @__PURE__ */ new Date()), n = await Qe(a, t, s, e), r.setTaskEnd("GET workspaces", /* @__PURE__ */ new Date(), n.result ? "complete" : "failed")), console.log("initGet complete. Version: " + B()), n) : (n.error = `Failed to retrieve authority for user "${t.mail}" TID ${t.tid}.`, n.result = !1, n);
1393
+ return o.tid = t.tid, o.domain = t.tid, await Te(o, e) ? (t.authority = o.authority, r.setTaskStart("GET tenant details", /* @__PURE__ */ new Date()), n.result = await Je(t, o, s, a, e), r.setTaskEnd("GET tenant details", /* @__PURE__ */ new Date(), "complete"), n.result && (t.companyName = o.name, t.companyDomain = o.domain, r.setTaskStart("POST config init", /* @__PURE__ */ new Date()), n = await ct(a, t, e), r.setTaskEnd("POST config init", /* @__PURE__ */ new Date(), n.result ? "complete" : "failed")), n.result && (r.setTaskStart("GET workspaces", /* @__PURE__ */ new Date()), n = await Qe(a, t, s, e), r.setTaskEnd("GET workspaces", /* @__PURE__ */ new Date(), n.result ? "complete" : "failed")), console.log("initGet complete. Version: " + F()), n) : (n.error = `Failed to retrieve authority for user "${t.mail}" TID ${t.tid}.`, n.result = !1, n);
1394
1394
  }
1395
1395
  async function Lt(a, t, s, r) {
1396
1396
  return pt(a, t, s, r);
@@ -1504,11 +1504,11 @@ async function Qe(a, t, s, r) {
1504
1504
  return e.result = !1, e.status = 500, e;
1505
1505
  }
1506
1506
  async function qt(a, t) {
1507
- let s = "";
1507
+ let s = "", r = F();
1508
1508
  try {
1509
- let r = a.getAllAccounts(), e = t.oid + "." + t.tid, n = null;
1510
- for (let d = 0; d < r.length; d++)
1511
- r[d].homeAccountId == e && (n = r[d]);
1509
+ let e = a.getAllAccounts(), n = t.oid + "." + t.tid, o = null;
1510
+ for (let i = 0; i < e.length; i++)
1511
+ e[i].homeAccountId == n && (o = e[i]);
1512
1512
  s = (await a.acquireTokenSilent({
1513
1513
  scopes: [
1514
1514
  "https://analysis.windows.net/powerbi/api/App.Read.All",
@@ -1516,12 +1516,12 @@ async function qt(a, t) {
1516
1516
  "https://analysis.windows.net/powerbi/api/Report.ReadWrite.All",
1517
1517
  "https://analysis.windows.net/powerbi/api/Workspace.ReadWrite.All"
1518
1518
  ],
1519
- account: n
1519
+ account: o
1520
1520
  })).accessToken, console.log("PowerBI token acquired silently: " + s.slice(0, 20));
1521
1521
  } catch {
1522
1522
  console.log("PowerBI token failed to be acquired silently");
1523
1523
  }
1524
- return s;
1524
+ return console.log(r), s;
1525
1525
  }
1526
1526
  async function ae(a, t) {
1527
1527
  const s = new Headers();
@@ -2028,7 +2028,7 @@ export {
2028
2028
  Y as Config,
2029
2029
  St as Group,
2030
2030
  It as InitInfo,
2031
- _ as Milestone,
2031
+ B as Milestone,
2032
2032
  Ue as MilestoneArray,
2033
2033
  we as ResourceArray,
2034
2034
  Le as ResourceNode,
@@ -2063,7 +2063,7 @@ export {
2063
2063
  Bt as configsRefresh,
2064
2064
  Kt as elevateGlobalAdminToUserAccessAdmin,
2065
2065
  qt as getPowerBIAccessToken,
2066
- B as getSyncVersion,
2066
+ F as getSyncVersion,
2067
2067
  p as graphConfig,
2068
2068
  Dt as groupsGet,
2069
2069
  Tt as helloNpm,