""" Options: Date: 2025-04-04 17:09:02 Version: 5.140 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://api.clubmanagercentral.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: FindFacility.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ScheduleInstance: schedule_id: int = 0 name: Optional[str] = None description: Optional[str] = None monday_from: Optional[datetime.timedelta] = None monday_to: Optional[datetime.timedelta] = None tuesday_from: Optional[datetime.timedelta] = None tuesday_to: Optional[datetime.timedelta] = None wednesday_from: Optional[datetime.timedelta] = None wednesday_to: Optional[datetime.timedelta] = None thursday_from: Optional[datetime.timedelta] = None thursday_to: Optional[datetime.timedelta] = None friday_from: Optional[datetime.timedelta] = None friday_to: Optional[datetime.timedelta] = None saturday_from: Optional[datetime.timedelta] = None saturday_to: Optional[datetime.timedelta] = None sunday_from: Optional[datetime.timedelta] = None sunday_to: Optional[datetime.timedelta] = None schedule_type: int = 0 deleted: bool = False demo: bool = False @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class FacilityInstance: facility_id: int = 0 name: Optional[str] = None description: Optional[str] = None schedule: Optional[ScheduleInstance] = None # @References(typeof(ScheduleInstance)) schedule_id: int = 0 colour: Optional[str] = None bookable: bool = False deleted: bool = False demo: bool = False group: Optional[str] = None # @Route("/api/Query/Facility") # @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="Facility") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class FindFacility(QueryDb[FacilityInstance], IReturn[QueryResponse[FacilityInstance]]): pass