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:
Shahed Nasser
2025-10-28 11:08:07 +02:00
committed by GitHub
parent faea42316a
commit bc87c9a0ba
18 changed files with 53 additions and 38 deletions

View File

@@ -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>(

View File

@@ -1,6 +1,6 @@
import { FindParams } from "../../common"
export interface AdminFulfillmentProviderListParams extends FindParams {
export interface AdminGetFulfillmentProvidersParams extends FindParams {
/**
* Filter by provider ID(s).
*/

View File

@@ -1,3 +1,4 @@
export * from "./entities"
export * from "./payloads"
export * from "./queries"
export * from "./responses"

View File

@@ -1,4 +1,3 @@
export * from "./entitites"
export * from "./payloads"
export * from "./queries"
export * from "./responses"

View File

@@ -1,6 +0,0 @@
export interface AdminGetFulfillmentProvidersParams {
id?: string | string[]
stock_location_id?: string | string[]
is_enabled?: boolean
q?: string
}