fix(draft-order, medusa, types): ui polish (#13376)

**What**
- ensure unique promotion changes are displayed in the activity section
- check linked promotions by id and not code
- list promotions - add id param
- make address payload fields nullish
- Add items view UI tweaks

---

CLOSES SUP-2400
This commit is contained in:
Frane Polić authored and GitHub committed 2025-09-05 06:55:07 +00:00
1 parent e67974ffe5
commit 0000ed6998
10 files changed
+114 -77

No files matched your search

@@ -1078,6 +1078,11 @@ export interface BaseOrderChange {
* The order change action details.
*/
export interface BaseOrderChangeAction {
/**
* The ordering of the order change action
*/
ordering: number
/**
* The ID of the order change action
*/
@@ -19,6 +19,10 @@ export interface AdminGetPromotionsParams
* Filter by promotion code.
*/
code?: string | string[] | OperatorMap<string>
/**
* Filter by promotion ID.
*/
id?: string[] | string | OperatorMap<string>
/**
* Filter by campaign ID to retrieve promotions by campaign.
*/
@@ -51,7 +55,9 @@ export interface AdminGetPromotionsParams
/**
* Filter by the promotion's application method type.
*/
application_method_type?: ApplicationMethodTypeValues | ApplicationMethodTypeValues[]
application_method_type?:
| ApplicationMethodTypeValues
| ApplicationMethodTypeValues[]
/**
* An array of filters to apply on the entity, where each item in the array is joined with an "and" condition.
*/
+10 -10
View File
@@ -34,52 +34,52 @@ export interface UpsertOrderAddressDTO {
/**
* The company name.
*/
company?: string
company?: string | null
/**
* The first name of the customer.
*/
first_name?: string
first_name?: string | null
/**
* The last name of the customer.
*/
last_name?: string
last_name?: string | null
/**
* The address 1 of the address.
*/
address_1?: string
address_1?: string | null
/**
* The address 2 of the address.
*/
address_2?: string
address_2?: string | null
/**
* The city of the address.
*/
city?: string
city?: string | null
/**
* The country code of the address.
*/
country_code?: string
country_code?: string | null
/**
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province of the address.
*/
province?: string
province?: string | null
/**
* The postal code of the address.
*/
postal_code?: string
postal_code?: string | null
/**
* The phone of the address.
*/
phone?: string
phone?: string | null
/**
* Holds custom data in key-value pairs.