UNPKG

@finos/legend-application-marketplace

Version:
52 lines 2.52 kB
/** * 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 V1_AccessPointGroup, type V1_DataContract, type V1_DataProduct, type V1_DataSubscription, type V1_DataSubscriptionTarget } from '@finos/legend-graph'; import type { DataProductViewerState } from './DataProductViewerState.js'; import { ActionState, type GeneratorFn } from '@finos/legend-shared'; export declare enum DataProductGroupAccess { UNKNOWN = "UNKNOWN", PENDING_MANAGER_APPROVAL = "PENDING_MANAGER_APPROVAL", PENDING_DATA_OWNER_APPROVAL = "PENDING_DATA_OWNER_APPROVAL", COMPLETED = "COMPLETED", NO_ACCESS = "NO_ACCESS" } export declare class DataProductGroupAccessState { readonly accessState: DataProductDataAccessState; readonly group: V1_AccessPointGroup; id: string; subscriptions: V1_DataSubscription[]; fetchingAccessState: ActionState; requestingAccessState: ActionState; fetchingSubscriptionsState: ActionState; creatingSubscriptionState: ActionState; associatedContract: V1_DataContract | undefined | false; constructor(group: V1_AccessPointGroup, accessState: DataProductDataAccessState); get access(): DataProductGroupAccess; setAssociatedContract(val: V1_DataContract | undefined): void; setSubscriptions(val: V1_DataSubscription[]): void; handleDataProductContracts(contracts: V1_DataContract[]): void; handleContractClick(): void; fetchSubscriptions(contractId: string, token: string | undefined): GeneratorFn<void>; createSubscription(contractId: string, target: V1_DataSubscriptionTarget, token: string | undefined): GeneratorFn<void>; } export declare class DataProductDataAccessState { readonly viewerState: DataProductViewerState; accessGroupStates: DataProductGroupAccessState[]; fetchingDataProductAccessState: ActionState; constructor(viewerState: DataProductViewerState); get product(): V1_DataProduct; } //# sourceMappingURL=DataProductDataAccessState.d.ts.map