fix(fulfillment): Wrong type usage (#6914)

**What**
Fix the types used in the fulfillment module service interface
This commit is contained in:
Adrien de Peretti
2024-04-02 18:22:57 +02:00
committed by GitHub
parent 982fb44cde
commit 27f4f0d724
2 changed files with 11 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/types": patch
---
fix(fulfillment): Wrong type usage

View File

@@ -1,5 +1,6 @@
import { IModuleService } from "../modules-sdk"
import {
FilterableFulfillmentProps,
FilterableFulfillmentSetProps,
FilterableGeoZoneProps,
FilterableServiceZoneProps,
@@ -32,6 +33,7 @@ import {
UpdateServiceZoneDTO,
UpdateShippingOptionDTO,
UpdateShippingOptionRuleDTO,
UpdateShippingProfileDTO,
} from "./mutations"
import { CreateShippingProfileDTO } from "./mutations/shipping-profile"
import { CreateFulfillmentDTO } from "./mutations/fulfillment"
@@ -456,11 +458,11 @@ export interface IFulfillmentModuleService extends IModuleService {
* @param sharedContext
*/
updateShippingProfiles(
data: CreateShippingProfileDTO[],
data: UpdateShippingProfileDTO[],
sharedContext?: Context
): Promise<ShippingProfileDTO[]>
updateShippingProfiles(
data: CreateShippingProfileDTO,
data: UpdateShippingProfileDTO,
sharedContext?: Context
): Promise<ShippingProfileDTO>
/**
@@ -626,7 +628,7 @@ export interface IFulfillmentModuleService extends IModuleService {
* @param sharedContext
*/
listFulfillments(
filters?: FilterableFulfillmentSetProps,
filters?: FilterableFulfillmentProps,
config?: FindConfig<FulfillmentDTO>,
sharedContext?: Context
): Promise<FulfillmentDTO[]>
@@ -637,7 +639,7 @@ export interface IFulfillmentModuleService extends IModuleService {
* @param sharedContext
*/
listAndCountFulfillments(
filters?: FilterableFulfillmentSetProps,
filters?: FilterableFulfillmentProps,
config?: FindConfig<FulfillmentDTO>,
sharedContext?: Context
): Promise<[FulfillmentDTO[], number]>