fix: Fixes to product module and improving tests (#6898)

This commit is contained in:
Stevche Radevski
2024-04-02 07:13:46 +00:00
committed by GitHub
parent b2763647f7
commit b3ce13d61e
8 changed files with 133 additions and 251 deletions
+12
View File
@@ -579,6 +579,18 @@ export interface ProductVariantOptionDTO {
* The associated product variant id.
*/
variant_id?: string | null
/**
* When the product variant option was created.
*/
created_at: string | Date
/**
* When the product variant option was updated.
*/
updated_at: string | Date
/**
* When the product variant option was deleted.
*/
deleted_at?: string | Date
}
/**
+1 -4
View File
@@ -259,10 +259,7 @@ export interface IProductModuleService extends IModuleService {
* title: "Shirt",
* })
*/
upsert(
data: UpsertProductDTO[],
sharedContext?: Context
): Promise<ProductDTO[]>
upsert(data: UpsertProductDTO, sharedContext?: Context): Promise<ProductDTO>
/**
* This method is used to update a product.