urembo-hub-api
Preparing search index...
products/products.service
ProductsService
Class ProductsService
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
ProductsService
(
prisma
:
PrismaService
)
:
ProductsService
Parameters
prisma
:
PrismaService
Returns
ProductsService
Methods
bulk
Update
Individual
Prices
bulkUpdateIndividualPrices
(
userId
:
string
,
userRole
:
user_role
,
updates
:
{
newPrice
:
number
;
productId
:
string
}
[]
,
)
:
Promise
<
|
{
error
?:
undefined
;
message
:
string
;
results
:
any
[]
;
success
:
boolean
;
}
|
{
error
:
any
;
message
?:
undefined
;
results
:
any
[]
;
success
:
boolean
}
,
>
Parameters
userId
:
string
userRole
:
user_role
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
(
userId
:
string
,
userRole
:
user_role
,
updates
:
{
newStock
:
number
;
productId
:
string
}
[]
,
)
:
Promise
<
|
{
error
?:
undefined
;
message
:
string
;
results
:
any
[]
;
success
:
boolean
;
}
|
{
error
:
any
;
message
?:
undefined
;
results
:
any
[]
;
success
:
boolean
}
,
>
Parameters
userId
:
string
userRole
:
user_role
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
(
userId
:
string
,
userRole
:
user_role
,
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
userId
:
string
userRole
:
user_role
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
,
userId
:
string
,
userRole
:
user_role
,
)
:
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
userId
:
string
userRole
:
user_role
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
?:
boolean
,
)
:
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
isActive
:
boolean
= true
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
?:
number
,
)
:
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
threshold
:
number
= 10
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
?:
number
,
)
:
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
limit
:
number
= 4
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
(
userId
:
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
userId
:
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
;
}
)
[]
,
>
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
,
userId
:
string
,
userRole
:
user_role
,
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
userId
:
string
userRole
:
user_role
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
,
userId
:
string
,
userRole
:
user_role
,
qcStatus
:
string
,
)
:
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
userId
:
string
userRole
:
user_role
qcStatus
:
string
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
,
userId
:
string
,
userRole
:
user_role
,
quantity
:
number
,
)
:
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
userId
:
string
userRole
:
user_role
quantity
:
number
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...