/* Options: Date: 2024-11-21 11:34:09 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ResourceTypeAvailableResourcesQuery.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } export class AvailableResourceResponse { /** @description The resource id */ // @ApiMember(Description="The resource id") public Id: number; /** @description The resource name */ // @ApiMember(Description="The resource name") public Name: string; /** @description The resource description */ // @ApiMember(Description="The resource description") public Description: string; /** @description The resource color in scheduler in hexadecimal color code. Example: #00b0f0 for blue. */ // @ApiMember(Description="The resource color in scheduler in hexadecimal color code. Example: #00b0f0 for blue.") public Color: string; /** @description The image url of the resource */ // @ApiMember(Description="The image url of the resource") public ImageUrl: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ResourceTypeAvailableResourcesQueryResponse { /** @description The resourcetype id */ // @ApiMember(Description="The resourcetype id") public Id: number; /** @description The available resources */ // @ApiMember(Description="The available resources") public Resources: AvailableResourceResponse[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/bookings/{Id}/resources/available", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) // @ValidateRequest(Validator="IsAuthenticated") export class ResourceTypeAvailableResourcesQuery implements IReturn, ICompany { /** @description Enter the company and id you want to see the information for a resourcetype, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown */ // @ApiMember(Description="Enter the company and id you want to see the information for a resourcetype, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown ", ParameterType="query") public CompanyId?: string; /** @description Enter the id for the booking. */ // @ApiMember(Description="Enter the id for the booking.", IsRequired=true, ParameterType="path") public Id: number; /** @description Enter the id for a resourcetype. */ // @ApiMember(Description="Enter the id for a resourcetype.", IsRequired=true) public ResourceTypeId: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ResourceTypeAvailableResourcesQuery'; } public getMethod() { return 'GET'; } public createResponse() { return new ResourceTypeAvailableResourcesQueryResponse(); } }