///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
export interface HistoryMessage {
msgId: string;
quoteId?: string;
botId: string;
buttons: any[];
content: string;
conversionId: string;
goods: any[];
text: string;
timestamp: number;
title: string;
type: string;
position: string;
isBot: boolean;
like?: boolean;
unlike?: boolean;
unlikeReason?: string;
fileUrl?: string;
mediaType?: string;
}
export interface FeedbackMessage {
answer: string | undefined;
msgId: string;
quoteId?: string;
botId: string;
buttons: any[];
content: string;
conversionId: string;
goods: any[];
text: string;
timestamp: number;
title: string;
type: string;
position: string;
isBot: boolean;
like?: boolean;
unlike?: boolean;
unlikeReason?: string;
question: string;
fileUrl?: string;
mediaType?: string;
}
export interface UpdateMessage {
like?: boolean;
unlike?: boolean;
unlikeReason?: string;
}
export declare function saveMessage(info: HistoryMessage): Promise & {
buttons: any[];
goods: any[];
botId?: string | null | undefined;
type?: string | null | undefined;
text?: string | null | undefined;
content?: string | null | undefined;
conversionId?: string | null | undefined;
fileUrl?: string | null | undefined;
like?: boolean | null | undefined;
mediaType?: string | null | undefined;
msgId?: string | null | undefined;
position?: string | null | undefined;
quoteId?: string | null | undefined;
timestamp?: number | null | undefined;
title?: string | null | undefined;
unlike?: boolean | null | undefined;
unlikeReason?: string | null | undefined;
} & {
_id: import("mongoose").Types.ObjectId;
}>;
export declare function updateMessage(msgId: string, info: UpdateMessage): Promise;
export declare function getMessage(msgId: string): Promise;
export declare function saveFeedback(info: FeedbackMessage): Promise & {
buttons: any[];
goods: any[];
botId?: string | null | undefined;
type?: string | null | undefined;
text?: string | null | undefined;
content?: string | null | undefined;
conversionId?: string | null | undefined;
fileUrl?: string | null | undefined;
like?: boolean | null | undefined;
mediaType?: string | null | undefined;
msgId?: string | null | undefined;
position?: string | null | undefined;
quoteId?: string | null | undefined;
timestamp?: number | null | undefined;
title?: string | null | undefined;
unlike?: boolean | null | undefined;
unlikeReason?: string | null | undefined;
answer?: string | null | undefined;
question?: string | null | undefined;
} & {
_id: import("mongoose").Types.ObjectId;
}>;
//# sourceMappingURL=service.d.ts.map