@metabase/client 0.0.0-stage → 0.1.0
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 +7 -0
- package/LICENSE +661 -0
- package/README.md +488 -2
- 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-B6merEUN.d.ts +1392 -0
- package/dist/card-BZx4NSr-.d.ts +33 -0
- package/dist/client-DNRvXFRm.d.ts +3276 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +95 -0
- package/dist/collection-Bib61WiV.d.ts +294 -0
- package/dist/collection-CqtGPi4W.d.ts +39 -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-XTe46250.d.ts +38 -0
- package/dist/dashboard-z9i1VUZC.d.ts +970 -0
- package/dist/data-action-rS27f2Ji.d.ts +95 -0
- package/dist/database-BLUMlywE.d.ts +997 -0
- package/dist/database-DqTespfa.d.ts +27 -0
- package/dist/dataset-C6lX1-cr.d.ts +4144 -0
- package/dist/dataset-Cj3XuKLe.d.ts +23 -0
- package/dist/dependency-D8Qs5Xdx.d.ts +827 -0
- package/dist/dependency-fN5_7a22.d.ts +299 -0
- package/dist/document-oZNDbDfx.d.ts +115 -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 +194 -0
- package/dist/domain/data-action.d.ts +2 -0
- package/dist/domain/data-action.js +85 -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 +165 -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 +268 -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 +83 -0
- package/dist/domain/measure.d.ts +2 -0
- package/dist/domain/measure.js +41 -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 +138 -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 +133 -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 +63 -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 +44 -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 +156 -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 +109 -0
- package/dist/domain/transform-python.d.ts +2 -0
- package/dist/domain/transform-python.js +39 -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 +235 -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-nuhr8St2.d.ts +143 -0
- package/dist/embedding-Cz3RUJYf.d.ts +10 -0
- package/dist/erd-BdeFEeSy.d.ts +842 -0
- package/dist/erd-BujD227Y.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-CnFkUCj2.d.ts +261 -0
- package/dist/field-BCRO19mk.d.ts +2547 -0
- package/dist/field-Bqn10Fq_.d.ts +50 -0
- package/dist/git-sync-DNXrNVCW.d.ts +258 -0
- package/dist/git-sync-gAMKsZgN.d.ts +205 -0
- package/dist/glossary-CHK3elPj.d.ts +35 -0
- package/dist/glossary-CqFlzW33.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 +60 -0
- package/dist/index.js +62 -0
- package/dist/json-CZvjc3--.d.ts +19 -0
- package/dist/json-pointer.d.ts +4 -0
- package/dist/json-pointer.js +7 -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-Cx9h_RkU.d.ts +228 -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-CuMqPbQX.d.ts +108 -0
- package/dist/measure-KuXdjZYJ.d.ts +44 -0
- package/dist/metric-yvehaVCS.d.ts +2655 -0
- package/dist/moderation-review-B4RUTZ6_.d.ts +56 -0
- package/dist/network-error-5g4U1iul.js +62 -0
- package/dist/notification-BT2TDAd_.d.ts +379 -0
- package/dist/notification-BiegPoSD.d.ts +22 -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-DZWvWvbm.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-CMc1Rwdj.d.ts +596 -0
- package/dist/pulse-dylocLd9.d.ts +18 -0
- package/dist/query-Xsin530u.d.ts +23 -0
- package/dist/refusal-B9aeHMc9.js +130 -0
- package/dist/replacement-CyvtbxGg.d.ts +2467 -0
- package/dist/replacement-S9U3gApY.d.ts +128 -0
- package/dist/requirement-check-CIA5IHC1.d.ts +17 -0
- package/dist/requirements-C0txASN8.d.ts +217 -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 +110 -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 +218 -0
- package/dist/resources/data-action.d.ts +105 -0
- package/dist/resources/data-action.js +79 -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 +150 -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 +98 -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 +75 -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 +51 -0
- package/dist/resources/search.d.ts +2 -0
- package/dist/resources/search.js +57 -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 +275 -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 +52 -0
- package/dist/resources/transform-python.js +56 -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 +217 -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-CQBPhohA.d.ts +104 -0
- package/dist/search-BxJipLN6.d.ts +26 -0
- package/dist/search-NZR6iRBs.d.ts +92 -0
- package/dist/segment-D2i34X9l.d.ts +16 -0
- package/dist/segment-pj3wklGe.d.ts +47 -0
- package/dist/session-properties-COtlxAcK.d.ts +15 -0
- package/dist/setting-DXuQGXGF.d.ts +25 -0
- package/dist/setup-Ez_U7GmM.d.ts +26 -0
- package/dist/signal.d.ts +8 -0
- package/dist/signal.js +25 -0
- package/dist/snippet-RnnWa4TL.d.ts +16 -0
- package/dist/snippet-hEV429Pv.d.ts +41 -0
- package/dist/table-B3-UaPHa.d.ts +3229 -0
- package/dist/table-B_lfuaHc.d.ts +176 -0
- package/dist/tag-qzjGGci8.d.ts +48 -0
- package/dist/timeline-C2IEcRlP.d.ts +21 -0
- package/dist/timeline-folD3mQ_.d.ts +218 -0
- package/dist/transform-CDurgE1D.d.ts +443 -0
- package/dist/transform-CXOT5kFe.d.ts +638 -0
- package/dist/transform-dag-run-BgZwv1yx.d.ts +49 -0
- package/dist/transform-inspector-BUYBt6--.d.ts +374 -0
- package/dist/transform-job-29P6BULe.d.ts +237 -0
- package/dist/transform-job-CTJImaOd.d.ts +96 -0
- package/dist/transform-python-DdDnW6yK.d.ts +56 -0
- package/dist/transform-tag-DVUIZTEM.d.ts +25 -0
- package/dist/transform-test-A-CJYT6B.d.ts +412 -0
- package/dist/transform-test-BwuyrHpT.d.ts +346 -0
- package/dist/transport-E0ZaPNWJ.d.ts +462 -0
- package/dist/transport-HP7cyo9N.js +397 -0
- package/dist/upload-B7PG3ePk.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-2r0OBoO6.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 +143 -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 +219 -0
- package/dist/version/tag.d.ts +2 -0
- package/dist/version/tag.js +52 -0
- package/package.json +65 -4
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { o as Features } from "./features-CnFkUCj2.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/domain/library.d.ts
|
|
4
|
+
declare const LibraryChild: z.ZodObject<{
|
|
5
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
description: z.ZodNullable<z.ZodString>;
|
|
8
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
9
|
+
library: "library";
|
|
10
|
+
"instance-analytics": "instance-analytics";
|
|
11
|
+
trash: "trash";
|
|
12
|
+
"library-data": "library-data";
|
|
13
|
+
"library-metrics": "library-metrics";
|
|
14
|
+
"library-dashboards": "library-dashboards";
|
|
15
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
16
|
+
}>>;
|
|
17
|
+
is_remote_synced: z.ZodNullable<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
type LibraryChild = z.infer<typeof LibraryChild>;
|
|
20
|
+
declare const Library: z.ZodObject<{
|
|
21
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
27
|
+
personal_owner_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
is_personal: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
authority_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
30
|
+
official: "official";
|
|
31
|
+
}>>>;
|
|
32
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
33
|
+
library: "library";
|
|
34
|
+
"instance-analytics": "instance-analytics";
|
|
35
|
+
trash: "trash";
|
|
36
|
+
"library-data": "library-data";
|
|
37
|
+
"library-metrics": "library-metrics";
|
|
38
|
+
"library-dashboards": "library-dashboards";
|
|
39
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
40
|
+
}>>>;
|
|
41
|
+
namespace: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
42
|
+
transforms: "transforms";
|
|
43
|
+
snippets: "snippets";
|
|
44
|
+
analytics: "analytics";
|
|
45
|
+
"shared-tenant-collection": "shared-tenant-collection";
|
|
46
|
+
"tenant-specific": "tenant-specific";
|
|
47
|
+
"data-apps": "data-apps";
|
|
48
|
+
"data-actions": "data-actions";
|
|
49
|
+
}>>>;
|
|
50
|
+
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
52
|
+
can_write: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
is_remote_synced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
54
|
+
effective_children: z.ZodArray<z.ZodObject<{
|
|
55
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
description: z.ZodNullable<z.ZodString>;
|
|
58
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
59
|
+
library: "library";
|
|
60
|
+
"instance-analytics": "instance-analytics";
|
|
61
|
+
trash: "trash";
|
|
62
|
+
"library-data": "library-data";
|
|
63
|
+
"library-metrics": "library-metrics";
|
|
64
|
+
"library-dashboards": "library-dashboards";
|
|
65
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
66
|
+
}>>;
|
|
67
|
+
is_remote_synced: z.ZodNullable<z.ZodBoolean>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
}, z.core.$loose>;
|
|
70
|
+
type Library = z.infer<typeof Library>;
|
|
71
|
+
declare const LibraryCompact: z.ZodObject<{
|
|
72
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
73
|
+
library: "library";
|
|
74
|
+
"instance-analytics": "instance-analytics";
|
|
75
|
+
trash: "trash";
|
|
76
|
+
"library-data": "library-data";
|
|
77
|
+
"library-metrics": "library-metrics";
|
|
78
|
+
"library-dashboards": "library-dashboards";
|
|
79
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
80
|
+
}>>>;
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
83
|
+
effective_children: z.ZodArray<z.ZodObject<{
|
|
84
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
description: z.ZodNullable<z.ZodString>;
|
|
87
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
88
|
+
library: "library";
|
|
89
|
+
"instance-analytics": "instance-analytics";
|
|
90
|
+
trash: "trash";
|
|
91
|
+
"library-data": "library-data";
|
|
92
|
+
"library-metrics": "library-metrics";
|
|
93
|
+
"library-dashboards": "library-dashboards";
|
|
94
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
95
|
+
}>>;
|
|
96
|
+
is_remote_synced: z.ZodNullable<z.ZodBoolean>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
type LibraryCompact = z.infer<typeof LibraryCompact>;
|
|
100
|
+
declare const LibraryCollectionInfo: z.ZodObject<{
|
|
101
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
102
|
+
library: "library";
|
|
103
|
+
"instance-analytics": "instance-analytics";
|
|
104
|
+
trash: "trash";
|
|
105
|
+
"library-data": "library-data";
|
|
106
|
+
"library-metrics": "library-metrics";
|
|
107
|
+
"library-dashboards": "library-dashboards";
|
|
108
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
109
|
+
}>>>;
|
|
110
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
111
|
+
is_remote_synced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
type LibraryCollectionInfo = z.infer<typeof LibraryCollectionInfo>;
|
|
114
|
+
type LibraryListing = ReadonlyMap<number, LibraryCollectionInfo>;
|
|
115
|
+
declare const LibraryPublishTablesInput: z.ZodObject<{
|
|
116
|
+
database_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
117
|
+
schema_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
|
+
table_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
119
|
+
collection_id: z.ZodNumber;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
type LibraryPublishTablesInput = z.infer<typeof LibraryPublishTablesInput>;
|
|
122
|
+
declare const LibraryWireV59: z.ZodObject<{
|
|
123
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
129
|
+
personal_owner_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
130
|
+
is_personal: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
authority_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
132
|
+
official: "official";
|
|
133
|
+
}>>>;
|
|
134
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
135
|
+
library: "library";
|
|
136
|
+
"instance-analytics": "instance-analytics";
|
|
137
|
+
trash: "trash";
|
|
138
|
+
"library-data": "library-data";
|
|
139
|
+
"library-metrics": "library-metrics";
|
|
140
|
+
"library-dashboards": "library-dashboards";
|
|
141
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
142
|
+
}>>>;
|
|
143
|
+
namespace: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
144
|
+
transforms: "transforms";
|
|
145
|
+
snippets: "snippets";
|
|
146
|
+
analytics: "analytics";
|
|
147
|
+
"shared-tenant-collection": "shared-tenant-collection";
|
|
148
|
+
"tenant-specific": "tenant-specific";
|
|
149
|
+
"data-apps": "data-apps";
|
|
150
|
+
"data-actions": "data-actions";
|
|
151
|
+
}>>>;
|
|
152
|
+
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
154
|
+
can_write: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
+
is_remote_synced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
156
|
+
effective_children: z.ZodArray<z.ZodObject<{
|
|
157
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
158
|
+
name: z.ZodString;
|
|
159
|
+
description: z.ZodNullable<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
}, z.core.$loose>;
|
|
162
|
+
declare const LibraryWireV62: z.ZodObject<{
|
|
163
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
164
|
+
name: z.ZodString;
|
|
165
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
168
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
169
|
+
personal_owner_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
170
|
+
is_personal: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
+
authority_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
172
|
+
official: "official";
|
|
173
|
+
}>>>;
|
|
174
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
175
|
+
library: "library";
|
|
176
|
+
"instance-analytics": "instance-analytics";
|
|
177
|
+
trash: "trash";
|
|
178
|
+
"library-data": "library-data";
|
|
179
|
+
"library-metrics": "library-metrics";
|
|
180
|
+
"library-dashboards": "library-dashboards";
|
|
181
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
182
|
+
}>>>;
|
|
183
|
+
namespace: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
184
|
+
transforms: "transforms";
|
|
185
|
+
snippets: "snippets";
|
|
186
|
+
analytics: "analytics";
|
|
187
|
+
"shared-tenant-collection": "shared-tenant-collection";
|
|
188
|
+
"tenant-specific": "tenant-specific";
|
|
189
|
+
"data-apps": "data-apps";
|
|
190
|
+
"data-actions": "data-actions";
|
|
191
|
+
}>>>;
|
|
192
|
+
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
193
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
194
|
+
can_write: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
is_remote_synced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
196
|
+
effective_children: z.ZodArray<z.ZodObject<{
|
|
197
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
198
|
+
name: z.ZodString;
|
|
199
|
+
description: z.ZodNullable<z.ZodString>;
|
|
200
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
201
|
+
library: "library";
|
|
202
|
+
"instance-analytics": "instance-analytics";
|
|
203
|
+
trash: "trash";
|
|
204
|
+
"library-data": "library-data";
|
|
205
|
+
"library-metrics": "library-metrics";
|
|
206
|
+
"library-dashboards": "library-dashboards";
|
|
207
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
208
|
+
}>>;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
}, z.core.$loose>;
|
|
211
|
+
interface LibraryWireWithoutChildType {
|
|
212
|
+
readonly childrenCarryType: false;
|
|
213
|
+
readonly root: z.infer<typeof LibraryWireV59>;
|
|
214
|
+
}
|
|
215
|
+
interface LibraryWireWithChildType {
|
|
216
|
+
readonly childrenCarryType: true;
|
|
217
|
+
readonly root: z.infer<typeof LibraryWireV62>;
|
|
218
|
+
}
|
|
219
|
+
type LibraryWire = LibraryWireWithoutChildType | LibraryWireWithChildType;
|
|
220
|
+
/**
|
|
221
|
+
* The shape `GET /api/ee/library/` answers on a server with `features`: the Library as sent,
|
|
222
|
+
* awaiting `toLibrary`, or `null` on an instance that has none.
|
|
223
|
+
*/
|
|
224
|
+
declare function libraryWireSchema(features: Features): z.ZodType<LibraryWire | null>;
|
|
225
|
+
/** `wire` read as `Library`, with what its children's projection omitted taken from `listing`. */
|
|
226
|
+
declare function toLibrary(wire: LibraryWire, listing: LibraryListing): Library;
|
|
227
|
+
//#endregion
|
|
228
|
+
export { LibraryListing as a, libraryWireSchema as c, LibraryCompact as i, toLibrary as l, LibraryChild as n, LibraryPublishTablesInput as o, LibraryCollectionInfo as r, LibraryWire as s, Library as t };
|
package/dist/list.d.ts
ADDED
package/dist/list.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-E0ZaPNWJ.js";
|
|
2
|
+
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
+
//#region src/resources/measure.d.ts
|
|
4
|
+
interface MeasureArchiveParams {
|
|
5
|
+
revision_message: string;
|
|
6
|
+
}
|
|
7
|
+
declare function measureResource(transport: Transport): {
|
|
8
|
+
list: (options?: RequestOptions | undefined) => Promise<ListResult<{
|
|
9
|
+
[x: string]: unknown;
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string | null;
|
|
13
|
+
archived: boolean;
|
|
14
|
+
table_id: number;
|
|
15
|
+
definition: unknown;
|
|
16
|
+
creator_id: number;
|
|
17
|
+
entity_id: string | null;
|
|
18
|
+
created_at: string;
|
|
19
|
+
updated_at: string;
|
|
20
|
+
dimensions?: unknown[] | null | undefined;
|
|
21
|
+
dimension_mappings?: unknown[] | null | undefined;
|
|
22
|
+
definition_description?: string | null | undefined;
|
|
23
|
+
result_column_name?: string | null | undefined;
|
|
24
|
+
}>>;
|
|
25
|
+
get: (id: number, options?: RequestOptions | undefined) => Promise<{
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
id: number;
|
|
28
|
+
name: string;
|
|
29
|
+
description: string | null;
|
|
30
|
+
archived: boolean;
|
|
31
|
+
table_id: number;
|
|
32
|
+
definition: unknown;
|
|
33
|
+
creator_id: number;
|
|
34
|
+
entity_id: string | null;
|
|
35
|
+
created_at: string;
|
|
36
|
+
updated_at: string;
|
|
37
|
+
dimensions?: unknown[] | null | undefined;
|
|
38
|
+
dimension_mappings?: unknown[] | null | undefined;
|
|
39
|
+
definition_description?: string | null | undefined;
|
|
40
|
+
result_column_name?: string | null | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
create: (params: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
name: string;
|
|
45
|
+
table_id: number;
|
|
46
|
+
definition: Record<string, unknown>;
|
|
47
|
+
description?: string | null | undefined;
|
|
48
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
id: number;
|
|
51
|
+
name: string;
|
|
52
|
+
description: string | null;
|
|
53
|
+
archived: boolean;
|
|
54
|
+
table_id: number;
|
|
55
|
+
definition: unknown;
|
|
56
|
+
creator_id: number;
|
|
57
|
+
entity_id: string | null;
|
|
58
|
+
created_at: string;
|
|
59
|
+
updated_at: string;
|
|
60
|
+
dimensions?: unknown[] | null | undefined;
|
|
61
|
+
dimension_mappings?: unknown[] | null | undefined;
|
|
62
|
+
definition_description?: string | null | undefined;
|
|
63
|
+
result_column_name?: string | null | undefined;
|
|
64
|
+
}>;
|
|
65
|
+
update: (id: number, params: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
revision_message: string;
|
|
68
|
+
name?: string | null | undefined;
|
|
69
|
+
definition?: Record<string, unknown> | null | undefined;
|
|
70
|
+
archived?: boolean | null | undefined;
|
|
71
|
+
description?: string | null | undefined;
|
|
72
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
73
|
+
[x: string]: unknown;
|
|
74
|
+
id: number;
|
|
75
|
+
name: string;
|
|
76
|
+
description: string | null;
|
|
77
|
+
archived: boolean;
|
|
78
|
+
table_id: number;
|
|
79
|
+
definition: unknown;
|
|
80
|
+
creator_id: number;
|
|
81
|
+
entity_id: string | null;
|
|
82
|
+
created_at: string;
|
|
83
|
+
updated_at: string;
|
|
84
|
+
dimensions?: unknown[] | null | undefined;
|
|
85
|
+
dimension_mappings?: unknown[] | null | undefined;
|
|
86
|
+
definition_description?: string | null | undefined;
|
|
87
|
+
result_column_name?: string | null | undefined;
|
|
88
|
+
}>;
|
|
89
|
+
archive: (id: number, params: MeasureArchiveParams, options?: RequestOptions | undefined) => Promise<{
|
|
90
|
+
[x: string]: unknown;
|
|
91
|
+
id: number;
|
|
92
|
+
name: string;
|
|
93
|
+
description: string | null;
|
|
94
|
+
archived: boolean;
|
|
95
|
+
table_id: number;
|
|
96
|
+
definition: unknown;
|
|
97
|
+
creator_id: number;
|
|
98
|
+
entity_id: string | null;
|
|
99
|
+
created_at: string;
|
|
100
|
+
updated_at: string;
|
|
101
|
+
dimensions?: unknown[] | null | undefined;
|
|
102
|
+
dimension_mappings?: unknown[] | null | undefined;
|
|
103
|
+
definition_description?: string | null | undefined;
|
|
104
|
+
result_column_name?: string | null | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
export { measureResource as n, MeasureArchiveParams as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/measure.d.ts
|
|
3
|
+
declare const Measure: 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
|
+
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
13
|
+
dimension_mappings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
14
|
+
definition_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
result_column_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
created_at: z.ZodString;
|
|
17
|
+
updated_at: z.ZodString;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
type Measure = z.infer<typeof Measure>;
|
|
20
|
+
declare const MeasureCompact: z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
id: z.ZodNumber;
|
|
23
|
+
description: z.ZodNullable<z.ZodString>;
|
|
24
|
+
archived: z.ZodBoolean;
|
|
25
|
+
table_id: z.ZodNumber;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
type MeasureCompact = z.infer<typeof MeasureCompact>;
|
|
28
|
+
declare const MeasureCreateInput: 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 MeasureCreateInput = z.infer<typeof MeasureCreateInput>;
|
|
35
|
+
declare const MeasureUpdateInput: 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
|
+
}, z.core.$loose>;
|
|
42
|
+
type MeasureUpdateInput = z.infer<typeof MeasureUpdateInput>;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { MeasureUpdateInput as i, MeasureCompact as n, MeasureCreateInput as r, Measure as t };
|