feat: Document subscriptions (#3834)

Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
CuriousCorrelation
2022-08-26 12:17:13 +05:30
committed by GitHub
parent 864f585e5b
commit 24c71c38a5
36 changed files with 2594 additions and 165 deletions

View File

@@ -257,6 +257,13 @@ export type ShareEvent = BaseEvent & {
};
};
export type SubscriptionEvent = BaseEvent & {
name: "subscriptions.create" | "subscriptions.delete";
modelId: string;
userId: string;
documentId: string | null;
};
export type ViewEvent = BaseEvent & {
name: "views.create";
documentId: string;
@@ -293,6 +300,7 @@ export type Event =
| GroupEvent
| RevisionEvent
| ShareEvent
| SubscriptionEvent
| TeamEvent
| UserEvent
| ViewEvent