""" Options: Date: 2024-12-22 12:54:44 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: GetOrganization.* #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 Organization: id: int = 0 name: Optional[str] = None slug: Optional[str] = None description: Optional[str] = None description_html: Optional[str] = None color: Optional[str] = None text_color: Optional[str] = None link_color: Optional[str] = None background_color: Optional[str] = None background_url: Optional[str] = None logo_url: Optional[str] = None hero_url: Optional[str] = None lang: Optional[str] = None default_post_type: Optional[str] = None default_subscription_post_types: Optional[List[str]] = None post_types: Optional[List[str]] = None moderator_post_types: Optional[List[str]] = None delete_posts_with_report_count: int = 0 disable_invites: Optional[bool] = None up_votes: int = 0 down_votes: int = 0 views: int = 0 favorites: int = 0 subscribers: int = 0 comments_count: int = 0 posts_count: int = 0 score: int = 0 rank: int = 0 ref_id: Optional[int] = None ref_source: Optional[str] = None hidden: Optional[datetime.datetime] = None hidden_by: Optional[str] = None locked: Optional[datetime.datetime] = None locked_by: Optional[str] = None deleted: Optional[datetime.datetime] = None deleted_by: Optional[str] = None created: datetime.datetime = datetime.datetime(1, 1, 1) created_by: Optional[str] = None modified: datetime.datetime = datetime.datetime(1, 1, 1) modified_by: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class OrganizationLabel: slug: Optional[str] = None organization_id: int = 0 description: Optional[str] = None color: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Category: id: int = 0 organization_id: int = 0 name: Optional[str] = None slug: Optional[str] = None description: Optional[str] = None color: Optional[str] = None technology_ids: Optional[List[int]] = None comments_count: int = 0 posts_count: int = 0 score: int = 0 rank: int = 0 @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 GetOrganizationResponse: cache: int = 0 id: int = 0 slug: Optional[str] = None organization: Optional[Organization] = None labels: Optional[List[OrganizationLabel]] = None categories: Optional[List[Category]] = None owners: Optional[List[OrganizationMember]] = None moderators: Optional[List[OrganizationMember]] = None members_count: int = 0 response_status: Optional[ResponseStatus] = None # @Route("/orgs/{Id}", "GET") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetOrganization(IReturn[GetOrganizationResponse], IGet): id: Optional[int] = None