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,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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user