""" Options: Date: 2024-11-21 03:29:39 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: ResourceItemCompletionRequest.* #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 ResourceItemCompletion: resource_completion_id: int = 0 resource_progress_id: int = 0 progress_on_completion: int = 0 resource_id: Optional[str] = None resource_name: Optional[str] = None resource_type: Optional[str] = None completion_date: datetime.datetime = datetime.datetime(1, 1, 1) @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ResourceItemCompletionResponse: member_id: int = 0 start_date: datetime.datetime = datetime.datetime(1, 1, 1) end_date: datetime.datetime = datetime.datetime(1, 1, 1) total_completions: int = 0 retrieval_amount: int = 0 resource_completions: Optional[List[ResourceItemCompletion]] = None # @Route("/memberResourceCompletions/{MemberId}/{StartDate}/{EndDate}", "GET") # @Route("/memberResourceCompletions/{MemberId}/{StartDate}/{EndDate}/{ResourceType}", "GET") # @Route("/memberResourceCompletions/{MemberId}/{StartDate}/{EndDate}/{ResourceType}/{RetrievalAmount}", "GET") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ResourceItemCompletionRequest(IReturn[ResourceItemCompletionResponse]): member_id: int = 0 start_date: datetime.datetime = datetime.datetime(1, 1, 1) end_date: datetime.datetime = datetime.datetime(1, 1, 1) resource_type: Optional[str] = None retrieval_amount: Optional[int] = None