UNPKG

@finos/legend-studio

Version:
63 lines 3.1 kB
/** * 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 TestData, type Connection, type IdentifiedConnection, type DataElement, ConnectionTestData } from '@finos/legend-graph'; import { type GeneratorFn, ActionState } from '@finos/legend-shared'; import type { EditorStore } from '../../../../EditorStore.js'; import { type EmbeddedDataTypeOption, EmbeddedDataEditorState } from '../../data/DataEditorState.js'; import type { ServiceTestSuiteState } from './ServiceTestableState.js'; export declare class ConnectionTestDataState { readonly editorStore: EditorStore; readonly testDataState: ServiceTestDataState; connectionData: ConnectionTestData; embeddedEditorState: EmbeddedDataEditorState; generatingTestDataSate: ActionState; anonymizeGeneratedData: boolean; constructor(testDataState: ServiceTestDataState, connectionData: ConnectionTestData); get identifiedConnection(): IdentifiedConnection | undefined; setAnonymizeGeneratedData(val: boolean): void; generateTestData(): GeneratorFn<void>; resolveConnectionValue(id: string): Connection | undefined; getAllIdentifiedConnections(): IdentifiedConnection[]; } export declare class NewConnectionDataState { readonly testSuiteState: ServiceTestDataState; showModal: boolean; connection: IdentifiedConnection | undefined; embeddedDataType: EmbeddedDataTypeOption | undefined; dataElement: DataElement | undefined; constructor(suite: ServiceTestDataState); setModal(val: boolean): void; setDataElement(val: DataElement | undefined): void; setEmbeddedDataType(val: EmbeddedDataTypeOption | undefined): void; openModal(): void; setConnection(val: IdentifiedConnection | undefined): void; handleConnectionChange(val: IdentifiedConnection): void; createConnectionTestData(): ConnectionTestData; } export declare class ServiceTestDataState { readonly editorStore: EditorStore; readonly testSuiteState: ServiceTestSuiteState; testData: TestData; selectedDataState: ConnectionTestDataState | undefined; newConnectionDataState: NewConnectionDataState; constructor(testData: TestData, testSuiteState: ServiceTestSuiteState); createConnectionTestData(): void; setSelectedDataState(val: ConnectionTestDataState | undefined): void; deleteConnectionTestData(val: ConnectionTestData): void; openConnectionTestData(val: ConnectionTestData): void; get allIdentifiedConnections(): IdentifiedConnection[]; } //# sourceMappingURL=ServiceTestDataState.d.ts.map