mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 00:30:27 +00:00
type gen
This commit is contained in:
parent
8f1299fab4
commit
429ecc3005
1 changed files with 27 additions and 26 deletions
|
@ -17,11 +17,11 @@ export interface DocumentOut {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Group {
|
export interface Group {
|
||||||
createdAt: string;
|
createdAt: Date;
|
||||||
currency: string;
|
currency: string;
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
updatedAt: string;
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GroupStatistics {
|
export interface GroupStatistics {
|
||||||
|
@ -39,11 +39,11 @@ export interface GroupUpdate {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ItemAttachment {
|
export interface ItemAttachment {
|
||||||
createdAt: string;
|
createdAt: Date;
|
||||||
document: DocumentOut;
|
document: DocumentOut;
|
||||||
id: string;
|
id: string;
|
||||||
type: string;
|
type: string;
|
||||||
updatedAt: string;
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ItemAttachmentUpdate {
|
export interface ItemAttachmentUpdate {
|
||||||
|
@ -76,7 +76,7 @@ export interface ItemOut {
|
||||||
assetId: string;
|
assetId: string;
|
||||||
attachments: ItemAttachment[];
|
attachments: ItemAttachment[];
|
||||||
children: ItemSummary[];
|
children: ItemSummary[];
|
||||||
createdAt: string;
|
createdAt: Date;
|
||||||
description: string;
|
description: string;
|
||||||
fields: ItemField[];
|
fields: ItemField[];
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -103,16 +103,16 @@ export interface ItemOut {
|
||||||
/** @example "0" */
|
/** @example "0" */
|
||||||
soldPrice: string;
|
soldPrice: string;
|
||||||
/** Sold */
|
/** Sold */
|
||||||
soldTime: string;
|
soldTime: Date;
|
||||||
soldTo: string;
|
soldTo: string;
|
||||||
updatedAt: string;
|
updatedAt: Date;
|
||||||
warrantyDetails: string;
|
warrantyDetails: string;
|
||||||
warrantyExpires: string;
|
warrantyExpires: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ItemSummary {
|
export interface ItemSummary {
|
||||||
archived: boolean;
|
archived: boolean;
|
||||||
createdAt: string;
|
createdAt: Date;
|
||||||
description: string;
|
description: string;
|
||||||
id: string;
|
id: string;
|
||||||
insured: boolean;
|
insured: boolean;
|
||||||
|
@ -123,7 +123,7 @@ export interface ItemSummary {
|
||||||
/** @example "0" */
|
/** @example "0" */
|
||||||
purchasePrice: string;
|
purchasePrice: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
updatedAt: string;
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ItemUpdate {
|
export interface ItemUpdate {
|
||||||
|
@ -156,10 +156,10 @@ export interface ItemUpdate {
|
||||||
/** @example "0" */
|
/** @example "0" */
|
||||||
soldPrice: string;
|
soldPrice: string;
|
||||||
/** Sold */
|
/** Sold */
|
||||||
soldTime: string;
|
soldTime: Date;
|
||||||
soldTo: string;
|
soldTo: string;
|
||||||
warrantyDetails: string;
|
warrantyDetails: string;
|
||||||
warrantyExpires: string;
|
warrantyExpires: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LabelCreate {
|
export interface LabelCreate {
|
||||||
|
@ -169,20 +169,20 @@ export interface LabelCreate {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LabelOut {
|
export interface LabelOut {
|
||||||
createdAt: string;
|
createdAt: Date;
|
||||||
description: string;
|
description: string;
|
||||||
id: string;
|
id: string;
|
||||||
items: ItemSummary[];
|
items: ItemSummary[];
|
||||||
name: string;
|
name: string;
|
||||||
updatedAt: string;
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LabelSummary {
|
export interface LabelSummary {
|
||||||
createdAt: string;
|
createdAt: Date;
|
||||||
description: string;
|
description: string;
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
updatedAt: string;
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LocationCreate {
|
export interface LocationCreate {
|
||||||
|
@ -193,30 +193,30 @@ export interface LocationCreate {
|
||||||
|
|
||||||
export interface LocationOut {
|
export interface LocationOut {
|
||||||
children: LocationSummary[];
|
children: LocationSummary[];
|
||||||
createdAt: string;
|
createdAt: Date;
|
||||||
description: string;
|
description: string;
|
||||||
id: string;
|
id: string;
|
||||||
items: ItemSummary[];
|
items: ItemSummary[];
|
||||||
name: string;
|
name: string;
|
||||||
parent: LocationSummary;
|
parent: LocationSummary;
|
||||||
updatedAt: string;
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LocationOutCount {
|
export interface LocationOutCount {
|
||||||
createdAt: string;
|
createdAt: Date;
|
||||||
description: string;
|
description: string;
|
||||||
id: string;
|
id: string;
|
||||||
itemCount: number;
|
itemCount: number;
|
||||||
name: string;
|
name: string;
|
||||||
updatedAt: string;
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LocationSummary {
|
export interface LocationSummary {
|
||||||
createdAt: string;
|
createdAt: Date;
|
||||||
description: string;
|
description: string;
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
updatedAt: string;
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LocationUpdate {
|
export interface LocationUpdate {
|
||||||
|
@ -229,7 +229,7 @@ export interface LocationUpdate {
|
||||||
export interface MaintenanceEntry {
|
export interface MaintenanceEntry {
|
||||||
/** @example "0" */
|
/** @example "0" */
|
||||||
cost: string;
|
cost: string;
|
||||||
date: Date;
|
date: string;
|
||||||
description: string;
|
description: string;
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -238,7 +238,7 @@ export interface MaintenanceEntry {
|
||||||
export interface MaintenanceEntryCreate {
|
export interface MaintenanceEntryCreate {
|
||||||
/** @example "0" */
|
/** @example "0" */
|
||||||
cost: string;
|
cost: string;
|
||||||
date: Date;
|
date: string;
|
||||||
description: string;
|
description: string;
|
||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
@ -246,7 +246,7 @@ export interface MaintenanceEntryCreate {
|
||||||
export interface MaintenanceEntryUpdate {
|
export interface MaintenanceEntryUpdate {
|
||||||
/** @example "0" */
|
/** @example "0" */
|
||||||
cost: string;
|
cost: string;
|
||||||
date: Date;
|
date: string;
|
||||||
description: string;
|
description: string;
|
||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
@ -275,6 +275,7 @@ export interface TreeItem {
|
||||||
children: TreeItem[];
|
children: TreeItem[];
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
type: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UserOut {
|
export interface UserOut {
|
||||||
|
@ -301,7 +302,7 @@ export interface ValueOverTime {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ValueOverTimeEntry {
|
export interface ValueOverTimeEntry {
|
||||||
date: Date;
|
date: string;
|
||||||
name: string;
|
name: string;
|
||||||
value: number;
|
value: number;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue