UNPKG

@deep-foundation/deeplinks

Version:

[![npm](https://img.shields.io/npm/v/@deep-foundation/deeplinks.svg)](https://www.npmjs.com/package/@deep-foundation/deeplinks) [![Gitpod](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/deep-fo

34 lines (33 loc) 1.95 kB
import { HasuraApi } from '@deep-foundation/hasura/api.js'; import { ContainerController } from '../container-controller.js'; import { Id } from '../minilinks.js'; export declare const DOCKER: string; export declare const api: HasuraApi; export declare function makePromiseResult(promiseId: Id, resolvedTypeId: Id, promiseResultTypeId: Id, result: any, promiseReasonTypeId: Id, handleInsertId: any): any; export declare function processPromises(promises: any[], handleOperationsIds: any[], promiseId: Id, promiseResultTypeId: Id, promiseReasonTypeId: Id, resolvedTypeId: Id, rejectedTypeId: Id, log: any): Promise<void>; export declare const containerController: ContainerController; export declare function getJwt(handlerId: Id, useRunnerDebug: any): Promise<{ token: string; linkId: any; }>; export declare const useRunner: ({ code, isolationProviderImageName, handlerId, data, }: { code: string; handlerId: Id; isolationProviderImageName: string; data: any; }) => Promise<{ error?: string; }>; export declare const handlerOperations: { Insert: string; Update: string; Delete: string; }; export declare function handleOperation(operation: keyof typeof handlerOperations, triggeredByLinkId: Id, oldLink: any, newLink: any, valuesOperation?: string): Promise<void>; export declare function handleSelectorOperation(operation: keyof typeof handlerOperations, triggeredByLinkId: Id, oldLink: any, newLink: any, valuesOperation?: string): Promise<void>; export declare function handleSchedule(handleScheduleLink: any, operation: 'INSERT' | 'DELETE'): Promise<void>; export declare function handleGql(handleGqlLink: any, operation: 'INSERT' | 'DELETE'): Promise<void>; export declare function handlePort(handlePortLink: any, operation: 'INSERT' | 'DELETE'): Promise<void>; declare const _default: (req: any, res: any) => Promise<any>; export default _default; export declare const handleGqlLinks: () => Promise<void>;