Clean up nonspecific imports in entities

This commit is contained in:
Rory&
2026-03-20 09:55:01 +01:00
parent 6438953a4b
commit 58abf8a45d
6 changed files with 28 additions and 5 deletions
+1
View File
@@ -21,3 +21,4 @@ export * from "./developers";
export * from "./guilds";
export * from "./messages";
export * from "./users";
export * from "./reports";
+20
View File
@@ -0,0 +1,20 @@
/*
Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
Copyright (C) 2026 Spacebar and Spacebar Contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
export * from "./CreateReport";
export * from "./ReportMenu";
+3 -2
View File
@@ -18,12 +18,13 @@
import { HTTPError } from "lambert-server";
import { BeforeInsert, BeforeUpdate, Column, Entity, Index, JoinColumn, JoinTable, ManyToMany, ManyToOne, Not, PrimaryGeneratedColumn, RelationId } from "typeorm";
import { Ban, Channel, PublicGuildRelations } from ".";
import { ReadyGuildDTO } from "../dtos";
import { GuildCreateEvent, GuildDeleteEvent, GuildMemberAddEvent, GuildMemberRemoveEvent, GuildMemberUpdateEvent, MessageCreateEvent } from "../interfaces";
import { Config, emitEvent, DiscordApiErrors } from "../util";
import { Ban } from "./Ban";
import { BaseClassWithoutId } from "./BaseClass";
import { Guild } from "./Guild";
import { Channel } from "./Channel";
import { Guild, PublicGuildRelations } from "./Guild";
import { Message } from "./Message";
import { Role } from "./Role";
import { User } from "./User";
+1 -1
View File
@@ -18,7 +18,7 @@
import { BaseClass } from "./BaseClass";
import { Entity, Column } from "typeorm";
import { ReportMenuType } from "../../schemas/api/reports/ReportMenu";
import { ReportMenuType } from "@spacebar/schemas";
@Entity({
name: "report_menus",
+1 -1
View File
@@ -17,7 +17,7 @@
*/
import { Column, Entity, JoinColumn, ManyToOne, OneToMany, RelationId } from "typeorm";
import { Sticker } from ".";
import { Sticker } from "./Sticker";
import { BaseClass } from "./BaseClass";
@Entity({
+2 -1
View File
@@ -18,9 +18,10 @@
import { Request } from "express";
import { Column, Entity, JoinColumn, OneToMany, OneToOne } from "typeorm";
import { Channel, Config, Email, FieldErrors, Snowflake, trimSpecial } from "..";
import { Config, Email, FieldErrors, Snowflake, trimSpecial } from "..";
import { Random } from "../util";
import { BaseClass } from "./BaseClass";
import { Channel } from "./Channel";
import { ConnectedAccount } from "./ConnectedAccount";
import { Member } from "./Member";
import { Relationship } from "./Relationship";