import { Schema } from "mongoose"; import { EnumMap, IJson, IDocument, IObject, IInstance, IModel, IAction, IActionTypes } from "@onebro/oba-common"; import { SwiftMsgrUserProfile, SwiftMsgrUserProfilePreview } from "./profiles"; export declare enum SwiftMsgrMessageStatuses { N = "New", S = "Saved", Y = "Sent", Z = "Seen/Read", A = "Accepted", D = "Declined", R = "Revised", E = "Expired", C = "Cancelled" } export declare type SwiftMsgrMessageStatus = keyof typeof SwiftMsgrMessageStatuses; export declare type SwiftMsgrMessageConfig = { 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 SwiftMsgrMessageType = IObject & Omit & { author: SwiftMsgrUserProfile; }; export interface SwiftMsgrMessageDocument extends IDocument, SwiftMsgrMessageType { } export interface SwiftMsgrMessage extends IInstance, SwiftMsgrMessageDocument { } export interface SwiftMsgrMessageModel extends IModel { } export declare type SwiftMsgrMessagePublicKeys = Exclude; export declare type SwiftMsgrMessagePublicData = Pick; export declare type SwiftMsgrMessageJson = IJson & SwiftMsgrMessagePublicData & { published: Date; author: SwiftMsgrUserProfilePreview; }; export declare type SwiftMsgrMessageModelMap = { SwiftMsgrMessage: SwiftMsgrMessageModel; }; export declare type SwiftMsgrMessageInstanceMap = { msg: SwiftMsgrMessage; }; export declare type SwiftMsgrMessageSchemaMap = { msg: Schema; }; export declare type SwiftMsgrMessageActionTypes = IActionTypes; export declare type SwiftMsgrMessageActions = EnumMap;