import { Connector, Pagination } from './types'; import { Field } from 'canner-graphql-utils/lib/schema/types'; export default class CannerPlatformConnector implements Connector { isPlatform: boolean; protected service: string; protected resourceId: string; protected connectorName: string; protected connectorParams: any; private secret; private env; private appId; private rootSchema; prepare({ secret, appId, env, schema }: { secret: string; appId: string; env: string; schema: any; }): Promise; listResolveByUnique({ key, field, schema }: { key: string; field: { [key: string]: any; }; schema: Field; }): Promise; listResolveQuery({ key, where, order, pagination, schema }: { key: string; where: any; order: any; pagination: Pagination; schema: Field; }): Promise; hasNextPage(): Promise; resolveToOne({ from, to, id, schema }: { from: string; to: string; id: string; schema: Field; }): Promise; resolveToMany({ from, to, ids, pagination, schema }: { from: string; to: string; ids: [string]; pagination: Pagination; schema: Field; }): Promise; mapResolve(key: string, schema: Field): Promise; mapUpdate(key: string, payload: any, schema: Field): Promise; listCreate(key: string, payload: any, schema: Field): Promise; listUpdate(key: string, where: any, payload: any, schema: Field): Promise; listDelete(key: string, where: any, schema: Field): Promise; private request; }