urembo-hub-api
Preparing search index...
products/products.controller
ProductsController
Class ProductsController
Index
Constructors
constructor
Methods
bulk
Update
Individual
Prices
bulk
Update
Individual
Stock
create
Product
delete
Product
get
All
Products
get
Low
Stock
Products
get
Product
By
Id
get
Product
Categories
get
Product
Category
By
Id
get
Products
By
Category
get
Products
By
Manufacturer
get
Top
Selling
Products
get
User
Products
search
Products
update
Product
update
Qc
Status
update
Stock
Quantity
Constructors
constructor
new
ProductsController
(
productsService
:
ProductsService
)
:
ProductsController
Parameters
productsService
:
ProductsService
Returns
ProductsController
Methods
bulk
Update
Individual
Prices
bulkUpdateIndividualPrices
(
req
:
any
,
body
:
{
updates
:
{
newPrice
:
number
;
productId
:
string
}
[]
}
,
)
:
Promise
<
|
{
error
?:
undefined
;
message
:
string
;
results
:
any
[]
;
success
:
boolean
;
}
|
{
error
:
any
;
message
?:
undefined
;
results
:
any
[]
;
success
:
boolean
}
,
>
Parameters
req
:
any
body
:
{
updates
:
{
newPrice
:
number
;
productId
:
string
}
[]
}
Returns
Promise
<
|
{
error
?:
undefined
;
message
:
string
;
results
:
any
[]
;
success
:
boolean
;
}
|
{
error
:
any
;
message
?:
undefined
;
results
:
any
[]
;
success
:
boolean
}
,
>
bulk
Update
Individual
Stock
bulkUpdateIndividualStock
(
req
:
any
,
body
:
{
updates
:
{
newStock
:
number
;
productId
:
string
}
[]
}
,
)
:
Promise
<
|
{
error
?:
undefined
;
message
:
string
;
results
:
any
[]
;
success
:
boolean
;
}
|
{
error
:
any
;
message
?:
undefined
;
results
:
any
[]
;
success
:
boolean
}
,
>
Parameters
req
:
any
body
:
{
updates
:
{
newStock
:
number
;
productId
:
string
}
[]
}
Returns
Promise
<
|
{
error
?:
undefined
;
message
:
string
;
results
:
any
[]
;
success
:
boolean
;
}
|
{
error
:
any
;
message
?:
undefined
;
results
:
any
[]
;
success
:
boolean
}
,
>
create
Product
createProduct
(
req
:
any
,
createProductDto
:
CreateProductDto
,
)
:
Promise
<
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
,
>
Parameters
req
:
any
createProductDto
:
CreateProductDto
Returns
Promise
<
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
,
>
delete
Product
deleteProduct
(
id
:
string
,
req
:
any
,
)
:
Promise
<
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
,
>
Parameters
id
:
string
req
:
any
Returns
Promise
<
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
,
>
get
All
Products
getAllProducts
(
categoryId
?:
string
,
isActive
?:
string
,
)
:
Promise
<
(
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
)
[]
,
>
Parameters
Optional
categoryId
:
string
Optional
isActive
:
string
Returns
Promise
<
(
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
)
[]
,
>
get
Low
Stock
Products
getLowStockProducts
(
threshold
?:
string
,
)
:
Promise
<
(
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
)
[]
,
>
Parameters
Optional
threshold
:
string
Returns
Promise
<
(
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
)
[]
,
>
get
Product
By
Id
getProductById
(
id
:
string
,
)
:
Promise
<
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
,
>
Parameters
id
:
string
Returns
Promise
<
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
,
>
get
Product
Categories
getProductCategories
()
:
Promise
<
{
children
:
{
id
:
string
;
level
:
number
;
name
:
string
;
position
:
number
;
slug
:
string
;
}
[]
;
createdAt
:
Date
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
level
:
number
;
name
:
string
;
parent
:
{
id
:
string
;
name
:
string
;
slug
:
string
}
;
parentId
:
string
;
position
:
number
;
slug
:
string
;
updatedAt
:
Date
;
}
[]
,
>
Returns
Promise
<
{
children
:
{
id
:
string
;
level
:
number
;
name
:
string
;
position
:
number
;
slug
:
string
;
}
[]
;
createdAt
:
Date
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
level
:
number
;
name
:
string
;
parent
:
{
id
:
string
;
name
:
string
;
slug
:
string
}
;
parentId
:
string
;
position
:
number
;
slug
:
string
;
updatedAt
:
Date
;
}
[]
,
>
get
Product
Category
By
Id
getProductCategoryById
(
id
:
string
,
)
:
Promise
<
{
children
:
{
description
:
string
;
id
:
string
;
imageUrl
:
string
;
level
:
number
;
name
:
string
;
position
:
number
;
slug
:
string
;
}
[]
;
createdAt
:
Date
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
level
:
number
;
name
:
string
;
parent
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
}
;
parentId
:
string
;
position
:
number
;
products
:
{
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
price
:
Decimal
;
}
[]
;
slug
:
string
;
updatedAt
:
Date
;
}
,
>
Parameters
id
:
string
Returns
Promise
<
{
children
:
{
description
:
string
;
id
:
string
;
imageUrl
:
string
;
level
:
number
;
name
:
string
;
position
:
number
;
slug
:
string
;
}
[]
;
createdAt
:
Date
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
level
:
number
;
name
:
string
;
parent
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
}
;
parentId
:
string
;
position
:
number
;
products
:
{
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
price
:
Decimal
;
}
[]
;
slug
:
string
;
updatedAt
:
Date
;
}
,
>
get
Products
By
Category
getProductsByCategory
(
categoryId
:
string
,
)
:
Promise
<
(
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
)
[]
,
>
Parameters
categoryId
:
string
Returns
Promise
<
(
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
)
[]
,
>
get
Products
By
Manufacturer
getProductsByManufacturer
(
manufacturerId
:
string
,
)
:
Promise
<
(
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
)
[]
,
>
Parameters
manufacturerId
:
string
Returns
Promise
<
(
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
)
[]
,
>
get
Top
Selling
Products
getTopSellingProducts
(
limit
?:
string
,
)
:
Promise
<
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
retailerId
:
string
;
salesData
:
{
orderCount
:
number
;
totalQuantitySold
:
number
;
totalRevenue
:
number
|
Decimal
;
}
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
[]
,
>
Parameters
Optional
limit
:
string
Returns
Promise
<
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
retailerId
:
string
;
salesData
:
{
orderCount
:
number
;
totalQuantitySold
:
number
;
totalRevenue
:
number
|
Decimal
;
}
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
[]
,
>
get
User
Products
getUserProducts
(
req
:
any
,
)
:
Promise
<
(
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
)
[]
,
>
Parameters
req
:
any
Returns
Promise
<
(
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
)
[]
,
>
search
Products
searchProducts
(
query
:
string
,
)
:
Promise
<
(
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
)
[]
,
>
Parameters
query
:
string
Returns
Promise
<
(
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
)
[]
,
>
update
Product
updateProduct
(
id
:
string
,
req
:
any
,
updateProductDto
:
UpdateProductDto
,
)
:
Promise
<
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
,
>
Parameters
id
:
string
req
:
any
updateProductDto
:
UpdateProductDto
Returns
Promise
<
{
category
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
retailer
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
subcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
;
slug
:
string
;
}
;
}
&
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
,
>
update
Qc
Status
updateQcStatus
(
id
:
string
,
req
:
any
,
body
:
UpdateQcStatusDto
,
)
:
Promise
<
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
,
>
Parameters
id
:
string
req
:
any
body
:
UpdateQcStatusDto
Returns
Promise
<
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
,
>
update
Stock
Quantity
updateStockQuantity
(
id
:
string
,
req
:
any
,
body
:
UpdateStockDto
,
)
:
Promise
<
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
,
>
Parameters
id
:
string
req
:
any
body
:
UpdateStockDto
Returns
Promise
<
{
categoryId
:
string
;
createdAt
:
Date
;
createdByRole
:
user_role
;
currency
:
string
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
manufacturerId
:
string
;
name
:
string
;
price
:
Decimal
;
qcStatus
:
string
;
retailerId
:
string
;
sku
:
string
;
stockQuantity
:
number
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
bulk
Update
Individual
Prices
bulk
Update
Individual
Stock
create
Product
delete
Product
get
All
Products
get
Low
Stock
Products
get
Product
By
Id
get
Product
Categories
get
Product
Category
By
Id
get
Products
By
Category
get
Products
By
Manufacturer
get
Top
Selling
Products
get
User
Products
search
Products
update
Product
update
Qc
Status
update
Stock
Quantity
urembo-hub-api
Loading...