signal-desktop/ts/state/ducks/usernameEnums.ts

48 lines
1 KiB
TypeScript
Raw Normal View History

2022-10-18 17:12:02 +00:00
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
// ProfileEditor
//
export enum UsernameEditState {
Editing = 'Editing',
ConfirmingDelete = 'ConfirmingDelete',
Deleting = 'Deleting',
}
2023-07-20 03:14:08 +00:00
//
// UsernameLinkModalBody
//
export enum UsernameLinkState {
Ready = 'Ready',
Updating = 'Updating',
Error = 'Error',
2023-07-20 03:14:08 +00:00
}
2022-10-18 17:12:02 +00:00
//
// EditUsernameModalBody
//
export enum UsernameReservationState {
Open = 'Open',
Reserving = 'Reserving',
Confirming = 'Confirming',
Closed = 'Closed',
}
export enum UsernameReservationError {
NotEnoughCharacters = 'NotEnoughCharacters',
TooManyCharacters = 'TooManyCharacters',
CheckStartingCharacter = 'CheckStartingCharacter',
CheckCharacters = 'CheckCharacters',
UsernameNotAvailable = 'UsernameNotAvailable',
General = 'General',
ConflictOrGone = 'ConflictOrGone',
NotEnoughDiscriminator = 'NotEnoughDiscriminator',
AllZeroDiscriminator = 'AllZeroDiscriminator',
LeadingZeroDiscriminator = 'LeadingZeroDiscriminator',
TooManyAttempts = 'TooManyAttempts',
2022-10-18 17:12:02 +00:00
}