mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-23 04:23:35 +00:00
wip
This commit is contained in:
@@ -14,6 +14,7 @@ export type IApp = {
|
||||
_id: mongo.ObjectID;
|
||||
created_at: Date;
|
||||
user_id: mongo.ObjectID;
|
||||
secret: string;
|
||||
};
|
||||
|
||||
export function isValidNameId(nameId: string): boolean {
|
||||
|
||||
@@ -23,6 +23,7 @@ export type IDriveFile = {
|
||||
uploadDate: Date;
|
||||
md5: string;
|
||||
filename: string;
|
||||
contentType: string;
|
||||
metadata: {
|
||||
properties: any;
|
||||
user_id: mongodb.ObjectID;
|
||||
|
||||
@@ -9,6 +9,9 @@ export default PostReaction;
|
||||
|
||||
export interface IPostReaction {
|
||||
_id: mongo.ObjectID;
|
||||
created_at: Date;
|
||||
deleted_at: Date;
|
||||
reaction: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,10 +25,12 @@ export type IPost = {
|
||||
media_ids: mongo.ObjectID[];
|
||||
reply_id: mongo.ObjectID;
|
||||
repost_id: mongo.ObjectID;
|
||||
poll: {}; // todo
|
||||
poll: any; // todo
|
||||
text: string;
|
||||
user_id: mongo.ObjectID;
|
||||
app_id: mongo.ObjectID;
|
||||
category: string;
|
||||
is_category_verified: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,6 +42,7 @@ export function isValidBirthday(birthday: string): boolean {
|
||||
export type IUser = {
|
||||
_id: mongo.ObjectID;
|
||||
created_at: Date;
|
||||
deleted_at: Date;
|
||||
email: string;
|
||||
followers_count: number;
|
||||
following_count: number;
|
||||
|
||||
Reference in New Issue
Block a user