/** * Copyright (c) 2025-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 { LegendDataCubeSourceBuilderState, LegendDataCubeSourceBuilderType } from './LegendDataCubeSourceBuilderState.js'; import { type PlainObject, ActionState } from '@finos/legend-shared'; import type { DataCubeAlertService } from '@finos/legend-data-cube'; import type { LegendDataCubeApplicationStore } from '../../LegendDataCubeBaseStore.js'; import type { LegendDataCubeDataCubeEngine } from '../../LegendDataCubeDataCubeEngine.js'; import { IngestDeploymentServerConfig, type LakehouseIngestServerClient, type LakehousePlatformServerClient, type LakehouseContractServerClient } from '@finos/legend-server-lakehouse'; import { type V1_IngestDefinition, V1_EntitlementsLakehouseEnvironmentType, type V1_EntitlementsUserEnvResponse } from '@finos/legend-graph'; export declare class LakehouseProducerDataCubeSourceBuilderState extends LegendDataCubeSourceBuilderState { deploymentId: number | undefined; warehouse: string | undefined; ingestDefinition: PlainObject | undefined; selectedIngestUrn: string | undefined; ingestionServerUrl: string | undefined; selectedTable: string | undefined; paths: string[]; ingestUrns: string[]; tables: string[]; datasetGroup: string | undefined; icebergEnabled: boolean | undefined; enableIceberg: boolean; nonIcebergWarehouse: string | undefined; databaseName: string | undefined; catalogUrl: string | undefined; milestoning: boolean; envMode: V1_EntitlementsLakehouseEnvironmentType; userEntitledLakehouseEnv: string | undefined; allLakehouseEnvironments: IngestDeploymentServerConfig[]; selectedLakehouseEnv: IngestDeploymentServerConfig | undefined; producerEnvironments: string[]; selectedProducerEnv: string | undefined; user: string | undefined; readonly initialLoadState: ActionState; readonly fetchProducerEnvironmentsState: ActionState; private LAKEHOUSE_SECTION; readonly _platformServerClient: LakehousePlatformServerClient; readonly _ingestServerClient: LakehouseIngestServerClient; readonly _contractServerClient: LakehouseContractServerClient; constructor(application: LegendDataCubeApplicationStore, engine: LegendDataCubeDataCubeEngine, platformServerClient: LakehousePlatformServerClient, ingestServerClient: LakehouseIngestServerClient, contractServerClient: LakehouseContractServerClient, alertService: DataCubeAlertService); private get currentClassification(); /** * Extracts the identifier (last segment after ':') from a producer * environment URN. This can be a numeric deployment ID or a user ID. */ private static extractProducerId; decoratedIngest(ingestUrn: string): string | undefined; setDeploymentId(deploymentId: number | undefined): void; setWarehouse(warehouse: string | undefined): void; setSelectedIngestUrn(selectedIngestUrn: string | undefined): void; setIngestUrns(ingestUrns: string[]): void; setTables(tables: string[]): void; setDatasetGroup(datasetGroup: string | undefined): void; setSelectedTable(selectedTable: string | undefined): void; setEnableIceberg(enable: boolean): void; setSelectedLakehouseEnv(env: IngestDeploymentServerConfig | undefined): void; /** * Resets ingest/dataset/iceberg state (everything downstream of producer selection). */ private resetDownstreamState; /** * Full reset: clears everything including producer environments. * Called when mode changes. */ resetAll(): void; setEnvMode(env: V1_EntitlementsLakehouseEnvironmentType, access_token?: string | undefined): void; private resolveLakehouseEnvironment; setSelectedProducerEnv(env: string | undefined): void; get filteredLakehouseEnvironments(): IngestDeploymentServerConfig[]; initialLoad(access_token?: string | undefined): Generator[]> | Promise, void, PlainObject[] & V1_EntitlementsUserEnvResponse>; fetchProducerEnvironments(access_token: string | undefined): Generator, void, string[]>; fetchIngestUrns(access_token: string | undefined): Promise; private fetchProducerEnvironmentDetails; fetchDatasets(access_token: string | undefined): Promise; fetchIcebergCatalogDetails(access_token: string | undefined): Promise; createPath(): void; createIcebergPath(): void; get label(): LegendDataCubeSourceBuilderType; get isValid(): boolean; generateSourceData(): Promise; } //# sourceMappingURL=LakehouseProducerDataCubeSourceBuilderState.d.ts.map