import { Schema } from "mongoose"; import { EnumMap, IJson, IDocument, IObject, IInstance, IModel, IAction, IActionTypes } from "@onebro/oba-common"; import { DominoDownUserProfile, DominoDownUserProfilePreview } from "./profiles"; export declare enum DominoDownGameStatuses { N = "New", S = "Saved", Y = "Sent", Z = "Seen/Read", A = "Accepted", D = "Declined", R = "Revised", E = "Expired", C = "Cancelled" } export declare type DominoDownGameStatus = keyof typeof DominoDownGameStatuses; export declare type DominoDownGameConfig = { type: "contactus" | "note" | "chat" | "buy-alert" | "sell-alert"; author: string; body: string; symbol: string; subscribers: string[]; sendAt: { time?: Date; price?: number; }; img?: string; link?: string; }; export declare type DominoDownGameType = IObject & Omit & { author: DominoDownUserProfile; }; export interface DominoDownGameDocument extends IDocument, DominoDownGameType { } export interface DominoDownGame extends IInstance, DominoDownGameDocument { } export interface DominoDownGameModel extends IModel { } export declare type DominoDownGamePublicKeys = Exclude; export declare type DominoDownGamePublicData = Pick; export declare type DominoDownGameJson = IJson & DominoDownGamePublicData & { published: Date; author: DominoDownUserProfilePreview; }; export declare type DominoDownGameModelMap = { DominoDownGame: DominoDownGameModel; }; export declare type DominoDownGameInstanceMap = { game: DominoDownGame; }; export declare type DominoDownGameSchemaMap = { game: Schema; }; export declare type DominoDownGameActionTypes = IActionTypes; export declare type DominoDownGameActions = EnumMap;