@malloy-publisher/sdk 0.0.220 → 0.0.221

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,4 +1,4 @@
1
- import { jsx as Q } from "react/jsx-runtime";
1
+ import { jsx as F } from "react/jsx-runtime";
2
2
  import { QueryClient as se, QueryClientProvider as le, useQuery as ce } from "@tanstack/react-query";
3
3
  import h from "axios";
4
4
  import { useMemo as f, createContext as G, useContext as _, useState as D, useEffect as ie, useCallback as de } from "react";
@@ -80,47 +80,51 @@ const b = function(l, ...t) {
80
80
  GreaterThan: "greater_than",
81
81
  LessThan: "less_than"
82
82
  }, sa = {
83
+ Live: "live",
84
+ StaleOk: "stale_ok",
85
+ Fail: "fail"
86
+ }, la = {
83
87
  Debug: "debug",
84
88
  Info: "info",
85
89
  Warn: "warn",
86
90
  Error: "error"
87
- }, la = {
91
+ }, ca = {
88
92
  Pending: "PENDING",
89
93
  ManifestRowsReady: "MANIFEST_ROWS_READY",
90
94
  ManifestFileReady: "MANIFEST_FILE_READY",
91
95
  Failed: "FAILED",
92
96
  Cancelled: "CANCELLED"
93
- }, ca = {
94
- Markdown: "markdown",
95
- Code: "code"
96
97
  }, ia = {
97
98
  Markdown: "markdown",
98
99
  Code: "code"
99
100
  }, da = {
101
+ Markdown: "markdown",
102
+ Code: "code"
103
+ }, pa = {
100
104
  Declared: "declared",
101
105
  All: "all"
102
- }, pa = {
106
+ }, ma = {
103
107
  Unbound: "unbound",
104
108
  Bound: "bound",
105
109
  LiveFallback: "live_fallback"
106
- }, ma = {
110
+ }, ha = {
107
111
  Error: "error",
108
112
  Warn: "warn"
109
- }, ha = {
110
- Viewport: "viewport"
111
113
  }, ua = {
114
+ Viewport: "viewport"
115
+ }, ga = {
112
116
  Disable: "disable",
113
117
  NoVerify: "no-verify",
114
118
  VerifyCa: "verify-ca"
115
- }, ga = {
119
+ }, Pa = {
116
120
  Snapshot: "SNAPSHOT",
117
121
  Copy: "COPY"
118
- }, Pa = {
122
+ }, ba = {
119
123
  Initializing: "initializing",
120
124
  Serving: "serving",
121
125
  Draining: "draining",
122
126
  Throttled: "throttled"
123
- }, ba = {
127
+ }, Va = {
124
128
  Light: "light",
125
129
  Dark: "dark",
126
130
  Auto: "auto"
@@ -734,7 +738,7 @@ const b = function(l, ...t) {
734
738
  return (i, d) => v(o, h, u, l)(i, c || d);
735
739
  }
736
740
  };
