/* Options: Date: 2024-06-26 09:58:04 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RecurringScheduleIntervalsQuery.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } // @DataContract export class ResponseError { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public FieldName: string; // @DataMember(Order=3) public Message: string; // @DataMember(Order=4) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message: string; // @DataMember(Order=3) public StackTrace: string; // @DataMember(Order=4) public Errors: ResponseError[]; // @DataMember(Order=5) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export interface IInterval { From: string; To: string; } export class ScheduleIntervalsQueryResponse { public From: string; public To: string; public Duration: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/schedules/recurring/intervals", "GET") // @ValidateRequest(Validator="IsAuthenticated") export class RecurringScheduleIntervalsQuery implements IReturn, ICompany, IInterval { /** @description Company to show services for */ // @ApiMember(Description="Company to show services for", ParameterType="query") public CompanyId?: string; /** @description From what datetime to show times */ // @ApiMember(DataType="dateTime", Description="From what datetime to show times", IsRequired=true, ParameterType="query") public From: string; /** @description To what datetime to show times */ // @ApiMember(DataType="dateTime", Description="To what datetime to show times", IsRequired=true, ParameterType="query") public To: string; /** @description Here you can select one of the resource, if none is selected it will show available times for all */ // @ApiMember(Description="Here you can select one of the resource, if none is selected it will show available times for all", ParameterType="query") public ResourceIds: number[]; public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'RecurringScheduleIntervalsQuery'; } public getMethod() { return 'GET'; } public createResponse() { return new ScheduleIntervalsQueryResponse(); } }