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