Skip to content

Commit

Permalink
Merge branch 'develop' into feat/payment-module-provider-service
Browse files Browse the repository at this point in the history
  • Loading branch information
fPolic authored Feb 12, 2024
2 parents cac9817 + 1593e0b commit e97954b
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export interface AdminGetOrdersParams {
*/
fields?: string
/**
* A order field to sort-order the retrieved orders by.
* Field to sort retrieved orders by.
*/
order?: string
}
3 changes: 2 additions & 1 deletion packages/medusa-react/src/contexts/medusa.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ export interface MedusaProviderProps {
*/
customHeaders?: Record<string, any>
/**
* An instance of the Medusa JS Client. If you don't provide an instance, one will be created using the `baseUrl`, `apiKey`, `publishableApiKey`, `maxRetries`, and `customHeaders` props.
* An instance of the Medusa JS Client. If you don't provide an instance, one will be created using the `baseUrl`, `apiKey`,
* `publishableApiKey`, `maxRetries`, and `customHeaders` props.
*/
medusaClient: Medusa
}
Expand Down
5 changes: 3 additions & 2 deletions packages/medusa/src/api/routes/admin/orders/list-orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ import { cleanResponseData } from "../../../../utils/clean-response-data"
* - (query) limit=50 {integer} Limit the number of orders returned.
* - (query) expand {string} Comma-separated relations that should be expanded in the returned order.
* - (query) fields {string} Comma-separated fields that should be included in the returned order.
* - (query) order {string} A order field to sort-order the retrieved orders by.
* - (query) order {string} Field to sort retrieved orders by.
* x-codegen:
* method: list
* queryParams: AdminGetOrdersParams
Expand Down Expand Up @@ -280,7 +280,8 @@ export class AdminGetOrdersParams extends AdminListOrdersSelector {
fields?: string

/**
* The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
* The field to sort retrieved orders by. By default, the sort order is ascending.
* To change the order to descending, prefix the field name with `-`.
*/
@IsOptional()
@IsString()
Expand Down
Loading

0 comments on commit e97954b

Please sign in to comment.