From cf34ab167477a1fd86f017f2aee7ec1e849e8a05 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 23 Dec 2023 17:31:31 -0500 Subject: rename unique uesrname response and schema --- src/util/schemas/UniqueUsernameAttemptSchema.ts | 3 +++ src/util/schemas/UsernameAttemptUnauthedSchema.ts | 3 --- src/util/schemas/index.ts | 2 +- src/util/schemas/responses/TypedResponses.ts | 3 +++ src/util/schemas/responses/UniqueUsernameAttemptResponse.ts | 3 +++ src/util/schemas/responses/UsernameAttemptResponse.ts | 3 --- 6 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 src/util/schemas/UniqueUsernameAttemptSchema.ts delete mode 100644 src/util/schemas/UsernameAttemptUnauthedSchema.ts create mode 100644 src/util/schemas/responses/UniqueUsernameAttemptResponse.ts delete mode 100644 src/util/schemas/responses/UsernameAttemptResponse.ts (limited to 'src/util') 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; -} -- cgit 1.5.1