import { Schema } from "mongoose"; import { EnumMap, IJson, IDocument, IObject, IInstance, IModel, IAction, IActionTypes } from "@onebro/oba-common"; import { CnDUserProfile, CnDUserProfilePreview } from "./profiles"; export declare enum CnDGameStatuses { N = "New", S = "Saved", Y = "Sent", Z = "Seen/Read", A = "Accepted", D = "Declined", R = "Revised", E = "Expired", C = "Cancelled" } export declare type CnDGameStatus = keyof typeof CnDGameStatuses; export declare type CnDGameConfig = { 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 CnDGameType = IObject & Omit & { author: CnDUserProfile; }; export interface CnDGameDocument extends IDocument, CnDGameType { } export interface CnDGame extends IInstance, CnDGameDocument { } export interface CnDGameModel extends IModel { } export declare type CnDGamePublicKeys = Exclude; export declare type CnDGamePublicData = Pick; export declare type CnDGameJson = IJson & CnDGamePublicData & { published: Date; author: CnDUserProfilePreview; }; export declare type CnDGameModelMap = { CnDGame: CnDGameModel; }; export declare type CnDGameInstanceMap = { game: CnDGame; }; export declare type CnDGameSchemaMap = { game: Schema; }; export declare type CnDGameActionTypes = IActionTypes; export declare type CnDGameActions = EnumMap;