@metabase/client 0.1.4 → 0.1.5
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/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/dist/{card-Ik580mDC.d.ts → card-B3vHu_sj.d.ts} +3 -3
- package/dist/{card-CAOxi3ZU.d.ts → card-Dq_X3Ol2.d.ts} +16 -16
- package/dist/{client-CQkS1030.d.ts → client-DdKXWHXy.d.ts} +73 -77
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -0
- package/dist/{collection-B31DGW6J.d.ts → collection-CHEIzIE_.d.ts} +4 -4
- package/dist/{collection-kN2oYenF.d.ts → collection-CyZqHB2n.d.ts} +24 -24
- package/dist/{dashboard-Bkl_vs7L.d.ts → dashboard-5ZMYiLrS.d.ts} +28 -28
- package/dist/{dashboard-ClJ5XHXJ.d.ts → dashboard-DSuW_p6d.d.ts} +3 -3
- package/dist/{data-action-CCU3lzoY.d.ts → data-action-DBO2a_Sf.d.ts} +2 -2
- package/dist/{data-app-DAEPU9W5.d.ts → data-app-CeF4Tazv.d.ts} +1 -1
- package/dist/{database-B54owh7H.d.ts → database-C69Mg39B.d.ts} +9 -9
- package/dist/{database-DNQLCRBJ.d.ts → database-jfZpzZcH.d.ts} +3 -3
- package/dist/{dataset-Bj3bNqjm.d.ts → dataset-IbEfvqlT.d.ts} +20 -20
- package/dist/{dataset-C05pNRjH.d.ts → dataset-jwm9qB3h.d.ts} +3 -3
- package/dist/{dependency-NbXbo_fE.d.ts → dependency-BDwZJL_k.d.ts} +13 -13
- package/dist/{dependency-B8aPt_IM.d.ts → dependency-BitZZ45o.d.ts} +24 -24
- package/dist/domain/card.d.ts +1 -1
- package/dist/domain/collection.d.ts +1 -1
- package/dist/domain/dashboard.d.ts +1 -1
- package/dist/domain/data-action.d.ts +1 -1
- package/dist/domain/data-app.d.ts +1 -1
- package/dist/domain/database.d.ts +1 -1
- package/dist/domain/dataset.d.ts +1 -1
- package/dist/domain/dependency.d.ts +1 -1
- package/dist/domain/eid-translation.d.ts +1 -1
- package/dist/domain/embedding.d.ts +1 -1
- package/dist/domain/field.d.ts +1 -1
- package/dist/domain/git-sync.d.ts +1 -1
- package/dist/domain/glossary.d.ts +1 -1
- package/dist/domain/library.d.ts +1 -1
- package/dist/domain/metric.d.ts +1 -1
- package/dist/domain/moderation-review.d.ts +1 -1
- package/dist/domain/notification.d.ts +1 -1
- package/dist/domain/parameter.d.ts +1 -1
- package/dist/domain/pulse.d.ts +1 -1
- package/dist/domain/replacement.d.ts +1 -1
- package/dist/domain/revision.d.ts +1 -1
- package/dist/domain/search.d.ts +1 -1
- package/dist/domain/table.d.ts +1 -1
- package/dist/domain/timeline.d.ts +1 -1
- package/dist/domain/transform-inspector.d.ts +1 -1
- package/dist/domain/transform-job.d.ts +1 -1
- package/dist/domain/transform-python.d.ts +1 -1
- package/dist/domain/transform.d.ts +1 -1
- package/dist/{eid-translation-CP79Tz71.d.ts → eid-translation-nuhr8St2.d.ts} +10 -10
- package/dist/{embedding-oU3gqfgX.d.ts → embedding-Cz3RUJYf.d.ts} +1 -1
- package/dist/{erd-BJ3OjckY.d.ts → erd-DqG1DNRX.d.ts} +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/{features-BwC2QUQB.d.ts → features-CpR6ZyvS.d.ts} +1 -1
- package/dist/{field-CCp65II7.d.ts → field-BhqgbKia.d.ts} +2 -2
- package/dist/{field-Be27Kzlx.d.ts → field-D84ql2Go.d.ts} +2 -2
- package/dist/{git-sync-CBplEGj0.d.ts → git-sync-ClRBckWI.d.ts} +1 -1
- package/dist/{git-sync-D1gts9j5.d.ts → git-sync-_E3O8gGu.d.ts} +6 -6
- package/dist/{glossary-yuKOTBXb.d.ts → glossary-BHhfqyvP.d.ts} +2 -2
- package/dist/{glossary-CHK3elPj.d.ts → glossary-D2Q66pW3.d.ts} +1 -1
- package/dist/http/errors.d.ts +1 -1
- package/dist/http/transport.d.ts +1 -1
- package/dist/index.d.ts +35 -35
- package/dist/{input-gates-DLCSnwRf.d.ts → input-gates-DQuCzfo6.d.ts} +1 -1
- package/dist/{json-DK8ntK_m.d.ts → json-BqBfc8w1.d.ts} +1 -1
- package/dist/json.d.ts +1 -1
- package/dist/{library-DZpIRTeG.d.ts → library-BihgcDZS.d.ts} +2 -2
- package/dist/{measure-DZ7RmNPs.d.ts → measure-CO6dcDQ2.d.ts} +1 -1
- package/dist/{metric-CKhTot_B.d.ts → metric-DXbXFDOk.d.ts} +5 -5
- package/dist/{moderation-review-B4RUTZ6_.d.ts → moderation-review-B33XQU68.d.ts} +3 -3
- package/dist/{notification-D1MThyKE.d.ts → notification-BY2JEjKp.d.ts} +2 -2
- package/dist/{notification-BwLEwNk9.d.ts → notification-D7X382Y9.d.ts} +2 -2
- package/dist/{paginate-CPjKDJ2m.d.ts → paginate-Bgcj4F03.d.ts} +1 -1
- package/dist/paginate.d.ts +1 -1
- package/dist/{parameter-CvyXRH6F.d.ts → parameter-YAZEmuDI.d.ts} +4 -4
- package/dist/{pulse-BgS7Y3MU.d.ts → pulse-DlEp937s.d.ts} +13 -13
- package/dist/{pulse-DEKvyd8u.d.ts → pulse-mD_qiUho.d.ts} +2 -2
- package/dist/{replacement-Bu4qxOua.d.ts → replacement-Bpn3UQWy.d.ts} +7 -7
- package/dist/{replacement-WU_rk924.d.ts → replacement-DIPomAwo.d.ts} +1 -1
- package/dist/{requirement-check-B5tsY6Z_.d.ts → requirement-check-DH-EZ8Nx.d.ts} +2 -2
- package/dist/{requirements-CW0DsGzZ.d.ts → requirements-CGEeSEwC.d.ts} +2 -1
- package/dist/resources/api-key.d.ts +1 -1
- package/dist/resources/card.d.ts +1 -1
- package/dist/resources/collection.d.ts +1 -1
- package/dist/resources/content-translation.d.ts +1 -1
- package/dist/resources/dashboard.d.ts +1 -1
- package/dist/resources/data-action.d.ts +2 -2
- package/dist/resources/data-app.d.ts +1 -1
- package/dist/resources/database.d.ts +1 -1
- package/dist/resources/dataset.d.ts +1 -1
- package/dist/resources/dependency.d.ts +1 -1
- package/dist/resources/document.d.ts +2 -9
- package/dist/resources/eid-translation.d.ts +2 -2
- package/dist/resources/erd.d.ts +1 -1
- package/dist/resources/field.d.ts +1 -1
- package/dist/resources/git-sync.d.ts +1 -1
- package/dist/resources/glossary.d.ts +1 -1
- package/dist/resources/library.d.ts +1 -1
- package/dist/resources/measure.d.ts +1 -1
- package/dist/resources/metric.d.ts +1 -1
- package/dist/resources/moderation-review.d.ts +1 -1
- package/dist/resources/notification.d.ts +1 -1
- package/dist/resources/optional-parsed.d.ts +1 -1
- package/dist/resources/permission.d.ts +1 -1
- package/dist/resources/pivot-export.d.ts +1 -1
- package/dist/resources/pulse.d.ts +1 -1
- package/dist/resources/replacement.d.ts +1 -1
- package/dist/resources/revision.d.ts +1 -1
- package/dist/resources/search.d.ts +1 -1
- package/dist/resources/segment.d.ts +1 -1
- package/dist/resources/session.d.ts +8 -0
- package/dist/resources/session.js +14 -0
- package/dist/resources/setting.d.ts +1 -1
- package/dist/resources/setup.d.ts +1 -1
- package/dist/resources/snippet.d.ts +1 -1
- package/dist/resources/table.d.ts +1 -1
- package/dist/resources/timeline-event.d.ts +2 -2
- package/dist/resources/timeline.d.ts +1 -1
- package/dist/resources/transform-dag-run.d.ts +1 -1
- package/dist/resources/transform-inspector.d.ts +2 -2
- package/dist/resources/transform-job.d.ts +1 -1
- package/dist/resources/transform-python.d.ts +1 -1
- package/dist/resources/transform-tag.d.ts +1 -1
- package/dist/resources/transform-test.d.ts +1 -1
- package/dist/resources/transform.d.ts +1 -1
- package/dist/resources/upload.d.ts +1 -1
- package/dist/resources/user.d.ts +1 -1
- package/dist/{revision-CwP4-eqv.d.ts → revision-C3d3H6M1.d.ts} +2 -2
- package/dist/{search-DjJ_lu_o.d.ts → search-CcMYvNrg.d.ts} +2 -2
- package/dist/{search-C0PiFw8c.d.ts → search-VlZ0qE4k.d.ts} +10 -10
- package/dist/{segment-BR0OAdWN.d.ts → segment-vL_lWbxX.d.ts} +1 -1
- package/dist/signal.d.ts +1 -1
- package/dist/{snippet-C5naeVEd.d.ts → snippet-CR3Qw7Vj.d.ts} +1 -1
- package/dist/{table-B3lazUvH.d.ts → table-CYBfgiXd.d.ts} +6 -6
- package/dist/{table-DT3kO7JU.d.ts → table-MNH1ybH1.d.ts} +2 -2
- package/dist/{timeline-Bnn28jC7.d.ts → timeline-BdF_aI5F.d.ts} +1 -1
- package/dist/{timeline-vJHDIuDJ.d.ts → timeline-DR-yCbB2.d.ts} +2 -2
- package/dist/{transform-B0mugBQQ.d.ts → transform-DXcm0NVR.d.ts} +1 -1
- package/dist/{transform-Buv3VvTt.d.ts → transform-Dh1ZDOJ7.d.ts} +3 -3
- package/dist/{transform-inspector-BUYBt6--.d.ts → transform-inspector-DMXcBC0h.d.ts} +3 -3
- package/dist/{transform-job-DV28hc1A.d.ts → transform-job-DHAQGfWg.d.ts} +2 -2
- package/dist/{transform-job-BFLbsf5-.d.ts → transform-job-DzP5HoUy.d.ts} +1 -1
- package/dist/{transform-python-B-jBoeVa.d.ts → transform-python-igNhtjTv.d.ts} +1 -1
- package/dist/{transform-test-3uuvuwyQ.d.ts → transform-test-CPlCdxNq.d.ts} +1 -1
- package/dist/{transport-CM-eJat3.d.ts → transport-DZjspEuv.d.ts} +3 -3
- package/dist/{upload-BxRCvpJo.d.ts → upload-B3qYWIWN.d.ts} +1 -1
- package/dist/version/capability-error.d.ts +1 -1
- package/dist/version/features.d.ts +1 -1
- package/dist/version/input-gates.d.ts +1 -1
- package/dist/version/probe.d.ts +1 -1
- package/dist/version/profile.d.ts +1 -1
- package/dist/version/requirement-check.d.ts +1 -1
- package/dist/version/requirements.d.ts +1 -1
- package/dist/version/requirements.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@metabase/client`.
|
|
4
4
|
|
|
5
|
+
## 0.1.5
|
|
6
|
+
|
|
7
|
+
- `session.properties()` returns the server's session properties (`GET /api/session/properties`): the settings the caller may read, including the server's version and the premium features its license grants. It always sends the request, never answering from a profile the client holds. The client treats the answer as it treats its own probe of the server: the answer becomes the profile `client.server()` and `client.verifiedServer()` return, and is passed to `onServerProbed`.
|
|
8
|
+
|
|
5
9
|
## 0.1.4
|
|
6
10
|
|
|
7
11
|
- A data app changes in Metabase only through a repository import, so `dataApp.create`, `dataApp.replaceBundle`, `dataApp.typedSchema` and `dataApp.remove` are gone, with `DataAppCreateInput`. `dataApp.update` takes only `enabled` (`DataAppUpdateInput`).
|
package/README.md
CHANGED
|
@@ -431,7 +431,7 @@ Unless the caller passes `metadata` from `tryDiscoverMetadata`, which makes the
|
|
|
431
431
|
|
|
432
432
|
`probeServer(client)` reads `/api/session/properties` and returns a `ServerInfo`: the version, the edition the tag stamps, the build date and hash, and the token-feature map, each but the version `null` when the server does not report it. `parseTag(tag)` reads a tag into a `ServerVersion`, a `ReleaseVersion` (`{ kind: "release", tag, major, patch }`) or a `DevelopmentBuild` (`{ kind: "development", tag }`); `describeVersion(version)` words it for a message (the tag, or `development build <tag>`); `StoredServerVersion` reads a persisted version back by re-deriving it from its tag; `editionFromTag(tag)` reads the `Edition` (`"oss"` | `"ee"`) Metabase stamps into the tag's leading number (`v0.` / `v1.`, a hotfix's fourth number and a `-SNAPSHOT` suffix included), `null` when the tag carries none.
|
|
433
433
|
|
|
434
|
-
`createServerProfile(info)` turns a `ServerInfo` into the `ServerProfile` the client reasons with: the raw facts (`version`, `buildDate`, `hash`, `edition`, `tokenFeatures`), the derived `features`, and `skew` (`Skew`) — `"supported"` inside `KNOWN_RANGE` (`{ min, max }`, the majors the client is built against), `"older-than-known"` below it (the server keeps its real major and each refusal is explained feature by feature), `"newer-than-known"` above it, `"development"` for a development build. A newer release is evaluated as `KNOWN_RANGE.max + 1`, a development build as `"development"` (`RuleMajor`), which passes every `since` and fails every `until`; the edition of a server whose tag carries none is `"ee"` when any premium feature is granted and `"oss"` otherwise. `client.server()` returns the profile a read chooses its shape by: the profile in force, which is the newest probe answer this client applied, else the one passed as `ClientOptions.server`, else one probed now; the newest probe started is awaited while it is in flight, and its failure falls back to the profile in force by then; `client.verifiedServer()` returns a profile the client probed itself, never the one passed in: every caller shares the newest probe started, in flight or settled, and when it fails the newest answer the client applied stands in for it. That answer is memoized until the client reads the session properties again (a git-sync branch read does, and so does a pivoted export's check of the `enable-pivoted-exports` setting), so a long-lived consumer whose server is upgraded or licensed mid-session builds a new client to see it. Probes are ordered by when they started, and an answer is applied unless a probe started after it has been applied already. `ClientOptions.onServerProbed(info, profile)` is called with the `ServerInfo` of every probe answer the client applies and the `ServerProfile` derived from it, so a consumer that passes a cached profile can keep its cache current: it never sees an older answer after a newer one, and an answer outliving a later probe that failed still reaches it; it runs before the calls waiting on the probe resume and is not awaited, so a consumer with slow work (a cache write) keeps that promise and settles it itself; and a hook that throws fails the probe, which is then not applied. `client.probesSettled()` resolves once no probe the client started is in flight, whatever each answered, and starts none, so a consumer about to exit can wait for every call of the hook first; each probe is bounded by its own timeout and the client's signal. A shape error names the profile in force when its request started — the newest probe answer applied, or else the one passed in — which is the profile its reader was chosen for; `getServerTag` names the server in an HTTP error and in a shape error read with no profile in force, and defaults to the tag of the profile in force. There is no option to assume a version.
|
|
434
|
+
`createServerProfile(info)` turns a `ServerInfo` into the `ServerProfile` the client reasons with: the raw facts (`version`, `buildDate`, `hash`, `edition`, `tokenFeatures`), the derived `features`, and `skew` (`Skew`) — `"supported"` inside `KNOWN_RANGE` (`{ min, max }`, the majors the client is built against), `"older-than-known"` below it (the server keeps its real major and each refusal is explained feature by feature), `"newer-than-known"` above it, `"development"` for a development build. A newer release is evaluated as `KNOWN_RANGE.max + 1`, a development build as `"development"` (`RuleMajor`), which passes every `since` and fails every `until`; the edition of a server whose tag carries none is `"ee"` when any premium feature is granted and `"oss"` otherwise. `client.server()` returns the profile a read chooses its shape by: the profile in force, which is the newest probe answer this client applied, else the one passed as `ClientOptions.server`, else one probed now; the newest probe started is awaited while it is in flight, and its failure falls back to the profile in force by then; `client.verifiedServer()` returns a profile the client probed itself, never the one passed in: every caller shares the newest probe started, in flight or settled, and when it fails the newest answer the client applied stands in for it. That answer is memoized until the client reads the session properties again (`mb.session.properties()` does, a git-sync branch read does, and so does a pivoted export's check of the `enable-pivoted-exports` setting), so a long-lived consumer whose server is upgraded or licensed mid-session builds a new client to see it. Probes are ordered by when they started, and an answer is applied unless a probe started after it has been applied already. `ClientOptions.onServerProbed(info, profile)` is called with the `ServerInfo` of every probe answer the client applies and the `ServerProfile` derived from it, so a consumer that passes a cached profile can keep its cache current: it never sees an older answer after a newer one, and an answer outliving a later probe that failed still reaches it; it runs before the calls waiting on the probe resume and is not awaited, so a consumer with slow work (a cache write) keeps that promise and settles it itself; and a hook that throws fails the probe, which is then not applied. `client.probesSettled()` resolves once no probe the client started is in flight, whatever each answered, and starts none, so a consumer about to exit can wait for every call of the hook first; each probe is bounded by its own timeout and the client's signal. A shape error names the profile in force when its request started — the newest probe answer applied, or else the one passed in — which is the profile its reader was chosen for; `getServerTag` names the server in an HTTP error and in a shape error read with no profile in force, and defaults to the tag of the profile in force. There is no option to assume a version.
|
|
435
435
|
|
|
436
436
|
`Features` is a record of named booleans over `FEATURE_RULES`, the one table that relates a behaviour to the majors and token feature it needs (`FeatureRule`: `{ since, until?, tokenFeature? }`); `evaluateFeatures(major, tokenFeatures)` evaluates it for a `RuleMajor` (a release major, or `"development"` for a build ahead of every release), `FEATURE_NAMES` lists the keys, and `isFeatureName` narrows a string to one. Names describe behaviour (`transformTargetTableId`, `libraryChildrenCarryType`), never a version. Consumers branch on a feature, never on a major — `features.ts` is the only module that compares one.
|
|
437
437
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as RequestOptions, h as Transport } from "./transport-
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-DZjspEuv.js";
|
|
2
2
|
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
-
import { a as CardListFilter, i as CardDetail, l as CardUpdateInput, o as CardQueryResult, r as CardCreateInput, t as Card } from "./card-
|
|
4
|
-
import { r as QueryMetadata } from "./dataset-
|
|
3
|
+
import { a as CardListFilter, i as CardDetail, l as CardUpdateInput, o as CardQueryResult, r as CardCreateInput, t as Card } from "./card-Dq_X3Ol2.js";
|
|
4
|
+
import { r as QueryMetadata } from "./dataset-IbEfvqlT.js";
|
|
5
5
|
import { n as ExportFormat } from "./query-Xsin530u.js";
|
|
6
6
|
//#region src/resources/card.d.ts
|
|
7
7
|
interface CardListParams {
|
|
@@ -2,8 +2,8 @@ import { z } from "zod";
|
|
|
2
2
|
//#region src/domain/card.d.ts
|
|
3
3
|
declare const CardType: z.ZodEnum<{
|
|
4
4
|
metric: "metric";
|
|
5
|
-
model: "model";
|
|
6
5
|
question: "question";
|
|
6
|
+
model: "model";
|
|
7
7
|
}>;
|
|
8
8
|
type CardType = z.infer<typeof CardType>;
|
|
9
9
|
declare const CardListFilter: z.ZodEnum<{
|
|
@@ -279,8 +279,8 @@ declare const Card: z.ZodObject<{
|
|
|
279
279
|
name: z.ZodString;
|
|
280
280
|
type: z.ZodEnum<{
|
|
281
281
|
metric: "metric";
|
|
282
|
-
model: "model";
|
|
283
282
|
question: "question";
|
|
283
|
+
model: "model";
|
|
284
284
|
}>;
|
|
285
285
|
display: z.ZodString;
|
|
286
286
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -321,8 +321,8 @@ declare const CardDetail: z.ZodObject<{
|
|
|
321
321
|
name: z.ZodString;
|
|
322
322
|
type: z.ZodEnum<{
|
|
323
323
|
metric: "metric";
|
|
324
|
-
model: "model";
|
|
325
324
|
question: "question";
|
|
325
|
+
model: "model";
|
|
326
326
|
}>;
|
|
327
327
|
display: z.ZodString;
|
|
328
328
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -361,10 +361,9 @@ declare const CardDetail: z.ZodObject<{
|
|
|
361
361
|
type: z.ZodEnum<{
|
|
362
362
|
number: "number";
|
|
363
363
|
boolean: "boolean";
|
|
364
|
-
date: "date";
|
|
365
364
|
id: "id";
|
|
366
365
|
text: "text";
|
|
367
|
-
|
|
366
|
+
date: "date";
|
|
368
367
|
"date/single": "date/single";
|
|
369
368
|
category: "category";
|
|
370
369
|
"location/city": "location/city";
|
|
@@ -376,6 +375,7 @@ declare const CardDetail: z.ZodObject<{
|
|
|
376
375
|
"date/quarter-year": "date/quarter-year";
|
|
377
376
|
"date/relative": "date/relative";
|
|
378
377
|
"date/all-options": "date/all-options";
|
|
378
|
+
"temporal-unit": "temporal-unit";
|
|
379
379
|
"number/!=": "number/!=";
|
|
380
380
|
"number/<=": "number/<=";
|
|
381
381
|
"number/=": "number/=";
|
|
@@ -699,25 +699,25 @@ type CardDetail = z.infer<typeof CardDetail>;
|
|
|
699
699
|
declare const CardCompact: z.ZodObject<{
|
|
700
700
|
type: z.ZodEnum<{
|
|
701
701
|
metric: "metric";
|
|
702
|
-
model: "model";
|
|
703
702
|
question: "question";
|
|
703
|
+
model: "model";
|
|
704
704
|
}>;
|
|
705
705
|
id: z.ZodNumber;
|
|
706
706
|
name: z.ZodString;
|
|
707
707
|
description: z.ZodNullable<z.ZodString>;
|
|
708
708
|
archived: z.ZodBoolean;
|
|
709
709
|
collection_id: z.ZodNullable<z.ZodNumber>;
|
|
710
|
+
dashboard_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
710
711
|
display: z.ZodString;
|
|
711
712
|
database_id: z.ZodNullable<z.ZodNumber>;
|
|
712
|
-
dashboard_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
713
713
|
}, z.core.$strip>;
|
|
714
714
|
type CardCompact = z.infer<typeof CardCompact>;
|
|
715
715
|
declare const CardCreateInput: z.ZodObject<{
|
|
716
716
|
name: z.ZodString;
|
|
717
717
|
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
718
718
|
metric: "metric";
|
|
719
|
-
model: "model";
|
|
720
719
|
question: "question";
|
|
720
|
+
model: "model";
|
|
721
721
|
}>>>;
|
|
722
722
|
dataset_query: z.ZodObject<{}, z.core.$loose>;
|
|
723
723
|
display: z.ZodString;
|
|
@@ -734,10 +734,9 @@ declare const CardCreateInput: z.ZodObject<{
|
|
|
734
734
|
type: z.ZodEnum<{
|
|
735
735
|
number: "number";
|
|
736
736
|
boolean: "boolean";
|
|
737
|
-
date: "date";
|
|
738
737
|
id: "id";
|
|
739
738
|
text: "text";
|
|
740
|
-
|
|
739
|
+
date: "date";
|
|
741
740
|
"date/single": "date/single";
|
|
742
741
|
category: "category";
|
|
743
742
|
"location/city": "location/city";
|
|
@@ -749,6 +748,7 @@ declare const CardCreateInput: z.ZodObject<{
|
|
|
749
748
|
"date/quarter-year": "date/quarter-year";
|
|
750
749
|
"date/relative": "date/relative";
|
|
751
750
|
"date/all-options": "date/all-options";
|
|
751
|
+
"temporal-unit": "temporal-unit";
|
|
752
752
|
"number/!=": "number/!=";
|
|
753
753
|
"number/<=": "number/<=";
|
|
754
754
|
"number/=": "number/=";
|
|
@@ -827,8 +827,8 @@ declare const CardUpdateInput: z.ZodObject<{
|
|
|
827
827
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
828
828
|
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
829
829
|
metric: "metric";
|
|
830
|
-
model: "model";
|
|
831
830
|
question: "question";
|
|
831
|
+
model: "model";
|
|
832
832
|
}>>>;
|
|
833
833
|
dataset_query: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
834
834
|
display: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -838,8 +838,8 @@ declare const CardUpdateInput: z.ZodObject<{
|
|
|
838
838
|
enable_embedding: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
839
839
|
embedding_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
840
840
|
embedding_params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
841
|
-
enabled: "enabled";
|
|
842
841
|
disabled: "disabled";
|
|
842
|
+
enabled: "enabled";
|
|
843
843
|
locked: "locked";
|
|
844
844
|
}>>>>;
|
|
845
845
|
collection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -853,10 +853,9 @@ declare const CardUpdateInput: z.ZodObject<{
|
|
|
853
853
|
type: z.ZodEnum<{
|
|
854
854
|
number: "number";
|
|
855
855
|
boolean: "boolean";
|
|
856
|
-
date: "date";
|
|
857
856
|
id: "id";
|
|
858
857
|
text: "text";
|
|
859
|
-
|
|
858
|
+
date: "date";
|
|
860
859
|
"date/single": "date/single";
|
|
861
860
|
category: "category";
|
|
862
861
|
"location/city": "location/city";
|
|
@@ -868,6 +867,7 @@ declare const CardUpdateInput: z.ZodObject<{
|
|
|
868
867
|
"date/quarter-year": "date/quarter-year";
|
|
869
868
|
"date/relative": "date/relative";
|
|
870
869
|
"date/all-options": "date/all-options";
|
|
870
|
+
"temporal-unit": "temporal-unit";
|
|
871
871
|
"number/!=": "number/!=";
|
|
872
872
|
"number/<=": "number/<=";
|
|
873
873
|
"number/=": "number/=";
|
|
@@ -1213,10 +1213,10 @@ declare const CardQueryResult: z.ZodObject<{
|
|
|
1213
1213
|
type CardQueryResult = z.infer<typeof CardQueryResult>;
|
|
1214
1214
|
declare const CardQueryResultCompact: z.ZodObject<{
|
|
1215
1215
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1216
|
-
error_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1217
1216
|
status: z.ZodString;
|
|
1218
|
-
cached: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1219
1217
|
row_count: z.ZodOptional<z.ZodNumber>;
|
|
1218
|
+
cached: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1219
|
+
error_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1220
1220
|
data: z.ZodOptional<z.ZodObject<{
|
|
1221
1221
|
rows: z.ZodArray<z.ZodArray<z.ZodUnknown>>;
|
|
1222
1222
|
cols: z.ZodArray<z.ZodObject<{
|
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
import "./credential-B6fKSvqp.js";
|
|
2
2
|
import "./oauth-login-SZ4Csai8.js";
|
|
3
3
|
import "./oauth-session-COLH4puN.js";
|
|
4
|
-
import "./session-properties-COtlxAcK.js";
|
|
5
|
-
import "./features-
|
|
4
|
+
import { t as SessionProperties } from "./session-properties-COtlxAcK.js";
|
|
5
|
+
import "./features-CpR6ZyvS.js";
|
|
6
6
|
import "./tag-qzjGGci8.js";
|
|
7
|
-
import { _ as WaitOptions, f as RequestOptions, g as TransportRequestOptions, h as Transport, n as ClientOptions, t as ClientCredentials, yt as ServerProfile } from "./transport-
|
|
7
|
+
import { _ as WaitOptions, f as RequestOptions, g as TransportRequestOptions, h as Transport, l as ProbeReadOptions, n as ClientOptions, t as ClientCredentials, yt as ServerProfile } from "./transport-DZjspEuv.js";
|
|
8
8
|
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
9
|
-
import "./requirements-
|
|
10
|
-
import "./requirement-check-
|
|
11
|
-
import { n as Page } from "./paginate-
|
|
9
|
+
import "./requirements-CGEeSEwC.js";
|
|
10
|
+
import "./requirement-check-DH-EZ8Nx.js";
|
|
11
|
+
import { n as Page } from "./paginate-Bgcj4F03.js";
|
|
12
12
|
import { a as PollOptions } from "./poll-CIwnee7h.js";
|
|
13
|
-
import "./json-
|
|
13
|
+
import "./json-BqBfc8w1.js";
|
|
14
14
|
import { i as CreatedApiKey, r as ApiKeyCreateInput, t as ApiKey } from "./api-key-DJeN1-7G.js";
|
|
15
|
-
import { i as CardDetail, l as CardUpdateInput, o as CardQueryResult, r as CardCreateInput, t as Card } from "./card-
|
|
16
|
-
import { c as CollectionId, g as CollectionTreeNode, i as Collection, s as CollectionCreateInput, v as CollectionUpdateInput } from "./collection-
|
|
15
|
+
import { i as CardDetail, l as CardUpdateInput, o as CardQueryResult, r as CardCreateInput, t as Card } from "./card-Dq_X3Ol2.js";
|
|
16
|
+
import { c as CollectionId, g as CollectionTreeNode, i as Collection, s as CollectionCreateInput, v as CollectionUpdateInput } from "./collection-CyZqHB2n.js";
|
|
17
17
|
import "./content-translation-zfUkE_OG.js";
|
|
18
18
|
import "./cron-DThzerR6.js";
|
|
19
|
-
import { _ as DashcardDetail, a as DashboardCopyInput, m as DashboardUpdateInput, o as DashboardCreateInput, r as DashboardCopy, s as DashboardDetail, t as Dashboard, u as DashboardParameterConstraints, v as DashcardPatchInput } from "./dashboard-
|
|
20
|
-
import { l as DataActionUpdateInput, o as DataActionExecuteInput, r as DataAction, s as DataActionExecuteResult } from "./data-action-
|
|
21
|
-
import "./data-app-
|
|
22
|
-
import { o as DatabaseSyncResult, s as DatabaseUpdateInput, t as Database, u as DatabaseWithSettings } from "./database-
|
|
23
|
-
import { r as QueryMetadata, t as CompiledQuery } from "./dataset-
|
|
24
|
-
import "./dependency-
|
|
19
|
+
import { _ as DashcardDetail, a as DashboardCopyInput, m as DashboardUpdateInput, o as DashboardCreateInput, r as DashboardCopy, s as DashboardDetail, t as Dashboard, u as DashboardParameterConstraints, v as DashcardPatchInput } from "./dashboard-5ZMYiLrS.js";
|
|
20
|
+
import { l as DataActionUpdateInput, o as DataActionExecuteInput, r as DataAction, s as DataActionExecuteResult } from "./data-action-DBO2a_Sf.js";
|
|
21
|
+
import "./data-app-CeF4Tazv.js";
|
|
22
|
+
import { o as DatabaseSyncResult, s as DatabaseUpdateInput, t as Database, u as DatabaseWithSettings } from "./database-C69Mg39B.js";
|
|
23
|
+
import { r as QueryMetadata, t as CompiledQuery } from "./dataset-IbEfvqlT.js";
|
|
24
|
+
import "./dependency-BitZZ45o.js";
|
|
25
25
|
import { a as DocumentUpdateInput, i as DocumentCreateInput, t as Document } from "./document-rqUlE_OE.js";
|
|
26
|
-
import { a as EidTranslateResult, i as EidTranslateInput } from "./eid-translation-
|
|
27
|
-
import "./embedding-
|
|
26
|
+
import { a as EidTranslateResult, i as EidTranslateInput } from "./eid-translation-nuhr8St2.js";
|
|
27
|
+
import "./embedding-Cz3RUJYf.js";
|
|
28
28
|
import "./erd-BdeFEeSy.js";
|
|
29
|
-
import { c as FieldRemappedValue, d as FieldSummary, f as FieldUpdateInput, l as FieldSearchMatches, p as FieldValues, s as FieldDetail } from "./field-
|
|
30
|
-
import "./git-sync-
|
|
31
|
-
import { i as GlossaryUpdateInput, r as GlossaryCreateInput, t as Glossary } from "./glossary-
|
|
32
|
-
import "./library-
|
|
29
|
+
import { c as FieldRemappedValue, d as FieldSummary, f as FieldUpdateInput, l as FieldSearchMatches, p as FieldValues, s as FieldDetail } from "./field-BhqgbKia.js";
|
|
30
|
+
import "./git-sync-_E3O8gGu.js";
|
|
31
|
+
import { i as GlossaryUpdateInput, r as GlossaryCreateInput, t as Glossary } from "./glossary-D2Q66pW3.js";
|
|
32
|
+
import "./library-BihgcDZS.js";
|
|
33
33
|
import "./measure-CgH14YQZ.js";
|
|
34
|
-
import { g as MetricFilterClause, x as MetricMathExpression } from "./metric-
|
|
35
|
-
import "./moderation-review-
|
|
36
|
-
import { l as NotificationCreateInput, r as Notification, x as NotificationUpdateInput } from "./notification-
|
|
37
|
-
import { s as ParameterValues } from "./parameter-
|
|
34
|
+
import { g as MetricFilterClause, x as MetricMathExpression } from "./metric-DXbXFDOk.js";
|
|
35
|
+
import "./moderation-review-B33XQU68.js";
|
|
36
|
+
import { l as NotificationCreateInput, r as Notification, x as NotificationUpdateInput } from "./notification-BY2JEjKp.js";
|
|
37
|
+
import { s as ParameterValues } from "./parameter-YAZEmuDI.js";
|
|
38
38
|
import { a as PermissionsGraph } from "./permission-BnCQw5Kp.js";
|
|
39
|
-
import { h as PulseUpdateInput, l as PulseCreateInput, t as Pulse } from "./pulse-
|
|
39
|
+
import { h as PulseUpdateInput, l as PulseCreateInput, t as Pulse } from "./pulse-DlEp937s.js";
|
|
40
40
|
import { n as ExportFormat, t as DatasetQuery } from "./query-Xsin530u.js";
|
|
41
|
-
import "./replacement-
|
|
42
|
-
import "./search-
|
|
41
|
+
import "./replacement-Bpn3UQWy.js";
|
|
42
|
+
import "./search-VlZ0qE4k.js";
|
|
43
43
|
import { i as SegmentUpdateInput, r as SegmentCreateInput, t as Segment } from "./segment-CbAgVO-5.js";
|
|
44
|
-
import "./revision-
|
|
44
|
+
import "./revision-C3d3H6M1.js";
|
|
45
45
|
import { t as Setting } from "./setting-DXuQGXGF.js";
|
|
46
46
|
import { n as SetupResult, t as SetupInput } from "./setup-JqcJ2unJ.js";
|
|
47
47
|
import { i as SnippetUpdateInput, r as SnippetCreateInput, t as Snippet } from "./snippet-C_Ilx7tR.js";
|
|
48
|
-
import { S as TableSchemaSyncResult, a as Table, g as TableForeignKey, h as TableFieldValuesResult, y as TableQueryMetadata } from "./table-
|
|
49
|
-
import { i as TimelineEvent, l as TimelineUpdateInput, o as TimelineEventCreateInput, r as TimelineCreateInput, s as TimelineEventUpdateInput, t as Timeline } from "./timeline-
|
|
50
|
-
import "./transform-
|
|
48
|
+
import { S as TableSchemaSyncResult, a as Table, g as TableForeignKey, h as TableFieldValuesResult, y as TableQueryMetadata } from "./table-CYBfgiXd.js";
|
|
49
|
+
import { i as TimelineEvent, l as TimelineUpdateInput, o as TimelineEventCreateInput, r as TimelineCreateInput, s as TimelineEventUpdateInput, t as Timeline } from "./timeline-BdF_aI5F.js";
|
|
50
|
+
import "./transform-DXcm0NVR.js";
|
|
51
51
|
import "./transform-dag-run-BSrdrjaK.js";
|
|
52
|
-
import "./transform-inspector-
|
|
53
|
-
import "./transform-job-
|
|
54
|
-
import "./transform-python-
|
|
52
|
+
import "./transform-inspector-DMXcBC0h.js";
|
|
53
|
+
import "./transform-job-DHAQGfWg.js";
|
|
54
|
+
import "./transform-python-igNhtjTv.js";
|
|
55
55
|
import "./transform-tag-C6j5EUkX.js";
|
|
56
56
|
import "./transform-test-DpTJm7H7.js";
|
|
57
57
|
import { r as UploadUpdateResult, t as UploadResult } from "./upload-UPfZFdbH.js";
|
|
58
58
|
import { t as CurrentUser } from "./user-Sqqv7rqh.js";
|
|
59
|
-
import { n as CardListParams, r as CardQueryParams, t as CardExportParams } from "./card-
|
|
60
|
-
import { i as CollectionTreeParams, n as CollectionItemPageOptions, r as CollectionListParams, t as CollectionItemListParams } from "./collection-
|
|
59
|
+
import { n as CardListParams, r as CardQueryParams, t as CardExportParams } from "./card-B3vHu_sj.js";
|
|
60
|
+
import { i as CollectionTreeParams, n as CollectionItemPageOptions, r as CollectionListParams, t as CollectionItemListParams } from "./collection-CHEIzIE_.js";
|
|
61
61
|
import { t as CsvFile } from "./csv-upload--K35QedP.js";
|
|
62
|
-
import { r as DashcardCardIssue, t as DashboardListParams } from "./dashboard-
|
|
63
|
-
import { n as DatabaseListParams, r as DatabaseSyncSchemaParams, t as DatabaseGetParams } from "./database-
|
|
64
|
-
import { n as DatasetNativeParams, t as DatasetExportParams } from "./dataset-
|
|
65
|
-
import { i as DependencyItemPageOptions, n as DependencyDependentsParams, r as DependencyItemListParams, t as DependencyBrokenParams } from "./dependency-
|
|
66
|
-
import { t as ErdParams } from "./erd-
|
|
67
|
-
import { a as FieldSetDataSensitivityParams, i as FieldSearchParams, t as FieldRemappingParams } from "./field-
|
|
68
|
-
import { a as SyncRemoteChangesParams, i as SyncImportParams, n as SyncExportParams, r as SyncExportPreflightParams, s as SyncStashParams, t as SyncCreateBranchParams } from "./git-sync-
|
|
69
|
-
import { t as GlossaryListParams } from "./glossary-
|
|
70
|
-
import { t as MeasureArchiveParams } from "./measure-
|
|
71
|
-
import { t as NotificationListParams } from "./notification-
|
|
72
|
-
import { t as PulseListParams } from "./pulse-
|
|
73
|
-
import { t as ReplacementRunListParams } from "./replacement-
|
|
74
|
-
import { n as SearchParams, t as SearchPage } from "./search-
|
|
75
|
-
import { t as SegmentArchiveParams } from "./segment-
|
|
76
|
-
import { t as SnippetListParams } from "./snippet-
|
|
77
|
-
import { t as TableListParams } from "./table-
|
|
78
|
-
import { n as TimelineListParams, t as TimelineEventsParams } from "./timeline-
|
|
79
|
-
import { a as TransformRunSummaryPageParams, i as TransformRunParams, n as TransformRunPageOptions, r as TransformRunPageParams, t as TransformDagParams } from "./transform-
|
|
80
|
-
import { t as TransformJobRunParams } from "./transform-job-
|
|
81
|
-
import { t as TransformTestListParams } from "./transform-test-
|
|
82
|
-
import { t as UploadCsvParams } from "./upload-
|
|
62
|
+
import { r as DashcardCardIssue, t as DashboardListParams } from "./dashboard-DSuW_p6d.js";
|
|
63
|
+
import { n as DatabaseListParams, r as DatabaseSyncSchemaParams, t as DatabaseGetParams } from "./database-jfZpzZcH.js";
|
|
64
|
+
import { n as DatasetNativeParams, t as DatasetExportParams } from "./dataset-jwm9qB3h.js";
|
|
65
|
+
import { i as DependencyItemPageOptions, n as DependencyDependentsParams, r as DependencyItemListParams, t as DependencyBrokenParams } from "./dependency-BDwZJL_k.js";
|
|
66
|
+
import { t as ErdParams } from "./erd-DqG1DNRX.js";
|
|
67
|
+
import { a as FieldSetDataSensitivityParams, i as FieldSearchParams, t as FieldRemappingParams } from "./field-D84ql2Go.js";
|
|
68
|
+
import { a as SyncRemoteChangesParams, i as SyncImportParams, n as SyncExportParams, r as SyncExportPreflightParams, s as SyncStashParams, t as SyncCreateBranchParams } from "./git-sync-ClRBckWI.js";
|
|
69
|
+
import { t as GlossaryListParams } from "./glossary-BHhfqyvP.js";
|
|
70
|
+
import { t as MeasureArchiveParams } from "./measure-CO6dcDQ2.js";
|
|
71
|
+
import { t as NotificationListParams } from "./notification-D7X382Y9.js";
|
|
72
|
+
import { t as PulseListParams } from "./pulse-mD_qiUho.js";
|
|
73
|
+
import { t as ReplacementRunListParams } from "./replacement-DIPomAwo.js";
|
|
74
|
+
import { n as SearchParams, t as SearchPage } from "./search-CcMYvNrg.js";
|
|
75
|
+
import { t as SegmentArchiveParams } from "./segment-vL_lWbxX.js";
|
|
76
|
+
import { t as SnippetListParams } from "./snippet-CR3Qw7Vj.js";
|
|
77
|
+
import { t as TableListParams } from "./table-MNH1ybH1.js";
|
|
78
|
+
import { n as TimelineListParams, t as TimelineEventsParams } from "./timeline-DR-yCbB2.js";
|
|
79
|
+
import { a as TransformRunSummaryPageParams, i as TransformRunParams, n as TransformRunPageOptions, r as TransformRunPageParams, t as TransformDagParams } from "./transform-Dh1ZDOJ7.js";
|
|
80
|
+
import { t as TransformJobRunParams } from "./transform-job-DzP5HoUy.js";
|
|
81
|
+
import { t as TransformTestListParams } from "./transform-test-CPlCdxNq.js";
|
|
82
|
+
import { t as UploadCsvParams } from "./upload-B3qYWIWN.js";
|
|
83
83
|
//#region src/resources/metric.d.ts
|
|
84
84
|
interface MetricDimensionListParams {
|
|
85
85
|
query?: string | undefined;
|
|
@@ -272,7 +272,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
272
272
|
itemPages: (ref: string | number, params?: CollectionItemListParams | undefined, options?: CollectionItemPageOptions | undefined) => AsyncIterable<Page<{
|
|
273
273
|
[x: string]: unknown;
|
|
274
274
|
id: number;
|
|
275
|
-
model: "
|
|
275
|
+
model: "card" | "collection" | "dashboard" | "dataset" | "document" | "metric" | "measure" | "pulse" | "snippet" | "table" | "timeline" | "transform" | "exploration" | "action" | "indexed-entity" | "no_models";
|
|
276
276
|
name: string;
|
|
277
277
|
archived: boolean | null;
|
|
278
278
|
description?: string | null | undefined;
|
|
@@ -493,7 +493,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
493
493
|
name?: string | null | undefined;
|
|
494
494
|
display_name?: string | null | undefined;
|
|
495
495
|
description?: string | null | undefined;
|
|
496
|
-
type?: "query" | "metric" | "
|
|
496
|
+
type?: "query" | "metric" | "question" | "model" | "implicit" | null | undefined;
|
|
497
497
|
display?: string | null | undefined;
|
|
498
498
|
database_id?: number | null | undefined;
|
|
499
499
|
db_id?: number | null | undefined;
|
|
@@ -532,7 +532,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
532
532
|
} | null | undefined;
|
|
533
533
|
view_count?: number | null | undefined;
|
|
534
534
|
};
|
|
535
|
-
dependents_count: Partial<Record<"dashboard" | "document" | "metric" | "measure" | "segment" | "snippet" | "table" | "transform" | "
|
|
535
|
+
dependents_count: Partial<Record<"dashboard" | "document" | "metric" | "measure" | "segment" | "snippet" | "table" | "transform" | "question" | "model" | "action" | "sandbox", number>> | null;
|
|
536
536
|
}[];
|
|
537
537
|
edges: {
|
|
538
538
|
[x: string]: unknown;
|
|
@@ -551,7 +551,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
551
551
|
name?: string | null | undefined;
|
|
552
552
|
display_name?: string | null | undefined;
|
|
553
553
|
description?: string | null | undefined;
|
|
554
|
-
type?: "query" | "metric" | "
|
|
554
|
+
type?: "query" | "metric" | "question" | "model" | "implicit" | null | undefined;
|
|
555
555
|
display?: string | null | undefined;
|
|
556
556
|
database_id?: number | null | undefined;
|
|
557
557
|
db_id?: number | null | undefined;
|
|
@@ -590,7 +590,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
590
590
|
} | null | undefined;
|
|
591
591
|
view_count?: number | null | undefined;
|
|
592
592
|
};
|
|
593
|
-
dependents_count: Partial<Record<"dashboard" | "document" | "metric" | "measure" | "segment" | "snippet" | "table" | "transform" | "
|
|
593
|
+
dependents_count: Partial<Record<"dashboard" | "document" | "metric" | "measure" | "segment" | "snippet" | "table" | "transform" | "question" | "model" | "action" | "sandbox", number>> | null;
|
|
594
594
|
}>>;
|
|
595
595
|
broken: (type: "card" | "dashboard" | "document" | "measure" | "segment" | "snippet" | "table" | "transform" | "action" | "sandbox", id: number, params?: DependencyBrokenParams | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
|
|
596
596
|
[x: string]: unknown;
|
|
@@ -601,7 +601,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
601
601
|
name?: string | null | undefined;
|
|
602
602
|
display_name?: string | null | undefined;
|
|
603
603
|
description?: string | null | undefined;
|
|
604
|
-
type?: "query" | "metric" | "
|
|
604
|
+
type?: "query" | "metric" | "question" | "model" | "implicit" | null | undefined;
|
|
605
605
|
display?: string | null | undefined;
|
|
606
606
|
database_id?: number | null | undefined;
|
|
607
607
|
db_id?: number | null | undefined;
|
|
@@ -650,7 +650,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
650
650
|
name?: string | null | undefined;
|
|
651
651
|
display_name?: string | null | undefined;
|
|
652
652
|
description?: string | null | undefined;
|
|
653
|
-
type?: "query" | "metric" | "
|
|
653
|
+
type?: "query" | "metric" | "question" | "model" | "implicit" | null | undefined;
|
|
654
654
|
display?: string | null | undefined;
|
|
655
655
|
database_id?: number | null | undefined;
|
|
656
656
|
db_id?: number | null | undefined;
|
|
@@ -689,7 +689,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
689
689
|
} | null | undefined;
|
|
690
690
|
view_count?: number | null | undefined;
|
|
691
691
|
};
|
|
692
|
-
dependents_count: Partial<Record<"dashboard" | "document" | "metric" | "measure" | "segment" | "snippet" | "table" | "transform" | "
|
|
692
|
+
dependents_count: Partial<Record<"dashboard" | "document" | "metric" | "measure" | "segment" | "snippet" | "table" | "transform" | "question" | "model" | "action" | "sandbox", number>> | null;
|
|
693
693
|
}>>;
|
|
694
694
|
breakingPages: (params?: DependencyItemListParams | undefined, options?: DependencyItemPageOptions | undefined) => AsyncIterable<Page<{
|
|
695
695
|
[x: string]: unknown;
|
|
@@ -700,7 +700,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
700
700
|
name?: string | null | undefined;
|
|
701
701
|
display_name?: string | null | undefined;
|
|
702
702
|
description?: string | null | undefined;
|
|
703
|
-
type?: "query" | "metric" | "
|
|
703
|
+
type?: "query" | "metric" | "question" | "model" | "implicit" | null | undefined;
|
|
704
704
|
display?: string | null | undefined;
|
|
705
705
|
database_id?: number | null | undefined;
|
|
706
706
|
db_id?: number | null | undefined;
|
|
@@ -739,7 +739,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
739
739
|
} | null | undefined;
|
|
740
740
|
view_count?: number | null | undefined;
|
|
741
741
|
};
|
|
742
|
-
dependents_count: Partial<Record<"dashboard" | "document" | "metric" | "measure" | "segment" | "snippet" | "table" | "transform" | "
|
|
742
|
+
dependents_count: Partial<Record<"dashboard" | "document" | "metric" | "measure" | "segment" | "snippet" | "table" | "transform" | "question" | "model" | "action" | "sandbox", number>> | null;
|
|
743
743
|
dependents_errors?: {
|
|
744
744
|
[x: string]: unknown;
|
|
745
745
|
id: number;
|
|
@@ -772,14 +772,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
772
772
|
text?: string | undefined;
|
|
773
773
|
attrs?: Record<string, unknown> | undefined;
|
|
774
774
|
marks?: Record<string, unknown>[] | undefined;
|
|
775
|
-
content?:
|
|
776
|
-
[x: string]: unknown;
|
|
777
|
-
type: string;
|
|
778
|
-
text?: string | undefined;
|
|
779
|
-
attrs?: Record<string, unknown> | undefined;
|
|
780
|
-
marks?: Record<string, unknown>[] | undefined;
|
|
781
|
-
content?: /*elided*/ any[] | undefined;
|
|
782
|
-
}[] | undefined;
|
|
775
|
+
content?: /*elided*/ any[] | undefined;
|
|
783
776
|
} | null;
|
|
784
777
|
entity_id: string | null;
|
|
785
778
|
collection_id: number | null;
|
|
@@ -1620,6 +1613,9 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
1620
1613
|
update: (id: number, params: SegmentUpdateInput, options?: RequestOptions) => Promise<Segment>;
|
|
1621
1614
|
archive: (id: number, params: SegmentArchiveParams, options?: RequestOptions) => Promise<Segment>;
|
|
1622
1615
|
};
|
|
1616
|
+
session: {
|
|
1617
|
+
properties: (options?: ProbeReadOptions) => Promise<SessionProperties>;
|
|
1618
|
+
};
|
|
1623
1619
|
setting: {
|
|
1624
1620
|
list: (options?: RequestOptions) => Promise<ListResult<Setting>>;
|
|
1625
1621
|
get: (key: string, options?: RequestOptions) => Promise<unknown>;
|
|
@@ -2531,7 +2527,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2531
2527
|
[x: string]: unknown;
|
|
2532
2528
|
id: string;
|
|
2533
2529
|
title: string;
|
|
2534
|
-
display: "table" | "
|
|
2530
|
+
display: "table" | "row" | "hidden" | "progress" | "bar" | "line" | "area" | "pie" | "scalar" | "gauge";
|
|
2535
2531
|
dataset_query: {
|
|
2536
2532
|
[x: string]: unknown;
|
|
2537
2533
|
};
|
package/dist/client.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createClient, t as MetabaseClient } from "./client-
|
|
1
|
+
import { n as createClient, t as MetabaseClient } from "./client-DdKXWHXy.js";
|
|
2
2
|
export { MetabaseClient, createClient };
|
package/dist/client.js
CHANGED
|
@@ -26,6 +26,7 @@ import { replacementResource } from "./resources/replacement.js";
|
|
|
26
26
|
import { revisionResource } from "./resources/revision.js";
|
|
27
27
|
import { searchResource } from "./resources/search.js";
|
|
28
28
|
import { segmentResource } from "./resources/segment.js";
|
|
29
|
+
import { sessionResource } from "./resources/session.js";
|
|
29
30
|
import { settingResource } from "./resources/setting.js";
|
|
30
31
|
import { setupResource } from "./resources/setup.js";
|
|
31
32
|
import { snippetResource } from "./resources/snippet.js";
|
|
@@ -72,6 +73,7 @@ function createClient(config, options) {
|
|
|
72
73
|
revision: revisionResource(transport),
|
|
73
74
|
search: searchResource(transport),
|
|
74
75
|
segment: segmentResource(transport),
|
|
76
|
+
session: sessionResource(transport),
|
|
75
77
|
setting: settingResource(transport),
|
|
76
78
|
setup: setupResource(transport),
|
|
77
79
|
snippet: snippetResource(transport),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as RequestOptions, h as Transport } from "./transport-
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-DZjspEuv.js";
|
|
2
2
|
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
-
import { n as Page, r as PaginateOptions } from "./paginate-
|
|
4
|
-
import { c as CollectionId, d as CollectionItemFilterModel, g as CollectionTreeNode, h as CollectionPinnedState, i as Collection, m as CollectionNamespace, p as CollectionListFilter, s as CollectionCreateInput, v as CollectionUpdateInput } from "./collection-
|
|
3
|
+
import { n as Page, r as PaginateOptions } from "./paginate-Bgcj4F03.js";
|
|
4
|
+
import { c as CollectionId, d as CollectionItemFilterModel, g as CollectionTreeNode, h as CollectionPinnedState, i as Collection, m as CollectionNamespace, p as CollectionListFilter, s as CollectionCreateInput, v as CollectionUpdateInput } from "./collection-CyZqHB2n.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/resources/collection.d.ts
|
|
7
7
|
interface CollectionListParams {
|
|
@@ -35,7 +35,7 @@ declare function collectionResource(transport: Transport): {
|
|
|
35
35
|
itemPages: (ref: string | number, params?: CollectionItemListParams | undefined, options?: CollectionItemPageOptions | undefined) => AsyncIterable<Page<{
|
|
36
36
|
[x: string]: unknown;
|
|
37
37
|
id: number;
|
|
38
|
-
model: "
|
|
38
|
+
model: "card" | "collection" | "dashboard" | "dataset" | "document" | "metric" | "measure" | "pulse" | "snippet" | "table" | "timeline" | "transform" | "exploration" | "action" | "indexed-entity" | "no_models";
|
|
39
39
|
name: string;
|
|
40
40
|
archived: boolean | null;
|
|
41
41
|
description?: string | null | undefined;
|