fix(types, medusa): fixes to draft order request types (#8949)
- remove the `name` filter for orders (couldn't find any `name` property in the order data model). - Remove the `order_id` property of a shipping method in the request body type for creating a draft order - Update the types of `fulfillment_status` and `payment_status` in the order filters to showcase the possible status values.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import { OperatorMap } from "../../../dal"
|
||||
import { FulfillmentStatus, PaymentStatus } from "../../../order"
|
||||
import { FindParams } from "../../common"
|
||||
import { BaseOrderFilters } from "../common"
|
||||
import { BaseOrderChangesFilters } from "../common"
|
||||
|
||||
export interface AdminOrderFilters extends FindParams, BaseOrderFilters {
|
||||
id?: string[] | string
|
||||
name?: string[] | string
|
||||
sales_channel_id?: string[]
|
||||
fulfillment_status?: string[]
|
||||
payment_status?: string[]
|
||||
fulfillment_status?: FulfillmentStatus[]
|
||||
payment_status?: PaymentStatus[]
|
||||
region_id?: string[]
|
||||
q?: string
|
||||
created_at?: OperatorMap<string>
|
||||
|
||||
Reference in New Issue
Block a user