fix: javascript handles nulls in an incredibly stupid way.

This commit is contained in:
Matt Kilgore
2024-10-05 15:38:31 -04:00
parent 5d3698d0d8
commit c6158e7c9e
7 changed files with 67 additions and 49 deletions

View File

@@ -106,15 +106,13 @@ export interface ItemOut {
notes: string;
parent?: ItemSummary | null;
purchaseFrom: string;
/** @example "0" */
purchasePrice: string;
purchasePrice: number;
/** Purchase */
purchaseTime: Date | string;
quantity: number;
serialNumber: string;
soldNotes: string;
/** @example "0" */
soldPrice: string;
soldPrice: number;
/** Sold */
soldTime: Date | string;
soldTo: string;
@@ -145,8 +143,7 @@ export interface ItemSummary {
/** Edges */
location?: LocationSummary | null;
name: string;
/** @example "0" */
purchasePrice: string;
purchasePrice: number;
quantity: number;
updatedAt: Date | string;
}
@@ -181,14 +178,14 @@ export interface ItemUpdate {
parentId?: string | null;
/** @maxLength 255 */
purchaseFrom: string;
purchasePrice: number;
purchasePrice?: number | null;
/** Purchase */
purchaseTime: Date | string;
quantity: number;
/** Identifications */
serialNumber: string;
soldNotes: string;
soldPrice: number;
soldPrice?: number | null;
/** Sold */
soldTime: Date | string;
/** @maxLength 255 */