Skip to content

Commit

Permalink
model changes for server issue 1345
Browse files Browse the repository at this point in the history
  • Loading branch information
vaf-hub authored and mpfau committed Feb 3, 2023
1 parent 7f1344f commit cd5b664
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 1 deletion.
10 changes: 10 additions & 0 deletions schemas/tutanota.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@
"info": "ChangeValueCardinality Mail/authStatus/ZeroOrOne."
}
]
},
{
"version": 60,
"changes": [
{
"name": "AddAssociation",
"sourceType": "MailBox",
"info": "AddAssociation MailBox/mailDetailsDrafts/AGGREGATION/1318."
}
]
}
]
}
2 changes: 1 addition & 1 deletion src/api/entities/tutanota/ModelInfo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const modelInfo = {
version: 60,
compatibleSince: 58,
compatibleSince: 60,
}

export default modelInfo
44 changes: 44 additions & 0 deletions src/api/entities/tutanota/TypeModels.js
Original file line number Diff line number Diff line change
Expand Up @@ -5237,6 +5237,16 @@ export const typeModels = {
"refType": "MailFolderRef",
"dependency": null
},
"mailDetailsDrafts": {
"final": false,
"name": "mailDetailsDrafts",
"id": 1318,
"since": 60,
"type": "AGGREGATION",
"cardinality": "ZeroOrOne",
"refType": "MailDetailsDraftsRef",
"dependency": null
},
"mails": {
"final": true,
"name": "mails",
Expand Down Expand Up @@ -5503,6 +5513,40 @@ export const typeModels = {
"app": "tutanota",
"version": "60"
},
"MailDetailsDraftsRef": {
"name": "MailDetailsDraftsRef",
"since": 60,
"type": "AGGREGATED_TYPE",
"id": 1315,
"rootId": "CHR1dGFub3RhAAUj",
"versioned": false,
"encrypted": false,
"values": {
"_id": {
"final": true,
"name": "_id",
"id": 1316,
"since": 60,
"type": "CustomId",
"cardinality": "One",
"encrypted": false
}
},
"associations": {
"list": {
"final": true,
"name": "list",
"id": 1317,
"since": 60,
"type": "LIST_ASSOCIATION",
"cardinality": "One",
"refType": "MailDetailsDraft",
"dependency": null
}
},
"app": "tutanota",
"version": "60"
},
"MailFolder": {
"name": "MailFolder",
"since": 7,
Expand Down
14 changes: 14 additions & 0 deletions src/api/entities/tutanota/TypeRefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,7 @@ export type MailBox = {
symEncShareBucketKey: null | Uint8Array;

folders: null | MailFolderRef;
mailDetailsDrafts: null | MailDetailsDraftsRef;
mails: Id;
receivedAttachments: Id;
sentAttachments: Id;
Expand Down Expand Up @@ -1373,6 +1374,19 @@ export type MailDetailsDraft = {

details: MailDetails;
}
export const MailDetailsDraftsRefTypeRef: TypeRef<MailDetailsDraftsRef> = new TypeRef("tutanota", "MailDetailsDraftsRef")

export function createMailDetailsDraftsRef(values?: Partial<MailDetailsDraftsRef>): MailDetailsDraftsRef {
return Object.assign(create(typeModels.MailDetailsDraftsRef, MailDetailsDraftsRefTypeRef), values)
}

export type MailDetailsDraftsRef = {
_type: TypeRef<MailDetailsDraftsRef>;

_id: Id;

list: Id;
}
export const MailFolderTypeRef: TypeRef<MailFolder> = new TypeRef("tutanota", "MailFolder")

export function createMailFolder(values?: Partial<MailFolder>): MailFolder {
Expand Down

0 comments on commit cd5b664

Please sign in to comment.