fix(dashboard,medusa,fulfillment): Move Shipping Profiles to settings (#7090)
**What** - Moves Shipping Profiles to settings - Adds `q` and filters to shipping profile list endpoint - Adds new details page for profiles
This commit is contained in:
1 parent
9bd2d30595
commit
e2fabc1c05
31 files changed
+536
-136
No files matched your search
@@ -1,5 +1,9 @@
|
||||
import { z } from "zod"
|
||||
import { createFindParams, createSelectParams } from "../../utils/validators"
|
||||
import {
|
||||
createFindParams,
|
||||
createOperatorMap,
|
||||
createSelectParams,
|
||||
} from "../../utils/validators"
|
||||
|
||||
export type AdminGetShippingProfileParamsType = z.infer<
|
||||
typeof AdminGetShippingProfileParams
|
||||
@@ -14,8 +18,14 @@ export const AdminGetShippingProfilesParams = createFindParams({
|
||||
offset: 0,
|
||||
}).merge(
|
||||
z.object({
|
||||
q: z.string().optional(),
|
||||
type: z.string().optional(),
|
||||
name: z.string().optional(),
|
||||
created_at: createOperatorMap().optional(),
|
||||
updated_at: createOperatorMap().optional(),
|
||||
deleted_at: createOperatorMap().optional(),
|
||||
$and: z.lazy(() => AdminGetShippingProfilesParams.array()).optional(),
|
||||
$or: z.lazy(() => AdminGetShippingProfilesParams.array()).optional(),
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user