@timesheet/sdk
Version:
Official TypeScript SDK for the Timesheet API
56 lines • 1.34 kB
TypeScript
import type { ListParams } from './common';
import type { Project } from './Project';
export interface Automation {
id: string;
project: Project;
typeId: 0 | 1 | 2;
action: 0 | 1 | 2;
enabled: boolean;
shared: boolean;
address?: string;
latitude?: number;
longitude?: number;
radius?: number;
ssid?: string;
beaconUUID?: string;
name?: string;
created?: number;
lastUpdate?: number;
}
export interface AutomationList {
items: Automation[];
params: AutomationListParams;
}
export interface AutomationCreateRequest {
projectId: string;
typeId: 0 | 1 | 2;
action: 0 | 1 | 2;
enabled?: boolean;
shared?: boolean;
address?: string;
latitude?: number;
longitude?: number;
radius?: number;
ssid?: string;
beaconUUID?: string;
}
export interface AutomationUpdateRequest {
typeId?: 0 | 1 | 2;
enabled?: boolean;
shared?: boolean;
action?: 0 | 1 | 2;
address?: string;
latitude?: number;
longitude?: number;
radius?: number;
ssid?: string;
beaconUUID?: string;
deleted?: boolean;
}
export interface AutomationListParams extends ListParams {
projectId?: string;
status?: 'enabled' | 'disabled';
type?: 0 | 1 | 2;
projectIds?: string[];
}
//# sourceMappingURL=Automation.d.ts.map