diff --git a/web-v2/src/lib/inventoryStructureApi.ts b/web-v2/src/lib/inventoryStructureApi.ts index 36ffcd2..15d2c6a 100644 --- a/web-v2/src/lib/inventoryStructureApi.ts +++ b/web-v2/src/lib/inventoryStructureApi.ts @@ -1,6 +1,6 @@ import { apiRequest } from './api'; -export type InventoryStructureKind = 'AREA' | 'YACIMIENTO' | 'INSTALACION' | 'SUBINSTALACION'; +export type InventoryStructureKind = 'EMPRESA' | 'AREA' | 'YACIMIENTO' | 'INSTALACION' | 'SUBINSTALACION'; export interface InventoryFamily { id: string; @@ -23,6 +23,7 @@ export interface InventoryStructureLevel { } export interface InventoryStructureOptions { + independentMasters: InventoryStructureLevel[]; levels: InventoryStructureLevel[]; installationFamilies: InventoryFamily[]; subinstallationFamilies: InventoryFamily[]; @@ -79,6 +80,7 @@ export interface CreatedInventoryStructure { operationalStatus: string; type: { id: string; code: string; name: string }; parent: null | { id: string; code: string; name: string }; + operationalArea?: null | { id: string; code: string; name: string }; inventoryFamily: null | { id: string; code: string;