feat(types): promotion module uses big number (#6522)

what: 

- promotion modules (application method and campaign budget) uses big number fields instead of numeric fields
- refreshes the migrations to include new fields for big numbers
- adds a promotion_ prefix to promotion models
- uses `take: null` within the module to prevent the default pagination on performing actions within the module
This commit is contained in:
Riqwan Thamir
2024-02-28 11:57:43 +00:00
committed by GitHub
parent a6d7070dd6
commit 0d46abf0ff
17 changed files with 343 additions and 259 deletions
@@ -14,7 +14,7 @@ export interface ApplicationMethodDTO {
type?: ApplicationMethodTypeValues
target_type?: ApplicationMethodTargetTypeValues
allocation?: ApplicationMethodAllocationValues
value?: string | null
value?: number
max_quantity?: number | null
buy_rules_min_quantity?: number | null
apply_to_quantity?: number | null
@@ -27,7 +27,7 @@ export interface CreateApplicationMethodDTO {
type: ApplicationMethodTypeValues
target_type: ApplicationMethodTargetTypeValues
allocation?: ApplicationMethodAllocationValues
value?: string | null
value?: number
max_quantity?: number | null
buy_rules_min_quantity?: number | null
apply_to_quantity?: number | null
@@ -41,7 +41,7 @@ export interface UpdateApplicationMethodDTO {
type?: ApplicationMethodTypeValues
target_type?: ApplicationMethodTargetTypeValues
allocation?: ApplicationMethodAllocationValues
value?: string | null
value?: number
max_quantity?: number | null
buy_rules_min_quantity?: number | null
apply_to_quantity?: number | null