@metabase/client 0.0.0-stage → 0.1.1
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 +28 -0
- package/LICENSE +661 -0
- package/README.md +490 -2
- package/dist/api-key-DJeN1-7G.d.ts +46 -0
- package/dist/auth/credential.d.ts +2 -0
- package/dist/auth/credential.js +61 -0
- package/dist/auth/oauth-login.d.ts +2 -0
- package/dist/auth/oauth-login.js +2 -0
- package/dist/auth/oauth-session.d.ts +2 -0
- package/dist/auth/oauth-session.js +31 -0
- package/dist/card-BxBzr5Uj.d.ts +1392 -0
- package/dist/card-DN0sLkCG.d.ts +33 -0
- package/dist/client-DdXLlH1B.d.ts +3380 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +99 -0
- package/dist/collection-DGnTvD6R.d.ts +294 -0
- package/dist/collection-fFahL-ub.d.ts +53 -0
- package/dist/content-translation-zfUkE_OG.d.ts +8 -0
- package/dist/credential-6aOEGqMH.d.ts +30 -0
- package/dist/cron-DThzerR6.d.ts +9 -0
- package/dist/csv-upload--K35QedP.d.ts +8 -0
- package/dist/dashboard-CM7RmNeE.d.ts +38 -0
- package/dist/dashboard-DtLXVgtf.d.ts +978 -0
- package/dist/data-action-CkXVrOUH.d.ts +97 -0
- package/dist/data-app-CqP5_fpB.d.ts +76 -0
- package/dist/database-B0JNZjDN.d.ts +27 -0
- package/dist/database-BxqDmfcj.d.ts +997 -0
- package/dist/dataset-BBNGPVec.d.ts +4144 -0
- package/dist/dataset-BUirJ1rO.d.ts +23 -0
- package/dist/dependency-CzpXmeu7.d.ts +299 -0
- package/dist/dependency-arB8Cr2H.d.ts +879 -0
- package/dist/document-tLd6pYWe.d.ts +115 -0
- package/dist/domain/api-key.d.ts +2 -0
- package/dist/domain/api-key.js +31 -0
- package/dist/domain/card.d.ts +2 -0
- package/dist/domain/card.js +140 -0
- package/dist/domain/collection.d.ts +2 -0
- package/dist/domain/collection.js +137 -0
- package/dist/domain/content-translation.d.ts +2 -0
- package/dist/domain/content-translation.js +5 -0
- package/dist/domain/cron.d.ts +2 -0
- package/dist/domain/cron.js +5 -0
- package/dist/domain/dashboard.d.ts +2 -0
- package/dist/domain/dashboard.js +211 -0
- package/dist/domain/data-action.d.ts +2 -0
- package/dist/domain/data-action.js +91 -0
- package/dist/domain/data-app.d.ts +2 -0
- package/dist/domain/data-app.js +52 -0
- package/dist/domain/database.d.ts +2 -0
- package/dist/domain/database.js +56 -0
- package/dist/domain/dataset.d.ts +2 -0
- package/dist/domain/dataset.js +56 -0
- package/dist/domain/dependency.d.ts +2 -0
- package/dist/domain/dependency.js +168 -0
- package/dist/domain/document.d.ts +2 -0
- package/dist/domain/document.js +94 -0
- package/dist/domain/eid-translation.d.ts +2 -0
- package/dist/domain/eid-translation.js +36 -0
- package/dist/domain/embedding.d.ts +2 -0
- package/dist/domain/embedding.js +9 -0
- package/dist/domain/erd.d.ts +2 -0
- package/dist/domain/erd.js +45 -0
- package/dist/domain/field.d.ts +2 -0
- package/dist/domain/field.js +274 -0
- package/dist/domain/git-sync.d.ts +2 -0
- package/dist/domain/git-sync.js +147 -0
- package/dist/domain/glossary.d.ts +2 -0
- package/dist/domain/glossary.js +30 -0
- package/dist/domain/library.d.ts +2 -0
- package/dist/domain/library.js +89 -0
- package/dist/domain/measure.d.ts +2 -0
- package/dist/domain/measure.js +43 -0
- package/dist/domain/metric.d.ts +2 -0
- package/dist/domain/metric.js +139 -0
- package/dist/domain/moderation-review.d.ts +2 -0
- package/dist/domain/moderation-review.js +31 -0
- package/dist/domain/notification.d.ts +2 -0
- package/dist/domain/notification.js +143 -0
- package/dist/domain/parameter.d.ts +2 -0
- package/dist/domain/parameter.js +109 -0
- package/dist/domain/permission.d.ts +2 -0
- package/dist/domain/permission.js +36 -0
- package/dist/domain/pulse.d.ts +2 -0
- package/dist/domain/pulse.js +140 -0
- package/dist/domain/query.d.ts +2 -0
- package/dist/domain/query.js +13 -0
- package/dist/domain/replacement.d.ts +2 -0
- package/dist/domain/replacement.js +93 -0
- package/dist/domain/revision.d.ts +2 -0
- package/dist/domain/revision.js +90 -0
- package/dist/domain/search.d.ts +2 -0
- package/dist/domain/search.js +63 -0
- package/dist/domain/segment.d.ts +2 -0
- package/dist/domain/segment.js +46 -0
- package/dist/domain/session-properties.d.ts +2 -0
- package/dist/domain/session-properties.js +14 -0
- package/dist/domain/setting.d.ts +2 -0
- package/dist/domain/setting.js +22 -0
- package/dist/domain/setup.d.ts +2 -0
- package/dist/domain/setup.js +21 -0
- package/dist/domain/snippet.d.ts +2 -0
- package/dist/domain/snippet.js +38 -0
- package/dist/domain/table.d.ts +2 -0
- package/dist/domain/table.js +187 -0
- package/dist/domain/text.d.ts +5 -0
- package/dist/domain/text.js +6 -0
- package/dist/domain/timeline.d.ts +2 -0
- package/dist/domain/timeline.js +97 -0
- package/dist/domain/transform-dag-run.d.ts +2 -0
- package/dist/domain/transform-dag-run.js +19 -0
- package/dist/domain/transform-inspector.d.ts +2 -0
- package/dist/domain/transform-inspector.js +142 -0
- package/dist/domain/transform-job.d.ts +2 -0
- package/dist/domain/transform-job.js +115 -0
- package/dist/domain/transform-python.d.ts +2 -0
- package/dist/domain/transform-python.js +51 -0
- package/dist/domain/transform-tag.d.ts +2 -0
- package/dist/domain/transform-tag.js +17 -0
- package/dist/domain/transform-test.d.ts +2 -0
- package/dist/domain/transform-test.js +176 -0
- package/dist/domain/transform.d.ts +2 -0
- package/dist/domain/transform.js +304 -0
- package/dist/domain/upload.d.ts +2 -0
- package/dist/domain/upload.js +13 -0
- package/dist/domain/user.d.ts +2 -0
- package/dist/domain/user.js +16 -0
- package/dist/eid-translation-CH6NPWd-.d.ts +143 -0
- package/dist/embedding-oU3gqfgX.d.ts +10 -0
- package/dist/erd-BdeFEeSy.d.ts +842 -0
- package/dist/erd-CbV7xvAc.d.ts +51 -0
- package/dist/errors-DdMlaXqq.js +330 -0
- package/dist/errors.d.ts +2 -0
- package/dist/errors.js +189 -0
- package/dist/features-SMSfJhB6.d.ts +295 -0
- package/dist/field-D1Pfk-0S.d.ts +50 -0
- package/dist/field-p9Rme2zB.d.ts +2549 -0
- package/dist/git-sync-BTf1aYHr.d.ts +205 -0
- package/dist/git-sync-C99SVdJ9.d.ts +258 -0
- package/dist/glossary-CHK3elPj.d.ts +35 -0
- package/dist/glossary-DFvnz-E5.d.ts +15 -0
- package/dist/http/errors.d.ts +2 -0
- package/dist/http/errors.js +2 -0
- package/dist/http/oauth.d.ts +2 -0
- package/dist/http/oauth.js +201 -0
- package/dist/http/retry.d.ts +19 -0
- package/dist/http/retry.js +33 -0
- package/dist/http/transport.d.ts +2 -0
- package/dist/http/transport.js +2 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +64 -0
- package/dist/input-gate-registry-Dai7SfXb.js +14 -0
- package/dist/input-gates-DwKoTJVQ.d.ts +28 -0
- package/dist/json-BksZpXDC.d.ts +19 -0
- package/dist/json-pointer.d.ts +5 -0
- package/dist/json-pointer.js +10 -0
- package/dist/json.d.ts +2 -0
- package/dist/json.js +44 -0
- package/dist/known-range-DTOBgTEC.d.ts +7 -0
- package/dist/library-B9pEq7qP.d.ts +230 -0
- package/dist/list-BT_bBm9Z.d.ts +7 -0
- package/dist/list.d.ts +2 -0
- package/dist/list.js +1 -0
- package/dist/measure-CgH14YQZ.d.ts +44 -0
- package/dist/measure-lPz8qnwz.d.ts +108 -0
- package/dist/metric-DcYloqOQ.d.ts +2655 -0
- package/dist/moderation-review-B4RUTZ6_.d.ts +56 -0
- package/dist/network-error-5g4U1iul.js +62 -0
- package/dist/notification-Cp5GJErS.d.ts +22 -0
- package/dist/notification-D1MThyKE.d.ts +443 -0
- package/dist/oauth-C4ordeoJ.d.ts +59 -0
- package/dist/oauth-login-CJsT_3EE.d.ts +19 -0
- package/dist/oauth-login-D734Jvbq.js +179 -0
- package/dist/oauth-session-BlIlcd8Q.d.ts +6 -0
- package/dist/paginate-COuL0Gzl.d.ts +24 -0
- package/dist/paginate.d.ts +2 -0
- package/dist/paginate.js +49 -0
- package/dist/parameter-ak-J-IOj.d.ts +190 -0
- package/dist/permission-BnCQw5Kp.d.ts +149 -0
- package/dist/poll-CIwnee7h.d.ts +15 -0
- package/dist/poll.d.ts +2 -0
- package/dist/poll.js +47 -0
- package/dist/predicates.d.ts +10 -0
- package/dist/predicates.js +18 -0
- package/dist/pulse-0LG3K6qO.d.ts +598 -0
- package/dist/pulse-BzKmz3Yn.d.ts +18 -0
- package/dist/query-Xsin530u.d.ts +23 -0
- package/dist/refusal-B9aeHMc9.js +130 -0
- package/dist/replacement-BGyggp-G.d.ts +2467 -0
- package/dist/replacement-CVebCuNp.d.ts +128 -0
- package/dist/requirement-check-glU7wqhQ.d.ts +17 -0
- package/dist/requirements-Dx_ZVzl7.d.ts +227 -0
- package/dist/resources/api-key.d.ts +11 -0
- package/dist/resources/api-key.js +35 -0
- package/dist/resources/card.d.ts +2 -0
- package/dist/resources/card.js +103 -0
- package/dist/resources/collection.d.ts +2 -0
- package/dist/resources/collection.js +134 -0
- package/dist/resources/content-translation.d.ts +11 -0
- package/dist/resources/content-translation.js +27 -0
- package/dist/resources/csv-upload.d.ts +2 -0
- package/dist/resources/csv-upload.js +9 -0
- package/dist/resources/dashboard.d.ts +2 -0
- package/dist/resources/dashboard.js +221 -0
- package/dist/resources/data-action.d.ts +60 -0
- package/dist/resources/data-action.js +79 -0
- package/dist/resources/data-app.d.ts +112 -0
- package/dist/resources/data-app.js +75 -0
- package/dist/resources/database.d.ts +2 -0
- package/dist/resources/database.js +103 -0
- package/dist/resources/dataset.d.ts +2 -0
- package/dist/resources/dataset.js +81 -0
- package/dist/resources/dependency.d.ts +2 -0
- package/dist/resources/dependency.js +156 -0
- package/dist/resources/document.d.ts +55 -0
- package/dist/resources/document.js +60 -0
- package/dist/resources/eid-translation.d.ts +8 -0
- package/dist/resources/eid-translation.js +19 -0
- package/dist/resources/erd.d.ts +2 -0
- package/dist/resources/erd.js +26 -0
- package/dist/resources/field.d.ts +2 -0
- package/dist/resources/field.js +99 -0
- package/dist/resources/git-sync.d.ts +2 -0
- package/dist/resources/git-sync.js +362 -0
- package/dist/resources/glossary.d.ts +2 -0
- package/dist/resources/glossary.js +51 -0
- package/dist/resources/library.d.ts +85 -0
- package/dist/resources/library.js +90 -0
- package/dist/resources/measure.d.ts +2 -0
- package/dist/resources/measure.js +57 -0
- package/dist/resources/metric.d.ts +2 -0
- package/dist/resources/metric.js +50 -0
- package/dist/resources/moderation-review.d.ts +23 -0
- package/dist/resources/moderation-review.js +24 -0
- package/dist/resources/notification.d.ts +2 -0
- package/dist/resources/notification.js +93 -0
- package/dist/resources/optional-parsed.d.ts +7 -0
- package/dist/resources/optional-parsed.js +14 -0
- package/dist/resources/permission.d.ts +10 -0
- package/dist/resources/permission.js +31 -0
- package/dist/resources/pivot-export.d.ts +10 -0
- package/dist/resources/pivot-export.js +16 -0
- package/dist/resources/pulse.d.ts +2 -0
- package/dist/resources/pulse.js +76 -0
- package/dist/resources/replacement.d.ts +2 -0
- package/dist/resources/replacement.js +82 -0
- package/dist/resources/request-body.d.ts +9 -0
- package/dist/resources/request-body.js +13 -0
- package/dist/resources/revision.d.ts +70 -0
- package/dist/resources/revision.js +46 -0
- package/dist/resources/search.d.ts +2 -0
- package/dist/resources/search.js +78 -0
- package/dist/resources/segment.d.ts +2 -0
- package/dist/resources/segment.js +55 -0
- package/dist/resources/setting.d.ts +11 -0
- package/dist/resources/setting.js +43 -0
- package/dist/resources/setup.d.ts +8 -0
- package/dist/resources/setup.js +18 -0
- package/dist/resources/snippet.d.ts +2 -0
- package/dist/resources/snippet.js +52 -0
- package/dist/resources/table.d.ts +2 -0
- package/dist/resources/table.js +274 -0
- package/dist/resources/timeline-event.d.ts +12 -0
- package/dist/resources/timeline-event.js +51 -0
- package/dist/resources/timeline.d.ts +2 -0
- package/dist/resources/timeline.js +82 -0
- package/dist/resources/transform-dag-run.d.ts +22 -0
- package/dist/resources/transform-dag-run.js +32 -0
- package/dist/resources/transform-inspector.d.ts +214 -0
- package/dist/resources/transform-inspector.js +47 -0
- package/dist/resources/transform-job.d.ts +2 -0
- package/dist/resources/transform-job.js +90 -0
- package/dist/resources/transform-python.d.ts +59 -0
- package/dist/resources/transform-python.js +57 -0
- package/dist/resources/transform-tag.d.ts +35 -0
- package/dist/resources/transform-tag.js +47 -0
- package/dist/resources/transform-test.d.ts +2 -0
- package/dist/resources/transform-test.js +75 -0
- package/dist/resources/transform.d.ts +2 -0
- package/dist/resources/transform.js +227 -0
- package/dist/resources/upload.d.ts +2 -0
- package/dist/resources/upload.js +48 -0
- package/dist/resources/user.d.ts +8 -0
- package/dist/resources/user.js +11 -0
- package/dist/revision-Dyl-8p7d.d.ts +106 -0
- package/dist/search-Cm5IxKss.d.ts +92 -0
- package/dist/search-Cten2h0I.d.ts +26 -0
- package/dist/segment-CbAgVO-5.d.ts +47 -0
- package/dist/segment-DQLX6r1E.d.ts +16 -0
- package/dist/session-properties-COtlxAcK.d.ts +15 -0
- package/dist/setting-DXuQGXGF.d.ts +25 -0
- package/dist/setup-JqcJ2unJ.d.ts +26 -0
- package/dist/signal.d.ts +8 -0
- package/dist/signal.js +25 -0
- package/dist/snippet-C_Ilx7tR.d.ts +41 -0
- package/dist/snippet-Djn0rL21.d.ts +16 -0
- package/dist/table-CDZbLNow.d.ts +176 -0
- package/dist/table-Od6uvDVW.d.ts +3234 -0
- package/dist/tag-qzjGGci8.d.ts +48 -0
- package/dist/timeline-BK45hy-h.d.ts +218 -0
- package/dist/timeline-BTs6fuRp.d.ts +21 -0
- package/dist/transform-C5thnJwW.d.ts +559 -0
- package/dist/transform-WASQAXeA.d.ts +652 -0
- package/dist/transform-dag-run-BgZwv1yx.d.ts +49 -0
- package/dist/transform-inspector-CMCh8WKV.d.ts +374 -0
- package/dist/transform-job-D8jTQtdX.d.ts +98 -0
- package/dist/transform-job-DmTwKxhc.d.ts +237 -0
- package/dist/transform-python-DtL3xxMj.d.ts +101 -0
- package/dist/transform-tag-C6j5EUkX.d.ts +25 -0
- package/dist/transform-test-CR_i54IV.d.ts +412 -0
- package/dist/transform-test-CeMzDpUC.d.ts +346 -0
- package/dist/transport-BsXqRujn.d.ts +476 -0
- package/dist/transport-HP7cyo9N.js +397 -0
- package/dist/upload-B5YjVkSW.d.ts +12 -0
- package/dist/upload-UPfZFdbH.d.ts +22 -0
- package/dist/url-CI0pxHOc.d.ts +7 -0
- package/dist/url.d.ts +2 -0
- package/dist/url.js +34 -0
- package/dist/user-Sqqv7rqh.d.ts +18 -0
- package/dist/version/capability-error.d.ts +2 -0
- package/dist/version/capability-error.js +42 -0
- package/dist/version/features.d.ts +2 -0
- package/dist/version/features.js +171 -0
- package/dist/version/input-gates.d.ts +2 -0
- package/dist/version/input-gates.js +13 -0
- package/dist/version/known-range.d.ts +2 -0
- package/dist/version/known-range.js +7 -0
- package/dist/version/probe.d.ts +2 -0
- package/dist/version/probe.js +30 -0
- package/dist/version/profile.d.ts +2 -0
- package/dist/version/profile.js +64 -0
- package/dist/version/requirement-check.d.ts +2 -0
- package/dist/version/requirement-check.js +62 -0
- package/dist/version/requirements.d.ts +2 -0
- package/dist/version/requirements.js +229 -0
- package/dist/version/tag.d.ts +2 -0
- package/dist/version/tag.js +52 -0
- package/package.json +66 -4
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/search.d.ts
|
|
3
|
+
declare const SEARCH_MODELS: readonly ["card", "dataset", "metric", "dashboard", "collection", "database", "table", "segment", "measure", "document", "exploration", "action", "transform", "indexed-entity"];
|
|
4
|
+
declare const SearchModel: z.ZodEnum<{
|
|
5
|
+
transform: "transform";
|
|
6
|
+
collection: "collection";
|
|
7
|
+
card: "card";
|
|
8
|
+
dashboard: "dashboard";
|
|
9
|
+
database: "database";
|
|
10
|
+
dataset: "dataset";
|
|
11
|
+
document: "document";
|
|
12
|
+
metric: "metric";
|
|
13
|
+
measure: "measure";
|
|
14
|
+
segment: "segment";
|
|
15
|
+
table: "table";
|
|
16
|
+
exploration: "exploration";
|
|
17
|
+
"indexed-entity": "indexed-entity";
|
|
18
|
+
action: "action";
|
|
19
|
+
}>;
|
|
20
|
+
type SearchModel = z.infer<typeof SearchModel>;
|
|
21
|
+
declare const SearchResult: z.ZodObject<{
|
|
22
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
model: z.ZodEnum<{
|
|
25
|
+
transform: "transform";
|
|
26
|
+
collection: "collection";
|
|
27
|
+
card: "card";
|
|
28
|
+
dashboard: "dashboard";
|
|
29
|
+
database: "database";
|
|
30
|
+
dataset: "dataset";
|
|
31
|
+
document: "document";
|
|
32
|
+
metric: "metric";
|
|
33
|
+
measure: "measure";
|
|
34
|
+
segment: "segment";
|
|
35
|
+
table: "table";
|
|
36
|
+
exploration: "exploration";
|
|
37
|
+
"indexed-entity": "indexed-entity";
|
|
38
|
+
action: "action";
|
|
39
|
+
}>;
|
|
40
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
archived: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
+
collection: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodNull]>;
|
|
44
|
+
name: z.ZodNullable<z.ZodString>;
|
|
45
|
+
authority_level: z.ZodNullable<z.ZodString>;
|
|
46
|
+
type: z.ZodNullable<z.ZodString>;
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
|
+
result_metadata: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
49
|
+
database_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
database_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
table_schema: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
table_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
moderated_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
54
|
+
verified: "verified";
|
|
55
|
+
}>>>;
|
|
56
|
+
dashboard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
|
+
id: z.ZodNumber;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
}, z.core.$loose>>>;
|
|
60
|
+
}, z.core.$loose>;
|
|
61
|
+
type SearchResult = z.infer<typeof SearchResult>;
|
|
62
|
+
declare const SearchResultCompact: z.ZodObject<{
|
|
63
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
model: z.ZodEnum<{
|
|
67
|
+
transform: "transform";
|
|
68
|
+
collection: "collection";
|
|
69
|
+
card: "card";
|
|
70
|
+
dashboard: "dashboard";
|
|
71
|
+
database: "database";
|
|
72
|
+
dataset: "dataset";
|
|
73
|
+
document: "document";
|
|
74
|
+
metric: "metric";
|
|
75
|
+
measure: "measure";
|
|
76
|
+
segment: "segment";
|
|
77
|
+
table: "table";
|
|
78
|
+
exploration: "exploration";
|
|
79
|
+
"indexed-entity": "indexed-entity";
|
|
80
|
+
action: "action";
|
|
81
|
+
}>;
|
|
82
|
+
table_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
database_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
table_schema: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
dashboard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
86
|
+
id: z.ZodNumber;
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
}, z.core.$strip>>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
type SearchResultCompact = z.infer<typeof SearchResultCompact>;
|
|
91
|
+
//#endregion
|
|
92
|
+
export { SearchResultCompact as i, SearchModel as n, SearchResult as r, SEARCH_MODELS as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
|
|
2
|
+
import { n as SearchModel, r as SearchResult } from "./search-Cm5IxKss.js";
|
|
3
|
+
//#region src/resources/search.d.ts
|
|
4
|
+
interface SearchPage {
|
|
5
|
+
data: SearchResult[];
|
|
6
|
+
total: number;
|
|
7
|
+
}
|
|
8
|
+
interface SearchParams {
|
|
9
|
+
q?: string | undefined;
|
|
10
|
+
models?: ReadonlyArray<SearchModel> | undefined;
|
|
11
|
+
archived?: boolean | undefined;
|
|
12
|
+
limit?: number | undefined;
|
|
13
|
+
offset?: number | undefined;
|
|
14
|
+
table_db_id?: number | undefined;
|
|
15
|
+
verified?: boolean | undefined;
|
|
16
|
+
collection?: number | undefined;
|
|
17
|
+
created_by?: ReadonlyArray<number> | undefined;
|
|
18
|
+
search_native_query?: boolean | undefined;
|
|
19
|
+
include_metadata?: boolean | undefined;
|
|
20
|
+
include_dashboard_questions?: boolean | undefined;
|
|
21
|
+
}
|
|
22
|
+
declare function searchResource(transport: Transport): {
|
|
23
|
+
query: (params?: SearchParams | undefined, options?: RequestOptions | undefined) => Promise<SearchPage>;
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { SearchParams as n, searchResource as r, SearchPage as t };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/segment.d.ts
|
|
3
|
+
declare const Segment: z.ZodObject<{
|
|
4
|
+
id: z.ZodNumber;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
description: z.ZodNullable<z.ZodString>;
|
|
7
|
+
archived: z.ZodBoolean;
|
|
8
|
+
table_id: z.ZodNumber;
|
|
9
|
+
definition: z.ZodUnknown;
|
|
10
|
+
creator_id: z.ZodNumber;
|
|
11
|
+
entity_id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
show_in_getting_started: z.ZodNullable<z.ZodBoolean>;
|
|
13
|
+
caveats: z.ZodNullable<z.ZodString>;
|
|
14
|
+
points_of_interest: z.ZodNullable<z.ZodString>;
|
|
15
|
+
definition_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
created_at: z.ZodString;
|
|
17
|
+
updated_at: z.ZodString;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
type Segment = z.infer<typeof Segment>;
|
|
20
|
+
declare const SegmentCompact: z.ZodObject<{
|
|
21
|
+
id: z.ZodNumber;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
description: z.ZodNullable<z.ZodString>;
|
|
24
|
+
archived: z.ZodBoolean;
|
|
25
|
+
table_id: z.ZodNumber;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
type SegmentCompact = z.infer<typeof SegmentCompact>;
|
|
28
|
+
declare const SegmentCreateInput: z.ZodObject<{
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
table_id: z.ZodNumber;
|
|
31
|
+
definition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
32
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
|
+
type SegmentCreateInput = z.infer<typeof SegmentCreateInput>;
|
|
35
|
+
declare const SegmentUpdateInput: z.ZodObject<{
|
|
36
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
definition: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
38
|
+
revision_message: z.ZodString;
|
|
39
|
+
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
40
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
caveats: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
points_of_interest: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
show_in_getting_started: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
|
+
type SegmentUpdateInput = z.infer<typeof SegmentUpdateInput>;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { SegmentUpdateInput as i, SegmentCompact as n, SegmentCreateInput as r, Segment as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
|
|
2
|
+
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
+
import { i as SegmentUpdateInput, r as SegmentCreateInput, t as Segment } from "./segment-CbAgVO-5.js";
|
|
4
|
+
//#region src/resources/segment.d.ts
|
|
5
|
+
interface SegmentArchiveParams {
|
|
6
|
+
revision_message: string;
|
|
7
|
+
}
|
|
8
|
+
declare function segmentResource(transport: Transport): {
|
|
9
|
+
list: (options?: RequestOptions) => Promise<ListResult<Segment>>;
|
|
10
|
+
get: (id: number, options?: RequestOptions) => Promise<Segment>;
|
|
11
|
+
create: (params: SegmentCreateInput, options?: RequestOptions) => Promise<Segment>;
|
|
12
|
+
update: (id: number, params: SegmentUpdateInput, options?: RequestOptions) => Promise<Segment>;
|
|
13
|
+
archive: (id: number, params: SegmentArchiveParams, options?: RequestOptions) => Promise<Segment>;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { segmentResource as n, SegmentArchiveParams as t };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/session-properties.d.ts
|
|
3
|
+
declare const TokenFeatures: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
4
|
+
type TokenFeatures = z.infer<typeof TokenFeatures>;
|
|
5
|
+
declare const SessionProperties: z.ZodObject<{
|
|
6
|
+
version: z.ZodObject<{
|
|
7
|
+
tag: z.ZodString;
|
|
8
|
+
date: z.ZodOptional<z.ZodString>;
|
|
9
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
"token-features": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
type SessionProperties = z.infer<typeof SessionProperties>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { TokenFeatures as n, SessionProperties as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/setting.d.ts
|
|
3
|
+
declare const Setting: z.ZodObject<{
|
|
4
|
+
key: z.ZodString;
|
|
5
|
+
value: z.ZodUnknown;
|
|
6
|
+
is_env_setting: z.ZodBoolean;
|
|
7
|
+
env_name: z.ZodString;
|
|
8
|
+
description: z.ZodString;
|
|
9
|
+
default: z.ZodUnknown;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
type Setting = z.infer<typeof Setting>;
|
|
12
|
+
declare const SettingCompact: z.ZodObject<{
|
|
13
|
+
value: z.ZodUnknown;
|
|
14
|
+
key: z.ZodString;
|
|
15
|
+
is_env_setting: z.ZodBoolean;
|
|
16
|
+
env_name: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
type SettingCompact = z.infer<typeof SettingCompact>;
|
|
19
|
+
declare const SettingValue: z.ZodObject<{
|
|
20
|
+
key: z.ZodString;
|
|
21
|
+
value: z.ZodUnknown;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
type SettingValue = z.infer<typeof SettingValue>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { SettingCompact as n, SettingValue as r, Setting as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/setup.d.ts
|
|
3
|
+
declare const SetupInput: z.ZodObject<{
|
|
4
|
+
token: z.ZodString;
|
|
5
|
+
user: z.ZodObject<{
|
|
6
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
email: z.ZodString;
|
|
9
|
+
password: z.ZodString;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
prefs: z.ZodObject<{
|
|
12
|
+
site_name: z.ZodString;
|
|
13
|
+
site_locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
|
+
type SetupInput = z.infer<typeof SetupInput>;
|
|
17
|
+
declare const SetupResult: z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
}, z.core.$loose>;
|
|
20
|
+
type SetupResult = z.infer<typeof SetupResult>;
|
|
21
|
+
declare const SetupResultCompact: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
type SetupResultCompact = z.infer<typeof SetupResultCompact>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { SetupResult as n, SetupResultCompact as r, SetupInput as t };
|
package/dist/signal.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { X as MetabaseError } from "./transport-BsXqRujn.js";
|
|
2
|
+
//#region src/signal.d.ts
|
|
3
|
+
declare function combineAborts(...signals: Array<AbortSignal | undefined>): AbortSignal;
|
|
4
|
+
declare function throwIfAborted(...signals: Array<AbortSignal | undefined>): void;
|
|
5
|
+
declare function abortReason(signal: AbortSignal): MetabaseError;
|
|
6
|
+
declare function untilAborted<T>(promise: Promise<T>, signal: AbortSignal | undefined): Promise<T>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { abortReason, combineAborts, throwIfAborted, untilAborted };
|
package/dist/signal.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AbortError, MetabaseError, errorMessage } from "./errors.js";
|
|
2
|
+
//#region src/signal.ts
|
|
3
|
+
function combineAborts(...signals) {
|
|
4
|
+
return AbortSignal.any(signals.filter((signal) => signal !== void 0));
|
|
5
|
+
}
|
|
6
|
+
function throwIfAborted(...signals) {
|
|
7
|
+
for (const signal of signals) if (signal?.aborted) throw abortReason(signal);
|
|
8
|
+
}
|
|
9
|
+
function abortReason(signal) {
|
|
10
|
+
const reason = signal.reason;
|
|
11
|
+
if (reason instanceof MetabaseError) return reason;
|
|
12
|
+
if (reason instanceof Error || typeof reason === "string") return new AbortError(errorMessage(reason) || "aborted");
|
|
13
|
+
return new AbortError("aborted");
|
|
14
|
+
}
|
|
15
|
+
function untilAborted(promise, signal) {
|
|
16
|
+
if (signal === void 0) return promise;
|
|
17
|
+
throwIfAborted(signal);
|
|
18
|
+
return new Promise((resolve, reject) => {
|
|
19
|
+
const onAbort = () => reject(abortReason(signal));
|
|
20
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
21
|
+
promise.then(resolve, reject).finally(() => signal.removeEventListener("abort", onAbort));
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { abortReason, combineAborts, throwIfAborted, untilAborted };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/snippet.d.ts
|
|
3
|
+
declare const Snippet: z.ZodObject<{
|
|
4
|
+
id: z.ZodNumber;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
description: z.ZodNullable<z.ZodString>;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
archived: z.ZodBoolean;
|
|
9
|
+
collection_id: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
creator_id: z.ZodNumber;
|
|
11
|
+
entity_id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
template_tags: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
created_at: z.ZodString;
|
|
14
|
+
updated_at: z.ZodString;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
|
+
type Snippet = z.infer<typeof Snippet>;
|
|
17
|
+
declare const SnippetCompact: z.ZodObject<{
|
|
18
|
+
id: z.ZodNumber;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
description: z.ZodNullable<z.ZodString>;
|
|
21
|
+
archived: z.ZodBoolean;
|
|
22
|
+
collection_id: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
type SnippetCompact = z.infer<typeof SnippetCompact>;
|
|
25
|
+
declare const SnippetCreateInput: z.ZodObject<{
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
content: z.ZodString;
|
|
28
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
collection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
type SnippetCreateInput = z.infer<typeof SnippetCreateInput>;
|
|
32
|
+
declare const SnippetUpdateInput: z.ZodObject<{
|
|
33
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
|
+
collection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
type SnippetUpdateInput = z.infer<typeof SnippetUpdateInput>;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { SnippetUpdateInput as i, SnippetCompact as n, SnippetCreateInput as r, Snippet as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
|
|
2
|
+
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
+
import { i as SnippetUpdateInput, r as SnippetCreateInput, t as Snippet } from "./snippet-C_Ilx7tR.js";
|
|
4
|
+
//#region src/resources/snippet.d.ts
|
|
5
|
+
interface SnippetListParams {
|
|
6
|
+
archived?: boolean | undefined;
|
|
7
|
+
}
|
|
8
|
+
declare function snippetResource(transport: Transport): {
|
|
9
|
+
list: (params?: SnippetListParams, options?: RequestOptions) => Promise<ListResult<Snippet>>;
|
|
10
|
+
get: (id: number, options?: RequestOptions) => Promise<Snippet>;
|
|
11
|
+
create: (params: SnippetCreateInput, options?: RequestOptions) => Promise<Snippet>;
|
|
12
|
+
update: (id: number, params: SnippetUpdateInput, options?: RequestOptions) => Promise<Snippet>;
|
|
13
|
+
archive: (id: number, options?: RequestOptions) => Promise<Snippet>;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { snippetResource as n, SnippetListParams as t };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
|
|
2
|
+
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
+
import { S as TableSchemaSyncResult, a as Table, g as TableForeignKey, h as TableFieldValuesResult, p as TableDataSource, u as TableDataLayer, y as TableQueryMetadata } from "./table-Od6uvDVW.js";
|
|
4
|
+
import { r as UploadUpdateResult } from "./upload-UPfZFdbH.js";
|
|
5
|
+
import { t as CsvFile } from "./csv-upload--K35QedP.js";
|
|
6
|
+
//#region src/resources/table.d.ts
|
|
7
|
+
interface TableListParams {
|
|
8
|
+
term?: string | undefined;
|
|
9
|
+
"visibility-type"?: string | undefined;
|
|
10
|
+
"data-layer"?: TableDataLayer | undefined;
|
|
11
|
+
"data-source"?: TableDataSource | undefined;
|
|
12
|
+
"owner-user-id"?: number | undefined;
|
|
13
|
+
"owner-email"?: string | undefined;
|
|
14
|
+
"orphan-only"?: boolean | undefined;
|
|
15
|
+
"unused-only"?: boolean | undefined;
|
|
16
|
+
"published-only"?: boolean | undefined;
|
|
17
|
+
"can-query"?: boolean | undefined;
|
|
18
|
+
"can-write"?: boolean | undefined;
|
|
19
|
+
"include-transform-targets"?: boolean | undefined;
|
|
20
|
+
}
|
|
21
|
+
declare function tableResource(transport: Transport): {
|
|
22
|
+
list: (params?: TableListParams | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
id: number;
|
|
25
|
+
name: string;
|
|
26
|
+
display_name: string;
|
|
27
|
+
description: string | null;
|
|
28
|
+
caveats: string | null;
|
|
29
|
+
db_id: number;
|
|
30
|
+
schema: string | null;
|
|
31
|
+
entity_type: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null;
|
|
32
|
+
data_layer: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null;
|
|
33
|
+
estimated_row_count: number | null;
|
|
34
|
+
active: boolean;
|
|
35
|
+
visibility_type?: "hidden" | "technical" | "cruft" | null | undefined;
|
|
36
|
+
is_published?: boolean | undefined;
|
|
37
|
+
collection_id?: number | null | undefined;
|
|
38
|
+
fields?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
id: number;
|
|
41
|
+
table_id: number;
|
|
42
|
+
name: string;
|
|
43
|
+
display_name: string;
|
|
44
|
+
description: string | null;
|
|
45
|
+
base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode";
|
|
46
|
+
effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
|
|
47
|
+
coercion_strategy: "Coercion/String->Temporal" | "Coercion/ISO8601->Temporal" | "Coercion/ISO8601->DateTime" | "Coercion/ISO8601->Time" | "Coercion/ISO8601->Date" | "Coercion/YYYYMMDDHHMMSSString->Temporal" | "Coercion/Bytes->Temporal" | "Coercion/YYYYMMDDHHMMSSBytes->Temporal" | "Coercion/ISO8601Bytes->Temporal" | "Coercion/Number->Temporal" | "Coercion/UNIXTime->Temporal" | "Coercion/UNIXSeconds->DateTime" | "Coercion/UNIXMilliSeconds->DateTime" | "Coercion/UNIXMicroSeconds->DateTime" | "Coercion/UNIXNanoSeconds->DateTime" | "Coercion/Temporal->Temporal" | "Coercion/DateTime->Date" | "Coercion/String->Number" | "Coercion/String->Float" | "Coercion/String->Integer" | "Coercion/Float->Integer" | null;
|
|
48
|
+
semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
|
|
49
|
+
fk_target_field_id: number | null;
|
|
50
|
+
database_is_pk: boolean | null;
|
|
51
|
+
parent_id: number | null;
|
|
52
|
+
nfc_path: string[] | null;
|
|
53
|
+
database_type?: string | null | undefined;
|
|
54
|
+
has_field_values?: "list" | "search" | "none" | "auto-list" | null | undefined;
|
|
55
|
+
visibility_type?: "hidden" | "details-only" | "normal" | "retired" | "sensitive" | null | undefined;
|
|
56
|
+
active?: boolean | undefined;
|
|
57
|
+
position?: number | undefined;
|
|
58
|
+
}[] | undefined;
|
|
59
|
+
}>>;
|
|
60
|
+
get: (id: number, options?: RequestOptions) => Promise<Table>;
|
|
61
|
+
update: (id: number, params: {
|
|
62
|
+
[x: string]: unknown;
|
|
63
|
+
display_name?: string | undefined;
|
|
64
|
+
entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | undefined;
|
|
65
|
+
visibility_type?: "hidden" | "technical" | "cruft" | null | undefined;
|
|
66
|
+
description?: string | null | undefined;
|
|
67
|
+
caveats?: string | null | undefined;
|
|
68
|
+
points_of_interest?: string | null | undefined;
|
|
69
|
+
show_in_getting_started?: boolean | undefined;
|
|
70
|
+
field_order?: "custom" | "database" | "alphabetical" | "smart" | undefined;
|
|
71
|
+
data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
|
|
72
|
+
data_source?: "unknown" | "transform" | "upload" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
|
|
73
|
+
data_layer?: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null | undefined;
|
|
74
|
+
owner_email?: string | null | undefined;
|
|
75
|
+
owner_user_id?: number | null | undefined;
|
|
76
|
+
collection_id?: number | undefined;
|
|
77
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
78
|
+
[x: string]: unknown;
|
|
79
|
+
id: number;
|
|
80
|
+
name: string;
|
|
81
|
+
display_name: string;
|
|
82
|
+
description: string | null;
|
|
83
|
+
caveats: string | null;
|
|
84
|
+
db_id: number;
|
|
85
|
+
schema: string | null;
|
|
86
|
+
entity_type: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null;
|
|
87
|
+
data_layer: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null;
|
|
88
|
+
estimated_row_count: number | null;
|
|
89
|
+
active: boolean;
|
|
90
|
+
visibility_type?: "hidden" | "technical" | "cruft" | null | undefined;
|
|
91
|
+
is_published?: boolean | undefined;
|
|
92
|
+
collection_id?: number | null | undefined;
|
|
93
|
+
fields?: {
|
|
94
|
+
[x: string]: unknown;
|
|
95
|
+
id: number;
|
|
96
|
+
table_id: number;
|
|
97
|
+
name: string;
|
|
98
|
+
display_name: string;
|
|
99
|
+
description: string | null;
|
|
100
|
+
base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode";
|
|
101
|
+
effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
|
|
102
|
+
coercion_strategy: "Coercion/String->Temporal" | "Coercion/ISO8601->Temporal" | "Coercion/ISO8601->DateTime" | "Coercion/ISO8601->Time" | "Coercion/ISO8601->Date" | "Coercion/YYYYMMDDHHMMSSString->Temporal" | "Coercion/Bytes->Temporal" | "Coercion/YYYYMMDDHHMMSSBytes->Temporal" | "Coercion/ISO8601Bytes->Temporal" | "Coercion/Number->Temporal" | "Coercion/UNIXTime->Temporal" | "Coercion/UNIXSeconds->DateTime" | "Coercion/UNIXMilliSeconds->DateTime" | "Coercion/UNIXMicroSeconds->DateTime" | "Coercion/UNIXNanoSeconds->DateTime" | "Coercion/Temporal->Temporal" | "Coercion/DateTime->Date" | "Coercion/String->Number" | "Coercion/String->Float" | "Coercion/String->Integer" | "Coercion/Float->Integer" | null;
|
|
103
|
+
semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
|
|
104
|
+
fk_target_field_id: number | null;
|
|
105
|
+
database_is_pk: boolean | null;
|
|
106
|
+
parent_id: number | null;
|
|
107
|
+
nfc_path: string[] | null;
|
|
108
|
+
database_type?: string | null | undefined;
|
|
109
|
+
has_field_values?: "list" | "search" | "none" | "auto-list" | null | undefined;
|
|
110
|
+
visibility_type?: "hidden" | "details-only" | "normal" | "retired" | "sensitive" | null | undefined;
|
|
111
|
+
active?: boolean | undefined;
|
|
112
|
+
position?: number | undefined;
|
|
113
|
+
}[] | undefined;
|
|
114
|
+
}>;
|
|
115
|
+
queryMetadata: (id: number, options?: RequestOptions) => Promise<TableQueryMetadata>;
|
|
116
|
+
fks: (id: number, options?: RequestOptions) => Promise<ListResult<TableForeignKey>>;
|
|
117
|
+
syncSchema: (id: number, options?: RequestOptions) => Promise<TableSchemaSyncResult>;
|
|
118
|
+
rescanValues: (id: number, options?: RequestOptions) => Promise<TableFieldValuesResult>;
|
|
119
|
+
discardValues: (id: number, options?: RequestOptions) => Promise<TableFieldValuesResult>;
|
|
120
|
+
bulkEdit: (params: {
|
|
121
|
+
database_ids?: number[] | undefined;
|
|
122
|
+
schema_ids?: string[] | undefined;
|
|
123
|
+
table_ids?: number[] | undefined;
|
|
124
|
+
data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
|
|
125
|
+
data_source?: "unknown" | "transform" | "upload" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
|
|
126
|
+
data_layer?: "internal" | "hidden" | "final" | null | undefined;
|
|
127
|
+
entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null | undefined;
|
|
128
|
+
owner_email?: string | null | undefined;
|
|
129
|
+
owner_user_id?: number | null | undefined;
|
|
130
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
131
|
+
accepted: true;
|
|
132
|
+
database_ids?: number[] | undefined;
|
|
133
|
+
schema_ids?: string[] | undefined;
|
|
134
|
+
table_ids?: number[] | undefined;
|
|
135
|
+
data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
|
|
136
|
+
data_source?: "unknown" | "transform" | "upload" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
|
|
137
|
+
data_layer?: "internal" | "hidden" | "final" | null | undefined;
|
|
138
|
+
entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null | undefined;
|
|
139
|
+
owner_email?: string | null | undefined;
|
|
140
|
+
owner_user_id?: number | null | undefined;
|
|
141
|
+
}>;
|
|
142
|
+
bulkSyncSchema: (selectors: {
|
|
143
|
+
database_ids?: number[] | undefined;
|
|
144
|
+
schema_ids?: string[] | undefined;
|
|
145
|
+
table_ids?: number[] | undefined;
|
|
146
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
147
|
+
accepted: true;
|
|
148
|
+
database_ids?: number[] | undefined;
|
|
149
|
+
schema_ids?: string[] | undefined;
|
|
150
|
+
table_ids?: number[] | undefined;
|
|
151
|
+
}>;
|
|
152
|
+
bulkRescanValues: (selectors: {
|
|
153
|
+
database_ids?: number[] | undefined;
|
|
154
|
+
schema_ids?: string[] | undefined;
|
|
155
|
+
table_ids?: number[] | undefined;
|
|
156
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
157
|
+
accepted: true;
|
|
158
|
+
database_ids?: number[] | undefined;
|
|
159
|
+
schema_ids?: string[] | undefined;
|
|
160
|
+
table_ids?: number[] | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
bulkDiscardValues: (selectors: {
|
|
163
|
+
database_ids?: number[] | undefined;
|
|
164
|
+
schema_ids?: string[] | undefined;
|
|
165
|
+
table_ids?: number[] | undefined;
|
|
166
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
167
|
+
accepted: true;
|
|
168
|
+
database_ids?: number[] | undefined;
|
|
169
|
+
schema_ids?: string[] | undefined;
|
|
170
|
+
table_ids?: number[] | undefined;
|
|
171
|
+
}>;
|
|
172
|
+
appendCsv: (id: number, file: CsvFile, options?: RequestOptions) => Promise<UploadUpdateResult>;
|
|
173
|
+
replaceCsv: (id: number, file: CsvFile, options?: RequestOptions) => Promise<UploadUpdateResult>;
|
|
174
|
+
};
|
|
175
|
+
//#endregion
|
|
176
|
+
export { tableResource as n, TableListParams as t };
|