/* Options: Date: 2024-09-30 10:20:42 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeleteUser.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum KeyCloakRealm { BookMore, BookMoreAdmin, SuperAdmin, } class UserProfileResponse implements IConvertible { String? Id; String? Firstname; String? Lastname; String? Phone; String? Email; UserProfileResponse({this.Id,this.Firstname,this.Lastname,this.Phone,this.Email}); UserProfileResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Firstname = json['Firstname']; Lastname = json['Lastname']; Phone = json['Phone']; Email = json['Email']; return this; } Map toJson() => { 'Id': Id, 'Firstname': Firstname, 'Lastname': Lastname, 'Phone': Phone, 'Email': Email }; getTypeName() => "UserProfileResponse"; TypeContext? context = _ctx; } class AdminProfile implements IConvertible { String? CompanyId; String? Id; String? Firstname; String? Lastname; String? Email; String? WorkerId; String? Phone; AdminProfile({this.CompanyId,this.Id,this.Firstname,this.Lastname,this.Email,this.WorkerId,this.Phone}); AdminProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; Firstname = json['Firstname']; Lastname = json['Lastname']; Email = json['Email']; WorkerId = json['WorkerId']; Phone = json['Phone']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id, 'Firstname': Firstname, 'Lastname': Lastname, 'Email': Email, 'WorkerId': WorkerId, 'Phone': Phone }; getTypeName() => "AdminProfile"; TypeContext? context = _ctx; } class DeleteUserResponse implements IConvertible { dynamic? ResponseStatus; /** * The user id for your profile. */ // @ApiMember(Description="The user id for your profile.", IsRequired=true) String? UserName; UserProfileResponse? UserProfile; AdminProfile? AdminProfile; DeleteUserResponse({this.ResponseStatus,this.UserName,this.UserProfile,this.AdminProfile}); DeleteUserResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'dynamic',context!); UserName = json['UserName']; UserProfile = JsonConverters.fromJson(json['UserProfile'],'UserProfileResponse',context!); AdminProfile = JsonConverters.fromJson(json['AdminProfile'],'AdminProfile',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'dynamic',context!), 'UserName': UserName, 'UserProfile': JsonConverters.toJson(UserProfile,'UserProfileResponse',context!), 'AdminProfile': JsonConverters.toJson(AdminProfile,'AdminProfile',context!) }; getTypeName() => "DeleteUserResponse"; TypeContext? context = _ctx; } // @Route("/users", "DELETE") // @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) class DeleteUser implements IReturn, IConvertible, IDelete { /** * The user name of your profile. */ // @ApiMember(Description="The user name of your profile.", IsRequired=true) String? UserName; /** * The user realm for identity server. BookMore = 1, BookMoreAdmin = 2 */ // @ApiMember(Description="The user realm for identity server. BookMore = 1, BookMoreAdmin = 2 ", IsRequired=true) KeyCloakRealm? Realm; /** * If this equals true it will force delete all customer profiles on all company on there you have booked a time. */ // @ApiMember(Description="If this equals true it will force delete all customer profiles on all company on there you have booked a time.") bool? DeleteCustomerProfiles; /** * If this equals true it will check the request token value and try to delete user, if it is false it will send a delete confirmation email. */ // @ApiMember(Description="If this equals true it will check the request token value and try to delete user, if it is false it will send a delete confirmation email.") bool? ForceDelete; /** * The value is only checked when ForceDelete is set to true. Contains the token value what was sent to email. */ // @ApiMember(Description="The value is only checked when ForceDelete is set to true. Contains the token value what was sent to email.") String? Token; DeleteUser({this.UserName,this.Realm,this.DeleteCustomerProfiles,this.ForceDelete,this.Token}); DeleteUser.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserName = json['UserName']; Realm = JsonConverters.fromJson(json['Realm'],'KeyCloakRealm',context!); DeleteCustomerProfiles = json['DeleteCustomerProfiles']; ForceDelete = json['ForceDelete']; Token = json['Token']; return this; } Map toJson() => { 'UserName': UserName, 'Realm': JsonConverters.toJson(Realm,'KeyCloakRealm',context!), 'DeleteCustomerProfiles': DeleteCustomerProfiles, 'ForceDelete': ForceDelete, 'Token': Token }; createResponse() => DeleteUserResponse(); getResponseTypeName() => "DeleteUserResponse"; getTypeName() => "DeleteUser"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'KeyCloakRealm': TypeInfo(TypeOf.Enum, enumValues:KeyCloakRealm.values), 'UserProfileResponse': TypeInfo(TypeOf.Class, create:() => UserProfileResponse()), 'AdminProfile': TypeInfo(TypeOf.Class, create:() => AdminProfile()), 'DeleteUserResponse': TypeInfo(TypeOf.Class, create:() => DeleteUserResponse()), 'DeleteUser': TypeInfo(TypeOf.Class, create:() => DeleteUser()), });