@databrainhq/plugin 0.15.9-uat → 0.15.9-uat2

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.
@@ -27702,7 +27702,7 @@ function Uz(M, N, n) {
27702
27702
  var r = qF(M, N, n);
27703
27703
  return Yyt(r, Vyt);
27704
27704
  }
27705
- const drt = "https://uat-express-as.azurewebsites.net", UL = "/api/v2/dashboard", B3 = "/api/v2/metric", jz = "/api/v3/metric", Zyt = "dashboardData", vyt = `${UL}/embeddedMetric`, Wyt = "embeddedMetric", byt = `${B3}/layout`, grt = "dashboardLayout", Byt = `${UL}/scheduledReport`, Jyt = "dashboardScheduledReport", Gyt = `${B3}/saveLayout`, Hyt = "saveLayout", Xyt = `${UL}/saveScheduleReport`, _yt = "saveScheduleReport", Pyt = `${UL}/deleteScheduleReport`, Kyt = "deleteScheduleReport", qyt = `${UL}/createMetric`, $yt = "createMetric", tEt = `${UL}/updateMetric`, eEt = "updateMetric", MEt = `${UL}/updateAdminMetric`, NEt = "updateAdminMetric", nEt = `${UL}/generateMetric`, rEt = "generateMetric", iEt = `${UL}/datasetMetricCreation`, uEt = "datasetMetricCreation", aEt = `${UL}/previewTable`, sEt = "previewTable", oEt = `${UL}/generatetMetricData`, lEt = "/generatetMetricData", TEt = `${UL}/getOpenaiChatResponse`, DEt = "getOpenaiChatResponse", cEt = `${UL}/getTheme`, UEt = "getTheme", jEt = `${jz}/query`, LEt = "query", dEt = `${jz}/datasetMetricCreation`, gEt = "newDatasetMetricCreation", SEt = `${jz}/generateDataReport`, yEt = "generateDataReport", EEt = `${jz}/chatQuery`, IEt = "chatQuery", zEt = `${B3}/rawDownloadSettings`, QEt = "rawDownloadSettings", OEt = `${B3}/column`, REt = "column", xEt = `${B3}/underlyingData`, CEt = "underlyingData", VEt = `${B3}/invokeShareCsv`, FEt = "invokeShareCsv", hEt = `${jz}/markArchived`, AEt = "markArchived", kEt = `${jz}/publishMetrics`, pEt = "publishMetrics", wEt = `${jz}/download-csv`, fEt = "IS_LOADING", mEt = "DATA_LOADED", Srt = () => localStorage.getItem(Vdt), Gc = async (M, N = { method: "GET" }) => {
27705
+ const drt = "https://api.usedatabrain.com", UL = "/api/v2/dashboard", B3 = "/api/v2/metric", jz = "/api/v3/metric", Zyt = "dashboardData", vyt = `${UL}/embeddedMetric`, Wyt = "embeddedMetric", byt = `${B3}/layout`, grt = "dashboardLayout", Byt = `${UL}/scheduledReport`, Jyt = "dashboardScheduledReport", Gyt = `${B3}/saveLayout`, Hyt = "saveLayout", Xyt = `${UL}/saveScheduleReport`, _yt = "saveScheduleReport", Pyt = `${UL}/deleteScheduleReport`, Kyt = "deleteScheduleReport", qyt = `${UL}/createMetric`, $yt = "createMetric", tEt = `${UL}/updateMetric`, eEt = "updateMetric", MEt = `${UL}/updateAdminMetric`, NEt = "updateAdminMetric", nEt = `${UL}/generateMetric`, rEt = "generateMetric", iEt = `${UL}/datasetMetricCreation`, uEt = "datasetMetricCreation", aEt = `${UL}/previewTable`, sEt = "previewTable", oEt = `${UL}/generatetMetricData`, lEt = "/generatetMetricData", TEt = `${UL}/getOpenaiChatResponse`, DEt = "getOpenaiChatResponse", cEt = `${UL}/getTheme`, UEt = "getTheme", jEt = `${jz}/query`, LEt = "query", dEt = `${jz}/datasetMetricCreation`, gEt = "newDatasetMetricCreation", SEt = `${jz}/generateDataReport`, yEt = "generateDataReport", EEt = `${jz}/chatQuery`, IEt = "chatQuery", zEt = `${B3}/rawDownloadSettings`, QEt = "rawDownloadSettings", OEt = `${B3}/column`, REt = "column", xEt = `${B3}/underlyingData`, CEt = "underlyingData", VEt = `${B3}/invokeShareCsv`, FEt = "invokeShareCsv", hEt = `${jz}/markArchived`, AEt = "markArchived", kEt = `${jz}/publishMetrics`, pEt = "publishMetrics", wEt = `${jz}/download-csv`, fEt = "IS_LOADING", mEt = "DATA_LOADED", Srt = () => localStorage.getItem(Vdt), Gc = async (M, N = { method: "GET" }) => {
27706
27706
  var u;
27707
27707
  const n = {
27708
27708
  method: N.method,
@@ -28119,7 +28119,7 @@ const Py = Symbol(), yW = (M) => !!M[Py], QV = (M) => !M[Py].c, q5 = (M) => {
28119
28119
  ), nIt = /* @__PURE__ */ new WeakMap(), OV = (M) => "init" in M, IW = "r", zW = "w", Bh = "c", QW = "s", YX = "h", rIt = "n", iIt = "l", uIt = "a", aIt = "m", sIt = (M) => {
28120
28120
  const N = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new Map();
28121
28121
  let i, u;
28122
- if (({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (i = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set()), M)
28122
+ if (({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (i = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set()), M)
28123
28123
  for (const [fe, MM] of M) {
28124
28124
  const sM = {
28125
28125
  v: MM,
@@ -28128,7 +28128,7 @@ const Py = Symbol(), yW = (M) => !!M[Py], QV = (M) => !M[Py].c, q5 = (M) => {
28128
28128
  // not invalidated
28129
28129
  d: /* @__PURE__ */ new Map()
28130
28130
  };
28131
- ({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (Object.freeze(sM), OV(fe) || console.warn(
28131
+ ({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (Object.freeze(sM), OV(fe) || console.warn(
28132
28132
  "Found initial value for derived atom which can cause unexpected behavior",
28133
28133
  fe
28134
28134
  )), N.set(fe, sM);
@@ -28154,7 +28154,7 @@ const Py = Symbol(), yW = (M) => !!M[Py], QV = (M) => !M[Py].c, q5 = (M) => {
28154
28154
  }
28155
28155
  return N.get(MM);
28156
28156
  }, U = (fe, MM, sM) => {
28157
- if (({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && Object.freeze(sM), fe)
28157
+ if (({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && Object.freeze(sM), fe)
28158
28158
  l(fe).set(MM, sM);
28159
28159
  else {
28160
28160
  const aM = N.get(MM);
@@ -28259,7 +28259,7 @@ const Py = Symbol(), yW = (M) => !!M[Py], QV = (M) => !M[Py].c, q5 = (M) => {
28259
28259
  };
28260
28260
  U(fe, MM, aM);
28261
28261
  } else
28262
- ({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] could not invalidate non existing atom", MM);
28262
+ ({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] could not invalidate non existing atom", MM);
28263
28263
  }, K = (fe, MM, sM) => {
28264
28264
  if (!sM) {
28265
28265
  const gM = T(fe, MM);
@@ -28337,14 +28337,14 @@ const Py = Symbol(), yW = (M) => !!M[Py], QV = (M) => !M[Py].c, q5 = (M) => {
28337
28337
  () => gM(eN, KM)
28338
28338
  ) : gM(eN, KM);
28339
28339
  });
28340
- throw ({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.info(
28340
+ throw ({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.info(
28341
28341
  "Reading pending atom state in write operation. We throw a promise for now.",
28342
28342
  eN
28343
28343
  ), aN.p;
28344
28344
  }
28345
28345
  if ("v" in aN)
28346
28346
  return aN.v;
28347
- throw ({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn(
28347
+ throw ({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn(
28348
28348
  "[Bug] no value found while reading atom in write operation. This is probably a bug.",
28349
28349
  eN
28350
28350
  ), new Error("no value found");
@@ -28371,7 +28371,7 @@ const Py = Symbol(), yW = (M) => !!M[Py], QV = (M) => !M[Py].c, q5 = (M) => {
28371
28371
  t: new Set(sM && [sM]),
28372
28372
  l: /* @__PURE__ */ new Set()
28373
28373
  };
28374
- if (n.set(MM, aM), ({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && u.add(MM), K(void 0, MM).d.forEach((RM, bM) => {
28374
+ if (n.set(MM, aM), ({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && u.add(MM), K(void 0, MM).d.forEach((RM, bM) => {
28375
28375
  const eN = n.get(bM);
28376
28376
  eN ? eN.t.add(MM) : bM !== MM && le(fe, bM, MM);
28377
28377
  }), kt(MM) && MM.onMount) {
@@ -28382,14 +28382,14 @@ const Py = Symbol(), yW = (M) => !!M[Py], QV = (M) => !M[Py].c, q5 = (M) => {
28382
28382
  }, Me = (fe, MM) => {
28383
28383
  var sM;
28384
28384
  const aM = (sM = n.get(MM)) == null ? void 0 : sM.u;
28385
- aM && aM(), n.delete(MM), ({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && u.delete(MM);
28385
+ aM && aM(), n.delete(MM), ({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && u.delete(MM);
28386
28386
  const gM = T(fe, MM);
28387
28387
  gM ? ("p" in gM && q5(gM.p), gM.d.forEach((RM, bM) => {
28388
28388
  if (bM !== MM) {
28389
28389
  const eN = n.get(bM);
28390
28390
  eN && (eN.t.delete(MM), It(bM, eN) && Me(fe, bM));
28391
28391
  }
28392
- })) : ({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] could not find atom state to unmount", MM);
28392
+ })) : ({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] could not find atom state to unmount", MM);
28393
28393
  }, Ht = (fe, MM, sM, aM) => {
28394
28394
  const gM = new Set(sM.d.keys());
28395
28395
  aM == null || aM.forEach((RM, bM) => {
@@ -28425,7 +28425,7 @@ const Py = Symbol(), yW = (M) => !!M[Py], QV = (M) => !M[Py].c, q5 = (M) => {
28425
28425
  RM == null || RM.l.forEach((bM) => bM());
28426
28426
  });
28427
28427
  }
28428
- ({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && i.forEach((MM) => MM());
28428
+ ({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && i.forEach((MM) => MM());
28429
28429
  }, Ue = (fe) => {
28430
28430
  l(fe).forEach((sM, aM) => {
28431
28431
  const gM = N.get(aM);
@@ -28443,7 +28443,7 @@ const Py = Symbol(), yW = (M) => !!M[Py], QV = (M) => !M[Py].c, q5 = (M) => {
28443
28443
  OV(sM) && (v(MM, sM, aM), Xt(MM, sM));
28444
28444
  dt(MM);
28445
28445
  };
28446
- return ({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" ? {
28446
+ return ({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" ? {
28447
28447
  [IW]: jt,
28448
28448
  [zW]: Pt,
28449
28449
  [Bh]: me,
@@ -28469,7 +28469,7 @@ function Ort(M, N) {
28469
28469
  function lIt(M, N) {
28470
28470
  const n = Qrt(N), r = QM.useContext(n), { s: i, v: u } = r, e = (U) => {
28471
28471
  const L = i[IW](M, U);
28472
- if (({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !L.y)
28472
+ if (({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !L.y)
28473
28473
  throw new Error("should not be invalidated");
28474
28474
  if ("e" in L)
28475
28475
  throw L.e;
@@ -28507,7 +28507,7 @@ function TIt(M, N) {
28507
28507
  const n = Qrt(N), { s: r, w: i } = QM.useContext(n);
28508
28508
  return QM.useCallback(
28509
28509
  (e) => {
28510
- if (({ VITE_END_POINT: "https://uat-express-as.azurewebsites.net", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !("write" in M))
28510
+ if (({ VITE_END_POINT: "https://api.usedatabrain.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !("write" in M))
28511
28511
  throw new Error("not writable atom");
28512
28512
  const a = (o) => r[zW](M, e, o);
28513
28513
  return i ? i(a) : a();