mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-17 02:12:00 +00:00
Use subpath imports for lambert-server, fix openapi.js
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import { Config } from "./Config";
|
||||
import { TenorGif } from "@spacebar/schemas";
|
||||
|
||||
|
||||
@@ -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, "");
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user