2024-05-16 01:34:38 +02:00
|
|
|
import { Types } from "mongoose";
|
|
|
|
import { IOid, IMongoDate } from "@/src/types/commonTypes";
|
|
|
|
|
2024-05-04 15:42:25 +02:00
|
|
|
export interface IGuild {
|
|
|
|
Name: string;
|
|
|
|
}
|
|
|
|
|
2024-05-16 01:34:38 +02:00
|
|
|
export interface IGuildDatabase extends IGuild {
|
|
|
|
_id: Types.ObjectId;
|
|
|
|
DojoComponents?: IDojoComponentDatabase[];
|
|
|
|
}
|
|
|
|
|
2024-05-04 15:42:25 +02:00
|
|
|
export interface ICreateGuildRequest {
|
|
|
|
guildName: string;
|
|
|
|
}
|
2024-05-16 01:34:38 +02:00
|
|
|
|
|
|
|
export interface IDojoClient {
|
|
|
|
_id: IOid; // ID of the guild
|
|
|
|
Name: string;
|
|
|
|
Tier: number;
|
|
|
|
FixedContributions: boolean;
|
|
|
|
DojoRevision: number;
|
|
|
|
RevisionTime: number;
|
|
|
|
Energy: number;
|
|
|
|
Capacity: number;
|
|
|
|
DojoRequestStatus: number;
|
|
|
|
DojoComponents: IDojoComponentClient[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IDojoComponentClient {
|
|
|
|
id: IOid;
|
|
|
|
pf: string;
|
|
|
|
ppf: string;
|
|
|
|
CompletionTime: IMongoDate;
|
|
|
|
DecoCapacity: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IDojoComponentDatabase {
|
|
|
|
_id: Types.ObjectId;
|
|
|
|
pf: string;
|
|
|
|
ppf: string;
|
|
|
|
CompletionTime: Date;
|
|
|
|
}
|