diff --git a/.changeset/fair-mice-invent.md b/.changeset/fair-mice-invent.md new file mode 100644 index 0000000000..d5cb9f302f --- /dev/null +++ b/.changeset/fair-mice-invent.md @@ -0,0 +1,5 @@ +--- +"@medusajs/types": patch +--- + +fix(types): remove order_id in apis that do not handle it diff --git a/packages/core/types/src/order/common.ts b/packages/core/types/src/order/common.ts index df37835716..eb531f0f8f 100644 --- a/packages/core/types/src/order/common.ts +++ b/packages/core/types/src/order/common.ts @@ -2487,11 +2487,6 @@ export interface FilterableOrderLineItemProps */ id?: string | string[] - /** - * Filter line items by their associated order's ID. - */ - order_id?: string | string[] - /** * Filter by line items' title. */ @@ -2549,11 +2544,6 @@ export interface FilterableOrderShippingMethodProps */ id?: string | string[] - /** - * Filter the shipping methods by their associated order's ID. - */ - order_id?: string | string[] - /** * Filter shipping methods by their name. */ @@ -2816,32 +2806,6 @@ export interface FilterableOrderTransactionProps created_at?: OperatorMap } -/** - * The filters to apply on the retrieved order items. - */ -export interface FilterableOrderItemProps - extends BaseFilterable { - /** - * The IDs to filter the order items by. - */ - id?: string | string[] | OperatorMap - - /** - * Filter the order items by their associated order's ID. - */ - order_id?: string | string[] | OperatorMap - - /** - * Filter the order items by their version. - */ - version?: string | string[] | OperatorMap - - /** - * Filter the order items by their associated line item's ID. - */ - item_id?: string | string[] | OperatorMap -} - /** * The filters to apply on the retrieved return reasons. */