UNPKG

@finos/legend-server-marketplace

Version:
45 lines 3.12 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_CreateContractPayload, V1_CreateSubscriptionInput, V1_DataContract, V1_DataContractsRecord, V1_DataSubscriptionResponse, V1_PendingTasksRespond, V1_TaskStatus, V1_UserPendingContractsResponse } from '@finos/legend-graph'; import { AbstractServerClient, type PlainObject } from '@finos/legend-shared'; export interface LakehouseContractServerClientConfig { baseUrl: string; } export declare class LakehouseContractServerClient extends AbstractServerClient { constructor(config: LakehouseContractServerClientConfig); private _token; private _contracts; getDataProducts: (token?: string | undefined) => Promise<PlainObject[]>; private _dataContracts; getDataContracts: (token: string | undefined) => Promise<PlainObject<V1_DataContractsRecord>>; getDataContract: (id: string, token: string | undefined) => Promise<PlainObject<V1_DataContractsRecord>>; getApprovedUsersForDataContract: (id: string, token: string | undefined) => Promise<PlainObject<V1_DataContractsRecord>>; getDataContractsFromDID: (body: PlainObject<AppendMode>[], token: string | undefined) => Promise<PlainObject<V1_DataContractsRecord>>; getPendingContracts: (user: string | undefined, token: string | undefined) => Promise<PlainObject<V1_UserPendingContractsResponse>>; createContract: (contractRequest: PlainObject<V1_CreateContractPayload>, token: string | undefined) => Promise<V1_DataContract>; private _tasks; private _contract_tasks; getPendingTasks: (user: string | undefined, token: string | undefined) => Promise<PlainObject<V1_PendingTasksRespond>>; getTask: (taskId: string, token: string | undefined) => Promise<PlainObject<V1_PendingTasksRespond>>; getContractTasks: (contractId: string, token: string | undefined) => Promise<PlainObject<V1_PendingTasksRespond>>; approveTask: (id: string, token: string | undefined) => Promise<PlainObject<V1_TaskStatus>>; denyTask: (id: string, token: string | undefined) => Promise<PlainObject<V1_TaskStatus>>; private _subscriptions; getAllSubscriptions: (token: string | undefined) => Promise<PlainObject<V1_DataSubscriptionResponse>>; getSubscriptionsForContract: (contractId: string, token: string | undefined) => Promise<PlainObject<V1_DataSubscriptionResponse>[]>; createSubscription: (input: PlainObject<V1_CreateSubscriptionInput>, token: string | undefined) => Promise<PlainObject<V1_DataSubscriptionResponse>>; } //# sourceMappingURL=LakehouseContractServerClient.d.ts.map