genshin-manager
Version:
<div align="center"> <p> <a href="https://www.npmjs.com/package/genshin-manager"><img src="https://img.shields.io/npm/v/genshin-manager.svg?maxAge=3600" alt="npm version" /></a> <a href="https://www.npmjs.com/package/genshin-manager"><img src="https:
94 lines (93 loc) • 1.47 kB
TypeScript
/**
* EnkaStatusTypes
* @description This is a parse of status.enka.network/api/now
*/
export interface APIEnkaStatus {
/**
* now Date string
*/
readonly now: string;
/**
* HSR Stat
*/
readonly hsr: APIEnkaStat;
/**
* GI Stat
*/
readonly gi: APIEnkaStat;
/**
* GG Stat
*/
readonly gg: APIEnkaStat;
/**
* Pingu Stat
*/
readonly pingu: APIEnkaPingu;
}
/**
* EnkaRegion
*/
export type APIEnkaRegion = 'euro' | 'usa' | 'asia' | 'cht' | 'china' | 'bilibili';
/**
* EnkaStat
*/
export interface APIEnkaStat {
/**
* response time (ms)
*/
time: Partial<{
[]: number;
}>;
/**
* ping (ms)
*/
ping: Partial<{
[]: number;
}>;
/**
* request capacity (req/min)
*/
nodes: Partial<{
[]: number;
}>;
/**
* underruns (fails)
*/
underruns: Partial<{
[]: string;
}>;
}
/**
* EnkaPingu
*/
export interface APIEnkaPingu {
/**
* CDN
*/
cdn: APIEnkaPing;
/**
* Main
*/
main: APIEnkaPing;
/**
* API
*/
api: APIEnkaPing;
/**
* Fox
*/
fox: APIEnkaPing;
}
/**
* EnkaPing
*/
export interface APIEnkaPing {
/**
* response time (ms)
*/
ms: number;
/**
* status code
*/
status: number;
}