hvp-shared 6.7.0 → 6.8.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.
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Represents one line item in a sale transaction
|
|
10
10
|
*/
|
|
11
11
|
export interface QvetSaleResponse {
|
|
12
|
-
|
|
12
|
+
id: string;
|
|
13
13
|
date: string;
|
|
14
14
|
warehouse: string;
|
|
15
15
|
subtotal: number;
|
|
@@ -90,7 +90,7 @@ export interface QvetSalesQueryParams {
|
|
|
90
90
|
year?: number;
|
|
91
91
|
month?: number;
|
|
92
92
|
halfMonth?: 1 | 2;
|
|
93
|
-
|
|
93
|
+
branch?: string;
|
|
94
94
|
section?: string;
|
|
95
95
|
family?: string;
|
|
96
96
|
qvetCode?: number;
|
|
@@ -104,7 +104,7 @@ export interface QvetSalesQueryParams {
|
|
|
104
104
|
* Represents one line item in a purchase transaction
|
|
105
105
|
*/
|
|
106
106
|
export interface QvetPurchaseResponse {
|
|
107
|
-
|
|
107
|
+
id: string;
|
|
108
108
|
qvetCode: number;
|
|
109
109
|
productName: string;
|
|
110
110
|
barcode: string;
|
|
@@ -129,6 +129,7 @@ export interface QvetPurchaseResponse {
|
|
|
129
129
|
orderNumber: number | null;
|
|
130
130
|
invoiceDate: string | null;
|
|
131
131
|
reference: string;
|
|
132
|
+
brand: string;
|
|
132
133
|
syncedAt: string;
|
|
133
134
|
}
|
|
134
135
|
/**
|
|
@@ -183,7 +184,7 @@ export interface QvetPurchasesQueryParams {
|
|
|
183
184
|
year?: number;
|
|
184
185
|
month?: number;
|
|
185
186
|
halfMonth?: 1 | 2;
|
|
186
|
-
|
|
187
|
+
branch?: string;
|
|
187
188
|
section?: string;
|
|
188
189
|
family?: string;
|
|
189
190
|
supplier?: string;
|
|
@@ -192,3 +193,78 @@ export interface QvetPurchasesQueryParams {
|
|
|
192
193
|
skip?: number;
|
|
193
194
|
sort?: string;
|
|
194
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* Single movement record from QVET
|
|
198
|
+
* Represents an inventory movement (sale, purchase, transfer, adjustment, etc.)
|
|
199
|
+
*/
|
|
200
|
+
export interface QvetMovementResponse {
|
|
201
|
+
id: string;
|
|
202
|
+
date: string;
|
|
203
|
+
warehouse: string;
|
|
204
|
+
movementType: string;
|
|
205
|
+
quantity: number;
|
|
206
|
+
runningStock: number;
|
|
207
|
+
staffName: string;
|
|
208
|
+
counterparty: string;
|
|
209
|
+
qvetCode: number;
|
|
210
|
+
productName: string;
|
|
211
|
+
section: string;
|
|
212
|
+
family: string;
|
|
213
|
+
subfamily: string;
|
|
214
|
+
conversionFactor: number;
|
|
215
|
+
lastPurchaseCost: number;
|
|
216
|
+
avgPurchaseCost: number;
|
|
217
|
+
batchReference: string | null;
|
|
218
|
+
expirationDate: string | null;
|
|
219
|
+
branch: string;
|
|
220
|
+
syncedAt: string;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Paginated list of movements
|
|
224
|
+
*/
|
|
225
|
+
export interface QvetMovementsListResponse {
|
|
226
|
+
ok: boolean;
|
|
227
|
+
data: QvetMovementResponse[];
|
|
228
|
+
pagination: {
|
|
229
|
+
total: number;
|
|
230
|
+
limit: number;
|
|
231
|
+
skip: number;
|
|
232
|
+
hasMore: boolean;
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Movements summary statistics for a period
|
|
237
|
+
*/
|
|
238
|
+
export interface QvetMovementsSummaryResponse {
|
|
239
|
+
ok: boolean;
|
|
240
|
+
data: {
|
|
241
|
+
totalRecords: number;
|
|
242
|
+
totalQuantityIn: number;
|
|
243
|
+
totalQuantityOut: number;
|
|
244
|
+
uniqueProducts: number;
|
|
245
|
+
byMovementType: Array<{
|
|
246
|
+
type: string;
|
|
247
|
+
count: number;
|
|
248
|
+
totalQuantity: number;
|
|
249
|
+
}>;
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Query parameters for movements endpoint
|
|
254
|
+
*/
|
|
255
|
+
export interface QvetMovementsQueryParams {
|
|
256
|
+
startDate?: string;
|
|
257
|
+
endDate?: string;
|
|
258
|
+
year?: number;
|
|
259
|
+
month?: number;
|
|
260
|
+
quarter?: 1 | 2 | 3 | 4;
|
|
261
|
+
branch?: string;
|
|
262
|
+
warehouse?: string;
|
|
263
|
+
movementType?: string;
|
|
264
|
+
section?: string;
|
|
265
|
+
family?: string;
|
|
266
|
+
qvetCode?: number;
|
|
267
|
+
limit?: number;
|
|
268
|
+
skip?: number;
|
|
269
|
+
sort?: string;
|
|
270
|
+
}
|