feat(dashboard,core,medusa,promotion): add campaigns UI (#7269)
* feat(dashboard,core,medusa,promotion): add campaigns UI * chore: add without campaign choice to promotion ui * chore: fix builds and types * chore: fix design issues * chore: address pr reviews
This commit is contained in:
1 parent
5952fddad5
commit
6da2964998
48 files changed
+2027
-100
No files matched your search
@@ -2,8 +2,8 @@ import { CampaignBudgetTypeValues } from "@medusajs/types"
|
||||
import { Campaign } from "@models"
|
||||
|
||||
export interface CreateCampaignBudgetDTO {
|
||||
type: CampaignBudgetTypeValues
|
||||
limit: number | null
|
||||
type?: CampaignBudgetTypeValues
|
||||
limit?: number
|
||||
used?: number
|
||||
campaign?: Campaign | string
|
||||
}
|
||||
@@ -11,6 +11,6 @@ export interface CreateCampaignBudgetDTO {
|
||||
export interface UpdateCampaignBudgetDTO {
|
||||
id: string
|
||||
type?: CampaignBudgetTypeValues
|
||||
limit?: number | null
|
||||
limit?: number
|
||||
used?: number
|
||||
}
|
||||
@@ -6,8 +6,8 @@ export interface CreateCampaignDTO {
|
||||
description?: string
|
||||
currency?: string
|
||||
campaign_identifier: string
|
||||
starts_at: Date
|
||||
ends_at: Date
|
||||
starts_at?: Date
|
||||
ends_at?: Date
|
||||
promotions?: (PromotionDTO | Promotion)[]
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user