think/packages/domains/lib/models/message.d.ts

25 lines
637 B
TypeScript
Raw Normal View History

2022-04-02 09:57:30 +00:00
import { IUser } from './user';
2022-06-29 16:03:02 +00:00
import { IOrganization } from './organization';
import { IWiki } from './wiki';
import { IDocument } from './document';
2022-05-18 08:02:29 +00:00
/**
*
*/
2022-03-11 05:57:55 +00:00
export interface IMessage {
id: string;
2022-04-02 09:57:30 +00:00
userId: IUser['id'];
2022-03-11 05:57:55 +00:00
title: string;
message: string;
url: string;
read: boolean;
createdAt: Date;
updatedAt: Date;
}
2022-06-29 16:03:02 +00:00
declare type MessageType = 'toOrganization' | 'toWiki' | 'toDocument';
export declare const buildMessageURL: (type: MessageType) => (arg: {
organizationId: IOrganization['id'];
wikiId?: IWiki['id'];
documentId?: IDocument['id'];
}) => string;
export {};