2018-02-15 08:46:26 -05:00
|
|
|
import { isUserDescriptionValid, isUserUsernameValid } from './users'
|
2018-05-24 09:30:28 -04:00
|
|
|
import { exists } from './misc'
|
2017-11-10 08:48:08 -05:00
|
|
|
|
2017-11-14 11:31:26 -05:00
|
|
|
function isAccountNameValid (value: string) {
|
2017-11-10 08:48:08 -05:00
|
|
|
return isUserUsernameValid(value)
|
|
|
|
}
|
|
|
|
|
2018-05-24 09:30:28 -04:00
|
|
|
function isAccountIdValid (value: string) {
|
|
|
|
return exists(value)
|
|
|
|
}
|
|
|
|
|
2018-02-15 08:46:26 -05:00
|
|
|
function isAccountDescriptionValid (value: string) {
|
|
|
|
return isUserDescriptionValid(value)
|
|
|
|
}
|
|
|
|
|
2017-11-10 08:48:08 -05:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
export {
|
2018-05-24 09:30:28 -04:00
|
|
|
isAccountIdValid,
|
2018-02-15 08:46:26 -05:00
|
|
|
isAccountDescriptionValid,
|
2017-11-14 11:31:26 -05:00
|
|
|
isAccountNameValid
|
2017-11-10 08:48:08 -05:00
|
|
|
}
|