/** * 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 Review, type SDLCServerClient, type Workspace } from '@finos/legend-server-sdlc'; import type { Entity } from '@finos/legend-storage'; export type DataSpaceEntityUpdater = (dataSpaceEntity: Entity) => Entity | Promise; export interface DataSpaceUpdateOptions { message: string; reviewTitle: string; reviewDescription?: string | undefined; workspaceIdPrefix?: string | undefined; } export interface DataSpaceUpdateResult { workspace: Workspace; review: Review; dataSpaceEntity: Entity; isNewReview: boolean; } export declare class DataSpaceSDLCService { readonly sdlcServerClient: SDLCServerClient; private readonly sessions; private readonly canCreateWorkspaceChecks; constructor(sdlcServerClient: SDLCServerClient); canCreateWorkspace(projectId: string): Promise; getOpenReview(projectId: string, dataSpacePath: string): Promise; getDataSpaceEntity(projectId: string, dataSpacePath: string): Promise; updateDataSpace(projectId: string, dataSpacePath: string, update: DataSpaceEntityUpdater, options: DataSpaceUpdateOptions): Promise; private getOpenSession; private fetchDataSpaceEntity; private applyUpdate; } //# sourceMappingURL=DataSpaceSDLCService.d.ts.map