2017-08-08 01:41:39 +05:30
|
|
|
import PropTypes from 'prop-types';
|
2016-02-13 20:58:47 +05:30
|
|
|
|
2017-01-12 11:42:56 +05:30
|
|
|
/**
|
|
|
|
* @typedef {object} User
|
|
|
|
* @property {number} id
|
|
|
|
* @property {string} uuid
|
|
|
|
* @property {string} token
|
|
|
|
* @property {string} username
|
|
|
|
* @property {string} email
|
|
|
|
* @property {string} avatar
|
|
|
|
* @property {bool} isGuest
|
|
|
|
* @property {bool} isActive
|
|
|
|
* @property {number} passwordChangedAt - timestamp
|
|
|
|
* @property {bool} hasMojangUsernameCollision
|
|
|
|
*/
|
2016-02-13 20:58:47 +05:30
|
|
|
export const userShape = PropTypes.shape({
|
2019-11-27 14:33:32 +05:30
|
|
|
id: PropTypes.number,
|
|
|
|
uuid: PropTypes.string,
|
|
|
|
token: PropTypes.string,
|
|
|
|
username: PropTypes.string,
|
|
|
|
email: PropTypes.string,
|
|
|
|
avatar: PropTypes.string,
|
|
|
|
isGuest: PropTypes.bool.isRequired,
|
|
|
|
isActive: PropTypes.bool.isRequired,
|
|
|
|
passwordChangedAt: PropTypes.number,
|
|
|
|
hasMojangUsernameCollision: PropTypes.bool,
|
2016-02-13 20:58:47 +05:30
|
|
|
});
|