import Medusa from "@medusajs/js-sdk"
export const sdk = new Medusa({
baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
debug: import.meta.env.DEV,
auth: {
type: "session",
},
})
sdk.admin.claim.list()
.then(({ claims, count, limit, offset }) => {
console.log(claims)
})Retrieve a list of claims. The claims can be filtered by fields such as id. The claims can also be sorted or paginated.
import Medusa from "@medusajs/js-sdk"
export const sdk = new Medusa({
baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
debug: import.meta.env.DEV,
auth: {
type: "session",
},
})
sdk.admin.claim.list()
.then(({ claims, count, limit, offset }) => {
console.log(claims)
})Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Comma-separated fields that should be included in the returned data. if a field is prefixed with + it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.
The number of items to skip when retrieving a list.
Limit the number of items returned in the list.
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 -.
Filter by the claim's deletion date. The claim's deletion date.
Show child attributes
The claim's q.
The claim's ID.
The claim's order id.
Filter by the claim's status.
Filter by the claim's creation date. The claim's creation date.
Show child attributes
Filter by the claim's update date. The claim's update date.
Show child attributes
Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
Whether to include deleted records in the result.
OK
The paginated list of claims.
The maximum number of items returned.
The number of items skipped before retrieving the returned items.
The total number of items.
The list of claims.
Show child attributes
The estimated count retrieved from the PostgreSQL query planner, which may be inaccurate.