summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@protonmail.com>2023-12-23 17:31:31 -0500
committerPuyodead1 <puyodead@protonmail.com>2023-12-23 17:31:31 -0500
commitcf34ab167477a1fd86f017f2aee7ec1e849e8a05 (patch)
treeab156e94b03fea8b76996f64de323d1644a018aa /src/util
parentupdate pomelo experiment (diff)
downloadserver-ts-cf34ab167477a1fd86f017f2aee7ec1e849e8a05.tar.xz
rename unique uesrname response and schema
Diffstat (limited to 'src/util')
-rw-r--r--src/util/schemas/UniqueUsernameAttemptSchema.ts3
-rw-r--r--src/util/schemas/UsernameAttemptUnauthedSchema.ts3
-rw-r--r--src/util/schemas/index.ts2
-rw-r--r--src/util/schemas/responses/TypedResponses.ts3
-rw-r--r--src/util/schemas/responses/UniqueUsernameAttemptResponse.ts3
-rw-r--r--src/util/schemas/responses/UsernameAttemptResponse.ts3
6 files changed, 10 insertions, 7 deletions
diff --git a/src/util/schemas/UniqueUsernameAttemptSchema.ts b/src/util/schemas/UniqueUsernameAttemptSchema.ts
new file mode 100644

index 00000000..39ebb25f --- /dev/null +++ b/src/util/schemas/UniqueUsernameAttemptSchema.ts
@@ -0,0 +1,3 @@ +export interface UniqueUsernameAttemptSchema { + username: string; +} diff --git a/src/util/schemas/UsernameAttemptUnauthedSchema.ts b/src/util/schemas/UsernameAttemptUnauthedSchema.ts deleted file mode 100644
index 0ac83dd0..00000000 --- a/src/util/schemas/UsernameAttemptUnauthedSchema.ts +++ /dev/null
@@ -1,3 +0,0 @@ -export interface UsernameAttemptUnauthedSchema { - username: string; -} diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts
index bb449e45..f8fd5365 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts
@@ -66,13 +66,13 @@ export * from "./TemplateModifySchema"; export * from "./TotpDisableSchema"; export * from "./TotpEnableSchema"; export * from "./TotpSchema"; +export * from "./UniqueUsernameAttemptSchema"; export * from "./UserDeleteSchema"; export * from "./UserGuildSettingsSchema"; export * from "./UserModifySchema"; export * from "./UserNoteUpdateSchema"; export * from "./UserProfileModifySchema"; export * from "./UserSettingsSchema"; -export * from "./UsernameAttemptUnauthedSchema"; export * from "./Validator"; export * from "./VanityUrlSchema"; export * from "./VoiceIdentifySchema"; diff --git a/src/util/schemas/responses/TypedResponses.ts b/src/util/schemas/responses/TypedResponses.ts
index fa169c25..0f4f9c79 100644 --- a/src/util/schemas/responses/TypedResponses.ts +++ b/src/util/schemas/responses/TypedResponses.ts
@@ -60,6 +60,9 @@ export type APIDMChannelArray = DmChannelDTO[]; export type APIBackupCodeArray = BackupCode[]; +export type PrivateUserResponse = APIPrivateUser; +export type PublicUserResponse = APIPublicUser; + export interface UserUpdateResponse extends APIPrivateUser { newToken?: string; } diff --git a/src/util/schemas/responses/UniqueUsernameAttemptResponse.ts b/src/util/schemas/responses/UniqueUsernameAttemptResponse.ts new file mode 100644
index 00000000..b9804f9c --- /dev/null +++ b/src/util/schemas/responses/UniqueUsernameAttemptResponse.ts
@@ -0,0 +1,3 @@ +export interface UniqueUsernameAttemptResponse { + taken: boolean; +} diff --git a/src/util/schemas/responses/UsernameAttemptResponse.ts b/src/util/schemas/responses/UsernameAttemptResponse.ts deleted file mode 100644
index 864a3bb0..00000000 --- a/src/util/schemas/responses/UsernameAttemptResponse.ts +++ /dev/null
@@ -1,3 +0,0 @@ -export interface UsernameAttemptResponse { - taken: boolean; -}