""" Options: Date: 2024-11-23 00:01:31 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: SubTopicRequest.* #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 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 content: 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 ActivityItem: name: Optional[str] = None id: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SeriesItem: id: Optional[str] = None title: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class AltMediaPaths: webm: Optional[str] = None ogv: Optional[str] = None mp4_low: Optional[str] = None mp4_high: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ResourceItem(ResourceCard): content: Optional[str] = None credit: Optional[str] = None references: Optional[str] = None disclaimer: Optional[str] = None header_image: Optional[str] = None origin: Optional[str] = None origin_id: Optional[str] = None tags: Optional[List[Tag]] = None categories: Optional[List[Category]] = None index: int = 0 activity_level: Optional[str] = None activity_details: Optional[str] = None transcript: Optional[str] = None is_archived: bool = False activities: Optional[List[ActivityItem]] = None series_items: Optional[List[SeriesItem]] = None video_id: Optional[str] = None focus: Optional[str] = None series: Optional[str] = None series_url: Optional[str] = None category: Optional[str] = None equipments: Optional[List[str]] = None duration_range: Optional[str] = None provider_name: Optional[str] = None upload_date: Optional[str] = None completion_date: Optional[datetime.datetime] = None level: Optional[str] = None body_focus: Optional[str] = None alt_media_paths: Optional[AltMediaPaths] = None subtitles: Optional[str] = None drm_encrypted: bool = False screenshots: Optional[List[ScreenshotItem]] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SubTopic: id: Optional[str] = None title: Optional[str] = None resource_count: int = 0 resource_items: Optional[List[ResourceItem]] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Category: id: Optional[str] = None subtopic_items: Optional[List[SubTopic]] = None resource_items: Optional[List[ResourceItem]] = None title: Optional[str] = None is_visible: Optional[str] = None resource_count: int = 0 # @Route("/subtopicItems/{subtopicid}", "GET") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SubTopicRequest(BasicResourceLibraryRequest, IReturn[SubTopic]): include_completion_status: bool = False sub_topic_id: Optional[str] = None limit: Optional[str] = None offset: Optional[str] = None # @ApiMember(Description="Set it to true if the subtopic being requested belogs to digital fitness. Don't set it if unsure.") digital_fitness: bool = False """ Set it to true if the subtopic being requested belogs to digital fitness. Don't set it if unsure. """