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',
|
2023-11-03 22:05:11 +00:00
|
|
|
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',
|
2023-02-14 17:39:47 +00:00
|
|
|
ConflictOrGone = 'ConflictOrGone',
|
2024-01-18 19:53:24 +00:00
|
|
|
NotEnoughDiscriminator = 'NotEnoughDiscriminator',
|
|
|
|
AllZeroDiscriminator = 'AllZeroDiscriminator',
|
|
|
|
LeadingZeroDiscriminator = 'LeadingZeroDiscriminator',
|
2024-02-21 19:00:29 +00:00
|
|
|
TooManyAttempts = 'TooManyAttempts',
|
2022-10-18 17:12:02 +00:00
|
|
|
}
|