mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 02:13:00 +00:00
clusterfuck
This commit is contained in:
53 files changed
+113
-123
No files matched your search
@@ -16,10 +16,10 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { PublicConnectedAccount, PublicUserResponse } from "..";
|
||||
import { PublicConnectedAccount, PublicUser } from "..";
|
||||
|
||||
export interface UserProfileResponse {
|
||||
user: PublicUserResponse;
|
||||
user: PublicUser;
|
||||
connected_accounts: PublicConnectedAccount;
|
||||
premium_guild_since?: Date;
|
||||
premium_since?: Date;
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export type ApplicationDetectableResponse = unknown[];
|
||||
@@ -1 +0,0 @@
|
||||
export type ApplicationEntitlementsResponse = unknown[];
|
||||
@@ -1 +0,0 @@
|
||||
export type ApplicationSkusResponse = unknown[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Application } from "../../entities";
|
||||
|
||||
export type ApplicationsResponse = Application[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Invite } from "../../entities";
|
||||
|
||||
export type ChannelInvitesResponse = Invite[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Message } from "../../entities";
|
||||
|
||||
export type ChannelMessagesResponse = Message[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Message } from "../../entities";
|
||||
|
||||
export type ChannelPinsResponse = Message[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Webhook } from "../../entities";
|
||||
|
||||
export type ChannelWebhooksResponse = Webhook[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Categories } from "../../entities";
|
||||
|
||||
export type DiscoveryCategoriesResponse = Categories[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { GeneralConfiguration } from "../../config";
|
||||
|
||||
export type GeneralConfigurationResponse = GeneralConfiguration;
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Channel } from "../../entities";
|
||||
|
||||
export type GuildChannelsResponse = Channel[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Emoji } from "../../entities";
|
||||
|
||||
export type GuildEmojisResponse = Emoji[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Invite } from "../../entities";
|
||||
|
||||
export type GuildInvitesResponse = Invite[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Member } from "../../entities";
|
||||
|
||||
export type GuildMembersResponse = Member[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Guild } from "../../entities";
|
||||
|
||||
export type GuildResponse = Guild & { joined_at: string };
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Role } from "../../entities";
|
||||
|
||||
export type GuildRolesResponse = Role[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Sticker } from "../../entities";
|
||||
|
||||
export type GuildStickersResponse = Sticker[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { Template } from "../../entities";
|
||||
|
||||
export type GuildTemplatesResponse = Template[];
|
||||
@@ -5,5 +5,3 @@ export interface GuildVoiceRegion {
|
||||
deprecated: boolean;
|
||||
optimal: boolean;
|
||||
}
|
||||
|
||||
export type GuildVoiceRegionsResponse = GuildVoiceRegion[];
|
||||
@@ -1,3 +0,0 @@
|
||||
import { LimitsConfiguration } from "../../config";
|
||||
|
||||
export type LimitsConfigurationResponse = LimitsConfiguration;
|
||||
@@ -1,3 +0,0 @@
|
||||
import { StickerPack } from "../../entities";
|
||||
|
||||
export type StickerPacksResponse = StickerPack[];
|
||||
@@ -0,0 +1,84 @@
|
||||
import { GeneralConfiguration, LimitsConfiguration } from "../../config";
|
||||
import { DmChannelDTO } from "../../dtos";
|
||||
import {
|
||||
Application,
|
||||
BackupCode,
|
||||
Categories,
|
||||
Channel,
|
||||
Emoji,
|
||||
Guild,
|
||||
Invite,
|
||||
Member,
|
||||
Message,
|
||||
PrivateUser,
|
||||
PublicUser,
|
||||
Role,
|
||||
Sticker,
|
||||
StickerPack,
|
||||
Template,
|
||||
Webhook,
|
||||
} from "../../entities";
|
||||
import { GuildVoiceRegion } from "./GuildVoiceRegionsResponse";
|
||||
|
||||
// removes internal properties from the guild class
|
||||
export type APIGuild = Omit<
|
||||
Guild,
|
||||
| "afk_channel"
|
||||
| "template"
|
||||
| "owner"
|
||||
| "public_updates_channel"
|
||||
| "rules_channel"
|
||||
| "system_channel"
|
||||
| "widget_channel"
|
||||
>;
|
||||
|
||||
export type APIPublicUser = PublicUser;
|
||||
export type APIPrivateUser = PrivateUser;
|
||||
|
||||
export type APIGuildArray = APIGuild[];
|
||||
|
||||
export type APIDMChannelArray = DmChannelDTO[];
|
||||
|
||||
export type APIBackupCodeArray = BackupCode[];
|
||||
|
||||
export interface UserUpdateResponse extends APIPrivateUser {
|
||||
newToken?: string;
|
||||
}
|
||||
|
||||
export type ApplicationDetectableResponse = unknown[];
|
||||
|
||||
export type ApplicationEntitlementsResponse = unknown[];
|
||||
|
||||
export type ApplicationSkusResponse = unknown[];
|
||||
|
||||
export type APIApplicationArray = Application[];
|
||||
|
||||
export type APIInviteArray = Invite[];
|
||||
|
||||
export type APIMessageArray = Message[];
|
||||
|
||||
export type APIWebhookArray = Webhook[];
|
||||
|
||||
export type APIDiscoveryCategoryArray = Categories[];
|
||||
|
||||
export type APIGeneralConfiguration = GeneralConfiguration;
|
||||
|
||||
export type APIChannelArray = Channel[];
|
||||
|
||||
export type APIEmojiArray = Emoji[];
|
||||
|
||||
export type APIMemberArray = Member[];
|
||||
|
||||
export type GuildWithJoinedAt = Guild & { joined_at: string };
|
||||
|
||||
export type APIRoleArray = Role[];
|
||||
|
||||
export type APIStickerArray = Sticker[];
|
||||
|
||||
export type APITemplateArray = Template[];
|
||||
|
||||
export type APIGuildVoiceRegion = GuildVoiceRegion[];
|
||||
|
||||
export type APILimitsConfiguration = LimitsConfiguration;
|
||||
|
||||
export type APIStickerPackArray = StickerPack[];
|
||||
@@ -1,15 +0,0 @@
|
||||
import { DmChannelDTO } from "../../dtos";
|
||||
import { BackupCode, Guild, PrivateUser, PublicUser } from "../../entities";
|
||||
|
||||
export type PublicUserResponse = PublicUser;
|
||||
export type PrivateUserResponse = PrivateUser;
|
||||
|
||||
export interface UserUpdateResponse extends PrivateUserResponse {
|
||||
newToken?: string;
|
||||
}
|
||||
|
||||
export type UserGuildsResponse = Guild[];
|
||||
|
||||
export type UserChannelsResponse = DmChannelDTO[];
|
||||
|
||||
export type UserBackupCodesResponse = BackupCode[];
|
||||
@@ -1,34 +1,17 @@
|
||||
export * from "./APIErrorOrCaptchaResponse";
|
||||
export * from "./APIErrorResponse";
|
||||
export * from "./ApplicationDetectableResponse";
|
||||
export * from "./ApplicationEntitlementsResponse";
|
||||
export * from "./ApplicationSkusResponse";
|
||||
export * from "./ApplicationsResponse";
|
||||
export * from "./BackupCodesChallengeResponse";
|
||||
export * from "./CaptchaRequiredResponse";
|
||||
export * from "./ChannelInvitesResponse";
|
||||
export * from "./ChannelPinsResponse";
|
||||
export * from "./ChannelWebhooksResponse";
|
||||
export * from "./DiscoverableGuildsResponse";
|
||||
export * from "./DiscoveryCategoriesResponse";
|
||||
export * from "./GatewayBotResponse";
|
||||
export * from "./GatewayResponse";
|
||||
export * from "./GeneralConfigurationResponse";
|
||||
export * from "./GenerateRegistrationTokensResponse";
|
||||
export * from "./GuildBansResponse";
|
||||
export * from "./GuildChannelsResponse";
|
||||
export * from "./GuildCreateResponse";
|
||||
export * from "./GuildDiscoveryRequirements";
|
||||
export * from "./GuildEmojisResponse";
|
||||
export * from "./GuildInvitesResponse";
|
||||
export * from "./GuildMembersResponse";
|
||||
export * from "./GuildMessagesSearchResponse";
|
||||
export * from "./GuildPruneResponse";
|
||||
export * from "./GuildRecommendationsResponse";
|
||||
export * from "./GuildResponse";
|
||||
export * from "./GuildRolesResponse";
|
||||
export * from "./GuildStickersResponse";
|
||||
export * from "./GuildTemplatesResponse";
|
||||
export * from "./GuildVanityUrl";
|
||||
export * from "./GuildVoiceRegionsResponse";
|
||||
export * from "./GuildWidgetJsonResponse";
|
||||
@@ -36,18 +19,16 @@ export * from "./GuildWidgetSettingsResponse";
|
||||
export * from "./InstanceDomainsResponse";
|
||||
export * from "./InstancePingResponse";
|
||||
export * from "./InstanceStatsResponse";
|
||||
export * from "./LimitsConfigurationResponse";
|
||||
export * from "./LocationMetadataResponse";
|
||||
export * from "./MemberJoinGuildResponse";
|
||||
export * from "./OAuthAuthorizeResponse";
|
||||
export * from "./StickerPacksResponse";
|
||||
export * from "./Tenor";
|
||||
export * from "./TokenResponse";
|
||||
export * from "./TypedResponses";
|
||||
export * from "./UpdatesResponse";
|
||||
export * from "./UserNoteResponse";
|
||||
export * from "./UserProfileResponse";
|
||||
export * from "./UserRelationshipsResponse";
|
||||
export * from "./UserRelationsResponse";
|
||||
export * from "./UserResponse";
|
||||
export * from "./WebAuthnCreateResponse";
|
||||
export * from "./WebhookCreateResponse";
|
||||
Reference in new issue
Block a user