@metabase/client 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +6 -4
- package/dist/api-key-DJeN1-7G.d.ts +46 -0
- package/dist/{card-B6merEUN.d.ts → card-BxBzr5Uj.d.ts} +11 -11
- package/dist/{card-BZx4NSr-.d.ts → card-DN0sLkCG.d.ts} +4 -4
- package/dist/{client-DNRvXFRm.d.ts → client-DdXLlH1B.d.ts} +270 -166
- package/dist/client.d.ts +1 -1
- package/dist/client.js +4 -0
- package/dist/{collection-Bib61WiV.d.ts → collection-DGnTvD6R.d.ts} +20 -20
- package/dist/{collection-CqtGPi4W.d.ts → collection-fFahL-ub.d.ts} +18 -4
- package/dist/{dashboard-XTe46250.d.ts → dashboard-CM7RmNeE.d.ts} +2 -2
- package/dist/{dashboard-z9i1VUZC.d.ts → dashboard-DtLXVgtf.d.ts} +21 -13
- package/dist/{data-action-rS27f2Ji.d.ts → data-action-CkXVrOUH.d.ts} +7 -5
- package/dist/data-app-CqP5_fpB.d.ts +76 -0
- package/dist/{database-DqTespfa.d.ts → database-B0JNZjDN.d.ts} +3 -3
- package/dist/{database-BLUMlywE.d.ts → database-BxqDmfcj.d.ts} +9 -9
- package/dist/{dataset-C6lX1-cr.d.ts → dataset-BBNGPVec.d.ts} +22 -22
- package/dist/{dataset-Cj3XuKLe.d.ts → dataset-BUirJ1rO.d.ts} +3 -3
- package/dist/{dependency-fN5_7a22.d.ts → dependency-CzpXmeu7.d.ts} +26 -26
- package/dist/{dependency-D8Qs5Xdx.d.ts → dependency-arB8Cr2H.d.ts} +147 -95
- package/dist/{document-oZNDbDfx.d.ts → document-tLd6pYWe.d.ts} +2 -2
- package/dist/domain/api-key.d.ts +2 -0
- package/dist/domain/api-key.js +31 -0
- package/dist/domain/card.d.ts +1 -1
- package/dist/domain/collection.d.ts +1 -1
- package/dist/domain/dashboard.d.ts +2 -2
- package/dist/domain/dashboard.js +21 -4
- package/dist/domain/data-action.d.ts +2 -2
- package/dist/domain/data-action.js +8 -2
- package/dist/domain/data-app.d.ts +2 -0
- package/dist/domain/data-app.js +52 -0
- package/dist/domain/database.d.ts +1 -1
- package/dist/domain/dataset.d.ts +1 -1
- package/dist/domain/dependency.d.ts +1 -1
- package/dist/domain/dependency.js +6 -3
- package/dist/domain/document.d.ts +1 -1
- package/dist/domain/eid-translation.d.ts +1 -1
- package/dist/domain/embedding.d.ts +1 -1
- package/dist/domain/field.d.ts +2 -2
- package/dist/domain/field.js +8 -2
- package/dist/domain/git-sync.d.ts +1 -1
- package/dist/domain/library.d.ts +2 -2
- package/dist/domain/library.js +8 -2
- package/dist/domain/measure.d.ts +1 -1
- package/dist/domain/measure.js +3 -1
- package/dist/domain/metric.d.ts +1 -1
- package/dist/domain/notification.d.ts +2 -2
- package/dist/domain/notification.js +6 -1
- package/dist/domain/pulse.d.ts +2 -2
- package/dist/domain/pulse.js +10 -3
- package/dist/domain/replacement.d.ts +1 -1
- package/dist/domain/revision.d.ts +2 -2
- package/dist/domain/revision.js +29 -2
- package/dist/domain/search.d.ts +1 -1
- package/dist/domain/segment.d.ts +1 -1
- package/dist/domain/segment.js +3 -1
- package/dist/domain/setup.d.ts +1 -1
- package/dist/domain/setup.js +1 -1
- package/dist/domain/snippet.d.ts +1 -1
- package/dist/domain/table.d.ts +2 -2
- package/dist/domain/table.js +35 -4
- package/dist/domain/timeline.d.ts +1 -1
- package/dist/domain/transform-inspector.d.ts +1 -1
- package/dist/domain/transform-job.d.ts +2 -2
- package/dist/domain/transform-job.js +8 -2
- package/dist/domain/transform-python.d.ts +2 -2
- package/dist/domain/transform-python.js +15 -3
- package/dist/domain/transform-tag.d.ts +1 -1
- package/dist/domain/transform-test.d.ts +1 -1
- package/dist/domain/transform.d.ts +2 -2
- package/dist/domain/transform.js +76 -7
- package/dist/domain/user.d.ts +1 -1
- package/dist/domain/user.js +1 -1
- package/dist/{eid-translation-nuhr8St2.d.ts → eid-translation-CH6NPWd-.d.ts} +15 -15
- package/dist/{embedding-Cz3RUJYf.d.ts → embedding-oU3gqfgX.d.ts} +1 -1
- package/dist/{erd-BujD227Y.d.ts → erd-CbV7xvAc.d.ts} +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/{features-CnFkUCj2.d.ts → features-SMSfJhB6.d.ts} +36 -2
- package/dist/{field-Bqn10Fq_.d.ts → field-D1Pfk-0S.d.ts} +2 -2
- package/dist/{field-BCRO19mk.d.ts → field-p9Rme2zB.d.ts} +6 -4
- package/dist/{git-sync-gAMKsZgN.d.ts → git-sync-BTf1aYHr.d.ts} +3 -3
- package/dist/{git-sync-DNXrNVCW.d.ts → git-sync-C99SVdJ9.d.ts} +2 -2
- package/dist/{glossary-CqFlzW33.d.ts → glossary-DFvnz-E5.d.ts} +1 -1
- package/dist/http/errors.d.ts +1 -1
- package/dist/http/transport.d.ts +1 -1
- package/dist/index.d.ts +43 -41
- package/dist/index.js +7 -5
- package/dist/input-gate-registry-Dai7SfXb.js +14 -0
- package/dist/input-gates-DwKoTJVQ.d.ts +28 -0
- package/dist/{json-CZvjc3--.d.ts → json-BksZpXDC.d.ts} +1 -1
- package/dist/json-pointer.d.ts +2 -1
- package/dist/json-pointer.js +4 -1
- package/dist/json.d.ts +1 -1
- package/dist/{library-Cx9h_RkU.d.ts → library-B9pEq7qP.d.ts} +8 -6
- package/dist/{measure-KuXdjZYJ.d.ts → measure-CgH14YQZ.d.ts} +1 -1
- package/dist/{measure-CuMqPbQX.d.ts → measure-lPz8qnwz.d.ts} +1 -1
- package/dist/{metric-yvehaVCS.d.ts → metric-DcYloqOQ.d.ts} +2 -2
- package/dist/{notification-BiegPoSD.d.ts → notification-Cp5GJErS.d.ts} +3 -3
- package/dist/{notification-BT2TDAd_.d.ts → notification-D1MThyKE.d.ts} +66 -2
- package/dist/{paginate-DZWvWvbm.d.ts → paginate-COuL0Gzl.d.ts} +1 -1
- package/dist/paginate.d.ts +1 -1
- package/dist/{pulse-CMc1Rwdj.d.ts → pulse-0LG3K6qO.d.ts} +7 -5
- package/dist/{pulse-dylocLd9.d.ts → pulse-BzKmz3Yn.d.ts} +2 -2
- package/dist/{replacement-CyvtbxGg.d.ts → replacement-BGyggp-G.d.ts} +5 -5
- package/dist/{replacement-S9U3gApY.d.ts → replacement-CVebCuNp.d.ts} +5 -5
- package/dist/{requirement-check-CIA5IHC1.d.ts → requirement-check-glU7wqhQ.d.ts} +2 -2
- package/dist/{requirements-C0txASN8.d.ts → requirements-Dx_ZVzl7.d.ts} +11 -1
- package/dist/resources/api-key.d.ts +11 -0
- package/dist/resources/api-key.js +35 -0
- package/dist/resources/card.d.ts +1 -1
- package/dist/resources/collection.d.ts +1 -1
- package/dist/resources/collection.js +29 -5
- package/dist/resources/content-translation.d.ts +1 -1
- package/dist/resources/content-translation.js +1 -1
- package/dist/resources/dashboard.d.ts +1 -1
- package/dist/resources/dashboard.js +8 -5
- package/dist/resources/data-action.d.ts +3 -48
- package/dist/resources/data-action.js +9 -9
- package/dist/resources/data-app.d.ts +112 -0
- package/dist/resources/data-app.js +75 -0
- package/dist/resources/database.d.ts +1 -1
- package/dist/resources/dataset.d.ts +1 -1
- package/dist/resources/dependency.d.ts +1 -1
- package/dist/resources/dependency.js +13 -7
- package/dist/resources/document.d.ts +2 -2
- package/dist/resources/eid-translation.d.ts +2 -2
- package/dist/resources/erd.d.ts +1 -1
- package/dist/resources/field.d.ts +1 -1
- package/dist/resources/field.js +3 -2
- package/dist/resources/git-sync.d.ts +1 -1
- package/dist/resources/git-sync.js +1 -1
- package/dist/resources/glossary.d.ts +1 -1
- package/dist/resources/library.d.ts +4 -4
- package/dist/resources/library.js +2 -2
- package/dist/resources/measure.d.ts +1 -1
- package/dist/resources/metric.d.ts +1 -1
- package/dist/resources/moderation-review.d.ts +1 -1
- package/dist/resources/notification.d.ts +1 -1
- package/dist/resources/notification.js +2 -2
- package/dist/resources/optional-parsed.d.ts +1 -1
- package/dist/resources/permission.d.ts +1 -1
- package/dist/resources/pivot-export.d.ts +1 -1
- package/dist/resources/pulse.d.ts +1 -1
- package/dist/resources/pulse.js +3 -2
- package/dist/resources/replacement.d.ts +1 -1
- package/dist/resources/revision.d.ts +3 -3
- package/dist/resources/revision.js +5 -10
- package/dist/resources/search.d.ts +1 -1
- package/dist/resources/search.js +23 -2
- package/dist/resources/segment.d.ts +1 -1
- package/dist/resources/setting.d.ts +1 -1
- package/dist/resources/setup.d.ts +2 -2
- package/dist/resources/snippet.d.ts +1 -1
- package/dist/resources/table.d.ts +1 -1
- package/dist/resources/table.js +9 -10
- package/dist/resources/timeline-event.d.ts +2 -2
- package/dist/resources/timeline.d.ts +1 -1
- package/dist/resources/transform-dag-run.d.ts +1 -1
- package/dist/resources/transform-inspector.d.ts +2 -2
- package/dist/resources/transform-job.d.ts +1 -1
- package/dist/resources/transform-python.d.ts +11 -4
- package/dist/resources/transform-python.js +3 -2
- package/dist/resources/transform-tag.d.ts +1 -1
- package/dist/resources/transform-test.d.ts +1 -1
- package/dist/resources/transform.d.ts +1 -1
- package/dist/resources/transform.js +13 -3
- package/dist/resources/upload.d.ts +1 -1
- package/dist/resources/user.d.ts +2 -2
- package/dist/{revision-CQBPhohA.d.ts → revision-Dyl-8p7d.d.ts} +8 -6
- package/dist/{search-NZR6iRBs.d.ts → search-Cm5IxKss.d.ts} +8 -8
- package/dist/{search-BxJipLN6.d.ts → search-Cten2h0I.d.ts} +2 -2
- package/dist/{segment-pj3wklGe.d.ts → segment-CbAgVO-5.d.ts} +1 -1
- package/dist/{segment-D2i34X9l.d.ts → segment-DQLX6r1E.d.ts} +2 -2
- package/dist/{setup-Ez_U7GmM.d.ts → setup-JqcJ2unJ.d.ts} +1 -1
- package/dist/signal.d.ts +1 -1
- package/dist/{snippet-hEV429Pv.d.ts → snippet-C_Ilx7tR.d.ts} +2 -2
- package/dist/{snippet-RnnWa4TL.d.ts → snippet-Djn0rL21.d.ts} +2 -2
- package/dist/{table-B_lfuaHc.d.ts → table-CDZbLNow.d.ts} +6 -6
- package/dist/{table-B3-UaPHa.d.ts → table-Od6uvDVW.d.ts} +19 -14
- package/dist/{timeline-folD3mQ_.d.ts → timeline-BK45hy-h.d.ts} +31 -31
- package/dist/{timeline-C2IEcRlP.d.ts → timeline-BTs6fuRp.d.ts} +2 -2
- package/dist/{transform-CDurgE1D.d.ts → transform-C5thnJwW.d.ts} +139 -23
- package/dist/{transform-CXOT5kFe.d.ts → transform-WASQAXeA.d.ts} +39 -25
- package/dist/{transform-inspector-BUYBt6--.d.ts → transform-inspector-CMCh8WKV.d.ts} +4 -4
- package/dist/{transform-job-CTJImaOd.d.ts → transform-job-D8jTQtdX.d.ts} +5 -3
- package/dist/{transform-job-29P6BULe.d.ts → transform-job-DmTwKxhc.d.ts} +4 -4
- package/dist/{transform-python-DdDnW6yK.d.ts → transform-python-DtL3xxMj.d.ts} +49 -4
- package/dist/{transform-tag-DVUIZTEM.d.ts → transform-tag-C6j5EUkX.d.ts} +1 -1
- package/dist/{transform-test-A-CJYT6B.d.ts → transform-test-CR_i54IV.d.ts} +1 -1
- package/dist/{transform-test-BwuyrHpT.d.ts → transform-test-CeMzDpUC.d.ts} +1 -1
- package/dist/{transport-E0ZaPNWJ.d.ts → transport-BsXqRujn.d.ts} +17 -3
- package/dist/{upload-B7PG3ePk.d.ts → upload-B5YjVkSW.d.ts} +1 -1
- package/dist/{user-2r0OBoO6.d.ts → user-Sqqv7rqh.d.ts} +2 -2
- package/dist/version/capability-error.d.ts +1 -1
- package/dist/version/features.d.ts +2 -2
- package/dist/version/features.js +30 -2
- package/dist/version/input-gates.d.ts +2 -0
- package/dist/version/input-gates.js +13 -0
- package/dist/version/probe.d.ts +1 -1
- package/dist/version/profile.d.ts +1 -1
- package/dist/version/requirement-check.d.ts +1 -1
- package/dist/version/requirements.d.ts +1 -1
- package/dist/version/requirements.js +10 -0
- package/package.json +3 -2
package/dist/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-BK45hy-h.js";
|
|
2
2
|
export { Timeline, TimelineCompact, TimelineCreateInput, TimelineEvent, TimelineEventCompact, TimelineEventCreateInput, TimelineEventUpdateInput, TimelineIcon, TimelineUpdateInput };
|
|
@@ -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-CMCh8WKV.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-D8jTQtdX.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-CeMzDpUC.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-C5thnJwW.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,8 +2,9 @@ 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
|
-
|
|
5
|
+
transform: "transform";
|
|
6
6
|
collection: "collection";
|
|
7
|
+
card: "card";
|
|
7
8
|
dashboard: "dashboard";
|
|
8
9
|
dataset: "dataset";
|
|
9
10
|
document: "document";
|
|
@@ -13,11 +14,10 @@ declare const EidModel: z.ZodEnum<{
|
|
|
13
14
|
segment: "segment";
|
|
14
15
|
snippet: "snippet";
|
|
15
16
|
timeline: "timeline";
|
|
16
|
-
transform: "transform";
|
|
17
17
|
user: "user";
|
|
18
|
-
dimension: "dimension";
|
|
19
18
|
exploration: "exploration";
|
|
20
19
|
action: "action";
|
|
20
|
+
dimension: "dimension";
|
|
21
21
|
"dashboard-card": "dashboard-card";
|
|
22
22
|
"dashboard-tab": "dashboard-tab";
|
|
23
23
|
"permissions-group": "permissions-group";
|
|
@@ -27,8 +27,9 @@ declare const EidModel: z.ZodEnum<{
|
|
|
27
27
|
type EidModel = z.infer<typeof EidModel>;
|
|
28
28
|
declare const EidTranslateInput: z.ZodObject<{
|
|
29
29
|
entity_ids: z.ZodRecord<z.ZodEnum<{
|
|
30
|
-
|
|
30
|
+
transform: "transform";
|
|
31
31
|
collection: "collection";
|
|
32
|
+
card: "card";
|
|
32
33
|
dashboard: "dashboard";
|
|
33
34
|
dataset: "dataset";
|
|
34
35
|
document: "document";
|
|
@@ -38,11 +39,10 @@ declare const EidTranslateInput: z.ZodObject<{
|
|
|
38
39
|
segment: "segment";
|
|
39
40
|
snippet: "snippet";
|
|
40
41
|
timeline: "timeline";
|
|
41
|
-
transform: "transform";
|
|
42
42
|
user: "user";
|
|
43
|
-
dimension: "dimension";
|
|
44
43
|
exploration: "exploration";
|
|
45
44
|
action: "action";
|
|
45
|
+
dimension: "dimension";
|
|
46
46
|
"dashboard-card": "dashboard-card";
|
|
47
47
|
"dashboard-tab": "dashboard-tab";
|
|
48
48
|
"permissions-group": "permissions-group";
|
|
@@ -54,8 +54,9 @@ type EidTranslateInput = z.infer<typeof EidTranslateInput>;
|
|
|
54
54
|
declare const EidTranslateEntry: z.ZodObject<{
|
|
55
55
|
status: z.ZodString;
|
|
56
56
|
type: z.ZodEnum<{
|
|
57
|
-
|
|
57
|
+
transform: "transform";
|
|
58
58
|
collection: "collection";
|
|
59
|
+
card: "card";
|
|
59
60
|
dashboard: "dashboard";
|
|
60
61
|
dataset: "dataset";
|
|
61
62
|
document: "document";
|
|
@@ -65,11 +66,10 @@ declare const EidTranslateEntry: z.ZodObject<{
|
|
|
65
66
|
segment: "segment";
|
|
66
67
|
snippet: "snippet";
|
|
67
68
|
timeline: "timeline";
|
|
68
|
-
transform: "transform";
|
|
69
69
|
user: "user";
|
|
70
|
-
dimension: "dimension";
|
|
71
70
|
exploration: "exploration";
|
|
72
71
|
action: "action";
|
|
72
|
+
dimension: "dimension";
|
|
73
73
|
"dashboard-card": "dashboard-card";
|
|
74
74
|
"dashboard-tab": "dashboard-tab";
|
|
75
75
|
"permissions-group": "permissions-group";
|
|
@@ -83,8 +83,9 @@ 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
|
-
|
|
86
|
+
transform: "transform";
|
|
87
87
|
collection: "collection";
|
|
88
|
+
card: "card";
|
|
88
89
|
dashboard: "dashboard";
|
|
89
90
|
dataset: "dataset";
|
|
90
91
|
document: "document";
|
|
@@ -94,11 +95,10 @@ declare const EidTranslateResult: z.ZodObject<{
|
|
|
94
95
|
segment: "segment";
|
|
95
96
|
snippet: "snippet";
|
|
96
97
|
timeline: "timeline";
|
|
97
|
-
transform: "transform";
|
|
98
98
|
user: "user";
|
|
99
|
-
dimension: "dimension";
|
|
100
99
|
exploration: "exploration";
|
|
101
100
|
action: "action";
|
|
101
|
+
dimension: "dimension";
|
|
102
102
|
"dashboard-card": "dashboard-card";
|
|
103
103
|
"dashboard-tab": "dashboard-tab";
|
|
104
104
|
"permissions-group": "permissions-group";
|
|
@@ -113,8 +113,9 @@ 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
|
-
|
|
116
|
+
transform: "transform";
|
|
117
117
|
collection: "collection";
|
|
118
|
+
card: "card";
|
|
118
119
|
dashboard: "dashboard";
|
|
119
120
|
dataset: "dataset";
|
|
120
121
|
document: "document";
|
|
@@ -124,11 +125,10 @@ declare const EidTranslateResultCompact: z.ZodObject<{
|
|
|
124
125
|
segment: "segment";
|
|
125
126
|
snippet: "snippet";
|
|
126
127
|
timeline: "timeline";
|
|
127
|
-
transform: "transform";
|
|
128
128
|
user: "user";
|
|
129
|
-
dimension: "dimension";
|
|
130
129
|
exploration: "exploration";
|
|
131
130
|
action: "action";
|
|
131
|
+
dimension: "dimension";
|
|
132
132
|
"dashboard-card": "dashboard-card";
|
|
133
133
|
"dashboard-tab": "dashboard-tab";
|
|
134
134
|
"permissions-group": "permissions-group";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/domain/embedding.d.ts
|
|
3
3
|
declare const EmbeddingParams: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
4
|
-
disabled: "disabled";
|
|
5
4
|
enabled: "enabled";
|
|
5
|
+
disabled: "disabled";
|
|
6
6
|
locked: "locked";
|
|
7
7
|
}>>;
|
|
8
8
|
type EmbeddingParams = z.infer<typeof EmbeddingParams>;
|
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-BsXqRujn.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-BsXqRujn.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-p9Rme2zB.js";
|
|
3
3
|
//#region src/resources/field.d.ts
|
|
4
4
|
interface FieldSearchByValue {
|
|
5
5
|
value: string;
|
|
@@ -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/field.d.ts
|
|
4
5
|
declare const FieldBaseType: z.ZodEnum<{
|
|
@@ -502,8 +503,8 @@ declare const Field: z.ZodObject<{
|
|
|
502
503
|
}, z.core.$loose>;
|
|
503
504
|
type Field = z.infer<typeof Field>;
|
|
504
505
|
declare const FieldCompact: z.ZodObject<{
|
|
505
|
-
name: z.ZodString;
|
|
506
506
|
id: z.ZodNumber;
|
|
507
|
+
name: z.ZodString;
|
|
507
508
|
description: z.ZodNullable<z.ZodString>;
|
|
508
509
|
display_name: z.ZodString;
|
|
509
510
|
table_id: z.ZodNumber;
|
|
@@ -2201,8 +2202,8 @@ declare function fieldDetailSchema(features: Features): z.ZodType<FieldDetail>;
|
|
|
2201
2202
|
/** Whether `field` came from a server that labels data sensitivity. */
|
|
2202
2203
|
declare function hasDataSensitivity(field: FieldDetail): field is FieldWithDataSensitivity;
|
|
2203
2204
|
declare const FieldWithDataSensitivityCompact: z.ZodObject<{
|
|
2204
|
-
name: z.ZodString;
|
|
2205
2205
|
id: z.ZodNumber;
|
|
2206
|
+
name: z.ZodString;
|
|
2206
2207
|
description: z.ZodNullable<z.ZodString>;
|
|
2207
2208
|
display_name: z.ZodString;
|
|
2208
2209
|
table_id: z.ZodNumber;
|
|
@@ -2381,6 +2382,7 @@ declare const FieldWithDataSensitivityCompact: z.ZodObject<{
|
|
|
2381
2382
|
}>>;
|
|
2382
2383
|
}, z.core.$strip>;
|
|
2383
2384
|
type FieldWithDataSensitivityCompact = z.infer<typeof FieldWithDataSensitivityCompact>;
|
|
2385
|
+
declare const DATA_SENSITIVITY_GATE: InputGate;
|
|
2384
2386
|
declare const FieldUpdateInput: z.ZodObject<{
|
|
2385
2387
|
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2386
2388
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2544,4 +2546,4 @@ declare const FieldSummary: z.ZodObject<{
|
|
|
2544
2546
|
}, z.core.$strip>;
|
|
2545
2547
|
type FieldSummary = z.infer<typeof FieldSummary>;
|
|
2546
2548
|
//#endregion
|
|
2547
|
-
export {
|
|
2549
|
+
export { FieldWithTarget as _, FieldCompact as a, hasDataSensitivity as b, FieldRemappedValue as c, FieldSummary as d, FieldUpdateInput as f, FieldWithDataSensitivityCompact as g, FieldWithDataSensitivity as h, FieldCoercionStrategy as i, FieldSearchMatches as l, FieldValuesCompact as m, Field as n, FieldDataSensitivity as o, FieldValues as p, FieldBaseType as r, FieldDetail as s, DATA_SENSITIVITY_GATE as t, FieldSemanticType as u, fieldDetailSchema as v, fieldRemappedValueSchema as y };
|