[econ] add the POST equipment update endpoint

This commit is contained in:
Devin Zuczek
2026-08-25 16:36:20 -04:00
parent 7275176734
commit c5421539c3
3 changed files with 82 additions and 21 deletions
+3 -3
View File
@@ -36,7 +36,7 @@ export const EQUIPMENT_SCHEMA_DDL: string[] = [
* inconsistency to tidy up: a drop is a flat record holding avatar, consumable and
* equipment fields side by side, so it needs the prefix to disambiguate, while this
* record is all equipment. Confirmed against the live endpoint, and the entries the
* client PUTs back to `/api/equipment/v1/update` use the same unprefixed names.
* client sends back to `/api/equipment/v1/update` use the same unprefixed names.
*/
export interface Equipment extends Record<string, unknown> {
ModificationGuid: string
@@ -46,7 +46,7 @@ export interface Equipment extends Record<string, unknown> {
Rarity: number
/** Always -1 (all platforms) — we don't gate equipment per platform. */
PlatformMask: number
/** Player-set favourite flag, toggled by `PUT /api/equipment/v1/update`. */
/** Player-set favourite flag, toggled by `PUT`/`POST /api/equipment/v1/update`. */
Favorited: boolean
}
@@ -73,7 +73,7 @@ export async function grantEquipment(
.run()
}
/** One entry of the `PUT /api/equipment/v1/update` body. */
/** One entry of the `PUT`/`POST /api/equipment/v1/update` body. */
export interface EquipmentFavoriteUpdate {
ModificationGuid: string
Favorited: boolean