feat(communication): housekeeping find-user-by-id composer

OutgoingHeader.HOUSEKEEPING_FIND_USER_BY_ID = 9101 with a one-int
payload. The response side reuses HousekeepingUserDetailEvent (no new
parser) — find-by-id and find-by-name converge on the same shape
because the server has nothing different to say about a user found
via numeric id vs. via username lookup.

vitest 138/138, `yarn compile:fast` clean.
This commit is contained in:
simoleo89
2026-05-24 10:47:59 +02:00
committed by simoleo89
parent ec7e122e74
commit 3113baf559
4 changed files with 25 additions and 1 deletions
@@ -525,4 +525,5 @@ export class OutgoingHeader
// Housekeeping (in-client admin panel) — IDs 9100..9199 reserved
public static HOUSEKEEPING_FIND_USER_BY_NAME = 9100;
public static HOUSEKEEPING_FIND_USER_BY_ID = 9101;
}
@@ -0,0 +1,21 @@
import { IMessageComposer } from '@nitrots/api';
export class HousekeepingFindUserByIdComposer implements IMessageComposer<ConstructorParameters<typeof HousekeepingFindUserByIdComposer>>
{
private _data: ConstructorParameters<typeof HousekeepingFindUserByIdComposer>;
constructor(userId: number)
{
this._data = [userId];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}
@@ -1 +1,2 @@
export * from './HousekeepingFindUserByIdComposer';
export * from './HousekeepingFindUserByNameComposer';