perf: Move exports to worker service (#2514)
* first pass * fixes * fix: Move export related emails to queue * i18n
This commit is contained in:
@ -116,14 +116,19 @@ export type CollectionImportEvent = {
|
||||
ip: string,
|
||||
};
|
||||
|
||||
export type CollectionExportAll = {
|
||||
export type CollectionExportEvent = {
|
||||
name: "collections.export",
|
||||
teamId: string,
|
||||
actorId: string,
|
||||
collectionId: string,
|
||||
modelId: string,
|
||||
};
|
||||
|
||||
export type CollectionExportAllEvent = {
|
||||
name: "collections.export_all",
|
||||
teamId: string,
|
||||
actorId: string,
|
||||
data: {
|
||||
exportId: string,
|
||||
collections: [{ name: string, id: string }],
|
||||
},
|
||||
modelId: string,
|
||||
};
|
||||
|
||||
export type FileOperationEvent = {
|
||||
@ -185,7 +190,8 @@ export type CollectionEvent =
|
||||
sharingChanged: boolean,
|
||||
},
|
||||
ip: string,
|
||||
};
|
||||
}
|
||||
| CollectionExportEvent;
|
||||
|
||||
export type GroupEvent =
|
||||
| {
|
||||
@ -227,7 +233,7 @@ export type Event =
|
||||
| DocumentEvent
|
||||
| CollectionEvent
|
||||
| CollectionImportEvent
|
||||
| CollectionExportAll
|
||||
| CollectionExportAllEvent
|
||||
| FileOperationEvent
|
||||
| IntegrationEvent
|
||||
| GroupEvent
|
||||
|
Reference in New Issue
Block a user