Skip to content

Commit 8bb0a25

Browse files
authored
fix(types, medusa): remove fulfillment and payment status filters from validator + http types (#11604)
1 parent c382ed6 commit 8bb0a25

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.changeset/big-spiders-cheat.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@medusajs/types": patch
3+
"@medusajs/medusa": patch
4+
---
5+
6+
fix(types, medusa): remove fulfillment and payment status filters from validator + http types

packages/core/types/src/http/order/admin/queries.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { OperatorMap } from "../../../dal"
2-
import { FulfillmentStatus, PaymentStatus } from "../../../order"
32
import { FindParams } from "../../common"
43
import { BaseOrderChangesFilters, BaseOrderFilters } from "../common"
54

@@ -12,14 +11,6 @@ export interface AdminOrderFilters extends FindParams, BaseOrderFilters {
1211
* Filter by sales channel IDs to retrieve their associated orders.
1312
*/
1413
sales_channel_id?: string[]
15-
/**
16-
* Filter by fulfillment statuses.
17-
*/
18-
fulfillment_status?: FulfillmentStatus[]
19-
/**
20-
* Filter by payment statuses.
21-
*/
22-
payment_status?: PaymentStatus[]
2314
/**
2415
* Filter by region IDs to retrieve their associated orders.
2516
*/

packages/medusa/src/api/admin/orders/validators.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ export const AdminGetOrdersParams = createFindParams({
5050
.optional(),
5151
name: z.union([z.string(), z.array(z.string())]).optional(),
5252
sales_channel_id: z.array(z.string()).optional(),
53-
fulfillment_status: z.array(z.string()).optional(),
54-
payment_status: z.array(z.string()).optional(),
5553
region_id: z.union([z.string(), z.array(z.string())]).optional(),
5654
customer_id: z.union([z.string(), z.array(z.string())]).optional(),
5755
q: z.string().optional(),

0 commit comments

Comments
 (0)