chore: fixes to http and request types for fulfillment (#13826)
* chore: fixes to http and request types for fulfillment * fix type error
This commit is contained in:
@@ -62,7 +62,7 @@ export class FulfillmentProvider {
|
||||
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
|
||||
*/
|
||||
async list(
|
||||
query?: HttpTypes.AdminFulfillmentProviderListParams,
|
||||
query?: HttpTypes.AdminGetFulfillmentProvidersParams,
|
||||
headers?: ClientHeaders
|
||||
) {
|
||||
return await this.client.fetch<HttpTypes.AdminFulfillmentProviderListResponse>(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { FindParams } from "../../common"
|
||||
|
||||
export interface AdminFulfillmentProviderListParams extends FindParams {
|
||||
export interface AdminGetFulfillmentProvidersParams extends FindParams {
|
||||
/**
|
||||
* Filter by provider ID(s).
|
||||
*/
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from "./entities"
|
||||
export * from "./payloads"
|
||||
export * from "./queries"
|
||||
export * from "./responses"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
export * from "./entitites"
|
||||
export * from "./payloads"
|
||||
export * from "./queries"
|
||||
export * from "./responses"
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
export interface AdminGetFulfillmentProvidersParams {
|
||||
id?: string | string[]
|
||||
stock_location_id?: string | string[]
|
||||
is_enabled?: boolean
|
||||
q?: string
|
||||
}
|
||||
Reference in New Issue
Block a user