fix: Fixes to product module and improving tests (#6898)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user