urembo-hub-api
Preparing search index...
wishlist/wishlist.service
WishlistService
Class WishlistService
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
WishlistService
(
prisma
:
PrismaService
)
:
WishlistService
Parameters
prisma
:
PrismaService
Returns
WishlistService
Methods
add
To
Wishlist
addToWishlist
(
userId
:
string
,
createWishlistItemDto
:
CreateWishlistItemDto
,
)
:
Promise
<
{
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
;
}
,
>
Parameters
userId
:
string
createWishlistItemDto
:
CreateWishlistItemDto
Returns
Promise
<
{
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
;
}
,
>
clear
Wishlist
clearWishlist
(
userId
:
string
)
:
Promise
<
{
message
:
string
}
>
Parameters
userId
:
string
Returns
Promise
<
{
message
:
string
}
>
get
User
Wishlist
getUserWishlist
(
userId
:
string
,
)
:
Promise
<
{
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
;
}
[]
,
>
Parameters
userId
:
string
Returns
Promise
<
{
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
;
}
[]
,
>
get
Wishlist
By
Type
getWishlistByType
(
userId
:
string
,
itemType
:
"product"
|
"service"
,
)
:
Promise
<
{
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
;
}
[]
,
>
Parameters
userId
:
string
itemType
:
"product"
|
"service"
Returns
Promise
<
{
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
;
}
[]
,
>
get
Wishlist
Count
getWishlistCount
(
userId
:
string
)
:
Promise
<
number
>
Parameters
userId
:
string
Returns
Promise
<
number
>
get
Wishlist
Stats
getWishlistStats
(
userId
:
string
,
)
:
Promise
<
{
averageItemValue
:
number
;
productCount
:
number
;
serviceCount
:
number
;
totalItems
:
number
;
totalValue
:
number
;
}
,
>
Parameters
userId
:
string
Returns
Promise
<
{
averageItemValue
:
number
;
productCount
:
number
;
serviceCount
:
number
;
totalItems
:
number
;
totalValue
:
number
;
}
,
>
is
In
Wishlist
isInWishlist
(
userId
:
string
,
itemId
:
string
,
itemType
:
"product"
|
"service"
,
)
:
Promise
<
boolean
>
Parameters
userId
:
string
itemId
:
string
itemType
:
"product"
|
"service"
Returns
Promise
<
boolean
>
remove
From
Wishlist
removeFromWishlist
(
userId
:
string
,
wishlistItemId
:
string
,
)
:
Promise
<
{
message
:
string
}
>
Parameters
userId
:
string
wishlistItemId
:
string
Returns
Promise
<
{
message
:
string
}
>
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...