""" Options: Date: 2024-12-22 22:04:38 Version: 8.51 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: QueryFileSystemItems.* #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 class FileAccessType(str, Enum): PUBLIC = 'Public' TEAM = 'Team' PRIVATE = 'Private' @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class FileSystemFile(IFile): id: int = 0 file_name: Optional[str] = None file_path: Optional[str] = None content_type: Optional[str] = None content_length: int = 0 # @References(typeof(FileSystemItem)) file_system_item_id: int = 0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class FileSystemItem(IFileItem): id: int = 0 file_access_type: Optional[FileAccessType] = None file: Optional[FileSystemFile] = None app_user_id: Optional[str] = None class IFileItem: file_access_type: Optional[FileAccessType] = None class IFile: id: int = 0 file_name: Optional[str] = None file_path: Optional[str] = None content_type: Optional[str] = None content_length: int = 0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class QueryFileSystemItems(QueryDb[FileSystemItem], IReturn[QueryResponse[FileSystemItem]]): app_user_id: Optional[int] = None file_access_type: Optional[FileAccessType] = None