2024-12-22 20:32:19 +01:00
|
|
|
import { IApartment, IRoom, IPlacedDecosDatabase, ITailorShop, TBootLocation } from "@/src/types/shipTypes";
|
2024-02-18 13:58:43 +01:00
|
|
|
import { Model, Types } from "mongoose";
|
|
|
|
|
|
|
|
export interface IOrbiter {
|
|
|
|
Features: string[];
|
2024-12-22 20:32:19 +01:00
|
|
|
Rooms: IRoom[];
|
2024-02-18 13:58:43 +01:00
|
|
|
ContentUrlSignature: string;
|
2024-05-06 15:39:27 +02:00
|
|
|
BootLocation?: TBootLocation;
|
2024-02-18 13:58:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IPersonalRooms {
|
|
|
|
personalRoomsOwnerId: Types.ObjectId;
|
|
|
|
activeShipId: Types.ObjectId;
|
|
|
|
Ship: IOrbiter;
|
|
|
|
Apartment: IApartment;
|
2024-12-22 20:32:19 +01:00
|
|
|
TailorShop: ITailorShop;
|
2024-02-18 13:58:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export type RoomsType = { Name: string; MaxCapacity: number; PlacedDecos: Types.DocumentArray<IPlacedDecosDatabase> };
|
|
|
|
|
|
|
|
export type PersonalRoomsDocumentProps = {
|
|
|
|
Ship: Omit<IOrbiter, "Rooms"> & {
|
|
|
|
Rooms: RoomsType[];
|
|
|
|
};
|
|
|
|
Apartment: Omit<IApartment, "Rooms"> & {
|
|
|
|
Rooms: RoomsType[];
|
|
|
|
};
|
2024-12-22 20:32:19 +01:00
|
|
|
TailorShop: Omit<ITailorShop, "Rooms"> & {
|
|
|
|
Rooms: RoomsType[];
|
|
|
|
};
|
2024-02-18 13:58:43 +01:00
|
|
|
};
|
|
|
|
|
2024-06-01 13:03:27 +02:00
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
2024-02-18 13:58:43 +01:00
|
|
|
export type PersonalRoomsModelType = Model<IPersonalRooms, {}, PersonalRoomsDocumentProps>;
|