Function transformGameServerDetails
- transformGameServerDetails(response, serverId): Omit<{
attributes: {
description: string;
dlc: boolean;
dlcs: {
livonia: boolean;
sakhal: boolean;
};
experimental: boolean;
hive: string;
modded: boolean;
official: boolean;
shard: string;
whitelist: boolean;
};
environment: {
perspectives: {
1Rd: boolean;
3Rd: boolean;
};
time: string;
timeAcceleration: {
general: number;
night: number;
};
};
game: DayZ;
geolocation: {
available: boolean;
city: {
name: string;
region: string;
};
continent: string;
country: {
code: string;
name: string;
};
timezone: string;
};
host: {
address: string;
gamePort: number;
os: string;
queryPort: number;
};
map: string;
mods: {
fileId: string;
name: string;
}[];
name: string;
object: {
createdAt: string;
error: GameServerQueryError;
updatedAt: string;
};
offline: boolean;
online: boolean;
publisher: {
monetization: boolean;
};
rank: number;
rating: string;
security: {
battleye: boolean;
password: boolean;
vac: boolean;
};
signatures: string[];
status: {
bots: boolean;
players: number;
queue: {
active: boolean;
size: number;
};
slots: number;
};
version: string;
}, "object"> & {
object: Omit<{
createdAt: string;
error: GameServerQueryError;
updatedAt: string;
}, "createdAt" | "updatedAt"> & {
createdAt: Date;
updatedAt: Date;
};
} Returns Omit<{
attributes: {
description: string;
dlc: boolean;
dlcs: {
livonia: boolean;
sakhal: boolean;
};
experimental: boolean;
hive: string;
modded: boolean;
official: boolean;
shard: string;
whitelist: boolean;
};
environment: {
perspectives: {
1Rd: boolean;
3Rd: boolean;
};
time: string;
timeAcceleration: {
general: number;
night: number;
};
};
game: DayZ;
geolocation: {
available: boolean;
city: {
name: string;
region: string;
};
continent: string;
country: {
code: string;
name: string;
};
timezone: string;
};
host: {
address: string;
gamePort: number;
os: string;
queryPort: number;
};
map: string;
mods: {
fileId: string;
name: string;
}[];
name: string;
object: {
createdAt: string;
error: GameServerQueryError;
updatedAt: string;
};
offline: boolean;
online: boolean;
publisher: {
monetization: boolean;
};
rank: number;
rating: string;
security: {
battleye: boolean;
password: boolean;
vac: boolean;
};
signatures: string[];
status: {
bots: boolean;
players: number;
queue: {
active: boolean;
size: number;
};
slots: number;
};
version: string;
}, "object"> & {
object: Omit<{
createdAt: string;
error: GameServerQueryError;
updatedAt: string;
}, "createdAt" | "updatedAt"> & {
createdAt: Date;
updatedAt: Date;
};
}