Skip to main content

CliseItem

Represents a printing plate (cliché) in the inventory system.
id
string
required
Unique identifier for the clise
item
string
required
Item code
ubicacion
string
required
Physical location in warehouse
descripcion
string
required
Item description
cliente
string
required
Client name
z
string
required
Z classification
estandar
string
required
Standard specification
medidas
string
required
Measurements
troquel
string
required
Associated die reference
linkedDies
string[]
required
Array of linked die IDs
ancho
number | null
required
Width in millimeters
avance
number | null
required
Advance/pitch in millimeters
col
number | null
required
Number of colors
rep
number | null
required
Number of repetitions
n_clises
number | null
required
Number of clises
espesor
string
required
Thickness specification
ingreso
string
required
Entry date
obs
string
required
Observations
maq
string
required
Machine compatibility
colores
string
required
Color specification
colorUsage
CliseColorUsage[]
Array of color usage statistics
n_ficha_fler
string
required
Technical sheet number
mtl_acum
number | null
required
Accumulated material meters
imagen
string
Image URL or base64 data
history
CliseHistory[]
required
History of usage and maintenance
hasConflict
boolean
Indicates if there are conflicts (used for sync)

CliseColorUsage

Tracks color usage statistics for a clise.
name
string
required
Color name
meters
number
required
Meters printed with this color

CliseHistory

Records historical events for clises and dies.
date
string
required
Event date (ISO format)
type
'Producción' | 'Mantenimiento' | 'Reparación' | 'Cambio Versión' | 'Creación' | 'Baja' | 'Otro'
required
Type of event
description
string
required
Event description
user
string
required
User who performed the action
machine
string
Machine involved (optional)
amount
number
Quantity or measurement related to the event

DieItem

Represents a die (troquel) used in cutting/stamping operations.
id
string
required
Unique identifier for the die
medida
string
required
Measurement specification
ubicacion
string
required
Physical location in warehouse
serie
string
required
Series number
linkedClises
string[]
required
Array of linked clise IDs
ancho_mm
number | null
required
Width in millimeters
avance_mm
number | null
required
Advance in millimeters
ancho_plg
number | null
required
Width in inches
avance_plg
number | null
required
Advance in inches
z
string
required
Z classification
columnas
number | null
required
Number of columns
repeticiones
number | null
required
Number of repetitions
material
string
required
Material type
forma
string
required
Shape specification
cliente
string
required
Client name
observaciones
string
required
Observations
ingreso
string
required
Entry date
pb
string
required
PB specification
sep_ava
string
required
Advance separation
estado
string
required
Current state/condition
cantidad
number | null
required
Quantity available
almacen
string
required
Warehouse location
mtl_acum
number | null
required
Accumulated material meters
tipo_troquel
string
required
Die type classification
history
CliseHistory[]
required
History of usage and maintenance
hasConflict
boolean
Indicates if there are conflicts (used for sync)

StockItem

Represents finished goods in warehouse inventory.
id
string
required
Unique identifier for the stock item
ot
string
required
Reference to work order (OT)
client
string
required
Client name
product
string
required
Product description
quantity
number
required
Stored quantity (legacy/total)
unit
string
required
Unit of measurement (legacy)
rolls
number
Number of rolls (new field)
millares
number
Number of millares/thousands (new field)
location
string
required
Location in finished goods warehouse
status
'Liberado' | 'Cuarentena' | 'Retenido' | 'Despachado'
required
Current status of the stock
entryDate
string
required
Date of entry to warehouse (ISO format)
notes
string
Additional notes
palletId
string
Pallet or lot identifier

RackConfig

Configuration for warehouse rack storage systems.
id
string
required
Unique rack identifier
name
string
required
Rack name
type
'clise' | 'die'
required
Type of items stored (clises or dies)
levels
RackLevel[]
required
Array of rack levels
orientation
'vertical' | 'horizontal'
required
Physical orientation of the rack

RackLevel

Represents a level within a rack structure.
levelNumber
number
required
Level number (1-based index)
boxes
RackBox[]
required
Array of boxes/compartments at this level

RackBox

Represents a storage box/compartment within a rack level.
label
string
required
Box label or identifier
min
number
Minimum range value (for range-based storage)
max
number
Maximum range value (for range-based storage)
items
(CliseItem | DieItem)[]
required
Array of items stored in this box

Usage Example

import { CliseItem, DieItem, StockItem, RackConfig } from './models/inventory.models';

const clise: CliseItem = {
  id: 'CL-001',
  item: 'CLI-2026-001',
  ubicacion: 'A-12-3',
  descripcion: 'Cliché 4 colores cliente ABC',
  cliente: 'ABC Corporation',
  ancho: 250,
  avance: 150,
  col: 4,
  linkedDies: ['DIE-001', 'DIE-002'],
  history: [
    {
      date: '2026-03-01',
      type: 'Producción',
      description: 'Producción OT-2026-001',
      user: 'Juan Perez',
      machine: 'IMP-01',
      amount: 5000
    }
  ],
  // ... additional fields
};

const stock: StockItem = {
  id: 'STK-001',
  ot: 'OT-2026-0150',
  client: 'ABC Corporation',
  product: 'Etiquetas adhesivas 100x50mm',
  quantity: 50000,
  unit: 'unidades',
  rolls: 10,
  millares: 50,
  location: 'PT-A-05',
  status: 'Liberado',
  entryDate: '2026-03-09T10:30:00Z'
};

Build docs developers (and LLMs) love