@malloy-publisher/sdk 0.9.11 → 0.9.13
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/README.md +5 -7
- package/dist/{RenderedResult-Cmx8sX8d.es.js → RenderedResult-DnBtf-cI.es.js} +2 -2
- package/dist/{RenderedResult-BlNoIiSi.cjs.js → RenderedResult-DtQtNV0d.cjs.js} +1 -1
- package/dist/ServerProvider-BIFPCzTD.cjs.js +1 -0
- package/dist/{ServerProvider-azXLkk1q.es.js → ServerProvider-BV7IoDMR.es.js} +808 -607
- package/dist/builder/index.cjs.js +72 -72
- package/dist/builder/index.es.js +4156 -4219
- package/dist/builder-entry.d.ts +1 -0
- package/dist/client/api.d.ts +224 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +41 -37
- package/dist/components/Connections/common.d.ts +11 -3
- package/dist/components/Report/telemetry.d.ts +0 -5
- package/dist/components/ReportBuilder/BuilderBar.d.ts +1 -1
- package/dist/components/ReportBuilder/BuilderToolbar.d.ts +14 -10
- package/dist/components/ReportBuilder/EditorSurface.d.ts +1 -2
- package/dist/components/ReportBuilder/ReportBuilder.d.ts +3 -10
- package/dist/components/ReportBuilder/ReportEditor.d.ts +2 -9
- package/dist/components/ReportBuilder/SaveStatus.d.ts +16 -0
- package/dist/components/ReportBuilder/TileFrame.d.ts +9 -2
- package/dist/components/ReportBuilder/builderControls.d.ts +14 -6
- package/dist/components/ReportBuilder/useBuilderSession.d.ts +1 -1
- package/dist/components/ReportBuilder/useReportDraft.d.ts +6 -2
- package/dist/components/given/GivenInput.d.ts +18 -1
- package/dist/components/given/GivensPanel.d.ts +12 -1
- package/dist/components/given/useOptionSearch.d.ts +30 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useDocumentControls.d.ts +5 -0
- package/dist/hooks/useGivensState.d.ts +7 -0
- package/dist/hooks/useSuggestOptions.d.ts +60 -4
- package/dist/index.cjs.js +9 -9
- package/dist/index.es.js +2541 -2400
- package/dist/{useCompiledDocument-7j5cBjQd.es.js → useCompiledDocument-B4QF1mIl.es.js} +6912 -6759
- package/dist/useCompiledDocument-D0OAMejE.cjs.js +142 -0
- package/package.json +1 -1
- package/src/builder-entry.ts +1 -0
- package/src/components/Connections/AddConnectionDialog.tsx +34 -2
- package/src/components/Connections/EditConnectionDialog.tsx +45 -3
- package/src/components/Connections/common.spec.ts +69 -0
- package/src/components/Connections/common.ts +132 -0
- package/src/components/Environment/Connections.tsx +1 -0
- package/src/components/Report/ReportPage.tsx +5 -1
- package/src/components/Report/telemetry.ts +0 -6
- package/src/components/ReportBuilder/AddTileDialog.tsx +2 -2
- package/src/components/ReportBuilder/BuilderBar.tsx +5 -256
- package/src/components/ReportBuilder/BuilderHeader.tsx +9 -3
- package/src/components/ReportBuilder/BuilderToolbar.tsx +15 -38
- package/src/components/ReportBuilder/EditorSurface.tsx +0 -3
- package/src/components/ReportBuilder/FilterDialog.tsx +1 -1
- package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +210 -24
- package/src/components/ReportBuilder/ReportBuilder.tsx +43 -85
- package/src/components/ReportBuilder/ReportEditor.package.spec.tsx +0 -36
- package/src/components/ReportBuilder/ReportEditor.tsx +2 -13
- package/src/components/ReportBuilder/SaveStatus.tsx +271 -0
- package/src/components/ReportBuilder/TileFrame.spec.ts +34 -0
- package/src/components/ReportBuilder/TileFrame.tsx +10 -3
- package/src/components/ReportBuilder/builderControls.ts +39 -13
- package/src/components/ReportBuilder/emptyStart.spec.ts +1 -1
- package/src/components/ReportBuilder/useReportDraft.ts +38 -4
- package/src/components/given/GivenInput.tsx +219 -104
- package/src/components/given/GivensPanel.spec.tsx +19 -0
- package/src/components/given/GivensPanel.tsx +31 -1
- package/src/components/given/useOptionSearch.spec.tsx +218 -0
- package/src/components/given/useOptionSearch.ts +100 -0
- package/src/hooks/index.ts +5 -1
- package/src/hooks/useDocumentControls.ts +12 -1
- package/src/hooks/useGivensState.spec.ts +54 -0
- package/src/hooks/useGivensState.ts +21 -1
- package/src/hooks/useSuggestOptions.dom.spec.ts +125 -4
- package/src/hooks/useSuggestOptions.spec.ts +73 -2
- package/src/hooks/useSuggestOptions.ts +234 -62
- package/dist/ServerProvider-BOgiW8MX.cjs.js +0 -1
- package/dist/useCompiledDocument-B21sVbb4.cjs.js +0 -141
- package/src/components/ReportBuilder/ReportBuilder.layoutSwitch.spec.tsx +0 -145
package/dist/builder-entry.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { ReportBuilder } from './components/ReportBuilder/ReportBuilder';
|
|
|
2
2
|
export type { FixedFilter } from './components/ReportBuilder/FilterStrip';
|
|
3
3
|
export { BuilderBar, type BuilderBarProps, } from './components/ReportBuilder/BuilderBar';
|
|
4
4
|
export type { BuilderControls, BuilderControlsHandler, } from './components/ReportBuilder/builderControls';
|
|
5
|
+
export type { RestoredDraft } from './components/ReportBuilder/useReportDraft';
|
|
5
6
|
export type { BuilderGiven, ReportBuilderProps, } from './components/ReportBuilder/ReportBuilder';
|
|
6
7
|
export { ReportEditor, type ReportEditorProps, type TextSourceOptions, } from './components/ReportBuilder/ReportEditor';
|
|
7
8
|
export { DashboardBuilder, DashboardEditor, type DashboardBuilderProps, type DashboardEditorProps, } from './components/legacy/builderNames';
|
package/dist/client/api.d.ts
CHANGED
|
@@ -541,6 +541,7 @@ export interface Connection {
|
|
|
541
541
|
'trinoConnection'?: TrinoConnection;
|
|
542
542
|
'databricksConnection'?: DatabricksConnection;
|
|
543
543
|
'mysqlConnection'?: MysqlConnection;
|
|
544
|
+
'sqlserverConnection'?: SqlserverConnection;
|
|
544
545
|
'duckdbConnection'?: DuckdbConnection;
|
|
545
546
|
'motherduckConnection'?: MotherDuckConnection;
|
|
546
547
|
'ducklakeConnection'?: DucklakeConnection;
|
|
@@ -553,6 +554,7 @@ export declare const ConnectionTypeEnum: {
|
|
|
553
554
|
readonly Trino: "trino";
|
|
554
555
|
readonly Databricks: "databricks";
|
|
555
556
|
readonly Mysql: "mysql";
|
|
557
|
+
readonly Sqlserver: "sqlserver";
|
|
556
558
|
readonly Duckdb: "duckdb";
|
|
557
559
|
readonly Motherduck: "motherduck";
|
|
558
560
|
readonly Ducklake: "ducklake";
|
|
@@ -2330,7 +2332,7 @@ export interface RefusedSource {
|
|
|
2330
2332
|
*/
|
|
2331
2333
|
'tier': RefusedSourceTierEnum;
|
|
2332
2334
|
/**
|
|
2333
|
-
* The bounded refusal reason. Only the compile-time reasons can appear here — `free_parameter`, `authorize`, the four that name where a given the build could not strip sits (`given_in_persisted_query`, `dynamic_projection`, `dynamic_join`, `dynamic_joined_where`), the three that name an unusable `partition=` (`partition_without_storage`, `partition_column_unknown`, `partition_column_not_public`), `merge_key_scope_unresolved` (a `merge_key=` whose caller scope cannot be expressed over the stored table\'s own columns),
|
|
2335
|
+
* The bounded refusal reason. Only the compile-time reasons can appear here — `free_parameter`, `authorize`, the four that name where a given the build could not strip sits (`given_in_persisted_query`, `dynamic_projection`, `dynamic_join`, `dynamic_joined_where`), the three that name an unusable `partition=` (`partition_without_storage`, `partition_column_unknown`, `partition_column_not_public`), `merge_key_scope_unresolved` (a `merge_key=` whose caller scope cannot be expressed over the stored table\'s own columns), `preaggregate_over_dynamic_source` (a rollup whose base is scoped by a given, which has no read-time re-application to put the term back), and `read_only_dialect` (a colocated `#@ persist` on a source whose dialect cannot create tables; SQL Server today, whose connection reports `canPersist: false`) — those being the only reasons the two compile-time eligibility asserts this collection is computed from produce. `given_in_persisted_query` is raised by BOTH gates, for one condition: the BUILD would substitute a given\'s value, so the artifact holds one caller\'s slice. On colocated that is a build that runs and lies; on a storage destination the same placement also leaves nothing for the read to re-apply. A given in the source\'s extend block is neither — it is left out of the build and applied per caller at read — and is admitted on both tiers. `given` is retained for records that already carry it and is no longer produced. It was the storage tier\'s blanket refusal of any given reference, and the positional reasons above replaced it: where a given sits decides the outcome, so a single reason covering every placement can no longer be raised. `not_duckdb_portable` is decided against the post-build captured schema, which does not exist at compile time, and `public_surface_unknown` is raised by the build-time narrowing of a stored table to the source\'s public columns; both are listed only because they share the enum the runtime eligibility metric uses.
|
|
2334
2336
|
*/
|
|
2335
2337
|
'reason': RefusedSourceReasonEnum;
|
|
2336
2338
|
/**
|
|
@@ -2359,6 +2361,7 @@ export declare const RefusedSourceReasonEnum: {
|
|
|
2359
2361
|
readonly Authorize: "authorize";
|
|
2360
2362
|
readonly NotDuckdbPortable: "not_duckdb_portable";
|
|
2361
2363
|
readonly PublicSurfaceUnknown: "public_surface_unknown";
|
|
2364
|
+
readonly ReadOnlyDialect: "read_only_dialect";
|
|
2362
2365
|
};
|
|
2363
2366
|
export type RefusedSourceReasonEnum = typeof RefusedSourceReasonEnum[keyof typeof RefusedSourceReasonEnum];
|
|
2364
2367
|
/**
|
|
@@ -2915,6 +2918,47 @@ export interface SqlSource {
|
|
|
2915
2918
|
'resource'?: string;
|
|
2916
2919
|
'source'?: string;
|
|
2917
2920
|
}
|
|
2921
|
+
/**
|
|
2922
|
+
* Microsoft SQL Server connection configuration: a SQL Server login over TCP. Field names are the connector\'s own (`@malloydata/db-sqlserver`), so a value here reaches the driver unchanged. The dialect is experimental upstream; Publisher accepts it on the model author\'s behalf, so a model needs no `##! experimental.dialect.sqlserver` pragma. The connection is read-only: a `#@ persist` on a SQL Server source is refused at load (see `RefusedSource.reason`).
|
|
2923
|
+
*/
|
|
2924
|
+
export interface SqlserverConnection {
|
|
2925
|
+
/**
|
|
2926
|
+
* SQL Server host name or IP address
|
|
2927
|
+
*/
|
|
2928
|
+
'server'?: string;
|
|
2929
|
+
/**
|
|
2930
|
+
* TCP port; 1433 when omitted. Not used when `instanceName` is set.
|
|
2931
|
+
*/
|
|
2932
|
+
'port'?: number;
|
|
2933
|
+
/**
|
|
2934
|
+
* Name of the database to open
|
|
2935
|
+
*/
|
|
2936
|
+
'database'?: string;
|
|
2937
|
+
/**
|
|
2938
|
+
* SQL Server login name
|
|
2939
|
+
*/
|
|
2940
|
+
'user'?: string;
|
|
2941
|
+
/**
|
|
2942
|
+
* SQL Server login password
|
|
2943
|
+
*/
|
|
2944
|
+
'password'?: string;
|
|
2945
|
+
/**
|
|
2946
|
+
* Encrypt the connection with TLS. On when omitted, as the driver defaults it; a server that requires encryption refuses a connection with it off.
|
|
2947
|
+
*/
|
|
2948
|
+
'encrypt'?: boolean;
|
|
2949
|
+
/**
|
|
2950
|
+
* Accept a server certificate the client cannot verify, such as a self-signed one on a local or test server. Off when omitted. Leave it off for any server you do not control; a certificate the client cannot verify then fails the connection rather than being trusted.
|
|
2951
|
+
*/
|
|
2952
|
+
'trustServerCertificate'?: boolean;
|
|
2953
|
+
/**
|
|
2954
|
+
* The host name the server\'s certificate is issued to, when it is not `server` (a server reached by IP address, or through a tunnel). Checked against the certificate when `encrypt` is on and `trustServerCertificate` is off.
|
|
2955
|
+
*/
|
|
2956
|
+
'hostNameInCertificate'?: string;
|
|
2957
|
+
/**
|
|
2958
|
+
* A named instance, located through the SQL Browser service (UDP 1434); `port` is then not used.
|
|
2959
|
+
*/
|
|
2960
|
+
'instanceName'?: string;
|
|
2961
|
+
}
|
|
2918
2962
|
/**
|
|
2919
2963
|
* SSH bastion / jump-host config for reaching a database inside a private network via an SSH local port-forward. Authentication is public-key only.
|
|
2920
2964
|
*/
|
|
@@ -2953,6 +2997,40 @@ export interface StartWatchRequest {
|
|
|
2953
2997
|
*/
|
|
2954
2998
|
'environmentName': string;
|
|
2955
2999
|
}
|
|
3000
|
+
/**
|
|
3001
|
+
* What one file cleanup reclaimed
|
|
3002
|
+
*/
|
|
3003
|
+
export interface StorageFileCleanup {
|
|
3004
|
+
'snapshotsOlderThan': string;
|
|
3005
|
+
'filesOlderThan': string;
|
|
3006
|
+
/**
|
|
3007
|
+
* Snapshots this cleanup expired
|
|
3008
|
+
*/
|
|
3009
|
+
'expiredSnapshots': number;
|
|
3010
|
+
/**
|
|
3011
|
+
* Data and delete files this cleanup removed from storage
|
|
3012
|
+
*/
|
|
3013
|
+
'deletedFiles': number;
|
|
3014
|
+
}
|
|
3015
|
+
export interface StorageFileCleanupRequest {
|
|
3016
|
+
/**
|
|
3017
|
+
* Expire snapshots older than this. Sets how long a dropped table stays recoverable.
|
|
3018
|
+
*/
|
|
3019
|
+
'snapshotsOlderThan': string;
|
|
3020
|
+
/**
|
|
3021
|
+
* Delete files scheduled for deletion before this. Must outlast the longest query reading the destination.
|
|
3022
|
+
*/
|
|
3023
|
+
'filesOlderThan': string;
|
|
3024
|
+
}
|
|
3025
|
+
/**
|
|
3026
|
+
* A table in a storage destination
|
|
3027
|
+
*/
|
|
3028
|
+
export interface StorageTable {
|
|
3029
|
+
/**
|
|
3030
|
+
* Table name, unqualified
|
|
3031
|
+
*/
|
|
3032
|
+
'name': string;
|
|
3033
|
+
}
|
|
2956
3034
|
/**
|
|
2957
3035
|
* One `where:` conjunct a storage build leaves out of the artifact and the read puts back. Its `code` is the author\'s verbatim expression, which is what a serve shape re-emits; `givens` are the names that expression reads, which is what the shape must declare for it to compile.
|
|
2958
3036
|
*/
|
|
@@ -3192,6 +3270,7 @@ export interface UpdateConnectionRequest {
|
|
|
3192
3270
|
'proxy'?: ConnectionProxy;
|
|
3193
3271
|
'postgresConnection'?: PostgresConnection;
|
|
3194
3272
|
'mysqlConnection'?: MysqlConnection;
|
|
3273
|
+
'sqlserverConnection'?: SqlserverConnection;
|
|
3195
3274
|
'bigqueryConnection'?: BigqueryConnection;
|
|
3196
3275
|
'snowflakeConnection'?: SnowflakeConnection;
|
|
3197
3276
|
'duckdbConnection'?: DuckdbConnection;
|
|
@@ -5776,6 +5855,150 @@ export declare class SkillsApi extends BaseAPI {
|
|
|
5776
5855
|
*/
|
|
5777
5856
|
listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<SkillSummary[], any, {}, any>>;
|
|
5778
5857
|
}
|
|
5858
|
+
/**
|
|
5859
|
+
* StorageDestinationsApi - axios parameter creator
|
|
5860
|
+
*/
|
|
5861
|
+
export declare const StorageDestinationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5862
|
+
/**
|
|
5863
|
+
* Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
|
|
5864
|
+
* @summary Reclaim storage behind dropped tables in a DuckLake destination
|
|
5865
|
+
* @param {string} environmentName Name of the environment
|
|
5866
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
5867
|
+
* @param {StorageFileCleanupRequest} storageFileCleanupRequest
|
|
5868
|
+
* @param {*} [options] Override http request option.
|
|
5869
|
+
* @throws {RequiredError}
|
|
5870
|
+
*/
|
|
5871
|
+
createStorageDestinationFileCleanup: (environmentName: string, destinationName: string, storageFileCleanupRequest: StorageFileCleanupRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5872
|
+
/**
|
|
5873
|
+
* Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
5874
|
+
* @summary Drop a table from a storage destination
|
|
5875
|
+
* @param {string} environmentName Name of the environment
|
|
5876
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
5877
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
5878
|
+
* @param {string} tableName Name of the table
|
|
5879
|
+
* @param {*} [options] Override http request option.
|
|
5880
|
+
* @throws {RequiredError}
|
|
5881
|
+
*/
|
|
5882
|
+
deleteStorageDestinationTable: (environmentName: string, destinationName: string, schemaName: string, tableName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5883
|
+
/**
|
|
5884
|
+
* Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
|
|
5885
|
+
* @summary List tables in a storage destination
|
|
5886
|
+
* @param {string} environmentName Name of the environment
|
|
5887
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
5888
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
5889
|
+
* @param {*} [options] Override http request option.
|
|
5890
|
+
* @throws {RequiredError}
|
|
5891
|
+
*/
|
|
5892
|
+
listStorageDestinationTables: (environmentName: string, destinationName: string, schemaName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5893
|
+
};
|
|
5894
|
+
/**
|
|
5895
|
+
* StorageDestinationsApi - functional programming interface
|
|
5896
|
+
*/
|
|
5897
|
+
export declare const StorageDestinationsApiFp: (configuration?: Configuration) => {
|
|
5898
|
+
/**
|
|
5899
|
+
* Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
|
|
5900
|
+
* @summary Reclaim storage behind dropped tables in a DuckLake destination
|
|
5901
|
+
* @param {string} environmentName Name of the environment
|
|
5902
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
5903
|
+
* @param {StorageFileCleanupRequest} storageFileCleanupRequest
|
|
5904
|
+
* @param {*} [options] Override http request option.
|
|
5905
|
+
* @throws {RequiredError}
|
|
5906
|
+
*/
|
|
5907
|
+
createStorageDestinationFileCleanup(environmentName: string, destinationName: string, storageFileCleanupRequest: StorageFileCleanupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StorageFileCleanup>>;
|
|
5908
|
+
/**
|
|
5909
|
+
* Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
5910
|
+
* @summary Drop a table from a storage destination
|
|
5911
|
+
* @param {string} environmentName Name of the environment
|
|
5912
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
5913
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
5914
|
+
* @param {string} tableName Name of the table
|
|
5915
|
+
* @param {*} [options] Override http request option.
|
|
5916
|
+
* @throws {RequiredError}
|
|
5917
|
+
*/
|
|
5918
|
+
deleteStorageDestinationTable(environmentName: string, destinationName: string, schemaName: string, tableName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5919
|
+
/**
|
|
5920
|
+
* Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
|
|
5921
|
+
* @summary List tables in a storage destination
|
|
5922
|
+
* @param {string} environmentName Name of the environment
|
|
5923
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
5924
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
5925
|
+
* @param {*} [options] Override http request option.
|
|
5926
|
+
* @throws {RequiredError}
|
|
5927
|
+
*/
|
|
5928
|
+
listStorageDestinationTables(environmentName: string, destinationName: string, schemaName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<StorageTable>>>;
|
|
5929
|
+
};
|
|
5930
|
+
/**
|
|
5931
|
+
* StorageDestinationsApi - factory interface
|
|
5932
|
+
*/
|
|
5933
|
+
export declare const StorageDestinationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5934
|
+
/**
|
|
5935
|
+
* Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
|
|
5936
|
+
* @summary Reclaim storage behind dropped tables in a DuckLake destination
|
|
5937
|
+
* @param {string} environmentName Name of the environment
|
|
5938
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
5939
|
+
* @param {StorageFileCleanupRequest} storageFileCleanupRequest
|
|
5940
|
+
* @param {*} [options] Override http request option.
|
|
5941
|
+
* @throws {RequiredError}
|
|
5942
|
+
*/
|
|
5943
|
+
createStorageDestinationFileCleanup(environmentName: string, destinationName: string, storageFileCleanupRequest: StorageFileCleanupRequest, options?: RawAxiosRequestConfig): AxiosPromise<StorageFileCleanup>;
|
|
5944
|
+
/**
|
|
5945
|
+
* Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
5946
|
+
* @summary Drop a table from a storage destination
|
|
5947
|
+
* @param {string} environmentName Name of the environment
|
|
5948
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
5949
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
5950
|
+
* @param {string} tableName Name of the table
|
|
5951
|
+
* @param {*} [options] Override http request option.
|
|
5952
|
+
* @throws {RequiredError}
|
|
5953
|
+
*/
|
|
5954
|
+
deleteStorageDestinationTable(environmentName: string, destinationName: string, schemaName: string, tableName: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
5955
|
+
/**
|
|
5956
|
+
* Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
|
|
5957
|
+
* @summary List tables in a storage destination
|
|
5958
|
+
* @param {string} environmentName Name of the environment
|
|
5959
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
5960
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
5961
|
+
* @param {*} [options] Override http request option.
|
|
5962
|
+
* @throws {RequiredError}
|
|
5963
|
+
*/
|
|
5964
|
+
listStorageDestinationTables(environmentName: string, destinationName: string, schemaName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<StorageTable>>;
|
|
5965
|
+
};
|
|
5966
|
+
/**
|
|
5967
|
+
* StorageDestinationsApi - object-oriented interface
|
|
5968
|
+
*/
|
|
5969
|
+
export declare class StorageDestinationsApi extends BaseAPI {
|
|
5970
|
+
/**
|
|
5971
|
+
* Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
|
|
5972
|
+
* @summary Reclaim storage behind dropped tables in a DuckLake destination
|
|
5973
|
+
* @param {string} environmentName Name of the environment
|
|
5974
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
5975
|
+
* @param {StorageFileCleanupRequest} storageFileCleanupRequest
|
|
5976
|
+
* @param {*} [options] Override http request option.
|
|
5977
|
+
* @throws {RequiredError}
|
|
5978
|
+
*/
|
|
5979
|
+
createStorageDestinationFileCleanup(environmentName: string, destinationName: string, storageFileCleanupRequest: StorageFileCleanupRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<StorageFileCleanup, any, {}, any>>;
|
|
5980
|
+
/**
|
|
5981
|
+
* Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
5982
|
+
* @summary Drop a table from a storage destination
|
|
5983
|
+
* @param {string} environmentName Name of the environment
|
|
5984
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
5985
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
5986
|
+
* @param {string} tableName Name of the table
|
|
5987
|
+
* @param {*} [options] Override http request option.
|
|
5988
|
+
* @throws {RequiredError}
|
|
5989
|
+
*/
|
|
5990
|
+
deleteStorageDestinationTable(environmentName: string, destinationName: string, schemaName: string, tableName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<void, any, {}, any>>;
|
|
5991
|
+
/**
|
|
5992
|
+
* Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
|
|
5993
|
+
* @summary List tables in a storage destination
|
|
5994
|
+
* @param {string} environmentName Name of the environment
|
|
5995
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
5996
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
5997
|
+
* @param {*} [options] Override http request option.
|
|
5998
|
+
* @throws {RequiredError}
|
|
5999
|
+
*/
|
|
6000
|
+
listStorageDestinationTables(environmentName: string, destinationName: string, schemaName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<StorageTable[], any, {}, any>>;
|
|
6001
|
+
}
|
|
5779
6002
|
/**
|
|
5780
6003
|
* WatchModeApi - axios parameter creator
|
|
5781
6004
|
*/
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-BIFPCzTD.cjs.js");exports.AgentsApi=e.AgentsApi;exports.AgentsApiAxiosParamCreator=e.AgentsApiAxiosParamCreator;exports.AgentsApiFactory=e.AgentsApiFactory;exports.AgentsApiFp=e.AgentsApiFp;exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.CompiledDocumentKindEnum=e.CompiledDocumentKindEnum;exports.CompiledDocumentLayoutEnum=e.CompiledDocumentLayoutEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardManifestLayoutEnum=e.DashboardManifestLayoutEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GetAgentSkillsEnum=e.GetAgentSkillsEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.ManifestEntryUpstreamReuseEnum=e.ManifestEntryUpstreamReuseEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageEmbeddingIndexReasonEnum=e.PackageEmbeddingIndexReasonEnum;exports.PackageEmbeddingIndexStageEnum=e.PackageEmbeddingIndexStageEnum;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageStorageServeBindingsInnerOriginEnum=e.PackageStorageServeBindingsInnerOriginEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.RawNotebookFormatEnum=e.RawNotebookFormatEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.ReportCellsFormatEnum=e.ReportCellsFormatEnum;exports.ReportLayoutEnum=e.ReportLayoutEnum;exports.ReportManifestLayoutEnum=e.ReportManifestLayoutEnum;exports.ReportTileKindEnum=e.ReportTileKindEnum;exports.ReportsApi=e.ReportsApi;exports.ReportsApiAxiosParamCreator=e.ReportsApiAxiosParamCreator;exports.ReportsApiFactory=e.ReportsApiFactory;exports.ReportsApiFp=e.ReportsApiFp;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.SkillOriginEnum=e.SkillOriginEnum;exports.SkillSummaryOriginEnum=e.SkillSummaryOriginEnum;exports.SkillsApi=e.SkillsApi;exports.SkillsApiAxiosParamCreator=e.SkillsApiAxiosParamCreator;exports.SkillsApiFactory=e.SkillsApiFactory;exports.SkillsApiFp=e.SkillsApiFp;exports.StorageDestinationsApi=e.StorageDestinationsApi;exports.StorageDestinationsApiAxiosParamCreator=e.StorageDestinationsApiAxiosParamCreator;exports.StorageDestinationsApiFactory=e.StorageDestinationsApiFactory;exports.StorageDestinationsApiFp=e.StorageDestinationsApiFp;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.usePublisherTheme=e.usePublisherTheme;exports.useServer=e.useServer;
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as e, a as i, b as o, c as
|
|
1
|
+
import { A as e, a as i, b as o, c as t, d as n, e as r, C as p, f as u, g as m, h as A, i as l, j as E, k as c, l as b, m as y, n as C, o as d, p as g, q as F, r as P, s as S, t as k, u as D, D as M, v as R, w as h, x, y as T, z as v, B as f, E as N, F as z, G as L, H as K, I as O, J as Q, K as I, L as W, M as B, N as w, O as G, P as q, Q as U, R as j, S as H, T as J, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ia, a2 as oa, a3 as ta, a4 as na, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as la, ab as Ea, ac as ca, ad as ba, ae as ya, af as Ca, ag as da, ah as ga, ai as Fa, aj as Pa, ak as Sa, al as ka, am as Da, an as Ma, ao as Ra, ap as ha, aq as xa, ar as Ta, as as va, at as fa, au as Na, av as za, aw as La, ax as Ka, ay as Oa, az as Qa, aA as Ia, aB as Wa, aC as Ba, aD as wa, aE as Ga, aF as qa, aG as Ua, aH as ja, aI as Ha, aJ as Ja, aK as Va, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as is, aU as os, aV as ts, aW as ns, aX as rs, aY as ps, aZ as us, a_ as ms, a$ as As, b0 as ls, b1 as Es, b2 as cs, b3 as bs, b4 as ys, b5 as Cs, b6 as ds, b7 as gs, b8 as Fs, b9 as Ps } from "../ServerProvider-BV7IoDMR.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AgentsApi,
|
|
4
4
|
i as AgentsApiAxiosParamCreator,
|
|
5
5
|
o as AgentsApiFactory,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
t as AgentsApiFp,
|
|
7
|
+
n as AttachedDatabaseTypeEnum,
|
|
8
8
|
r as AzureConnectionAuthTypeEnum,
|
|
9
9
|
p as CompileProblemSeverityEnum,
|
|
10
10
|
u as CompileRequestScopeEnum,
|
|
@@ -13,20 +13,20 @@ export {
|
|
|
13
13
|
l as CompiledDocumentLayoutEnum,
|
|
14
14
|
E as Configuration,
|
|
15
15
|
c as ConnectionProxyTypeEnum,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
b as ConnectionStatusStatusEnum,
|
|
17
|
+
y as ConnectionTypeEnum,
|
|
18
|
+
C as ConnectionsApi,
|
|
19
|
+
d as ConnectionsApiAxiosParamCreator,
|
|
20
|
+
g as ConnectionsApiFactory,
|
|
21
|
+
F as ConnectionsApiFp,
|
|
22
22
|
P as ConnectionsTestApi,
|
|
23
23
|
S as ConnectionsTestApiAxiosParamCreator,
|
|
24
24
|
k as ConnectionsTestApiFactory,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
D as ConnectionsTestApiFp,
|
|
26
|
+
M as DashboardManifestKindEnum,
|
|
27
|
+
R as DashboardManifestLayoutEnum,
|
|
28
|
+
h as DashboardTileKindEnum,
|
|
29
|
+
x as DashboardsApi,
|
|
30
30
|
T as DashboardsApiAxiosParamCreator,
|
|
31
31
|
v as DashboardsApiFactory,
|
|
32
32
|
f as DashboardsApiFp,
|
|
@@ -57,8 +57,8 @@ export {
|
|
|
57
57
|
ea as ManifestEntryUpstreamReuseEnum,
|
|
58
58
|
ia as MaterializationActionActionEnum,
|
|
59
59
|
oa as MaterializationStatus,
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
ta as MaterializationsApi,
|
|
61
|
+
na as MaterializationsApiAxiosParamCreator,
|
|
62
62
|
ra as MaterializationsApiFactory,
|
|
63
63
|
pa as MaterializationsApiFp,
|
|
64
64
|
ua as ModelsApi,
|
|
@@ -67,20 +67,20 @@ export {
|
|
|
67
67
|
la as ModelsApiFp,
|
|
68
68
|
Ea as NotebookCellKindEnum,
|
|
69
69
|
ca as NotebookCellResultKindEnum,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
ba as NotebookCellResultTypeEnum,
|
|
71
|
+
ya as NotebookCellTypeEnum,
|
|
72
|
+
Ca as NotebooksApi,
|
|
73
|
+
da as NotebooksApiAxiosParamCreator,
|
|
74
|
+
ga as NotebooksApiFactory,
|
|
75
|
+
Fa as NotebooksApiFp,
|
|
76
76
|
Pa as PackageEmbeddingIndexReasonEnum,
|
|
77
77
|
Sa as PackageEmbeddingIndexStageEnum,
|
|
78
78
|
ka as PackageEmbeddingIndexStatusEnum,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
Da as PackageManifestBindingStatusEnum,
|
|
80
|
+
Ma as PackageQueryableSourcesEnum,
|
|
81
|
+
Ra as PackageScopeEnum,
|
|
82
|
+
ha as PackageStorageServeBindingsInnerOriginEnum,
|
|
83
|
+
xa as PackageWarningsInnerSeverityEnum,
|
|
84
84
|
Ta as PackagesApi,
|
|
85
85
|
va as PackagesApiAxiosParamCreator,
|
|
86
86
|
fa as PackagesApiFactory,
|
|
@@ -111,17 +111,21 @@ export {
|
|
|
111
111
|
es as ServerProvider,
|
|
112
112
|
is as ServerStatusOperationalStateEnum,
|
|
113
113
|
os as SkillOriginEnum,
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
ts as SkillSummaryOriginEnum,
|
|
115
|
+
ns as SkillsApi,
|
|
116
116
|
rs as SkillsApiAxiosParamCreator,
|
|
117
117
|
ps as SkillsApiFactory,
|
|
118
118
|
us as SkillsApiFp,
|
|
119
|
-
ms as
|
|
120
|
-
As as
|
|
121
|
-
ls as
|
|
122
|
-
Es as
|
|
123
|
-
cs as
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
ms as StorageDestinationsApi,
|
|
120
|
+
As as StorageDestinationsApiAxiosParamCreator,
|
|
121
|
+
ls as StorageDestinationsApiFactory,
|
|
122
|
+
Es as StorageDestinationsApiFp,
|
|
123
|
+
cs as ThemeDefaultModeEnum,
|
|
124
|
+
bs as WatchModeApi,
|
|
125
|
+
ys as WatchModeApiAxiosParamCreator,
|
|
126
|
+
Cs as WatchModeApiFactory,
|
|
127
|
+
ds as WatchModeApiFp,
|
|
128
|
+
gs as globalQueryClient,
|
|
129
|
+
Fs as usePublisherTheme,
|
|
130
|
+
Ps as useServer
|
|
127
131
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HTMLInputTypeAttribute } from 'react';
|
|
2
|
-
import { ConnectionTypeEnum, AzureConnection, BigqueryConnection, DatabricksConnection, DucklakeConnection, GCSConnection, MotherDuckConnection, MysqlConnection, PostgresConnection, S3Connection, SnowflakeConnection, TrinoConnection } from '../../client/api';
|
|
2
|
+
import { ConnectionTypeEnum, AzureConnection, BigqueryConnection, DatabricksConnection, DucklakeConnection, GCSConnection, MotherDuckConnection, MysqlConnection, PostgresConnection, S3Connection, SnowflakeConnection, SqlserverConnection, TrinoConnection } from '../../client/api';
|
|
3
3
|
type ConnectionField = {
|
|
4
4
|
label: string;
|
|
5
|
-
name: keyof (PostgresConnection & BigqueryConnection & SnowflakeConnection & TrinoConnection & DatabricksConnection & MysqlConnection & MotherDuckConnection & S3Connection & GCSConnection & AzureConnection & DucklakeConnection);
|
|
5
|
+
name: keyof (PostgresConnection & BigqueryConnection & SnowflakeConnection & TrinoConnection & DatabricksConnection & MysqlConnection & SqlserverConnection & MotherDuckConnection & S3Connection & GCSConnection & AzureConnection & DucklakeConnection);
|
|
6
6
|
type: HTMLInputTypeAttribute;
|
|
7
7
|
required?: boolean;
|
|
8
8
|
selectOptions?: Array<{
|
|
@@ -16,12 +16,20 @@ type ConnectionField = {
|
|
|
16
16
|
};
|
|
17
17
|
export declare const connectionFieldsByType: Record<ConnectionTypeEnum, Array<ConnectionField>>;
|
|
18
18
|
export declare const attributesFieldName: Record<ConnectionTypeEnum, string>;
|
|
19
|
+
/**
|
|
20
|
+
* The connection config to send, with each field the API types as an integer
|
|
21
|
+
* or a boolean converted from the form's string, and each optional field in
|
|
22
|
+
* {@link BLANK_MEANS_UNSET} left out when blank. A value that does not parse
|
|
23
|
+
* is sent as collected, so the server's validation names it rather than a
|
|
24
|
+
* silent `NaN`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function typedConnectionConfig(type: ConnectionTypeEnum, config: Record<string, string>): Record<string, unknown>;
|
|
19
27
|
/**
|
|
20
28
|
* Connection types the Add/Edit dialogs offer as creatable. `publisher` proxy
|
|
21
29
|
* connections are configured in publisher.config.json rather than through the
|
|
22
30
|
* UI, so they are a valid ConnectionTypeEnum but not a form choice.
|
|
23
31
|
*/
|
|
24
|
-
export declare const uiCreatableConnectionTypes: ("bigquery" | "snowflake" | "postgres" | "trino" | "databricks" | "mysql" | "duckdb" | "motherduck" | "ducklake")[];
|
|
32
|
+
export declare const uiCreatableConnectionTypes: ("bigquery" | "snowflake" | "postgres" | "trino" | "databricks" | "mysql" | "sqlserver" | "duckdb" | "motherduck" | "ducklake")[];
|
|
25
33
|
export declare const attachedDatabaseConnectionFieldName: Record<string, string>;
|
|
26
34
|
export declare const s3AttachedDatabaseFields: Array<ConnectionField>;
|
|
27
35
|
export declare const gcsAttachedDatabaseFields: Array<ConnectionField>;
|
|
@@ -113,11 +113,6 @@ export type ReportEvent = {
|
|
|
113
113
|
} | {
|
|
114
114
|
type: "report.create_refused";
|
|
115
115
|
reason: string;
|
|
116
|
-
} | {
|
|
117
|
-
/** The author switched the report between Linear and Grid; `layout` is `to`. */
|
|
118
|
-
type: "report.layout_changed";
|
|
119
|
-
from: ReportLayout;
|
|
120
|
-
to: ReportLayout;
|
|
121
116
|
} | {
|
|
122
117
|
type: "report.drill";
|
|
123
118
|
/** `self` filtered this report; `report` went to another. */
|
|
@@ -7,7 +7,7 @@ export interface BuilderBarProps {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* The builder's controls as one bar, for a host's header: the save status,
|
|
10
|
-
* undo and redo,
|
|
10
|
+
* undo and redo, an Add menu, then Done and, while there
|
|
11
11
|
* are unsaved edits, Save. The page under it stays the reader's page, with the
|
|
12
12
|
* tile and filter controls on the things they change.
|
|
13
13
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode, Ref } from 'react';
|
|
2
2
|
import { SavesTo } from './documentSession';
|
|
3
|
+
import { SaveStatusProps } from './SaveStatus';
|
|
3
4
|
import { ReportUi } from '../../theme/ui';
|
|
4
5
|
/**
|
|
5
6
|
* The toolbar's controls at the report surfaces' one size, set here rather
|
|
@@ -50,11 +51,12 @@ export declare const dividerSx: {
|
|
|
50
51
|
readonly my: 0;
|
|
51
52
|
};
|
|
52
53
|
/**
|
|
53
|
-
* A segmented control, built as an outlined button group
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* control, a size smaller than
|
|
54
|
+
* A segmented control, built as an outlined button group, for the builder's
|
|
55
|
+
* windows (the tile picker, the filter window): the same edge, height, radius
|
|
56
|
+
* and padding as "+ Tile", each segment the full height of the control with a
|
|
57
|
+
* rule between them, and the chosen one tinted edge to edge. An inset chip
|
|
58
|
+
* inside the outline read as a control within a control, a size smaller than
|
|
59
|
+
* the button next to it.
|
|
58
60
|
*/
|
|
59
61
|
export declare const segmentedSx: (edge: string, ui?: ReportUi) => {
|
|
60
62
|
readonly height: number;
|
|
@@ -123,9 +125,11 @@ export interface BuilderToolbarProps {
|
|
|
123
125
|
* Console leaves from its own header and passes nothing.
|
|
124
126
|
*/
|
|
125
127
|
onExit?: () => void;
|
|
126
|
-
/**
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
/**
|
|
129
|
+
* Where the edits stand, drawn before Save, for a builder that keeps a
|
|
130
|
+
* draft: the same status a host's {@link BuilderBar} draws, with its
|
|
131
|
+
* Discard edits menu and the word that edits were put back on opening.
|
|
132
|
+
*/
|
|
133
|
+
saveStatus?: SaveStatusProps;
|
|
130
134
|
}
|
|
131
|
-
export declare function BuilderToolbar({ canUndo, canRedo, onUndo, onRedo, dirty, saving, onSave, savesTo, saveLabel, saveButton, actions, onAddTile, onExit,
|
|
135
|
+
export declare function BuilderToolbar({ canUndo, canRedo, onUndo, onRedo, dirty, saving, onSave, savesTo, saveLabel, saveButton, actions, onAddTile, onExit, saveStatus, }: BuilderToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { SavesTo } from './documentSession';
|
|
|
4
4
|
import { TextSourceOptions } from './ReportEditor';
|
|
5
5
|
import { ReportEventHandler } from '../Report/telemetry';
|
|
6
6
|
import { BuilderControlsHandler } from './builderControls';
|
|
7
|
-
export declare function EditorSurface({ textSource, environmentName, packageName, modelPath, versionId, opened, replaces, onSave, onDirtyChange, onExit, onOpenModel, onControlsChange, draftKey,
|
|
7
|
+
export declare function EditorSurface({ textSource, environmentName, packageName, modelPath, versionId, opened, replaces, onSave, onDirtyChange, onExit, onOpenModel, onControlsChange, draftKey, onEvent, savesTo, saveLabel, note, }: {
|
|
8
8
|
textSource?: TextSourceOptions;
|
|
9
9
|
environmentName: string;
|
|
10
10
|
packageName: string;
|
|
@@ -26,7 +26,6 @@ export declare function EditorSurface({ textSource, environmentName, packageName
|
|
|
26
26
|
onControlsChange?: BuilderControlsHandler;
|
|
27
27
|
/** Keep unsaved edits in this browser under this key; see `ReportBuilderProps.draftKey`. */
|
|
28
28
|
draftKey?: string;
|
|
29
|
-
allowLayoutChange?: boolean;
|
|
30
29
|
onEvent?: ReportEventHandler;
|
|
31
30
|
savesTo: SavesTo;
|
|
32
31
|
saveLabel?: string;
|
|
@@ -117,7 +117,7 @@ export interface ReportBuilderProps {
|
|
|
117
117
|
*/
|
|
118
118
|
dashboards?: string[];
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Opens, saves and refusals, for the host to log; see
|
|
121
121
|
* `ReportEvent`. Each is stamped with `modelPath` (empty when the builder
|
|
122
122
|
* was given none) and the document's layout as it stands.
|
|
123
123
|
*/
|
|
@@ -186,7 +186,7 @@ export interface ReportBuilderProps {
|
|
|
186
186
|
onExit?: () => void;
|
|
187
187
|
/**
|
|
188
188
|
* Take over the page-level controls (save status and Save, undo and redo,
|
|
189
|
-
*
|
|
189
|
+
* and adding a tile, text or filter): the builder hands
|
|
190
190
|
* them over as `BuilderControls` whenever they change, and draws no
|
|
191
191
|
* toolbar of its own. Draw them with `BuilderBar`, or place each in
|
|
192
192
|
* the host's own chrome. `undefined` is handed over when the builder goes.
|
|
@@ -202,12 +202,5 @@ export interface ReportBuilderProps {
|
|
|
202
202
|
* One key per report and place it is saved to. Absent, nothing is kept.
|
|
203
203
|
*/
|
|
204
204
|
draftKey?: string;
|
|
205
|
-
/**
|
|
206
|
-
* Whether the toolbar offers the Linear / Grid layout switch. Default
|
|
207
|
-
* true. A host that files a report by its layout passes false, so an
|
|
208
|
-
* author cannot change a layout the host files by. A document held as text
|
|
209
|
-
* never gets the switch.
|
|
210
|
-
*/
|
|
211
|
-
allowLayoutChange?: boolean;
|
|
212
205
|
}
|
|
213
|
-
export declare function ReportBuilder({ source, document, onSave, onChange, onDirtyChange, onExit,
|
|
206
|
+
export declare function ReportBuilder({ source, document, onSave, onChange, onDirtyChange, onExit, renderTile, renderViewPreview, controls, givens, catalog, toolbar, dashboards, onEvent, savesTo, saveLabel, replaces, modelPath, visibleSources, addFilterDisabledReason, fixedFilters, onOpenModel, takenGivenNames, onControlsChange, draftKey, }: ReportBuilderProps): import("react/jsx-runtime").JSX.Element;
|