/* Options: Date: 2024-06-02 04:46:49 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: SuperAdminCreateCompanyUser.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } export class AddCompanyUserRolesResponse { public RoleId: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CompanyUserRolesQueryResponse { public RoleId: string; public Name: string; public Description: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CompanyUserResource { /** @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 status */ // @ApiMember(Description="The resource status") public Active: boolean; /** @description The resource description */ // @ApiMember(Description="The resource description") public Description: string; /** @description The resource email */ // @ApiMember(Description="The resource email") public Email: string; /** @description The resource phone */ // @ApiMember(Description="The resource phone") public Phone: string; /** @description The resource color */ // @ApiMember(Description="The resource color") public Color: string; /** @description The resource image */ // @ApiMember(Description="The resource image") public ImageUrl: string; /** @description If the resource want to receive email notifications */ // @ApiMember(Description="If the resource want to receive email notifications") public EmailNotification: boolean; /** @description If the resource want to receive sms notifications */ // @ApiMember(Description="If the resource want to receive sms notifications") public SMSNotification: boolean; /** @description If the resource want to receive email reminders */ // @ApiMember(Description="If the resource want to receive email reminders") public EmailReminder: boolean; /** @description If the resource want to receive sms reminders */ // @ApiMember(Description="If the resource want to receive sms reminders") public SMSReminder: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CompanyUserQueryResponse { public Id: string; public CompanyId: string; public Firstname: string; public Lastname: string; public Email: string; public Phone: string; public WorkerId: string; public ResourceId?: number; /** @description The resource information connected to the administrator. */ // @ApiMember(Description="The resource information connected to the administrator.") public Resource: CompanyUserResource; /** @description The roles that are connected to the administrator. */ // @ApiMember(Description="The roles that are connected to the administrator.") public Roles: CompanyUserRolesQueryResponse[]; public Active: boolean; public Created: string; public Updated: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/superadmin/administrators/", "POST") // @ApiResponse(Description="Returned if there is a validation error on the input parameters", StatusCode=400) // @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) export class SuperAdminCreateCompanyUser implements IReturn, ICompany { /** @description Enter the company and id for the customer, if blank company id and you are an admin, your company id will be used. */ // @ApiMember(Description="Enter the company and id for the customer, if blank company id and you are an admin, your company id will be used.", ParameterType="query") public CompanyId?: string; // @ApiMember(IsRequired=true) public Firstname: string; // @ApiMember(IsRequired=true) public Lastname: string; // @ApiMember(IsRequired=true) public Phone: string; // @ApiMember(IsRequired=true) public Email: string; // @ApiMember() public ResourceId?: number; // @ApiMember() public Roles: AddCompanyUserRolesResponse[]; // @ApiMember() public WorkerId?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SuperAdminCreateCompanyUser'; } public getMethod() { return 'POST'; } public createResponse() { return new CompanyUserQueryResponse(); } }