2025-04-18 11:16:43 -07:00
|
|
|
import { Types } from "mongoose";
|
|
|
|
|
2024-12-23 00:40:35 +01:00
|
|
|
export interface IAccountAndLoginResponseCommons {
|
|
|
|
DisplayName: string;
|
|
|
|
CountryCode: string;
|
|
|
|
ClientType: string;
|
2025-04-30 23:50:02 -07:00
|
|
|
CrossPlatformAllowed?: boolean;
|
2024-12-23 00:40:35 +01:00
|
|
|
ForceLogoutVersion: number;
|
|
|
|
AmazonAuthToken?: string;
|
|
|
|
AmazonRefreshToken?: string;
|
|
|
|
ConsentNeeded: boolean;
|
|
|
|
TrackedSettings: string[];
|
|
|
|
Nonce: number;
|
|
|
|
}
|
|
|
|
|
2025-03-21 05:19:42 -07:00
|
|
|
export interface IDatabaseAccountRequiredFields extends IAccountAndLoginResponseCommons {
|
2025-01-31 14:15:36 +01:00
|
|
|
email: string;
|
|
|
|
password: string;
|
2025-03-21 05:19:42 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IDatabaseAccount extends IDatabaseAccountRequiredFields {
|
2025-03-09 07:40:37 -07:00
|
|
|
Dropped?: boolean;
|
2025-01-31 14:15:36 +01:00
|
|
|
LatestEventMessageDate: Date;
|
2025-03-21 05:19:42 -07:00
|
|
|
LastLoginRewardDate: number;
|
|
|
|
LoginDays: number;
|
2023-05-19 15:22:48 -03:00
|
|
|
}
|
|
|
|
|
2023-09-05 07:37:30 -05:00
|
|
|
// Includes virtual ID
|
2024-12-23 00:40:35 +01:00
|
|
|
export interface IDatabaseAccountJson extends IDatabaseAccount {
|
2023-05-23 20:42:06 -04:00
|
|
|
id: string;
|
2023-05-19 15:22:48 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ILoginRequest {
|
2023-05-23 20:42:06 -04:00
|
|
|
email: string;
|
|
|
|
password: string;
|
|
|
|
time: number;
|
|
|
|
s: string;
|
|
|
|
lang: string;
|
|
|
|
date: number;
|
|
|
|
ClientType: string;
|
|
|
|
PS: string;
|
2025-03-09 07:40:37 -07:00
|
|
|
kick?: boolean;
|
2023-05-19 15:22:48 -03:00
|
|
|
}
|
2025-01-31 14:15:36 +01:00
|
|
|
|
|
|
|
export interface ILoginResponse extends IAccountAndLoginResponseCommons {
|
|
|
|
id: string;
|
|
|
|
Groups: IGroup[];
|
|
|
|
BuildLabel: string;
|
2025-04-30 23:50:02 -07:00
|
|
|
MatchmakingBuildId?: string;
|
2025-02-21 08:29:42 +01:00
|
|
|
platformCDNs?: string[];
|
|
|
|
NRS?: string[];
|
2025-01-31 14:15:36 +01:00
|
|
|
DTLS: number;
|
|
|
|
IRC: string[];
|
2025-02-21 08:29:42 +01:00
|
|
|
HUB?: string;
|
2025-01-31 14:15:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IGroup {
|
|
|
|
experiment: string;
|
|
|
|
experimentGroup: string;
|
|
|
|
}
|
2025-04-18 11:16:43 -07:00
|
|
|
|
|
|
|
export interface IIgnore {
|
|
|
|
ignorer: Types.ObjectId;
|
|
|
|
ignoree: Types.ObjectId;
|
|
|
|
}
|