/* Options: Date: 2024-11-21 11:38:49 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: CurrentUserQuery.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export class CustomFieldDataResponse { public Id: number; public Column: string; public Name: string; public Description: string; public Value: string; /** @description Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' */ // @ApiMember(Description="Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'") public DataType: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class UserProfileResponse { public Id: string; public Firstname: string; public Lastname: string; public Phone: string; public Email: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class AdminProfile { public CompanyId: string; public Id: string; public Firstname: string; public Lastname: string; public Email: string; public WorkerId: string; public Phone: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CompanyCustomerResponse { public CompanyId?: string; public CompanyName?: string; public CustomerId?: string; public SubscribedToNewsletter: boolean; public CustomFieldValues: CustomFieldDataResponse[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class UserFavorites { public CompanyId: string; public Company: CompanyQueryResponse; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CurrentUserQueryResponse { /** @description The user id for your profile. */ // @ApiMember(Description="The user id for your profile.") public UserId: string; public Favorites: UserFavorites[]; public UserProfile: UserProfileResponse; public CustomerProfile: UserProfileResponse; public AdminProfile: AdminProfile; public CompanyCustomers: CompanyCustomerResponse[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/users", "GET") // @ApiResponse(Description="Returned if the service was called without an existing session", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") export class CurrentUserQuery implements IReturn { /** @description If you want to include the users favorites */ // @ApiMember(DataType="boolean", Description="If you want to include the users favorites", ParameterType="query") public IncludeFavorites: boolean; public IncludeCompanyCustomers: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CurrentUserQuery'; } public getMethod() { return 'GET'; } public createResponse() { return new CurrentUserQueryResponse(); } }