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

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

35 lines
702 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 {
2023-06-28 06:56:01 +00:00
Started = 'started',
Completed = 'completed',
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',
Printed = 'printed',
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>;
}