chore: use campaign http types from types package (#7922)
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user