@metabase/client 0.1.0 → 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 +21 -0
- package/README.md +6 -4
- package/dist/api-key-DJeN1-7G.d.ts +46 -0
- package/dist/{card-B6merEUN.d.ts → card-BxBzr5Uj.d.ts} +11 -11
- package/dist/{card-BZx4NSr-.d.ts → card-DN0sLkCG.d.ts} +4 -4
- package/dist/{client-DNRvXFRm.d.ts → client-DdXLlH1B.d.ts} +270 -166
- package/dist/client.d.ts +1 -1
- package/dist/client.js +4 -0
- package/dist/{collection-Bib61WiV.d.ts → collection-DGnTvD6R.d.ts} +20 -20
- package/dist/{collection-CqtGPi4W.d.ts → collection-fFahL-ub.d.ts} +18 -4
- package/dist/{dashboard-XTe46250.d.ts → dashboard-CM7RmNeE.d.ts} +2 -2
- package/dist/{dashboard-z9i1VUZC.d.ts → dashboard-DtLXVgtf.d.ts} +21 -13
- package/dist/{data-action-rS27f2Ji.d.ts → data-action-CkXVrOUH.d.ts} +7 -5
- package/dist/data-app-CqP5_fpB.d.ts +76 -0
- package/dist/{database-DqTespfa.d.ts → database-B0JNZjDN.d.ts} +3 -3
- package/dist/{database-BLUMlywE.d.ts → database-BxqDmfcj.d.ts} +9 -9
- package/dist/{dataset-C6lX1-cr.d.ts → dataset-BBNGPVec.d.ts} +22 -22
- package/dist/{dataset-Cj3XuKLe.d.ts → dataset-BUirJ1rO.d.ts} +3 -3
- package/dist/{dependency-fN5_7a22.d.ts → dependency-CzpXmeu7.d.ts} +26 -26
- package/dist/{dependency-D8Qs5Xdx.d.ts → dependency-arB8Cr2H.d.ts} +147 -95
- package/dist/{document-oZNDbDfx.d.ts → document-tLd6pYWe.d.ts} +2 -2
- package/dist/domain/api-key.d.ts +2 -0
- package/dist/domain/api-key.js +31 -0
- package/dist/domain/card.d.ts +1 -1
- package/dist/domain/collection.d.ts +1 -1
- package/dist/domain/dashboard.d.ts +2 -2
- package/dist/domain/dashboard.js +21 -4
- package/dist/domain/data-action.d.ts +2 -2
- package/dist/domain/data-action.js +8 -2
- package/dist/domain/data-app.d.ts +2 -0
- package/dist/domain/data-app.js +52 -0
- package/dist/domain/database.d.ts +1 -1
- package/dist/domain/dataset.d.ts +1 -1
- package/dist/domain/dependency.d.ts +1 -1
- package/dist/domain/dependency.js +6 -3
- package/dist/domain/document.d.ts +1 -1
- package/dist/domain/eid-translation.d.ts +1 -1
- package/dist/domain/embedding.d.ts +1 -1
- package/dist/domain/field.d.ts +2 -2
- package/dist/domain/field.js +8 -2
- package/dist/domain/git-sync.d.ts +1 -1
- package/dist/domain/library.d.ts +2 -2
- package/dist/domain/library.js +8 -2
- package/dist/domain/measure.d.ts +1 -1
- package/dist/domain/measure.js +3 -1
- package/dist/domain/metric.d.ts +1 -1
- package/dist/domain/notification.d.ts +2 -2
- package/dist/domain/notification.js +6 -1
- package/dist/domain/pulse.d.ts +2 -2
- package/dist/domain/pulse.js +10 -3
- package/dist/domain/replacement.d.ts +1 -1
- package/dist/domain/revision.d.ts +2 -2
- package/dist/domain/revision.js +29 -2
- package/dist/domain/search.d.ts +1 -1
- package/dist/domain/segment.d.ts +1 -1
- package/dist/domain/segment.js +3 -1
- package/dist/domain/setup.d.ts +1 -1
- package/dist/domain/setup.js +1 -1
- package/dist/domain/snippet.d.ts +1 -1
- package/dist/domain/table.d.ts +2 -2
- package/dist/domain/table.js +35 -4
- package/dist/domain/timeline.d.ts +1 -1
- package/dist/domain/transform-inspector.d.ts +1 -1
- package/dist/domain/transform-job.d.ts +2 -2
- package/dist/domain/transform-job.js +8 -2
- package/dist/domain/transform-python.d.ts +2 -2
- package/dist/domain/transform-python.js +15 -3
- package/dist/domain/transform-tag.d.ts +1 -1
- package/dist/domain/transform-test.d.ts +1 -1
- package/dist/domain/transform.d.ts +2 -2
- package/dist/domain/transform.js +76 -7
- package/dist/domain/user.d.ts +1 -1
- package/dist/domain/user.js +1 -1
- package/dist/{eid-translation-nuhr8St2.d.ts → eid-translation-CH6NPWd-.d.ts} +15 -15
- package/dist/{embedding-Cz3RUJYf.d.ts → embedding-oU3gqfgX.d.ts} +1 -1
- package/dist/{erd-BujD227Y.d.ts → erd-CbV7xvAc.d.ts} +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/{features-CnFkUCj2.d.ts → features-SMSfJhB6.d.ts} +36 -2
- package/dist/{field-Bqn10Fq_.d.ts → field-D1Pfk-0S.d.ts} +2 -2
- package/dist/{field-BCRO19mk.d.ts → field-p9Rme2zB.d.ts} +6 -4
- package/dist/{git-sync-gAMKsZgN.d.ts → git-sync-BTf1aYHr.d.ts} +3 -3
- package/dist/{git-sync-DNXrNVCW.d.ts → git-sync-C99SVdJ9.d.ts} +2 -2
- package/dist/{glossary-CqFlzW33.d.ts → glossary-DFvnz-E5.d.ts} +1 -1
- package/dist/http/errors.d.ts +1 -1
- package/dist/http/transport.d.ts +1 -1
- package/dist/index.d.ts +43 -41
- package/dist/index.js +7 -5
- package/dist/input-gate-registry-Dai7SfXb.js +14 -0
- package/dist/input-gates-DwKoTJVQ.d.ts +28 -0
- package/dist/{json-CZvjc3--.d.ts → json-BksZpXDC.d.ts} +1 -1
- package/dist/json-pointer.d.ts +2 -1
- package/dist/json-pointer.js +4 -1
- package/dist/json.d.ts +1 -1
- package/dist/{library-Cx9h_RkU.d.ts → library-B9pEq7qP.d.ts} +8 -6
- package/dist/{measure-KuXdjZYJ.d.ts → measure-CgH14YQZ.d.ts} +1 -1
- package/dist/{measure-CuMqPbQX.d.ts → measure-lPz8qnwz.d.ts} +1 -1
- package/dist/{metric-yvehaVCS.d.ts → metric-DcYloqOQ.d.ts} +2 -2
- package/dist/{notification-BiegPoSD.d.ts → notification-Cp5GJErS.d.ts} +3 -3
- package/dist/{notification-BT2TDAd_.d.ts → notification-D1MThyKE.d.ts} +66 -2
- package/dist/{paginate-DZWvWvbm.d.ts → paginate-COuL0Gzl.d.ts} +1 -1
- package/dist/paginate.d.ts +1 -1
- package/dist/{pulse-CMc1Rwdj.d.ts → pulse-0LG3K6qO.d.ts} +7 -5
- package/dist/{pulse-dylocLd9.d.ts → pulse-BzKmz3Yn.d.ts} +2 -2
- package/dist/{replacement-CyvtbxGg.d.ts → replacement-BGyggp-G.d.ts} +5 -5
- package/dist/{replacement-S9U3gApY.d.ts → replacement-CVebCuNp.d.ts} +5 -5
- package/dist/{requirement-check-CIA5IHC1.d.ts → requirement-check-glU7wqhQ.d.ts} +2 -2
- package/dist/{requirements-C0txASN8.d.ts → requirements-Dx_ZVzl7.d.ts} +11 -1
- package/dist/resources/api-key.d.ts +11 -0
- package/dist/resources/api-key.js +35 -0
- package/dist/resources/card.d.ts +1 -1
- package/dist/resources/collection.d.ts +1 -1
- package/dist/resources/collection.js +29 -5
- 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 +8 -5
- package/dist/resources/data-action.d.ts +3 -48
- package/dist/resources/data-action.js +9 -9
- package/dist/resources/data-app.d.ts +112 -0
- package/dist/resources/data-app.js +75 -0
- 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 +13 -7
- package/dist/resources/document.d.ts +2 -2
- package/dist/resources/eid-translation.d.ts +2 -2
- package/dist/resources/erd.d.ts +1 -1
- package/dist/resources/field.d.ts +1 -1
- package/dist/resources/field.js +3 -2
- package/dist/resources/git-sync.d.ts +1 -1
- package/dist/resources/git-sync.js +1 -1
- package/dist/resources/glossary.d.ts +1 -1
- package/dist/resources/library.d.ts +4 -4
- package/dist/resources/library.js +2 -2
- package/dist/resources/measure.d.ts +1 -1
- package/dist/resources/metric.d.ts +1 -1
- package/dist/resources/moderation-review.d.ts +1 -1
- package/dist/resources/notification.d.ts +1 -1
- package/dist/resources/notification.js +2 -2
- 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/pulse.js +3 -2
- package/dist/resources/replacement.d.ts +1 -1
- package/dist/resources/revision.d.ts +3 -3
- package/dist/resources/revision.js +5 -10
- package/dist/resources/search.d.ts +1 -1
- package/dist/resources/search.js +23 -2
- package/dist/resources/segment.d.ts +1 -1
- package/dist/resources/setting.d.ts +1 -1
- package/dist/resources/setup.d.ts +2 -2
- package/dist/resources/snippet.d.ts +1 -1
- package/dist/resources/table.d.ts +1 -1
- package/dist/resources/table.js +9 -10
- package/dist/resources/timeline-event.d.ts +2 -2
- package/dist/resources/timeline.d.ts +1 -1
- package/dist/resources/transform-dag-run.d.ts +1 -1
- package/dist/resources/transform-inspector.d.ts +2 -2
- package/dist/resources/transform-job.d.ts +1 -1
- package/dist/resources/transform-python.d.ts +11 -4
- package/dist/resources/transform-python.js +3 -2
- package/dist/resources/transform-tag.d.ts +1 -1
- package/dist/resources/transform-test.d.ts +1 -1
- package/dist/resources/transform.d.ts +1 -1
- package/dist/resources/transform.js +13 -3
- package/dist/resources/upload.d.ts +1 -1
- package/dist/resources/user.d.ts +2 -2
- package/dist/{revision-CQBPhohA.d.ts → revision-Dyl-8p7d.d.ts} +8 -6
- package/dist/{search-NZR6iRBs.d.ts → search-Cm5IxKss.d.ts} +8 -8
- package/dist/{search-BxJipLN6.d.ts → search-Cten2h0I.d.ts} +2 -2
- package/dist/{segment-pj3wklGe.d.ts → segment-CbAgVO-5.d.ts} +1 -1
- package/dist/{segment-D2i34X9l.d.ts → segment-DQLX6r1E.d.ts} +2 -2
- package/dist/{setup-Ez_U7GmM.d.ts → setup-JqcJ2unJ.d.ts} +1 -1
- package/dist/signal.d.ts +1 -1
- package/dist/{snippet-hEV429Pv.d.ts → snippet-C_Ilx7tR.d.ts} +2 -2
- package/dist/{snippet-RnnWa4TL.d.ts → snippet-Djn0rL21.d.ts} +2 -2
- package/dist/{table-B_lfuaHc.d.ts → table-CDZbLNow.d.ts} +6 -6
- package/dist/{table-B3-UaPHa.d.ts → table-Od6uvDVW.d.ts} +19 -14
- package/dist/{timeline-folD3mQ_.d.ts → timeline-BK45hy-h.d.ts} +31 -31
- package/dist/{timeline-C2IEcRlP.d.ts → timeline-BTs6fuRp.d.ts} +2 -2
- package/dist/{transform-CDurgE1D.d.ts → transform-C5thnJwW.d.ts} +139 -23
- package/dist/{transform-CXOT5kFe.d.ts → transform-WASQAXeA.d.ts} +39 -25
- package/dist/{transform-inspector-BUYBt6--.d.ts → transform-inspector-CMCh8WKV.d.ts} +4 -4
- package/dist/{transform-job-CTJImaOd.d.ts → transform-job-D8jTQtdX.d.ts} +5 -3
- package/dist/{transform-job-29P6BULe.d.ts → transform-job-DmTwKxhc.d.ts} +4 -4
- package/dist/{transform-python-DdDnW6yK.d.ts → transform-python-DtL3xxMj.d.ts} +49 -4
- package/dist/{transform-tag-DVUIZTEM.d.ts → transform-tag-C6j5EUkX.d.ts} +1 -1
- package/dist/{transform-test-A-CJYT6B.d.ts → transform-test-CR_i54IV.d.ts} +1 -1
- package/dist/{transform-test-BwuyrHpT.d.ts → transform-test-CeMzDpUC.d.ts} +1 -1
- package/dist/{transport-E0ZaPNWJ.d.ts → transport-BsXqRujn.d.ts} +17 -3
- package/dist/{upload-B7PG3ePk.d.ts → upload-B5YjVkSW.d.ts} +1 -1
- package/dist/{user-2r0OBoO6.d.ts → user-Sqqv7rqh.d.ts} +2 -2
- package/dist/version/capability-error.d.ts +1 -1
- package/dist/version/features.d.ts +2 -2
- package/dist/version/features.js +30 -2
- package/dist/version/input-gates.d.ts +2 -0
- package/dist/version/input-gates.js +13 -0
- 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 +10 -0
- package/package.json +3 -2
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-DdXLlH1B.js";
|
|
2
2
|
export { MetabaseClient, createClient };
|
package/dist/client.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { r as createTransport } from "./transport-HP7cyo9N.js";
|
|
2
|
+
import { apiKeyResource } from "./resources/api-key.js";
|
|
2
3
|
import { cardResource } from "./resources/card.js";
|
|
3
4
|
import { collectionResource } from "./resources/collection.js";
|
|
4
5
|
import { contentTranslationResource } from "./resources/content-translation.js";
|
|
5
6
|
import { dashboardResource } from "./resources/dashboard.js";
|
|
6
7
|
import { dataActionResource } from "./resources/data-action.js";
|
|
8
|
+
import { dataAppResource } from "./resources/data-app.js";
|
|
7
9
|
import { databaseResource } from "./resources/database.js";
|
|
8
10
|
import { datasetResource } from "./resources/dataset.js";
|
|
9
11
|
import { dependencyResource } from "./resources/dependency.js";
|
|
@@ -43,11 +45,13 @@ import { userResource } from "./resources/user.js";
|
|
|
43
45
|
function createClient(config, options) {
|
|
44
46
|
const transport = createTransport(config, options);
|
|
45
47
|
return {
|
|
48
|
+
apiKey: apiKeyResource(transport),
|
|
46
49
|
card: cardResource(transport),
|
|
47
50
|
collection: collectionResource(transport),
|
|
48
51
|
contentTranslation: contentTranslationResource(transport),
|
|
49
52
|
dashboard: dashboardResource(transport),
|
|
50
53
|
dataAction: dataActionResource(transport),
|
|
54
|
+
dataApp: dataAppResource(transport),
|
|
51
55
|
database: databaseResource(transport),
|
|
52
56
|
dataset: datasetResource(transport),
|
|
53
57
|
dependency: dependencyResource(transport),
|
|
@@ -17,12 +17,12 @@ declare const CollectionType: z.ZodEnum<{
|
|
|
17
17
|
}>;
|
|
18
18
|
type CollectionType = z.infer<typeof CollectionType>;
|
|
19
19
|
declare const CollectionNamespace: z.ZodEnum<{
|
|
20
|
+
"data-apps": "data-apps";
|
|
20
21
|
transforms: "transforms";
|
|
21
22
|
snippets: "snippets";
|
|
22
23
|
analytics: "analytics";
|
|
23
24
|
"shared-tenant-collection": "shared-tenant-collection";
|
|
24
25
|
"tenant-specific": "tenant-specific";
|
|
25
|
-
"data-apps": "data-apps";
|
|
26
26
|
"data-actions": "data-actions";
|
|
27
27
|
}>;
|
|
28
28
|
type CollectionNamespace = z.infer<typeof CollectionNamespace>;
|
|
@@ -34,8 +34,9 @@ declare const CollectionListFilter: z.ZodEnum<{
|
|
|
34
34
|
type CollectionListFilter = z.infer<typeof CollectionListFilter>;
|
|
35
35
|
declare const COLLECTION_ITEM_FILTER_MODELS: readonly ["card", "dataset", "metric", "dashboard", "snippet", "collection", "document", "exploration", "table", "transform", "measure", "pulse", "timeline", "no_models"];
|
|
36
36
|
declare const CollectionItemFilterModel: z.ZodEnum<{
|
|
37
|
-
|
|
37
|
+
transform: "transform";
|
|
38
38
|
collection: "collection";
|
|
39
|
+
card: "card";
|
|
39
40
|
dashboard: "dashboard";
|
|
40
41
|
dataset: "dataset";
|
|
41
42
|
document: "document";
|
|
@@ -45,15 +46,15 @@ declare const CollectionItemFilterModel: z.ZodEnum<{
|
|
|
45
46
|
snippet: "snippet";
|
|
46
47
|
table: "table";
|
|
47
48
|
timeline: "timeline";
|
|
48
|
-
transform: "transform";
|
|
49
49
|
exploration: "exploration";
|
|
50
50
|
no_models: "no_models";
|
|
51
51
|
}>;
|
|
52
52
|
type CollectionItemFilterModel = z.infer<typeof CollectionItemFilterModel>;
|
|
53
53
|
declare const COLLECTION_ITEM_MODELS: readonly ["card", "dataset", "metric", "dashboard", "snippet", "collection", "document", "exploration", "table", "transform", "measure", "pulse", "timeline", "no_models", "indexed-entity", "action"];
|
|
54
54
|
declare const CollectionItemModel: z.ZodEnum<{
|
|
55
|
-
|
|
55
|
+
transform: "transform";
|
|
56
56
|
collection: "collection";
|
|
57
|
+
card: "card";
|
|
57
58
|
dashboard: "dashboard";
|
|
58
59
|
dataset: "dataset";
|
|
59
60
|
document: "document";
|
|
@@ -63,7 +64,6 @@ declare const CollectionItemModel: z.ZodEnum<{
|
|
|
63
64
|
snippet: "snippet";
|
|
64
65
|
table: "table";
|
|
65
66
|
timeline: "timeline";
|
|
66
|
-
transform: "transform";
|
|
67
67
|
exploration: "exploration";
|
|
68
68
|
no_models: "no_models";
|
|
69
69
|
"indexed-entity": "indexed-entity";
|
|
@@ -99,12 +99,12 @@ declare const Collection: z.ZodObject<{
|
|
|
99
99
|
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
100
100
|
}>>>;
|
|
101
101
|
namespace: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
102
|
+
"data-apps": "data-apps";
|
|
102
103
|
transforms: "transforms";
|
|
103
104
|
snippets: "snippets";
|
|
104
105
|
analytics: "analytics";
|
|
105
106
|
"shared-tenant-collection": "shared-tenant-collection";
|
|
106
107
|
"tenant-specific": "tenant-specific";
|
|
107
|
-
"data-apps": "data-apps";
|
|
108
108
|
"data-actions": "data-actions";
|
|
109
109
|
}>>>;
|
|
110
110
|
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -123,24 +123,24 @@ declare const CollectionCompact: z.ZodObject<{
|
|
|
123
123
|
"library-dashboards": "library-dashboards";
|
|
124
124
|
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
125
125
|
}>>>;
|
|
126
|
-
name: z.ZodString;
|
|
127
126
|
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
127
|
+
name: z.ZodString;
|
|
128
128
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
129
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
131
|
authority_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
131
132
|
official: "official";
|
|
132
133
|
}>>>;
|
|
133
134
|
is_personal: z.ZodOptional<z.ZodBoolean>;
|
|
134
135
|
is_remote_synced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
135
136
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
136
|
-
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
137
|
namespace: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
138
|
+
"data-apps": "data-apps";
|
|
138
139
|
transforms: "transforms";
|
|
139
140
|
snippets: "snippets";
|
|
140
141
|
analytics: "analytics";
|
|
141
142
|
"shared-tenant-collection": "shared-tenant-collection";
|
|
142
143
|
"tenant-specific": "tenant-specific";
|
|
143
|
-
"data-apps": "data-apps";
|
|
144
144
|
"data-actions": "data-actions";
|
|
145
145
|
}>>>;
|
|
146
146
|
}, z.core.$strip>;
|
|
@@ -148,8 +148,9 @@ type CollectionCompact = z.infer<typeof CollectionCompact>;
|
|
|
148
148
|
declare const CollectionItem: z.ZodObject<{
|
|
149
149
|
id: z.ZodNumber;
|
|
150
150
|
model: z.ZodEnum<{
|
|
151
|
-
|
|
151
|
+
transform: "transform";
|
|
152
152
|
collection: "collection";
|
|
153
|
+
card: "card";
|
|
153
154
|
dashboard: "dashboard";
|
|
154
155
|
dataset: "dataset";
|
|
155
156
|
document: "document";
|
|
@@ -159,7 +160,6 @@ declare const CollectionItem: z.ZodObject<{
|
|
|
159
160
|
snippet: "snippet";
|
|
160
161
|
table: "table";
|
|
161
162
|
timeline: "timeline";
|
|
162
|
-
transform: "transform";
|
|
163
163
|
exploration: "exploration";
|
|
164
164
|
no_models: "no_models";
|
|
165
165
|
"indexed-entity": "indexed-entity";
|
|
@@ -178,14 +178,15 @@ 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
|
-
name: z.ZodString;
|
|
182
181
|
id: z.ZodNumber;
|
|
183
|
-
|
|
182
|
+
name: z.ZodString;
|
|
184
183
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
185
184
|
archived: z.ZodNullable<z.ZodBoolean>;
|
|
185
|
+
collection_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
186
186
|
model: z.ZodEnum<{
|
|
187
|
-
|
|
187
|
+
transform: "transform";
|
|
188
188
|
collection: "collection";
|
|
189
|
+
card: "card";
|
|
189
190
|
dashboard: "dashboard";
|
|
190
191
|
dataset: "dataset";
|
|
191
192
|
document: "document";
|
|
@@ -195,7 +196,6 @@ declare const CollectionItemCompact: z.ZodObject<{
|
|
|
195
196
|
snippet: "snippet";
|
|
196
197
|
table: "table";
|
|
197
198
|
timeline: "timeline";
|
|
198
|
-
transform: "transform";
|
|
199
199
|
exploration: "exploration";
|
|
200
200
|
no_models: "no_models";
|
|
201
201
|
"indexed-entity": "indexed-entity";
|
|
@@ -222,8 +222,9 @@ declare const CollectionTreeNodeBase: z.ZodObject<{
|
|
|
222
222
|
official: "official";
|
|
223
223
|
}>>>;
|
|
224
224
|
here: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
225
|
-
|
|
225
|
+
transform: "transform";
|
|
226
226
|
collection: "collection";
|
|
227
|
+
card: "card";
|
|
227
228
|
dashboard: "dashboard";
|
|
228
229
|
dataset: "dataset";
|
|
229
230
|
document: "document";
|
|
@@ -233,15 +234,15 @@ declare const CollectionTreeNodeBase: z.ZodObject<{
|
|
|
233
234
|
snippet: "snippet";
|
|
234
235
|
table: "table";
|
|
235
236
|
timeline: "timeline";
|
|
236
|
-
transform: "transform";
|
|
237
237
|
exploration: "exploration";
|
|
238
238
|
no_models: "no_models";
|
|
239
239
|
"indexed-entity": "indexed-entity";
|
|
240
240
|
action: "action";
|
|
241
241
|
}>>>;
|
|
242
242
|
below: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
243
|
-
|
|
243
|
+
transform: "transform";
|
|
244
244
|
collection: "collection";
|
|
245
|
+
card: "card";
|
|
245
246
|
dashboard: "dashboard";
|
|
246
247
|
dataset: "dataset";
|
|
247
248
|
document: "document";
|
|
@@ -251,7 +252,6 @@ declare const CollectionTreeNodeBase: z.ZodObject<{
|
|
|
251
252
|
snippet: "snippet";
|
|
252
253
|
table: "table";
|
|
253
254
|
timeline: "timeline";
|
|
254
|
-
transform: "transform";
|
|
255
255
|
exploration: "exploration";
|
|
256
256
|
no_models: "no_models";
|
|
257
257
|
"indexed-entity": "indexed-entity";
|
|
@@ -267,12 +267,12 @@ declare const CollectionCreateInput: z.ZodObject<{
|
|
|
267
267
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
268
268
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
269
269
|
namespace: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
270
|
+
"data-apps": "data-apps";
|
|
270
271
|
transforms: "transforms";
|
|
271
272
|
snippets: "snippets";
|
|
272
273
|
analytics: "analytics";
|
|
273
274
|
"shared-tenant-collection": "shared-tenant-collection";
|
|
274
275
|
"tenant-specific": "tenant-specific";
|
|
275
|
-
"data-apps": "data-apps";
|
|
276
276
|
"data-actions": "data-actions";
|
|
277
277
|
}>>>;
|
|
278
278
|
authority_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as RequestOptions, h as Transport } from "./transport-
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.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,
|
|
3
|
+
import { n as Page, r as PaginateOptions } from "./paginate-COuL0Gzl.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-DGnTvD6R.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/resources/collection.d.ts
|
|
7
7
|
interface CollectionListParams {
|
|
@@ -32,7 +32,21 @@ declare function collectionResource(transport: Transport): {
|
|
|
32
32
|
create: (params: CollectionCreateInput, options?: RequestOptions) => Promise<Collection>;
|
|
33
33
|
update: (ref: CollectionId, params: CollectionUpdateInput, options?: RequestOptions) => Promise<Collection>;
|
|
34
34
|
archive: (ref: CollectionId, options?: RequestOptions) => Promise<Collection>;
|
|
35
|
-
itemPages: (ref:
|
|
35
|
+
itemPages: (ref: string | number, params?: CollectionItemListParams | undefined, options?: CollectionItemPageOptions | undefined) => AsyncIterable<Page<{
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
id: number;
|
|
38
|
+
model: "transform" | "collection" | "card" | "dashboard" | "dataset" | "document" | "metric" | "measure" | "pulse" | "snippet" | "table" | "timeline" | "exploration" | "no_models" | "indexed-entity" | "action";
|
|
39
|
+
name: string;
|
|
40
|
+
archived: boolean | null;
|
|
41
|
+
description?: string | null | undefined;
|
|
42
|
+
collection_id?: string | number | null | undefined;
|
|
43
|
+
collection_position?: number | null | undefined;
|
|
44
|
+
display?: string | null | undefined;
|
|
45
|
+
location?: string | null | undefined;
|
|
46
|
+
entity_id?: string | null | undefined;
|
|
47
|
+
database_id?: number | null | undefined;
|
|
48
|
+
dashboard_id?: number | null | undefined;
|
|
49
|
+
}>>;
|
|
36
50
|
tree: (params?: CollectionTreeParams, options?: RequestOptions) => Promise<ListResult<CollectionTreeNode>>;
|
|
37
51
|
};
|
|
38
52
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as RequestOptions, h as Transport } from "./transport-
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
|
|
2
2
|
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
-
import { _ as
|
|
3
|
+
import { _ as DashcardDetail, a as DashboardCopyInput, l as DashboardListFilter, m as DashboardUpdateInput, o as DashboardCreateInput, r as DashboardCopy, s as DashboardDetail, t as Dashboard, u as DashboardParameterConstraints, v as DashcardPatchInput } from "./dashboard-DtLXVgtf.js";
|
|
4
4
|
import { s as ParameterValues } from "./parameter-ak-J-IOj.js";
|
|
5
5
|
//#region src/resources/dashboard.d.ts
|
|
6
6
|
interface DashboardListParams {
|
|
@@ -84,7 +84,7 @@ type UnreadableCard = z.infer<typeof UnreadableCard>;
|
|
|
84
84
|
* A dashcard as a dashboard read or write returns it, with its card whole in `card`. An action
|
|
85
85
|
* button bound to a model carries the model there and the action in `action_id`. A dashcard bound to
|
|
86
86
|
* no card (a text, heading, link, iframe or placeholder dashcard, or an action button bound to no
|
|
87
|
-
* model, which `visualization_settings.virtual_card` names) has `card_id` and `card`
|
|
87
|
+
* model, which `visualization_settings.virtual_card` names) has `card_id` `null`, and its `card` reads as `null`.
|
|
88
88
|
*/
|
|
89
89
|
declare const DashcardDetail: z.ZodObject<{
|
|
90
90
|
id: z.ZodNumber;
|
|
@@ -118,8 +118,8 @@ declare const DashcardDetail: z.ZodObject<{
|
|
|
118
118
|
name: z.ZodString;
|
|
119
119
|
type: z.ZodEnum<{
|
|
120
120
|
metric: "metric";
|
|
121
|
-
question: "question";
|
|
122
121
|
model: "model";
|
|
122
|
+
question: "question";
|
|
123
123
|
}>;
|
|
124
124
|
display: z.ZodString;
|
|
125
125
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -168,8 +168,8 @@ declare const DashboardTab: z.ZodObject<{
|
|
|
168
168
|
}, z.core.$loose>;
|
|
169
169
|
type DashboardTab = z.infer<typeof DashboardTab>;
|
|
170
170
|
declare const DashboardTabCompact: z.ZodObject<{
|
|
171
|
-
name: z.ZodString;
|
|
172
171
|
id: z.ZodNumber;
|
|
172
|
+
name: z.ZodString;
|
|
173
173
|
dashboard_id: z.ZodNumber;
|
|
174
174
|
position: z.ZodOptional<z.ZodNumber>;
|
|
175
175
|
}, z.core.$strip>;
|
|
@@ -435,8 +435,8 @@ declare const DashboardDetail: z.ZodObject<{
|
|
|
435
435
|
name: z.ZodString;
|
|
436
436
|
type: z.ZodEnum<{
|
|
437
437
|
metric: "metric";
|
|
438
|
-
question: "question";
|
|
439
438
|
model: "model";
|
|
439
|
+
question: "question";
|
|
440
440
|
}>;
|
|
441
441
|
display: z.ZodString;
|
|
442
442
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -484,12 +484,17 @@ declare const DashboardDetail: z.ZodObject<{
|
|
|
484
484
|
}, z.core.$loose>>;
|
|
485
485
|
}, z.core.$loose>;
|
|
486
486
|
type DashboardDetail = z.infer<typeof DashboardDetail>;
|
|
487
|
+
/**
|
|
488
|
+
* The dashboard `GET` and `PUT /api/dashboard/{id}` answer, read as `DashboardDetail`: the stub card
|
|
489
|
+
* of a dashcard bound to no card reads as `null`.
|
|
490
|
+
*/
|
|
491
|
+
declare const dashboardDetailSchema: z.ZodType<DashboardDetail>;
|
|
487
492
|
declare const DashboardCompact: z.ZodObject<{
|
|
488
|
-
name: z.ZodString;
|
|
489
493
|
id: z.ZodNumber;
|
|
490
|
-
|
|
494
|
+
name: z.ZodString;
|
|
491
495
|
description: z.ZodNullable<z.ZodString>;
|
|
492
496
|
archived: z.ZodBoolean;
|
|
497
|
+
collection_id: z.ZodNullable<z.ZodNumber>;
|
|
493
498
|
dashcards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
494
499
|
id: z.ZodNumber;
|
|
495
500
|
dashboard_id: z.ZodNumber;
|
|
@@ -510,8 +515,8 @@ declare const DashboardCompact: z.ZodObject<{
|
|
|
510
515
|
size_y: z.ZodNumber;
|
|
511
516
|
}, z.core.$strip>>>;
|
|
512
517
|
tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
513
|
-
name: z.ZodString;
|
|
514
518
|
id: z.ZodNumber;
|
|
519
|
+
name: z.ZodString;
|
|
515
520
|
dashboard_id: z.ZodNumber;
|
|
516
521
|
position: z.ZodOptional<z.ZodNumber>;
|
|
517
522
|
}, z.core.$strip>>>;
|
|
@@ -605,6 +610,9 @@ declare const DashboardCreateInput: z.ZodObject<{
|
|
|
605
610
|
cache_ttl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
606
611
|
collection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
607
612
|
collection_position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
613
|
+
}, z.core.$strip>;
|
|
614
|
+
type DashboardCreateInput = z.infer<typeof DashboardCreateInput>;
|
|
615
|
+
declare const DashboardLayoutInput: z.ZodObject<{
|
|
608
616
|
dashcards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
609
617
|
id: z.ZodNumber;
|
|
610
618
|
card_id: z.ZodNullable<z.ZodNumber>;
|
|
@@ -629,7 +637,7 @@ declare const DashboardCreateInput: z.ZodObject<{
|
|
|
629
637
|
name: z.ZodString;
|
|
630
638
|
}, z.core.$loose>>>;
|
|
631
639
|
}, z.core.$loose>;
|
|
632
|
-
type
|
|
640
|
+
type DashboardLayoutInput = z.infer<typeof DashboardLayoutInput>;
|
|
633
641
|
declare const DashboardUpdateInput: z.ZodObject<{
|
|
634
642
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
635
643
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -645,8 +653,8 @@ declare const DashboardUpdateInput: z.ZodObject<{
|
|
|
645
653
|
enable_embedding: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
646
654
|
embedding_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
647
655
|
embedding_params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
648
|
-
disabled: "disabled";
|
|
649
656
|
enabled: "enabled";
|
|
657
|
+
disabled: "disabled";
|
|
650
658
|
locked: "locked";
|
|
651
659
|
}>>>>;
|
|
652
660
|
parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -925,11 +933,11 @@ declare const DashboardCopy: z.ZodObject<{
|
|
|
925
933
|
}, z.core.$loose>;
|
|
926
934
|
type DashboardCopy = z.infer<typeof DashboardCopy>;
|
|
927
935
|
declare const DashboardCopyCompact: z.ZodObject<{
|
|
928
|
-
name: z.ZodString;
|
|
929
936
|
id: z.ZodNumber;
|
|
930
|
-
|
|
937
|
+
name: z.ZodString;
|
|
931
938
|
description: z.ZodNullable<z.ZodString>;
|
|
932
939
|
archived: z.ZodBoolean;
|
|
940
|
+
collection_id: z.ZodNullable<z.ZodNumber>;
|
|
933
941
|
dashcards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
934
942
|
id: z.ZodNumber;
|
|
935
943
|
dashboard_id: z.ZodNumber;
|
|
@@ -950,8 +958,8 @@ declare const DashboardCopyCompact: z.ZodObject<{
|
|
|
950
958
|
size_y: z.ZodNumber;
|
|
951
959
|
}, z.core.$strip>>>;
|
|
952
960
|
tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
953
|
-
name: z.ZodString;
|
|
954
961
|
id: z.ZodNumber;
|
|
962
|
+
name: z.ZodString;
|
|
955
963
|
dashboard_id: z.ZodNumber;
|
|
956
964
|
position: z.ZodOptional<z.ZodNumber>;
|
|
957
965
|
}, z.core.$strip>>>;
|
|
@@ -967,4 +975,4 @@ type DashboardCopyCompact = z.infer<typeof DashboardCopyCompact>;
|
|
|
967
975
|
declare const DashboardParameterConstraints: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
968
976
|
type DashboardParameterConstraints = z.infer<typeof DashboardParameterConstraints>;
|
|
969
977
|
//#endregion
|
|
970
|
-
export {
|
|
978
|
+
export { dashboardDetailSchema as S, DashcardDetail as _, DashboardCopyInput as a, DashcardVisualizationSettings as b, DashboardLayoutInput as c, DashboardTab as d, DashboardTabCompact as f, DashcardCompact as g, Dashcard as h, DashboardCopyCompact as i, DashboardListFilter as l, DashboardUpdateInput as m, DashboardCompact as n, DashboardCreateInput as o, DashboardUncopiedCard as p, DashboardCopy as r, DashboardDetail as s, Dashboard as t, DashboardParameterConstraints as u, DashcardPatchInput as v, UnreadableCard as x, DashcardVirtualCard as y };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { o as Features } from "./features-
|
|
1
|
+
import { o as Features } from "./features-SMSfJhB6.js";
|
|
2
|
+
import { r as InputGate } from "./input-gates-DwKoTJVQ.js";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
//#region src/domain/data-action.d.ts
|
|
4
5
|
declare const DataActionParameter: z.ZodObject<{
|
|
@@ -40,11 +41,11 @@ type DataAction = z.infer<typeof DataAction>;
|
|
|
40
41
|
declare function dataActionSchema(features: Features): z.ZodType<DataAction>;
|
|
41
42
|
declare const DataActionCompact: z.ZodObject<{
|
|
42
43
|
type: z.ZodString;
|
|
43
|
-
name: z.ZodString;
|
|
44
|
-
database_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
44
|
id: z.ZodNumber;
|
|
46
|
-
|
|
45
|
+
name: z.ZodString;
|
|
47
46
|
archived: z.ZodBoolean;
|
|
47
|
+
collection_id: z.ZodNullable<z.ZodNumber>;
|
|
48
|
+
database_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
48
49
|
}, z.core.$strip>;
|
|
49
50
|
type DataActionCompact = z.infer<typeof DataActionCompact>;
|
|
50
51
|
declare const DataActionCreateInput: z.ZodObject<{
|
|
@@ -65,6 +66,7 @@ declare const DataActionCreateInput: z.ZodObject<{
|
|
|
65
66
|
visualization_settings: z.ZodOptional<z.ZodUnknown>;
|
|
66
67
|
}, z.core.$strict>;
|
|
67
68
|
type DataActionCreateInput = z.infer<typeof DataActionCreateInput>;
|
|
69
|
+
declare const DATA_ACTION_COLLECTION_GATE: InputGate;
|
|
68
70
|
declare const DataActionUpdateInput: z.ZodObject<{
|
|
69
71
|
name: z.ZodOptional<z.ZodString>;
|
|
70
72
|
database_id: z.ZodOptional<z.ZodNumber>;
|
|
@@ -92,4 +94,4 @@ declare const DataActionExecuteResult: z.ZodObject<{
|
|
|
92
94
|
}, z.core.$loose>;
|
|
93
95
|
type DataActionExecuteResult = z.infer<typeof DataActionExecuteResult>;
|
|
94
96
|
//#endregion
|
|
95
|
-
export {
|
|
97
|
+
export { DataActionExecuteInput as a, DataActionUpdateInput as c, DataActionCreateInput as i, dataActionSchema as l, DataAction as n, DataActionExecuteResult as o, DataActionCompact as r, DataActionParameter as s, DATA_ACTION_COLLECTION_GATE as t };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/data-app.d.ts
|
|
3
|
+
declare const DataAppSlug: z.ZodString;
|
|
4
|
+
declare const DataApp: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
display_name: z.ZodString;
|
|
8
|
+
description: z.ZodNullable<z.ZodString>;
|
|
9
|
+
version: z.ZodNumber;
|
|
10
|
+
outdated: z.ZodBoolean;
|
|
11
|
+
bundle_path: z.ZodString;
|
|
12
|
+
enabled: z.ZodBoolean;
|
|
13
|
+
allowed_hosts: z.ZodArray<z.ZodString>;
|
|
14
|
+
resource_collection_id: z.ZodNumber;
|
|
15
|
+
bundle_hash: z.ZodNullable<z.ZodString>;
|
|
16
|
+
created_at: z.ZodString;
|
|
17
|
+
updated_at: z.ZodString;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
type DataApp = z.infer<typeof DataApp>;
|
|
20
|
+
declare const DataAppSummary: z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
display_name: z.ZodString;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
type DataAppSummary = z.infer<typeof DataAppSummary>;
|
|
25
|
+
declare const DataAppEntry: z.ZodUnion<readonly [z.ZodObject<{
|
|
26
|
+
id: z.ZodNumber;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
display_name: z.ZodString;
|
|
29
|
+
description: z.ZodNullable<z.ZodString>;
|
|
30
|
+
version: z.ZodNumber;
|
|
31
|
+
outdated: z.ZodBoolean;
|
|
32
|
+
bundle_path: z.ZodString;
|
|
33
|
+
enabled: z.ZodBoolean;
|
|
34
|
+
allowed_hosts: z.ZodArray<z.ZodString>;
|
|
35
|
+
resource_collection_id: z.ZodNumber;
|
|
36
|
+
bundle_hash: z.ZodNullable<z.ZodString>;
|
|
37
|
+
created_at: z.ZodString;
|
|
38
|
+
updated_at: z.ZodString;
|
|
39
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
display_name: z.ZodString;
|
|
42
|
+
}, z.core.$strict>]>;
|
|
43
|
+
type DataAppEntry = z.infer<typeof DataAppEntry>;
|
|
44
|
+
declare const DataAppCompact: z.ZodObject<{
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
display_name: z.ZodString;
|
|
47
|
+
outdated: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
resource_collection_id: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
type DataAppCompact = z.infer<typeof DataAppCompact>;
|
|
52
|
+
declare const DataAppListFilter: z.ZodObject<{
|
|
53
|
+
available: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
type DataAppListFilter = z.infer<typeof DataAppListFilter>;
|
|
56
|
+
declare const DataAppCreateInput: z.ZodObject<{
|
|
57
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
58
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
bundle_path: z.ZodOptional<z.ZodString>;
|
|
61
|
+
allowed_hosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
name: z.ZodString;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
type DataAppCreateInput = z.infer<typeof DataAppCreateInput>;
|
|
66
|
+
declare const DataAppUpdateInput: z.ZodObject<{
|
|
67
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
68
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
bundle_path: z.ZodOptional<z.ZodString>;
|
|
71
|
+
allowed_hosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
72
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
type DataAppUpdateInput = z.infer<typeof DataAppUpdateInput>;
|
|
75
|
+
//#endregion
|
|
76
|
+
export { DataAppListFilter as a, DataAppUpdateInput as c, DataAppEntry as i, DataAppCompact as n, DataAppSlug as o, DataAppCreateInput as r, DataAppSummary as s, DataApp as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as RequestOptions, h as Transport } from "./transport-
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
|
|
2
2
|
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
3
|
import { a as PollOptions } from "./poll-CIwnee7h.js";
|
|
4
|
-
import { i as DatabaseListInclude, o as DatabaseSyncResult, r as DatabaseGetInclude, s as DatabaseUpdateInput, t as Database, u as DatabaseWithSettings } from "./database-
|
|
5
|
-
import {
|
|
4
|
+
import { i as DatabaseListInclude, o as DatabaseSyncResult, r as DatabaseGetInclude, s as DatabaseUpdateInput, t as Database, u as DatabaseWithSettings } from "./database-BxqDmfcj.js";
|
|
5
|
+
import { a as Table } from "./table-Od6uvDVW.js";
|
|
6
6
|
//#region src/resources/database.d.ts
|
|
7
7
|
interface DatabaseListParams {
|
|
8
8
|
include?: DatabaseListInclude | undefined;
|
|
@@ -8,8 +8,8 @@ declare const DatabaseVirtualTable: z.ZodObject<{
|
|
|
8
8
|
description: z.ZodNullable<z.ZodString>;
|
|
9
9
|
type: z.ZodEnum<{
|
|
10
10
|
metric: "metric";
|
|
11
|
-
question: "question";
|
|
12
11
|
model: "model";
|
|
12
|
+
question: "question";
|
|
13
13
|
}>;
|
|
14
14
|
moderated_status: z.ZodNullable<z.ZodString>;
|
|
15
15
|
entity_id: z.ZodNullable<z.ZodString>;
|
|
@@ -18,8 +18,8 @@ type DatabaseVirtualTable = z.infer<typeof DatabaseVirtualTable>;
|
|
|
18
18
|
declare const DatabaseVirtualTableCompact: z.ZodObject<{
|
|
19
19
|
type: z.ZodEnum<{
|
|
20
20
|
metric: "metric";
|
|
21
|
-
question: "question";
|
|
22
21
|
model: "model";
|
|
22
|
+
question: "question";
|
|
23
23
|
}>;
|
|
24
24
|
id: z.ZodString;
|
|
25
25
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -379,8 +379,8 @@ declare const Database: z.ZodObject<{
|
|
|
379
379
|
description: z.ZodNullable<z.ZodString>;
|
|
380
380
|
type: z.ZodEnum<{
|
|
381
381
|
metric: "metric";
|
|
382
|
-
question: "question";
|
|
383
382
|
model: "model";
|
|
383
|
+
question: "question";
|
|
384
384
|
}>;
|
|
385
385
|
moderated_status: z.ZodNullable<z.ZodString>;
|
|
386
386
|
entity_id: z.ZodNullable<z.ZodString>;
|
|
@@ -388,13 +388,13 @@ declare const Database: z.ZodObject<{
|
|
|
388
388
|
}, z.core.$loose>;
|
|
389
389
|
type Database = z.infer<typeof Database>;
|
|
390
390
|
declare const DatabaseCompact: z.ZodObject<{
|
|
391
|
-
name: z.ZodString;
|
|
392
391
|
id: z.ZodNumber;
|
|
392
|
+
name: z.ZodString;
|
|
393
393
|
engine: z.ZodOptional<z.ZodString>;
|
|
394
394
|
is_saved_questions: z.ZodOptional<z.ZodBoolean>;
|
|
395
395
|
tables: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
396
|
-
name: z.ZodString;
|
|
397
396
|
id: z.ZodNumber;
|
|
397
|
+
name: z.ZodString;
|
|
398
398
|
description: z.ZodNullable<z.ZodString>;
|
|
399
399
|
display_name: z.ZodString;
|
|
400
400
|
db_id: z.ZodNumber;
|
|
@@ -416,8 +416,8 @@ declare const DatabaseCompact: z.ZodObject<{
|
|
|
416
416
|
}>>;
|
|
417
417
|
is_published: z.ZodOptional<z.ZodBoolean>;
|
|
418
418
|
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
419
|
-
name: z.ZodString;
|
|
420
419
|
id: z.ZodNumber;
|
|
420
|
+
name: z.ZodString;
|
|
421
421
|
description: z.ZodNullable<z.ZodString>;
|
|
422
422
|
display_name: z.ZodString;
|
|
423
423
|
table_id: z.ZodNumber;
|
|
@@ -586,8 +586,8 @@ declare const DatabaseCompact: z.ZodObject<{
|
|
|
586
586
|
}, z.core.$strip>, z.ZodObject<{
|
|
587
587
|
type: z.ZodEnum<{
|
|
588
588
|
metric: "metric";
|
|
589
|
-
question: "question";
|
|
590
589
|
model: "model";
|
|
590
|
+
question: "question";
|
|
591
591
|
}>;
|
|
592
592
|
id: z.ZodString;
|
|
593
593
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -961,8 +961,8 @@ declare const DatabaseWithSettings: z.ZodObject<{
|
|
|
961
961
|
description: z.ZodNullable<z.ZodString>;
|
|
962
962
|
type: z.ZodEnum<{
|
|
963
963
|
metric: "metric";
|
|
964
|
-
question: "question";
|
|
965
964
|
model: "model";
|
|
965
|
+
question: "question";
|
|
966
966
|
}>;
|
|
967
967
|
moderated_status: z.ZodNullable<z.ZodString>;
|
|
968
968
|
entity_id: z.ZodNullable<z.ZodString>;
|
|
@@ -973,8 +973,8 @@ declare const DatabaseWithSettings: z.ZodObject<{
|
|
|
973
973
|
}, z.core.$loose>;
|
|
974
974
|
type DatabaseWithSettings = z.infer<typeof DatabaseWithSettings>;
|
|
975
975
|
declare const DatabaseWithSettingsCompact: z.ZodObject<{
|
|
976
|
-
name: z.ZodString;
|
|
977
976
|
id: z.ZodNumber;
|
|
977
|
+
name: z.ZodString;
|
|
978
978
|
engine: z.ZodOptional<z.ZodString>;
|
|
979
979
|
settings: z.ZodNullable<z.ZodObject<{
|
|
980
980
|
"database-enable-actions": z.ZodOptional<z.ZodBoolean>;
|