tutanota/src/api/entities/sys/NotificationSessionKey.js

45 lines
1.2 KiB
JavaScript
Raw Normal View History

// @flow
import {create, TypeRef} from "../../common/EntityFunctions"
2019-11-18 11:57:09 +01:00
export const NotificationSessionKeyTypeRef: TypeRef<NotificationSessionKey> = new TypeRef("sys", "NotificationSessionKey")
export const _TypeModel: TypeModel = {
"name": "NotificationSessionKey",
"since": 48,
"type": "AGGREGATED_TYPE",
"id": 1553,
"rootId": "A3N5cwAGEQ",
"versioned": false,
"encrypted": false,
"values": {
"_id": {"name": "_id", "id": 1554, "since": 48, "type": "CustomId", "cardinality": "One", "final": true, "encrypted": false},
"pushIdentifierSessionEncSessionKey": {
"name": "pushIdentifierSessionEncSessionKey",
"id": 1556,
"since": 48,
"type": "Bytes",
"cardinality": "One",
"final": false,
"encrypted": false
}
},
"associations": {
"pushIdentifier": {
"name": "pushIdentifier",
"id": 1555,
"since": 48,
"type": "LIST_ELEMENT_ASSOCIATION",
"cardinality": "One",
"refType": "PushIdentifier",
"final": false,
"external": false
}
},
"app": "sys",
"version": "58"
2019-11-18 11:57:09 +01:00
}
2019-11-18 11:57:09 +01:00
export function createNotificationSessionKey(values?: $Shape<$Exact<NotificationSessionKey>>): NotificationSessionKey {
return Object.assign(create(_TypeModel, NotificationSessionKeyTypeRef), values)
}