// import { Product } from './product'; import { ActivityTime, BlockDated as BlockDates } from './seasons'; export interface ResourceObj { id: number; createdAt: string; updatedAt: string; programId: 1; name?: string; description: string; status: string; startDate: string; endDate: string; registrationStartDate: string; registrationEndDate: string; questionnaires?: string; seasonType: string; parentSeasonId: number; maxParticipants: string; maxMaleParticipants: string; maxFemaleParticipants: string; maxWaitlist: string; maxMaleWaitlist: string; maxFemaleWaitlist: string; organizationId: number; facilityId: number; addressId: number; sport: string; minAge: string; maxAge: string; gender: string; level: number[]; blockedDated: BlockDates[]; activityTimes: ActivityTime[]; products: unknown; // also, a resource in this case might be an event and not only a season, therefore: title: string; timezone: string; startDateString: string; startTime: string; endDateString: string; endTime: string; } export interface BasicResource { id: number; } export interface ResourceInterface { quantity: number; resourceType: string; isPunchCard?: boolean; resourcesIds?: number[]; resources: ResourceObj[]; }