feat(api): Add dismiss, id and clear API endpoints for notifications

This commit is contained in:
Jesse Wierzbinski 2024-04-15 20:00:40 -10:00
parent 47133ac3fe
commit 0ca8000186
No known key found for this signature in database
18 changed files with 3621 additions and 1811 deletions

View file

@ -32,16 +32,16 @@ import {
emojiToStatus,
instance,
type like,
notification,
status,
statusToMentions,
user,
notification,
} from "~drizzle/schema";
import { LogLevel } from "~packages/log-manager";
import type { Note } from "~types/lysand/Object";
import type { Attachment as APIAttachment } from "~types/mastodon/attachment";
import type { Status as APIStatus } from "~types/mastodon/status";
import { applicationToAPI, type Application } from "./Application";
import { type Application, applicationToAPI } from "./Application";
import {
attachmentFromLysand,
attachmentToAPI,

View file

@ -18,6 +18,7 @@ import {
import { LogLevel } from "~packages/log-manager";
import type { Account as APIAccount } from "~types/mastodon/account";
import type { Source as APISource } from "~types/mastodon/source";
import type { Application } from "./Application";
import {
type EmojiWithInstance,
emojiToAPI,
@ -28,7 +29,6 @@ import { objectToInboxRequest } from "./Federation";
import { addInstanceIfNotExists } from "./Instance";
import { createNewRelationship } from "./Relationship";
import type { Token } from "./Token";
import type { Application } from "./Application";
export type User = InferSelectModel<typeof user> & {
endpoints?: Partial<{