40 lines
866 B
TypeScript
40 lines
866 B
TypeScript
export type FacilityType = "Gym" | "Pool" | "Court" | "Class"
|
|
|
|
/** Mirrors FacilityDto. */
|
|
export interface Facility {
|
|
facilityId: string
|
|
name: string
|
|
facilityType: FacilityType
|
|
description?: string | null
|
|
defaultCapacity: number
|
|
isActive: boolean
|
|
createdAt: string
|
|
}
|
|
|
|
export interface FacilityInput {
|
|
name: string
|
|
facilityType: FacilityType
|
|
description?: string
|
|
defaultCapacity: number
|
|
}
|
|
|
|
/** Mirrors FacilitySessionDto. */
|
|
export interface FacilitySession {
|
|
facilitySessionId: string
|
|
facilityId: string
|
|
facilityName?: string | null
|
|
startTime: string
|
|
endTime: string
|
|
capacity: number
|
|
bookedCount: number
|
|
isCancelled: boolean
|
|
}
|
|
|
|
export interface FacilitySessionInput {
|
|
facilityId: string
|
|
startTime: string
|
|
endTime: string
|
|
/** Overrides the facility's default capacity for this specific session. */
|
|
capacity?: number
|
|
}
|