feat(core-flows,framework,medusa): list shipping options pass in cart as pricing context (#10374)
* feat(core-flows,framework,medusa): list shipping options pass in cart as pricing context * chore: add test for shipping options returning free shipping
This commit is contained in:
@@ -90,16 +90,12 @@ export type GlobalMiddlewareDescriptor = {
|
||||
config?: MiddlewaresConfig
|
||||
}
|
||||
|
||||
export interface MedusaRequest<Body = unknown>
|
||||
extends Request<
|
||||
{
|
||||
[key: string]: string
|
||||
},
|
||||
any,
|
||||
Body
|
||||
> {
|
||||
export interface MedusaRequest<
|
||||
Body = unknown,
|
||||
QueryFields = Record<string, unknown>
|
||||
> extends Request<{ [key: string]: string }, any, Body> {
|
||||
validatedBody: Body
|
||||
validatedQuery: RequestQueryFields & Record<string, unknown>
|
||||
validatedQuery: RequestQueryFields & QueryFields
|
||||
/**
|
||||
* TODO: shouldn't this correspond to returnable fields instead of allowed fields? also it is used by the cleanResponseData util
|
||||
*/
|
||||
@@ -122,7 +118,7 @@ export interface MedusaRequest<Body = unknown>
|
||||
/**
|
||||
* An object containing the fields that are filterable e.g `{ id: Any<String> }`
|
||||
*/
|
||||
filterableFields: Record<string, unknown>
|
||||
filterableFields: QueryFields
|
||||
includes?: Record<string, boolean>
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user