UNPKG

@samepage/backend

Version:

Backend utilities for the apis of SamePage integrations

13 lines (12 loc) 1.1 kB
import { CommandLibrary, DecodeState, DeletePage, EncodeState, EnsurePageByTitle, ListWorkflows, OpenPage } from "../internal/types"; import { GetAccessTokenResponse } from "./types"; declare const createApiBackendPostHandler: ({ getDecodeState, getEncodeState, getEnsurePageByTitle, getCommandLibrary, getDeletePage, getOpenPage, getListWorkflows, }?: { getEnsurePageByTitle?: ((credentials: GetAccessTokenResponse) => EnsurePageByTitle) | undefined; getEncodeState?: ((credentials: GetAccessTokenResponse) => EncodeState) | undefined; getDecodeState?: ((credentials: GetAccessTokenResponse) => DecodeState) | undefined; getDeletePage?: ((credentials: GetAccessTokenResponse) => DeletePage) | undefined; getOpenPage?: ((credentials: GetAccessTokenResponse) => OpenPage) | undefined; getCommandLibrary?: ((credentials: GetAccessTokenResponse) => CommandLibrary) | undefined; getListWorkflows?: ((credentials: GetAccessTokenResponse) => ReturnType<ListWorkflows>) | undefined; }) => import("aws-lambda").APIGatewayProxyHandler; export default createApiBackendPostHandler;