feat(web): expose independent company master in inventory setup
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { apiRequest } from './api';
|
import { apiRequest } from './api';
|
||||||
|
|
||||||
export type InventoryStructureKind = 'AREA' | 'YACIMIENTO' | 'INSTALACION' | 'SUBINSTALACION';
|
export type InventoryStructureKind = 'EMPRESA' | 'AREA' | 'YACIMIENTO' | 'INSTALACION' | 'SUBINSTALACION';
|
||||||
|
|
||||||
export interface InventoryFamily {
|
export interface InventoryFamily {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -23,6 +23,7 @@ export interface InventoryStructureLevel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface InventoryStructureOptions {
|
export interface InventoryStructureOptions {
|
||||||
|
independentMasters: InventoryStructureLevel[];
|
||||||
levels: InventoryStructureLevel[];
|
levels: InventoryStructureLevel[];
|
||||||
installationFamilies: InventoryFamily[];
|
installationFamilies: InventoryFamily[];
|
||||||
subinstallationFamilies: InventoryFamily[];
|
subinstallationFamilies: InventoryFamily[];
|
||||||
@@ -79,6 +80,7 @@ export interface CreatedInventoryStructure {
|
|||||||
operationalStatus: string;
|
operationalStatus: string;
|
||||||
type: { id: string; code: string; name: string };
|
type: { id: string; code: string; name: string };
|
||||||
parent: null | { id: string; code: string; name: string };
|
parent: null | { id: string; code: string; name: string };
|
||||||
|
operationalArea?: null | { id: string; code: string; name: string };
|
||||||
inventoryFamily: null | {
|
inventoryFamily: null | {
|
||||||
id: string;
|
id: string;
|
||||||
code: string;
|
code: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user