|
# generated by datamodel-codegen: |
|
# filename: card.json |
|
# timestamp: 2023-12-23T02:13:28+00:00 |
|
|
|
from __future__ import annotations |
|
|
|
from typing import Any |
|
|
|
from pydantic import BaseModel, Field |
|
|
|
|
|
class Trello(BaseModel): |
|
board: int |
|
card: int |
|
|
|
|
|
class AttachmentsByType(BaseModel): |
|
trello: Trello |
|
|
|
|
|
class Badges(BaseModel): |
|
attachments_by_type: AttachmentsByType = Field(..., alias="attachmentsByType") |
|
location: bool |
|
votes: int |
|
viewing_member_voted: bool = Field(..., alias="viewingMemberVoted") |
|
subscribed: bool |
|
fogbugz: str |
|
check_items: int = Field(..., alias="checkItems") |
|
check_items_checked: int = Field(..., alias="checkItemsChecked") |
|
check_items_earliest_due: None = Field(..., alias="checkItemsEarliestDue") |
|
comments: int |
|
attachments: int |
|
description: bool |
|
due: None |
|
due_complete: bool = Field(..., alias="dueComplete") |
|
start: str |
|
|
|
|
|
class CheckItemState(BaseModel): |
|
id_check_item: str = Field(..., alias="idCheckItem") |
|
state: str |
|
|
|
|
|
class DescData(BaseModel): |
|
emoji: dict[str, Any] |
|
|
|
|
|
class Label(BaseModel): |
|
id: str |
|
id_board: str = Field(..., alias="idBoard") |
|
name: str |
|
color: str |
|
uses: int |
|
|
|
|
|
class PerCard(BaseModel): |
|
status: str |
|
disable_at: int = Field(..., alias="disableAt") |
|
warn_at: int = Field(..., alias="warnAt") |
|
|
|
|
|
class Attachments(BaseModel): |
|
per_card: PerCard = Field(..., alias="perCard") |
|
|
|
|
|
class Checklists(BaseModel): |
|
per_card: PerCard = Field(..., alias="perCard") |
|
|
|
|
|
class Stickers(BaseModel): |
|
per_card: PerCard = Field(..., alias="perCard") |
|
|
|
|
|
class Limits(BaseModel): |
|
attachments: Attachments |
|
checklists: Checklists |
|
stickers: Stickers |
|
|
|
|
|
class Cover(BaseModel): |
|
id_attachment: None = Field(..., alias="idAttachment") |
|
color: None |
|
id_uploaded_background: None = Field(..., alias="idUploadedBackground") |
|
size: str |
|
brightness: str |
|
id_plugin: None = Field(..., alias="idPlugin") |
|
|
|
|
|
class PerChecklist(BaseModel): |
|
status: str |
|
disable_at: int = Field(..., alias="disableAt") |
|
warn_at: int = Field(..., alias="warnAt") |
|
|
|
|
|
class CheckItems(BaseModel): |
|
per_checklist: PerChecklist = Field(..., alias="perChecklist") |
|
|
|
|
|
class Limits1(BaseModel): |
|
check_items: CheckItems = Field(..., alias="checkItems") |
|
|
|
|
|
class NameData(BaseModel): |
|
emoji: dict[str, Any] |
|
|
|
|
|
class CheckItem(BaseModel): |
|
id: str |
|
name: str |
|
name_data: NameData = Field(..., alias="nameData") |
|
pos: float |
|
state: str |
|
due: None |
|
due_reminder: None = Field(..., alias="dueReminder") |
|
id_member: None = Field(..., alias="idMember") |
|
id_checklist: str = Field(..., alias="idChecklist") |
|
|
|
|
|
class Checklist(BaseModel): |
|
id: str |
|
name: str |
|
id_board: str = Field(..., alias="idBoard") |
|
id_card: str = Field(..., alias="idCard") |
|
pos: int |
|
limits: Limits1 |
|
check_items: list[CheckItem] = Field(..., alias="checkItems") |
|
creation_method: None = Field(..., alias="creationMethod") |
|
|
|
|
|
class NonPublic(BaseModel): |
|
full_name: str = Field(..., alias="fullName") |
|
initials: str |
|
avatar_hash: None = Field(..., alias="avatarHash") |
|
|
|
|
|
class Member(BaseModel): |
|
id: str |
|
aa_id: str = Field(..., alias="aaId") |
|
activity_blocked: bool = Field(..., alias="activityBlocked") |
|
avatar_hash: str = Field(..., alias="avatarHash") |
|
avatar_url: str = Field(..., alias="avatarUrl") |
|
bio: str |
|
bio_data: None = Field(..., alias="bioData") |
|
confirmed: bool |
|
full_name: str = Field(..., alias="fullName") |
|
id_enterprise: None = Field(..., alias="idEnterprise") |
|
id_enterprises_deactivated: list[Any] = Field(..., alias="idEnterprisesDeactivated") |
|
id_member_referrer: None = Field(..., alias="idMemberReferrer") |
|
id_prem_orgs_admin: list[Any] = Field(..., alias="idPremOrgsAdmin") |
|
initials: str |
|
member_type: str = Field(..., alias="memberType") |
|
non_public: NonPublic = Field(..., alias="nonPublic") |
|
non_public_available: bool = Field(..., alias="nonPublicAvailable") |
|
products: list[Any] |
|
url: str |
|
username: str |
|
status: str |
|
|
|
|
|
class TextData(BaseModel): |
|
emoji: dict[str, Any] |
|
|
|
|
|
class Card(BaseModel): |
|
id: str |
|
name: str |
|
id_short: int = Field(..., alias="idShort") |
|
short_link: str = Field(..., alias="shortLink") |
|
due_complete: bool | None = Field(None, alias="dueComplete") |
|
closed: bool | None = None |
|
id_labels: list[str] | None = Field(None, alias="idLabels") |
|
id_list: str | None = Field(None, alias="idList") |
|
pos: float | None = None |
|
start: str | None = None |
|
desc: str | None = None |
|
due_reminder: int | None = Field(None, alias="dueReminder") |
|
|
|
|
|
class Board(BaseModel): |
|
id: str |
|
name: str |
|
short_link: str = Field(..., alias="shortLink") |
|
|
|
|
|
class ListModel(BaseModel): |
|
id: str |
|
name: str |
|
|
|
|
|
class Old(BaseModel): |
|
due_complete: bool | None = Field(None, alias="dueComplete") |
|
closed: bool | None = None |
|
id_labels: list[str] | None = Field(None, alias="idLabels") |
|
id_list: str | None = Field(None, alias="idList") |
|
pos: int | None = None |
|
start: None = None |
|
name: str | None = None |
|
desc: str | None = None |
|
due_reminder: None = Field(None, alias="dueReminder") |
|
|
|
|
|
class ListBefore(BaseModel): |
|
id: str |
|
name: str |
|
|
|
|
|
class ListAfter(BaseModel): |
|
id: str |
|
name: str |
|
|
|
|
|
class Attachment(BaseModel): |
|
name: str |
|
id: str |
|
|
|
|
|
class Checklist1(BaseModel): |
|
id: str |
|
name: str |
|
|
|
|
|
class CheckItem1(BaseModel): |
|
id: str |
|
name: str |
|
state: str |
|
text_data: TextData = Field(..., alias="textData") |
|
|
|
|
|
class Member1(BaseModel): |
|
id: str |
|
name: str |
|
|
|
|
|
class Data(BaseModel): |
|
text: str | None = None |
|
text_data: TextData | None = Field(None, alias="textData") |
|
card: Card |
|
board: Board |
|
list: ListModel | None = None |
|
old: Old | None = None |
|
date_last_edited: str | None = Field(None, alias="dateLastEdited") |
|
list_before: ListBefore | None = Field(None, alias="listBefore") |
|
list_after: ListAfter | None = Field(None, alias="listAfter") |
|
attachment: Attachment | None = None |
|
checklist: Checklist1 | None = None |
|
check_item: CheckItem1 | None = Field(None, alias="checkItem") |
|
id_member: str | None = Field(None, alias="idMember") |
|
member: Member1 | None = None |
|
|
|
|
|
class Icon(BaseModel): |
|
url: str |
|
|
|
|
|
class AppCreator(BaseModel): |
|
id: str |
|
name: str | None = None |
|
icon: Icon | None = None |
|
|
|
|
|
class PerAction(BaseModel): |
|
status: str |
|
disable_at: int = Field(..., alias="disableAt") |
|
warn_at: int = Field(..., alias="warnAt") |
|
|
|
|
|
class UniquePerAction(BaseModel): |
|
status: str |
|
disable_at: int = Field(..., alias="disableAt") |
|
warn_at: int = Field(..., alias="warnAt") |
|
|
|
|
|
class Reactions(BaseModel): |
|
per_action: PerAction = Field(..., alias="perAction") |
|
unique_per_action: UniquePerAction = Field(..., alias="uniquePerAction") |
|
|
|
|
|
class Limits2(BaseModel): |
|
reactions: Reactions |
|
|
|
|
|
class MemberCreator(BaseModel): |
|
id: str |
|
activity_blocked: bool = Field(..., alias="activityBlocked") |
|
avatar_hash: str = Field(..., alias="avatarHash") |
|
avatar_url: str = Field(..., alias="avatarUrl") |
|
full_name: str = Field(..., alias="fullName") |
|
id_member_referrer: None = Field(..., alias="idMemberReferrer") |
|
initials: str |
|
non_public: NonPublic = Field(..., alias="nonPublic") |
|
non_public_available: bool = Field(..., alias="nonPublicAvailable") |
|
username: str |
|
|
|
|
|
class Member2(BaseModel): |
|
id: str |
|
activity_blocked: bool = Field(..., alias="activityBlocked") |
|
avatar_hash: str = Field(..., alias="avatarHash") |
|
avatar_url: str = Field(..., alias="avatarUrl") |
|
full_name: str = Field(..., alias="fullName") |
|
id_member_referrer: None = Field(..., alias="idMemberReferrer") |
|
initials: str |
|
non_public: NonPublic = Field(..., alias="nonPublic") |
|
non_public_available: bool = Field(..., alias="nonPublicAvailable") |
|
username: str |
|
|
|
|
|
class Action(BaseModel): |
|
id: str |
|
id_member_creator: str = Field(..., alias="idMemberCreator") |
|
data: Data |
|
app_creator: AppCreator | None = Field(..., alias="appCreator") |
|
type: str |
|
date: str |
|
limits: Limits2 | None |
|
member_creator: MemberCreator = Field(..., alias="memberCreator") |
|
member: Member2 | None = None |
|
|
|
|
|
class Model(BaseModel): |
|
id: str |
|
address: None |
|
badges: Badges |
|
check_item_states: list[CheckItemState] = Field(..., alias="checkItemStates") |
|
closed: bool |
|
coordinates: None |
|
creation_method: None = Field(..., alias="creationMethod") |
|
due_complete: bool = Field(..., alias="dueComplete") |
|
date_last_activity: str = Field(..., alias="dateLastActivity") |
|
desc: str |
|
desc_data: DescData = Field(..., alias="descData") |
|
due: None |
|
due_reminder: int = Field(..., alias="dueReminder") |
|
email: str |
|
id_board: str = Field(..., alias="idBoard") |
|
id_checklists: list[str] = Field(..., alias="idChecklists") |
|
id_labels: list[str] = Field(..., alias="idLabels") |
|
id_list: str = Field(..., alias="idList") |
|
id_members: list[str] = Field(..., alias="idMembers") |
|
id_members_voted: list[Any] = Field(..., alias="idMembersVoted") |
|
id_organization: str = Field(..., alias="idOrganization") |
|
id_short: int = Field(..., alias="idShort") |
|
id_attachment_cover: str = Field(..., alias="idAttachmentCover") |
|
labels: list[Label] |
|
limits: Limits |
|
location_name: None = Field(..., alias="locationName") |
|
manual_cover_attachment: bool = Field(..., alias="manualCoverAttachment") |
|
name: str |
|
node_id: str = Field(..., alias="nodeId") |
|
pos: int |
|
short_link: str = Field(..., alias="shortLink") |
|
short_url: str = Field(..., alias="shortUrl") |
|
static_map_url: None = Field(..., alias="staticMapUrl") |
|
start: str |
|
subscribed: bool |
|
url: str |
|
cover: Cover |
|
is_template: bool = Field(..., alias="isTemplate") |
|
card_role: None = Field(..., alias="cardRole") |
|
checklists: list[Checklist] |
|
custom_field_items: list[Any] = Field(..., alias="customFieldItems") |
|
members: list[Member] |
|
plugin_data: list[Any] = Field(..., alias="pluginData") |
|
actions: list[Action] |