@finos/legend-application-marketplace
Version:
Legend Marketplace application core
34 lines • 2.07 kB
TypeScript
/**
* 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 LakehouseContractServerClient, type LakehousePlatformServerClient, IngestDeploymentServerConfig } from '@finos/legend-server-lakehouse';
import type { LegendMarketplaceBaseStore } from '../LegendMarketplaceBaseStore.js';
export declare class LakehouseDataProductService {
readonly legendMarketplaceBaseStore: LegendMarketplaceBaseStore;
readonly lakehousePlatformServerClient: LakehousePlatformServerClient;
readonly lakehouseContractServerClient: LakehouseContractServerClient;
readonly didToEnvironmentRequestMap: Map<number, Promise<IngestDeploymentServerConfig>>;
readonly didToOwnersRequestMap: Map<number, Promise<string[]>>;
readonly didToEnvironmentMap: Map<number, IngestDeploymentServerConfig>;
readonly didToOwnersMap: Map<number, string[]>;
constructor(legendMarketplaceBaseStore: LegendMarketplaceBaseStore, lakehousePlatformServerClient: LakehousePlatformServerClient, lakehouseContractServerClient: LakehouseContractServerClient);
setEnvironment(did: number, environment: IngestDeploymentServerConfig): void;
setOwners(did: number, owners: string[]): void;
private fetchEnvironmentForDID;
getOrFetchEnvironmentForDID(did: number, token: string | undefined): Promise<IngestDeploymentServerConfig | undefined>;
private fetchOwnersForDID;
getOrFetchOwnersForDID(did: number, token: string | undefined): Promise<string[]>;
}
//# sourceMappingURL=LakehouseDataProductService.d.ts.map