From f1da73cb588a45afdeb80572d7d59987b5559252 Mon Sep 17 00:00:00 2001 From: William Bouchard <46496014+willbouch@users.noreply.github.com> Date: Mon, 11 Aug 2025 14:56:57 -0400 Subject: [PATCH] fix(types): remove order_id in apis that do not handle it (#13185) * fix(types): remove order_id in apis that do not handle it * changeset --------- Co-authored-by: william bouchard --- .changeset/fair-mice-invent.md | 5 ++++ packages/core/types/src/order/common.ts | 36 ------------------------- 2 files changed, 5 insertions(+), 36 deletions(-) create mode 100644 .changeset/fair-mice-invent.md 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. */