108 lines
1.8 KiB
TypeScript
108 lines
1.8 KiB
TypeScript
import { DateType } from "react-native-ui-datepicker";
|
|
|
|
export interface UserData {
|
|
firstName: string;
|
|
lastName: string;
|
|
email?: string;
|
|
role: string;
|
|
roleLabel: string;
|
|
}
|
|
|
|
export interface AttendanceRecord {
|
|
id: number;
|
|
constructionSite: string;
|
|
subactivity: string;
|
|
date: string;
|
|
in: string;
|
|
out: string | null;
|
|
}
|
|
|
|
export interface DocumentItem {
|
|
id: number;
|
|
mimetype: string;
|
|
filename: string;
|
|
url: string;
|
|
date: string;
|
|
}
|
|
|
|
export interface TimeOffRequestType {
|
|
id: number;
|
|
name: string;
|
|
color: string;
|
|
time_required: number;
|
|
}
|
|
|
|
export interface TimeOffRequest {
|
|
id: number;
|
|
type: string;
|
|
start_date: DateType;
|
|
end_date?: DateType | null;
|
|
start_time?: string | null;
|
|
end_time?: string | null;
|
|
message?: string | null;
|
|
status: number;
|
|
timeOffRequestType: TimeOffRequestType;
|
|
}
|
|
|
|
export interface Place {
|
|
id: number;
|
|
label: string;
|
|
code?: string;
|
|
address?: string;
|
|
}
|
|
|
|
export interface Client {
|
|
id: number;
|
|
label: string;
|
|
}
|
|
|
|
export interface ConstructionSite {
|
|
id: number;
|
|
label: string;
|
|
address: string;
|
|
client: string;
|
|
}
|
|
|
|
export interface Supplier {
|
|
id: number;
|
|
label: string;
|
|
code: string;
|
|
}
|
|
|
|
export interface InvoiceItem {
|
|
id: number;
|
|
placeName: string;
|
|
supplier: string;
|
|
date: string;
|
|
documentNumber: string;
|
|
totalAmount: string;
|
|
}
|
|
|
|
export interface InvoiceInfo extends InvoiceItem {
|
|
link: string;
|
|
}
|
|
|
|
export interface InvoiceAccounting {
|
|
expiry: string;
|
|
tpa_description: string;
|
|
amount: string;
|
|
isPaid: boolean;
|
|
}
|
|
|
|
export interface QualityControlItem {
|
|
id: number;
|
|
constructionSite: string;
|
|
subactivity: string;
|
|
date: string;
|
|
result: number;
|
|
}
|
|
|
|
export interface ActivityItem {
|
|
id: number;
|
|
constructionSite: string;
|
|
subactivity: string;
|
|
description: string;
|
|
date: string;
|
|
n_files?: number;
|
|
}
|