""" Options: Date: 2024-11-28 09:41:59 Version: 6.40 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://digiofficeapigateway.deltares.nl/api #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: GetUsersAndGroups.* #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 QuickAddOption: name: Optional[str] = None entity_type: Optional[str] = None class IBaseQuickLookupResponse: number_of_all_records: int = 0 quick_add_options: Optional[List[QuickAddOption]] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class UserOrGroup: id: int = 0 title: Optional[str] = None is_checked: bool = False image: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class UsersOrGroupsResponse(IBaseQuickLookupResponse): number_of_all_records: int = 0 users_or_groups: Optional[List[UserOrGroup]] = None quick_add_options: Optional[List[QuickAddOption]] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetUsersAndGroups(IReturn[UsersOrGroupsResponse]): user_environment: int = 0 page_size: int = 0 page_number: int = 0 search_criteria: Optional[str] = None selected_user_i_ds: Optional[List[int]] = None selected_group_i_ds: Optional[List[int]] = None