@replyke/express
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
31 lines (30 loc) • 943 B
TypeScript
import { Sequelize } from "sequelize";
export interface CoreConfig {
accessTokenSecret: string;
refreshTokenSecret: string;
sequelize: Sequelize;
handlers: {
createEntity: (props: {
projectId: string;
}) => Promise<void>;
createComment: (props: {
projectId: string;
}) => Promise<void>;
uploadFile: (props: {
projectId: string;
fileSize: number;
}) => Promise<void>;
requestNewAccessToken: (props: {
projectId: string;
userId: string;
}) => Promise<void>;
};
createFile(projectId: string, pathParts: string[], file: Buffer | Blob, contentType?: string): Promise<{
id: string;
path: string;
fullPath: string;
publicPath: string;
}>;
}
export declare function setCoreConfig(c: CoreConfig): void;
export declare function getCoreConfig(): CoreConfig;