2022-03-09 11:19:26 +00:00
|
|
|
export type AppVersion = string;
|
2022-03-09 10:13:17 +00:00
|
|
|
export type UniqueId = string;
|
2022-05-23 08:09:07 +00:00
|
|
|
export type Timestamp = string;
|
2022-03-09 10:13:17 +00:00
|
|
|
|
|
|
|
export enum Verb {
|
2022-03-09 11:19:26 +00:00
|
|
|
Created = 'created',
|
2022-03-09 10:13:17 +00:00
|
|
|
Deleted = 'deleted',
|
2022-05-23 08:09:07 +00:00
|
|
|
Submitted = 'submitted',
|
|
|
|
Cancelled = 'cancelled',
|
2022-03-09 11:19:26 +00:00
|
|
|
Imported = 'imported',
|
|
|
|
Exported = 'exported',
|
2022-05-28 11:14:38 +00:00
|
|
|
Closed = 'closed',
|
|
|
|
Opened = 'opened',
|
2022-05-23 08:09:07 +00:00
|
|
|
Resumed = 'resumed',
|
2022-03-09 11:19:26 +00:00
|
|
|
}
|
|
|
|
|
2022-05-23 08:09:07 +00:00
|
|
|
export type Noun = string;
|
2022-04-18 11:29:20 +00:00
|
|
|
|
2022-05-23 08:09:07 +00:00
|
|
|
export interface Telemetry {
|
2022-05-23 09:28:33 +00:00
|
|
|
deviceId: UniqueId;
|
|
|
|
instanceId: UniqueId;
|
2022-07-18 11:13:56 +00:00
|
|
|
platform?: string;
|
2022-05-23 08:09:07 +00:00
|
|
|
country: string;
|
|
|
|
language: string;
|
|
|
|
version: AppVersion;
|
|
|
|
timestamp: Timestamp;
|
|
|
|
openCount: number;
|
|
|
|
verb: Verb;
|
|
|
|
noun: Noun;
|
2022-07-18 11:13:56 +00:00
|
|
|
more?: Record<string, unknown>;
|
2022-04-18 11:29:20 +00:00
|
|
|
}
|