Use subpath imports for lambert-server, fix openapi.js

This commit is contained in:
Rory&
2026-06-12 17:58:18 +02:00
parent d84b8707ee
commit 2c1be0fa53
85 changed files with 83 additions and 83 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { HTTPError } from "lambert-server";
import { HTTPError } from "lambert-server/HTTPError";
import { Column, Entity, JoinColumn, ManyToOne, OneToMany, RelationId } from "typeorm";
import { DmChannelDTO } from "../dtos";
import { ChannelCreateEvent, ChannelRecipientRemoveEvent, ThreadCreateEvent, ThreadMembersUpdateEvent } from "../interfaces";
+1 -1
View File
@@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { HTTPError } from "lambert-server";
import { HTTPError } from "lambert-server/HTTPError";
import { BeforeInsert, BeforeUpdate, Column, Entity, Index, JoinColumn, JoinTable, ManyToMany, ManyToOne, Not, PrimaryGeneratedColumn, RelationId } from "typeorm";
import { Ban, Channel, PublicGuildRelations } from ".";
import { ReadyGuildDTO } from "../dtos";
+1 -1
View File
@@ -21,7 +21,7 @@ import { ThreadMembersUpdateEvent } from "../interfaces";
import { emitEvent } from "../util";
import { BaseClassWithoutId } from "./BaseClass";
import { Channel } from "./Channel";
import { HTTPError } from "lambert-server";
import { HTTPError } from "lambert-server/HTTPError";
import { Member } from "./Member";
// TODO: move
+1 -1
View File
@@ -1,4 +1,4 @@
import { HTTPError } from "lambert-server";
import { HTTPError } from "lambert-server/HTTPError";
import { Config } from "./Config";
import { TenorGif } from "@spacebar/schemas";
+1 -1
View File
@@ -18,7 +18,7 @@
import { Config } from "./Config";
import { FieldErrors } from "./FieldError";
import { HTTPError } from "lambert-server";
import { HTTPError } from "lambert-server/HTTPError";
export function ValidateName(name: string) {
const check_username = name.replace(/\s/g, "");
+1 -1
View File
@@ -4,7 +4,7 @@
import { Channel, Guild, Member, Role, User } from "../entities";
import { BitField, BitFieldResolvable, BitFlag } from "./BitField";
import { HTTPError } from "lambert-server";
import { HTTPError } from "lambert-server/HTTPError";
import { ChannelPermissionOverwrite, ChannelPermissionOverwriteType, ChannelType, UserFlags } from "@spacebar/schemas";
import { FindOneOptions } from "typeorm";
+1 -1
View File
@@ -18,7 +18,7 @@
import { BitField, BitFieldResolvable, BitFlag } from "./BitField";
import { User } from "../entities";
import { HTTPError } from "lambert-server";
import { HTTPError } from "lambert-server/HTTPError";
export type RightResolvable = bigint | number | Rights | RightResolvable[] | RightString;
+1 -1
View File
@@ -26,7 +26,7 @@ import { existsSync } from "node:fs";
import { FindOptionsRelationByString, FindOptionsSelectByString } from "typeorm";
import { randomUpperString } from "@spacebar/api";
import { TimeSpan } from "./Timespan";
import { HTTPError } from "lambert-server";
import { HTTPError } from "lambert-server/HTTPError";
import path from "node:path";
/// Change history:
+1 -1
View File
@@ -17,7 +17,7 @@
*/
import FormData from "form-data";
import { HTTPError } from "lambert-server";
import { HTTPError } from "lambert-server/HTTPError";
import { Attachment } from "../entities";
import { Config } from "./Config";