feat: some fixes
This commit is contained in:
@@ -187,10 +187,23 @@ export interface PurchasePlanChannelUpdateRequest {
|
||||
|
||||
export type CreativeStatus = "active" | "archived";
|
||||
|
||||
export interface CreativeMediaItem {
|
||||
media_type: string;
|
||||
media_file_id: string;
|
||||
position: number;
|
||||
}
|
||||
|
||||
export interface CreativeButton {
|
||||
text: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface Creative {
|
||||
id: string; // UUID
|
||||
name: string;
|
||||
text: string; // Contains {invite_link} placeholder
|
||||
media_items: CreativeMediaItem[];
|
||||
buttons: CreativeButton[];
|
||||
project_id: string;
|
||||
project_channel_title: string;
|
||||
created_at: string;
|
||||
@@ -206,6 +219,9 @@ export interface CreativeCreateRequest {
|
||||
export interface CreativeUpdateRequest {
|
||||
name?: string;
|
||||
text?: string;
|
||||
status?: CreativeStatus;
|
||||
media_items?: CreativeMediaItem[];
|
||||
buttons?: CreativeButton[];
|
||||
}
|
||||
|
||||
export interface CreativesQueryParams extends PaginationParams {
|
||||
|
||||
Reference in New Issue
Block a user