From 53c7ca45f17be895f4fe3506456e6827c5f2a629 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Tue, 8 Sep 2026 21:46:29 -0300 Subject: [PATCH] feat(web): expose independent company master in inventory setup --- web-v2/src/lib/inventoryStructureApi.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;