forked from mirrors/misskey
wip
This commit is contained in:
@@ -20,8 +20,14 @@ export { getGridFSBucket };
|
||||
|
||||
export type IDriveFile = {
|
||||
_id: mongodb.ObjectID;
|
||||
created_at: Date;
|
||||
user_id: mongodb.ObjectID;
|
||||
uploadDate: Date;
|
||||
md5: string;
|
||||
filename: string;
|
||||
metadata: {
|
||||
properties: any;
|
||||
user_id: mongodb.ObjectID;
|
||||
folder_id: mongodb.ObjectID;
|
||||
}
|
||||
};
|
||||
|
||||
export function validateFileName(name: string): boolean {
|
||||
|
||||
@@ -9,7 +9,9 @@ export default DriveFolder;
|
||||
export type IDriveFolder = {
|
||||
_id: mongo.ObjectID;
|
||||
created_at: Date;
|
||||
name: string;
|
||||
user_id: mongo.ObjectID;
|
||||
parent_id: mongo.ObjectID;
|
||||
};
|
||||
|
||||
export function isValidFolderName(name: string): boolean {
|
||||
|
||||
@@ -10,6 +10,11 @@ export default MessagingMessage;
|
||||
|
||||
export interface IMessagingMessage {
|
||||
_id: mongo.ObjectID;
|
||||
created_at: Date;
|
||||
text: string;
|
||||
user_id: mongo.ObjectID;
|
||||
recipient_id: mongo.ObjectID;
|
||||
is_read: boolean;
|
||||
}
|
||||
|
||||
export function isValidText(text: string): boolean {
|
||||
|
||||
Reference in New Issue
Block a user