urembo-hub-api
Preparing search index...
service-categories/service-categories.controller
ServiceCategoriesController
Class ServiceCategoriesController
Index
Constructors
constructor
Methods
create
Service
Category
delete
Service
Category
get
Active
Service
Categories
get
All
Service
Categories
get
Child
Categories
get
Root
Categories
get
Service
Categories
By
Level
get
Service
Category
By
Id
get
Service
Category
Stats
update
Service
Category
Constructors
constructor
new
ServiceCategoriesController
(
serviceCategoriesService
:
ServiceCategoriesService
,
)
:
ServiceCategoriesController
Parameters
serviceCategoriesService
:
ServiceCategoriesService
Returns
ServiceCategoriesController
Methods
create
Service
Category
createServiceCategory
(
createServiceCategoryDto
:
CreateServiceCategoryDto
,
)
:
Promise
<
{
children
:
{
id
:
string
;
level
:
number
;
name
:
string
;
position
:
number
;
slug
:
string
;
}
[]
;
parent
:
{
id
:
string
;
name
:
string
;
slug
:
string
}
;
}
&
{
createdAt
:
Date
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
level
:
number
;
name
:
string
;
parentId
:
string
;
position
:
number
;
slug
:
string
;
updatedAt
:
Date
;
}
,
>
Parameters
createServiceCategoryDto
:
CreateServiceCategoryDto
Returns
Promise
<
{
children
:
{
id
:
string
;
level
:
number
;
name
:
string
;
position
:
number
;
slug
:
string
;
}
[]
;
parent
:
{
id
:
string
;
name
:
string
;
slug
:
string
}
;
}
&
{
createdAt
:
Date
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
level
:
number
;
name
:
string
;
parentId
:
string
;
position
:
number
;
slug
:
string
;
updatedAt
:
Date
;
}
,
>
delete
Service
Category
deleteServiceCategory
(
id
:
string
,
)
:
Promise
<
{
createdAt
:
Date
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
level
:
number
;
name
:
string
;
parentId
:
string
;
position
:
number
;
slug
:
string
;
updatedAt
:
Date
;
}
,
>
Parameters
id
:
string
Returns
Promise
<
{
createdAt
:
Date
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
level
:
number
;
name
:
string
;
parentId
:
string
;
position
:
number
;
slug
:
string
;
updatedAt
:
Date
;
}
,
>
get
Active
Service
Categories
getActiveServiceCategories
()
:
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
All
Service
Categories
getAllServiceCategories
()
:
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
Child
Categories
getChildCategories
(
parentId
:
string
,
)
:
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
;
}
[]
,
>
Parameters
parentId
:
string
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
Root
Categories
getRootCategories
()
:
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
Service
Categories
By
Level
getServiceCategoriesByLevel
(
level
:
string
,
)
:
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
;
}
[]
,
>
Parameters
level
:
string
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
Service
Category
By
Id
getServiceCategoryById
(
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
;
services
:
{
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
;
services
:
{
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
name
:
string
;
price
:
Decimal
;
}
[]
;
slug
:
string
;
updatedAt
:
Date
;
}
,
>
get
Service
Category
Stats
getServiceCategoryStats
()
:
Promise
<
{
active
:
number
;
inactive
:
number
;
level1
:
number
;
level2
:
number
;
level3
:
number
;
total
:
number
;
}
,
>
Returns
Promise
<
{
active
:
number
;
inactive
:
number
;
level1
:
number
;
level2
:
number
;
level3
:
number
;
total
:
number
;
}
,
>
update
Service
Category
updateServiceCategory
(
id
:
string
,
updateServiceCategoryDto
:
UpdateServiceCategoryDto
,
)
:
Promise
<
{
children
:
{
id
:
string
;
level
:
number
;
name
:
string
;
position
:
number
;
slug
:
string
;
}
[]
;
parent
:
{
id
:
string
;
name
:
string
;
slug
:
string
}
;
}
&
{
createdAt
:
Date
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
level
:
number
;
name
:
string
;
parentId
:
string
;
position
:
number
;
slug
:
string
;
updatedAt
:
Date
;
}
,
>
Parameters
id
:
string
updateServiceCategoryDto
:
UpdateServiceCategoryDto
Returns
Promise
<
{
children
:
{
id
:
string
;
level
:
number
;
name
:
string
;
position
:
number
;
slug
:
string
;
}
[]
;
parent
:
{
id
:
string
;
name
:
string
;
slug
:
string
}
;
}
&
{
createdAt
:
Date
;
description
:
string
;
id
:
string
;
imageUrl
:
string
;
isActive
:
boolean
;
level
:
number
;
name
:
string
;
parentId
:
string
;
position
:
number
;
slug
:
string
;
updatedAt
:
Date
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
create
Service
Category
delete
Service
Category
get
Active
Service
Categories
get
All
Service
Categories
get
Child
Categories
get
Root
Categories
get
Service
Categories
By
Level
get
Service
Category
By
Id
get
Service
Category
Stats
update
Service
Category
urembo-hub-api
Loading...