SpaceNinjaServer/src/types/commonTypes.ts
Sainan f9b3fecc10 chore: some initial handling of legacy oid format (#2033)
This at least allows mission inventory update to succeed on U19.5 and below.

Reviewed-on: OpenWF/SpaceNinjaServer#2033
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-05-09 00:20:54 -07:00

24 lines
413 B
TypeScript

import { ITypeCount } from "@/src/types/inventoryTypes/inventoryTypes";
export interface IOid {
$oid: string;
}
export interface IOidWithLegacySupport {
$oid?: string;
$id?: string;
}
export interface IMongoDate {
$date: {
$numberLong: string;
};
}
export interface IReward {
items: ITypeCount[];
credits: number;
}
export type IJunctionRewards = Record<string, IReward>;