fix(fulfillment): Wrong type usage (#6914)
**What** Fix the types used in the fulfillment module service interface
This commit is contained in:
committed by
GitHub
parent
982fb44cde
commit
27f4f0d724
5
.changeset/eleven-owls-relate.md
Normal file
5
.changeset/eleven-owls-relate.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/types": patch
|
||||
---
|
||||
|
||||
fix(fulfillment): Wrong type usage
|
||||
@@ -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]>
|
||||
|
||||
Reference in New Issue
Block a user