""" Options: Date: 2024-12-22 12:44:14 Version: 8.51 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://techstacks.io #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: GetUserOrganizations.* #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 OrganizationMember: id: int = 0 organization_id: int = 0 user_id: int = 0 user_name: Optional[str] = None is_owner: bool = False is_moderator: bool = False deny_all: bool = False deny_posts: bool = False deny_comments: bool = False notes: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class OrganizationMemberInvite: id: int = 0 organization_id: int = 0 user_id: int = 0 user_name: Optional[str] = None dismissed: Optional[datetime.datetime] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class OrganizationSubscription: id: int = 0 organization_id: int = 0 user_id: int = 0 user_name: Optional[str] = None post_types: Optional[List[str]] = None frequency_days: Optional[int] = None last_synced_id: Optional[int] = None last_synced: Optional[datetime.datetime] = None created: datetime.datetime = datetime.datetime(1, 1, 1) @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetUserOrganizationsResponse: members: Optional[List[OrganizationMember]] = None member_invites: Optional[List[OrganizationMemberInvite]] = None subscriptions: Optional[List[OrganizationSubscription]] = None # @Route("/user/organizations") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetUserOrganizations(IReturn[GetUserOrganizationsResponse], IGet): pass