""" Options: Date: 2025-04-04 16:53:10 Version: 5.140 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://api.clubmanagercentral.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: FindMessage.* #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 MessageTemplateInstance: message_template_id: int = 0 name: Optional[str] = None subject: Optional[str] = None body: Optional[str] = None report_id: Optional[int] = None template_type: int = 0 created: Optional[datetime.datetime] = None created_by: Optional[int] = None modified: Optional[datetime.datetime] = None modified_by: Optional[int] = None deleted: Optional[datetime.datetime] = None deleted_by: Optional[int] = None event_type: int = 0 content_type: int = 0 hidden: Optional[bool] = None parent_message_template_id: Optional[int] = None inclusion_tags: Optional[str] = None exclusion_tags: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class UserInstance: user_id: int = 0 user_name: Optional[str] = None name: Optional[str] = None email: Optional[str] = None mobile_phone: Optional[str] = None enabled: bool = False last_login: Optional[datetime.datetime] = None created: datetime.datetime = datetime.datetime(1, 1, 1) training: bool = False deleted: bool = False courses_completed: int = 0 display_home_notification: Optional[bool] = None two_factor_enabled: bool = False email_confirmed: bool = False mobile_phone_confirmed: bool = False notifications: bool = False change_password: Optional[datetime.datetime] = None activated: Optional[datetime.datetime] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class MessageInstance: message_id: int = 0 due_date: datetime.datetime = datetime.datetime(1, 1, 1) sent_date: Optional[datetime.datetime] = None processed: bool = False failures: int = 0 instance_id: Optional[int] = None message_sid: Optional[str] = None message_template: Optional[MessageTemplateInstance] = None # @References(typeof(MessageTemplateInstance)) message_template_id: Optional[int] = None opened_date: Optional[datetime.datetime] = None bounced_date: Optional[datetime.datetime] = None delivered_date: Optional[datetime.datetime] = None unsubscribed_date: Optional[datetime.datetime] = None spam_report_date: Optional[datetime.datetime] = None user: Optional[UserInstance] = None # @References(typeof(UserInstance)) user_id: Optional[int] = None instance_type: Optional[int] = None # @Route("/api/Query/Message") # @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="Message") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class FindMessage(QueryDb[MessageInstance], IReturn[QueryResponse[MessageInstance]]): pass