audit-fix
main
Made the inventoryJSON type more opaque since mongoose chains a lot of stuff together for it so it's hard to give a proper type.
The type here was always incorrect
The reinterpret casts are needed as toJSON can no longer infer that the virtual 'ItemId' is being added to the resulting object, causing a type error about the database types being incompatible with the client types.