Creates a new rank in the database.
The data required to create the rank.
A promise resolving to the newly created RankEntity.
Retrieves all ranks for a specific ranked system.
The ID of the ranked system.
A promise resolving to an array of RankEntity.
Retrieves the correct rank for a given ELO score within a ranked system.
The ID of the ranked system.
The current ELO score.
A promise resolving to the RankEntity.
Retrieves a specific rank by its ID.
The ID of the ranked system.
The ID of the rank.
A promise resolving to the RankEntity.
Deletes a rank from the system.
The ID of the rank to delete.
A promise that resolves when the deletion is successful.
Updates an existing rank.
Note: If you already have a RankEntity, you can use rank.update(dto) directly.
The ID of the rank to update.
The fields to update.
A promise resolving to the updated RankEntity.
Uploads an image icon for a specific rank using multipart/form-data.
The ID of the rank.
The binary buffer containing the image data.
The filename with extension (e.g., 'icon.png').
A promise resolving to an object containing the success status and the new URL.
Manages API operations related to Ranks within Ranked Systems. Handles fetching, creating, updating, deleting ranks, and uploading rank icons.