This commit is contained in:
Artem Tsyrulnikov
2026-01-15 22:02:16 +03:00
parent 6ec26c96e3
commit 049024ebe8
72 changed files with 2417 additions and 2054 deletions

View File

@@ -16,24 +16,24 @@ __all__ = (
'Channel',
'Project',
'ProjectStatus',
'Purchase',
'PurchaseChannel',
'PurchaseStatus',
'PurchaseChannelStatus',
'Placement',
'PlacementStatus',
'PlacementType',
'Publication',
'PublicationStatus',
'Creative',
'replace_invite_link_with_tag',
'validate_media_size',
'MAX_CREATIVE_MEDIA_BYTES',
'Placement',
'Post',
'Subscription',
'PostViewsHistory',
'ChannelNotFound',
'ProjectNotFound',
'CreativeStatus',
'PlacementStatus',
'SubscriptionStatus',
'InviteLinkType',
'CostType',
'PostViewsAvailability',
'LoginToken',
'UserNotFound',
@@ -48,8 +48,8 @@ __all__ = (
'LoginTokenAlreadyUsed',
'ProjectNotFound',
'ProjectChannelConflict',
'PurchaseNotFound',
'PurchaseChannelNotFound',
'PlacementNotFound',
'PublicationNotFound',
'ChannelNotFound',
'ChannelAlreadyExists',
'ChannelNoAdminRights',
@@ -59,12 +59,17 @@ __all__ = (
'CreativeInviteLinkNotFound',
'CreativeMultipleInviteLinks',
'CreativeMediaTooLarge',
'PlacementNotFound',
'UserByUsernameNotFound',
)
from .channel import Channel
from .creative import Creative, CreativeStatus, MAX_CREATIVE_MEDIA_BYTES, replace_invite_link_with_tag, validate_media_size
from .creative import (
MAX_CREATIVE_MEDIA_BYTES,
Creative,
CreativeStatus,
replace_invite_link_with_tag,
validate_media_size,
)
from .error import (
ChannelAlreadyExists,
ChannelNoAdminRights,
@@ -78,10 +83,9 @@ from .error import (
LoginTokenExpired,
LoginTokenNotFound,
PlacementNotFound,
ProjectNotFound,
ProjectChannelConflict,
PurchaseChannelNotFound,
PurchaseNotFound,
ProjectNotFound,
PublicationNotFound,
TelegramChannelNotFound,
UserByUsernameNotFound,
UserNotFound,
@@ -93,20 +97,20 @@ from .error import (
WorkspaceNotFound,
)
from .login_token import LoginToken
from .placement import Placement, PlacementStatus, PostViewsAvailability
from .placement import PostViewsAvailability, Publication, PublicationStatus
from .post import Post
from .post_views_history import PostViewsHistory
from .project import Project, ProjectStatus
from .purchase import (
CostType,
InviteLinkType,
Purchase,
PurchaseChannel,
PurchaseChannelStatus,
PurchaseStatus,
Placement,
PlacementStatus,
PlacementType,
)
from .subscription import Subscription, SubscriptionStatus
from .user import User
from .telegram_user import TelegramUser
from .user import User
from .workspace import (
PermissionKey,
PermissionScopeType,