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

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

32 lines
629 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;
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',
Closed = 'closed',
Opened = 'opened',
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?: string;
country: string;
language: string;
version: AppVersion;
timestamp: Timestamp;
openCount: number;
verb: Verb;
noun: Noun;
more?: Record<string, unknown>;
}