2024-12-23 00:40:35 +01:00
|
|
|
export interface IAccountAndLoginResponseCommons {
|
|
|
|
DisplayName: string;
|
|
|
|
CountryCode: string;
|
|
|
|
ClientType: string;
|
|
|
|
CrossPlatformAllowed: boolean;
|
|
|
|
ForceLogoutVersion: number;
|
|
|
|
AmazonAuthToken?: string;
|
|
|
|
AmazonRefreshToken?: string;
|
|
|
|
ConsentNeeded: boolean;
|
|
|
|
TrackedSettings: string[];
|
|
|
|
Nonce: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ILoginResponse extends IAccountAndLoginResponseCommons {
|
|
|
|
id: string;
|
2023-05-23 20:42:06 -04:00
|
|
|
Groups: IGroup[];
|
|
|
|
BuildLabel: string;
|
|
|
|
MatchmakingBuildId: string;
|
|
|
|
platformCDNs: string[];
|
|
|
|
NRS: string[];
|
|
|
|
DTLS: number;
|
|
|
|
IRC: string[];
|
|
|
|
HUB: string;
|
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 IGroup {
|
2023-05-23 20:42:06 -04:00
|
|
|
experiment: string;
|
|
|
|
experimentGroup: string;
|
2023-05-19 15:22:48 -03:00
|
|
|
}
|
|
|
|
|
2024-12-23 00:40:35 +01:00
|
|
|
export interface IDatabaseAccount extends IAccountAndLoginResponseCommons {
|
2023-05-23 20:42:06 -04:00
|
|
|
email: string;
|
|
|
|
password: string;
|
2024-12-22 00:44:49 +01:00
|
|
|
LastLoginDay?: number;
|
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;
|
2023-05-19 15:22:48 -03:00
|
|
|
}
|