2025-02-14 15:36:44 +00:00
|
|
|
import { MentionNode } from "../../../common/helpers/prosemirror/utils";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface IPageBacklinkJob {
|
|
|
|
|
pageId: string;
|
|
|
|
|
workspaceId: string;
|
|
|
|
|
mentions: MentionNode[];
|
2025-03-17 11:00:23 +00:00
|
|
|
}
|
|
|
|
|
|
2026-02-14 20:00:38 -08:00
|
|
|
export interface IAddPageWatchersJob {
|
|
|
|
|
userIds: string[];
|
|
|
|
|
pageId: string;
|
|
|
|
|
spaceId: string;
|
|
|
|
|
workspaceId: string;
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-17 11:00:23 +00:00
|
|
|
export interface IStripeSeatsSyncJob {
|
|
|
|
|
workspaceId: string;
|
2026-02-09 18:25:35 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IPageHistoryJob {
|
|
|
|
|
pageId: string;
|
2026-02-14 20:00:38 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface INotificationCreateJob {
|
|
|
|
|
userId: string;
|
|
|
|
|
workspaceId: string;
|
|
|
|
|
type: string;
|
|
|
|
|
actorId?: string;
|
|
|
|
|
pageId?: string;
|
|
|
|
|
spaceId?: string;
|
|
|
|
|
commentId?: string;
|
|
|
|
|
data?: Record<string, unknown>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ICommentNotificationJob {
|
|
|
|
|
commentId: string;
|
|
|
|
|
parentCommentId?: string;
|
|
|
|
|
pageId: string;
|
|
|
|
|
spaceId: string;
|
|
|
|
|
workspaceId: string;
|
|
|
|
|
actorId: string;
|
|
|
|
|
mentionedUserIds: string[];
|
|
|
|
|
notifyWatchers: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ICommentResolvedNotificationJob {
|
|
|
|
|
commentId: string;
|
|
|
|
|
commentCreatorId: string;
|
|
|
|
|
pageId: string;
|
|
|
|
|
spaceId: string;
|
|
|
|
|
workspaceId: string;
|
|
|
|
|
actorId: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IPageMentionNotificationJob {
|
|
|
|
|
userMentions: { userId: string; mentionId: string; creatorId: string }[];
|
|
|
|
|
oldMentionedUserIds: string[];
|
|
|
|
|
pageId: string;
|
|
|
|
|
spaceId: string;
|
|
|
|
|
workspaceId: string;
|
|
|
|
|
}
|