Skip to content

Commit

Permalink
Add MailExportFacade and range request options
Browse files Browse the repository at this point in the history
Add a facade that handles mail exporting requests and tokens.

Closes #7953

Co-authored-by: BijinDev <[email protected]>
  • Loading branch information
paw-hub and BijinDev committed Dec 5, 2024
1 parent 8d9a8d7 commit bfcdcc6
Show file tree
Hide file tree
Showing 12 changed files with 741 additions and 267 deletions.
2 changes: 1 addition & 1 deletion src/common/api/entities/tutanota/ModelInfo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const modelInfo = {
version: 77,
version: 78,
compatibleSince: 77,
}

Expand Down
11 changes: 11 additions & 0 deletions src/common/api/entities/tutanota/Services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { GroupInvitationPostReturnTypeRef } from "./TypeRefs.js"
import { GroupInvitationPutDataTypeRef } from "./TypeRefs.js"
import { GroupInvitationDeleteDataTypeRef } from "./TypeRefs.js"
import { ListUnsubscribeDataTypeRef } from "./TypeRefs.js"
import { MailExportTokenServicePostInTypeRef } from "./TypeRefs.js"
import { MailExportTokenServicePostOutTypeRef } from "./TypeRefs.js"
import { CreateMailFolderDataTypeRef } from "./TypeRefs.js"
import { CreateMailFolderReturnTypeRef } from "./TypeRefs.js"
import { UpdateMailFolderDataTypeRef } from "./TypeRefs.js"
Expand Down Expand Up @@ -128,6 +130,15 @@ export const ListUnsubscribeService = Object.freeze({
delete: null,
} as const)

export const MailExportTokenService = Object.freeze({
app: "tutanota",
name: "MailExportTokenService",
get: null,
post: { data: MailExportTokenServicePostInTypeRef, return: MailExportTokenServicePostOutTypeRef },
put: null,
delete: null,
} as const)

export const MailFolderService = Object.freeze({
app: "tutanota",
name: "MailFolderService",
Expand Down
Loading

0 comments on commit bfcdcc6

Please sign in to comment.