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

View File

@@ -1,3 +1,4 @@
import { CampaignBudgetTypeValues } from "../../../promotion"
import { PaginatedResponse } from "../../common"
/**
@@ -13,8 +14,8 @@ export interface CampaignResponse {
ends_at: string
budget: {
id: string
type: string
limit: number | null
type: CampaignBudgetTypeValues
limit: number
used: number
}
}

View File

@@ -7,12 +7,12 @@ export interface CreateCampaignBudgetDTO {
/**
* The type of the campaign budget.
*/
type: CampaignBudgetTypeValues
type?: CampaignBudgetTypeValues
/**
* The limit of the campaign budget.
*/
limit: number | null
limit?: number
/**
* How much is used of the campaign budget.
@@ -37,7 +37,7 @@ export interface UpdateCampaignBudgetDTO {
/**
* The limit of the campaign budget.
*/
limit?: number | null
limit?: number
/**
* How much is used of the campaign budget.
@@ -72,12 +72,12 @@ export interface CreateCampaignDTO {
/**
* The start date of the campaign.
*/
starts_at: Date
starts_at?: Date
/**
* The end date of the campaign.
*/
ends_at: Date
ends_at?: Date
/**
* The associated campaign budget.