Update Flow to 1.22.0, fix #2010

Move entity types out of flow directory into the entity files.
Rename TutanotaFile into File.
Rename CalendarEventBubble attrs onEventClicked -> click because it
doesn't have access to the event.
Use domInput in Dropdown when selecting filtered result because that's
what DropdownN does.

Our current build system is not aware about any recent Flow syntax and
it doesn't know that it should transpile functionCall<type>() into
functionCall(). We have to avoid such syntax for now
This commit is contained in:
ivk 2019-08-30 14:00:15 +02:00
parent b89bf0f19e
commit 14f01b3eeb
No known key found for this signature in database
GPG key ID: C103E7EF5463D318
476 changed files with 4356 additions and 3485 deletions

View file

@ -26,6 +26,7 @@ import {SecondFactorTypeRef} from "../../entities/sys/SecondFactor"
import {RecoverCodeTypeRef} from "../../entities/sys/RecoverCode"
import {NotAuthorizedError, NotFoundError} from "../../common/error/RestError"
import {MailTypeRef} from "../../entities/tutanota/Mail"
import type {EntityUpdate} from "../../entities/sys/EntityUpdate"
const ValueType = EC.ValueType
@ -142,7 +143,7 @@ export class EntityRestCache implements EntityRestInterface {
}
} else {
throw new Error("invalid request params: " + String(listId) + ", " + String(id) + ", "
+ JSON.stringify(queryParameter))
+ String(JSON.stringify(queryParameter)))
}
} else {
return this._entityRestClient.entityRequest(typeRef, method, listId, id, entity, queryParameter, extraHeaders)
@ -152,8 +153,12 @@ export class EntityRestCache implements EntityRestInterface {
isRangeRequest(listId: ?Id, id: ?Id, queryParameter: ?Params) {
// check for null and undefined because "" and 0 are als falsy
return listId && !id
&& queryParameter && queryParameter["start"] !== null && queryParameter["start"] !== undefined && queryParameter["count"] !== null
&& queryParameter["count"] !== undefined && queryParameter["reverse"]
&& queryParameter
&& queryParameter["start"] !== null
&& queryParameter["start"] !== undefined
&& queryParameter["count"] !== null
&& queryParameter["count"] !== undefined
&& queryParameter["reverse"]
}
_loadMultiple<T>(typeRef: TypeRef<T>, method: HttpMethodEnum, listId: ?Id, id: ?Id, entity: ?T, queryParameter: Params,