/** * 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 IngestDefinition, IngestMatViewTest, IngestTestSuite, type PackageableElement, type TestSuite } from '@finos/legend-graph'; import { type GeneratorFn } from '@finos/legend-shared'; import { TestableTestEditorState, TestableTestSuiteEditorState } from '../testable/TestableEditorState.js'; import { TESTABLE_KIND } from '../../../../../__lib__/LegendStudioTelemetryHelper.js'; import type { EditorStore } from '../../../EditorStore.js'; import type { IngestDefinitionEditorState } from './IngestDefinitionEditorState.js'; import { RelationElementState } from '../data/EmbeddedDataState.js'; import { LakehouseElementTestDataState } from '../testable/LakehouseTestableUtils.js'; export type { LakehouseElementTestDataState as IngestElementTestDataState }; export declare class IngestTestState extends TestableTestEditorState { readonly suiteState: IngestTestSuiteState; test: IngestMatViewTest; readonly uuid: string; testDataRelationState: RelationElementState | undefined; get testableKind(): TESTABLE_KIND; get testablePath(): string; constructor(suiteState: IngestTestSuiteState, test: IngestMatViewTest); setDatasetId(val: string): void; get datasetLabel(): string; private backfillDatasetIdIfMissing; private buildTestDataRelationState; } export declare class IngestTestDataState { readonly editorStore: EditorStore; readonly suiteState: IngestTestSuiteState; elementTestDataStates: LakehouseElementTestDataState[]; selectedElementTestDataState: LakehouseElementTestDataState | undefined; showAddElementModal: boolean; constructor(suiteState: IngestTestSuiteState, options?: { selectedElementPath?: string | undefined; }); get availableElementsToAdd(): PackageableElement[]; setShowAddElementModal(val: boolean): void; addElement(path: string): void; deleteElement(elementState: LakehouseElementTestDataState): void; refreshElementTestDataStates(options?: { selectedElementPath?: string | undefined; }): void; setSelectedElementTestDataState(val: LakehouseElementTestDataState | undefined): void; } export declare class IngestTestSuiteState extends TestableTestSuiteEditorState { readonly testableState: IngestTestableState; suite: IngestTestSuite; testStates: IngestTestState[]; selectTestState: IngestTestState | undefined; testDataState: IngestTestDataState; readonly uuid: string; get testableKind(): TESTABLE_KIND; get testablePath(): string; constructor(editorStore: EditorStore, testableState: IngestTestableState, suite: IngestTestSuite); refreshTestDataState(): void; buildTestStates(): void; deleteTest(test: IngestMatViewTest): void; addNewTest(testName: string, datasetName: string): GeneratorFn; } export declare class IngestTestableState { readonly editorStore: EditorStore; readonly ingestDefinitionEditorState: IngestDefinitionEditorState; suiteStates: IngestTestSuiteState[]; selectedSuiteState: IngestTestSuiteState | undefined; showCreateSuiteModal: boolean; showCreateTestModal: boolean; suiteToRename: TestSuite | undefined; constructor(ingestDefinitionEditorState: IngestDefinitionEditorState); get ingest(): IngestDefinition; get datasetNames(): string[]; setSelectedSuiteState(val: IngestTestSuiteState | undefined): void; setShowCreateSuiteModal(val: boolean): void; setShowCreateTestModal(val: boolean): void; setSuiteToRename(val: TestSuite | undefined): void; changeSuite(suite: TestSuite): void; init(): void; createSuite(suiteName: string, testName: string, datasetName: string): GeneratorFn; deleteSuite(suiteState: IngestTestSuiteState): void; } //# sourceMappingURL=IngestTestableState.d.ts.map