@metabase/client 0.1.0 → 0.1.2
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 +25 -0
- package/README.md +10 -6
- package/dist/api-key-DJeN1-7G.d.ts +46 -0
- package/dist/auth/credential.d.ts +1 -1
- package/dist/auth/oauth-login.d.ts +1 -1
- package/dist/auth/oauth-login.js +1 -1
- package/dist/auth/oauth-session.d.ts +1 -1
- package/dist/{card-BZx4NSr-.d.ts → card-CbV6hLYH.d.ts} +4 -4
- package/dist/{card-B6merEUN.d.ts → card-CrSywvOt.d.ts} +18 -18
- package/dist/{client-DNRvXFRm.d.ts → client-cBi6_RQs.d.ts} +289 -185
- package/dist/client.d.ts +1 -1
- package/dist/client.js +4 -0
- package/dist/{collection-Bib61WiV.d.ts → collection-Bmtisr3r.d.ts} +47 -47
- package/dist/{collection-CqtGPi4W.d.ts → collection-Q9FNMiRh.d.ts} +18 -4
- package/dist/{credential-6aOEGqMH.d.ts → credential-B6fKSvqp.d.ts} +1 -1
- package/dist/{dashboard-XTe46250.d.ts → dashboard-CknUcTp8.d.ts} +3 -3
- package/dist/{dashboard-z9i1VUZC.d.ts → dashboard-DBdEehA9.d.ts} +33 -25
- package/dist/{data-action-rS27f2Ji.d.ts → data-action-CqqZ0JYg.d.ts} +6 -4
- package/dist/data-app-MoMS9VUr.d.ts +76 -0
- package/dist/{database-DqTespfa.d.ts → database-Bs5WQOOZ.d.ts} +3 -3
- package/dist/{database-BLUMlywE.d.ts → database-CYNLJ8AZ.d.ts} +18 -18
- package/dist/{dataset-C6lX1-cr.d.ts → dataset-cg8ZZrOP.d.ts} +85 -85
- package/dist/{dataset-Cj3XuKLe.d.ts → dataset-dzWljE_C.d.ts} +3 -3
- package/dist/{dependency-fN5_7a22.d.ts → dependency-CL-YG9KH.d.ts} +26 -26
- package/dist/{dependency-D8Qs5Xdx.d.ts → dependency-VqvLTDAU.d.ts} +248 -196
- 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/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/moderation-review.d.ts +1 -1
- package/dist/domain/notification.d.ts +2 -2
- package/dist/domain/notification.js +6 -1
- package/dist/domain/parameter.d.ts +1 -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-dag-run.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-aQSffx0o.d.ts} +40 -40
- package/dist/{erd-BujD227Y.d.ts → erd-DCgdEC2S.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-ozrfbvUd.d.ts} +2 -2
- package/dist/{field-BCRO19mk.d.ts → field-tqQPtVuR.d.ts} +9 -7
- package/dist/{git-sync-gAMKsZgN.d.ts → git-sync-5lFWX1ds.d.ts} +3 -3
- package/dist/{git-sync-DNXrNVCW.d.ts → git-sync-QL9Nu6gP.d.ts} +10 -10
- package/dist/{glossary-CqFlzW33.d.ts → glossary-DwS7QVrl.d.ts} +1 -1
- package/dist/http/errors.d.ts +1 -1
- package/dist/http/oauth.d.ts +1 -1
- package/dist/http/oauth.js +47 -36
- package/dist/http/transport.d.ts +1 -1
- package/dist/index.d.ts +48 -46
- package/dist/index.js +8 -6
- 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-DwGOvRtS.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-CuMqPbQX.d.ts → measure-CInoXeyH.d.ts} +1 -1
- package/dist/{measure-KuXdjZYJ.d.ts → measure-CgH14YQZ.d.ts} +1 -1
- package/dist/{metric-yvehaVCS.d.ts → metric-CYOmbcM5.d.ts} +10 -10
- package/dist/{moderation-review-B4RUTZ6_.d.ts → moderation-review-CWUQ3_HL.d.ts} +4 -4
- package/dist/{notification-BT2TDAd_.d.ts → notification-BY2JEjKp.d.ts} +68 -4
- package/dist/{notification-BiegPoSD.d.ts → notification-D-Hp82Pn.d.ts} +3 -3
- package/dist/{oauth-C4ordeoJ.d.ts → oauth-CVoZpuq8.d.ts} +4 -2
- package/dist/{oauth-login-D734Jvbq.js → oauth-login--tDagiZu.js} +29 -11
- package/dist/{oauth-login-CJsT_3EE.d.ts → oauth-login-SZ4Csai8.d.ts} +3 -2
- package/dist/{oauth-session-BlIlcd8Q.d.ts → oauth-session-COLH4puN.d.ts} +1 -1
- package/dist/{paginate-DZWvWvbm.d.ts → paginate-CaJ5usdp.d.ts} +1 -1
- package/dist/paginate.d.ts +1 -1
- package/dist/{parameter-ak-J-IOj.d.ts → parameter-BYo7uR-J.d.ts} +2 -2
- package/dist/{pulse-dylocLd9.d.ts → pulse-BTpSNxhT.d.ts} +2 -2
- package/dist/{pulse-CMc1Rwdj.d.ts → pulse-BUlfrJZH.d.ts} +23 -21
- package/dist/{replacement-CyvtbxGg.d.ts → replacement-BQian4vA.d.ts} +23 -23
- package/dist/{replacement-S9U3gApY.d.ts → replacement-Dbtvvrmz.d.ts} +11 -11
- package/dist/{requirement-check-CIA5IHC1.d.ts → requirement-check-CHHEHXcj.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 +35 -6
- 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 +3 -10
- 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 +2 -2
- package/dist/resources/transform-inspector.d.ts +4 -4
- 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-DNEw6S93.d.ts} +7 -5
- package/dist/{search-BxJipLN6.d.ts → search-BQWkdVg1.d.ts} +2 -2
- package/dist/{search-NZR6iRBs.d.ts → search-tK5lmRb8.d.ts} +23 -23
- package/dist/{segment-pj3wklGe.d.ts → segment-CbAgVO-5.d.ts} +1 -1
- package/dist/{segment-D2i34X9l.d.ts → segment-jyhBtOAZ.d.ts} +2 -2
- package/dist/{setup-Ez_U7GmM.d.ts → setup-JqcJ2unJ.d.ts} +1 -1
- package/dist/signal.d.ts +3 -2
- package/dist/signal.js +9 -4
- package/dist/{snippet-hEV429Pv.d.ts → snippet-C_Ilx7tR.d.ts} +2 -2
- package/dist/{snippet-RnnWa4TL.d.ts → snippet-DsgohpTV.d.ts} +2 -2
- package/dist/{table-B_lfuaHc.d.ts → table-B1pQSpTA.d.ts} +14 -14
- package/dist/{table-B3-UaPHa.d.ts → table-BAl8aPZZ.d.ts} +49 -44
- package/dist/{timeline-C2IEcRlP.d.ts → timeline-BdLvwRnl.d.ts} +2 -2
- package/dist/{timeline-folD3mQ_.d.ts → timeline-BfX1lMob.d.ts} +24 -24
- package/dist/{transform-CXOT5kFe.d.ts → transform-Ds74yPiY.d.ts} +48 -34
- package/dist/{transform-CDurgE1D.d.ts → transform-DwnIcpqV.d.ts} +153 -37
- package/dist/{transform-dag-run-BgZwv1yx.d.ts → transform-dag-run-BSrdrjaK.d.ts} +4 -4
- package/dist/{transform-inspector-BUYBt6--.d.ts → transform-inspector-BMaRqcRM.d.ts} +8 -8
- package/dist/{transform-job-29P6BULe.d.ts → transform-job-C85GxBHj.d.ts} +9 -9
- package/dist/{transform-job-CTJImaOd.d.ts → transform-job-Dfp9Ox0l.d.ts} +7 -5
- 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-C3hiZ4AV.d.ts} +2 -2
- package/dist/{transform-test-BwuyrHpT.d.ts → transform-test-DROPvrkI.d.ts} +2 -2
- package/dist/{transport-E0ZaPNWJ.d.ts → transport-CS11mEqI.d.ts} +20 -6
- package/dist/{upload-B7PG3ePk.d.ts → upload-Bx1D7eNy.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-cBi6_RQs.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,37 +34,37 @@ 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
|
+
transform: "transform";
|
|
38
|
+
metric: "metric";
|
|
39
|
+
table: "table";
|
|
37
40
|
card: "card";
|
|
38
|
-
collection: "collection";
|
|
39
41
|
dashboard: "dashboard";
|
|
40
42
|
dataset: "dataset";
|
|
43
|
+
snippet: "snippet";
|
|
44
|
+
collection: "collection";
|
|
41
45
|
document: "document";
|
|
42
|
-
|
|
46
|
+
exploration: "exploration";
|
|
43
47
|
measure: "measure";
|
|
44
48
|
pulse: "pulse";
|
|
45
|
-
snippet: "snippet";
|
|
46
|
-
table: "table";
|
|
47
49
|
timeline: "timeline";
|
|
48
|
-
transform: "transform";
|
|
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
|
+
transform: "transform";
|
|
56
|
+
metric: "metric";
|
|
57
|
+
table: "table";
|
|
55
58
|
card: "card";
|
|
56
|
-
collection: "collection";
|
|
57
59
|
dashboard: "dashboard";
|
|
58
60
|
dataset: "dataset";
|
|
61
|
+
snippet: "snippet";
|
|
62
|
+
collection: "collection";
|
|
59
63
|
document: "document";
|
|
60
|
-
|
|
64
|
+
exploration: "exploration";
|
|
61
65
|
measure: "measure";
|
|
62
66
|
pulse: "pulse";
|
|
63
|
-
snippet: "snippet";
|
|
64
|
-
table: "table";
|
|
65
67
|
timeline: "timeline";
|
|
66
|
-
transform: "transform";
|
|
67
|
-
exploration: "exploration";
|
|
68
68
|
no_models: "no_models";
|
|
69
69
|
"indexed-entity": "indexed-entity";
|
|
70
70
|
action: "action";
|
|
@@ -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,44 +123,44 @@ 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>>;
|
|
131
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
132
|
+
is_personal: z.ZodOptional<z.ZodBoolean>;
|
|
130
133
|
authority_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
131
134
|
official: "official";
|
|
132
135
|
}>>>;
|
|
133
|
-
is_personal: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
-
is_remote_synced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
135
|
-
parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
136
|
-
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
136
|
namespace: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
137
|
+
"data-apps": "data-apps";
|
|
138
138
|
transforms: "transforms";
|
|
139
139
|
snippets: "snippets";
|
|
140
140
|
analytics: "analytics";
|
|
141
141
|
"shared-tenant-collection": "shared-tenant-collection";
|
|
142
142
|
"tenant-specific": "tenant-specific";
|
|
143
|
-
"data-apps": "data-apps";
|
|
144
143
|
"data-actions": "data-actions";
|
|
145
144
|
}>>>;
|
|
145
|
+
is_remote_synced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
146
146
|
}, z.core.$strip>;
|
|
147
147
|
type CollectionCompact = z.infer<typeof CollectionCompact>;
|
|
148
148
|
declare const CollectionItem: z.ZodObject<{
|
|
149
149
|
id: z.ZodNumber;
|
|
150
150
|
model: z.ZodEnum<{
|
|
151
|
+
transform: "transform";
|
|
152
|
+
metric: "metric";
|
|
153
|
+
table: "table";
|
|
151
154
|
card: "card";
|
|
152
|
-
collection: "collection";
|
|
153
155
|
dashboard: "dashboard";
|
|
154
156
|
dataset: "dataset";
|
|
157
|
+
snippet: "snippet";
|
|
158
|
+
collection: "collection";
|
|
155
159
|
document: "document";
|
|
156
|
-
|
|
160
|
+
exploration: "exploration";
|
|
157
161
|
measure: "measure";
|
|
158
162
|
pulse: "pulse";
|
|
159
|
-
snippet: "snippet";
|
|
160
|
-
table: "table";
|
|
161
163
|
timeline: "timeline";
|
|
162
|
-
transform: "transform";
|
|
163
|
-
exploration: "exploration";
|
|
164
164
|
no_models: "no_models";
|
|
165
165
|
"indexed-entity": "indexed-entity";
|
|
166
166
|
action: "action";
|
|
@@ -178,29 +178,29 @@ 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>;
|
|
186
185
|
model: z.ZodEnum<{
|
|
186
|
+
transform: "transform";
|
|
187
|
+
metric: "metric";
|
|
188
|
+
table: "table";
|
|
187
189
|
card: "card";
|
|
188
|
-
collection: "collection";
|
|
189
190
|
dashboard: "dashboard";
|
|
190
191
|
dataset: "dataset";
|
|
192
|
+
snippet: "snippet";
|
|
193
|
+
collection: "collection";
|
|
191
194
|
document: "document";
|
|
192
|
-
|
|
195
|
+
exploration: "exploration";
|
|
193
196
|
measure: "measure";
|
|
194
197
|
pulse: "pulse";
|
|
195
|
-
snippet: "snippet";
|
|
196
|
-
table: "table";
|
|
197
198
|
timeline: "timeline";
|
|
198
|
-
transform: "transform";
|
|
199
|
-
exploration: "exploration";
|
|
200
199
|
no_models: "no_models";
|
|
201
200
|
"indexed-entity": "indexed-entity";
|
|
202
201
|
action: "action";
|
|
203
202
|
}>;
|
|
203
|
+
collection_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
204
204
|
}, z.core.$strip>;
|
|
205
205
|
type CollectionItemCompact = z.infer<typeof CollectionItemCompact>;
|
|
206
206
|
declare const CollectionTreeNodeBase: z.ZodObject<{
|
|
@@ -222,37 +222,37 @@ declare const CollectionTreeNodeBase: z.ZodObject<{
|
|
|
222
222
|
official: "official";
|
|
223
223
|
}>>>;
|
|
224
224
|
here: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
225
|
+
transform: "transform";
|
|
226
|
+
metric: "metric";
|
|
227
|
+
table: "table";
|
|
225
228
|
card: "card";
|
|
226
|
-
collection: "collection";
|
|
227
229
|
dashboard: "dashboard";
|
|
228
230
|
dataset: "dataset";
|
|
231
|
+
snippet: "snippet";
|
|
232
|
+
collection: "collection";
|
|
229
233
|
document: "document";
|
|
230
|
-
|
|
234
|
+
exploration: "exploration";
|
|
231
235
|
measure: "measure";
|
|
232
236
|
pulse: "pulse";
|
|
233
|
-
snippet: "snippet";
|
|
234
|
-
table: "table";
|
|
235
237
|
timeline: "timeline";
|
|
236
|
-
transform: "transform";
|
|
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
|
+
transform: "transform";
|
|
244
|
+
metric: "metric";
|
|
245
|
+
table: "table";
|
|
243
246
|
card: "card";
|
|
244
|
-
collection: "collection";
|
|
245
247
|
dashboard: "dashboard";
|
|
246
248
|
dataset: "dataset";
|
|
249
|
+
snippet: "snippet";
|
|
250
|
+
collection: "collection";
|
|
247
251
|
document: "document";
|
|
248
|
-
|
|
252
|
+
exploration: "exploration";
|
|
249
253
|
measure: "measure";
|
|
250
254
|
pulse: "pulse";
|
|
251
|
-
snippet: "snippet";
|
|
252
|
-
table: "table";
|
|
253
255
|
timeline: "timeline";
|
|
254
|
-
transform: "transform";
|
|
255
|
-
exploration: "exploration";
|
|
256
256
|
no_models: "no_models";
|
|
257
257
|
"indexed-entity": "indexed-entity";
|
|
258
258
|
action: "action";
|
|
@@ -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-CS11mEqI.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-CaJ5usdp.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-Bmtisr3r.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" | "metric" | "table" | "card" | "dashboard" | "dataset" | "snippet" | "collection" | "document" | "exploration" | "measure" | "pulse" | "timeline" | "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,7 +1,7 @@
|
|
|
1
|
-
import { f as RequestOptions, h as Transport } from "./transport-
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-CS11mEqI.js";
|
|
2
2
|
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
-
import { _ as
|
|
4
|
-
import { s as ParameterValues } from "./parameter-
|
|
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-DBdEehA9.js";
|
|
4
|
+
import { s as ParameterValues } from "./parameter-BYo7uR-J.js";
|
|
5
5
|
//#region src/resources/dashboard.d.ts
|
|
6
6
|
interface DashboardListParams {
|
|
7
7
|
f?: DashboardListFilter | undefined;
|
|
@@ -32,9 +32,7 @@ type Dashcard = z.infer<typeof Dashcard>;
|
|
|
32
32
|
declare const DashcardCompact: z.ZodObject<{
|
|
33
33
|
id: z.ZodNumber;
|
|
34
34
|
dashboard_id: z.ZodNumber;
|
|
35
|
-
col: z.ZodNumber;
|
|
36
35
|
card_id: z.ZodNullable<z.ZodNumber>;
|
|
37
|
-
row: z.ZodNumber;
|
|
38
36
|
dashboard_tab_id: z.ZodNullable<z.ZodNumber>;
|
|
39
37
|
parameter_mappings: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
40
38
|
parameter_id: z.ZodString;
|
|
@@ -45,6 +43,8 @@ declare const DashcardCompact: z.ZodObject<{
|
|
|
45
43
|
}, z.core.$loose>]>], null>, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>], null>, z.ZodTuple<[z.ZodLiteral<"text-tag">, z.ZodString], null>, z.ZodNumber, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>;
|
|
46
44
|
card_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
47
45
|
}, z.core.$loose>>>;
|
|
46
|
+
row: z.ZodNumber;
|
|
47
|
+
col: z.ZodNumber;
|
|
48
48
|
size_x: z.ZodNumber;
|
|
49
49
|
size_y: z.ZodNumber;
|
|
50
50
|
}, z.core.$strip>;
|
|
@@ -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;
|
|
@@ -117,16 +117,16 @@ declare const DashcardDetail: z.ZodObject<{
|
|
|
117
117
|
id: z.ZodNumber;
|
|
118
118
|
name: z.ZodString;
|
|
119
119
|
type: z.ZodEnum<{
|
|
120
|
-
metric: "metric";
|
|
121
120
|
question: "question";
|
|
122
121
|
model: "model";
|
|
122
|
+
metric: "metric";
|
|
123
123
|
}>;
|
|
124
124
|
display: z.ZodString;
|
|
125
125
|
description: z.ZodNullable<z.ZodString>;
|
|
126
126
|
archived: z.ZodBoolean;
|
|
127
127
|
query_type: z.ZodNullable<z.ZodEnum<{
|
|
128
|
-
query: "query";
|
|
129
128
|
native: "native";
|
|
129
|
+
query: "query";
|
|
130
130
|
}>>;
|
|
131
131
|
database_id: z.ZodNullable<z.ZodNumber>;
|
|
132
132
|
table_id: z.ZodNullable<z.ZodNumber>;
|
|
@@ -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>;
|
|
@@ -199,7 +199,6 @@ declare const Dashboard: z.ZodObject<{
|
|
|
199
199
|
id: "id";
|
|
200
200
|
date: "date";
|
|
201
201
|
text: "text";
|
|
202
|
-
"temporal-unit": "temporal-unit";
|
|
203
202
|
"date/single": "date/single";
|
|
204
203
|
category: "category";
|
|
205
204
|
"location/city": "location/city";
|
|
@@ -211,6 +210,7 @@ declare const Dashboard: z.ZodObject<{
|
|
|
211
210
|
"date/quarter-year": "date/quarter-year";
|
|
212
211
|
"date/relative": "date/relative";
|
|
213
212
|
"date/all-options": "date/all-options";
|
|
213
|
+
"temporal-unit": "temporal-unit";
|
|
214
214
|
"number/!=": "number/!=";
|
|
215
215
|
"number/<=": "number/<=";
|
|
216
216
|
"number/=": "number/=";
|
|
@@ -329,7 +329,6 @@ declare const DashboardDetail: z.ZodObject<{
|
|
|
329
329
|
id: "id";
|
|
330
330
|
date: "date";
|
|
331
331
|
text: "text";
|
|
332
|
-
"temporal-unit": "temporal-unit";
|
|
333
332
|
"date/single": "date/single";
|
|
334
333
|
category: "category";
|
|
335
334
|
"location/city": "location/city";
|
|
@@ -341,6 +340,7 @@ declare const DashboardDetail: z.ZodObject<{
|
|
|
341
340
|
"date/quarter-year": "date/quarter-year";
|
|
342
341
|
"date/relative": "date/relative";
|
|
343
342
|
"date/all-options": "date/all-options";
|
|
343
|
+
"temporal-unit": "temporal-unit";
|
|
344
344
|
"number/!=": "number/!=";
|
|
345
345
|
"number/<=": "number/<=";
|
|
346
346
|
"number/=": "number/=";
|
|
@@ -434,16 +434,16 @@ declare const DashboardDetail: z.ZodObject<{
|
|
|
434
434
|
id: z.ZodNumber;
|
|
435
435
|
name: z.ZodString;
|
|
436
436
|
type: z.ZodEnum<{
|
|
437
|
-
metric: "metric";
|
|
438
437
|
question: "question";
|
|
439
438
|
model: "model";
|
|
439
|
+
metric: "metric";
|
|
440
440
|
}>;
|
|
441
441
|
display: z.ZodString;
|
|
442
442
|
description: z.ZodNullable<z.ZodString>;
|
|
443
443
|
archived: z.ZodBoolean;
|
|
444
444
|
query_type: z.ZodNullable<z.ZodEnum<{
|
|
445
|
-
query: "query";
|
|
446
445
|
native: "native";
|
|
446
|
+
query: "query";
|
|
447
447
|
}>>;
|
|
448
448
|
database_id: z.ZodNullable<z.ZodNumber>;
|
|
449
449
|
table_id: z.ZodNullable<z.ZodNumber>;
|
|
@@ -484,18 +484,21 @@ 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;
|
|
496
|
-
col: z.ZodNumber;
|
|
497
501
|
card_id: z.ZodNullable<z.ZodNumber>;
|
|
498
|
-
row: z.ZodNumber;
|
|
499
502
|
dashboard_tab_id: z.ZodNullable<z.ZodNumber>;
|
|
500
503
|
parameter_mappings: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
501
504
|
parameter_id: z.ZodString;
|
|
@@ -506,12 +509,14 @@ declare const DashboardCompact: z.ZodObject<{
|
|
|
506
509
|
}, z.core.$loose>]>], null>, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>], null>, z.ZodTuple<[z.ZodLiteral<"text-tag">, z.ZodString], null>, z.ZodNumber, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>;
|
|
507
510
|
card_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
508
511
|
}, z.core.$loose>>>;
|
|
512
|
+
row: z.ZodNumber;
|
|
513
|
+
col: z.ZodNumber;
|
|
509
514
|
size_x: z.ZodNumber;
|
|
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>>>;
|
|
@@ -528,7 +533,6 @@ declare const DashboardCreateInput: z.ZodObject<{
|
|
|
528
533
|
id: "id";
|
|
529
534
|
date: "date";
|
|
530
535
|
text: "text";
|
|
531
|
-
"temporal-unit": "temporal-unit";
|
|
532
536
|
"date/single": "date/single";
|
|
533
537
|
category: "category";
|
|
534
538
|
"location/city": "location/city";
|
|
@@ -540,6 +544,7 @@ declare const DashboardCreateInput: z.ZodObject<{
|
|
|
540
544
|
"date/quarter-year": "date/quarter-year";
|
|
541
545
|
"date/relative": "date/relative";
|
|
542
546
|
"date/all-options": "date/all-options";
|
|
547
|
+
"temporal-unit": "temporal-unit";
|
|
543
548
|
"number/!=": "number/!=";
|
|
544
549
|
"number/<=": "number/<=";
|
|
545
550
|
"number/=": "number/=";
|
|
@@ -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>>;
|
|
@@ -657,7 +665,6 @@ declare const DashboardUpdateInput: z.ZodObject<{
|
|
|
657
665
|
id: "id";
|
|
658
666
|
date: "date";
|
|
659
667
|
text: "text";
|
|
660
|
-
"temporal-unit": "temporal-unit";
|
|
661
668
|
"date/single": "date/single";
|
|
662
669
|
category: "category";
|
|
663
670
|
"location/city": "location/city";
|
|
@@ -669,6 +676,7 @@ declare const DashboardUpdateInput: z.ZodObject<{
|
|
|
669
676
|
"date/quarter-year": "date/quarter-year";
|
|
670
677
|
"date/relative": "date/relative";
|
|
671
678
|
"date/all-options": "date/all-options";
|
|
679
|
+
"temporal-unit": "temporal-unit";
|
|
672
680
|
"number/!=": "number/!=";
|
|
673
681
|
"number/<=": "number/<=";
|
|
674
682
|
"number/=": "number/=";
|
|
@@ -816,7 +824,6 @@ declare const DashboardCopy: z.ZodObject<{
|
|
|
816
824
|
id: "id";
|
|
817
825
|
date: "date";
|
|
818
826
|
text: "text";
|
|
819
|
-
"temporal-unit": "temporal-unit";
|
|
820
827
|
"date/single": "date/single";
|
|
821
828
|
category: "category";
|
|
822
829
|
"location/city": "location/city";
|
|
@@ -828,6 +835,7 @@ declare const DashboardCopy: z.ZodObject<{
|
|
|
828
835
|
"date/quarter-year": "date/quarter-year";
|
|
829
836
|
"date/relative": "date/relative";
|
|
830
837
|
"date/all-options": "date/all-options";
|
|
838
|
+
"temporal-unit": "temporal-unit";
|
|
831
839
|
"number/!=": "number/!=";
|
|
832
840
|
"number/<=": "number/<=";
|
|
833
841
|
"number/=": "number/=";
|
|
@@ -925,17 +933,15 @@ 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;
|
|
936
|
-
col: z.ZodNumber;
|
|
937
944
|
card_id: z.ZodNullable<z.ZodNumber>;
|
|
938
|
-
row: z.ZodNumber;
|
|
939
945
|
dashboard_tab_id: z.ZodNullable<z.ZodNumber>;
|
|
940
946
|
parameter_mappings: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
941
947
|
parameter_id: z.ZodString;
|
|
@@ -946,12 +952,14 @@ declare const DashboardCopyCompact: z.ZodObject<{
|
|
|
946
952
|
}, z.core.$loose>]>], null>, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>], null>, z.ZodTuple<[z.ZodLiteral<"text-tag">, z.ZodString], null>, z.ZodNumber, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>;
|
|
947
953
|
card_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
948
954
|
}, z.core.$loose>>>;
|
|
955
|
+
row: z.ZodNumber;
|
|
956
|
+
col: z.ZodNumber;
|
|
949
957
|
size_x: z.ZodNumber;
|
|
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;
|
|
44
|
+
id: z.ZodNumber;
|
|
43
45
|
name: z.ZodString;
|
|
46
|
+
archived: z.ZodBoolean;
|
|
44
47
|
database_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
|
-
id: z.ZodNumber;
|
|
46
48
|
collection_id: z.ZodNullable<z.ZodNumber>;
|
|
47
|
-
archived: z.ZodBoolean;
|
|
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 };
|