mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
* Improve messages error handling * Add types to getPlayerFromIdentifier function * Add phone validation regex to message group form * Add correct alert types to enum * Improve locale * Improve error message for unregistered numbers
16 lines
510 B
TypeScript
16 lines
510 B
TypeScript
export const PHONE_NUMBER_REGEX = /^([0-9]{3}-[0-9]{4})|([0-9]{7})$/;
|
|
|
|
export enum PhoneEvents {
|
|
PLAYER_IS_READY = 'npwd:playerIsReady',
|
|
OPEN_APP_CONTACTS = 'npwd:app:CONTACTS',
|
|
OPEN_APP_BANK = 'npwd:app:BANK',
|
|
OPEN_APP_NOTES = 'npwd:app:NOTES',
|
|
OPEN_APP_LISTINGS = 'npwd:app:SELLOUT',
|
|
OPEN_APP_CAMERA = 'npwd:app:CAMERA',
|
|
OPEN_APP_DAILER = 'npwd:app:DIALER',
|
|
OPEN_PHONE = 'npwd:open',
|
|
CLOSE_PHONE = 'npwd:close',
|
|
SET_ALERT = 'npwd:setAlert',
|
|
SET_NOTIFICATION = 'npwd:setNotification',
|
|
}
|