import { Schema } from "mongoose"; import { EnumMap, IJson, IDocument, IObject, IInstance, IModel, IAction, IActionTypes } from "@onebro/oba-common"; import { FirstlineUserProfile, FirstlineUserProfilePreview } from "./profiles"; export declare enum FirstlineMPAlertStatuses { N = "New", S = "Saved", Y = "Sent", Z = "Seen/Read", A = "Accepted", D = "Declined", R = "Revised", E = "Expired", C = "Cancelled" } export declare type FirstlineMPAlertStatus = keyof typeof FirstlineMPAlertStatuses; export declare type FirstlineMPAlertConfig = { 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 FirstlineMPAlertType = IObject & Omit & { author: FirstlineUserProfile; }; export interface FirstlineMPAlertDocument extends IDocument, FirstlineMPAlertType { } export interface FirstlineMPAlert extends IInstance, FirstlineMPAlertDocument { } export interface FirstlineMPAlertModel extends IModel { } export declare type FirstlineMPAlertPublicKeys = Exclude; export declare type FirstlineMPAlertPublicData = Pick; export declare type FirstlineMPAlertJson = IJson & FirstlineMPAlertPublicData & { published: Date; author: FirstlineUserProfilePreview; }; export declare type FirstlineMPAlertModelMap = { FirstlineMPAlert: FirstlineMPAlertModel; }; export declare type FirstlineMPAlertInstanceMap = { alert: FirstlineMPAlert; }; export declare type FirstlineMPAlertSchemaMap = { alert: Schema; }; export declare type FirstlineMPAlertActionTypes = IActionTypes; export declare type FirstlineMPAlertActions = EnumMap;