better-buddy-share-backend
Preparing search index...
dao/db/interfaces/IStreamStatsDAO
IStreamStatsDAO
Interface IStreamStatsDAO
interface
IStreamStatsDAO
{
countStatisticTypes
()
:
Promise
<
number
>
;
createStatisticType
(
name
:
string
,
description
:
string
|
null
,
)
:
Promise
<
StreamStatisticsType
|
null
>
;
deleteStatisticTypeById
(
stream_statistic_type_id
:
number
)
:
Promise
<
boolean
>
;
getAllStatisticTypes
()
:
Promise
<
StreamStatisticsType
[]
>
;
getStatisticTypeById
(
stream_statistic_type_id
:
number
,
)
:
Promise
<
StreamStatisticsType
|
null
>
;
getStatisticTypeByName
(
name
:
string
)
:
Promise
<
StreamStatisticsType
|
null
>
;
statisticTypeExistsById
(
stream_statistic_type_id
:
number
)
:
Promise
<
boolean
>
;
statisticTypeExistsByName
(
name
:
string
)
:
Promise
<
boolean
>
;
updateStatisticType
(
stream_statistic_type_id
:
number
,
name
:
string
,
description
:
string
|
null
,
)
:
Promise
<
StreamStatisticsType
|
null
>
;
}
Implemented by
StreamStatsTypesDAO
Index
Methods
count
Statistic
Types
create
Statistic
Type
delete
Statistic
Type
By
Id
get
All
Statistic
Types
get
Statistic
Type
By
Id
get
Statistic
Type
By
Name
statistic
Type
Exists
By
Id
statistic
Type
Exists
By
Name
update
Statistic
Type
Methods
count
Statistic
Types
countStatisticTypes
()
:
Promise
<
number
>
Returns
Promise
<
number
>
create
Statistic
Type
createStatisticType
(
name
:
string
,
description
:
string
|
null
,
)
:
Promise
<
StreamStatisticsType
|
null
>
Parameters
name
:
string
description
:
string
|
null
Returns
Promise
<
StreamStatisticsType
|
null
>
delete
Statistic
Type
By
Id
deleteStatisticTypeById
(
stream_statistic_type_id
:
number
)
:
Promise
<
boolean
>
Parameters
stream_statistic_type_id
:
number
Returns
Promise
<
boolean
>
get
All
Statistic
Types
getAllStatisticTypes
()
:
Promise
<
StreamStatisticsType
[]
>
Returns
Promise
<
StreamStatisticsType
[]
>
get
Statistic
Type
By
Id
getStatisticTypeById
(
stream_statistic_type_id
:
number
,
)
:
Promise
<
StreamStatisticsType
|
null
>
Parameters
stream_statistic_type_id
:
number
Returns
Promise
<
StreamStatisticsType
|
null
>
get
Statistic
Type
By
Name
getStatisticTypeByName
(
name
:
string
)
:
Promise
<
StreamStatisticsType
|
null
>
Parameters
name
:
string
Returns
Promise
<
StreamStatisticsType
|
null
>
statistic
Type
Exists
By
Id
statisticTypeExistsById
(
stream_statistic_type_id
:
number
)
:
Promise
<
boolean
>
Parameters
stream_statistic_type_id
:
number
Returns
Promise
<
boolean
>
statistic
Type
Exists
By
Name
statisticTypeExistsByName
(
name
:
string
)
:
Promise
<
boolean
>
Parameters
name
:
string
Returns
Promise
<
boolean
>
update
Statistic
Type
updateStatisticType
(
stream_statistic_type_id
:
number
,
name
:
string
,
description
:
string
|
null
,
)
:
Promise
<
StreamStatisticsType
|
null
>
Parameters
stream_statistic_type_id
:
number
name
:
string
description
:
string
|
null
Returns
Promise
<
StreamStatisticsType
|
null
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
count
Statistic
Types
create
Statistic
Type
delete
Statistic
Type
By
Id
get
All
Statistic
Types
get
Statistic
Type
By
Id
get
Statistic
Type
By
Name
statistic
Type
Exists
By
Id
statistic
Type
Exists
By
Name
update
Statistic
Type
better-buddy-share-backend
Loading...