@trii/types 2.10.822 → 2.10.823
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accounts/device.d.ts +14 -2
- package/package.json +1 -1
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type DeviceClientKind = 'web' | 'mobileApp';
|
|
2
|
+
/** Optional installation details as reported by the client, when available. */
|
|
3
|
+
export interface DeviceClientInfo {
|
|
4
|
+
clientKind?: DeviceClientKind | null;
|
|
5
|
+
deviceModel?: string | null;
|
|
6
|
+
osName?: string | null;
|
|
7
|
+
osVersion?: string | null;
|
|
8
|
+
browserName?: string | null;
|
|
9
|
+
browserVersion?: string | null;
|
|
10
|
+
/** Version of the Trii client, independent of the browser version. */
|
|
11
|
+
appVersion?: string | null;
|
|
12
|
+
}
|
|
13
|
+
export interface IDevice extends DeviceClientInfo {
|
|
2
14
|
id: string;
|
|
3
15
|
uid: string;
|
|
4
16
|
/** Generated once per client installation and reused when the push token changes. */
|
|
@@ -12,7 +24,7 @@ export interface IDevice {
|
|
|
12
24
|
updatedAt?: string | null;
|
|
13
25
|
}
|
|
14
26
|
/** Payload for device registration. Older clients may send only the token. */
|
|
15
|
-
export type DeviceRegistration = Pick<IDevice, 'token' | 'installationId'
|
|
27
|
+
export type DeviceRegistration = Pick<IDevice, 'token' | 'installationId'> & DeviceClientInfo;
|
|
16
28
|
export declare enum DeviceType {
|
|
17
29
|
MOBILE_ANDROID = 11,
|
|
18
30
|
MOBILE_IOS = 12,
|