2023-01-02 00:04:52 +08:00
|
|
|
import { ISample } from "./analysis"
|
|
|
|
import { IUser } from "./auth"
|
|
|
|
|
|
|
|
export interface IStoreRoom {
|
2023-03-19 23:21:32 +08:00
|
|
|
uid?: string;
|
2023-01-02 00:04:52 +08:00
|
|
|
name?: String;
|
|
|
|
description?: String;
|
2023-01-02 20:33:50 +08:00
|
|
|
createdAt?: Date;
|
2023-03-19 23:21:32 +08:00
|
|
|
createdByUid?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
createdBy?: IUser;
|
|
|
|
updatedAt?: Date;
|
2023-03-19 23:21:32 +08:00
|
|
|
updatedByUid?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
updatedBy?: IUser;
|
|
|
|
children?: IStorageLocation[];
|
|
|
|
tag?: string;
|
|
|
|
isOpen?: boolean;
|
|
|
|
isFolder?: boolean;
|
2023-01-02 00:04:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export interface IStorageLocation {
|
2023-03-19 23:21:32 +08:00
|
|
|
uid?: string;
|
2023-01-02 00:04:52 +08:00
|
|
|
name?: String;
|
|
|
|
description?: String;
|
2023-03-19 23:21:32 +08:00
|
|
|
storeRoomUid?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
storeRoom?: IStoreRoom;
|
|
|
|
createdAt?: Date;
|
2023-03-19 23:21:32 +08:00
|
|
|
createdByUid?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
createdBy?: IUser;
|
|
|
|
updatedAt?: Date;
|
2023-03-19 23:21:32 +08:00
|
|
|
updatedByUid?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
updatedBy?: IUser;
|
|
|
|
children?: IStorageSection[],
|
|
|
|
tag?: string,
|
|
|
|
isOpen?: boolean;
|
|
|
|
isFolder?: boolean;
|
2023-01-02 00:04:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export interface IStorageSection {
|
2023-03-19 23:21:32 +08:00
|
|
|
uid?: string;
|
2023-01-02 00:04:52 +08:00
|
|
|
name?: String;
|
|
|
|
description?: String;
|
2023-03-19 23:21:32 +08:00
|
|
|
storageLocationUid?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
storageLocation?: IStorageLocation;
|
|
|
|
createdAt?: Date;
|
2023-03-19 23:21:32 +08:00
|
|
|
createdByUid?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
createdBy?: IUser;
|
|
|
|
updatedAt?: Date;
|
2023-03-19 23:21:32 +08:00
|
|
|
updatedByUid?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
updatedBy?: IUser;
|
|
|
|
children?: IStorageContainer[],
|
|
|
|
tag?: string,
|
|
|
|
isOpen?: boolean;
|
|
|
|
isFolder?: boolean;
|
2023-01-02 00:04:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export interface IStorageContainer {
|
2023-03-19 23:21:32 +08:00
|
|
|
uid?: string;
|
2023-01-02 00:04:52 +08:00
|
|
|
name?: String;
|
|
|
|
description?: String;
|
2023-03-19 23:21:32 +08:00
|
|
|
storageSectionUid?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
storageSection?: IStorageSection;
|
2023-01-02 00:04:52 +08:00
|
|
|
grid?: boolean;
|
2023-01-02 20:33:50 +08:00
|
|
|
rowWise?: boolean;
|
2023-01-02 00:04:52 +08:00
|
|
|
cols?: number;
|
|
|
|
rows?: number;
|
|
|
|
slots?: number;
|
2023-01-15 14:04:29 +08:00
|
|
|
storedCount?: number;
|
2023-01-02 00:04:52 +08:00
|
|
|
samples?: ISample[];
|
2023-01-02 20:33:50 +08:00
|
|
|
createdAt?: Date;
|
2023-03-19 23:21:32 +08:00
|
|
|
createdByUid?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
createdBy?: IUser;
|
|
|
|
updatedAt?: Date;
|
2023-03-19 23:21:32 +08:00
|
|
|
updatedByUid?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
updatedBy?: IUser;
|
|
|
|
tag?: string,
|
|
|
|
isOpen?: boolean;
|
|
|
|
isFolder?: boolean;
|
2023-01-02 00:04:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-01-02 20:33:50 +08:00
|
|
|
interface IActivePath {
|
|
|
|
room?: number,
|
|
|
|
location?: number,
|
|
|
|
section?: number,
|
|
|
|
container?: number,
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ITreeData {
|
|
|
|
treeData: IStoreRoom[]
|
|
|
|
activePath: IActivePath,
|
|
|
|
activeTree: IStoreRoom | IStorageLocation | IStorageSection | IStorageContainer
|
2023-01-02 00:04:52 +08:00
|
|
|
}
|