UNPKG

@finos/legend-application-marketplace

Version:
36 lines 2.02 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 { ActionState, type GeneratorFn } from '@finos/legend-shared'; import { type V1_ContractUserEventRecord, type V1_UserPendingContractsRecord, type V1_DataContract } from '@finos/legend-graph'; import { type LakehouseEntitlementsStore } from './LakehouseEntitlementsStore.js'; import { LakehouseViewerState } from './LakehouseViewerState.js'; export declare class EntitlementsDashboardState extends LakehouseViewerState { pendingTasks: V1_ContractUserEventRecord[] | undefined; pendingContracts: V1_UserPendingContractsRecord[] | undefined; allContracts: V1_DataContract[] | undefined; changingState: ActionState; constructor(state: LakehouseEntitlementsStore); init(token: string | undefined): GeneratorFn<void>; fetchPendingContracts(token: string | undefined): GeneratorFn<void>; fetchPendingTasks(token: string | undefined): GeneratorFn<void>; fetchAllContracts(token: string | undefined): GeneratorFn<void>; setPendingTasks(val: V1_ContractUserEventRecord[] | undefined): void; setPendingContracts(val: V1_UserPendingContractsRecord[] | undefined): void; setAllContracts(val: V1_DataContract[] | undefined): void; approve(task: V1_ContractUserEventRecord, token: string | undefined): GeneratorFn<void>; deny(task: V1_ContractUserEventRecord, token: string | undefined): GeneratorFn<void>; } //# sourceMappingURL=EntitlementsDashboardState.d.ts.map