Skip to content

Commit f1da73c

Browse files
willbouchwilliam bouchard
andauthored
fix(types): remove order_id in apis that do not handle it (medusajs#13185)
* fix(types): remove order_id in apis that do not handle it * changeset --------- Co-authored-by: william bouchard <williambouchard@williams-MacBook-Pro.local>
1 parent c2ba01a commit f1da73c

File tree

2 files changed

+5
-36
lines changed

2 files changed

+5
-36
lines changed

.changeset/fair-mice-invent.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/types": patch
3+
---
4+
5+
fix(types): remove order_id in apis that do not handle it

packages/core/types/src/order/common.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2487,11 +2487,6 @@ export interface FilterableOrderLineItemProps
24872487
*/
24882488
id?: string | string[]
24892489

2490-
/**
2491-
* Filter line items by their associated order's ID.
2492-
*/
2493-
order_id?: string | string[]
2494-
24952490
/**
24962491
* Filter by line items' title.
24972492
*/
@@ -2549,11 +2544,6 @@ export interface FilterableOrderShippingMethodProps
25492544
*/
25502545
id?: string | string[]
25512546

2552-
/**
2553-
* Filter the shipping methods by their associated order's ID.
2554-
*/
2555-
order_id?: string | string[]
2556-
25572547
/**
25582548
* Filter shipping methods by their name.
25592549
*/
@@ -2816,32 +2806,6 @@ export interface FilterableOrderTransactionProps
28162806
created_at?: OperatorMap<string>
28172807
}
28182808

2819-
/**
2820-
* The filters to apply on the retrieved order items.
2821-
*/
2822-
export interface FilterableOrderItemProps
2823-
extends BaseFilterable<FilterableOrderItemProps> {
2824-
/**
2825-
* The IDs to filter the order items by.
2826-
*/
2827-
id?: string | string[] | OperatorMap<string>
2828-
2829-
/**
2830-
* Filter the order items by their associated order's ID.
2831-
*/
2832-
order_id?: string | string[] | OperatorMap<string>
2833-
2834-
/**
2835-
* Filter the order items by their version.
2836-
*/
2837-
version?: string | string[] | OperatorMap<string>
2838-
2839-
/**
2840-
* Filter the order items by their associated line item's ID.
2841-
*/
2842-
item_id?: string | string[] | OperatorMap<string>
2843-
}
2844-
28452809
/**
28462810
* The filters to apply on the retrieved return reasons.
28472811
*/

0 commit comments

Comments
 (0)