mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-13 23:48:55 +01:00
36 lines
781 B
TypeScript
36 lines
781 B
TypeScript
import { Reservation } from './reservation';
|
|
import { ApiFilter } from './api';
|
|
|
|
export interface MachineIndexFilter extends ApiFilter {
|
|
disabled: boolean,
|
|
}
|
|
|
|
export interface Machine {
|
|
id: number,
|
|
name: string,
|
|
description?: string,
|
|
spec?: string,
|
|
disabled: boolean,
|
|
slug: string,
|
|
machine_image: string,
|
|
machine_files_attributes?: Array<{
|
|
id: number,
|
|
attachment: string,
|
|
attachment_url: string
|
|
}>,
|
|
trainings?: Array<{
|
|
id: number,
|
|
name: string,
|
|
disabled: boolean,
|
|
}>,
|
|
current_user_is_trained?: boolean,
|
|
current_user_next_training_reservation?: Reservation,
|
|
current_user_has_packs?: boolean,
|
|
has_prepaid_packs_for_current_user?: boolean,
|
|
machine_projects?: Array<{
|
|
id: number,
|
|
name: string,
|
|
slug: string,
|
|
}>
|
|
}
|