import * as _ from 'lodash'; import states from './states'; export namespace Constants { /** * Number of days to go back when fetching activity/events * to build notifications out of for the Activity Tab */ export const ACTIVITY_DAYS_THRESHOLD = 3; export const AUTH_HEADER_KEY = 'x-access-token'; export const PLAYER_GRAD_YEARS = [ 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025 ]; export const PLAYER_POSITIONS = [ 'pg', 'sg', 'sf', 'pf', 'c' ]; export const VALID_WEIGHTS_LB = _.range(80, 400, 5); export const VALID_HEIGHTS_IN = _.range(58, 88, 1); export const VALID_STATES = states; export const YOUTUBE_LINK_REGEX = /^(https?\:\/\/)?(www\.)?(youtube\.com|youtu\.?be)\/.+$/; export const PASSWORD_REGEX = /^.{6,24}$/; export const USER_NAME_REGEX = /^.{4,24}$/; export const MAX_COMMENT_CHARS = 250; export const MAX_PLAY_CAPTION_CHARS = 100; export const MAINSTREAM_STREAM_ID = 'mainstream'; }