Library referenceTypes
KpdCall
type KpdCall = {
called_id: number;
called_name: string;
called_score: number;
caller_id: number;
caller_job_rating: number;
caller_job_rating_positive: number;
caller_name: string;
caller_score: number;
date: string;
game_code: string;
host: string;
id: number;
kdf_type: KpdCallContext;
kdf_type_label: string;
officer_id: number;
officer_name: string;
port: string;
rating: KpdCallRating;
rating_label: string;
status: KpdCallStatus;
status_date: string;
status_label: string;
token: string;
};one row of GET /api/kpd/latest-calls
Properties
| Property | Type | Description |
|---|---|---|
called_id | number | Reported player id |
called_name | string | "guest" when unregistered |
called_score | number | Reported player score |
caller_id | number | Reporter player id |
caller_job_rating | number | Reporter's total KPD job rating |
caller_job_rating_positive | number | correct calls of the reporter |
caller_name | string | Reporter name |
caller_score | number | Reporter score |
date | string | rfc3339 utc |
game_code | string | Game instance code |
host | string | Game server host |
id | number | Report id |
kdf_type | KpdCallContext | Call context: 0=public, 1=ranked, 2=comp, 3=custom |
kdf_type_label | string | Readable kdf_type |
officer_id | number | 0 without one |
officer_name | string | Officer name |
port | string | Game server port |
rating | KpdCallRating | Officer verdict: 0=pending, 1=banned, 2=rejected |
rating_label | string | Readable rating |
status | KpdCallStatus | 1=not responded, 2=responded, 3=reviewed |
status_date | string | last status change, rfc3339 utc |
status_label | string | Readable status |
token | string | internal call token |