fix(core-flows): change some types to interfaces (#11061)
This commit is contained in:
5
.changeset/dry-mugs-bake.md
Normal file
5
.changeset/dry-mugs-bake.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/core-flows": patch
|
||||
---
|
||||
|
||||
fix(core-flows): change some types to interfaces
|
||||
@@ -25,10 +25,10 @@ import { updateShippingOptionRulesStep } from "../steps/update-shipping-option-r
|
||||
* @property update - The shipping option rules to update.
|
||||
* @property delete - The IDs of the shipping option rules to delete.
|
||||
*/
|
||||
export type BatchShippingOptionRulesInput = BatchWorkflowInput<
|
||||
export interface BatchShippingOptionRulesInput extends BatchWorkflowInput<
|
||||
CreateShippingOptionRuleDTO,
|
||||
UpdateShippingOptionRuleDTO
|
||||
>
|
||||
> {}
|
||||
|
||||
/**
|
||||
* The result of managing the shipping option rules in bulk.
|
||||
@@ -37,7 +37,7 @@ export type BatchShippingOptionRulesInput = BatchWorkflowInput<
|
||||
* @property updated - The shipping option rules that were updated.
|
||||
* @property deleted - The IDs of the shipping option rules that were deleted.
|
||||
*/
|
||||
export type BatchShippingOptionRulesOutput = BatchWorkflowOutput<ShippingOptionRuleDTO>
|
||||
export interface BatchShippingOptionRulesOutput extends BatchWorkflowOutput<ShippingOptionRuleDTO> {}
|
||||
|
||||
export const batchShippingOptionRulesWorkflowId = "batch-shipping-option-rules"
|
||||
/**
|
||||
|
||||
@@ -41,7 +41,7 @@ export interface BatchInventoryItemLevelsWorkflowInput
|
||||
* @property updated - The inventory levels that were updated.
|
||||
* @property deleted - The IDs of the inventory levels that were deleted.
|
||||
*/
|
||||
export type BatchInventoryItemLevelsWorkflowOutput = BatchWorkflowOutput<InventoryLevelDTO>
|
||||
export interface BatchInventoryItemLevelsWorkflowOutput extends BatchWorkflowOutput<InventoryLevelDTO> {}
|
||||
|
||||
export const batchInventoryItemLevelsWorkflowId =
|
||||
"batch-inventory-item-levels-workflow"
|
||||
|
||||
@@ -19,15 +19,15 @@ import { deleteProductVariantsWorkflow } from "./delete-product-variants"
|
||||
/**
|
||||
* The product variants to manage.
|
||||
*/
|
||||
export type BatchProductVariantsWorkflowInput = BatchWorkflowInput<
|
||||
export interface BatchProductVariantsWorkflowInput extends BatchWorkflowInput<
|
||||
CreateProductVariantWorkflowInputDTO,
|
||||
UpdateProductVariantWorkflowInputDTO
|
||||
>
|
||||
> {}
|
||||
|
||||
/**
|
||||
* The result of managing the product variants.
|
||||
*/
|
||||
export type BatchProductVariantsWorkflowOutput = BatchWorkflowOutput<ProductTypes.ProductVariantDTO>
|
||||
export interface BatchProductVariantsWorkflowOutput extends BatchWorkflowOutput<ProductTypes.ProductVariantDTO> {}
|
||||
|
||||
export const batchProductVariantsWorkflowId = "batch-product-variants"
|
||||
/**
|
||||
|
||||
@@ -19,10 +19,10 @@ import { updateProductsWorkflow } from "./update-products"
|
||||
/**
|
||||
* The products to manage.
|
||||
*/
|
||||
export type BatchProductWorkflowInput = BatchWorkflowInput<
|
||||
export interface BatchProductWorkflowInput extends BatchWorkflowInput<
|
||||
CreateProductWorkflowInputDTO,
|
||||
UpdateProductWorkflowInputDTO
|
||||
>
|
||||
> {}
|
||||
|
||||
export const batchProductsWorkflowId = "batch-products"
|
||||
/**
|
||||
|
||||
@@ -26,10 +26,10 @@ import { updatePromotionRulesWorkflow } from "./update-promotion-rules"
|
||||
* @property update - The rules to update.
|
||||
* @property delete - The IDs of the rules to delete.
|
||||
*/
|
||||
export type BatchPromotionRulesWorkflowInput = BatchWorkflowInput<
|
||||
export interface BatchPromotionRulesWorkflowInput extends BatchWorkflowInput<
|
||||
CreatePromotionRuleDTO,
|
||||
UpdatePromotionRuleDTO
|
||||
> & {
|
||||
> {
|
||||
id: string
|
||||
rule_type: RuleType
|
||||
}
|
||||
@@ -41,7 +41,7 @@ export type BatchPromotionRulesWorkflowInput = BatchWorkflowInput<
|
||||
* @property updated - The updated rules.
|
||||
* @property deleted - The deleted rule IDs.
|
||||
*/
|
||||
export type BatchPromotionRulesWorkflowOutput = BatchWorkflowOutput<PromotionRuleDTO>
|
||||
export interface BatchPromotionRulesWorkflowOutput extends BatchWorkflowOutput<PromotionRuleDTO> {}
|
||||
|
||||
export const batchPromotionRulesWorkflowId = "batch-promotion-rules"
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user