hvp-shared 7.0.0 → 7.1.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.
@@ -8,7 +8,6 @@
8
8
  * Job types for QVET sync operations
9
9
  */
10
10
  export declare enum JobType {
11
- SYNC_SALES = "SYNC_SALES",
12
11
  SYNC_PURCHASES = "SYNC_PURCHASES",
13
12
  SYNC_INVENTORY = "SYNC_INVENTORY",
14
13
  SYNC_TRANSFERS = "SYNC_TRANSFERS",
@@ -18,7 +17,6 @@ export declare enum JobType {
18
17
  SYNC_CASH_FLOWS = "SYNC_CASH_FLOWS",
19
18
  SYNC_PURCHASE_INVOICES = "SYNC_PURCHASE_INVOICES",
20
19
  SYNC_PURCHASE_ORDERS = "SYNC_PURCHASE_ORDERS",
21
- SYNC_STOCK_CONFIG = "SYNC_STOCK_CONFIG",
22
20
  SYNC_CATALOG = "SYNC_CATALOG",
23
21
  SYNC_SUPPLIERS = "SYNC_SUPPLIERS",
24
22
  SYNC_CLIENTS = "SYNC_CLIENTS",
@@ -38,8 +36,6 @@ export declare enum JobType {
38
36
  * Each report type has specific parameter requirements.
39
37
  */
40
38
  export declare enum ReportType {
41
- /** Sales report - uses date range params */
42
- SALES = "SALES",
43
39
  /** Purchases report - uses date range params */
44
40
  PURCHASES = "PURCHASES",
45
41
  /** Inventory movements report - uses date range params */
@@ -62,8 +58,6 @@ export declare enum ReportType {
62
58
  CLIENTS = "CLIENTS",
63
59
  /** Product catalog - no date params required */
64
60
  CATALOG = "CATALOG",
65
- /** Stock configuration - no date params required */
66
- STOCK_CONFIG = "STOCK_CONFIG",
67
61
  /** Suppliers catalog - no date params required */
68
62
  SUPPLIERS = "SUPPLIERS",
69
63
  /** Collection details (Cobros detalle) - uses date range params */
@@ -12,7 +12,6 @@ exports.JOB_STATUS_LABELS = exports.JOB_STEP_LABELS = exports.SUB_TASK_STATUS_LA
12
12
  */
13
13
  var JobType;
14
14
  (function (JobType) {
15
- JobType["SYNC_SALES"] = "SYNC_SALES";
16
15
  JobType["SYNC_PURCHASES"] = "SYNC_PURCHASES";
17
16
  JobType["SYNC_INVENTORY"] = "SYNC_INVENTORY";
18
17
  JobType["SYNC_TRANSFERS"] = "SYNC_TRANSFERS";
@@ -22,7 +21,6 @@ var JobType;
22
21
  JobType["SYNC_CASH_FLOWS"] = "SYNC_CASH_FLOWS";
23
22
  JobType["SYNC_PURCHASE_INVOICES"] = "SYNC_PURCHASE_INVOICES";
24
23
  JobType["SYNC_PURCHASE_ORDERS"] = "SYNC_PURCHASE_ORDERS";
25
- JobType["SYNC_STOCK_CONFIG"] = "SYNC_STOCK_CONFIG";
26
24
  JobType["SYNC_CATALOG"] = "SYNC_CATALOG";
27
25
  JobType["SYNC_SUPPLIERS"] = "SYNC_SUPPLIERS";
28
26
  JobType["SYNC_CLIENTS"] = "SYNC_CLIENTS";
@@ -43,8 +41,6 @@ var JobType;
43
41
  */
44
42
  var ReportType;
45
43
  (function (ReportType) {
46
- /** Sales report - uses date range params */
47
- ReportType["SALES"] = "SALES";
48
44
  /** Purchases report - uses date range params */
49
45
  ReportType["PURCHASES"] = "PURCHASES";
50
46
  /** Inventory movements report - uses date range params */
@@ -67,8 +63,6 @@ var ReportType;
67
63
  ReportType["CLIENTS"] = "CLIENTS";
68
64
  /** Product catalog - no date params required */
69
65
  ReportType["CATALOG"] = "CATALOG";
70
- /** Stock configuration - no date params required */
71
- ReportType["STOCK_CONFIG"] = "STOCK_CONFIG";
72
66
  /** Suppliers catalog - no date params required */
73
67
  ReportType["SUPPLIERS"] = "SUPPLIERS";
74
68
  /** Collection details (Cobros detalle) - uses date range params */
@@ -99,7 +93,6 @@ var SubTaskStatus;
99
93
  * Mapping of report types to their parameter type
100
94
  */
101
95
  exports.REPORT_PARAM_TYPES = {
102
- [ReportType.SALES]: 'date_range',
103
96
  [ReportType.PURCHASES]: 'date_range',
104
97
  [ReportType.MOVEMENTS]: 'date_range',
105
98
  [ReportType.TRANSFERS]: 'date_range',
@@ -111,7 +104,6 @@ exports.REPORT_PARAM_TYPES = {
111
104
  [ReportType.INVENTORY_SNAPSHOT]: 'snapshot',
112
105
  [ReportType.CLIENTS]: 'no_params',
113
106
  [ReportType.CATALOG]: 'no_params',
114
- [ReportType.STOCK_CONFIG]: 'no_params',
115
107
  [ReportType.SUPPLIERS]: 'no_params',
116
108
  [ReportType.COLLECTION_DETAILS]: 'date_range',
117
109
  [ReportType.SALE_DETAILS]: 'date_range',
@@ -145,7 +137,6 @@ var JobStep;
145
137
  * Human-readable labels for job types (Spanish for UI)
146
138
  */
147
139
  exports.JOB_TYPE_LABELS = {
148
- [JobType.SYNC_SALES]: 'Sincronizar Ventas',
149
140
  [JobType.SYNC_PURCHASES]: 'Sincronizar Compras',
150
141
  [JobType.SYNC_INVENTORY]: 'Sincronizar Inventario',
151
142
  [JobType.SYNC_TRANSFERS]: 'Sincronizar Traspasos',
@@ -155,13 +146,12 @@ exports.JOB_TYPE_LABELS = {
155
146
  [JobType.SYNC_CASH_FLOWS]: 'Sincronizar Entradas/Salidas',
156
147
  [JobType.SYNC_PURCHASE_INVOICES]: 'Sincronizar Facturas Compra',
157
148
  [JobType.SYNC_PURCHASE_ORDERS]: 'Sincronizar Pedidos',
158
- [JobType.SYNC_STOCK_CONFIG]: 'Sincronizar Config. Stock',
159
149
  [JobType.SYNC_CATALOG]: 'Sincronizar Catálogo',
160
150
  [JobType.SYNC_SUPPLIERS]: 'Sincronizar Proveedores',
161
151
  [JobType.SYNC_CLIENTS]: 'Sincronizar Clientes',
162
152
  [JobType.SYNC_INVENTORY_SNAPSHOT]: 'Sincronizar Snapshot Inventario',
163
153
  [JobType.SYNC_COLLECTION_DETAILS]: 'Sincronizar Cobros Detalle',
164
- [JobType.SYNC_SALE_DETAILS]: 'Sincronizar Detalle Ventas',
154
+ [JobType.SYNC_SALE_DETAILS]: 'Sincronizar Ventas',
165
155
  [JobType.SYNC_PAYABLES]: 'Sincronizar Cuentas por Pagar',
166
156
  [JobType.SYNC_STAFF]: 'Sincronizar Personal',
167
157
  [JobType.SYNC_PETS]: 'Sincronizar Mascotas',
@@ -174,7 +164,6 @@ exports.JOB_TYPE_LABELS = {
174
164
  * Human-readable labels for report types (Spanish for UI)
175
165
  */
176
166
  exports.REPORT_TYPE_LABELS = {
177
- [ReportType.SALES]: 'Ventas',
178
167
  [ReportType.PURCHASES]: 'Compras',
179
168
  [ReportType.MOVEMENTS]: 'Movimientos',
180
169
  [ReportType.TRANSFERS]: 'Traspasos',
@@ -186,10 +175,9 @@ exports.REPORT_TYPE_LABELS = {
186
175
  [ReportType.INVENTORY_SNAPSHOT]: 'Cortes de Inventario',
187
176
  [ReportType.CLIENTS]: 'Clientes',
188
177
  [ReportType.CATALOG]: 'Catálogo',
189
- [ReportType.STOCK_CONFIG]: 'Config. Stock',
190
178
  [ReportType.SUPPLIERS]: 'Proveedores',
191
179
  [ReportType.COLLECTION_DETAILS]: 'Cobros Detalle',
192
- [ReportType.SALE_DETAILS]: 'Detalle Ventas',
180
+ [ReportType.SALE_DETAILS]: 'Ventas',
193
181
  [ReportType.PAYABLES]: 'Cuentas por Pagar',
194
182
  [ReportType.STAFF]: 'Personal',
195
183
  [ReportType.PETS]: 'Mascotas',
@@ -43,43 +43,6 @@ export interface QvetPaginatedResponse<T> {
43
43
  data: T[];
44
44
  pagination: QvetPagination;
45
45
  }
46
- /**
47
- * @deprecated Use QvetSaleDetailResponse instead. This type is from Report 14 which is being removed.
48
- */
49
- export interface QvetSaleResponse {
50
- id: string;
51
- date: string;
52
- warehouse: string;
53
- subtotal: number;
54
- paidAmount: number;
55
- total: number;
56
- quantity: number;
57
- discount: number;
58
- debt: number;
59
- taxAmount: number;
60
- taxRate: number;
61
- paymentMethod: string;
62
- priceList: string;
63
- qvetCode: number;
64
- productName: string;
65
- section: string;
66
- family: string;
67
- subfamily: string;
68
- isActive: boolean;
69
- hasStockControl: boolean;
70
- customerName: string;
71
- qvetCustomerId?: number;
72
- petName?: string;
73
- qvetPetId?: number;
74
- sellerName: string;
75
- sellerInitials?: string;
76
- branch: string;
77
- syncedAt: string;
78
- }
79
- /**
80
- * @deprecated Use ApiListSuccessResponse<QvetSaleResponse[]> instead.
81
- */
82
- export type QvetSalesListResponse = QvetPaginatedResponse<QvetSaleResponse>;
83
46
  /**
84
47
  * Sales summary statistics data for a period.
85
48
  * Backend wraps with: ApiSingleSuccessResponse<QvetSalesSummaryData>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvp-shared",
3
- "version": "7.0.0",
3
+ "version": "7.1.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",