import { CuiNullable } from '@cuby-ui/cdk'; import { Measurement } from './measurment'; import { SubjectType } from '../../shared'; export interface ConsumableBase { readonly id: string; readonly type: SubjectType; readonly consumableWrapper: T; } export interface ConsumableWrapperBase { readonly id: string; readonly name: string; readonly isDelete: boolean; readonly descriptionId: CuiNullable; } export interface Consumable extends ConsumableBase { readonly materialId?: string; readonly amountMaterial?: string; readonly period?: ConsumablePeriod; readonly measurement?: Measurement; readonly wearPercentage?: string; } export interface ConsumablePeriod { readonly unitPeriod: 'MONTHS' | 'YEARS' | 'WEEKS' | 'DAYS'; readonly value: number; }