@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/domain/table.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as gateInput } from "../input-gate-registry-Dai7SfXb.js";
|
|
1
2
|
import { Field, FieldCompact, FieldWithTarget } from "./field.js";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
//#region src/domain/table.ts
|
|
@@ -80,6 +81,36 @@ const TableCompact = Table.pick({
|
|
|
80
81
|
is_published: true
|
|
81
82
|
}).strip().extend({ fields: z.array(FieldCompact).optional() });
|
|
82
83
|
const TableQueryMetadataCompact = TableCompact.extend({ fields: z.array(FieldCompact) });
|
|
84
|
+
const DATA_LAYER_TIER_GATE = {
|
|
85
|
+
feature: "tableDataLayerTiers",
|
|
86
|
+
effect: "needs",
|
|
87
|
+
when: {
|
|
88
|
+
kind: "values",
|
|
89
|
+
values: TableDataLayerTier.options
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const DATA_LAYER_MEDALLION_GATE = {
|
|
93
|
+
feature: "tableDataLayerTiers",
|
|
94
|
+
effect: "supersededBy",
|
|
95
|
+
when: {
|
|
96
|
+
kind: "values",
|
|
97
|
+
values: TableDataLayerMedallion.options
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const TABLE_FROM_DEFINITION_GATE = {
|
|
101
|
+
feature: "tableFromDefinition",
|
|
102
|
+
effect: "droppedBy",
|
|
103
|
+
when: { kind: "present" }
|
|
104
|
+
};
|
|
105
|
+
const DATA_AUTHORITY_WITHDRAWAL_GATE = {
|
|
106
|
+
feature: "tableUserValueWithdrawal",
|
|
107
|
+
effect: "needs",
|
|
108
|
+
when: {
|
|
109
|
+
kind: "values",
|
|
110
|
+
values: [null]
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
const TableDataAuthorityInput = gateInput(TableDataAuthority.nullable().optional(), DATA_AUTHORITY_WITHDRAWAL_GATE);
|
|
83
114
|
const TableDataSource = z.enum([
|
|
84
115
|
"unknown",
|
|
85
116
|
"ingested",
|
|
@@ -97,9 +128,9 @@ const TableUpdateInput = z.object({
|
|
|
97
128
|
points_of_interest: z.string().nullable().optional(),
|
|
98
129
|
show_in_getting_started: z.boolean().optional(),
|
|
99
130
|
field_order: TableFieldOrder.optional(),
|
|
100
|
-
data_authority:
|
|
131
|
+
data_authority: TableDataAuthorityInput,
|
|
101
132
|
data_source: TableDataSource.nullable().optional(),
|
|
102
|
-
data_layer: TableDataLayer.nullable().optional(),
|
|
133
|
+
data_layer: gateInput(TableDataLayer.nullable().optional(), DATA_LAYER_TIER_GATE, DATA_LAYER_MEDALLION_GATE),
|
|
103
134
|
owner_email: z.string().nullable().optional(),
|
|
104
135
|
owner_user_id: z.number().int().nullable().optional(),
|
|
105
136
|
collection_id: z.number().int().positive().optional()
|
|
@@ -111,7 +142,7 @@ const TableSelectors = z.object({
|
|
|
111
142
|
table_ids: z.array(z.number().int().positive()).optional()
|
|
112
143
|
}).strict();
|
|
113
144
|
const TableBulkEditFields = z.object({
|
|
114
|
-
data_authority:
|
|
145
|
+
data_authority: TableDataAuthorityInput,
|
|
115
146
|
data_source: TableDataSource.nullable().optional(),
|
|
116
147
|
data_layer: TableDataLayerTier.nullable().optional(),
|
|
117
148
|
entity_type: TableEntityType.nullable().optional(),
|
|
@@ -153,4 +184,4 @@ const TableForeignKeyCompact = TableForeignKey.pick({
|
|
|
153
184
|
destination: FieldCompact
|
|
154
185
|
});
|
|
155
186
|
//#endregion
|
|
156
|
-
export { Table, TableBulkEditFields, TableBulkEditInput, TableBulkEditResult, TableCompact, TableDataLayer, TableDataLayerMedallion, TableDataLayerTier, TableDataSource, TableDatabase, TableFieldValuesResult, TableForeignKey, TableForeignKeyCompact, TableGetInclude, TableQueryMetadata, TableQueryMetadataCompact, TableSchemaId, TableSchemaSyncResult, TableSelectionResult, TableSelectors, TableUpdateInput, TableVisibilityType };
|
|
187
|
+
export { DATA_AUTHORITY_WITHDRAWAL_GATE, DATA_LAYER_MEDALLION_GATE, DATA_LAYER_TIER_GATE, TABLE_FROM_DEFINITION_GATE, Table, TableBulkEditFields, TableBulkEditInput, TableBulkEditResult, TableCompact, TableDataLayer, TableDataLayerMedallion, TableDataLayerTier, TableDataSource, TableDatabase, TableFieldValuesResult, TableForeignKey, TableForeignKeyCompact, TableGetInclude, TableQueryMetadata, TableQueryMetadataCompact, TableSchemaId, TableSchemaSyncResult, TableSelectionResult, TableSelectors, TableUpdateInput, TableVisibilityType };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TimelineEventCompact, c as TimelineIcon, i as TimelineEvent, l as TimelineUpdateInput, n as TimelineCompact, o as TimelineEventCreateInput, r as TimelineCreateInput, s as TimelineEventUpdateInput, t as Timeline } from "../timeline-
|
|
1
|
+
import { a as TimelineEventCompact, c as TimelineIcon, i as TimelineEvent, l as TimelineUpdateInput, n as TimelineCompact, o as TimelineEventCreateInput, r as TimelineCreateInput, s as TimelineEventUpdateInput, t as Timeline } from "../timeline-BfX1lMob.js";
|
|
2
2
|
export { Timeline, TimelineCompact, TimelineCreateInput, TimelineEvent, TimelineEventCompact, TimelineEventCreateInput, TimelineEventUpdateInput, TimelineIcon, TimelineUpdateInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TransformMemberRunCompact, t as TransformMemberRun } from "../transform-dag-run-
|
|
1
|
+
import { n as TransformMemberRunCompact, t as TransformMemberRun } from "../transform-dag-run-BSrdrjaK.js";
|
|
2
2
|
export { TransformMemberRun, TransformMemberRunCompact };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LensCardDisplay, c as LensDrillTrigger, d as LensSection, f as TransformInspection, h as TransformLensQueryInput, i as LensCard, l as LensMetadata, m as TransformLens, n as InspectorTable, o as LensCardMetadata, p as TransformInspectionStatus, r as LensAlertTrigger, s as LensComplexityLevel, t as InspectorField, u as LensParams } from "../transform-inspector-
|
|
1
|
+
import { a as LensCardDisplay, c as LensDrillTrigger, d as LensSection, f as TransformInspection, h as TransformLensQueryInput, i as LensCard, l as LensMetadata, m as TransformLens, n as InspectorTable, o as LensCardMetadata, p as TransformInspectionStatus, r as LensAlertTrigger, s as LensComplexityLevel, t as InspectorField, u as LensParams } from "../transform-inspector-BMaRqcRM.js";
|
|
2
2
|
export { InspectorField, InspectorTable, LensAlertTrigger, LensCard, LensCardDisplay, LensCardMetadata, LensComplexityLevel, LensDrillTrigger, LensMetadata, LensParams, LensSection, TransformInspection, TransformInspectionStatus, TransformLens, TransformLensQueryInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { TransformJob, TransformJobActiveResult, TransformJobCompact, TransformJobCreateInput, TransformJobRunResult, TransformJobUpdateInput, transformJobRunResultSchema, transformJobSchema };
|
|
1
|
+
import { a as TransformJobCreateInput, c as transformJobRunResultSchema, i as TransformJobCompact, l as transformJobSchema, n as TransformJob, o as TransformJobRunResult, r as TransformJobActiveResult, s as TransformJobUpdateInput, t as TRANSFORM_JOB_ACTIVE_GATE } from "../transform-job-Dfp9Ox0l.js";
|
|
2
|
+
export { TRANSFORM_JOB_ACTIVE_GATE, TransformJob, TransformJobActiveResult, TransformJobCompact, TransformJobCreateInput, TransformJobRunResult, TransformJobUpdateInput, transformJobRunResultSchema, transformJobSchema };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as gateInput } from "../input-gate-registry-Dai7SfXb.js";
|
|
1
2
|
import { CronUiDisplayType } from "./cron.js";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
//#region src/domain/transform-job.ts
|
|
@@ -62,12 +63,17 @@ const TransformJobCreateInput = z.object({
|
|
|
62
63
|
ui_display_type: CronUiDisplayType.optional(),
|
|
63
64
|
tag_ids: z.array(z.number().int().positive()).optional()
|
|
64
65
|
}).loose();
|
|
66
|
+
const TRANSFORM_JOB_ACTIVE_GATE = {
|
|
67
|
+
feature: "transformJobActivation",
|
|
68
|
+
effect: "needs",
|
|
69
|
+
when: { kind: "present" }
|
|
70
|
+
};
|
|
65
71
|
const TransformJobUpdateInput = z.object({
|
|
66
72
|
name: z.string().min(1).optional(),
|
|
67
73
|
description: z.string().min(1).nullable().optional(),
|
|
68
74
|
schedule: z.string().min(1).optional(),
|
|
69
75
|
ui_display_type: CronUiDisplayType.optional(),
|
|
70
|
-
active: z.boolean().optional(),
|
|
76
|
+
active: gateInput(z.boolean().optional(), TRANSFORM_JOB_ACTIVE_GATE),
|
|
71
77
|
tag_ids: z.array(z.number().int().positive()).optional()
|
|
72
78
|
}).loose();
|
|
73
79
|
const TransformJobRunResult = z.object({
|
|
@@ -106,4 +112,4 @@ const TransformJobActiveResult = z.object({
|
|
|
106
112
|
failed: z.number().int()
|
|
107
113
|
});
|
|
108
114
|
//#endregion
|
|
109
|
-
export { TransformJob, TransformJobActiveResult, TransformJobCompact, TransformJobCreateInput, TransformJobRunResult, TransformJobUpdateInput, transformJobRunResultSchema, transformJobSchema };
|
|
115
|
+
export { TRANSFORM_JOB_ACTIVE_GATE, TransformJob, TransformJobActiveResult, TransformJobCompact, TransformJobCreateInput, TransformJobRunResult, TransformJobUpdateInput, transformJobRunResultSchema, transformJobSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PythonTestRunOutput, i as PythonTestRunInput, n as PythonLibraryUpdateInput, o as PythonTestRunResult, r as PythonTestRunError, t as PythonLibrary } from "../transform-python-
|
|
2
|
-
export { PythonLibrary, PythonLibraryUpdateInput, PythonTestRunError, PythonTestRunInput, PythonTestRunOutput, PythonTestRunResult };
|
|
1
|
+
import { a as PythonTestRunOutput, i as PythonTestRunInput, n as PythonLibraryUpdateInput, o as PythonTestRunResult, r as PythonTestRunError, s as pythonTestRunBody, t as PythonLibrary } from "../transform-python-DtL3xxMj.js";
|
|
2
|
+
export { PythonLibrary, PythonLibraryUpdateInput, PythonTestRunError, PythonTestRunInput, PythonTestRunOutput, PythonTestRunResult, pythonTestRunBody };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TransformSourceTableEntryInput, keyedByAlias } from "./transform.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/domain/transform-python.ts
|
|
4
4
|
const PythonLibrary = z.object({
|
|
@@ -15,10 +15,22 @@ const TEST_RUN_ROW_LIMIT = {
|
|
|
15
15
|
const TestRunRowLimit = z.number().int().min(TEST_RUN_ROW_LIMIT.min).max(TEST_RUN_ROW_LIMIT.max);
|
|
16
16
|
const PythonTestRunInput = z.object({
|
|
17
17
|
code: z.string(),
|
|
18
|
-
source_tables: z.array(
|
|
18
|
+
source_tables: z.array(TransformSourceTableEntryInput).min(1),
|
|
19
19
|
output_row_limit: TestRunRowLimit.optional(),
|
|
20
20
|
per_input_row_limit: TestRunRowLimit.optional()
|
|
21
21
|
}).strict();
|
|
22
|
+
function toTestRunTableValue(entry) {
|
|
23
|
+
const { alias: _alias, ...reference } = entry;
|
|
24
|
+
return typeof entry.table_id === "number" ? entry.table_id : reference;
|
|
25
|
+
}
|
|
26
|
+
/** A test run body as a server with `features` reads it. */
|
|
27
|
+
function pythonTestRunBody(params, features) {
|
|
28
|
+
if (features.transformSourceTablesAsList) return params;
|
|
29
|
+
return {
|
|
30
|
+
...params,
|
|
31
|
+
source_tables: keyedByAlias(params.source_tables, toTestRunTableValue)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
22
34
|
const PythonTestRunOutput = z.object({
|
|
23
35
|
cols: z.array(z.object({ name: z.string() }).loose()),
|
|
24
36
|
rows: z.array(z.unknown())
|
|
@@ -36,4 +48,4 @@ const PythonTestRunFailed = z.object({
|
|
|
36
48
|
});
|
|
37
49
|
const PythonTestRunResult = z.discriminatedUnion("outcome", [PythonTestRunSucceeded, PythonTestRunFailed]);
|
|
38
50
|
//#endregion
|
|
39
|
-
export { PythonLibrary, PythonLibraryUpdateInput, PythonTestRunError, PythonTestRunInput, PythonTestRunOutput, PythonTestRunResult };
|
|
51
|
+
export { PythonLibrary, PythonLibraryUpdateInput, PythonTestRunError, PythonTestRunInput, PythonTestRunOutput, PythonTestRunResult, pythonTestRunBody };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as TransformTagUpdateInput, n as TransformTagCompact, r as TransformTagCreateInput, t as TransformTag } from "../transform-tag-
|
|
1
|
+
import { i as TransformTagUpdateInput, n as TransformTagCompact, r as TransformTagCreateInput, t as TransformTag } from "../transform-tag-C6j5EUkX.js";
|
|
2
2
|
export { TransformTag, TransformTagCompact, TransformTagCreateInput, TransformTagUpdateInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TransformTestExpectation, c as TransformTestRefusalCode, d as TransformTestRunResult, f as TransformTestTable, i as TransformTestCreateInput, l as TransformTestResultColumn, m as isTransformTestRefusalCode, n as TransformTestColumn, o as TransformTestExpectationResult, p as TransformTestUpdateInput, r as TransformTestCompact, s as TransformTestInput, t as TransformTest, u as TransformTestRow } from "../transform-test-
|
|
1
|
+
import { a as TransformTestExpectation, c as TransformTestRefusalCode, d as TransformTestRunResult, f as TransformTestTable, i as TransformTestCreateInput, l as TransformTestResultColumn, m as isTransformTestRefusalCode, n as TransformTestColumn, o as TransformTestExpectationResult, p as TransformTestUpdateInput, r as TransformTestCompact, s as TransformTestInput, t as TransformTest, u as TransformTestRow } from "../transform-test-DROPvrkI.js";
|
|
2
2
|
export { TransformTest, TransformTestColumn, TransformTestCompact, TransformTestCreateInput, TransformTestExpectation, TransformTestExpectationResult, TransformTestInput, TransformTestRefusalCode, TransformTestResultColumn, TransformTestRow, TransformTestRunResult, TransformTestTable, TransformTestUpdateInput, isTransformTestRefusalCode };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
export { Transform, TransformCompact, TransformCreateInput, TransformDagDirection, TransformDagRunResult, TransformDagTransform, TransformRun, TransformRunCompact, TransformRunMethod, TransformRunResult, TransformRunStatus, TransformRunSummary, TransformRunSummaryCompact, TransformRunSummarySortColumn, TransformRunSummaryType, TransformSourceTableEntry, TransformTarget, TransformUpdateInput, isTransformRunFailed, isTransformRunTerminal, transformDetailSchema, transformRowSchema };
|
|
1
|
+
import { C as transformDetailSchema, S as keyedByAlias, T as transformSourceBody, _ as TransformSourceTableEntryInput, a as TransformDagRunResult, b as isTransformRunFailed, c as TransformRunCompact, d as TransformRunStatus, f as TransformRunSummary, g as TransformSourceTableEntry, h as TransformRunSummaryType, i as TransformDagDirection, l as TransformRunMethod, m as TransformRunSummarySortColumn, n as TransformCompact, o as TransformDagTransform, p as TransformRunSummaryCompact, r as TransformCreateInput, s as TransformRun, t as Transform, u as TransformRunResult, v as TransformTarget, w as transformRowSchema, x as isTransformRunTerminal, y as TransformUpdateInput } from "../transform-DwnIcpqV.js";
|
|
2
|
+
export { Transform, TransformCompact, TransformCreateInput, TransformDagDirection, TransformDagRunResult, TransformDagTransform, TransformRun, TransformRunCompact, TransformRunMethod, TransformRunResult, TransformRunStatus, TransformRunSummary, TransformRunSummaryCompact, TransformRunSummarySortColumn, TransformRunSummaryType, TransformSourceTableEntry, TransformSourceTableEntryInput, TransformTarget, TransformUpdateInput, isTransformRunFailed, isTransformRunTerminal, keyedByAlias, transformDetailSchema, transformRowSchema, transformSourceBody };
|
package/dist/domain/transform.js
CHANGED
|
@@ -38,13 +38,29 @@ const TransformCheckpointStrategy = z.object({
|
|
|
38
38
|
type: z.literal("checkpoint"),
|
|
39
39
|
"checkpoint-filter-field-id": z.number().int().positive().optional()
|
|
40
40
|
}).loose();
|
|
41
|
-
const
|
|
41
|
+
const TransformSourceTableRefInput = z.object({
|
|
42
42
|
alias: z.string(),
|
|
43
43
|
database_id: z.number().int(),
|
|
44
|
-
schema: z.string().nullable(),
|
|
44
|
+
schema: z.string().nullable().optional(),
|
|
45
45
|
table: z.string().optional(),
|
|
46
46
|
table_id: z.number().int().nullable().optional()
|
|
47
47
|
}).loose();
|
|
48
|
+
const TransformSourceTableIdInput = z.object({
|
|
49
|
+
alias: z.string(),
|
|
50
|
+
table_id: z.number().int(),
|
|
51
|
+
database_id: z.null().optional(),
|
|
52
|
+
schema: z.null().optional(),
|
|
53
|
+
table: z.null().optional()
|
|
54
|
+
}).loose();
|
|
55
|
+
const TransformSourceTableEntryInput = z.union([TransformSourceTableRefInput, TransformSourceTableIdInput]);
|
|
56
|
+
function namesTableByIdAlone(entry) {
|
|
57
|
+
return typeof entry.database_id !== "number";
|
|
58
|
+
}
|
|
59
|
+
const TransformSourceTableEntry = TransformSourceTableRefInput.extend({
|
|
60
|
+
database_id: z.number().int().nullable().optional(),
|
|
61
|
+
schema: z.string().nullable().optional(),
|
|
62
|
+
table: z.string().nullable().optional()
|
|
63
|
+
});
|
|
48
64
|
const TransformQuerySource = z.object({
|
|
49
65
|
type: z.literal("query"),
|
|
50
66
|
query: z.unknown().describe("Native SQL or MBQL query"),
|
|
@@ -58,6 +74,57 @@ const TransformPythonSource = z.object({
|
|
|
58
74
|
"source-incremental-strategy": TransformCheckpointStrategy.optional()
|
|
59
75
|
}).loose();
|
|
60
76
|
const TransformSource = z.discriminatedUnion("type", [TransformQuerySource, TransformPythonSource]);
|
|
77
|
+
const TransformSourceTableRefWireV59 = z.object({
|
|
78
|
+
database_id: z.number().int(),
|
|
79
|
+
schema: z.string().nullable().optional(),
|
|
80
|
+
table: z.string(),
|
|
81
|
+
table_id: z.number().int().nullable().optional()
|
|
82
|
+
}).loose();
|
|
83
|
+
const TransformSourceTableWireV59 = z.union([
|
|
84
|
+
z.number().int(),
|
|
85
|
+
z.null(),
|
|
86
|
+
TransformSourceTableRefWireV59
|
|
87
|
+
]);
|
|
88
|
+
const TransformSourceTablesWireV59 = z.record(z.string(), TransformSourceTableWireV59);
|
|
89
|
+
function toSourceTableEntry(alias, wire) {
|
|
90
|
+
if (wire === null || typeof wire === "number") return {
|
|
91
|
+
alias,
|
|
92
|
+
table_id: wire,
|
|
93
|
+
database_id: null,
|
|
94
|
+
schema: null,
|
|
95
|
+
table: null
|
|
96
|
+
};
|
|
97
|
+
return {
|
|
98
|
+
...wire,
|
|
99
|
+
alias
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function fromAliasMap(wire) {
|
|
103
|
+
return Object.entries(wire).map(([alias, value]) => toSourceTableEntry(alias, value));
|
|
104
|
+
}
|
|
105
|
+
const TransformPythonSourceWireV59 = TransformPythonSource.extend({ "source-tables": TransformSourceTablesWireV59.transform(fromAliasMap) });
|
|
106
|
+
const TransformSourceWireV59 = z.discriminatedUnion("type", [TransformQuerySource, TransformPythonSourceWireV59]);
|
|
107
|
+
function transformSourceSchema(features) {
|
|
108
|
+
return features.transformSourceTablesAsList ? TransformSource : TransformSourceWireV59;
|
|
109
|
+
}
|
|
110
|
+
const TransformPythonSourceInput = TransformPythonSource.extend({ "source-tables": z.array(TransformSourceTableEntryInput) });
|
|
111
|
+
const TransformSourceInput = z.discriminatedUnion("type", [TransformQuerySource, TransformPythonSourceInput]);
|
|
112
|
+
function toAliasMapValue(entry) {
|
|
113
|
+
const { alias: _alias, ...reference } = entry;
|
|
114
|
+
return namesTableByIdAlone(entry) ? entry.table_id : reference;
|
|
115
|
+
}
|
|
116
|
+
/** Each entry keyed by its alias, its value chosen by `value`, as a server without the list reads it. */
|
|
117
|
+
function keyedByAlias(entries, value) {
|
|
118
|
+
return Object.fromEntries(entries.map((entry) => [entry.alias, value(entry)]));
|
|
119
|
+
}
|
|
120
|
+
/** A transform body's `source` as a server with `features` reads it. */
|
|
121
|
+
function transformSourceBody(source, features) {
|
|
122
|
+
if (features.transformSourceTablesAsList || source.type !== "python") return source;
|
|
123
|
+
return {
|
|
124
|
+
...source,
|
|
125
|
+
"source-tables": keyedByAlias(source["source-tables"], toAliasMapValue)
|
|
126
|
+
};
|
|
127
|
+
}
|
|
61
128
|
const TransformAppendStrategy = z.object({ type: z.literal("append") }).loose();
|
|
62
129
|
const TransformMergeKeyColumn = z.object({
|
|
63
130
|
name: z.string().min(1).optional(),
|
|
@@ -195,11 +262,13 @@ function withoutLink(row) {
|
|
|
195
262
|
}
|
|
196
263
|
/** The shape `GET /api/transform/{id}` answers on a server with `features`, read as `Transform`. */
|
|
197
264
|
function transformDetailSchema(features) {
|
|
198
|
-
|
|
265
|
+
const source = transformSourceSchema(features);
|
|
266
|
+
return features.transformTargetTableId ? Transform.extend({ source }) : TransformWireV59Detail.extend({ source }).transform(fromHydratedTable);
|
|
199
267
|
}
|
|
200
268
|
/** The shape every other transform endpoint answers on a server with `features`, read as `Transform`. */
|
|
201
269
|
function transformRowSchema(features) {
|
|
202
|
-
|
|
270
|
+
const source = transformSourceSchema(features);
|
|
271
|
+
return features.transformTargetTableId ? Transform.extend({ source }) : TransformBase.extend({ source }).transform(withoutLink);
|
|
203
272
|
}
|
|
204
273
|
const TransformCompact = Transform.pick({
|
|
205
274
|
id: true,
|
|
@@ -212,7 +281,7 @@ const TransformCompact = Transform.pick({
|
|
|
212
281
|
const TransformCreateInput = z.object({
|
|
213
282
|
name: z.string().min(1),
|
|
214
283
|
description: z.string().nullable().optional(),
|
|
215
|
-
source:
|
|
284
|
+
source: TransformSourceInput,
|
|
216
285
|
target: TransformTarget,
|
|
217
286
|
run_trigger: TransformRunTrigger.optional(),
|
|
218
287
|
tag_ids: z.array(z.number().int().positive()).optional(),
|
|
@@ -223,7 +292,7 @@ const TransformCreateInput = z.object({
|
|
|
223
292
|
const TransformUpdateInput = z.object({
|
|
224
293
|
name: z.string().min(1).optional(),
|
|
225
294
|
description: z.string().nullable().optional(),
|
|
226
|
-
source:
|
|
295
|
+
source: TransformSourceInput.optional(),
|
|
227
296
|
target: TransformTarget.optional(),
|
|
228
297
|
run_trigger: TransformRunTrigger.optional(),
|
|
229
298
|
tag_ids: z.array(z.number().int().positive()).optional(),
|
|
@@ -232,4 +301,4 @@ const TransformUpdateInput = z.object({
|
|
|
232
301
|
owner_email: z.string().nullable().optional()
|
|
233
302
|
}).loose();
|
|
234
303
|
//#endregion
|
|
235
|
-
export { Transform, TransformCompact, TransformCreateInput, TransformDagDirection, TransformDagRunResult, TransformDagTransform, TransformRun, TransformRunCompact, TransformRunMethod, TransformRunResult, TransformRunStatus, TransformRunSummary, TransformRunSummaryCompact, TransformRunSummarySortColumn, TransformRunSummaryType, TransformSourceTableEntry, TransformTarget, TransformUpdateInput, isTransformRunFailed, isTransformRunTerminal, transformDetailSchema, transformRowSchema };
|
|
304
|
+
export { Transform, TransformCompact, TransformCreateInput, TransformDagDirection, TransformDagRunResult, TransformDagTransform, TransformRun, TransformRunCompact, TransformRunMethod, TransformRunResult, TransformRunStatus, TransformRunSummary, TransformRunSummaryCompact, TransformRunSummarySortColumn, TransformRunSummaryType, TransformSourceTableEntry, TransformSourceTableEntryInput, TransformTarget, TransformUpdateInput, isTransformRunFailed, isTransformRunTerminal, keyedByAlias, transformDetailSchema, transformRowSchema, transformSourceBody };
|
package/dist/domain/user.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CurrentUserCompact, t as CurrentUser } from "../user-
|
|
1
|
+
import { n as CurrentUserCompact, t as CurrentUser } from "../user-Sqqv7rqh.js";
|
|
2
2
|
export { CurrentUser, CurrentUserCompact };
|
package/dist/domain/user.js
CHANGED
|
@@ -2,79 +2,79 @@ import { z } from "zod";
|
|
|
2
2
|
//#region src/domain/eid-translation.d.ts
|
|
3
3
|
declare const EID_MODELS: readonly ["action", "card", "collection", "dashboard", "dashboard-card", "dashboard-tab", "dataset", "dimension", "document", "exploration", "measure", "metric", "permissions-group", "pulse", "pulse-card", "pulse-channel", "segment", "snippet", "timeline", "transform", "user"];
|
|
4
4
|
declare const EidModel: z.ZodEnum<{
|
|
5
|
+
transform: "transform";
|
|
6
|
+
metric: "metric";
|
|
5
7
|
card: "card";
|
|
6
|
-
collection: "collection";
|
|
7
8
|
dashboard: "dashboard";
|
|
9
|
+
dimension: "dimension";
|
|
8
10
|
dataset: "dataset";
|
|
11
|
+
snippet: "snippet";
|
|
12
|
+
collection: "collection";
|
|
9
13
|
document: "document";
|
|
10
|
-
|
|
14
|
+
exploration: "exploration";
|
|
11
15
|
measure: "measure";
|
|
12
16
|
pulse: "pulse";
|
|
13
|
-
segment: "segment";
|
|
14
|
-
snippet: "snippet";
|
|
15
17
|
timeline: "timeline";
|
|
16
|
-
transform: "transform";
|
|
17
|
-
user: "user";
|
|
18
|
-
dimension: "dimension";
|
|
19
|
-
exploration: "exploration";
|
|
20
18
|
action: "action";
|
|
19
|
+
segment: "segment";
|
|
21
20
|
"dashboard-card": "dashboard-card";
|
|
22
21
|
"dashboard-tab": "dashboard-tab";
|
|
23
22
|
"permissions-group": "permissions-group";
|
|
24
23
|
"pulse-card": "pulse-card";
|
|
25
24
|
"pulse-channel": "pulse-channel";
|
|
25
|
+
user: "user";
|
|
26
26
|
}>;
|
|
27
27
|
type EidModel = z.infer<typeof EidModel>;
|
|
28
28
|
declare const EidTranslateInput: z.ZodObject<{
|
|
29
29
|
entity_ids: z.ZodRecord<z.ZodEnum<{
|
|
30
|
+
transform: "transform";
|
|
31
|
+
metric: "metric";
|
|
30
32
|
card: "card";
|
|
31
|
-
collection: "collection";
|
|
32
33
|
dashboard: "dashboard";
|
|
34
|
+
dimension: "dimension";
|
|
33
35
|
dataset: "dataset";
|
|
36
|
+
snippet: "snippet";
|
|
37
|
+
collection: "collection";
|
|
34
38
|
document: "document";
|
|
35
|
-
|
|
39
|
+
exploration: "exploration";
|
|
36
40
|
measure: "measure";
|
|
37
41
|
pulse: "pulse";
|
|
38
|
-
segment: "segment";
|
|
39
|
-
snippet: "snippet";
|
|
40
42
|
timeline: "timeline";
|
|
41
|
-
transform: "transform";
|
|
42
|
-
user: "user";
|
|
43
|
-
dimension: "dimension";
|
|
44
|
-
exploration: "exploration";
|
|
45
43
|
action: "action";
|
|
44
|
+
segment: "segment";
|
|
46
45
|
"dashboard-card": "dashboard-card";
|
|
47
46
|
"dashboard-tab": "dashboard-tab";
|
|
48
47
|
"permissions-group": "permissions-group";
|
|
49
48
|
"pulse-card": "pulse-card";
|
|
50
49
|
"pulse-channel": "pulse-channel";
|
|
50
|
+
user: "user";
|
|
51
51
|
}> & z.core.$partial, z.ZodArray<z.ZodString>>;
|
|
52
52
|
}, z.core.$loose>;
|
|
53
53
|
type EidTranslateInput = z.infer<typeof EidTranslateInput>;
|
|
54
54
|
declare const EidTranslateEntry: z.ZodObject<{
|
|
55
55
|
status: z.ZodString;
|
|
56
56
|
type: z.ZodEnum<{
|
|
57
|
+
transform: "transform";
|
|
58
|
+
metric: "metric";
|
|
57
59
|
card: "card";
|
|
58
|
-
collection: "collection";
|
|
59
60
|
dashboard: "dashboard";
|
|
61
|
+
dimension: "dimension";
|
|
60
62
|
dataset: "dataset";
|
|
63
|
+
snippet: "snippet";
|
|
64
|
+
collection: "collection";
|
|
61
65
|
document: "document";
|
|
62
|
-
|
|
66
|
+
exploration: "exploration";
|
|
63
67
|
measure: "measure";
|
|
64
68
|
pulse: "pulse";
|
|
65
|
-
segment: "segment";
|
|
66
|
-
snippet: "snippet";
|
|
67
69
|
timeline: "timeline";
|
|
68
|
-
transform: "transform";
|
|
69
|
-
user: "user";
|
|
70
|
-
dimension: "dimension";
|
|
71
|
-
exploration: "exploration";
|
|
72
70
|
action: "action";
|
|
71
|
+
segment: "segment";
|
|
73
72
|
"dashboard-card": "dashboard-card";
|
|
74
73
|
"dashboard-tab": "dashboard-tab";
|
|
75
74
|
"permissions-group": "permissions-group";
|
|
76
75
|
"pulse-card": "pulse-card";
|
|
77
76
|
"pulse-channel": "pulse-channel";
|
|
77
|
+
user: "user";
|
|
78
78
|
}>;
|
|
79
79
|
id: z.ZodOptional<z.ZodNumber>;
|
|
80
80
|
}, z.core.$loose>;
|
|
@@ -83,27 +83,27 @@ declare const EidTranslateResult: z.ZodObject<{
|
|
|
83
83
|
entity_ids: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
84
84
|
status: z.ZodString;
|
|
85
85
|
type: z.ZodEnum<{
|
|
86
|
+
transform: "transform";
|
|
87
|
+
metric: "metric";
|
|
86
88
|
card: "card";
|
|
87
|
-
collection: "collection";
|
|
88
89
|
dashboard: "dashboard";
|
|
90
|
+
dimension: "dimension";
|
|
89
91
|
dataset: "dataset";
|
|
92
|
+
snippet: "snippet";
|
|
93
|
+
collection: "collection";
|
|
90
94
|
document: "document";
|
|
91
|
-
|
|
95
|
+
exploration: "exploration";
|
|
92
96
|
measure: "measure";
|
|
93
97
|
pulse: "pulse";
|
|
94
|
-
segment: "segment";
|
|
95
|
-
snippet: "snippet";
|
|
96
98
|
timeline: "timeline";
|
|
97
|
-
transform: "transform";
|
|
98
|
-
user: "user";
|
|
99
|
-
dimension: "dimension";
|
|
100
|
-
exploration: "exploration";
|
|
101
99
|
action: "action";
|
|
100
|
+
segment: "segment";
|
|
102
101
|
"dashboard-card": "dashboard-card";
|
|
103
102
|
"dashboard-tab": "dashboard-tab";
|
|
104
103
|
"permissions-group": "permissions-group";
|
|
105
104
|
"pulse-card": "pulse-card";
|
|
106
105
|
"pulse-channel": "pulse-channel";
|
|
106
|
+
user: "user";
|
|
107
107
|
}>;
|
|
108
108
|
id: z.ZodOptional<z.ZodNumber>;
|
|
109
109
|
}, z.core.$loose>>;
|
|
@@ -113,27 +113,27 @@ declare const EidTranslateResultCompact: z.ZodObject<{
|
|
|
113
113
|
entity_ids: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
114
114
|
status: z.ZodString;
|
|
115
115
|
type: z.ZodEnum<{
|
|
116
|
+
transform: "transform";
|
|
117
|
+
metric: "metric";
|
|
116
118
|
card: "card";
|
|
117
|
-
collection: "collection";
|
|
118
119
|
dashboard: "dashboard";
|
|
120
|
+
dimension: "dimension";
|
|
119
121
|
dataset: "dataset";
|
|
122
|
+
snippet: "snippet";
|
|
123
|
+
collection: "collection";
|
|
120
124
|
document: "document";
|
|
121
|
-
|
|
125
|
+
exploration: "exploration";
|
|
122
126
|
measure: "measure";
|
|
123
127
|
pulse: "pulse";
|
|
124
|
-
segment: "segment";
|
|
125
|
-
snippet: "snippet";
|
|
126
128
|
timeline: "timeline";
|
|
127
|
-
transform: "transform";
|
|
128
|
-
user: "user";
|
|
129
|
-
dimension: "dimension";
|
|
130
|
-
exploration: "exploration";
|
|
131
129
|
action: "action";
|
|
130
|
+
segment: "segment";
|
|
132
131
|
"dashboard-card": "dashboard-card";
|
|
133
132
|
"dashboard-tab": "dashboard-tab";
|
|
134
133
|
"permissions-group": "permissions-group";
|
|
135
134
|
"pulse-card": "pulse-card";
|
|
136
135
|
"pulse-channel": "pulse-channel";
|
|
136
|
+
user: "user";
|
|
137
137
|
}>;
|
|
138
138
|
id: z.ZodOptional<z.ZodNumber>;
|
|
139
139
|
}, z.core.$loose>>;
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as PartialWriteAnswer, G as DecodedResponseShapeDetail, H as AbortError, J as HttpTimeoutDetail, K as ErrorCategory, Q as NetworkErrorDetail, U as ChainedRequestError, W as ConfigError, X as MetabaseError, Y as InternalError, Z as NetworkError, _t as isNonInterruptFailure, at as ResponseShapeError, ct as TimeoutErrorDetail, dt as ValidationError, et as PartialWriteDetail, ft as ValidationErrorDetail, gt as isFileNotFoundError, ht as formatZodIssue, it as PollingTimeoutDetail, lt as UnknownError, mt as errorMessage, nt as PartialWriteReported, ot as ResponseShapeErrorDetail, pt as ZodResponseShapeDetail, q as FailedResultError, rt as PartialWriteUnreported, st as TimeoutError, tt as PartialWriteError, ut as UnknownErrorDetail, vt as toMetabaseError } from "./transport-
|
|
1
|
+
import { $ as PartialWriteAnswer, G as DecodedResponseShapeDetail, H as AbortError, J as HttpTimeoutDetail, K as ErrorCategory, Q as NetworkErrorDetail, U as ChainedRequestError, W as ConfigError, X as MetabaseError, Y as InternalError, Z as NetworkError, _t as isNonInterruptFailure, at as ResponseShapeError, ct as TimeoutErrorDetail, dt as ValidationError, et as PartialWriteDetail, ft as ValidationErrorDetail, gt as isFileNotFoundError, ht as formatZodIssue, it as PollingTimeoutDetail, lt as UnknownError, mt as errorMessage, nt as PartialWriteReported, ot as ResponseShapeErrorDetail, pt as ZodResponseShapeDetail, q as FailedResultError, rt as PartialWriteUnreported, st as TimeoutError, tt as PartialWriteError, ut as UnknownErrorDetail, vt as toMetabaseError } from "./transport-CS11mEqI.js";
|
|
2
2
|
export { AbortError, ChainedRequestError, ConfigError, DecodedResponseShapeDetail, ErrorCategory, FailedResultError, HttpTimeoutDetail, InternalError, MetabaseError, NetworkError, NetworkErrorDetail, PartialWriteAnswer, PartialWriteDetail, PartialWriteError, PartialWriteReported, PartialWriteUnreported, PollingTimeoutDetail, ResponseShapeError, ResponseShapeErrorDetail, TimeoutError, TimeoutErrorDetail, UnknownError, UnknownErrorDetail, ValidationError, ValidationErrorDetail, ZodResponseShapeDetail, errorMessage, formatZodIssue, isFileNotFoundError, isNonInterruptFailure, toMetabaseError };
|
|
@@ -13,6 +13,10 @@ declare const FEATURE_RULES: {
|
|
|
13
13
|
dataActionsWithoutModel: {
|
|
14
14
|
since: number;
|
|
15
15
|
};
|
|
16
|
+
dataApps: {
|
|
17
|
+
since: number;
|
|
18
|
+
tokenFeature: string;
|
|
19
|
+
};
|
|
16
20
|
transforms: {
|
|
17
21
|
since: number;
|
|
18
22
|
};
|
|
@@ -22,6 +26,15 @@ declare const FEATURE_RULES: {
|
|
|
22
26
|
measures: {
|
|
23
27
|
since: number;
|
|
24
28
|
};
|
|
29
|
+
collectionItemMeasures: {
|
|
30
|
+
since: number;
|
|
31
|
+
};
|
|
32
|
+
explorations: {
|
|
33
|
+
since: number;
|
|
34
|
+
};
|
|
35
|
+
tableFromDefinition: {
|
|
36
|
+
since: number;
|
|
37
|
+
};
|
|
25
38
|
library: {
|
|
26
39
|
since: number;
|
|
27
40
|
tokenFeature: string;
|
|
@@ -29,6 +42,9 @@ declare const FEATURE_RULES: {
|
|
|
29
42
|
libraryDashboards: {
|
|
30
43
|
since: number;
|
|
31
44
|
};
|
|
45
|
+
tablePublishTargetCollection: {
|
|
46
|
+
since: number;
|
|
47
|
+
};
|
|
32
48
|
remoteSync: {
|
|
33
49
|
since: number;
|
|
34
50
|
tokenFeature: string;
|
|
@@ -62,6 +78,9 @@ declare const FEATURE_RULES: {
|
|
|
62
78
|
transformTargetTableId: {
|
|
63
79
|
since: number;
|
|
64
80
|
};
|
|
81
|
+
transformSourceTablesAsList: {
|
|
82
|
+
since: number;
|
|
83
|
+
};
|
|
65
84
|
transformTargetTableLinkedOnCreate: {
|
|
66
85
|
since: number;
|
|
67
86
|
until: number;
|
|
@@ -126,6 +145,9 @@ declare const FEATURE_RULES: {
|
|
|
126
145
|
measureDependencyGraph: {
|
|
127
146
|
since: number;
|
|
128
147
|
};
|
|
148
|
+
actionDependencyGraph: {
|
|
149
|
+
since: number;
|
|
150
|
+
};
|
|
129
151
|
tableListAccessFilters: {
|
|
130
152
|
since: number;
|
|
131
153
|
};
|
|
@@ -191,22 +213,28 @@ type FeatureName = keyof typeof FEATURE_RULES;
|
|
|
191
213
|
declare function isFeatureName(name: string): name is FeatureName;
|
|
192
214
|
declare const FEATURE_NAMES: ReadonlyArray<FeatureName>;
|
|
193
215
|
declare const Features: z.ZodRecord<z.ZodEnum<{
|
|
194
|
-
contentTranslation: "contentTranslation";
|
|
195
216
|
dataActionCollections: "dataActionCollections";
|
|
196
217
|
dataActionsWithoutModel: "dataActionsWithoutModel";
|
|
218
|
+
dataApps: "dataApps";
|
|
197
219
|
transforms: "transforms";
|
|
198
220
|
transformJobActivation: "transformJobActivation";
|
|
199
221
|
measures: "measures";
|
|
222
|
+
collectionItemMeasures: "collectionItemMeasures";
|
|
223
|
+
explorations: "explorations";
|
|
224
|
+
tableFromDefinition: "tableFromDefinition";
|
|
200
225
|
library: "library";
|
|
201
226
|
libraryDashboards: "libraryDashboards";
|
|
227
|
+
tablePublishTargetCollection: "tablePublishTargetCollection";
|
|
202
228
|
remoteSync: "remoteSync";
|
|
203
229
|
remoteSyncRemoteChanges: "remoteSyncRemoteChanges";
|
|
204
230
|
remoteSyncCollectionsOnlyUpdate: "remoteSyncCollectionsOnlyUpdate";
|
|
205
231
|
remoteSyncExportPreflight: "remoteSyncExportPreflight";
|
|
206
232
|
remoteSyncBranchGuard: "remoteSyncBranchGuard";
|
|
207
233
|
remoteSyncMerge: "remoteSyncMerge";
|
|
234
|
+
contentTranslation: "contentTranslation";
|
|
208
235
|
contentVerification: "contentVerification";
|
|
209
236
|
transformTargetTableId: "transformTargetTableId";
|
|
237
|
+
transformSourceTablesAsList: "transformSourceTablesAsList";
|
|
210
238
|
transformTargetTableLinkedOnCreate: "transformTargetTableLinkedOnCreate";
|
|
211
239
|
transformJobRunIdIsNumeric: "transformJobRunIdIsNumeric";
|
|
212
240
|
transformCheckpointReset: "transformCheckpointReset";
|
|
@@ -226,6 +254,7 @@ declare const Features: z.ZodRecord<z.ZodEnum<{
|
|
|
226
254
|
dependencyItemListings: "dependencyItemListings";
|
|
227
255
|
dependencyAsyncBackfill: "dependencyAsyncBackfill";
|
|
228
256
|
measureDependencyGraph: "measureDependencyGraph";
|
|
257
|
+
actionDependencyGraph: "actionDependencyGraph";
|
|
229
258
|
tableListAccessFilters: "tableListAccessFilters";
|
|
230
259
|
tableListTransformTargets: "tableListTransformTargets";
|
|
231
260
|
tableListPublishedFilter: "tableListPublishedFilter";
|
|
@@ -246,6 +275,11 @@ declare const Features: z.ZodRecord<z.ZodEnum<{
|
|
|
246
275
|
exportCsvByteOrderMark: "exportCsvByteOrderMark";
|
|
247
276
|
}>, z.ZodBoolean>;
|
|
248
277
|
type Features = z.infer<typeof Features>;
|
|
278
|
+
/**
|
|
279
|
+
* Which servers hold `feature`, as a reader says it: the majors its rule spans and the token
|
|
280
|
+
* feature it needs, each left out where every supported server meets it.
|
|
281
|
+
*/
|
|
282
|
+
declare function featureAvailability(feature: FeatureName): string;
|
|
249
283
|
type RuleMajor = number | "development";
|
|
250
284
|
declare function evaluateFeatures(major: RuleMajor, tokenFeatures: Readonly<TokenFeatures> | null): Features;
|
|
251
285
|
interface VersionGap {
|
|
@@ -258,4 +292,4 @@ interface TokenGap {
|
|
|
258
292
|
type FeatureGap = VersionGap | TokenGap;
|
|
259
293
|
declare function ruleGap(rule: FeatureRule, major: RuleMajor, tokenFeatures: Readonly<TokenFeatures> | null): FeatureGap | null;
|
|
260
294
|
//#endregion
|
|
261
|
-
export { FeatureRule as a, TokenGap as c,
|
|
295
|
+
export { FeatureRule as a, TokenGap as c, featureAvailability as d, isFeatureName as f, FeatureName as i, VersionGap as l, FEATURE_RULES as n, Features as o, ruleGap as p, FeatureGap as r, RuleMajor as s, FEATURE_NAMES as t, evaluateFeatures as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as RequestOptions, h as Transport } from "./transport-
|
|
2
|
-
import {
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-CS11mEqI.js";
|
|
2
|
+
import { c as FieldRemappedValue, d as FieldSummary, f as FieldUpdateInput, l as FieldSearchMatches, o as FieldDataSensitivity, p as FieldValues, s as FieldDetail } from "./field-tqQPtVuR.js";
|
|
3
3
|
//#region src/resources/field.d.ts
|
|
4
4
|
interface FieldSearchByValue {
|
|
5
5
|
value: string;
|