refactor(backend): update directory structure for models

This commit is contained in:
syuilo 2023-09-20 11:33:36 +09:00
parent c3db55b5b6
commit 053da10e94
223 changed files with 488 additions and 488 deletions

View file

@ -0,0 +1,71 @@
/*
* SPDX-FileCopyrightText: syuilo and other misskey contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { notificationTypes } from '@/types.js';
import { MiUser } from './User.js';
import { MiNote } from './Note.js';
import { MiFollowRequest } from './FollowRequest.js';
import { MiAccessToken } from './AccessToken.js';
export type MiNotification = {
id: string;
// RedisのためDateではなくstring
createdAt: string;
/**
* (initiator)
*/
notifierId: MiUser['id'] | null;
/**
*
* follow -
* mention - 稿
* reply - 稿
* renote - 稿Renoteされた
* quote - 稿Renoteされた
* reaction - 稿
* pollEnded -
* receiveFollowRequest -
* followRequestAccepted -
* achievementEarned -
* app -
* test -
*/
type: typeof notificationTypes[number];
noteId: MiNote['id'] | null;
followRequestId: MiFollowRequest['id'] | null;
reaction: string | null;
choice: number | null;
achievement: string | null;
/**
* body
*/
customBody: string | null;
/**
* header
* ()
*/
customHeader: string | null;
/**
* icon(URL)
* ()
*/
customIcon: string | null;
/**
* ()
*/
appAccessTokenId: MiAccessToken['id'] | null;
}