Add notifications for document and collection access (#6460)
* Add notification for added to document * Add notifications for document and collection access * Add notification delay * fix: Collection notifications not appearing * Add notification settings
This commit is contained in:
@@ -459,6 +459,8 @@
|
||||
"created the collection": "created the collection",
|
||||
"mentioned you in": "mentioned you in",
|
||||
"left a comment on": "left a comment on",
|
||||
"shared": "shared",
|
||||
"invited you to": "invited you to",
|
||||
"API token created": "API token created",
|
||||
"Name your token something that will help you to remember it's use in the future, for example \"local development\", \"production\", or \"continuous integration\".": "Name your token something that will help you to remember it's use in the future, for example \"local development\", \"production\", or \"continuous integration\".",
|
||||
"The document archive is empty at the moment.": "The document archive is empty at the moment.",
|
||||
@@ -858,6 +860,10 @@
|
||||
"Receive a notification whenever a new collection is created": "Receive a notification whenever a new collection is created",
|
||||
"Invite accepted": "Invite accepted",
|
||||
"Receive a notification when someone you invited creates an account": "Receive a notification when someone you invited creates an account",
|
||||
"Invited to document": "Invited to document",
|
||||
"Receive a notification when a document is shared with you": "Receive a notification when a document is shared with you",
|
||||
"Invited to collection": "Invited to collection",
|
||||
"Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection",
|
||||
"Export completed": "Export completed",
|
||||
"Receive a notification when an export you requested has been completed": "Receive a notification when an export you requested has been completed",
|
||||
"Getting started": "Getting started",
|
||||
|
||||
@@ -203,6 +203,8 @@ export type CollectionSort = {
|
||||
export enum NotificationEventType {
|
||||
PublishDocument = "documents.publish",
|
||||
UpdateDocument = "documents.update",
|
||||
AddUserToDocument = "documents.add_user",
|
||||
AddUserToCollection = "collections.add_user",
|
||||
CreateRevision = "revisions.create",
|
||||
CreateCollection = "collections.create",
|
||||
CreateComment = "comments.create",
|
||||
@@ -239,6 +241,8 @@ export const NotificationEventDefaults = {
|
||||
[NotificationEventType.Onboarding]: true,
|
||||
[NotificationEventType.Features]: true,
|
||||
[NotificationEventType.ExportCompleted]: true,
|
||||
[NotificationEventType.AddUserToDocument]: true,
|
||||
[NotificationEventType.AddUserToCollection]: true,
|
||||
};
|
||||
|
||||
export enum UnfurlType {
|
||||
|
||||
Reference in New Issue
Block a user