@malloy-publisher/sdk 0.0.234 → 0.0.236
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/dist/client/api.d.ts +12 -6
- package/package.json +7 -7
package/dist/client/api.d.ts
CHANGED
|
@@ -224,7 +224,7 @@ export interface BuildInstruction {
|
|
|
224
224
|
*/
|
|
225
225
|
'realization': Realization;
|
|
226
226
|
/**
|
|
227
|
-
* Optional name of a
|
|
227
|
+
* Optional name of a storage destination to materialize INTO (the `storage=` authoring axis) — an entry in the environment\'s `storageDestinations`, which is a disjoint set from `connections`. Absent means build into the persist source\'s own warehouse — the default, unchanged (colocated) path. When present, the build runs a native per-engine query-passthrough CTAS on a build-scoped session for that destination (the source computes; only results cross), and the manifest records the destination + captured schema so the source can later be served cross-dialect from it. The name resolves generically against registered connections; any managed-tier alias is resolved by the host upstream and never reaches the publisher.
|
|
228
228
|
* @type {string}
|
|
229
229
|
* @memberof BuildInstruction
|
|
230
230
|
*/
|
|
@@ -991,6 +991,12 @@ export interface Environment {
|
|
|
991
991
|
* @memberof Environment
|
|
992
992
|
*/
|
|
993
993
|
'connections'?: Array<Connection>;
|
|
994
|
+
/**
|
|
995
|
+
* Warehouses that materialization builds write to and that materialized queries are served from. A disjoint set from `connections` - a destination is never resolvable by name from a model, and never listed or fetchable through the connection endpoints. Names are independent of `connections`, so the same name may appear in both lists and mean two different warehouses. Reads (including the status endpoint) report only `name` and `type`, never the config - a destination\'s warehouse credentials are the operator\'s, not any caller\'s. Writes carry the full config and replace the stored list; omitting the field leaves it untouched. An entry that names a stored destination and carries no config is read as \"keep this one\", so echoing back what a read returned does not strip the stored configs. A write is all-or-nothing: because the list replaces what is stored, a value that is not a list of usable destinations is refused with 400 naming every defect, and none of it is applied - on create as well as on update. Sending an empty list is the way to clear the destinations.
|
|
996
|
+
* @type {Array<Connection>}
|
|
997
|
+
* @memberof Environment
|
|
998
|
+
*/
|
|
999
|
+
'storageDestinations'?: Array<Connection>;
|
|
994
1000
|
/**
|
|
995
1001
|
* List of Malloy packages in this environment
|
|
996
1002
|
* @type {Array<Package>}
|
|
@@ -1237,17 +1243,17 @@ export interface ManifestEntry {
|
|
|
1237
1243
|
*/
|
|
1238
1244
|
'physicalTableName': string;
|
|
1239
1245
|
/**
|
|
1240
|
-
* The persist source\'s own connection (the source warehouse). For a `storage=`-materialized entry this is where the data is READ FROM; the physical table lives in `
|
|
1246
|
+
* The persist source\'s own connection (the source warehouse). For a `storage=`-materialized entry this is where the data is READ FROM; the physical table lives in `storageDestinationName`.
|
|
1241
1247
|
* @type {string}
|
|
1242
1248
|
* @memberof ManifestEntry
|
|
1243
1249
|
*/
|
|
1244
1250
|
'connectionName'?: string;
|
|
1245
1251
|
/**
|
|
1246
|
-
* When the source was materialized into a `storage=` destination, the name of the
|
|
1252
|
+
* When the source was materialized into a `storage=` destination, the name of the storage destination the physical table physically lives in — an entry in `storageDestinations`, NOT a connection (distinct from `connectionName`, the source warehouse). Absent for the default in-warehouse path, where the table lives in `connectionName`. The serve path resolves and reads the table on that destination.
|
|
1247
1253
|
* @type {string}
|
|
1248
1254
|
* @memberof ManifestEntry
|
|
1249
1255
|
*/
|
|
1250
|
-
'
|
|
1256
|
+
'storageDestinationName'?: string;
|
|
1251
1257
|
/**
|
|
1252
1258
|
* The authoritative column schema of the materialized table, captured from the destination engine AFTER the build (a `DESCRIBE` of the landed table), for `storage=` entries only. The serve-time virtual-source transform declares exactly this schema — the compiler does not type-check a virtual source\'s declared columns, so a wrong or pre-build-approximated schema would surface as a serve-time execution error, which is why the post-build capture is authoritative.
|
|
1253
1259
|
* @type {Array<Column>}
|
|
@@ -1770,11 +1776,11 @@ export interface PackageStorageServeBindingsInner {
|
|
|
1770
1776
|
*/
|
|
1771
1777
|
'sourceName'?: string;
|
|
1772
1778
|
/**
|
|
1773
|
-
* The
|
|
1779
|
+
* The storage destination the physical table lives in (an entry in `storageDestinations`, not a connection).
|
|
1774
1780
|
* @type {string}
|
|
1775
1781
|
* @memberof PackageStorageServeBindingsInner
|
|
1776
1782
|
*/
|
|
1777
|
-
'
|
|
1783
|
+
'storageDestinationName'?: string;
|
|
1778
1784
|
/**
|
|
1779
1785
|
* The physical table the source is served from.
|
|
1780
1786
|
* @type {string}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloy-publisher/sdk",
|
|
3
3
|
"description": "Malloy Publisher SDK",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.236",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"react-router-dom": ">=7.6.2",
|
|
72
72
|
"@tanstack/react-query": ">=5.59.16",
|
|
73
73
|
"@malloydata/malloy-explorer": "0.0.338-dev260215172810",
|
|
74
|
-
"@malloydata/malloy-interfaces": "^0.0.
|
|
75
|
-
"@malloydata/malloy-query-builder": "^0.0.
|
|
76
|
-
"@malloydata/malloy-tag": "^0.0.
|
|
77
|
-
"@malloydata/render": "^0.0.
|
|
74
|
+
"@malloydata/malloy-interfaces": "^0.0.427",
|
|
75
|
+
"@malloydata/malloy-query-builder": "^0.0.427",
|
|
76
|
+
"@malloydata/malloy-tag": "^0.0.427",
|
|
77
|
+
"@malloydata/render": "^0.0.427",
|
|
78
78
|
"@mui/icons-material": ">=7.1.1",
|
|
79
79
|
"@mui/x-date-pickers": ">=7.1.1",
|
|
80
80
|
"@mui/material": ">=7.1.1",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@malloydata/malloy-explorer": "0.0.338-dev260215172810",
|
|
97
|
-
"@malloydata/malloy-query-builder": "^0.0.
|
|
98
|
-
"@malloydata/malloy-tag": "^0.0.
|
|
97
|
+
"@malloydata/malloy-query-builder": "^0.0.427",
|
|
98
|
+
"@malloydata/malloy-tag": "^0.0.427",
|
|
99
99
|
"@openapitools/openapi-generator-cli": "^2.20.2",
|
|
100
100
|
"@types/bun": "^1.2.21",
|
|
101
101
|
"@types/k6": "^1.0.2",
|