""" Options: Date: 2024-11-21 07:49:26 Version: 6.00 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://resourcelibrary.api.ashcompanies.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: ResourceItemSearchRequest.* #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 BasicResourceLibraryRequest: resource_library_member_id: int = 0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Tag: id: Optional[str] = None title: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ResourceItemForSearch: id: Optional[str] = None type: Optional[str] = None categories: Optional[List[str]] = None category_indexes: Optional[List[str]] = None title: Optional[str] = None description: Optional[str] = None description_summary: Optional[str] = None content: Optional[str] = None tags: Optional[List[str]] = None is_complete: bool = False is_favorite: bool = False is_implicitly_complete: bool = False transcript: Optional[str] = None thumbnail: Optional[str] = None difficulty: Optional[str] = None duration: Optional[str] = None media_path: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SearchResult: id: Optional[str] = None resource_items: Optional[List[ResourceItemForSearch]] = None search_items: Optional[List[ResourceItemForSearch]] = None tags: Optional[List[Tag]] = None item_count: int = 0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ResourceItemSearchResponse: search_results: Optional[SearchResult] = None # @Route("/searchResults", "GET") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ResourceItemSearchRequest(BasicResourceLibraryRequest, IReturn[ResourceItemSearchResponse]): request: Optional[str] = None tags: Optional[List[str]] = None category_id: Optional[str] = None offset: int = 0 limit: int = 0 digital_fitness: bool = False