40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
export interface ScheduleSlotDTO {
|
||
startTime: string;
|
||
endTime: string;
|
||
weekDay?: 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY' | null;
|
||
dayOfMonth?: number | null; // 1–31
|
||
occurrenceDate?: string | null;
|
||
maxCapacity: number;
|
||
}
|
||
|
||
export interface ScheduleVenueDTO {
|
||
venueXid: number;
|
||
slots: ScheduleSlotDTO[];
|
||
}
|
||
|
||
// export interface ScheduleActivityDTO {
|
||
// activityXid: number;
|
||
// scheduleType: 'ONCE' | 'WEEKLY' | 'MONTHLY' | 'CUSTOM';
|
||
|
||
// dateRange: {
|
||
// startDate: string;
|
||
// endDate?: string | null;
|
||
// };
|
||
|
||
// rules: {
|
||
// weekdays?: (
|
||
// 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' |
|
||
// 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'
|
||
// )[];
|
||
// monthDates?: number[];
|
||
// customDates?: string[];
|
||
// };
|
||
|
||
// venues: ScheduleVenueDTO[];
|
||
|
||
// earlyCheckInMins?: number;
|
||
// bookingCutOffMins?: number;
|
||
// isLateCheckingAllowed?: boolean;
|
||
// isInstantBooking?: boolean;
|
||
// }
|