2019-06-14 18:01:48 +02:00
|
|
|
// @flow
|
|
|
|
|
|
2021-02-15 14:07:31 +01:00
|
|
|
import {create} from "../../common/utils/EntityUtils"
|
2021-11-04 14:05:23 +01:00
|
|
|
import {TypeRef} from "@tutao/tutanota-utils"
|
2021-06-24 11:56:16 +02:00
|
|
|
import type {TypeModel} from "../../common/EntityTypes"
|
2019-06-14 18:01:48 +02:00
|
|
|
|
2019-08-30 14:00:15 +02:00
|
|
|
|
2020-03-16 17:37:50 +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": {
|
|
|
|
|
"id": 1554,
|
|
|
|
|
"type": "CustomId",
|
|
|
|
|
"cardinality": "One",
|
|
|
|
|
"final": true,
|
|
|
|
|
"encrypted": false
|
|
|
|
|
},
|
|
|
|
|
"pushIdentifierSessionEncSessionKey": {
|
|
|
|
|
"id": 1556,
|
|
|
|
|
"type": "Bytes",
|
|
|
|
|
"cardinality": "One",
|
|
|
|
|
"final": false,
|
|
|
|
|
"encrypted": false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"associations": {
|
|
|
|
|
"pushIdentifier": {
|
|
|
|
|
"id": 1555,
|
|
|
|
|
"type": "LIST_ELEMENT_ASSOCIATION",
|
|
|
|
|
"cardinality": "One",
|
|
|
|
|
"final": false,
|
2019-09-13 13:49:11 +02:00
|
|
|
"refType": "PushIdentifier"
|
2020-03-16 17:37:50 +01:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"app": "sys",
|
2021-11-29 17:58:08 +01:00
|
|
|
"version": "71"
|
2020-03-16 17:37:50 +01:00
|
|
|
}
|
2019-06-14 18:01:48 +02:00
|
|
|
|
2020-03-16 17:37:50 +01:00
|
|
|
export function createNotificationSessionKey(values?: $Shape<$Exact<NotificationSessionKey>>): NotificationSessionKey {
|
|
|
|
|
return Object.assign(create(_TypeModel, NotificationSessionKeyTypeRef), values)
|
2019-06-14 18:01:48 +02:00
|
|
|
}
|
2019-08-30 14:00:15 +02:00
|
|
|
|
|
|
|
|
export type NotificationSessionKey = {
|
|
|
|
|
_type: TypeRef<NotificationSessionKey>;
|
|
|
|
|
|
|
|
|
|
_id: Id;
|
|
|
|
|
pushIdentifierSessionEncSessionKey: Uint8Array;
|
|
|
|
|
|
|
|
|
|
pushIdentifier: IdTuple;
|
|
|
|
|
}
|