""" Options: Date: 2024-11-23 13:14:23 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: TopicRequest.* #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 ScreenshotItem: large_filepath_s3: Optional[str] = None thumb_filepath_s3: Optional[str] = None order: Decimal = decimal.Decimal(0) description: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ResourceCard: id: Optional[str] = None title: Optional[str] = None description: Optional[str] = None description_summary: Optional[str] = None type: Optional[str] = None content: Optional[str] = None is_complete: bool = False is_favorite: bool = False is_implicitly_complete: bool = False media_path: Optional[str] = None is_confirmable: bool = False is_wcag_compliant: bool = False duration: Optional[str] = None preview: Optional[str] = None calories: int = 0 instructor: Optional[str] = None thumbnail: Optional[str] = None difficulty: Optional[str] = None tags: Optional[List[Tag]] = None subtitles: Optional[str] = None screenshots: Optional[List[ScreenshotItem]] = None drm_encrypted: bool = False @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SubtopicLite: id: Optional[str] = None title: Optional[str] = None resource_count: int = 0 resource_items: Optional[List[ResourceCard]] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class TopicLite: id: Optional[str] = None subtopic_items: Optional[List[SubtopicLite]] = None resource_items: Optional[List[ResourceCard]] = None title: Optional[str] = None is_visible: Optional[str] = None resource_count: int = 0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class TopicResponse: topic: Optional[TopicLite] = None # @Route("/topics/{topicid}", "GET") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class TopicRequest(BasicResourceLibraryRequest, IReturn[TopicResponse]): include_completion_status: bool = False limit: Optional[str] = None offset: Optional[str] = None topic_id: Optional[str] = None is_mobile: bool = False # @ApiMember(Description="Set it to true if the topic being requested belogs to digital fitness. Don't set it if unsure.") digital_fitness: bool = False """ Set it to true if the topic being requested belogs to digital fitness. Don't set it if unsure. """