/** * 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 RenderResult } from '@testing-library/react'; import { type PlainObject, type AbstractPlugin, type AbstractPreset } from '@finos/legend-shared'; import { type GraphManagerState, type RawMappingModelCoverageAnalysisResult, RawLambda, type V1_DataProductArtifact } from '@finos/legend-graph'; import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager.js'; import type { StoredFileGeneration, Entity } from '@finos/legend-storage'; import { ExistingQueryEditorStore } from '../../stores/QueryEditorStore.js'; import type { LegendQueryApplicationStore } from '../../stores/LegendQueryBaseStore.js'; import { type QueryBuilderState } from '@finos/legend-query-builder'; import { type V1_DataSpaceAnalysisResult } from '@finos/legend-extension-dsl-data-space/graph'; import { DataSpaceTemplateQueryCreatorStore } from '../../stores/data-space/DataSpaceTemplateQueryCreatorStore.js'; import { DataProductSampleQueryCreatorStore } from '../../stores/data-product/DataProductSampleQueryCreatorStore.js'; export declare const TEST_QUERY_NAME = "MyTestQuery"; export declare const TEST__provideMockedQueryEditorStore: (customization?: { mock?: ExistingQueryEditorStore; applicationStore?: LegendQueryApplicationStore; graphManagerState?: GraphManagerState; pluginManager?: LegendQueryPluginManager; extraPlugins?: AbstractPlugin[]; extraPresets?: AbstractPreset[]; }) => ExistingQueryEditorStore; export declare const TEST__provideMockedDataSpaceTemplateQueryCreatorStore: (customization?: { mock?: DataSpaceTemplateQueryCreatorStore; applicationStore?: LegendQueryApplicationStore; graphManagerState?: GraphManagerState; pluginManager?: LegendQueryPluginManager; extraPlugins?: AbstractPlugin[]; extraPresets?: AbstractPreset[]; }) => DataSpaceTemplateQueryCreatorStore; export declare const TEST__setUpQueryEditor: (MOCK__editorStore: ExistingQueryEditorStore, entities: PlainObject[], lambda: RawLambda, mappingPath: string, runtimePath: string, rawMappingModelCoverageAnalysisResult?: RawMappingModelCoverageAnalysisResult) => Promise<{ renderResult: RenderResult; queryBuilderState: QueryBuilderState; }>; export declare const TEST__setUpDataSpaceExistingQueryEditor: (MOCK__editorStore: ExistingQueryEditorStore, V1_dataspaceAnalyticsResult: PlainObject, dataSpacePath: string, executionContext: string, lambda: RawLambda, entities: PlainObject[], buildWithMinimalGraph?: boolean, V1_dataspaceArtifacts?: PlainObject[]) => Promise<{ renderResult: RenderResult; queryBuilderState: QueryBuilderState; }>; export declare const TEST__setUpDataSpaceTemplateQueryEditor: (MOCK__editorStore: DataSpaceTemplateQueryCreatorStore, V1_dataspaceAnalyticsResult: PlainObject, dataSpacePath: string, executionContext: string, lambda: RawLambda, entities: PlainObject[]) => Promise<{ renderResult: RenderResult; queryBuilderState: QueryBuilderState; }>; export declare const TEST__setUpDataProductExistingQueryEditor: (MOCK__editorStore: ExistingQueryEditorStore, dataProductPath: string, accessPointGroupId: string, lambda: RawLambda, entities: PlainObject[]) => Promise<{ renderResult: RenderResult; queryBuilderState: QueryBuilderState; }>; export declare const TEST__setUpDataProductNativeExistingQueryEditor: (MOCK__editorStore: ExistingQueryEditorStore, dataProductPath: string, executionKey: string, lambda: RawLambda, entities: PlainObject[], artifact?: V1_DataProductArtifact | undefined) => Promise<{ renderResult: RenderResult; queryBuilderState: QueryBuilderState; }>; export declare const TEST__provideMockedDataProductSampleQueryCreatorStore: (customization?: { mock?: DataProductSampleQueryCreatorStore; applicationStore?: LegendQueryApplicationStore; pluginManager?: LegendQueryPluginManager; extraPlugins?: AbstractPlugin[]; extraPresets?: AbstractPreset[]; }) => DataProductSampleQueryCreatorStore; export declare const TEST__setUpDataProductSampleQueryEditor: (MOCK__editorStore: DataProductSampleQueryCreatorStore, dataProductPath: string, executionKey: string, lambda: RawLambda, entities: PlainObject[], artifact: V1_DataProductArtifact) => Promise<{ renderResult: RenderResult; queryBuilderState: QueryBuilderState; }>; //# sourceMappingURL=QueryEditorComponentTestUtils.d.ts.map