import { JSONRPC } from "../datastore/sharing/rpc/JSONRPC" ; import { AutoFlashcards } from "polar-backend-api/src/api/AutoFlashcards" ; export namespace AutoFlashcardRequests { import AutoFlashcardResponse = AutoFlashcards . AutoFlashcardResponse ; import AutoFlashcardRequest = AutoFlashcards . AutoFlashcardRequest ; import AutoFlashcardError = AutoFlashcards . AutoFlashcardError ; export async function exec ( request ) { return await JSONRPC . exec ( 'autoFlashcard' , request ) ; } }