@metabase/client 0.1.3 → 0.1.4
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 +6 -0
- package/README.md +1 -1
- package/dist/{card-BBLDmhtp.d.ts → card-CAOxi3ZU.d.ts} +3 -3
- package/dist/{card-DkHtPMK4.d.ts → card-Ik580mDC.d.ts} +3 -3
- package/dist/{client-eOkt3tTd.d.ts → client-CQkS1030.d.ts} +112 -129
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/{collection-DWjkDrln.d.ts → collection-B31DGW6J.d.ts} +3 -3
- package/dist/{collection-BtjnSckn.d.ts → collection-kN2oYenF.d.ts} +1 -1
- package/dist/{dashboard-DtLXVgtf.d.ts → dashboard-Bkl_vs7L.d.ts} +5 -5
- package/dist/{dashboard-B4qWeR10.d.ts → dashboard-ClJ5XHXJ.d.ts} +3 -3
- package/dist/{data-action-DqwcRA7B.d.ts → data-action-CCU3lzoY.d.ts} +2 -2
- package/dist/data-app-DAEPU9W5.d.ts +111 -0
- package/dist/{database-DULVEXki.d.ts → database-B54owh7H.d.ts} +2 -2
- package/dist/{database-Cw8ICtQi.d.ts → database-DNQLCRBJ.d.ts} +3 -3
- package/dist/{dataset-Du1GRHhd.d.ts → dataset-Bj3bNqjm.d.ts} +3 -3
- package/dist/{dataset-26H-dH4N.d.ts → dataset-C05pNRjH.d.ts} +3 -3
- package/dist/{dependency-elYkHuk5.d.ts → dependency-NbXbo_fE.d.ts} +3 -3
- 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 +2 -2
- package/dist/domain/data-app.js +27 -14
- package/dist/domain/database.d.ts +1 -1
- package/dist/domain/dataset.d.ts +1 -1
- package/dist/domain/field.d.ts +1 -1
- package/dist/domain/git-sync.d.ts +1 -1
- package/dist/domain/library.d.ts +1 -1
- package/dist/domain/metric.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-dag-run.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-test.d.ts +2 -2
- package/dist/domain/transform-test.js +5 -1
- package/dist/domain/transform.d.ts +1 -1
- package/dist/{erd-D2fpjDTj.d.ts → erd-BJ3OjckY.d.ts} +1 -1
- package/dist/{errors-DdMlaXqq.js → errors-D5mjCJCW.js} +12 -4
- package/dist/errors.d.ts +1 -1
- package/dist/{features-SMSfJhB6.d.ts → features-BwC2QUQB.d.ts} +4 -0
- package/dist/{field-awM3Y7IP.d.ts → field-Be27Kzlx.d.ts} +2 -2
- package/dist/{field-D-kF3G7v.d.ts → field-CCp65II7.d.ts} +2 -2
- package/dist/{git-sync-8Tk8TirZ.d.ts → git-sync-CBplEGj0.d.ts} +1 -1
- package/dist/{git-sync-nvbSaNfS.d.ts → git-sync-D1gts9j5.d.ts} +1 -1
- package/dist/{glossary-CQMSJmIx.d.ts → glossary-yuKOTBXb.d.ts} +1 -1
- package/dist/http/errors.d.ts +1 -1
- package/dist/http/errors.js +1 -1
- package/dist/http/oauth.js +1 -1
- package/dist/http/transport.d.ts +1 -1
- package/dist/http/transport.js +1 -1
- package/dist/index.d.ts +31 -31
- package/dist/index.js +5 -5
- package/dist/{input-gates-DwKoTJVQ.d.ts → input-gates-DLCSnwRf.d.ts} +1 -1
- package/dist/{json-DvOVLFVY.d.ts → json-DK8ntK_m.d.ts} +1 -1
- package/dist/json.d.ts +1 -1
- package/dist/{library-B9pEq7qP.d.ts → library-DZpIRTeG.d.ts} +2 -2
- package/dist/{measure-D4ArCbsa.d.ts → measure-DZ7RmNPs.d.ts} +1 -1
- package/dist/{metric-BtEVH_Yp.d.ts → metric-CKhTot_B.d.ts} +1 -1
- package/dist/{notification-BsuPAfMW.d.ts → notification-BwLEwNk9.d.ts} +1 -1
- package/dist/{paginate-Du9kUbXZ.d.ts → paginate-CPjKDJ2m.d.ts} +1 -1
- package/dist/paginate.d.ts +1 -1
- package/dist/{parameter-ak-J-IOj.d.ts → parameter-CvyXRH6F.d.ts} +2 -2
- package/dist/{pulse-0LG3K6qO.d.ts → pulse-BgS7Y3MU.d.ts} +4 -4
- package/dist/{pulse-drQKS_pg.d.ts → pulse-DEKvyd8u.d.ts} +2 -2
- package/dist/{refusal-B9aeHMc9.js → refusal-CvN0pxPR.js} +1 -1
- package/dist/{replacement-CyvtbxGg.d.ts → replacement-Bu4qxOua.d.ts} +6 -6
- package/dist/{replacement-g3IKzPPj.d.ts → replacement-WU_rk924.d.ts} +3 -3
- package/dist/{requirement-check-Nv0trVbp.d.ts → requirement-check-B5tsY6Z_.d.ts} +2 -2
- package/dist/{requirements-Dx_ZVzl7.d.ts → requirements-CW0DsGzZ.d.ts} +4 -5
- 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/collection.js +1 -1
- package/dist/resources/content-translation.d.ts +1 -1
- package/dist/resources/content-translation.js +1 -1
- package/dist/resources/dashboard.d.ts +1 -1
- package/dist/resources/dashboard.js +1 -1
- package/dist/resources/data-action.d.ts +2 -2
- package/dist/resources/data-action.js +1 -1
- package/dist/resources/data-app.d.ts +35 -52
- package/dist/resources/data-app.js +23 -38
- 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/dependency.js +1 -1
- package/dist/resources/document.d.ts +1 -1
- package/dist/resources/document.js +1 -1
- package/dist/resources/eid-translation.d.ts +1 -1
- package/dist/resources/erd.d.ts +1 -1
- package/dist/resources/erd.js +1 -1
- package/dist/resources/field.d.ts +1 -1
- package/dist/resources/field.js +1 -1
- package/dist/resources/git-sync.d.ts +1 -1
- package/dist/resources/git-sync.js +2 -2
- package/dist/resources/glossary.d.ts +1 -1
- package/dist/resources/library.d.ts +1 -1
- package/dist/resources/library.js +1 -1
- package/dist/resources/measure.d.ts +1 -1
- package/dist/resources/measure.js +1 -1
- package/dist/resources/metric.d.ts +1 -1
- package/dist/resources/metric.js +1 -1
- package/dist/resources/moderation-review.d.ts +1 -1
- package/dist/resources/moderation-review.js +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/replacement.js +1 -1
- package/dist/resources/revision.d.ts +1 -1
- package/dist/resources/revision.js +1 -1
- package/dist/resources/search.d.ts +1 -1
- package/dist/resources/search.js +1 -1
- package/dist/resources/segment.d.ts +1 -1
- 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/table.js +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 +2 -2
- package/dist/resources/transform-dag-run.js +1 -1
- package/dist/resources/transform-inspector.d.ts +1 -1
- package/dist/resources/transform-inspector.js +1 -1
- package/dist/resources/transform-job.d.ts +1 -1
- package/dist/resources/transform-job.js +1 -1
- package/dist/resources/transform-python.d.ts +1 -1
- package/dist/resources/transform-python.js +1 -1
- package/dist/resources/transform-tag.d.ts +1 -1
- package/dist/resources/transform-tag.js +1 -1
- package/dist/resources/transform-test.d.ts +1 -1
- package/dist/resources/transform-test.js +1 -1
- package/dist/resources/transform.d.ts +1 -1
- package/dist/resources/transform.js +1 -1
- package/dist/resources/upload.d.ts +1 -1
- package/dist/resources/user.d.ts +1 -1
- package/dist/{revision-Cft5Lcev.d.ts → revision-CwP4-eqv.d.ts} +2 -2
- package/dist/{search-BUr4r7d2.d.ts → search-C0PiFw8c.d.ts} +1 -1
- package/dist/{search-DX1IVRRC.d.ts → search-DjJ_lu_o.d.ts} +2 -2
- package/dist/{segment-c2EDEJNd.d.ts → segment-BR0OAdWN.d.ts} +1 -1
- package/dist/signal.d.ts +1 -1
- package/dist/{snippet-CSt-f812.d.ts → snippet-C5naeVEd.d.ts} +1 -1
- package/dist/{table-R-q8w__K.d.ts → table-B3lazUvH.d.ts} +16 -16
- package/dist/{table-BA-k8Zgt.d.ts → table-DT3kO7JU.d.ts} +10 -10
- package/dist/{timeline-B35sx1FM.d.ts → timeline-Bnn28jC7.d.ts} +1 -1
- package/dist/{timeline-D3Clk0_n.d.ts → timeline-vJHDIuDJ.d.ts} +2 -2
- package/dist/{transform-C5thnJwW.d.ts → transform-B0mugBQQ.d.ts} +15 -15
- package/dist/{transform-DzgPup_a.d.ts → transform-Buv3VvTt.d.ts} +12 -12
- package/dist/{transform-dag-run-BgZwv1yx.d.ts → transform-dag-run-BSrdrjaK.d.ts} +4 -4
- package/dist/{transform-job-DtLWrsyH.d.ts → transform-job-BFLbsf5-.d.ts} +6 -6
- package/dist/{transform-job-D8jTQtdX.d.ts → transform-job-DV28hc1A.d.ts} +4 -4
- package/dist/{transform-python-DtL3xxMj.d.ts → transform-python-B-jBoeVa.d.ts} +1 -1
- package/dist/{transform-test-B_HR-yKA.d.ts → transform-test-3uuvuwyQ.d.ts} +2 -2
- package/dist/{transform-test-CeMzDpUC.d.ts → transform-test-DpTJm7H7.d.ts} +3 -2
- package/dist/{transport-CyHAGDqx.d.ts → transport-CM-eJat3.d.ts} +5 -1
- package/dist/{transport-HP7cyo9N.js → transport-D52WFGBR.js} +1 -1
- package/dist/{upload-BSixoElJ.d.ts → upload-BxRCvpJo.d.ts} +1 -1
- package/dist/version/capability-error.d.ts +1 -1
- package/dist/version/capability-error.js +1 -1
- package/dist/version/features.d.ts +1 -1
- package/dist/version/features.js +1 -0
- 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 +3 -4
- package/package.json +1 -1
- package/dist/data-app-CqP5_fpB.d.ts +0 -76
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@metabase/client`.
|
|
4
4
|
|
|
5
|
+
## 0.1.4
|
|
6
|
+
|
|
7
|
+
- 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`).
|
|
8
|
+
- `dataApp.list` takes no filter, and `DataAppListFilter` is gone.
|
|
9
|
+
- `dataApp.generateSchema`, `dataApp.generateQueries` and `dataApp.generateActions` return the files of an app's repository as `DataAppGeneratedFiles`: its `src/metabase.schema.ts`, and the YAML of the questions and implicit actions its `defineQuery` and `defineAction` exports define (`DataAppGenerateQueriesInput`, `DataAppGenerateActionsInput`, `DataAppQueryDefinition`, `DataAppActionDefinition`).
|
|
10
|
+
|
|
5
11
|
## 0.1.3
|
|
6
12
|
|
|
7
13
|
- `dataAction.create` creates an implicit action on a table as well as a query action. `DataActionCreateInput` is a union on `type`: a `"query"` body takes `dataset_query`, an `"implicit"` one takes `kind` (`ImplicitActionKind`, on the barrel) and `table_id`. Neither takes `database_id`, which the server derives from the query.
|
package/README.md
CHANGED
|
@@ -405,7 +405,7 @@ An `HttpError`'s `serverMessage` is what the server itself said about the failur
|
|
|
405
405
|
|
|
406
406
|
`PartialWriteError` (category `partial-write`, not retryable) is a write the server answered as a success having applied all but one field: neither a failure nor a success, and repeating it rewrites what landed while leaving that field as it was. Its `PartialWriteDetail` names the `method`, `path` and `field`, the value `requested`, and in `answered` a `PartialWriteAnswer`: `PartialWriteReported` (`{ kind: "reported", value: number | null }`, the value the server's answer reported, `null` when it reported the field empty) or `PartialWriteUnreported` (`{ kind: "unreported" }`, an answer that left the field out).
|
|
407
407
|
|
|
408
|
-
An `HttpError` also carries `errorCode`, the envelope's `error-code` when the throw site published a machine-readable name for the answer, else `null`. A transform test's `create`, `update` and `run` refuse that way when the server declines to run the test at all, and `isTransformTestRefusalCode(code)` narrows the code to the closed `TransformTestRefusalCode` vocabulary. `create` and `update` answer the authoring refusals at 400 (`transform-test.missing-inputs`, `unused-inputs`, `duplicate-input-table`, `unparseable-source`, `unremapped-reference`) and the environment ones at 422 (`unsupported-transform`, `unsupported-driver`); `run` adds `setup-failed` and `transform-failed`, also 422. The remaining names in the vocabulary (`unknown-column`, `ambiguous-column`, `unsupported-format`, `expectation-failed`) never refuse a run: they arrive as one expectation's own `error`, whose `type` is the server's internal name for the same code. A failing expectation is a result, not a refusal: `run` answers a `TransformTestRunResult` whose `status` is `failed` and whose expectations report what they found.
|
|
408
|
+
An `HttpError` also carries `errorCode`, the envelope's `error-code` when the throw site published a machine-readable name for the answer, else `null`. A transform test's `create`, `update` and `run` refuse that way when the server declines to run the test at all, and `isTransformTestRefusalCode(code)` narrows the code to the closed `TransformTestRefusalCode` vocabulary, while `isTransformTestCode(code)` accepts any `transform-test.*` code, including one newer than this client. A refusal that names tables (`missing-inputs`, `unused-inputs`, `duplicate-input-table`) carries them on `HttpError.tables`. `create` and `update` answer the authoring refusals at 400 (`transform-test.missing-inputs`, `unused-inputs`, `duplicate-input-table`, `unparseable-source`, `unremapped-reference`) and the environment ones at 422 (`unsupported-transform`, `unsupported-driver`); `run` adds `setup-failed` and `transform-failed`, also 422. The remaining names in the vocabulary (`unknown-column`, `ambiguous-column`, `unsupported-format`, `expectation-failed`) never refuse a run: they arrive as one expectation's own `error`, whose `type` is the server's internal name for the same code. A failing expectation is a result, not a refusal: `run` answers a `TransformTestRunResult` whose `status` is `failed` and whose expectations report what they found.
|
|
409
409
|
|
|
410
410
|
Two helpers read raw thrown values away from the HTTP boundary. `isFileNotFoundError(value)` reports a
|
|
411
411
|
Node `ENOENT` filesystem error — a missing file on disk, never an HTTP 404, which arrives as an
|
|
@@ -361,8 +361,8 @@ declare const CardDetail: z.ZodObject<{
|
|
|
361
361
|
type: z.ZodEnum<{
|
|
362
362
|
number: "number";
|
|
363
363
|
boolean: "boolean";
|
|
364
|
-
id: "id";
|
|
365
364
|
date: "date";
|
|
365
|
+
id: "id";
|
|
366
366
|
text: "text";
|
|
367
367
|
"temporal-unit": "temporal-unit";
|
|
368
368
|
"date/single": "date/single";
|
|
@@ -734,8 +734,8 @@ declare const CardCreateInput: z.ZodObject<{
|
|
|
734
734
|
type: z.ZodEnum<{
|
|
735
735
|
number: "number";
|
|
736
736
|
boolean: "boolean";
|
|
737
|
-
id: "id";
|
|
738
737
|
date: "date";
|
|
738
|
+
id: "id";
|
|
739
739
|
text: "text";
|
|
740
740
|
"temporal-unit": "temporal-unit";
|
|
741
741
|
"date/single": "date/single";
|
|
@@ -853,8 +853,8 @@ declare const CardUpdateInput: z.ZodObject<{
|
|
|
853
853
|
type: z.ZodEnum<{
|
|
854
854
|
number: "number";
|
|
855
855
|
boolean: "boolean";
|
|
856
|
-
id: "id";
|
|
857
856
|
date: "date";
|
|
857
|
+
id: "id";
|
|
858
858
|
text: "text";
|
|
859
859
|
"temporal-unit": "temporal-unit";
|
|
860
860
|
"date/single": "date/single";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as RequestOptions, h as Transport } from "./transport-
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-CM-eJat3.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-CAOxi3ZU.js";
|
|
4
|
+
import { r as QueryMetadata } from "./dataset-Bj3bNqjm.js";
|
|
5
5
|
import { n as ExportFormat } from "./query-Xsin530u.js";
|
|
6
6
|
//#region src/resources/card.d.ts
|
|
7
7
|
interface CardListParams {
|
|
@@ -2,84 +2,84 @@ import "./credential-B6fKSvqp.js";
|
|
|
2
2
|
import "./oauth-login-SZ4Csai8.js";
|
|
3
3
|
import "./oauth-session-COLH4puN.js";
|
|
4
4
|
import "./session-properties-COtlxAcK.js";
|
|
5
|
-
import "./features-
|
|
5
|
+
import "./features-BwC2QUQB.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, n as ClientOptions, t as ClientCredentials, yt as ServerProfile } from "./transport-CM-eJat3.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-CW0DsGzZ.js";
|
|
10
|
+
import "./requirement-check-B5tsY6Z_.js";
|
|
11
|
+
import { n as Page } from "./paginate-CPjKDJ2m.js";
|
|
12
12
|
import { a as PollOptions } from "./poll-CIwnee7h.js";
|
|
13
|
-
import "./json-
|
|
13
|
+
import "./json-DK8ntK_m.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-CAOxi3ZU.js";
|
|
16
|
+
import { c as CollectionId, g as CollectionTreeNode, i as Collection, s as CollectionCreateInput, v as CollectionUpdateInput } from "./collection-kN2oYenF.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-
|
|
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-Bkl_vs7L.js";
|
|
20
|
+
import { l as DataActionUpdateInput, o as DataActionExecuteInput, r as DataAction, s as DataActionExecuteResult } from "./data-action-CCU3lzoY.js";
|
|
21
|
+
import "./data-app-DAEPU9W5.js";
|
|
22
|
+
import { o as DatabaseSyncResult, s as DatabaseUpdateInput, t as Database, u as DatabaseWithSettings } from "./database-B54owh7H.js";
|
|
23
|
+
import { r as QueryMetadata, t as CompiledQuery } from "./dataset-Bj3bNqjm.js";
|
|
24
24
|
import "./dependency-B8aPt_IM.js";
|
|
25
25
|
import { a as DocumentUpdateInput, i as DocumentCreateInput, t as Document } from "./document-rqUlE_OE.js";
|
|
26
26
|
import { a as EidTranslateResult, i as EidTranslateInput } from "./eid-translation-CP79Tz71.js";
|
|
27
27
|
import "./embedding-oU3gqfgX.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-
|
|
29
|
+
import { c as FieldRemappedValue, d as FieldSummary, f as FieldUpdateInput, l as FieldSearchMatches, p as FieldValues, s as FieldDetail } from "./field-CCp65II7.js";
|
|
30
|
+
import "./git-sync-D1gts9j5.js";
|
|
31
31
|
import { i as GlossaryUpdateInput, r as GlossaryCreateInput, t as Glossary } from "./glossary-CHK3elPj.js";
|
|
32
|
-
import "./library-
|
|
32
|
+
import "./library-DZpIRTeG.js";
|
|
33
33
|
import "./measure-CgH14YQZ.js";
|
|
34
|
-
import { g as MetricFilterClause, x as MetricMathExpression } from "./metric-
|
|
34
|
+
import { g as MetricFilterClause, x as MetricMathExpression } from "./metric-CKhTot_B.js";
|
|
35
35
|
import "./moderation-review-B4RUTZ6_.js";
|
|
36
36
|
import { l as NotificationCreateInput, r as Notification, x as NotificationUpdateInput } from "./notification-D1MThyKE.js";
|
|
37
|
-
import { s as ParameterValues } from "./parameter-
|
|
37
|
+
import { s as ParameterValues } from "./parameter-CvyXRH6F.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-BgS7Y3MU.js";
|
|
40
40
|
import { n as ExportFormat, t as DatasetQuery } from "./query-Xsin530u.js";
|
|
41
|
-
import "./replacement-
|
|
42
|
-
import "./search-
|
|
41
|
+
import "./replacement-Bu4qxOua.js";
|
|
42
|
+
import "./search-C0PiFw8c.js";
|
|
43
43
|
import { i as SegmentUpdateInput, r as SegmentCreateInput, t as Segment } from "./segment-CbAgVO-5.js";
|
|
44
|
-
import "./revision-
|
|
44
|
+
import "./revision-CwP4-eqv.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-
|
|
51
|
-
import "./transform-dag-run-
|
|
48
|
+
import { S as TableSchemaSyncResult, a as Table, g as TableForeignKey, h as TableFieldValuesResult, y as TableQueryMetadata } from "./table-B3lazUvH.js";
|
|
49
|
+
import { i as TimelineEvent, l as TimelineUpdateInput, o as TimelineEventCreateInput, r as TimelineCreateInput, s as TimelineEventUpdateInput, t as Timeline } from "./timeline-Bnn28jC7.js";
|
|
50
|
+
import "./transform-B0mugBQQ.js";
|
|
51
|
+
import "./transform-dag-run-BSrdrjaK.js";
|
|
52
52
|
import "./transform-inspector-BUYBt6--.js";
|
|
53
|
-
import "./transform-job-
|
|
54
|
-
import "./transform-python-
|
|
53
|
+
import "./transform-job-DV28hc1A.js";
|
|
54
|
+
import "./transform-python-B-jBoeVa.js";
|
|
55
55
|
import "./transform-tag-C6j5EUkX.js";
|
|
56
|
-
import "./transform-test-
|
|
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-Ik580mDC.js";
|
|
60
|
+
import { i as CollectionTreeParams, n as CollectionItemPageOptions, r as CollectionListParams, t as CollectionItemListParams } from "./collection-B31DGW6J.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-ClJ5XHXJ.js";
|
|
63
|
+
import { n as DatabaseListParams, r as DatabaseSyncSchemaParams, t as DatabaseGetParams } from "./database-DNQLCRBJ.js";
|
|
64
|
+
import { n as DatasetNativeParams, t as DatasetExportParams } from "./dataset-C05pNRjH.js";
|
|
65
|
+
import { i as DependencyItemPageOptions, n as DependencyDependentsParams, r as DependencyItemListParams, t as DependencyBrokenParams } from "./dependency-NbXbo_fE.js";
|
|
66
|
+
import { t as ErdParams } from "./erd-BJ3OjckY.js";
|
|
67
|
+
import { a as FieldSetDataSensitivityParams, i as FieldSearchParams, t as FieldRemappingParams } from "./field-Be27Kzlx.js";
|
|
68
|
+
import { a as SyncRemoteChangesParams, i as SyncImportParams, n as SyncExportParams, r as SyncExportPreflightParams, s as SyncStashParams, t as SyncCreateBranchParams } from "./git-sync-CBplEGj0.js";
|
|
69
|
+
import { t as GlossaryListParams } from "./glossary-yuKOTBXb.js";
|
|
70
|
+
import { t as MeasureArchiveParams } from "./measure-DZ7RmNPs.js";
|
|
71
|
+
import { t as NotificationListParams } from "./notification-BwLEwNk9.js";
|
|
72
|
+
import { t as PulseListParams } from "./pulse-DEKvyd8u.js";
|
|
73
|
+
import { t as ReplacementRunListParams } from "./replacement-WU_rk924.js";
|
|
74
|
+
import { n as SearchParams, t as SearchPage } from "./search-DjJ_lu_o.js";
|
|
75
|
+
import { t as SegmentArchiveParams } from "./segment-BR0OAdWN.js";
|
|
76
|
+
import { t as SnippetListParams } from "./snippet-C5naeVEd.js";
|
|
77
|
+
import { t as TableListParams } from "./table-DT3kO7JU.js";
|
|
78
|
+
import { n as TimelineListParams, t as TimelineEventsParams } from "./timeline-vJHDIuDJ.js";
|
|
79
|
+
import { a as TransformRunSummaryPageParams, i as TransformRunParams, n as TransformRunPageOptions, r as TransformRunPageParams, t as TransformDagParams } from "./transform-Buv3VvTt.js";
|
|
80
|
+
import { t as TransformJobRunParams } from "./transform-job-BFLbsf5-.js";
|
|
81
|
+
import { t as TransformTestListParams } from "./transform-test-3uuvuwyQ.js";
|
|
82
|
+
import { t as UploadCsvParams } from "./upload-BxRCvpJo.js";
|
|
83
83
|
//#region src/resources/metric.d.ts
|
|
84
84
|
interface MetricDimensionListParams {
|
|
85
85
|
query?: string | undefined;
|
|
@@ -377,9 +377,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
377
377
|
execute: (id: number, params: DataActionExecuteInput, options?: RequestOptions) => Promise<DataActionExecuteResult>;
|
|
378
378
|
};
|
|
379
379
|
dataApp: {
|
|
380
|
-
list: (
|
|
381
|
-
available?: boolean | undefined;
|
|
382
|
-
} | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
|
|
380
|
+
list: (options?: RequestOptions | undefined) => Promise<ListResult<{
|
|
383
381
|
[x: string]: unknown;
|
|
384
382
|
id: number;
|
|
385
383
|
name: string;
|
|
@@ -417,54 +415,9 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
417
415
|
name: string;
|
|
418
416
|
display_name: string;
|
|
419
417
|
}>;
|
|
420
|
-
create: (params: {
|
|
421
|
-
name: string;
|
|
422
|
-
display_name?: string | undefined;
|
|
423
|
-
description?: string | null | undefined;
|
|
424
|
-
version?: number | undefined;
|
|
425
|
-
bundle_path?: string | undefined;
|
|
426
|
-
allowed_hosts?: string[] | undefined;
|
|
427
|
-
enabled?: boolean | undefined;
|
|
428
|
-
}, options?: RequestOptions | undefined) => Promise<{
|
|
429
|
-
[x: string]: unknown;
|
|
430
|
-
id: number;
|
|
431
|
-
name: string;
|
|
432
|
-
display_name: string;
|
|
433
|
-
description: string | null;
|
|
434
|
-
version: number;
|
|
435
|
-
outdated: boolean;
|
|
436
|
-
bundle_path: string;
|
|
437
|
-
enabled: boolean;
|
|
438
|
-
allowed_hosts: string[];
|
|
439
|
-
resource_collection_id: number;
|
|
440
|
-
bundle_hash: string | null;
|
|
441
|
-
created_at: string;
|
|
442
|
-
updated_at: string;
|
|
443
|
-
}>;
|
|
444
418
|
update: (slug: string, params: {
|
|
445
|
-
display_name?: string | undefined;
|
|
446
|
-
description?: string | null | undefined;
|
|
447
|
-
version?: number | undefined;
|
|
448
|
-
bundle_path?: string | undefined;
|
|
449
|
-
allowed_hosts?: string[] | undefined;
|
|
450
|
-
enabled?: boolean | undefined;
|
|
451
|
-
}, options?: RequestOptions | undefined) => Promise<{
|
|
452
|
-
[x: string]: unknown;
|
|
453
|
-
id: number;
|
|
454
|
-
name: string;
|
|
455
|
-
display_name: string;
|
|
456
|
-
description: string | null;
|
|
457
|
-
version: number;
|
|
458
|
-
outdated: boolean;
|
|
459
|
-
bundle_path: string;
|
|
460
419
|
enabled: boolean;
|
|
461
|
-
|
|
462
|
-
resource_collection_id: number;
|
|
463
|
-
bundle_hash: string | null;
|
|
464
|
-
created_at: string;
|
|
465
|
-
updated_at: string;
|
|
466
|
-
}>;
|
|
467
|
-
replaceBundle: (slug: string, bundle: string, options?: RequestOptions | undefined) => Promise<{
|
|
420
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
468
421
|
[x: string]: unknown;
|
|
469
422
|
id: number;
|
|
470
423
|
name: string;
|
|
@@ -480,8 +433,38 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
480
433
|
created_at: string;
|
|
481
434
|
updated_at: string;
|
|
482
435
|
}>;
|
|
483
|
-
|
|
484
|
-
|
|
436
|
+
generateSchema: (options?: RequestOptions | undefined) => Promise<{
|
|
437
|
+
path: string;
|
|
438
|
+
contents: string;
|
|
439
|
+
}[]>;
|
|
440
|
+
generateQueries: (params: {
|
|
441
|
+
collection: string;
|
|
442
|
+
queries: Record<string, {
|
|
443
|
+
entityId: string;
|
|
444
|
+
query: {
|
|
445
|
+
stages: [{
|
|
446
|
+
[x: string]: unknown;
|
|
447
|
+
}];
|
|
448
|
+
};
|
|
449
|
+
}>;
|
|
450
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
451
|
+
path: string;
|
|
452
|
+
contents: string;
|
|
453
|
+
}[]>;
|
|
454
|
+
generateActions: (params: {
|
|
455
|
+
collection: string;
|
|
456
|
+
actions: Record<string, {
|
|
457
|
+
entityId: string;
|
|
458
|
+
kind: "row/create" | "row/update" | "row/delete";
|
|
459
|
+
table: {
|
|
460
|
+
[x: string]: unknown;
|
|
461
|
+
id: number;
|
|
462
|
+
};
|
|
463
|
+
}>;
|
|
464
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
465
|
+
path: string;
|
|
466
|
+
contents: string;
|
|
467
|
+
}[]>;
|
|
485
468
|
};
|
|
486
469
|
database: {
|
|
487
470
|
list: (params?: DatabaseListParams, options?: RequestOptions) => Promise<ListResult<Database>>;
|
|
@@ -1533,7 +1516,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
1533
1516
|
listRuns: (params?: ReplacementRunListParams | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
|
|
1534
1517
|
[x: string]: unknown;
|
|
1535
1518
|
id: number;
|
|
1536
|
-
status: "
|
|
1519
|
+
status: "pending" | "started" | "succeeded" | "failed" | "canceled" | "timeout";
|
|
1537
1520
|
is_active: true | null;
|
|
1538
1521
|
source_entity_type: "card" | "table" | "transform";
|
|
1539
1522
|
source_entity_id: number;
|
|
@@ -1548,7 +1531,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
1548
1531
|
getRun: (id: number, options?: RequestOptions | undefined) => Promise<{
|
|
1549
1532
|
[x: string]: unknown;
|
|
1550
1533
|
id: number;
|
|
1551
|
-
status: "
|
|
1534
|
+
status: "pending" | "started" | "succeeded" | "failed" | "canceled" | "timeout";
|
|
1552
1535
|
is_active: true | null;
|
|
1553
1536
|
source_entity_type: "card" | "table" | "transform";
|
|
1554
1537
|
source_entity_id: number;
|
|
@@ -1663,7 +1646,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
1663
1646
|
db_id: number;
|
|
1664
1647
|
schema: string | null;
|
|
1665
1648
|
entity_type: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null;
|
|
1666
|
-
data_layer: "
|
|
1649
|
+
data_layer: "hidden" | "final" | "internal" | "gold" | "silver" | "bronze" | "copper" | null;
|
|
1667
1650
|
estimated_row_count: number | null;
|
|
1668
1651
|
active: boolean;
|
|
1669
1652
|
visibility_type?: "hidden" | "technical" | "cruft" | null | undefined;
|
|
@@ -1703,8 +1686,8 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
1703
1686
|
show_in_getting_started?: boolean | undefined;
|
|
1704
1687
|
field_order?: "database" | "custom" | "alphabetical" | "smart" | undefined;
|
|
1705
1688
|
data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
|
|
1706
|
-
data_source?: "
|
|
1707
|
-
data_layer?: "
|
|
1689
|
+
data_source?: "upload" | "transform" | "unknown" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
|
|
1690
|
+
data_layer?: "hidden" | "final" | "internal" | "gold" | "silver" | "bronze" | "copper" | null | undefined;
|
|
1708
1691
|
owner_email?: string | null | undefined;
|
|
1709
1692
|
owner_user_id?: number | null | undefined;
|
|
1710
1693
|
collection_id?: number | undefined;
|
|
@@ -1718,7 +1701,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
1718
1701
|
db_id: number;
|
|
1719
1702
|
schema: string | null;
|
|
1720
1703
|
entity_type: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null;
|
|
1721
|
-
data_layer: "
|
|
1704
|
+
data_layer: "hidden" | "final" | "internal" | "gold" | "silver" | "bronze" | "copper" | null;
|
|
1722
1705
|
estimated_row_count: number | null;
|
|
1723
1706
|
active: boolean;
|
|
1724
1707
|
visibility_type?: "hidden" | "technical" | "cruft" | null | undefined;
|
|
@@ -1756,8 +1739,8 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
1756
1739
|
schema_ids?: string[] | undefined;
|
|
1757
1740
|
table_ids?: number[] | undefined;
|
|
1758
1741
|
data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
|
|
1759
|
-
data_source?: "
|
|
1760
|
-
data_layer?: "
|
|
1742
|
+
data_source?: "upload" | "transform" | "unknown" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
|
|
1743
|
+
data_layer?: "hidden" | "final" | "internal" | null | undefined;
|
|
1761
1744
|
entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null | undefined;
|
|
1762
1745
|
owner_email?: string | null | undefined;
|
|
1763
1746
|
owner_user_id?: number | null | undefined;
|
|
@@ -1767,8 +1750,8 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
1767
1750
|
schema_ids?: string[] | undefined;
|
|
1768
1751
|
table_ids?: number[] | undefined;
|
|
1769
1752
|
data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
|
|
1770
|
-
data_source?: "
|
|
1771
|
-
data_layer?: "
|
|
1753
|
+
data_source?: "upload" | "transform" | "unknown" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
|
|
1754
|
+
data_layer?: "hidden" | "final" | "internal" | null | undefined;
|
|
1772
1755
|
entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null | undefined;
|
|
1773
1756
|
owner_email?: string | null | undefined;
|
|
1774
1757
|
owner_user_id?: number | null | undefined;
|
|
@@ -1896,7 +1879,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
1896
1879
|
id: number;
|
|
1897
1880
|
transform_id: number;
|
|
1898
1881
|
run_method: "manual" | "cron";
|
|
1899
|
-
status: "
|
|
1882
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
|
|
1900
1883
|
start_time: string;
|
|
1901
1884
|
message: string | null;
|
|
1902
1885
|
user_id: number | null;
|
|
@@ -1977,7 +1960,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
1977
1960
|
id: number;
|
|
1978
1961
|
transform_id: number;
|
|
1979
1962
|
run_method: "manual" | "cron";
|
|
1980
|
-
status: "
|
|
1963
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
|
|
1981
1964
|
start_time: string;
|
|
1982
1965
|
message: string | null;
|
|
1983
1966
|
user_id: number | null;
|
|
@@ -2127,7 +2110,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2127
2110
|
id: number;
|
|
2128
2111
|
transform_id: number;
|
|
2129
2112
|
run_method: "manual" | "cron";
|
|
2130
|
-
status: "
|
|
2113
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
|
|
2131
2114
|
start_time: string;
|
|
2132
2115
|
message: string | null;
|
|
2133
2116
|
user_id: number | null;
|
|
@@ -2277,7 +2260,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2277
2260
|
id: number;
|
|
2278
2261
|
transform_id: number;
|
|
2279
2262
|
run_method: "manual" | "cron";
|
|
2280
|
-
status: "
|
|
2263
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
|
|
2281
2264
|
start_time: string;
|
|
2282
2265
|
message: string | null;
|
|
2283
2266
|
user_id: number | null;
|
|
@@ -2360,7 +2343,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2360
2343
|
id: number;
|
|
2361
2344
|
transform_id: number;
|
|
2362
2345
|
run_method: "manual" | "cron";
|
|
2363
|
-
status: "
|
|
2346
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
|
|
2364
2347
|
start_time: string;
|
|
2365
2348
|
message: string | null;
|
|
2366
2349
|
user_id: number | null;
|
|
@@ -2374,7 +2357,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2374
2357
|
id: number;
|
|
2375
2358
|
transform_id: number | null;
|
|
2376
2359
|
run_method: "manual" | "cron";
|
|
2377
|
-
status: "
|
|
2360
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
|
|
2378
2361
|
is_active: boolean | null;
|
|
2379
2362
|
start_time: string;
|
|
2380
2363
|
message: string | null;
|
|
@@ -2386,7 +2369,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2386
2369
|
id: number;
|
|
2387
2370
|
transform_id: number | null;
|
|
2388
2371
|
run_method: "manual" | "cron";
|
|
2389
|
-
status: "
|
|
2372
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
|
|
2390
2373
|
is_active: boolean | null;
|
|
2391
2374
|
start_time: string;
|
|
2392
2375
|
message: string | null;
|
|
@@ -2402,7 +2385,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2402
2385
|
direction: "upstream" | "downstream" | null;
|
|
2403
2386
|
transform_count: number | null;
|
|
2404
2387
|
run_method: "manual" | "cron" | null;
|
|
2405
|
-
status: "
|
|
2388
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
|
|
2406
2389
|
is_active: boolean | null;
|
|
2407
2390
|
start_time: string;
|
|
2408
2391
|
message: string | null;
|
|
@@ -2426,7 +2409,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2426
2409
|
id: number;
|
|
2427
2410
|
transform_id: number | null;
|
|
2428
2411
|
run_method: "manual" | "cron";
|
|
2429
|
-
status: "
|
|
2412
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
|
|
2430
2413
|
is_active: boolean | null;
|
|
2431
2414
|
start_time: string;
|
|
2432
2415
|
message: string | null;
|
|
@@ -2442,7 +2425,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2442
2425
|
id: number;
|
|
2443
2426
|
transform_id: number | null;
|
|
2444
2427
|
run_method: "manual" | "cron";
|
|
2445
|
-
status: "
|
|
2428
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
|
|
2446
2429
|
is_active: boolean | null;
|
|
2447
2430
|
start_time: string;
|
|
2448
2431
|
message: string | null;
|
|
@@ -2682,7 +2665,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2682
2665
|
id: number;
|
|
2683
2666
|
job_id: number;
|
|
2684
2667
|
run_method: "manual" | "cron";
|
|
2685
|
-
status: "
|
|
2668
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout";
|
|
2686
2669
|
start_time: string;
|
|
2687
2670
|
message: string | null;
|
|
2688
2671
|
created_at: string;
|
|
@@ -2712,7 +2695,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2712
2695
|
id: number;
|
|
2713
2696
|
job_id: number;
|
|
2714
2697
|
run_method: "manual" | "cron";
|
|
2715
|
-
status: "
|
|
2698
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout";
|
|
2716
2699
|
start_time: string;
|
|
2717
2700
|
message: string | null;
|
|
2718
2701
|
created_at: string;
|
|
@@ -2749,7 +2732,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2749
2732
|
id: number;
|
|
2750
2733
|
job_id: number;
|
|
2751
2734
|
run_method: "manual" | "cron";
|
|
2752
|
-
status: "
|
|
2735
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout";
|
|
2753
2736
|
start_time: string;
|
|
2754
2737
|
message: string | null;
|
|
2755
2738
|
created_at: string;
|
|
@@ -2787,7 +2770,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2787
2770
|
id: number;
|
|
2788
2771
|
job_id: number;
|
|
2789
2772
|
run_method: "manual" | "cron";
|
|
2790
|
-
status: "
|
|
2773
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout";
|
|
2791
2774
|
start_time: string;
|
|
2792
2775
|
message: string | null;
|
|
2793
2776
|
created_at: string;
|
|
@@ -2878,7 +2861,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
2878
2861
|
id: number;
|
|
2879
2862
|
transform_id: number;
|
|
2880
2863
|
run_method: "manual" | "cron";
|
|
2881
|
-
status: "
|
|
2864
|
+
status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
|
|
2882
2865
|
start_time: string;
|
|
2883
2866
|
message: string | null;
|
|
2884
2867
|
user_id: number | null;
|
|
@@ -3314,7 +3297,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
|
|
|
3314
3297
|
delete: (id: number, options?: RequestOptions | undefined) => Promise<void>;
|
|
3315
3298
|
run: (id: number, options?: RequestOptions | undefined) => Promise<{
|
|
3316
3299
|
[x: string]: unknown;
|
|
3317
|
-
status: "
|
|
3300
|
+
status: "error" | "failed" | "passed";
|
|
3318
3301
|
expectations: ({
|
|
3319
3302
|
[x: string]: unknown;
|
|
3320
3303
|
name: string;
|
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-CQkS1030.js";
|
|
2
2
|
export { MetabaseClient, createClient };
|
package/dist/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as createTransport } from "./transport-
|
|
1
|
+
import { r as createTransport } from "./transport-D52WFGBR.js";
|
|
2
2
|
import { apiKeyResource } from "./resources/api-key.js";
|
|
3
3
|
import { cardResource } from "./resources/card.js";
|
|
4
4
|
import { collectionResource } from "./resources/collection.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as RequestOptions, h as Transport } from "./transport-
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-CM-eJat3.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-CPjKDJ2m.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-kN2oYenF.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/resources/collection.d.ts
|
|
7
7
|
interface CollectionListParams {
|
|
@@ -178,7 +178,6 @@ declare const CollectionItem: z.ZodObject<{
|
|
|
178
178
|
}, z.core.$loose>;
|
|
179
179
|
type CollectionItem = z.infer<typeof CollectionItem>;
|
|
180
180
|
declare const CollectionItemCompact: z.ZodObject<{
|
|
181
|
-
id: z.ZodNumber;
|
|
182
181
|
model: z.ZodEnum<{
|
|
183
182
|
collection: "collection";
|
|
184
183
|
card: "card";
|
|
@@ -197,6 +196,7 @@ declare const CollectionItemCompact: z.ZodObject<{
|
|
|
197
196
|
"indexed-entity": "indexed-entity";
|
|
198
197
|
action: "action";
|
|
199
198
|
}>;
|
|
199
|
+
id: z.ZodNumber;
|
|
200
200
|
name: z.ZodString;
|
|
201
201
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
202
202
|
archived: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -196,8 +196,8 @@ declare const Dashboard: z.ZodObject<{
|
|
|
196
196
|
type: z.ZodEnum<{
|
|
197
197
|
number: "number";
|
|
198
198
|
boolean: "boolean";
|
|
199
|
-
id: "id";
|
|
200
199
|
date: "date";
|
|
200
|
+
id: "id";
|
|
201
201
|
text: "text";
|
|
202
202
|
"temporal-unit": "temporal-unit";
|
|
203
203
|
"date/single": "date/single";
|
|
@@ -326,8 +326,8 @@ declare const DashboardDetail: z.ZodObject<{
|
|
|
326
326
|
type: z.ZodEnum<{
|
|
327
327
|
number: "number";
|
|
328
328
|
boolean: "boolean";
|
|
329
|
-
id: "id";
|
|
330
329
|
date: "date";
|
|
330
|
+
id: "id";
|
|
331
331
|
text: "text";
|
|
332
332
|
"temporal-unit": "temporal-unit";
|
|
333
333
|
"date/single": "date/single";
|
|
@@ -530,8 +530,8 @@ declare const DashboardCreateInput: z.ZodObject<{
|
|
|
530
530
|
type: z.ZodEnum<{
|
|
531
531
|
number: "number";
|
|
532
532
|
boolean: "boolean";
|
|
533
|
-
id: "id";
|
|
534
533
|
date: "date";
|
|
534
|
+
id: "id";
|
|
535
535
|
text: "text";
|
|
536
536
|
"temporal-unit": "temporal-unit";
|
|
537
537
|
"date/single": "date/single";
|
|
@@ -662,8 +662,8 @@ declare const DashboardUpdateInput: z.ZodObject<{
|
|
|
662
662
|
type: z.ZodEnum<{
|
|
663
663
|
number: "number";
|
|
664
664
|
boolean: "boolean";
|
|
665
|
-
id: "id";
|
|
666
665
|
date: "date";
|
|
666
|
+
id: "id";
|
|
667
667
|
text: "text";
|
|
668
668
|
"temporal-unit": "temporal-unit";
|
|
669
669
|
"date/single": "date/single";
|
|
@@ -821,8 +821,8 @@ declare const DashboardCopy: z.ZodObject<{
|
|
|
821
821
|
type: z.ZodEnum<{
|
|
822
822
|
number: "number";
|
|
823
823
|
boolean: "boolean";
|
|
824
|
-
id: "id";
|
|
825
824
|
date: "date";
|
|
825
|
+
id: "id";
|
|
826
826
|
text: "text";
|
|
827
827
|
"temporal-unit": "temporal-unit";
|
|
828
828
|
"date/single": "date/single";
|