hvp-shared 6.11.0 → 6.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -330,6 +330,12 @@ export interface QvetTransfersQueryParams {
|
|
|
330
330
|
skip?: number;
|
|
331
331
|
sort?: string;
|
|
332
332
|
}
|
|
333
|
+
/**
|
|
334
|
+
* Status of a consolidated transfer
|
|
335
|
+
* - completed: Both exit and entry legs exist
|
|
336
|
+
* - pending: Only exit leg exists (transfer in transit)
|
|
337
|
+
*/
|
|
338
|
+
export type ConsolidatedTransferStatus = 'completed' | 'pending';
|
|
333
339
|
/**
|
|
334
340
|
* Single item within a consolidated transfer
|
|
335
341
|
*/
|
|
@@ -349,23 +355,49 @@ export interface ConsolidatedTransferItem {
|
|
|
349
355
|
*
|
|
350
356
|
* @example
|
|
351
357
|
* Original in QVET:
|
|
352
|
-
* ID 3206: MONTEJO → COLABORADOR-URBAN
|
|
353
|
-
* ID 3207: COLABORADOR-URBAN → URBAN CENTER
|
|
358
|
+
* Exit: ID 3206 @ 14:42 - MONTEJO → COLABORADOR-URBAN
|
|
359
|
+
* Entry: ID 3207 @ 15:01 - COLABORADOR-URBAN → URBAN CENTER
|
|
354
360
|
*
|
|
355
361
|
* Consolidated:
|
|
362
|
+
* exitDate: "2025-01-23T14:42:00.000Z"
|
|
363
|
+
* entryDate: "2025-01-23T15:01:00.000Z"
|
|
356
364
|
* realSource: "MONTEJO"
|
|
357
365
|
* realTarget: "URBAN CENTER"
|
|
358
|
-
*
|
|
366
|
+
* status: "completed"
|
|
367
|
+
* exitTransferIds: [3206]
|
|
368
|
+
* entryTransferIds: [3207]
|
|
369
|
+
*
|
|
370
|
+
* If only exit exists (pending):
|
|
371
|
+
* entryDate: null
|
|
372
|
+
* realTarget: null
|
|
373
|
+
* status: "pending"
|
|
374
|
+
* entryTransferIds: []
|
|
359
375
|
*/
|
|
360
376
|
export interface ConsolidatedTransfer {
|
|
361
|
-
|
|
377
|
+
/** When items left the source warehouse */
|
|
378
|
+
exitDate: string;
|
|
379
|
+
/** When items arrived at destination (null if pending) */
|
|
380
|
+
entryDate: string | null;
|
|
381
|
+
/** Real source warehouse (not COLABORADOR) */
|
|
362
382
|
realSource: string;
|
|
363
|
-
|
|
383
|
+
/** Real target warehouse (null if pending/unknown) */
|
|
384
|
+
realTarget: string | null;
|
|
385
|
+
/** Transfer status */
|
|
386
|
+
status: ConsolidatedTransferStatus;
|
|
387
|
+
/** Notes/observations from the transfer (combined from all items) */
|
|
388
|
+
notes: string;
|
|
389
|
+
/** Items in this transfer */
|
|
364
390
|
items: ConsolidatedTransferItem[];
|
|
391
|
+
/** Number of distinct items */
|
|
365
392
|
totalItems: number;
|
|
393
|
+
/** Sum of all quantities */
|
|
366
394
|
totalQuantity: number;
|
|
395
|
+
/** Sum of all item values */
|
|
367
396
|
totalValue: number;
|
|
368
|
-
|
|
397
|
+
/** QVET transfer IDs for exit leg */
|
|
398
|
+
exitTransferIds: number[];
|
|
399
|
+
/** QVET transfer IDs for entry leg */
|
|
400
|
+
entryTransferIds: number[];
|
|
369
401
|
}
|
|
370
402
|
/**
|
|
371
403
|
* Paginated list of consolidated transfers
|