mirror of
https://github.com/frappe/books.git
synced 2024-11-09 23:30:56 +00:00
35 lines
702 B
TypeScript
35 lines
702 B
TypeScript
export type AppVersion = string;
|
|
export type UniqueId = string;
|
|
export type Timestamp = string;
|
|
|
|
export enum Verb {
|
|
Started = 'started',
|
|
Completed = 'completed',
|
|
Created = 'created',
|
|
Deleted = 'deleted',
|
|
Submitted = 'submitted',
|
|
Cancelled = 'cancelled',
|
|
Imported = 'imported',
|
|
Exported = 'exported',
|
|
Printed = 'printed',
|
|
Closed = 'closed',
|
|
Opened = 'opened',
|
|
Resumed = 'resumed',
|
|
}
|
|
|
|
export type Noun = string;
|
|
|
|
export interface Telemetry {
|
|
deviceId: UniqueId;
|
|
instanceId: UniqueId;
|
|
platform?: string;
|
|
country: string;
|
|
language: string;
|
|
version: AppVersion;
|
|
timestamp: Timestamp;
|
|
openCount: number;
|
|
verb: Verb;
|
|
noun: Noun;
|
|
more?: Record<string, unknown>;
|
|
}
|