fix(fulfillment): Wrong type usage (#6914)
**What** Fix the types used in the fulfillment module service interface
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/types": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(fulfillment): Wrong type usage
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
import { IModuleService } from "../modules-sdk"
|
import { IModuleService } from "../modules-sdk"
|
||||||
import {
|
import {
|
||||||
|
FilterableFulfillmentProps,
|
||||||
FilterableFulfillmentSetProps,
|
FilterableFulfillmentSetProps,
|
||||||
FilterableGeoZoneProps,
|
FilterableGeoZoneProps,
|
||||||
FilterableServiceZoneProps,
|
FilterableServiceZoneProps,
|
||||||
@@ -32,6 +33,7 @@ import {
|
|||||||
UpdateServiceZoneDTO,
|
UpdateServiceZoneDTO,
|
||||||
UpdateShippingOptionDTO,
|
UpdateShippingOptionDTO,
|
||||||
UpdateShippingOptionRuleDTO,
|
UpdateShippingOptionRuleDTO,
|
||||||
|
UpdateShippingProfileDTO,
|
||||||
} from "./mutations"
|
} from "./mutations"
|
||||||
import { CreateShippingProfileDTO } from "./mutations/shipping-profile"
|
import { CreateShippingProfileDTO } from "./mutations/shipping-profile"
|
||||||
import { CreateFulfillmentDTO } from "./mutations/fulfillment"
|
import { CreateFulfillmentDTO } from "./mutations/fulfillment"
|
||||||
@@ -456,11 +458,11 @@ export interface IFulfillmentModuleService extends IModuleService {
|
|||||||
* @param sharedContext
|
* @param sharedContext
|
||||||
*/
|
*/
|
||||||
updateShippingProfiles(
|
updateShippingProfiles(
|
||||||
data: CreateShippingProfileDTO[],
|
data: UpdateShippingProfileDTO[],
|
||||||
sharedContext?: Context
|
sharedContext?: Context
|
||||||
): Promise<ShippingProfileDTO[]>
|
): Promise<ShippingProfileDTO[]>
|
||||||
updateShippingProfiles(
|
updateShippingProfiles(
|
||||||
data: CreateShippingProfileDTO,
|
data: UpdateShippingProfileDTO,
|
||||||
sharedContext?: Context
|
sharedContext?: Context
|
||||||
): Promise<ShippingProfileDTO>
|
): Promise<ShippingProfileDTO>
|
||||||
/**
|
/**
|
||||||
@@ -626,7 +628,7 @@ export interface IFulfillmentModuleService extends IModuleService {
|
|||||||
* @param sharedContext
|
* @param sharedContext
|
||||||
*/
|
*/
|
||||||
listFulfillments(
|
listFulfillments(
|
||||||
filters?: FilterableFulfillmentSetProps,
|
filters?: FilterableFulfillmentProps,
|
||||||
config?: FindConfig<FulfillmentDTO>,
|
config?: FindConfig<FulfillmentDTO>,
|
||||||
sharedContext?: Context
|
sharedContext?: Context
|
||||||
): Promise<FulfillmentDTO[]>
|
): Promise<FulfillmentDTO[]>
|
||||||
@@ -637,7 +639,7 @@ export interface IFulfillmentModuleService extends IModuleService {
|
|||||||
* @param sharedContext
|
* @param sharedContext
|
||||||
*/
|
*/
|
||||||
listAndCountFulfillments(
|
listAndCountFulfillments(
|
||||||
filters?: FilterableFulfillmentSetProps,
|
filters?: FilterableFulfillmentProps,
|
||||||
config?: FindConfig<FulfillmentDTO>,
|
config?: FindConfig<FulfillmentDTO>,
|
||||||
sharedContext?: Context
|
sharedContext?: Context
|
||||||
): Promise<[FulfillmentDTO[], number]>
|
): Promise<[FulfillmentDTO[], number]>
|
||||||
|
|||||||
Reference in New Issue
Block a user