feat(server): notification system (#10053)

closes CLOUD-52
This commit is contained in:
fengmk2
2025-03-06 15:25:05 +00:00
parent 81694a1144
commit 7302c4f954
20 changed files with 2356 additions and 14 deletions

View File

@@ -767,4 +767,19 @@ export const USER_FRIENDLY_ERRORS = {
message: ({ clientVersion, requiredVersion }) =>
`Unsupported client with version [${clientVersion}], required version is [${requiredVersion}].`,
},
// Notification Errors
notification_not_found: {
type: 'resource_not_found',
message: 'Notification not found.',
},
mention_user_doc_access_denied: {
type: 'no_permission',
args: { docId: 'string' },
message: ({ docId }) => `Mentioned user can not access doc ${docId}.`,
},
mention_user_oneself_denied: {
type: 'action_forbidden',
message: 'You can not mention yourself.',
},
} satisfies Record<string, UserFriendlyErrorOptions>;