""" Options: Date: 2025-01-08 03:04:19 Version: 8.53 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://blazordiffusion.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: UpdateUserProfile.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class AppUser(IdentityUser[int]): first_name: Optional[str] = None last_name: Optional[str] = None display_name: Optional[str] = None profile_url: Optional[str] = None avatar: Optional[str] = None handle: Optional[str] = None ref_id: Optional[int] = None ref_id_str: Optional[str] = None is_archived: bool = False archived_date: Optional[datetime.datetime] = None last_login_ip: Optional[str] = None last_login_date: Optional[datetime.datetime] = None created_date: datetime.datetime = datetime.datetime(1, 1, 1) modified_date: datetime.datetime = datetime.datetime(1, 1, 1) @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class UserProfile: display_name: Optional[str] = None avatar: Optional[str] = None handle: Optional[str] = None # @ValidateRequest(Validator="IsAuthenticated") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class UpdateUserProfile(IReturn[UserProfile], IUpdateDb[AppUser]): # @Validate(Validator="NotEmpty") display_name: Optional[str] = None avatar: Optional[str] = None # @Validate(Validator="MaximumLength(20)") handle: Optional[str] = None