tutanota/src/api/entities/monitor/WriteCounterData.js
ivk 14f01b3eeb
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
2020-04-30 13:14:33 +02:00

79 lines
No EOL
1.6 KiB
JavaScript

// @flow
import {create, TypeRef} from "../../common/EntityFunctions"
export const WriteCounterDataTypeRef: TypeRef<WriteCounterData> = new TypeRef("monitor", "WriteCounterData")
export const _TypeModel: TypeModel = {
"name": "WriteCounterData",
"since": 4,
"type": "DATA_TRANSFER_TYPE",
"id": 49,
"rootId": "B21vbml0b3IAMQ",
"versioned": false,
"encrypted": false,
"values": {
"_format": {
"name": "_format",
"id": 50,
"since": 4,
"type": "Number",
"cardinality": "One",
"final": false,
"encrypted": false
},
"counterType": {
"name": "counterType",
"id": 215,
"since": 12,
"type": "Number",
"cardinality": "ZeroOrOne",
"final": false,
"encrypted": false
},
"row": {
"name": "row",
"id": 51,
"since": 4,
"type": "String",
"cardinality": "One",
"final": false,
"encrypted": false
},
"column": {
"name": "column",
"id": 52,
"since": 4,
"type": "GeneratedId",
"cardinality": "One",
"final": false,
"encrypted": false
},
"value": {
"name": "value",
"id": 53,
"since": 4,
"type": "Number",
"cardinality": "One",
"final": false,
"encrypted": false
}
},
"associations": {},
"app": "monitor",
"version": "14"
}
export function createWriteCounterData(values?: $Shape<$Exact<WriteCounterData>>): WriteCounterData {
return Object.assign(create(_TypeModel, WriteCounterDataTypeRef), values)
}
export type WriteCounterData = {
_type: TypeRef<WriteCounterData>;
_format: NumberString;
counterType: ?NumberString;
row: string;
column: Id;
value: NumberString;
}