add campaign

This commit is contained in:
efrilm
2025-09-19 16:10:52 +07:00
parent 3bfd0b9e19
commit e55357e305
4 changed files with 72 additions and 352 deletions
+6 -4
View File
@@ -14,8 +14,9 @@ export interface Campaign {
is_active: boolean
show_on_app: boolean
position: number
metadata?: Record<string, any>
rules?: CampaignRule[]
metadata?: {
banner_url?: string
}
created_at: string // ISO string
updated_at: string // ISO string
}
@@ -43,8 +44,9 @@ export interface CampaignRequest {
is_active: boolean
show_on_app: boolean
position: number
metadata?: Record<string, any>
rules: CampaignRuleRequest[]
metadata?: {
banner_url?: string
}
}
export interface CampaignRuleRequest {