/** * 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 { ResolvedDataSpaceEntityWithOrigin } from '@finos/legend-extension-dsl-data-space/application'; export interface VisitedLegacyDataProduct { id: string; groupId: string; artifactId: string; path: string; versionId: string | undefined; execContext?: string | undefined; lastViewedAt?: number | undefined; } export interface VisitedDataProduct { id: string; groupId: string; artifactId: string; path: string; versionId: string | undefined; accessId?: string | undefined; dataProductAccessType?: string | undefined; title?: string | undefined; description?: string | undefined; deploymentId?: string | undefined; lastViewedAt?: number | undefined; } export type SavedVisitedLegacyDataProducts = VisitedLegacyDataProduct[]; export type SavedVisitedDataProducts = VisitedDataProduct[]; export declare const createVisitedDataSpaceId: (groupId: string, artifactId: string, dataSpace: string) => string; export declare const createIdFromDataSpaceInfo: (info: ResolvedDataSpaceEntityWithOrigin) => string | undefined; export declare const createSimpleVisitedDataspace: (groupId: string, artifactId: string, versionId: string | undefined, path: string, exec: string | undefined) => VisitedLegacyDataProduct; export declare const createVisitedDataspaceFromInfo: (info: ResolvedDataSpaceEntityWithOrigin, execContext: string | undefined) => VisitedLegacyDataProduct | undefined; export declare const hasDataSpaceInfoBeenVisited: (val: ResolvedDataSpaceEntityWithOrigin, visited: VisitedLegacyDataProduct[]) => boolean; export declare const createVisitedDataProductId: (groupId: string, artifactId: string, dataProductPath: string) => string; export declare const createSimpleVisitedDataProduct: (groupId: string, artifactId: string, versionId: string | undefined, path: string, accessId: string | undefined, dataProductAccessType?: string | undefined, title?: string | undefined, description?: string | undefined, deploymentId?: string | undefined) => VisitedDataProduct; //# sourceMappingURL=LegendQueryUserDataSpaceHelper.d.ts.map