urembo-hub-api
Preparing search index...
wishlist/wishlist.controller
WishlistController
Class WishlistController
Index
Constructors
constructor
Methods
add
To
Wishlist
clear
Wishlist
get
User
Wishlist
get
Wishlist
By
Type
get
Wishlist
Count
get
Wishlist
Stats
is
In
Wishlist
remove
From
Wishlist
Constructors
constructor
new
WishlistController
(
wishlistService
:
WishlistService
)
:
WishlistController
Parameters
wishlistService
:
WishlistService
Returns
WishlistController
Methods
add
To
Wishlist
addToWishlist
(
req
:
any
,
createWishlistItemDto
:
CreateWishlistItemDto
,
)
:
Promise
<
{
data
:
{
createdAt
:
Date
;
id
:
string
;
itemId
:
string
;
itemType
:
string
;
product
:
{
currency
:
string
;
id
:
string
;
imageUrl
:
string
;
name
:
string
;
price
:
Decimal
;
retailer
:
{
businessName
:
string
;
fullName
:
string
;
id
:
string
}
;
retailerId
:
string
;
stockQuantity
:
number
;
}
;
service
:
{
currency
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
name
:
string
;
price
:
Decimal
;
vendor
:
{
businessName
:
string
;
fullName
:
string
;
id
:
string
}
;
vendorId
:
string
;
}
;
updatedAt
:
Date
;
userId
:
string
;
}
;
message
:
string
;
success
:
boolean
;
}
,
>
Parameters
req
:
any
createWishlistItemDto
:
CreateWishlistItemDto
Returns
Promise
<
{
data
:
{
createdAt
:
Date
;
id
:
string
;
itemId
:
string
;
itemType
:
string
;
product
:
{
currency
:
string
;
id
:
string
;
imageUrl
:
string
;
name
:
string
;
price
:
Decimal
;
retailer
:
{
businessName
:
string
;
fullName
:
string
;
id
:
string
}
;
retailerId
:
string
;
stockQuantity
:
number
;
}
;
service
:
{
currency
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
name
:
string
;
price
:
Decimal
;
vendor
:
{
businessName
:
string
;
fullName
:
string
;
id
:
string
}
;
vendorId
:
string
;
}
;
updatedAt
:
Date
;
userId
:
string
;
}
;
message
:
string
;
success
:
boolean
;
}
,
>
clear
Wishlist
clearWishlist
(
req
:
any
,
)
:
Promise
<
{
data
:
{
message
:
string
}
;
message
:
string
;
success
:
boolean
}
>
Parameters
req
:
any
Returns
Promise
<
{
data
:
{
message
:
string
}
;
message
:
string
;
success
:
boolean
}
>
get
User
Wishlist
getUserWishlist
(
req
:
any
,
)
:
Promise
<
{
data
:
{
createdAt
:
Date
;
id
:
string
;
itemId
:
string
;
itemType
:
string
;
product
:
{
currency
:
string
;
id
:
string
;
imageUrl
:
string
;
name
:
string
;
price
:
Decimal
;
retailer
:
{
businessName
:
string
;
fullName
:
string
;
id
:
string
}
;
retailerId
:
string
;
stockQuantity
:
number
;
}
;
service
:
{
currency
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
name
:
string
;
price
:
Decimal
;
vendor
:
{
businessName
:
string
;
fullName
:
string
;
id
:
string
}
;
vendorId
:
string
;
}
;
updatedAt
:
Date
;
userId
:
string
;
}
[]
;
message
:
string
;
success
:
boolean
;
}
,
>
Parameters
req
:
any
Returns
Promise
<
{
data
:
{
createdAt
:
Date
;
id
:
string
;
itemId
:
string
;
itemType
:
string
;
product
:
{
currency
:
string
;
id
:
string
;
imageUrl
:
string
;
name
:
string
;
price
:
Decimal
;
retailer
:
{
businessName
:
string
;
fullName
:
string
;
id
:
string
}
;
retailerId
:
string
;
stockQuantity
:
number
;
}
;
service
:
{
currency
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
name
:
string
;
price
:
Decimal
;
vendor
:
{
businessName
:
string
;
fullName
:
string
;
id
:
string
}
;
vendorId
:
string
;
}
;
updatedAt
:
Date
;
userId
:
string
;
}
[]
;
message
:
string
;
success
:
boolean
;
}
,
>
get
Wishlist
By
Type
getWishlistByType
(
req
:
any
,
itemType
:
"product"
|
"service"
,
)
:
Promise
<
{
data
:
{
createdAt
:
Date
;
id
:
string
;
itemId
:
string
;
itemType
:
string
;
product
:
{
currency
:
string
;
id
:
string
;
imageUrl
:
string
;
name
:
string
;
price
:
Decimal
;
retailer
:
{
businessName
:
string
;
fullName
:
string
;
id
:
string
}
;
retailerId
:
string
;
stockQuantity
:
number
;
}
;
service
:
{
currency
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
name
:
string
;
price
:
Decimal
;
vendor
:
{
businessName
:
string
;
fullName
:
string
;
id
:
string
}
;
vendorId
:
string
;
}
;
updatedAt
:
Date
;
userId
:
string
;
}
[]
;
message
:
string
;
success
:
boolean
;
}
,
>
Parameters
req
:
any
itemType
:
"product"
|
"service"
Returns
Promise
<
{
data
:
{
createdAt
:
Date
;
id
:
string
;
itemId
:
string
;
itemType
:
string
;
product
:
{
currency
:
string
;
id
:
string
;
imageUrl
:
string
;
name
:
string
;
price
:
Decimal
;
retailer
:
{
businessName
:
string
;
fullName
:
string
;
id
:
string
}
;
retailerId
:
string
;
stockQuantity
:
number
;
}
;
service
:
{
currency
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
name
:
string
;
price
:
Decimal
;
vendor
:
{
businessName
:
string
;
fullName
:
string
;
id
:
string
}
;
vendorId
:
string
;
}
;
updatedAt
:
Date
;
userId
:
string
;
}
[]
;
message
:
string
;
success
:
boolean
;
}
,
>
get
Wishlist
Count
getWishlistCount
(
req
:
any
,
)
:
Promise
<
{
data
:
number
;
message
:
string
;
success
:
boolean
}
>
Parameters
req
:
any
Returns
Promise
<
{
data
:
number
;
message
:
string
;
success
:
boolean
}
>
get
Wishlist
Stats
getWishlistStats
(
req
:
any
,
)
:
Promise
<
{
data
:
{
averageItemValue
:
number
;
productCount
:
number
;
serviceCount
:
number
;
totalItems
:
number
;
totalValue
:
number
;
}
;
message
:
string
;
success
:
boolean
;
}
,
>
Parameters
req
:
any
Returns
Promise
<
{
data
:
{
averageItemValue
:
number
;
productCount
:
number
;
serviceCount
:
number
;
totalItems
:
number
;
totalValue
:
number
;
}
;
message
:
string
;
success
:
boolean
;
}
,
>
is
In
Wishlist
isInWishlist
(
req
:
any
,
itemId
:
string
,
itemType
:
"product"
|
"service"
,
)
:
Promise
<
{
data
:
boolean
;
message
:
string
;
success
:
boolean
}
>
Parameters
req
:
any
itemId
:
string
itemType
:
"product"
|
"service"
Returns
Promise
<
{
data
:
boolean
;
message
:
string
;
success
:
boolean
}
>
remove
From
Wishlist
removeFromWishlist
(
req
:
any
,
wishlistItemId
:
string
,
)
:
Promise
<
{
data
:
{
message
:
string
}
;
message
:
string
;
success
:
boolean
}
>
Parameters
req
:
any
wishlistItemId
:
string
Returns
Promise
<
{
data
:
{
message
:
string
}
;
message
:
string
;
success
:
boolean
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
To
Wishlist
clear
Wishlist
get
User
Wishlist
get
Wishlist
By
Type
get
Wishlist
Count
get
Wishlist
Stats
is
In
Wishlist
remove
From
Wishlist
urembo-hub-api
Loading...