737
- }, Va = function(l, t, e) {
741
+ }, va = function(l, t, e) {
738
742
  const n = S(l);
739
743
  return {
740
744
  /**
@@ -1212,7 +1216,7 @@ const ge = function(l) {
1212
1216
  return (s, c) => v(a, h, u, l)(s, o || c);
1213
1217
  }
1214
1218
  };
1215
- }, va = function(l, t, e) {
1219
+ }, Oa = function(l, t, e) {
1216
1220
  const n = K(l);
1217
1221
  return {
1218
1222
  /**
@@ -1227,7 +1231,7 @@ const ge = function(l) {
1227
1231
  }
1228
1232
  };
1229
1233
  };
1230
- class Oa extends I {
1234
+ class Sa extends I {
1231
1235
  /**
1232
1236
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
1233
1237
  * @summary Test database connection configuration
@@ -1282,7 +1286,7 @@ const Pe = function(l) {
1282
1286
  return (i, d) => v(o, h, u, l)(i, c || d);
1283
1287
  }
1284
1288
  };
1285
- }, Sa = function(l, t, e) {
1289
+ }, ka = function(l, t, e) {
1286
1290
  const n = X(l);
1287
1291
  return {
1288
1292
  /**
@@ -1477,7 +1481,7 @@ const Ve = function(l) {
1477
1481
  return (c, i) => v(r, h, u, l)(c, s || i);
1478
1482
  }
1479
1483
  };
1480
- }, ka = function(l, t, e) {
1484
+ }, ya = function(l, t, e) {
1481
1485
  const n = N(l);
1482
1486
  return {
1483
1487
  /**
@@ -1779,7 +1783,7 @@ const Oe = function(l) {
1779
1783
  return (d, m) => v(s, h, u, l)(d, i || m);
1780
1784
  }
1781
1785
  };
1782
- }, ya = function(l, t, e) {
1786
+ }, Ca = function(l, t, e) {
1783
1787
  const n = T(l);
1784
1788
  return {
1785
1789
  /**
@@ -1917,7 +1921,7 @@ class Se extends I {
1917
1921
  return T(this.configuration).materializationAction(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1918
1922
  }
1919
1923
  }
1920
- const Ca = {
1924
+ const Ia = {
1921
1925
  Stop: "stop"
1922
1926
  }, ke = function(l) {
1923
1927
  return {
@@ -2072,7 +2076,7 @@ const Ca = {
2072
2076
  return (i, d) => v(o, h, u, l)(i, c || d);
2073
2077
  }
2074
2078
  };
2075
- }, Ia = function(l, t, e) {
2079
+ }, xa = function(l, t, e) {
2076
2080
  const n = w(l);
2077
2081
  return {
2078
2082
  /**
@@ -2260,7 +2264,7 @@ const Ce = function(l) {
2260
2264
  };
2261
2265
  }
2262
2266
  };
2263
- }, F = function(l) {
2267
+ }, Q = function(l) {
2264
2268
  const t = Ce(l);
2265
2269
  return {
2266
2270
  /**
@@ -2309,8 +2313,8 @@ const Ce = function(l) {
2309
2313
  return (i, d) => v(o, h, u, l)(i, c || d);
2310
2314
  }
2311
2315
  };
2312
- }, xa = function(l, t, e) {
2313
- const n = F(l);
2316
+ }, Aa = function(l, t, e) {
2317
+ const n = Q(l);
2314
2318
  return {
2315
2319
  /**
2316
2320
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
@@ -2373,7 +2377,7 @@ class Ie extends I {
2373
2377
  * @memberof NotebooksApi
2374
2378
  */
2375
2379
  executeNotebookCell(t, e, n, a, r, o, s, c, i) {
2376
- return F(this.configuration).executeNotebookCell(t, e, n, a, r, o, s, c, i).then((d) => d(this.axios, this.basePath));
2380
+ return Q(this.configuration).executeNotebookCell(t, e, n, a, r, o, s, c, i).then((d) => d(this.axios, this.basePath));
2377
2381
  }
2378
2382
  /**
2379
2383
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2387,7 +2391,7 @@ class Ie extends I {
2387
2391
  * @memberof NotebooksApi
2388
2392
  */
2389
2393
  getNotebook(t, e, n, a, r) {
2390
- return F(this.configuration).getNotebook(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2394
+ return Q(this.configuration).getNotebook(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2391
2395
  }
2392
2396
  /**
2393
2397
  * Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2400,10 +2404,10 @@ class Ie extends I {
2400
2404
  * @memberof NotebooksApi
2401
2405
  */
2402
2406
  listNotebooks(t, e, n, a) {
2403
- return F(this.configuration).listNotebooks(t, e, n, a).then((r) => r(this.axios, this.basePath));
2407
+ return Q(this.configuration).listNotebooks(t, e, n, a).then((r) => r(this.axios, this.basePath));
2404
2408
  }
2405
2409
  }
2406
- const Aa = {
2410
+ const Ra = {
2407
2411
  True: "true",
2408
2412
  False: "false"
2409
2413
  }, xe = function(l) {
@@ -2582,7 +2586,7 @@ const Aa = {
2582
2586
  return (i, d) => v(o, h, u, l)(i, c || d);
2583
2587
  }
2584
2588
  };
2585
- }, Ra = function(l, t, e) {
2589
+ }, Na = function(l, t, e) {
2586
2590
  const n = U(l);
2587
2591
  return {
2588
2592
  /**
@@ -2748,7 +2752,7 @@ const Re = function(l) {
2748
2752
  return (c, i) => v(r, h, u, l)(c, s || i);
2749
2753
  }
2750
2754
  };
2751
- }, Na = function(l, t, e) {
2755
+ }, Ta = function(l, t, e) {
2752
2756
  const n = Z(l);
2753
2757
  return {
2754
2758
  /**
@@ -2900,7 +2904,7 @@ const Te = function(l) {
2900
2904
  return (s, c) => v(a, h, u, l)(s, o || c);
2901
2905
  }
2902
2906
  };
2903
- }, Ta = function(l, t, e) {
2907
+ }, Ua = function(l, t, e) {
2904
2908
  const n = E(l);
2905
2909
  return {
2906
2910
  /**
@@ -3112,7 +3116,7 @@ const we = function(l) {
3112
3116
  return (c, i) => v(r, h, u, l)(c, s || i);
3113
3117
  }
3114
3118
  };
3115
- }, Ua = function(l, t, e) {
3119
+ }, wa = function(l, t, e) {
3116
3120
  const n = M(l);
3117
3121
  return {
3118
3122
  /**
@@ -3288,21 +3292,21 @@ const B = {
3288
3292
  // right wing of the M (semantic models)
3289
3293
  darkBlue: "#1474a4"
3290
3294
  // deep shadow of the M (package data)
3291
- }, wa = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Ea = y(Y)({
3295
+ }, Ea = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Ma = y(Y)({
3292
3296
  display: "flex",
3293
3297
  flexDirection: "column",
3294
3298
  height: "100%",
3295
3299
  boxShadow: "none",
3296
3300
  border: "none",
3297
3301
  backgroundColor: "transparent"
3298
- }), Ma = y(J)({
3302
+ }), fa = y(J)({
3299
3303
  display: "flex",
3300
3304
  flexDirection: "column",
3301
3305
  padding: "0",
3302
3306
  flexGrow: 1
3303
- }), fa = y(pe)({
3307
+ }), Ba = y(pe)({
3304
3308
  padding: "0"
3305
- }), Ba = y("div")(({ theme: l }) => ({
3309
+ }), Fa = y("div")(({ theme: l }) => ({
3306
3310
  backgroundColor: l.palette.background.default,
3307
3311
  padding: "0 8px 0px 8px",
3308
3312
  borderRadius: "12px",
@@ -3322,13 +3326,13 @@ const Qa = y("div")({
3322
3326
  backgroundColor: "transparent",
3323
3327
  border: "none",
3324
3328
  boxShadow: "none"
3325
- }), Fa = y("div")({
3329
+ }), $a = y("div")({
3326
3330
  marginBottom: "0",
3327
3331
  padding: "0",
3328
3332
  backgroundColor: "transparent",
3329
3333
  border: "none",
3330
3334
  boxShadow: "none"
3331
- }), $a = y("div")({
3335
+ }), za = y("div")({
3332
3336
  backgroundColor: "transparent",
3333
3337
  paddingTop: "12px",
3334
3338
  paddingBottom: "2px",
@@ -3358,7 +3362,7 @@ y("div")(({ theme: l }) => ({
3358
3362
  justifyContent: "space-between",
3359
3363
  alignItems: "center"
3360
3364
  }));
3361
- const za = y("div")({
3365
+ const qa = y("div")({
3362
3366
  height: "100%"
3363
3367
  });
3364
3368
  y("div")({
@@ -3368,7 +3372,7 @@ y("div")({
3368
3372
  padding: "4px",
3369
3373
  alignItems: "center"
3370
3374
  });
3371
- const qa = y("div")({
3375
+ const La = y("div")({
3372
3376
  height: "75vh",
3373
3377
  width: "100%",
3374
3378
  overflowY: "auto"
@@ -3378,7 +3382,7 @@ y("div")({
3378
3382
  height: "100%",
3379
3383
  flex: "0 0 auto"
3380
3384
  });
3381
- const La = y(Y)(({ theme: l }) => ({
3385
+ const ja = y(Y)(({ theme: l }) => ({
3382
3386
  backgroundColor: l.palette.background.paper,
3383
3387
  padding: "24px",
3384
3388
  borderRadius: "8px",
@@ -3389,12 +3393,12 @@ const La = y(Y)(({ theme: l }) => ({
3389
3393
  "&:hover": {
3390
3394
  boxShadow: "0 2px 6px rgba(0, 0, 0, 0.08)"
3391
3395
  }
3392
- })), ja = y(J)({
3396
+ })), Ha = y(J)({
3393
3397
  padding: "0",
3394
3398
  "&:last-child": {
3395
3399
  paddingBottom: "0"
3396
3400
  }
3397
- }), Ha = y("div")(({ theme: l }) => ({
3401
+ }), Da = y("div")(({ theme: l }) => ({
3398
3402
  fontSize: "0.875rem",
3399
3403
  fontWeight: 500,
3400
3404
  color: l.palette.text.secondary,
@@ -3469,7 +3473,7 @@ const fe = [
3469
3473
  family: Be,
3470
3474
  size: 12
3471
3475
  }
3472
- }, Qe = [
3476
+ }, Fe = [
3473
3477
  "background",
3474
3478
  "tableHeader",
3475
3479
  "tableHeaderBackground",
@@ -3498,7 +3502,7 @@ function ee(l, t) {
3498
3502
  for (const m of l)
3499
3503
  if (m) {
3500
3504
  Array.isArray(m.palette?.series) && (a = [...m.palette.series]);
3501
- for (const O of Qe) {
3505
+ for (const O of Fe) {
3502
3506
  const C = m.palette?.[O];
3503
3507
  C && (s[O] = { ...s[O], ...C });
3504
3508
  }
@@ -3537,7 +3541,7 @@ function ee(l, t) {
3537
3541
  dashboardRoot: c ? "#1e293b" : "#ffffff"
3538
3542
  };
3539
3543
  }
3540
- function Fe(l, t, e) {
3544
+ function Qe(l, t, e) {
3541
3545
  const n = t ?? l ?? "light";
3542
3546
  return n === "auto" ? e ? "dark" : "light" : n;
3543
3547
  }
@@ -3554,9 +3558,9 @@ function $e({
3554
3558
  () => ({ theme: o, layers: l, mode: t, userChoice: e, setMode: n, allowUserToggle: a }),
3555
3559
  [o, l, t, e, n, a]
3556
3560
  );
3557
- return /* @__PURE__ */ Q(ae.Provider, { value: s, children: r });
3561
+ return /* @__PURE__ */ F(ae.Provider, { value: s, children: r });
3558
3562
  }
3559
- function Da() {
3563
+ function Wa() {
3560
3564
  const l = _(ae);
3561
3565
  return l || {
3562
3566
  theme: ee([], "light"),
@@ -3626,7 +3630,7 @@ const te = G(void 0), He = (l, t) => {
3626
3630
  ),
3627
3631
  watchMode: new Ee(a, e, n)
3628
3632
  };
3629
- }, Wa = (l) => /* @__PURE__ */ Q(le, { client: ze, children: /* @__PURE__ */ Q(De, { ...l }) }), De = ({
3633
+ }, Ga = (l) => /* @__PURE__ */ F(le, { client: ze, children: /* @__PURE__ */ F(De, { ...l }) }), De = ({
3630
3634
  children: l,
3631
3635
  getAccessToken: t,
3632
3636
  baseURL: e,
@@ -3654,7 +3658,7 @@ const te = G(void 0), He = (l, t) => {
3654
3658
  const $ = de((R) => {
3655
3659
  C(R), Le(R);
3656
3660
  }, []), j = c?.allowUserToggle ?? !0, z = j ? O : void 0, ne = f(
3657
- () => Fe(
3661
+ () => Qe(
3658
3662
  c?.defaultMode,
3659
3663
  z,
3660
3664
  A
@@ -3668,7 +3672,7 @@ const te = G(void 0), He = (l, t) => {
3668
3672
  isLoadingStatus: i,
3669
3673
  instanceTheme: c
3670
3674
  };
3671
- return /* @__PURE__ */ Q(te.Provider, { value: re, children: /* @__PURE__ */ Q(
3675
+ return /* @__PURE__ */ F(te.Provider, { value: re, children: /* @__PURE__ */ F(
3672
3676
  $e,
3673
3677
  {
3674
3678
  layers: m,
@@ -3679,102 +3683,103 @@ const te = G(void 0), He = (l, t) => {
3679
3683
  children: l
3680
3684
  }
3681
3685
  ) });
3682
- }, Ga = () => {
3686
+ }, _a = () => {
3683
3687
  const l = _(te);
3684
3688
  if (l === void 0)
3685
3689
  throw new Error("useServer must be used within a ServerProvider");
3686
3690
  return l;
3687
3691
  };
3688
3692
  export {
3689
- Aa as $,
3693
+ Ie as $,
3690
3694
  Ke as A,
3691
- ka as B,
3695
+ N as B,
3692
3696
  Ze as C,
3693
3697
  ra as D,
3694
3698
  Ve as E,
3695
3699
  oa as F,
3696
- ve as G,
3697
- Oe as H,
3698
- T as I,
3699
- ya as J,
3700
- Se as K,
3701
- sa as L,
3702
- la as M,
3703
- ca as N,
3704
- Ca as O,
3705
- da as P,
3706
- ke as Q,
3707
- ga as R,
3708
- Wa as S,
3709
- ba as T,
3710
- w as U,
3711
- Ia as V,
3712
- ye as W,
3713
- Ce as X,
3714
- F as Y,
3715
- xa as Z,
3716
- Ie as _,
3700
+ ya as G,
3701
+ ve as H,
3702
+ Oe as I,
3703
+ T as J,
3704
+ Ca as K,
3705
+ la as L,
3706
+ ca as M,
3707
+ ia as N,
3708
+ Se as O,
3709
+ pa as P,
3710
+ Ia as Q,
3711
+ Pa as R,
3712
+ Ga as S,
3713
+ Va as T,
3714
+ ke as U,
3715
+ w as V,
3716
+ xa as W,
3717
+ ye as X,
3718
+ Ce as Y,
3719
+ Q as Z,
3720
+ Aa as _,
3717
3721
  Xe as a,
3718
- xe as a0,
3719
- U as a1,
3720
- Ra as a2,
3721
- Ae as a3,
3722
- Re as a4,
3723
- Z as a5,
3724
- Na as a6,
3725
- Ne as a7,
3726
- Te as a8,
3727
- E as a9,
3728
- $e as aA,
3729
- Ta as aa,
3730
- Ue as ab,
3731
- we as ac,
3732
- M as ad,
3733
- Ua as ae,
3734
- Ee as af,
3735
- Me as ag,
3736
- fa as ah,
3737
- za as ai,
3722
+ Ra as a0,
3723
+ xe as a1,
3724
+ U as a2,
3725
+ Na as a3,
3726
+ Ae as a4,
3727
+ Re as a5,
3728
+ Z as a6,
3729
+ Ta as a7,
3730
+ Ne as a8,
3731
+ Te as a9,
3732
+ Qe as aA,
3733
+ $e as aB,
3734
+ E as aa,
3735
+ Ua as ab,
3736
+ Ue as ac,
3737
+ we as ad,
3738
+ M as ae,
3739
+ wa as af,
3740
+ Ee as ag,
3741
+ Me as ah,
3742
+ Ba as ai,
3738
3743
  qa as aj,
3739
- Da as ak,
3740
- Ea as al,
3744
+ La as ak,
3745
+ Wa as al,
3741
3746
  Ma as am,
3742
- La as an,
3747
+ fa as an,
3743
3748
  ja as ao,
3744
3749
  Ha as ap,
3745
- B as aq,
3746
- wa as ar,
3747
- Fa as as,
3750
+ Da as aq,
3751
+ B as ar,
3752
+ Ea as as,
3748
3753
  $a as at,
3749
- Ba as au,
3750
- Qa as av,
3751
- Qe as aw,
3752
- ee as ax,
3753
- W as ay,
3754
- Fe as az,
3754
+ za as au,
3755
+ Fa as av,
3756
+ Qa as aw,
3757
+ Fe as ax,
3758
+ ee as ay,
3759
+ W as az,
3755
3760
  ea as b,
3756
3761
  aa as c,
3757
3762
  ta as d,
3758
3763
  na as e,
3759
- ia as f,
3764
+ sa as f,
3760
3765
  ze as g,
3761
- pa as h,
3766
+ da as h,
3762
3767
  ma as i,
3763
3768
  ha as j,
3764
3769
  ua as k,
3765
- Pa as l,
3766
- he as m,
3767
- S as n,
3768
- Va as o,
3769
- ue as p,
3770
- ge as q,
3771
- K as r,
3772
- va as s,
3770
+ ga as l,
3771
+ ba as m,
3772
+ he as n,
3773
+ S as o,
3774
+ va as p,
3775
+ ue as q,
3776
+ ge as r,
3777
+ K as s,
3773
3778
  Oa as t,
3774
- Ga as u,
3775
- Pe as v,
3776
- X as w,
3777
- Sa as x,
3778
- be as y,
3779
- N as z
3779
+ _a as u,
3780
+ Sa as v,
3781
+ Pe as w,
3782
+ X as x,
3783
+ ka as y,
3784
+ be as z
3780
3785
  };