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:
Riqwan Thamir
2024-06-18 16:47:42 +00:00
committed by GitHub
parent 1451112f08
commit 0d04c548f5
24 changed files with 523 additions and 389 deletions
@@ -0,0 +1,22 @@
import { Migration } from "@mikro-orm/migrations"
export class Migration20240617102917 extends Migration {
async up(): Promise<void> {
this.addSql(
'alter table "promotion_application_method" alter column "currency_code" type text using ("currency_code"::text);'
)
this.addSql(
'alter table "promotion_application_method" alter column "currency_code" drop not null;'
)
}
async down(): Promise<void> {
this.addSql(
'alter table "promotion_application_method" alter column "currency_code" type text using ("currency_code"::text);'
)
this.addSql(
'alter table "promotion_application_method" alter column "currency_code" set not null;'
)
}
}