feat: add save to paperless and send email functionality to inbox detail page with tiptap editor integration
Build and Push Multi-Platform Images / build-and-push (push) Successful in 46s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 46s
This commit is contained in:
@@ -106,6 +106,30 @@ export const inboxApi = {
|
||||
region,
|
||||
)
|
||||
.then((r) => r.data),
|
||||
|
||||
saveToPaperless: (
|
||||
id: string,
|
||||
body: {
|
||||
title: string;
|
||||
date?: string;
|
||||
documentTypeId?: number;
|
||||
correspondentId?: number;
|
||||
tagIds?: number[];
|
||||
},
|
||||
) =>
|
||||
api.post(`/api/inbox/${encodeURIComponent(id)}/save-to-paperless`, body).then(() => {}),
|
||||
|
||||
sendEmail: (
|
||||
id: string,
|
||||
body: {
|
||||
to: string;
|
||||
subject: string;
|
||||
body: string;
|
||||
html?: string;
|
||||
filename?: string;
|
||||
},
|
||||
) =>
|
||||
api.post(`/api/inbox/${encodeURIComponent(id)}/send-email`, body).then(() => {}),
|
||||
};
|
||||
|
||||
export interface PostprocessActionResult {
|
||||
|
||||
Reference in New Issue
Block a user