@mindline/sync 1.0.113 → 1.0.114

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/dist/sync.es.js CHANGED
@@ -29,7 +29,7 @@ const Fe = [
29
29
  sel: !0,
30
30
  graphSP: ""
31
31
  }
32
- ], Le = [], ze = [
32
+ ], Le = [], je = [
33
33
  {
34
34
  id: "1",
35
35
  name: "",
@@ -42,7 +42,7 @@ const Fe = [
42
42
  associatedConfigs: [],
43
43
  sel: !0
44
44
  }
45
- ], je = [
45
+ ], ze = [
46
46
  {
47
47
  Run: "3",
48
48
  Start: "2023-09-17T12:00:00.000-07:00",
@@ -140,50 +140,68 @@ const Fe = [
140
140
  }
141
141
  ];
142
142
  async function Ke(n) {
143
+ var r;
143
144
  try {
144
145
  if (!n)
145
146
  return { groups: [], error: "400: Search string is required" };
146
- const r = `/api/graphapi/groups?search=${encodeURIComponent(n)}`, s = await fetch(r, {
147
+ const s = `/api/graphapi/groups?search=${encodeURIComponent(n)}`, t = await fetch(s, {
147
148
  method: "GET",
148
149
  headers: {
149
150
  "Content-Type": "application/json"
150
151
  }
151
152
  });
152
- if (!s.ok)
153
- return { groups: [], error: `${s.status}: Failed to retrieve groups` };
154
- const t = await s.json();
155
- return !t.success || !t.data ? { groups: [], error: t.error || "Unknown error" } : { groups: t.data.groups.map((a) => ({
156
- id: a.id,
157
- displayName: a.displayName,
158
- description: a.description || ""
153
+ if (!t.ok) {
154
+ if (t.status === 401)
155
+ try {
156
+ const o = await t.json();
157
+ if ((r = o == null ? void 0 : o.authChallenge) != null && r.code)
158
+ return { groups: [], error: `AUTH_REQUIRED:${o.authChallenge.code}` };
159
+ } catch {
160
+ }
161
+ return { groups: [], error: `${t.status}: Failed to retrieve groups` };
162
+ }
163
+ const e = await t.json();
164
+ return !e.success || !e.data ? { groups: [], error: e.error || "Unknown error" } : { groups: e.data.groups.map((o) => ({
165
+ id: o.id,
166
+ displayName: o.displayName,
167
+ description: o.description || ""
159
168
  })), error: "" };
160
- } catch (r) {
161
- return console.error("Error in groupsGet:", r), { groups: [], error: `Exception: ${r.message}` };
169
+ } catch (s) {
170
+ return console.error("Error in groupsGet:", s), { groups: [], error: `Exception: ${s.message}` };
162
171
  }
163
172
  }
164
- async function ve(n, r) {
173
+ async function De(n, r) {
174
+ var s;
165
175
  try {
166
176
  if (!n || !r)
167
177
  return { grants: null, id: null, error: "400: Service Principal ID and Principal ID are required" };
168
- const s = `/api/graphapi/oauth2-permission-grants?spid=${encodeURIComponent(n)}&oid=${encodeURIComponent(r)}`, t = await fetch(s, {
178
+ const t = `/api/graphapi/oauth2-permission-grants?spid=${encodeURIComponent(n)}&oid=${encodeURIComponent(r)}`, e = await fetch(t, {
169
179
  method: "GET",
170
180
  headers: {
171
181
  "Content-Type": "application/json"
172
182
  }
173
183
  });
174
- if (!t.ok)
175
- return { grants: null, id: null, error: `${t.status}: Failed to retrieve permission grants` };
176
- const e = await t.json();
177
- return !e.success || !e.data ? { grants: null, id: null, error: e.error || "Unknown error" } : {
178
- grants: e.data.grants,
179
- id: e.data.id,
184
+ if (!e.ok) {
185
+ if (e.status === 401)
186
+ try {
187
+ const o = await e.json();
188
+ if ((s = o == null ? void 0 : o.authChallenge) != null && s.code)
189
+ return { grants: null, id: null, error: `AUTH_REQUIRED:${o.authChallenge.code}` };
190
+ } catch {
191
+ }
192
+ return { grants: null, id: null, error: `${e.status}: Failed to retrieve permission grants` };
193
+ }
194
+ const a = await e.json();
195
+ return !a.success || !a.data ? { grants: null, id: null, error: a.error || "Unknown error" } : {
196
+ grants: a.data.grants,
197
+ id: a.data.id,
180
198
  error: ""
181
199
  };
182
- } catch (s) {
183
- return console.error("Error in oauth2PermissionGrantsGet:", s), { grants: null, id: null, error: `Exception: ${s.message}` };
200
+ } catch (t) {
201
+ return console.error("Error in oauth2PermissionGrantsGet:", t), { grants: null, id: null, error: `Exception: ${t.message}` };
184
202
  }
185
203
  }
186
- async function De(n, r) {
204
+ async function ve(n, r) {
187
205
  try {
188
206
  if (!n || !r)
189
207
  return console.error("oauth2PermissionGrantsSet: ID and scopes are required"), !1;
@@ -195,45 +213,63 @@ async function De(n, r) {
195
213
  body: JSON.stringify({ scopes: r })
196
214
  });
197
215
  if (!t.ok)
198
- return console.error(`oauth2PermissionGrantsSet: PATCH failed with status ${t.status}`), !1;
216
+ return t.status === 401 && console.warn("oauth2PermissionGrantsSet: auth required (401)"), console.error(`oauth2PermissionGrantsSet: PATCH failed with status ${t.status}`), !1;
199
217
  const e = await t.json();
200
218
  return !e.success || !e.data ? (console.error(`oauth2PermissionGrantsSet: ${e.error}`), !1) : e.data;
201
219
  } catch (s) {
202
220
  return console.error("Error in oauth2PermissionGrantsSet:", s), !1;
203
221
  }
204
222
  }
205
- async function ke(n) {
223
+ async function Re(n) {
224
+ var r;
206
225
  try {
207
226
  if (!n)
208
227
  return { spid: "", error: "400: Application ID is required" };
209
- const r = `/api/graphapi/service-principals?appId=${encodeURIComponent(n)}`, s = await fetch(r, {
228
+ const s = `/api/graphapi/service-principals?appId=${encodeURIComponent(n)}`, t = await fetch(s, {
210
229
  method: "GET",
211
230
  headers: {
212
231
  "Content-Type": "application/json"
213
232
  }
214
233
  });
215
- if (!s.ok)
216
- return { spid: "", error: `${s.status}: Failed to retrieve service principal` };
217
- const t = await s.json();
218
- return !t.success || !t.data ? { spid: "", error: t.error || "Unknown error" } : { spid: t.data.servicePrincipalId, error: "" };
219
- } catch (r) {
220
- return console.error("Error in servicePrincipalGet:", r), { spid: "", error: `Exception: ${r.message}` };
234
+ if (!t.ok) {
235
+ if (t.status === 401)
236
+ try {
237
+ const a = await t.json();
238
+ if ((r = a == null ? void 0 : a.authChallenge) != null && r.code)
239
+ return { spid: "", error: `AUTH_REQUIRED:${a.authChallenge.code}` };
240
+ } catch {
241
+ }
242
+ return { spid: "", error: `${t.status}: Failed to retrieve service principal` };
243
+ }
244
+ const e = await t.json();
245
+ return !e.success || !e.data ? { spid: "", error: e.error || "Unknown error" } : { spid: e.data.servicePrincipalId, error: "" };
246
+ } catch (s) {
247
+ return console.error("Error in servicePrincipalGet:", s), { spid: "", error: `Exception: ${s.message}` };
221
248
  }
222
249
  }
223
250
  async function qe(n) {
251
+ var r;
224
252
  try {
225
- const r = n ? `/api/graphapi/users?search=${encodeURIComponent(n)}` : "/api/graphapi/users", s = await fetch(r, {
253
+ const s = n ? `/api/graphapi/users?search=${encodeURIComponent(n)}` : "/api/graphapi/users", t = await fetch(s, {
226
254
  method: "GET",
227
255
  headers: {
228
256
  "Content-Type": "application/json"
229
257
  }
230
258
  });
231
- if (!s.ok)
232
- return { users: [], error: `${s.status}: Failed to retrieve users` };
233
- const t = await s.json();
234
- return !t.success || !t.data ? { users: [], error: t.error || "Unknown error" } : { users: t.data.users.map((a) => a.mail || a.userPrincipalName || a.displayName), error: "" };
235
- } catch (r) {
236
- return console.error("Error in usersGet:", r), { users: [], error: `Exception: ${r.message}` };
259
+ if (!t.ok) {
260
+ if (t.status === 401)
261
+ try {
262
+ const o = await t.json();
263
+ if ((r = o == null ? void 0 : o.authChallenge) != null && r.code)
264
+ return { users: [], error: `AUTH_REQUIRED:${o.authChallenge.code}` };
265
+ } catch {
266
+ }
267
+ return { users: [], error: `${t.status}: Failed to retrieve users` };
268
+ }
269
+ const e = await t.json();
270
+ return !e.success || !e.data ? { users: [], error: e.error || "Unknown error" } : { users: e.data.users.map((o) => o.mail || o.userPrincipalName || o.displayName), error: "" };
271
+ } catch (s) {
272
+ return console.error("Error in usersGet:", s), { users: [], error: `Exception: ${s.message}` };
237
273
  }
238
274
  }
239
275
  async function Je() {
@@ -268,7 +304,7 @@ async function Ve() {
268
304
  return console.error("Error in elevateGlobalAdminToUserAccessAdmin:", n), !1;
269
305
  }
270
306
  }
271
- async function Ze() {
307
+ async function Qe() {
272
308
  try {
273
309
  const r = await fetch("/api/azuremanagement/resources", {
274
310
  method: "GET",
@@ -291,8 +327,13 @@ function _t(n, r) {
291
327
  function Lt() {
292
328
  return "hello NPM";
293
329
  }
330
+ function jt(n) {
331
+ if (!n) return !1;
332
+ const r = n.toLowerCase();
333
+ return n.startsWith("AUTH_REQUIRED") || n.startsWith("401") || n.includes("IDW10502") || r.includes("unauthorized");
334
+ }
294
335
  function F() {
295
- return "1.0.113";
336
+ return "1.0.114";
296
337
  }
297
338
  class m {
298
339
  constructor() {
@@ -380,7 +421,7 @@ class zt {
380
421
  u(this, "description", "");
381
422
  }
382
423
  }
383
- class jt {
424
+ class Mt {
384
425
  constructor() {
385
426
  u(this, "group", "");
386
427
  u(this, "value", "");
@@ -428,8 +469,8 @@ class ie {
428
469
  this.oid = "", this.name = "", this.mail = "", this.authority = "", this.tid = "", this.companyName = "", this.companyDomain = "", this.workspaceIDs = "", this.session = "Sign In", this.spacode = "", this.graphAccessToken = "", this.mindlineAccessToken = "", this.azureAccessToken = "", this.loginHint = "", this.scopes = new Array(), this.authTS = /* @__PURE__ */ new Date(0), this.sel = !1, this.loggingIn = !1;
429
470
  }
430
471
  }
431
- var Qe = /* @__PURE__ */ ((n) => (n[n.invalid = 0] = "invalid", n[n.aad = 1] = "aad", n[n.ad = 2] = "ad", n[n.googleworkspace = 3] = "googleworkspace", n))(Qe || {}), Xe = /* @__PURE__ */ ((n) => (n[n.read = 1] = "read", n[n.write = 2] = "write", n[n.notassigned = 3] = "notassigned", n))(Xe || {});
432
- class j {
472
+ var Ze = /* @__PURE__ */ ((n) => (n[n.invalid = 0] = "invalid", n[n.aad = 1] = "aad", n[n.ad = 2] = "ad", n[n.googleworkspace = 3] = "googleworkspace", n))(Ze || {}), Xe = /* @__PURE__ */ ((n) => (n[n.read = 1] = "read", n[n.write = 2] = "write", n[n.notassigned = 3] = "notassigned", n))(Xe || {});
473
+ class z {
433
474
  // are we validating by TID or by domain? "Domain" | "Tenant ID"
434
475
  constructor() {
435
476
  u(this, "tid");
@@ -459,7 +500,7 @@ function Ye(n, r) {
459
500
  return "";
460
501
  }
461
502
  }
462
- function Pe(n) {
503
+ function ke(n) {
463
504
  switch (n) {
464
505
  case h.authorityWW:
465
506
  return "https://graph.microsoft.com/";
@@ -517,7 +558,7 @@ class le {
517
558
  this.id = "", this.name = "", this.workspaceId = "", this.description = "", this.tenants = new Array(), this.isEnabled = !1, this.workspaceIDs = "", this.sel = !1;
518
559
  }
519
560
  }
520
- class Mt {
561
+ class Ht {
521
562
  // selection state
522
563
  constructor() {
523
564
  u(this, "id");
@@ -545,7 +586,7 @@ class ue {
545
586
  this.id = "", this.name = "", this.ownerid = "", this.associatedUsers = new Array(), this.associatedTenants = new Array(), this.associatedConfigs = new Array(), this.sel = !1;
546
587
  }
547
588
  }
548
- function P() {
589
+ function k() {
549
590
  let n;
550
591
  try {
551
592
  n = window.localStorage;
@@ -561,10 +602,10 @@ function P() {
561
602
  n && n.length !== 0;
562
603
  }
563
604
  }
564
- var Z, Re;
565
- class Ht {
605
+ var Q, Pe;
606
+ class Kt {
566
607
  constructor(r = !1) {
567
- V(this, Z);
608
+ V(this, Q);
568
609
  u(this, "version", F());
569
610
  u(this, "tab", 0);
570
611
  u(this, "us", []);
@@ -578,7 +619,7 @@ class Ht {
578
619
  }
579
620
  // get initial data from localStorage or file
580
621
  init(r) {
581
- if (console.log(`Calling InitInfo::init(bClearLocalStorage: ${r ? "true" : "false"})`), P()) {
622
+ if (console.log(`Calling InitInfo::init(bClearLocalStorage: ${r ? "true" : "false"})`), k()) {
582
623
  let o = localStorage.getItem("InitInfo");
583
624
  if (o != null && typeof o == "string" && o !== "") {
584
625
  let i = JSON.parse(o);
@@ -586,15 +627,15 @@ class Ht {
586
627
  if (r)
587
628
  localStorage.removeItem("InitInfo");
588
629
  else {
589
- C(this, Z, Re).call(this, i);
630
+ C(this, Q, Pe).call(this, i);
590
631
  return;
591
632
  }
592
633
  }
593
634
  }
594
635
  this.tab = 0, this.version = F(), this.configlevelconsent_configid = "", this.configlevelconsent_access = 3;
595
- var s = JSON.stringify(Fe), t = JSON.stringify(_e), e = JSON.stringify(Le), a = JSON.stringify(ze);
636
+ var s = JSON.stringify(Fe), t = JSON.stringify(_e), e = JSON.stringify(Le), a = JSON.stringify(je);
596
637
  try {
597
- this.us = B(ie, s), this.ts = B(j, t), this.cs = B(le, e), this.ws = B(ue, a), this.tagWithWorkspaces();
638
+ this.us = B(ie, s), this.ts = B(z, t), this.cs = B(le, e), this.ws = B(ue, a), this.tagWithWorkspaces();
598
639
  } catch {
599
640
  debugger;
600
641
  }
@@ -631,12 +672,12 @@ class Ht {
631
672
  return !0;
632
673
  }
633
674
  }
634
- Z = new WeakSet(), Re = function(r) {
675
+ Q = new WeakSet(), Pe = function(r) {
635
676
  this.tab = r.tab, this.version = F(), this.configlevelconsent_configid = r.configlevelconsent_configid, this.configlevelconsent_access = r.configlevelconsent_access, typeof r.us > "u" ? this.us = new Array() : this.us = r.us.map((s) => {
636
677
  let t = new ie();
637
678
  return t.oid = s.oid, t.name = s.name, t.mail = s.mail, t.authority = s.authority, t.tid = s.tid, t.companyName = s.companyName, t.companyDomain = s.companyDomain, t.workspaceIDs = s.workspaceIDs, t.session = s.session, t.spacode = s.spacode, t.graphAccessToken = s.graphAccessToken, t.mindlineAccessToken = s.mindlineAccessToken, t.azureAccessToken = s.azureAccessToken, t.loginHint = s.loginHint, t.scopes = s.scopes, t.authTS = new Date(s.authTS), t.sel = s.sel, t.loggingIn = s.loggingIn, t;
638
679
  }), typeof r.ts > "u" ? this.ts = new Array() : this.ts = r.ts.map((s) => {
639
- let t = new j();
680
+ let t = new z();
640
681
  return t.tid = s.tid, t.name = s.name, t.domain = s.domain, t.tenantType = s.tenantType, t.authority = s.authority, t.workspaceIDs = s.workspaceIDs, t.sel = s.sel, t.lookupfield = s.lookupfield, t;
641
682
  }), typeof r.cs > "u" ? this.cs = new Array() : this.cs = r.cs.map((s) => {
642
683
  let t = new le();
@@ -699,8 +740,8 @@ const rt = [
699
740
  ]
700
741
  }
701
742
  ];
702
- var G, ce, de, pe;
703
- class Kt {
743
+ var G, ce, de, fe;
744
+ class qt {
704
745
  constructor(r) {
705
746
  V(this, G);
706
747
  u(this, "tasks");
@@ -708,7 +749,7 @@ class Kt {
708
749
  }
709
750
  // get initial data from localStorage or file
710
751
  init(r) {
711
- if (console.log(`Calling TaskArray::init(bClearLocalStorage: ${r ? "true" : "false"})`), this.tasks.length = 0, r && P() && localStorage.removeItem("Tasks"), P()) {
752
+ if (console.log(`Calling TaskArray::init(bClearLocalStorage: ${r ? "true" : "false"})`), this.tasks.length = 0, r && k() && localStorage.removeItem("Tasks"), k()) {
712
753
  let s = localStorage.getItem("Tasks");
713
754
  if (s != null && typeof s == "string" && s !== "") {
714
755
  let e = JSON.parse(s);
@@ -721,7 +762,7 @@ class Kt {
721
762
  setTaskStart(r, s) {
722
763
  let t = C(this, G, ce).call(this, r);
723
764
  if (t != null && t != null)
724
- t.setStart(s), t.status = "in progress", C(this, G, pe).call(this);
765
+ t.setStart(s), t.status = "in progress", C(this, G, fe).call(this);
725
766
  else
726
767
  debugger;
727
768
  }
@@ -729,7 +770,7 @@ class Kt {
729
770
  setTaskEnd(r, s, t) {
730
771
  let e = C(this, G, ce).call(this, r);
731
772
  if (e != null && e != null)
732
- e.setEnd(s), e.status = t, C(this, G, pe).call(this);
773
+ e.setEnd(s), e.status = t, C(this, G, fe).call(this);
733
774
  else
734
775
  debugger;
735
776
  }
@@ -753,9 +794,9 @@ ce = function(r) {
753
794
  return a.id = e.id, a.task = e.task, a.setStart(new Date(e.start)), a.setEnd(new Date(e.end)), a.expected = e.expected, a.status = e.status, a.expanded = e.expanded, a;
754
795
  })), t;
755
796
  });
756
- }, pe = function() {
797
+ }, fe = function() {
757
798
  let r = JSON.stringify(this);
758
- P() && localStorage.setItem("Tasks", r);
799
+ k() && localStorage.setItem("Tasks", r);
759
800
  };
760
801
  class oe {
761
802
  constructor() {
@@ -782,7 +823,7 @@ class oe {
782
823
  this.start = r, this.startDisplay = `${this.start.getMinutes().toString().padStart(2, "0")}:${this.start.getSeconds().toString().padStart(2, "0")}`;
783
824
  }
784
825
  }
785
- class z {
826
+ class j {
786
827
  constructor(r) {
787
828
  u(this, "Run", 0);
788
829
  u(this, "Start", /* @__PURE__ */ new Date());
@@ -810,7 +851,7 @@ class z {
810
851
  r == "" ? this.Write = /* @__PURE__ */ new Date() : this.Write = new Date(r), this.writeDisplay = `${this.Write.getMinutes().toString().padStart(2, "0")}:${this.Write.getSeconds().toString().padStart(2, "0")}`, this.Duration = new Date(this.Write.getTime() - this.Start.getTime()), this.durationDisplay = `${this.Duration.getMinutes().toString().padStart(2, "0")}:${this.Duration.getSeconds().toString().padStart(2, "0")}`;
811
852
  }
812
853
  }
813
- var M, fe;
854
+ var M, pe;
814
855
  class at {
815
856
  constructor(r) {
816
857
  V(this, M);
@@ -818,7 +859,7 @@ class at {
818
859
  this.init(r);
819
860
  }
820
861
  init(r) {
821
- if (P()) {
862
+ if (k()) {
822
863
  let s = localStorage.getItem("syncmilestones");
823
864
  if (s != null && typeof s == "string" && s !== "") {
824
865
  let e = JSON.parse(s);
@@ -826,16 +867,16 @@ class at {
826
867
  if (r)
827
868
  localStorage.removeItem("syncmilestones");
828
869
  else {
829
- C(this, M, fe).call(this, e);
870
+ C(this, M, pe).call(this, e);
830
871
  return;
831
872
  }
832
873
  }
833
874
  }
834
- C(this, M, fe).call(this, je);
875
+ C(this, M, pe).call(this, ze);
835
876
  }
836
877
  save() {
837
878
  let r = JSON.stringify(this.milestones);
838
- P() && localStorage.setItem("syncmilestones", r);
879
+ k() && localStorage.setItem("syncmilestones", r);
839
880
  }
840
881
  // milestone tracking during a sync
841
882
  start(r) {
@@ -843,9 +884,9 @@ class at {
843
884
  debugger;
844
885
  return;
845
886
  }
846
- let s = Number(this.milestones[0].Run), t = new z(s + 1);
887
+ let s = Number(this.milestones[0].Run), t = new j(s + 1);
847
888
  this.milestones.unshift(t), this.milestones = this.milestones.map((e) => {
848
- let a = new z(e.Run);
889
+ let a = new j(e.Run);
849
890
  return a.Start = e.Start, a.startDisplay = e.startDisplay, a.POST = e.POST, a.postDisplay = e.postDisplay, a.Read = e.Read, a.readDisplay = e.readDisplay, a.Write = e.Write, a.writeDisplay = e.writeDisplay, a.Duration = e.Duration, a.durationDisplay = e.durationDisplay, a;
850
891
  }), r(this.milestones), console.log(`Start milestone: ${this.milestones[0].Run}:${this.milestones[0].Start}`);
851
892
  }
@@ -856,7 +897,7 @@ class at {
856
897
  }
857
898
  let s = this.milestones.shift();
858
899
  this.milestones = this.milestones.map((t) => {
859
- let e = new z(t.Run);
900
+ let e = new j(t.Run);
860
901
  return e.Start = t.Start, e.startDisplay = t.startDisplay, e.POST = t.POST, e.postDisplay = t.postDisplay, e.Read = t.Read, e.readDisplay = t.readDisplay, e.Write = t.Write, e.writeDisplay = t.writeDisplay, e.Duration = t.Duration, e.durationDisplay = t.durationDisplay, e;
861
902
  }), r(this.milestones), console.log(`Unstart removed first milestone: ${s.Run}:${s.Start}`);
862
903
  }
@@ -884,18 +925,18 @@ class at {
884
925
  console.log(`Removed milestone #${s.Run}: ${s.Start}`);
885
926
  }
886
927
  this.save(), this.milestones = this.milestones.map((s) => {
887
- let t = new z(s.Run);
928
+ let t = new j(s.Run);
888
929
  return t.Start = s.Start, t.startDisplay = s.startDisplay, t.POST = s.POST, t.postDisplay = s.postDisplay, t.Read = s.Read, t.readDisplay = s.readDisplay, t.Write = s.Write, t.writeDisplay = s.writeDisplay, t.Duration = s.Duration, t.durationDisplay = s.durationDisplay, t;
889
930
  }), r(this.milestones);
890
931
  }
891
932
  }
892
- M = new WeakSet(), fe = function(r) {
933
+ M = new WeakSet(), pe = function(r) {
893
934
  r == null ? this.milestones = new Array() : this.milestones = r.map((s) => {
894
- let t = new z(Number(s.Run));
935
+ let t = new j(Number(s.Run));
895
936
  return t.start(s.Start), t.post(s.POST), t.read(s.Read), t.write(s.Write), t;
896
937
  });
897
938
  };
898
- class qt {
939
+ class Jt {
899
940
  constructor(r, s, t) {
900
941
  u(this, "tenantNodes");
901
942
  u(this, "pb_startTS");
@@ -918,13 +959,13 @@ class qt {
918
959
  this.tenantNodes = new Array(), this.init(r, s, t), this.pb_startTS = 0, this.pb_progress = 0, this.pb_timer = null, this.pb_idle = 0, this.pb_total = 0, this.milestoneArray = new at(!1);
919
960
  }
920
961
  clearStoredBatchIds() {
921
- P() && (localStorage.setItem("BatchIdArray", "[]"), localStorage.removeItem("BatchIdArrayProgress"));
962
+ k() && (localStorage.setItem("BatchIdArray", "[]"), localStorage.removeItem("BatchIdArrayProgress"));
922
963
  }
923
964
  // populate tenantNodes based on config tenants
924
965
  init(r, s, t) {
925
966
  console.log(
926
967
  `Calling BatchArray::init(config: "${r ? r.name : "null"}", bClearLocalStorage: ${t ? "true" : "false"})`
927
- ), t && P() && (localStorage.removeItem(r.name), this.milestoneArray.init(t)), r != null && r.tenants != null && s != null && (this.tenantNodes.length = 0, r.tenants.map((e) => {
968
+ ), t && k() && (localStorage.removeItem(r.name), this.milestoneArray.init(t)), r != null && r.tenants != null && s != null && (this.tenantNodes.length = 0, r.tenants.map((e) => {
928
969
  if (e.configurationTenantType === "source" || e.configurationTenantType === "sourcetarget") {
929
970
  let a = s.ts.find(
930
971
  (o) => o.tid === e.tid
@@ -1017,48 +1058,48 @@ class qt {
1017
1058
  }
1018
1059
  updateProgressFromTotals(r, s, t, e, a, o) {
1019
1060
  const c = this.calculateProgress(r, s, t, e, a);
1020
- this.pb_progress = Math.max(this.pb_progress, c), o(this.pb_progress), P() && localStorage.setItem("BatchIdArrayProgress", String(this.pb_progress));
1061
+ this.pb_progress = Math.max(this.pb_progress, c), o(this.pb_progress), k() && localStorage.setItem("BatchIdArrayProgress", String(this.pb_progress));
1021
1062
  }
1022
- initializeSignalR(r, s, t, e, a, o, c, i, l, d, p, $, E, x, N, U, D) {
1023
- this.milestoneArray.post(p), $("started sync, waiting for updates..."), this.init(r, s, !1);
1063
+ initializeSignalR(r, s, t, e, a, o, c, i, l, d, f, $, E, x, N, U, v) {
1064
+ this.milestoneArray.post(f), $("started sync, waiting for updates..."), this.init(r, s, !1);
1024
1065
  let A = (O, he) => {
1025
1066
  var Ie, $e;
1026
1067
  this.pb_idle = 0;
1027
- let _ = t.find((f) => f.BatchId == O);
1068
+ let _ = t.find((p) => p.BatchId == O);
1028
1069
  if (_ == null) {
1029
1070
  console.log(`Batch ${O} not found in batchIdArray.`);
1030
1071
  debugger;
1031
1072
  return;
1032
1073
  }
1033
- let g = this.tenantNodes.find((f) => f.tid === _.SourceId);
1074
+ let g = this.tenantNodes.find((p) => p.tid === _.SourceId);
1034
1075
  if (g == null) {
1035
1076
  console.log(`Tenant ${_.SourceId} not found in BatchArray.`);
1036
1077
  debugger;
1037
1078
  return;
1038
1079
  }
1039
1080
  g.batchId = _.BatchId;
1040
- let k = Object.keys(he), R = Object.values(he), Q = !1, ge = !1;
1041
- for (let f = 0; f < k.length; f++) {
1042
- let v = k[f].endsWith("TotalCount"), q = k[f].endsWith("CurrentCount"), re = k[f].endsWith("ExtCount"), J = k[f].endsWith("DeferredCount"), ae = k[f].endsWith("RescheduledCount");
1043
- if (re && (g.excluded = Math.max(Number(R[f]), g.excluded), g.targets.map((y) => {
1081
+ let R = Object.keys(he), P = Object.values(he), Z = !1, ge = !1;
1082
+ for (let p = 0; p < R.length; p++) {
1083
+ let D = R[p].endsWith("TotalCount"), q = R[p].endsWith("CurrentCount"), re = R[p].endsWith("ExtCount"), J = R[p].endsWith("DeferredCount"), ae = R[p].endsWith("RescheduledCount");
1084
+ if (re && (g.excluded = Math.max(Number(P[p]), g.excluded), g.targets.map((y) => {
1044
1085
  y.excluded = g.excluded, y.update(y.total, y.read, y.excluded, y.written, y.deferred);
1045
- })), v && (Q = Number(R[f]) == 0, g.total = Math.max(Number(R[f]), g.total), g.targets.map((y) => {
1086
+ })), D && (Z = Number(P[p]) == 0, g.total = Math.max(Number(P[p]), g.total), g.targets.map((y) => {
1046
1087
  y.total = g.total, y.update(y.total, y.read, y.excluded, y.written, y.deferred);
1047
- })), k[f].startsWith("Reader")) {
1088
+ })), R[p].startsWith("Reader")) {
1048
1089
  let y = /Reader\/TID:(.+)\/TotalCount/;
1049
- if (q && (y = /Reader\/TID:(.+)\/CurrentCount/), re && (y = /Reader\/TID:(.+)\/ExtCount/), J && (y = /Reader\/TID:(.+)\/DeferredCount/), ae && (y = /Reader\/TID:(.+)\/RescheduledCount/), k[f].match(y) == null) {
1050
- console.log(`tid not found in ${k[f]}.`);
1090
+ if (q && (y = /Reader\/TID:(.+)\/CurrentCount/), re && (y = /Reader\/TID:(.+)\/ExtCount/), J && (y = /Reader\/TID:(.+)\/DeferredCount/), ae && (y = /Reader\/TID:(.+)\/RescheduledCount/), R[p].match(y) == null) {
1091
+ console.log(`tid not found in ${R[p]}.`);
1051
1092
  debugger;
1052
1093
  return;
1053
1094
  }
1054
- v ? (Q = Number(R[f]) == 0, g.total = Math.max(Number(R[f]), g.total), console.log(`----- ${g.name} TID: ${g.tid} batchId: ${g.batchId}`), console.log(`----- ${g.name} Total To Read: ${g.total}`)) : (ge = Number(R[f]) == 0, q ? (g.read = Math.max(Number(R[f]), g.read), console.log(`----- ${g.name} Currently Read: ${g.read}`)) : J && (g.deferred = Math.max(Number(R[f]), g.deferred), console.log(`----- ${g.name} Deferred: ${g.deferred}`)));
1095
+ D ? (Z = Number(P[p]) == 0, g.total = Math.max(Number(P[p]), g.total), console.log(`----- ${g.name} TID: ${g.tid} batchId: ${g.batchId}`), console.log(`----- ${g.name} Total To Read: ${g.total}`)) : (ge = Number(P[p]) == 0, q ? (g.read = Math.max(Number(P[p]), g.read), console.log(`----- ${g.name} Currently Read: ${g.read}`)) : J && (g.deferred = Math.max(Number(P[p]), g.deferred), console.log(`----- ${g.name} Deferred: ${g.deferred}`)));
1055
1096
  }
1056
- if (g.nothingtosync = Q && ge, k[f].startsWith("Writer")) {
1097
+ if (g.nothingtosync = Z && ge, R[p].startsWith("Writer")) {
1057
1098
  let y = /Writer\/TID:(.+)\/TotalCount/;
1058
1099
  q && (y = /Writer\/TID:(.+)\/CurrentCount/), re && (y = /Writer\/TID:(.+)\/ExtCount/), J && (y = /Writer\/TID:(.+)\/DeferredCount/), ae && (y = /Writer\/TID:(.+)\/RescheduledCount/);
1059
- let ne = k[f].match(y);
1100
+ let ne = R[p].match(y);
1060
1101
  if (ne == null) {
1061
- console.log(`tid not found in ${k[f]}.`);
1102
+ console.log(`tid not found in ${R[p]}.`);
1062
1103
  debugger;
1063
1104
  return;
1064
1105
  }
@@ -1068,12 +1109,12 @@ class qt {
1068
1109
  debugger;
1069
1110
  return;
1070
1111
  }
1071
- if (w.total = Math.max(Number(g.total), w.total), w.total = Math.max(Number(g.total), w.total), w.batchId = _.BatchId, v)
1072
- w.total = Math.max(Number(R[f]), w.total), console.log(`----- ${w.name} TID: ${w.tid} batchId: ${w.batchId}`), console.log(`----- ${w.name} Total To Write: ${w.total}`);
1112
+ if (w.total = Math.max(Number(g.total), w.total), w.total = Math.max(Number(g.total), w.total), w.batchId = _.BatchId, D)
1113
+ w.total = Math.max(Number(P[p]), w.total), console.log(`----- ${w.name} TID: ${w.tid} batchId: ${w.batchId}`), console.log(`----- ${w.name} Total To Write: ${w.total}`);
1073
1114
  else if (q)
1074
- w.written = Math.max(Number(R[f]), w.written), console.log(`----- ${w.name} Total Written: ${w.written}`);
1115
+ w.written = Math.max(Number(P[p]), w.written), console.log(`----- ${w.name} Total Written: ${w.written}`);
1075
1116
  else if (J || ae)
1076
- w.deferred = Math.max(Number(R[f]), w.deferred), console.log(`----- ${w.name} Total Deferred: ${w.deferred}`);
1117
+ w.deferred = Math.max(Number(P[p]), w.deferred), console.log(`----- ${w.name} Total Deferred: ${w.deferred}`);
1077
1118
  else {
1078
1119
  console.log("unknown writer type");
1079
1120
  debugger;
@@ -1084,16 +1125,16 @@ class qt {
1084
1125
  }
1085
1126
  g.update(g.total, g.read, g.excluded, g.written, g.deferred);
1086
1127
  let me = !0, X = !0, ye = !1, we = !0, L = 0, Y = 0, H = 0, ee = 0, K = 0, te = 0, se = 0;
1087
- this.tenantNodes.map((f) => {
1088
- f.targets.map((v) => {
1089
- X && (X = v.status == "complete" || v.status == "failed"), ye || (ye = v.total > 0 || v.status != "not started"), ee += Math.max(v.total, f.total), K += v.written, te += v.excluded, se += v.deferred;
1090
- }), we && (we = f.nothingtosync), me && (me = f.total > 0 && f.read + f.excluded >= f.total), L += f.total, Y += f.read, H += f.excluded;
1128
+ this.tenantNodes.map((p) => {
1129
+ p.targets.map((D) => {
1130
+ X && (X = D.status == "complete" || D.status == "failed"), ye || (ye = D.total > 0 || D.status != "not started"), ee += Math.max(D.total, p.total), K += D.written, te += D.excluded, se += D.deferred;
1131
+ }), we && (we = p.nothingtosync), me && (me = p.total > 0 && p.read + p.excluded >= p.total), L += p.total, Y += p.read, H += p.excluded;
1091
1132
  });
1092
1133
  const Te = L - H, Oe = K + se, Se = Te > 0 && Te === Oe;
1093
- Se && (X = !0, this.tenantNodes.forEach((f) => {
1094
- f.targets.forEach((v) => {
1095
- v.status !== "failed" && (v.status = "complete");
1096
- }), f.status !== "failed" && (f.status = "complete");
1134
+ Se && (X = !0, this.tenantNodes.forEach((p) => {
1135
+ p.targets.forEach((D) => {
1136
+ D.status !== "failed" && (D.status = "complete");
1137
+ }), p.status !== "failed" && (p.status = "complete");
1097
1138
  })), a(L), c(Y), o(H), i(Math.max(ee, L)), d(K), l(te), this.updateProgressFromTotals(
1098
1139
  Math.max(L, ee),
1099
1140
  Y,
@@ -1102,9 +1143,9 @@ class qt {
1102
1143
  // Deferred users count as completed for write.
1103
1144
  se,
1104
1145
  E
1105
- ), we ? (this.milestoneArray.write(p), this.stopPolling(), $("nothing to sync"), this.pb_timer && (clearInterval(this.pb_timer), this.pb_timer = null), this.pb_progress = 100, E(this.pb_progress), (Ie = this.setIdleText) == null || Ie.call(this, "Complete (nothing to sync)."), this.clearStoredBatchIds(), console.log('Setting config sync result: "nothing to sync"')) : (me && (this.milestoneArray.read(p), $("reading complete"), console.log('Setting config sync result: "reading complete"'), e(r.workspaceId)), X && Se ? (this.milestoneArray.write(p), this.stopPolling(), $("sync complete"), this.pb_timer && (clearInterval(this.pb_timer), this.pb_timer = null), this.pb_progress = 100, E(this.pb_progress), ($e = this.setIdleText) == null || $e.call(this, "Complete."), this.clearStoredBatchIds(), console.log('Setting config sync result: "complete"')) : ye ? ($("writing in progress"), console.log('Setting config sync result: "writing in progress"')) : this.milestoneArray.milestones[0].Read == null && ($("reading in progress"), console.log('Setting config sync result: "reading in progress"')));
1146
+ ), we ? (this.milestoneArray.write(f), this.stopPolling(), $("nothing to sync"), this.pb_timer && (clearInterval(this.pb_timer), this.pb_timer = null), this.pb_progress = 100, E(this.pb_progress), (Ie = this.setIdleText) == null || Ie.call(this, "Complete (nothing to sync)."), this.clearStoredBatchIds(), console.log('Setting config sync result: "nothing to sync"')) : (me && (this.milestoneArray.read(f), $("reading complete"), console.log('Setting config sync result: "reading complete"'), e(r.workspaceId)), X && Se ? (this.milestoneArray.write(f), this.stopPolling(), $("sync complete"), this.pb_timer && (clearInterval(this.pb_timer), this.pb_timer = null), this.pb_progress = 100, E(this.pb_progress), ($e = this.setIdleText) == null || $e.call(this, "Complete."), this.clearStoredBatchIds(), console.log('Setting config sync result: "complete"')) : ye ? ($("writing in progress"), console.log('Setting config sync result: "writing in progress"')) : this.milestoneArray.milestones[0].Read == null && ($("reading in progress"), console.log('Setting config sync result: "reading in progress"')));
1106
1147
  };
1107
- this.statsHydrationHandler = A, U && D && (this.pollInstance = U, this.pollAuthorizedUser = D, this.pollBatchIdArray = t, this.stopPolling(), this.pollInstance = U, this.pollAuthorizedUser = D, this.pollBatchIdArray = t, this.pollStatsOnce(), this.pollTimer = setInterval(() => {
1148
+ this.statsHydrationHandler = A, U && v && (this.pollInstance = U, this.pollAuthorizedUser = v, this.pollBatchIdArray = t, this.stopPolling(), this.pollInstance = U, this.pollAuthorizedUser = v, this.pollBatchIdArray = t, this.pollStatsOnce(), this.pollTimer = setInterval(() => {
1108
1149
  this.pollStatsOnce();
1109
1150
  }, this.pollIntervalSeconds * 1e3));
1110
1151
  }
@@ -1154,7 +1195,7 @@ class Ge {
1154
1195
  }
1155
1196
  // get resource data from localStorage or file
1156
1197
  init(r) {
1157
- if (console.log(`Calling ResourceArray::init(bClearLocalStorage: ${r ? "true" : "false"})`), P()) {
1198
+ if (console.log(`Calling ResourceArray::init(bClearLocalStorage: ${r ? "true" : "false"})`), k()) {
1158
1199
  let t = localStorage.getItem("ResourceArray");
1159
1200
  if (t != null && typeof t == "string" && t !== "")
1160
1201
  if (r)
@@ -1175,11 +1216,11 @@ class Ge {
1175
1216
  // read
1176
1217
  async read(r, s) {
1177
1218
  let t = new Ge(!1, !1);
1178
- return t.resourceNodes = await pt(), t;
1219
+ return t.resourceNodes = await ft(), t;
1179
1220
  }
1180
1221
  // save resource data to localstorage
1181
1222
  save() {
1182
- if (P()) {
1223
+ if (k()) {
1183
1224
  let r = JSON.stringify(this);
1184
1225
  localStorage.setItem("ResourceArray", r);
1185
1226
  }
@@ -1195,14 +1236,14 @@ class Ce {
1195
1236
  this.type = r, this.resource = s, this.cost = t, this.expanded = !1, this.resources = new Array();
1196
1237
  }
1197
1238
  }
1198
- class Jt {
1239
+ class Vt {
1199
1240
  constructor(r) {
1200
1241
  u(this, "actorNodes");
1201
1242
  this.actorNodes = new Array(), this.init(r);
1202
1243
  }
1203
1244
  // get initial data from localStorage or file
1204
1245
  init(r) {
1205
- if (console.log(`Calling ResourceArray::init(bClearLocalStorage: ${r ? "true" : "false"})`), P()) {
1246
+ if (console.log(`Calling ResourceArray::init(bClearLocalStorage: ${r ? "true" : "false"})`), k()) {
1206
1247
  let t = localStorage.getItem("RBACActors");
1207
1248
  if (t != null && typeof t == "string" && t !== "")
1208
1249
  if (r)
@@ -1233,27 +1274,27 @@ class nt {
1233
1274
  this.type = r, this.actor = s, this.resource = t, this.role = e, this.updatedby = a, this.updatedon = o, this.actors = new Array();
1234
1275
  }
1235
1276
  }
1236
- async function Vt(n, r, s) {
1277
+ async function Qt(n, r, s) {
1237
1278
  return await Ke(s);
1238
1279
  }
1239
1280
  async function Zt(n, r, s, t) {
1240
- return await ve(s, t);
1241
- }
1242
- async function Qt(n, r, s, t) {
1243
1281
  return await De(s, t);
1244
1282
  }
1245
- function Xt(n, r) {
1283
+ async function Xt(n, r, s, t) {
1284
+ return await ve(s, t);
1285
+ }
1286
+ function Yt(n, r) {
1246
1287
  let s = et(n.authority);
1247
1288
  s += n.tid, s += "/adminconsent";
1248
1289
  let t = new URL(s), e = Ye(n.authority, r);
1249
1290
  t.searchParams.append("client_id", e), t.searchParams.append("redirect_uri", window.location.origin), t.searchParams.append("domain_hint", n.companyDomain), t.searchParams.append("login_hint", n.mail), window.location.assign(t.href);
1250
1291
  }
1251
- async function Yt(n, r, s) {
1252
- return await ke(s);
1292
+ async function es(n, r, s) {
1293
+ return await Re(s);
1253
1294
  }
1254
- async function es(n, r) {
1295
+ async function ts(n, r) {
1255
1296
  if (n.authority == "") {
1256
- let e = new j();
1297
+ let e = new z();
1257
1298
  if (e.domain = n.tid, await xe(e, !1))
1258
1299
  n.authority = e.authority;
1259
1300
  else {
@@ -1285,7 +1326,7 @@ async function es(n, r) {
1285
1326
  t.searchParams.append("domainHint", "organizations");
1286
1327
  return r.setTaskStart("initialization", /* @__PURE__ */ new Date()), r.setTaskStart("authenticate user", /* @__PURE__ */ new Date()), window.location.assign(t.href), !0;
1287
1328
  }
1288
- function ts(n, r) {
1329
+ function ss(n, r) {
1289
1330
  debugger;
1290
1331
  if (n.oid == "1") return;
1291
1332
  let s = window.location.href;
@@ -1305,7 +1346,7 @@ function ts(n, r) {
1305
1346
  let t = new URL(s);
1306
1347
  t.searchParams.append("redirectUri", window.location.origin), t.searchParams.append("scope", r), t.searchParams.append("domainHint", "organizations"), t.searchParams.append("loginHint", n.mail), window.location.assign(t.href);
1307
1348
  }
1308
- async function ss(n) {
1349
+ async function rs(n) {
1309
1350
  if (n.oid == "1") return !1;
1310
1351
  let r = window.location.href;
1311
1352
  r += "user";
@@ -1332,7 +1373,7 @@ async function ss(n) {
1332
1373
  }
1333
1374
  return s = new URL(a), s.searchParams.append("redirectUri", window.location.origin), window.location.assign(s.href), !0;
1334
1375
  }
1335
- async function rs(n, r, s, t) {
1376
+ async function as(n, r, s, t) {
1336
1377
  if (t) debugger;
1337
1378
  if (r.name != null && r.name !== "") return !1;
1338
1379
  if (n.graphAccessToken != null && n.graphAccessToken === "") {
@@ -1348,7 +1389,7 @@ async function rs(n, r, s, t) {
1348
1389
  e.append("Authorization", a);
1349
1390
  let o = { method: "GET", headers: e };
1350
1391
  try {
1351
- var c = Pe(r.authority) + h.graphTenantByDomainPredicate;
1392
+ var c = ke(r.authority) + h.graphTenantByDomainPredicate;
1352
1393
  c += "(domainName='", c += r.domain, c += "')", console.log("tenantRelationshipsGetByDomain: Attempting GET from /findTenantInformationByDomainName:", c);
1353
1394
  let i = await fetch(c, o);
1354
1395
  if (i.status == 200) {
@@ -1380,7 +1421,7 @@ async function ot(n, r, s, t, e) {
1380
1421
  a.append("Authorization", o);
1381
1422
  let c = { method: "GET", headers: a };
1382
1423
  try {
1383
- var i = Pe(n.authority) + h.graphTenantByIdPredicate;
1424
+ var i = ke(n.authority) + h.graphTenantByIdPredicate;
1384
1425
  i += "(tenantId='", i += r.tid, i += "')", console.log("tenantRelationshipsGetById: Attempting GET from /findTenantInformationByTenantId:", i);
1385
1426
  let d = await (await fetch(i, c)).json();
1386
1427
  if (d && typeof d.displayName !== void 0 && d.displayName !== "") {
@@ -1428,72 +1469,72 @@ async function it(n, r, s) {
1428
1469
  return { scopes: null, id: null, error: "500: invalid parameter(s) passed to getUserDelegatedScopes" };
1429
1470
  try {
1430
1471
  if (s.graphSP == "") {
1431
- let { spid: o, error: c } = await ke("00000003-0000-0000-c000-000000000000");
1472
+ let { spid: o, error: c } = await Re("00000003-0000-0000-c000-000000000000");
1432
1473
  if (c != "")
1433
1474
  return { scopes: null, id: null, error: `${c}` };
1434
1475
  s.graphSP = o;
1435
1476
  }
1436
- let { grants: t, id: e, error: a } = await ve(s.graphSP, r.oid);
1477
+ let { grants: t, id: e, error: a } = await De(s.graphSP, r.oid);
1437
1478
  return a != "" ? { scopes: null, id: null, error: `${a}` } : { scopes: t, id: e, error: "" };
1438
1479
  } catch (t) {
1439
1480
  return console.log(t), { scopes: null, id: null, error: `Exception: ${t}` };
1440
1481
  }
1441
1482
  }
1442
- async function as(n, r, s, t) {
1483
+ async function ns(n, r, s, t) {
1443
1484
  if (r == null || s == null)
1444
1485
  return !1;
1445
1486
  let { scopes: e, id: a, error: o } = await it(n, r, s);
1446
1487
  if (o != "")
1447
1488
  return console.log(`userDelegatedScopesRemove: cannot find userDelegatedScopes for ${r.mail}: ${o}`), !1;
1448
1489
  e = e.replace(t, "");
1449
- let c = await De(a, e);
1490
+ let c = await ve(a, e);
1450
1491
  return c ? (r.scopes = e.split(" "), c) : (console.log(`userDelegatedScopesRemove: cannot set oauth2PermissionGrants for ${r.mail}`), !1);
1451
1492
  }
1452
- async function ns(n, r, s) {
1493
+ async function os(n, r, s) {
1453
1494
  return await qe(s);
1454
1495
  }
1455
- async function os(n, r, s, t) {
1496
+ async function is(n, r, s, t) {
1456
1497
  return yt(n, r, s, t);
1457
1498
  }
1458
- async function is(n, r, s, t) {
1499
+ async function ls(n, r, s, t) {
1459
1500
  return wt(n, r, s, t);
1460
1501
  }
1461
- async function ls(n, r, s, t, e) {
1502
+ async function us(n, r, s, t, e) {
1462
1503
  return Tt(n, r, s, t, e);
1463
1504
  }
1464
- async function us(n, r, s, t) {
1505
+ async function cs(n, r, s, t) {
1465
1506
  return St(n, r, s, t);
1466
1507
  }
1467
- async function cs(n, r, s) {
1508
+ async function ds(n, r, s) {
1468
1509
  return It(n, r, s);
1469
1510
  }
1470
- async function ds(n, r, s, t, e, a, o, c) {
1511
+ async function fs(n, r, s, t, e, a, o, c) {
1471
1512
  let i = new m();
1472
1513
  if (s.id === "1") {
1473
- if (i = await Dt(n, r, s, a.id, c), i.result) {
1474
- s.tenants.forEach((p) => {
1475
- (p.configId === "1" || p.configId === "") && (p.configId = s.id);
1514
+ if (i = await vt(n, r, s, a.id, c), i.result) {
1515
+ s.tenants.forEach((f) => {
1516
+ (f.configId === "1" || f.configId === "") && (f.configId = s.id);
1476
1517
  }), t && t(s.id);
1477
1518
  const l = {};
1478
1519
  Object.defineProperty(l, s.id, { value: !0, writable: !0, enumerable: !0 }), e(l);
1479
- let d = a.associatedConfigs.findIndex((p) => p == "1");
1520
+ let d = a.associatedConfigs.findIndex((f) => f == "1");
1480
1521
  d !== -1 && (a.associatedConfigs.splice(d, 1), a.associatedConfigs.push(s.id));
1481
1522
  }
1482
1523
  } else
1483
- i = await kt(n, r, s, c);
1524
+ i = await Rt(n, r, s, c);
1484
1525
  return o.save(), i;
1485
1526
  }
1486
1527
  async function ps(n, r, s, t, e) {
1487
1528
  let a = new m();
1488
- return a = await vt(n, r, s, t, e), a;
1529
+ return a = await Dt(n, r, s, t, e), a;
1489
1530
  }
1490
- async function fs(n, r, s, t, e) {
1531
+ async function hs(n, r, s, t, e) {
1491
1532
  return $t(n, r, s, t, e);
1492
1533
  }
1493
- async function hs(n, r, s, t, e) {
1534
+ async function gs(n, r, s, t, e) {
1494
1535
  return bt(n, r, s, t, e);
1495
1536
  }
1496
- async function gs(n, r, s, t, e, a) {
1537
+ async function ms(n, r, s, t, e, a) {
1497
1538
  let o = new m();
1498
1539
  if (e) debugger;
1499
1540
  try {
@@ -1508,30 +1549,30 @@ async function gs(n, r, s, t, e, a) {
1508
1549
  return console.log(c.message), o.error = c.message, o.result = !1, o.status = 500, o;
1509
1550
  }
1510
1551
  }
1511
- async function ms(n, r, s, t, e) {
1552
+ async function ys(n, r, s, t, e) {
1512
1553
  return At(n, r, s, t);
1513
1554
  }
1514
- async function ys(n, r, s, t, e) {
1555
+ async function ws(n, r, s, t, e) {
1515
1556
  console.log(">>>>>> initGet");
1516
1557
  let a = new m();
1517
1558
  if (e)
1518
1559
  debugger;
1519
- let o = new j();
1520
- return o.tid = r.tid, o.domain = r.tid, await xe(o, e) ? (r.authority = o.authority, t.setTaskStart("GET tenant details", /* @__PURE__ */ new Date()), a.result = await ot(r, o, s, n, e), t.setTaskEnd("GET tenant details", /* @__PURE__ */ new Date(), "complete"), a.result && (r.companyName = o.name, r.companyDomain = o.domain, t.setTaskStart("POST config init", /* @__PURE__ */ new Date()), a = await Rt(n, r, e), t.setTaskEnd("POST config init", /* @__PURE__ */ new Date(), a.result ? "complete" : "failed")), a.result && (t.setTaskStart("GET workspaces", /* @__PURE__ */ new Date()), a = await dt(n, r, s, e), t.setTaskEnd("GET workspaces", /* @__PURE__ */ new Date(), a.result ? "complete" : "failed")), console.log("initGet complete. Version: " + F()), a) : (a.error = `Failed to retrieve authority for user "${r.mail}" TID ${r.tid}.`, a.result = !1, a);
1560
+ let o = new z();
1561
+ return o.tid = r.tid, o.domain = r.tid, await xe(o, e) ? (r.authority = o.authority, t.setTaskStart("GET tenant details", /* @__PURE__ */ new Date()), a.result = await ot(r, o, s, n, e), t.setTaskEnd("GET tenant details", /* @__PURE__ */ new Date(), "complete"), a.result && (r.companyName = o.name, r.companyDomain = o.domain, t.setTaskStart("POST config init", /* @__PURE__ */ new Date()), a = await Pt(n, r, e), t.setTaskEnd("POST config init", /* @__PURE__ */ new Date(), a.result ? "complete" : "failed")), a.result && (t.setTaskStart("GET workspaces", /* @__PURE__ */ new Date()), a = await dt(n, r, s, e), t.setTaskEnd("GET workspaces", /* @__PURE__ */ new Date(), a.result ? "complete" : "failed")), console.log("initGet complete. Version: " + F()), a) : (a.error = `Failed to retrieve authority for user "${r.mail}" TID ${r.tid}.`, a.result = !1, a);
1521
1562
  }
1522
- async function ws(n, r, s, t) {
1563
+ async function Ts(n, r, s, t) {
1523
1564
  return xt(n, r, s, t);
1524
1565
  }
1525
- async function Ts(n, r, s, t, e) {
1566
+ async function Ss(n, r, s, t, e) {
1526
1567
  return Gt(n, r, s, t);
1527
1568
  }
1528
- async function Ss(n, r, s, t) {
1569
+ async function Is(n, r, s, t) {
1529
1570
  return mt(n, r, s, t);
1530
1571
  }
1531
- async function Is(n, r, s, t) {
1572
+ async function $s(n, r, s, t) {
1532
1573
  return ht(n, r, s, t);
1533
1574
  }
1534
- async function $s(n, r, s, t) {
1575
+ async function bs(n, r, s, t) {
1535
1576
  return await Ot(n, r, s, t);
1536
1577
  }
1537
1578
  function lt(n, r, s, t) {
@@ -1541,7 +1582,7 @@ function lt(n, r, s, t) {
1541
1582
  let l = r.us.findIndex((d) => d.oid === "1");
1542
1583
  if (l !== -1) {
1543
1584
  a = r.us.at(l);
1544
- let d = n.associatedUsers.findIndex((p) => p == "1");
1585
+ let d = n.associatedUsers.findIndex((f) => f == "1");
1545
1586
  d !== -1 && (n.associatedUsers.splice(d, 1), n.associatedUsers.push(e.userId));
1546
1587
  } else
1547
1588
  a = new ie(), r.us.push(a);
@@ -1556,13 +1597,13 @@ function ut(n, r, s, t) {
1556
1597
  s.map((e) => {
1557
1598
  let a = null, o = r.ts.findIndex((d) => d.tid === e.tenantId);
1558
1599
  if (o === -1) {
1559
- let d = r.ts.findIndex((p) => p.tid === "1");
1600
+ let d = r.ts.findIndex((f) => f.tid === "1");
1560
1601
  if (d !== -1) {
1561
1602
  a = r.ts.at(d);
1562
- let p = n.associatedTenants.findIndex(($) => $ == "1");
1563
- p !== -1 && (n.associatedTenants.splice(p, 1), n.associatedTenants.push(e.tenantId));
1603
+ let f = n.associatedTenants.findIndex(($) => $ == "1");
1604
+ f !== -1 && (n.associatedTenants.splice(f, 1), n.associatedTenants.push(e.tenantId));
1564
1605
  } else
1565
- a = new j(), r.ts.push(a);
1606
+ a = new z(), r.ts.push(a);
1566
1607
  } else
1567
1608
  a = r.ts.at(o);
1568
1609
  a.sel = t === e.tenantId, a.tid = e.tenantId, a.name = e.name, a.domain = e.domain, a.tenantType = e.type.toLowerCase();
@@ -1595,29 +1636,29 @@ async function dt(n, r, s, t) {
1595
1636
  try {
1596
1637
  if (e = await Nt(n, r, t), e.result) {
1597
1638
  for (let a of e.array) {
1598
- let o = null, c = s.ws.findIndex((D) => D.id === a.id);
1639
+ let o = null, c = s.ws.findIndex((v) => v.id === a.id);
1599
1640
  if (c === -1) {
1600
- let D = s.ws.findIndex((A) => A.id === "1");
1601
- D !== -1 ? o = s.ws.at(D) : (o = new ue(), s.ws.push(o));
1641
+ let v = s.ws.findIndex((A) => A.id === "1");
1642
+ v !== -1 ? o = s.ws.at(v) : (o = new ue(), s.ws.push(o));
1602
1643
  } else
1603
1644
  o = s.ws.at(c);
1604
1645
  let i = "";
1605
- for (let D of o.associatedUsers) {
1606
- let A = s.us.find((O) => O.oid === D);
1646
+ for (let v of o.associatedUsers) {
1647
+ let A = s.us.find((O) => O.oid === v);
1607
1648
  A != null && A.sel && (i = A.oid);
1608
1649
  }
1609
1650
  let l = "";
1610
- for (let D of o.associatedTenants) {
1611
- let A = s.ts.find((O) => O.tid === D);
1651
+ for (let v of o.associatedTenants) {
1652
+ let A = s.ts.find((O) => O.tid === v);
1612
1653
  A != null && A.sel && (l = A.tid);
1613
1654
  }
1614
1655
  let d = "";
1615
- for (let D of o.associatedConfigs) {
1616
- let A = s.cs.find((O) => O.id === D);
1656
+ for (let v of o.associatedConfigs) {
1657
+ let A = s.cs.find((O) => O.id === v);
1617
1658
  A != null && A.sel && (d = A.id);
1618
1659
  }
1619
1660
  o.associatedUsers.length = 0, o.associatedTenants.length = 0, o.associatedConfigs.length = 0, o.id = a.id, o.name = a.name, o.ownerid = a.workspaceOwnerUserId;
1620
- let p = gt(n, r, o.id, t), $ = Ct(n, r, o.id, t), E = Pt(n, r, o.id, t), [x, N, U] = await Promise.all([p, $, E]);
1661
+ let f = gt(n, r, o.id, t), $ = Ct(n, r, o.id, t), E = kt(n, r, o.id, t), [x, N, U] = await Promise.all([f, $, E]);
1621
1662
  if (!x.result) return x;
1622
1663
  if (!N.result) return N;
1623
1664
  if (!U.result) return U;
@@ -1630,7 +1671,7 @@ async function dt(n, r, s, t) {
1630
1671
  }
1631
1672
  return e.result = !1, e.status = 500, e;
1632
1673
  }
1633
- async function bs(n, r) {
1674
+ async function Es(n, r) {
1634
1675
  let s = "", t = F();
1635
1676
  try {
1636
1677
  let e = n.getAllAccounts(), a = r.oid + "." + r.tid, o = null;
@@ -1650,27 +1691,27 @@ async function bs(n, r) {
1650
1691
  }
1651
1692
  return console.log(t), s;
1652
1693
  }
1653
- async function Es(n, r) {
1694
+ async function As(n, r) {
1654
1695
  return await Je();
1655
1696
  }
1656
- async function As(n, r) {
1697
+ async function Ds(n, r) {
1657
1698
  return await Ve();
1658
1699
  }
1659
- async function pt(n, r) {
1700
+ async function ft(n, r) {
1660
1701
  try {
1661
- return (await Ze()).map((e) => new Ce(e.type, e.name, 0));
1702
+ return (await Qe()).map((e) => new Ce(e.type, e.name, 0));
1662
1703
  } catch (s) {
1663
1704
  return console.error("Error in readResources:", s), [];
1664
1705
  }
1665
1706
  }
1666
- function ft(n) {
1707
+ function pt(n) {
1667
1708
  let r = "8d95d21c-c378-4bb0-9f52-88c30d271e7a", s = n.authority.toLowerCase();
1668
1709
  return s.startsWith("https://login.microsoftonline.com/") ? r = "8d95d21c-c378-4bb0-9f52-88c30d271e7a" : s.startsWith("https://login.microsoftonline.us/") ? r = "48da942e-ea3d-49e4-a054-81649012f8f2" : s.startsWith("https://login.partner.microsoftonline.cn/") && (r = "c91d32e4-dcc5-4d77-826a-16e93ffce666"), `api://${r}/Config.Write`;
1669
1710
  }
1670
1711
  async function I(n, r) {
1671
1712
  const s = new Headers();
1672
1713
  s.append("Content-Type", "application/json"), s.append("accept", "*/*");
1673
- const t = ft(r);
1714
+ const t = pt(r);
1674
1715
  try {
1675
1716
  let e = n.getAllAccounts(), a = r.oid + "." + r.tid, o = null;
1676
1717
  for (let i = 0; i < e.length; i++)
@@ -1843,10 +1884,10 @@ async function Tt(n, r, s, t, e) {
1843
1884
  try {
1844
1885
  if (e) debugger;
1845
1886
  console.log("Attempting PUT to /audit-configuration: " + c.href);
1846
- const p = await fetch(c.href, d);
1847
- p.status === 200 && p.statusText === "OK" ? (a.result = !0, console.log(`Successful PUT to ${c.href}: ${l}`)) : (a.error = await S(p), console.error(`Failed PUT to ${c.href}: ${l}`), a.status = p.status, a.result = !1);
1848
- } catch (p) {
1849
- a.error = p.message, a.status = 500, a.result = !1, console.error("Error during auditConfigPut:", p.message);
1887
+ const f = await fetch(c.href, d);
1888
+ f.status === 200 && f.statusText === "OK" ? (a.result = !0, console.log(`Successful PUT to ${c.href}: ${l}`)) : (a.error = await S(f), console.error(`Failed PUT to ${c.href}: ${l}`), a.status = f.status, a.result = !1);
1889
+ } catch (f) {
1890
+ a.error = f.message, a.status = 500, a.result = !1, console.error("Error during auditConfigPut:", f.message);
1850
1891
  }
1851
1892
  return a;
1852
1893
  }
@@ -1904,10 +1945,10 @@ async function $t(n, r, s, t, e) {
1904
1945
  }`, d = { method: "PUT", headers: i, body: l };
1905
1946
  try {
1906
1947
  console.log("Attempting PUT read consent to /configuration/consent: " + c.href);
1907
- let p = await fetch(c.href, d);
1908
- return p.status === 200 && p.statusText === "OK" ? (console.log(`Successful PUT to ${c.href}`), a) : (a.error = await S(p), console.log(`Failed PUT to ${c.href}`), console.log(a.error), a.status = 500, a.result = !1, a);
1909
- } catch (p) {
1910
- a.error = p.message, a.status = 500, a.result = !1, console.log(p.message);
1948
+ let f = await fetch(c.href, d);
1949
+ return f.status === 200 && f.statusText === "OK" ? (console.log(`Successful PUT to ${c.href}`), a) : (a.error = await S(f), console.log(`Failed PUT to ${c.href}`), console.log(a.error), a.status = 500, a.result = !1, a);
1950
+ } catch (f) {
1951
+ a.error = f.message, a.status = 500, a.result = !1, console.log(f.message);
1911
1952
  }
1912
1953
  return a;
1913
1954
  }
@@ -1922,10 +1963,10 @@ async function bt(n, r, s, t, e) {
1922
1963
  }`, d = { method: "PUT", headers: i, body: l };
1923
1964
  try {
1924
1965
  console.log("Attempting PUT read consent to /configuration/consent: " + c.href);
1925
- let p = await fetch(c.href, d);
1926
- return p.status === 200 && p.statusText === "OK" ? (console.log(`Successful PUT to ${c.href}`), a) : (a.error = await S(p), console.log(`Failed PUT to ${c.href}`), console.log(a.error), a.status = 500, a.result = !1, a);
1927
- } catch (p) {
1928
- a.error = p.message, a.status = 500, a.result = !1, console.log(p.message);
1966
+ let f = await fetch(c.href, d);
1967
+ return f.status === 200 && f.statusText === "OK" ? (console.log(`Successful PUT to ${c.href}`), a) : (a.error = await S(f), console.log(`Failed PUT to ${c.href}`), console.log(a.error), a.status = 500, a.result = !1, a);
1968
+ } catch (f) {
1969
+ a.error = f.message, a.status = 500, a.result = !1, console.log(f.message);
1929
1970
  }
1930
1971
  return a;
1931
1972
  }
@@ -1969,7 +2010,7 @@ async function At(n, r, s, t, e) {
1969
2010
  }
1970
2011
  return a;
1971
2012
  }
1972
- async function vt(n, r, s, t, e) {
2013
+ async function Dt(n, r, s, t, e) {
1973
2014
  let a = new m();
1974
2015
  if (s === "")
1975
2016
  return a.result = !1, a.error = "configPatch: invalid config ID", a.status = 500, a;
@@ -1986,7 +2027,7 @@ async function vt(n, r, s, t, e) {
1986
2027
  }
1987
2028
  return a;
1988
2029
  }
1989
- async function Dt(n, r, s, t, e) {
2030
+ async function vt(n, r, s, t, e) {
1990
2031
  let a = new m();
1991
2032
  if (s.id === "")
1992
2033
  return a.result = !1, a.error = "configPost: invalid config ID", a.status = 500, a;
@@ -2000,10 +2041,10 @@ async function Dt(n, r, s, t, e) {
2000
2041
  "isEnabled": ${s.isEnabled},
2001
2042
  "tenants": [`;
2002
2043
  s.tenants.map((d) => {
2003
- let p = d.sourceGroupId != "" ? `"${d.sourceGroupId}"` : "null", $ = d.sourceGroupName != "" ? `"${d.sourceGroupName}"` : "null", E = d.targetGroupId != "" ? `"${d.targetGroupId}"` : "null", x = d.targetGroupName != "" ? `"${d.targetGroupName}"` : "null";
2044
+ let f = d.sourceGroupId != "" ? `"${d.sourceGroupId}"` : "null", $ = d.sourceGroupName != "" ? `"${d.sourceGroupName}"` : "null", E = d.targetGroupId != "" ? `"${d.targetGroupId}"` : "null", x = d.targetGroupName != "" ? `"${d.targetGroupName}"` : "null";
2004
2045
  i.slice(-1) === "}" && (i += ","), i += `{
2005
2046
  "tenantId": "${d.tid}",
2006
- "sourceGroupId": ${p},
2047
+ "sourceGroupId": ${f},
2007
2048
  "sourceGroupName": ${$},
2008
2049
  "targetGroupId": ${E},
2009
2050
  "targetGroupName": ${x},
@@ -2018,8 +2059,8 @@ async function Dt(n, r, s, t, e) {
2018
2059
  console.log("Attempting POST to /config: " + o);
2019
2060
  let d = await fetch(o, l);
2020
2061
  if (d.status === 200 && d.statusText === "OK") {
2021
- let p = await d.json();
2022
- return s.id = typeof p == "object" && p !== null && p.id ? p.id : p, console.log(
2062
+ let f = await d.json();
2063
+ return s.id = typeof f == "object" && f !== null && f.id ? f.id : f, console.log(
2023
2064
  `Successful ConfigID: ${s.id} from POST to /config: ${i}`
2024
2065
  ), a;
2025
2066
  } else
@@ -2028,7 +2069,7 @@ async function Dt(n, r, s, t, e) {
2028
2069
  return a.status = 500, a.result = !1, a.error = d.message, console.log(a.error), a;
2029
2070
  }
2030
2071
  }
2031
- async function kt(n, r, s, t) {
2072
+ async function Rt(n, r, s, t) {
2032
2073
  let e = new m();
2033
2074
  if (s.id === "")
2034
2075
  return e.result = !1, e.error = "configPost: invalid config ID", e.status = 500, e;
@@ -2062,10 +2103,10 @@ async function kt(n, r, s, t) {
2062
2103
  let d = await fetch(o.href, l);
2063
2104
  if (d.status === 200 && d.statusText === "OK") {
2064
2105
  console.log(`Successful PUT to ${o.href}: ${i}`);
2065
- let p = await d.json();
2106
+ let f = await d.json();
2066
2107
  return {
2067
2108
  ...e,
2068
- array: [p]
2109
+ array: [f]
2069
2110
  };
2070
2111
  } else
2071
2112
  return e.error = await S(d), console.log(`Failed PUT to ${o.href}: ${i}`), console.log(e.error), e.status = 500, e.result = !1, e;
@@ -2074,7 +2115,7 @@ async function kt(n, r, s, t) {
2074
2115
  }
2075
2116
  return e;
2076
2117
  }
2077
- async function Pt(n, r, s, t) {
2118
+ async function kt(n, r, s, t) {
2078
2119
  let e = new m();
2079
2120
  if (s === "")
2080
2121
  return e.result = !1, e.status = 500, e.error = "configsGet: no workspace provided", e;
@@ -2109,12 +2150,12 @@ async function vs(n, r, s, t) {
2109
2150
  if (l.status === 200 && l.statusText === "OK") {
2110
2151
  const d = await l.json();
2111
2152
  if (d)
2112
- return e.array = d.map((p) => ({
2113
- id: p.id,
2114
- name: p.name,
2115
- description: p.description,
2116
- configurationType: p.configurationType,
2117
- isEnabled: p.isEnabled
2153
+ return e.array = d.map((f) => ({
2154
+ id: f.id,
2155
+ name: f.name,
2156
+ description: f.description,
2157
+ configurationType: f.configurationType,
2158
+ isEnabled: f.isEnabled
2118
2159
  })), console.log(
2119
2160
  `workspaceConfigsGet: found ${e.array.length} configs.`
2120
2161
  ), e;
@@ -2126,7 +2167,7 @@ async function vs(n, r, s, t) {
2126
2167
  }
2127
2168
  return e;
2128
2169
  }
2129
- async function Rt(n, r, s) {
2170
+ async function Pt(n, r, s) {
2130
2171
  let t = new m();
2131
2172
  if (r.companyName === "" || r.companyDomain === "")
2132
2173
  return t.result = !1, t.error = "initPost: invalid company name or domain", t.status = 500, t;
@@ -2239,7 +2280,7 @@ async function Nt(n, r, s) {
2239
2280
  let i = await fetch(a.href, c);
2240
2281
  if (i.status === 200 && i.statusText === "OK") {
2241
2282
  let l = await i.json();
2242
- return l != null ? (t.array = l, console.log(`Successful GET from /workspaces: ${t.array.reduce((p, $) => p + $.name + " ", "")}`), t) : (t.error = "Failed GET from /workspaces: failed to JSON-parse response", console.log(t.error), t.status = 500, t.result = !1, t);
2283
+ return l != null ? (t.array = l, console.log(`Successful GET from /workspaces: ${t.array.reduce((f, $) => f + $.name + " ", "")}`), t) : (t.error = "Failed GET from /workspaces: failed to JSON-parse response", console.log(t.error), t.status = 500, t.result = !1, t);
2243
2284
  } else
2244
2285
  return console.log(`Failed GET from /workspaces: ${a.href}`), t.error = await S(i), t.status = 500, t.result = !1, console.log(t.error), t;
2245
2286
  } catch (i) {
@@ -2288,92 +2329,93 @@ async function Wt(n, r, s) {
2288
2329
  }
2289
2330
  export {
2290
2331
  m as APIResult,
2291
- Jt as ActorArray,
2332
+ Vt as ActorArray,
2292
2333
  nt as ActorNode,
2293
- Mt as AuditConfig,
2294
- qt as BatchArray,
2334
+ Ht as AuditConfig,
2335
+ Jt as BatchArray,
2295
2336
  zt as Group,
2296
- Ht as InitInfo,
2297
- z as Milestone,
2337
+ Kt as InitInfo,
2338
+ j as Milestone,
2298
2339
  at as MilestoneArray,
2299
2340
  Ge as ResourceArray,
2300
2341
  Ce as ResourceNode,
2301
2342
  le as SyncConfig,
2302
2343
  oe as Task,
2303
- Kt as TaskArray,
2304
- j as Tenant,
2344
+ qt as TaskArray,
2345
+ z as Tenant,
2305
2346
  st as TenantConfigInfo,
2306
2347
  tt as TenantConfigType,
2307
2348
  Ae as TenantNode,
2308
2349
  Xe as TenantPermissionType,
2309
- Qe as TenantType,
2350
+ Ze as TenantType,
2310
2351
  ie as User,
2311
- jt as UserScope,
2352
+ Mt as UserScope,
2312
2353
  ue as Workspace,
2313
2354
  ht as adminDelete,
2314
2355
  mt as adminPost,
2315
2356
  gt as adminsGet,
2316
- os as auditConfigAdd,
2357
+ is as auditConfigAdd,
2317
2358
  St as auditConfigDelete,
2318
- ls as auditConfigEdit,
2359
+ us as auditConfigEdit,
2319
2360
  wt as auditConfigGet,
2320
2361
  yt as auditConfigPost,
2321
2362
  Tt as auditConfigPut,
2322
- us as auditConfigRemove,
2323
- is as auditConfigRetrieve,
2363
+ cs as auditConfigRemove,
2364
+ ls as auditConfigRetrieve,
2324
2365
  It as auditEventsGet,
2325
- cs as auditEventsRetrieve,
2366
+ ds as auditEventsRetrieve,
2326
2367
  Ee as azureConfig,
2327
- Es as canListRootAssignments,
2328
- fs as configConsentForRead,
2329
- hs as configConsentForWrite,
2368
+ As as canListRootAssignments,
2369
+ hs as configConsentForRead,
2370
+ gs as configConsentForWrite,
2330
2371
  $t as configConsentReadPut,
2331
2372
  bt as configConsentWritePut,
2332
2373
  At as configDelete,
2333
- ds as configEdit,
2374
+ fs as configEdit,
2334
2375
  ps as configEnable,
2335
2376
  Et as configGet,
2336
- vt as configPatch,
2337
- Dt as configPost,
2338
- kt as configPut,
2339
- ms as configRemove,
2340
- Pt as configsGet,
2341
- gs as configsRefresh,
2342
- As as elevateGlobalAdminToUserAccessAdmin,
2343
- bs as getPowerBIAccessToken,
2377
+ Dt as configPatch,
2378
+ vt as configPost,
2379
+ Rt as configPut,
2380
+ ys as configRemove,
2381
+ kt as configsGet,
2382
+ ms as configsRefresh,
2383
+ Ds as elevateGlobalAdminToUserAccessAdmin,
2384
+ Es as getPowerBIAccessToken,
2344
2385
  F as getSyncVersion,
2345
2386
  h as graphConfig,
2346
- Vt as groupsGet,
2387
+ Qt as groupsGet,
2347
2388
  Lt as helloNpm,
2348
- ys as initGet,
2349
- Rt as initPost,
2389
+ ws as initGet,
2390
+ Pt as initPost,
2391
+ jt as isAuthRefreshRequired,
2350
2392
  T as mindlineConfig,
2351
2393
  Zt as oauth2PermissionGrantsGet,
2352
- Qt as oauth2PermissionGrantsSet,
2394
+ Xt as oauth2PermissionGrantsSet,
2353
2395
  S as processErrors,
2354
2396
  Ut as readerPost,
2355
2397
  Wt as readerStats,
2356
- Xt as requestAdminConsent,
2357
- Yt as servicePrincipalGet,
2358
- es as signIn,
2359
- ts as signInIncrementally,
2360
- ss as signOut,
2398
+ Yt as requestAdminConsent,
2399
+ es as servicePrincipalGet,
2400
+ ts as signIn,
2401
+ ss as signInIncrementally,
2402
+ rs as signOut,
2361
2403
  _t as sum,
2362
- ws as tenantAdd,
2404
+ Ts as tenantAdd,
2363
2405
  Gt as tenantDelete,
2364
2406
  xt as tenantPost,
2365
- rs as tenantRelationshipsGetByDomain,
2407
+ as as tenantRelationshipsGetByDomain,
2366
2408
  ot as tenantRelationshipsGetById,
2367
- Ts as tenantRemove,
2409
+ Ss as tenantRemove,
2368
2410
  xe as tenantUnauthenticatedLookup,
2369
2411
  Ct as tenantsGet,
2370
- Ss as userAdd,
2412
+ Is as userAdd,
2371
2413
  it as userDelegatedScopesGet,
2372
- as as userDelegatedScopesRemove,
2373
- Is as userRemove,
2374
- ns as usersGet,
2414
+ ns as userDelegatedScopesRemove,
2415
+ $s as userRemove,
2416
+ os as usersGet,
2375
2417
  vs as workspaceConfigsGet,
2376
- $s as workspaceEdit,
2418
+ bs as workspaceEdit,
2377
2419
  Ot as workspacePut,
2378
2420
  Nt as workspacesGet
2379
2421
  };