urembo-hub-api
Preparing search index...
services/services.service
ServicesService
Class ServicesService
Index
Constructors
constructor
Methods
create
Service
create
Staff
delete
Service
delete
Staff
get
All
Services
get
All
Staff
get
Service
By
Id
get
Services
By
Category
get
Services
By
Category
Id
get
Services
By
Delivery
Method
get
Services
By
Duration
get
Services
By
Price
Range
get
Services
By
Tags
get
Staff
By
Id
get
Staff
By
Specialties
get
Staff
By
Vendor
Id
get
User
Services
search
Services
search
Staff
update
Service
update
Staff
Constructors
constructor
new
ServicesService
(
prisma
:
PrismaService
)
:
ServicesService
Parameters
prisma
:
PrismaService
Returns
ServicesService
Methods
create
Service
createService
(
userId
:
string
,
userRole
:
user_role
,
createServiceDto
:
CreateServiceDto
,
)
:
Promise
<
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
Parameters
userId
:
string
userRole
:
user_role
createServiceDto
:
CreateServiceDto
Returns
Promise
<
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
create
Staff
createStaff
(
userId
:
string
,
userRole
:
user_role
,
createStaffDto
:
CreateStaffDto
,
)
:
Promise
<
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
Parameters
userId
:
string
userRole
:
user_role
createStaffDto
:
CreateStaffDto
Returns
Promise
<
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
delete
Service
deleteService
(
id
:
string
,
userId
:
string
,
userRole
:
user_role
,
)
:
Promise
<
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
Parameters
id
:
string
userId
:
string
userRole
:
user_role
Returns
Promise
<
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
delete
Staff
deleteStaff
(
id
:
string
,
userId
:
string
,
userRole
:
user_role
,
)
:
Promise
<
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
Parameters
id
:
string
userId
:
string
userRole
:
user_role
Returns
Promise
<
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
get
All
Services
getAllServices
(
category
?:
string
,
isActive
?:
boolean
,
)
:
Promise
<
(
{
serviceCategory
:
{
description
:
string
;
id
:
string
;
name
:
string
}
;
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
Optional
category
:
string
isActive
:
boolean
= true
Returns
Promise
<
(
{
serviceCategory
:
{
description
:
string
;
id
:
string
;
name
:
string
}
;
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
get
All
Staff
getAllStaff
(
vendorId
?:
string
,
isActive
?:
boolean
,
)
:
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
Optional
vendorId
:
string
isActive
:
boolean
= true
Returns
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
get
Service
By
Id
getServiceById
(
id
:
string
,
)
:
Promise
<
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
Parameters
id
:
string
Returns
Promise
<
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
get
Services
By
Category
getServicesByCategory
(
category
:
string
,
)
:
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
category
:
string
Returns
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
get
Services
By
Category
Id
getServicesByCategoryId
(
categoryId
:
string
,
)
:
Promise
<
(
{
serviceCategory
:
{
description
:
string
;
id
:
string
;
name
:
string
}
;
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
categoryId
:
string
Returns
Promise
<
(
{
serviceCategory
:
{
description
:
string
;
id
:
string
;
name
:
string
}
;
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
get
Services
By
Delivery
Method
getServicesByDeliveryMethod
(
deliveryMethod
:
string
,
)
:
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
deliveryMethod
:
string
Returns
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
get
Services
By
Duration
getServicesByDuration
(
maxDurationMinutes
:
number
,
)
:
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
maxDurationMinutes
:
number
Returns
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
get
Services
By
Price
Range
getServicesByPriceRange
(
minPrice
:
number
,
maxPrice
:
number
,
)
:
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
minPrice
:
number
maxPrice
:
number
Returns
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
get
Services
By
Tags
getServicesByTags
(
tags
:
string
[]
,
)
:
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
tags
:
string
[]
Returns
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
get
Staff
By
Id
getStaffById
(
id
:
string
,
)
:
Promise
<
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
Parameters
id
:
string
Returns
Promise
<
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
get
Staff
By
Specialties
getStaffBySpecialties
(
specialties
:
string
[]
,
vendorId
?:
string
,
)
:
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
specialties
:
string
[]
Optional
vendorId
:
string
Returns
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
get
Staff
By
Vendor
Id
getStaffByVendorId
(
vendorId
:
string
,
isActive
?:
boolean
,
)
:
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
vendorId
:
string
isActive
:
boolean
= true
Returns
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
get
User
Services
getUserServices
(
userId
:
string
,
)
:
Promise
<
(
{
serviceCategory
:
{
description
:
string
;
id
:
string
;
name
:
string
}
;
serviceSubcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
userId
:
string
Returns
Promise
<
(
{
serviceCategory
:
{
description
:
string
;
id
:
string
;
name
:
string
}
;
serviceSubcategory
:
{
description
:
string
;
id
:
string
;
name
:
string
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
search
Services
searchServices
(
query
:
string
,
)
:
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
query
:
string
Returns
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
search
Staff
searchStaff
(
query
:
string
,
vendorId
?:
string
,
)
:
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
Parameters
query
:
string
Optional
vendorId
:
string
Returns
Promise
<
(
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
)
[]
,
>
update
Service
updateService
(
id
:
string
,
userId
:
string
,
userRole
:
user_role
,
updateServiceDto
:
UpdateServiceDto
,
)
:
Promise
<
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
Parameters
id
:
string
userId
:
string
userRole
:
user_role
updateServiceDto
:
UpdateServiceDto
Returns
Promise
<
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
actualServiceId
:
string
;
category
:
string
;
categoryId
:
string
;
createdAt
:
Date
;
currency
:
string
;
deliveryMethod
:
string
;
description
:
string
;
durationMinutes
:
number
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
metadata
:
JsonValue
;
name
:
string
;
price
:
Decimal
;
subcategoryId
:
string
;
tags
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
update
Staff
updateStaff
(
id
:
string
,
userId
:
string
,
userRole
:
user_role
,
updateStaffDto
:
UpdateStaffDto
,
)
:
Promise
<
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
Parameters
id
:
string
userId
:
string
userRole
:
user_role
updateStaffDto
:
UpdateStaffDto
Returns
Promise
<
{
vendor
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
}
;
}
&
{
bio
:
string
;
createdAt
:
Date
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
specialties
:
string
[]
;
updatedAt
:
Date
;
vendorId
:
string
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
create
Service
create
Staff
delete
Service
delete
Staff
get
All
Services
get
All
Staff
get
Service
By
Id
get
Services
By
Category
get
Services
By
Category
Id
get
Services
By
Delivery
Method
get
Services
By
Duration
get
Services
By
Price
Range
get
Services
By
Tags
get
Staff
By
Id
get
Staff
By
Specialties
get
Staff
By
Vendor
Id
get
User
Services
search
Services
search
Staff
update
Service
update
Staff
urembo-hub-api
Loading...