UNPKG

skyflow-node

Version:
23 lines (22 loc) 1.19 kB
import { IRevealResponseType, IConnectionConfig, RequestMethod, IInsertRecordInput, IDetokenizeInput, IGetByIdInput, RedactionType, IInsertOptions, IUpdateInput, IUpdateOptions, IGetInput, IGetOptions, IDeleteInput, IDeleteOptions } from './utils/common'; export interface ISkyflow { vaultID?: string; vaultURL?: string; getBearerToken: () => Promise<string>; options?: Record<string, any>; } declare class Skyflow { #private; constructor(config: ISkyflow); static init(config: ISkyflow): Skyflow; insert(records: IInsertRecordInput, options?: IInsertOptions): Promise<any>; detokenize(detokenizeInput: IDetokenizeInput): Promise<IRevealResponseType>; getById(getByIdInput: IGetByIdInput): Promise<unknown>; get(getInput: IGetInput, options?: IGetOptions): Promise<unknown>; invokeConnection(config: IConnectionConfig): Promise<unknown>; update(updateInput: IUpdateInput, options?: IUpdateOptions): Promise<unknown>; delete(deleteInput: IDeleteInput, options?: IDeleteOptions): Promise<unknown>; static get RedactionType(): typeof RedactionType; static get RequestMethod(): typeof RequestMethod; } export default Skyflow;