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:
Riqwan Thamir
2024-05-09 10:00:28 +02:00
committed by GitHub
parent 5952fddad5
commit 6da2964998
48 changed files with 2027 additions and 100 deletions
@@ -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)[]
}