feat(dashboard,types,promotion,medusa): hide fields on promotions depending on templates (#7746)
**what:** - hides different fields depending on the chosen template - remove operator values API - fixes to edit promotion rules - make currency optional for promotion RESOLVES CORE-2297
This commit is contained in:
1 parent
1451112f08
commit
0d04c548f5
24 files changed
+523
-389
No files matched your search
@@ -5,6 +5,11 @@ export interface RuleAttributeOptionsResponse {
|
||||
field_type: string
|
||||
required: boolean
|
||||
disguised: boolean
|
||||
operators: {
|
||||
id: string
|
||||
value: string
|
||||
label: string
|
||||
}[]
|
||||
}
|
||||
|
||||
export interface AdminRuleAttributeOptionsListResponse {
|
||||
|
||||
@@ -124,7 +124,7 @@ export interface CreateApplicationMethodDTO {
|
||||
/**
|
||||
* Currency of the value to apply.
|
||||
*/
|
||||
currency_code: string
|
||||
currency_code?: string
|
||||
|
||||
/**
|
||||
* The max quantity allowed in the cart for the associated promotion to be applied.
|
||||
|
||||
Reference in new issue
Block a user