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

This commit is contained in:
Riqwan Thamir
2024-07-03 14:13:44 +02:00
committed by GitHub
parent 40dbaf890f
commit fdee0bd55a
7 changed files with 48 additions and 14 deletions
@@ -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
}