2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/fyo/telemetry/types.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
687 B
TypeScript
Raw Normal View History

2022-03-09 11:19:26 +00:00
export type AppVersion = string;
export type UniqueId = string;
export type Timestamp = string;
2022-03-18 09:21:12 +00:00
export type Platform = 'Windows' | 'Mac' | 'Linux';
export enum Verb {
2022-03-09 11:19:26 +00:00
Created = 'created',
Deleted = 'deleted',
Submitted = 'submitted',
Cancelled = 'cancelled',
2022-03-09 11:19:26 +00:00
Imported = 'imported',
Exported = 'exported',
Stopped = 'stopped',
Started = 'started',
Resumed = 'resumed',
2022-03-09 11:19:26 +00:00
}
export type Noun = string;
export interface Telemetry {
2022-05-23 09:28:33 +00:00
deviceId: UniqueId;
instanceId: UniqueId;
platform?: Platform;
country: string;
language: string;
version: AppVersion;
timestamp: Timestamp;
openCount: number;
verb: Verb;
noun: Noun;
more?: Record<string, unknown>
}