@finos/legend-application-marketplace
Version:
Legend Marketplace application core
61 lines • 3.81 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 GenericLegendApplicationStore, type NavigationZone } from '@finos/legend-application';
import { type DataProductArtifactGeneration, type GraphData, type GraphManagerState, type V1_AccessPointGroup, type V1_DataContract, type V1_DataProduct } from '@finos/legend-graph';
import type { VersionedProjectData } from '@finos/legend-server-depot';
import { DataProductLayoutState } from './DataProductLayoutState.js';
import { DATA_PRODUCT_VIEWER_ACTIVITY_MODE } from './DataProductViewerNavigation.js';
import { DataProductDataAccessState } from './DataProductDataAccessState.js';
import { ActionState, type GeneratorFn } from '@finos/legend-shared';
import type { LakehouseContractServerClient } from '@finos/legend-server-marketplace';
import type { MarketplaceLakehouseStore } from './MarketplaceLakehouseStore.js';
export declare class DataProductViewerState {
readonly applicationStore: GenericLegendApplicationStore;
readonly lakehouseStore: MarketplaceLakehouseStore;
readonly graphManagerState: GraphManagerState;
readonly layoutState: DataProductLayoutState;
readonly product: V1_DataProduct;
readonly isSandboxProduct: boolean;
readonly project: VersionedProjectData;
readonly retrieveGraphData: () => GraphData;
readonly viewSDLCProject: (path: string | undefined) => Promise<void>;
readonly viewIngestEnvironment?: (() => void) | undefined;
readonly onZoneChange?: ((zone: NavigationZone | undefined) => void) | undefined;
readonly lakeServerClient: LakehouseContractServerClient;
currentActivity: DATA_PRODUCT_VIEWER_ACTIVITY_MODE;
accessState: DataProductDataAccessState;
generation: DataProductArtifactGeneration | undefined;
associatedContracts: V1_DataContract[] | undefined;
dataContractAccessPointGroup: V1_AccessPointGroup | undefined;
dataContract: V1_DataContract | undefined;
creatingContractState: ActionState;
constructor(applicationStore: GenericLegendApplicationStore, lakehouseStore: MarketplaceLakehouseStore, graphManagerState: GraphManagerState, lakeServerClient: LakehouseContractServerClient, project: VersionedProjectData, product: V1_DataProduct, isSandboxProduct: boolean, generation: DataProductArtifactGeneration | undefined, actions: {
retrieveGraphData: () => GraphData;
viewSDLCProject: (path: string | undefined) => Promise<void>;
viewIngestEnvironment?: (() => void) | undefined;
onZoneChange?: ((zone: NavigationZone | undefined) => void) | undefined;
});
setAssociatedContracts(val: V1_DataContract[] | undefined): void;
setDataContractAccessPointGroup(val: V1_AccessPointGroup | undefined): void;
setDataContract(val: V1_DataContract | undefined): void;
fetchContracts(token: string | undefined): GeneratorFn<void>;
createContract(userId: string, description: string, group: V1_AccessPointGroup, token: string | undefined): GeneratorFn<void>;
setCurrentActivity(val: DATA_PRODUCT_VIEWER_ACTIVITY_MODE): void;
get isVerified(): boolean;
get deploymentId(): string | undefined;
changeZone(zone: NavigationZone, force?: boolean): void;
}
//# sourceMappingURL=DataProductViewerState.d.ts.map