/** * Copyright (c) 2026-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 { Schema } from '@finos/legend-cube'; import { CubeDataProductEnvironmentType, CubeEngineError, CubeIngestEnvironment, CubeIngestProducer, type CubeIngestCatalog, type CubeIngestDataSet, type CubeIngestDataSetLocation, type CubeIngestDefinitionList, type CubeIngestDefinitionSource, type CubeIngestEnvironmentKey, type NodeId } from '@finos/legend-cube-builder'; import type { IngestDefinition } from '@finos/legend-graph'; import type { PlainObject } from '@finos/legend-shared'; import type { EditorStore } from '../EditorStore.js'; import type { LegendStudioCubeWorkspace } from './LegendStudioCubeWorkspace.js'; /** * The classes a Studio cube's runs read, the default first: production * parallel, as the workspace isn't released, unless the definition Cube * was opened from names only a production DID (user, 2026-10-16) */ export declare const getLegendStudioCubeIngestClasses: (opened: IngestDefinition | undefined) => CubeDataProductEnvironmentType[]; /** The one producer deployment the tab lists: the project itself, whatever its definitions' deployments */ export declare const LEGEND_STUDIO_CUBE_PROJECT_PRODUCER = "0"; export declare const LEGEND_STUDIO_CUBE_MESSAGE: { GONE: (definition: string) => string; UNREADABLE: (definition: string) => string; NO_DATA_SET: (dataSet: string, definition: string) => string; }; /** * The project's own ingest definitions, for the Ingest tab and for the * engine, which types and runs on them as the workspace holds them now */ export declare class LegendStudioCubeIngestCatalog implements CubeIngestCatalog, CubeIngestDefinitionSource { readonly environmentTypes: readonly CubeDataProductEnvironmentType[]; readonly editorStore: EditorStore; readonly workspace: LegendStudioCubeWorkspace; constructor(editorStore: EditorStore, workspace: LegendStudioCubeWorkspace, /** The definition Cube was opened from, whose owner sets the default class */ opened?: IngestDefinition); /** The project's own definitions, not its dependencies' */ private get definitions(); /** The URN a cube of a class names the project's definition by */ urnOf(definition: IngestDefinition, environmentType?: CubeDataProductEnvironmentType): string; /** The project's definition a URN of either class names */ private definitionOf; /** The environment of each class, as a run of it reads */ listEnvironments(): Promise; /** The environment a run of the class names, with the project runtime's warehouse; a name given is not read */ resolveEnvironment(environment: CubeIngestEnvironmentKey): Promise; getRuntimeEnvironment(environment: CubeIngestEnvironmentKey): Promise; /** One producer, the project, so the tab lists every definition at once */ listProducers(): Promise; /** Every definition of the project, whatever its app directory deployment, named by its URN in the class */ listDefinitions(environment: CubeIngestEnvironmentKey): Promise; /** The workspace's elements, which a typing's or a run's model holds */ getModelElements(): Promise; /** The definition's element, as the workspace holds it now */ getDefinitionElement(urn: string): Promise; describe(urn: string): Promise; resolveSchemas(environment: CubeIngestEnvironmentKey, sources: ReadonlyMap): Promise>; } //# sourceMappingURL=LegendStudioCubeIngestCatalog.d.ts.map