2023-04-10 09:29:10 +08:00
|
|
|
import { ISample } from './analysis';
|
|
|
|
import { IUser } from './auth';
|
2023-01-02 00:04:52 +08:00
|
|
|
|
|
|
|
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;
|
2023-04-10 09:29:10 +08:00
|
|
|
children?: IStorageSection[];
|
|
|
|
tag?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
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;
|
2023-04-10 09:29:10 +08:00
|
|
|
children?: IStorageContainer[];
|
|
|
|
tag?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
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;
|
2023-04-10 09:29:10 +08:00
|
|
|
tag?: string;
|
2023-01-02 20:33:50 +08:00
|
|
|
isOpen?: boolean;
|
|
|
|
isFolder?: boolean;
|
2023-01-02 00:04:52 +08:00
|
|
|
}
|
|
|
|
|
2023-01-02 20:33:50 +08:00
|
|
|
interface IActivePath {
|
2023-04-10 09:29:10 +08:00
|
|
|
room?: number;
|
|
|
|
location?: number;
|
|
|
|
section?: number;
|
|
|
|
container?: number;
|
2023-01-02 20:33:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ITreeData {
|
2023-04-10 09:29:10 +08:00
|
|
|
treeData: IStoreRoom[];
|
|
|
|
activePath: IActivePath;
|
|
|
|
activeTree: IStoreRoom | IStorageLocation | IStorageSection | IStorageContainer;
|
|
|
|
}
|