chore: use campaign http types from types package (#7922)

This commit is contained in:
Riqwan Thamir authored and GitHub committed 2024-07-03 14:13:44 +02:00
1 parent 40dbaf890f
commit fdee0bd55a
7 files changed
+48 -14

No files matched your search

@@ -1 +1,2 @@
export * from "./campaign"
export * from "./payloads"
export * from "./responses"
@@ -0,0 +1,29 @@
import { CampaignBudgetTypeValues } from "../../../promotion"
export interface AdminCreateCampaign {
name?: string
description?: string
currency?: string | null
campaign_identifier?: string
starts_at?: Date | null
ends_at?: Date | null
budget?: {
type?: CampaignBudgetTypeValues
currency_code?: string | null
limit?: number | null
} | null
}
export interface AdminUpdateCampaign {
name?: string
description?: string
currency?: string | null
campaign_identifier?: string
starts_at?: Date | null
ends_at?: Date | null
budget?: {
type?: CampaignBudgetTypeValues
currency_code?: string | null
limit?: number | null
} | null
}