hvp-shared 6.9.0 → 6.10.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.
@@ -268,3 +268,71 @@ export interface QvetMovementsQueryParams {
268
268
  skip?: number;
269
269
  sort?: string;
270
270
  }
271
+ /**
272
+ * Single transfer record from QVET
273
+ * Represents an inter-warehouse transfer
274
+ */
275
+ export interface QvetTransferResponse {
276
+ id: string;
277
+ transferId: number;
278
+ date: string;
279
+ productName: string;
280
+ sourceWarehouse: string;
281
+ targetWarehouse: string;
282
+ quantity: number;
283
+ conversionFactor: number;
284
+ initialStockSource: number;
285
+ initialStockTarget: number;
286
+ unitCost: number;
287
+ averageCost: number;
288
+ lot: string;
289
+ lotExpiryDate: string | null;
290
+ userName: string;
291
+ responsibleSource: string;
292
+ responsibleTarget: string;
293
+ notes: string;
294
+ syncedAt: string;
295
+ }
296
+ /**
297
+ * Paginated list of transfers
298
+ */
299
+ export interface QvetTransfersListResponse {
300
+ ok: boolean;
301
+ data: QvetTransferResponse[];
302
+ pagination: {
303
+ total: number;
304
+ limit: number;
305
+ skip: number;
306
+ hasMore: boolean;
307
+ };
308
+ }
309
+ /**
310
+ * Transfers summary statistics for a period
311
+ */
312
+ export interface QvetTransfersSummaryResponse {
313
+ ok: boolean;
314
+ data: {
315
+ totalRecords: number;
316
+ totalQuantity: number;
317
+ totalValue: number;
318
+ uniqueProducts: number;
319
+ sourceWarehouses: number;
320
+ targetWarehouses: number;
321
+ };
322
+ }
323
+ /**
324
+ * Query parameters for transfers endpoint
325
+ */
326
+ export interface QvetTransfersQueryParams {
327
+ startDate?: string;
328
+ endDate?: string;
329
+ year?: number;
330
+ month?: number;
331
+ halfMonth?: 1 | 2;
332
+ sourceWarehouse?: string;
333
+ targetWarehouse?: string;
334
+ productName?: string;
335
+ limit?: number;
336
+ skip?: number;
337
+ sort?: string;
338
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvp-shared",
3
- "version": "6.9.0",
3
+ "version": "6.10.0",
4
4
  "description": "Shared types and utilities for HVP backend and frontend",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",