/** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { LegendDataCubeApplicationStore, LegendDataCubeBaseStore } from '../LegendDataCubeBaseStore.js'; import { type DataCubeAlertService, type DataCubeAPI, type DataCubeLayoutService, type DataCubeTaskService, DataCubeSpecification, type DisplayState, type DataCubeSource } from '@finos/legend-data-cube'; import { LegendDataCubeCreatorState } from './LegendDataCubeCreatorState.js'; import { PersistentDataCube, type LightPersistentDataCube, type V1_EngineServerClient, type V1_PureGraphManager } from '@finos/legend-graph'; import { ActionState } from '@finos/legend-shared'; import type { LegendDataCubeDataCubeEngine } from '../LegendDataCubeDataCubeEngine.js'; import { LegendDataCubeLoaderState } from './LegendDataCubeLoaderState.js'; import type { DepotServerClient } from '@finos/legend-server-depot'; import { LegendDataCubeBlockingWindowState } from '../../components/LegendDataCubeBlockingWindow.js'; import type { LegendDataCubeSourceLoaderState } from './source/LegendDataCubeSourceLoaderState.js'; import type { LakehouseContractServerClient, LakehouseIngestServerClient, LakehousePlatformServerClient } from '@finos/legend-server-lakehouse'; import type { LegendDataCubeCodeEditorState } from './LegendDataCubeCodeEditorState.js'; export declare class LegendDataCubeBuilderState { readonly uuid: string; readonly startTime: number; readonly _store: LegendDataCubeBuilderStore; readonly initialSpecification: DataCubeSpecification; persistentDataCube?: PersistentDataCube | undefined; dataCube?: DataCubeAPI | undefined; source?: DataCubeSource | undefined; constructor(store: LegendDataCubeBuilderStore, specification: DataCubeSpecification, persistentDataCube?: PersistentDataCube | undefined); setPersistentDataCube(val: PersistentDataCube | undefined): void; setDataCube(val: DataCubeAPI | undefined): void; setSource(val: DataCubeSource | undefined): void; } export type LegendDataCubeSaveOptions = { syncName?: boolean | undefined; autoEnableCache?: boolean | undefined; }; export declare class LegendDataCubeBuilderStore { readonly application: LegendDataCubeApplicationStore; readonly baseStore: LegendDataCubeBaseStore; readonly engine: LegendDataCubeDataCubeEngine; readonly depotServerClient: DepotServerClient; readonly platformServerClient: LakehousePlatformServerClient; readonly ingestServerClient: LakehouseIngestServerClient; readonly contractServerClient: LakehouseContractServerClient; readonly engineServerClient: V1_EngineServerClient; readonly graphManager: V1_PureGraphManager; readonly taskService: DataCubeTaskService; readonly layoutService: DataCubeLayoutService; readonly alertService: DataCubeAlertService; readonly initializeState: ActionState; readonly aboutDisplay: DisplayState; readonly releaseLogDisplay: DisplayState; readonly releaseNotesDisplay: DisplayState; readonly creator: LegendDataCubeCreatorState; readonly saveState: ActionState; readonly saverDisplay: LegendDataCubeBlockingWindowState; readonly codeEditorState: ActionState; readonly codeEditorDisplay: LegendDataCubeBlockingWindowState; readonly queryEditorState: ActionState; readonly queryEditorDisplay: LegendDataCubeBlockingWindowState; readonly deleteState: ActionState; dataCubeToDelete?: LightPersistentDataCube | PersistentDataCube | undefined; readonly deleteConfirmationDisplay: LegendDataCubeBlockingWindowState; readonly loadState: ActionState; readonly loader: LegendDataCubeLoaderState; builder?: LegendDataCubeBuilderState | undefined; readonly sourceViewerDisplay: DisplayState; sourceLoader?: LegendDataCubeSourceLoaderState | undefined; private passedFirstLoad; constructor(baseStore: LegendDataCubeBaseStore); setBuilder(val: LegendDataCubeBuilderState | undefined): void; setSourceLoader(val: LegendDataCubeSourceLoaderState | undefined): void; private updateWindowTitle; getRecentlyViewedDataCubes(): string[]; canCurrentUserManageDataCube(persistentDataCube: PersistentDataCube | LightPersistentDataCube): boolean; initialize(): Promise; cleanUp(): Promise; private getSourceLoader; loadDataCube(dataCubeId: string | undefined): Promise; private finalizeLoad; private generatePersistentDataCube; createNewDataCube(name: string, options?: LegendDataCubeSaveOptions): Promise; saveDataCube(name: string, options?: LegendDataCubeSaveOptions & { saveAsNew?: boolean | undefined; }): Promise; setDataCubeToDelete(val: LightPersistentDataCube | PersistentDataCube | undefined): void; updateBuilderWithNewSpecification(state: LegendDataCubeCodeEditorState): Promise; deleteDataCube(): Promise; } //# sourceMappingURL=LegendDataCubeBuilderStore.d.ts.map