/** * 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 QuerySearchSpecification, type RawLambda, type ValueSpecification } from '@finos/legend-graph'; import { type DepotServerClient } from '@finos/legend-server-depot'; import { type GeneratorFn } from '@finos/legend-shared'; import type { QueryBuilderState } from '@finos/legend-query-builder'; import { type ProjectGAVCoordinates } from '@finos/legend-storage'; import { type QueryPersistConfiguration, QueryEditorStore } from './QueryEditorStore.js'; import type { LegendQueryApplicationStore } from './LegendQueryBaseStore.js'; /** * Abstract base store for template/sample query creator flows. */ export declare abstract class BaseTemplateQueryCreatorStore extends QueryEditorStore { readonly groupId: string; readonly artifactId: string; readonly versionId: string; readonly templateQueryId: string; templateQueryTitle?: string; urlQueryParamValues: Record | undefined; constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, groupId: string, artifactId: string, versionId: string, templateQueryId: string, urlQueryParamValues: Record | undefined); getProjectInfo(): ProjectGAVCoordinates; buildGraph(): GeneratorFn; /** * Returns the entity path (DataSpace path or DataProduct path) used for * display names in persist configuration. */ abstract getEntityPath(): string; /** * Returns the tagged values to attach to the search specification. */ abstract getSearchTaggedValues(): { profile: string; tag: string; value: string; }[]; /** * Returns the tagged values to attach to the persisted query */ abstract getQueryDecoratorTaggedValues(): { profile: string; tag: string; value: string; }[] | undefined; /** * Resolves URL query parameters into a default parameter values map. * Shared by both DataSpace and DataProduct template/sample query flows. */ resolveDefaultParameters(query: RawLambda): Promise | undefined>; getPersistConfiguration(lambda: RawLambda, options?: { update: boolean | undefined; }): QueryPersistConfiguration; decorateSearchSpecification(val: QuerySearchSpecification): QuerySearchSpecification; abstract initializeQueryBuilderState(): Promise; } //# sourceMappingURL=BaseTemplateQueryCreatorStore.d.ts.map