@zauru-sdk/types 1.0.31 → 1.0.49
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.
- package/dist/cjs/Custom.types.js +24 -0
- package/dist/cjs/GraphQL.types.js +2 -0
- package/dist/cjs/index.js +18 -0
- package/dist/esm/Custom.types.js +24 -0
- package/dist/esm/GraphQL.types.js +2 -0
- package/dist/esm/index.js +18 -0
- package/package.json +11 -8
- package/CHANGELOG.md +0 -64
- package/src/Custom.types.ts +0 -720
- package/src/GraphQL.types.ts +0 -696
- package/src/index.ts +0 -2
- package/tsconfig.json +0 -23
package/src/Custom.types.ts
DELETED
|
@@ -1,720 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EmployeeGraphQL,
|
|
3
|
-
ItemGraphQL,
|
|
4
|
-
LotGraphQL,
|
|
5
|
-
LotStockGraphQL,
|
|
6
|
-
MembershipGraphQL,
|
|
7
|
-
MovementGraphQL,
|
|
8
|
-
PriceListGraphQL,
|
|
9
|
-
ProfileGraphQL,
|
|
10
|
-
PurchaseOrderDetailsGraphQL,
|
|
11
|
-
PurchaseOrderGraphQL,
|
|
12
|
-
ShipmentGraphQL,
|
|
13
|
-
SuggestedPriceGraphQL,
|
|
14
|
-
} from "./GraphQL.types";
|
|
15
|
-
|
|
16
|
-
export type SpecialItem = {
|
|
17
|
-
item: number;
|
|
18
|
-
provider: number;
|
|
19
|
-
region: string;
|
|
20
|
-
fechaEliminacion: string;
|
|
21
|
-
detalles: string;
|
|
22
|
-
tipo: string;
|
|
23
|
-
providerCategory: number;
|
|
24
|
-
specialLabel: string;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export type ExtendedInsertBookingBody = {
|
|
28
|
-
movements: Partial<MovementGraphQL>[];
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export type InsertBookingBody = Omit<Partial<ShipmentGraphQL>, "movements"> &
|
|
32
|
-
ExtendedInsertBookingBody;
|
|
33
|
-
|
|
34
|
-
export type ConsolidatePurchaseOrderAttributes = {
|
|
35
|
-
[index: number]: {
|
|
36
|
-
consolidated: string;
|
|
37
|
-
id: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export type NewConsolidatedBody = {
|
|
42
|
-
consolidate: {
|
|
43
|
-
name: string;
|
|
44
|
-
description: string;
|
|
45
|
-
purchase_orders_attributes: ConsolidatePurchaseOrderAttributes;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export type HTMLDataTableDeliveries = {
|
|
50
|
-
draw: number;
|
|
51
|
-
recordsTotal: number;
|
|
52
|
-
recordsFiltered: number;
|
|
53
|
-
data: Array<DeliveryHTMLDataTable>;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export type DeliveryHTMLDataTable = {
|
|
57
|
-
zid: string;
|
|
58
|
-
id: string;
|
|
59
|
-
ref: string;
|
|
60
|
-
nt: string;
|
|
61
|
-
pd: string;
|
|
62
|
-
dt: string;
|
|
63
|
-
af: string;
|
|
64
|
-
af_id: number;
|
|
65
|
-
at: string;
|
|
66
|
-
at_id: number;
|
|
67
|
-
d: string;
|
|
68
|
-
i: number;
|
|
69
|
-
m: string;
|
|
70
|
-
mem: string;
|
|
71
|
-
ra: string;
|
|
72
|
-
DT_RowId: string;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export type DischargeDetailsAttributes = {
|
|
76
|
-
[index: number]: {
|
|
77
|
-
purchase_order_id: number;
|
|
78
|
-
amount: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export type NewDischargeBody = {
|
|
83
|
-
discharge: {
|
|
84
|
-
id_number: string;
|
|
85
|
-
payee_id: number | string;
|
|
86
|
-
date: string;
|
|
87
|
-
discharge_method_id: number | string;
|
|
88
|
-
discharge_details_attributes: DischargeDetailsAttributes;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
//Cuerpo del update y create
|
|
93
|
-
export type LoteRecordBody = {
|
|
94
|
-
lote_id: string;
|
|
95
|
-
agency_id: string;
|
|
96
|
-
lote_name: string;
|
|
97
|
-
created_at: string;
|
|
98
|
-
employee_id: string;
|
|
99
|
-
employee_name: string;
|
|
100
|
-
retenido: number;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export type UpdateLoteBody = {
|
|
104
|
-
lot: {
|
|
105
|
-
description: string;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
//Modelo para utilizarse en la app
|
|
109
|
-
export type LoteWithPurchaseFormatedSchema =
|
|
110
|
-
PurchasesDataTableListFormatedSchema & {
|
|
111
|
-
//del lote
|
|
112
|
-
id_lote: number;
|
|
113
|
-
name_lote: string;
|
|
114
|
-
item: string;
|
|
115
|
-
created_at: string;
|
|
116
|
-
weight: string;
|
|
117
|
-
baskets: number;
|
|
118
|
-
editable: boolean;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
//Modelo para el detalle del lote
|
|
122
|
-
export type LoteDescription = {
|
|
123
|
-
id: number;
|
|
124
|
-
active: boolean;
|
|
125
|
-
name: string;
|
|
126
|
-
description: string;
|
|
127
|
-
description_baskets: BasketSchema[];
|
|
128
|
-
//Aquí se guarda la suma de todas las canastas, ejemplo:
|
|
129
|
-
//12-23344-VERDE y 2-2342-AZUL = suma = 14 canastas
|
|
130
|
-
baskets_quantity: number;
|
|
131
|
-
//Aquí se guarda el peso promedio por canastas, calculado con el available / la cantidad de canastas
|
|
132
|
-
availableByBaskets: number;
|
|
133
|
-
entity_id: number;
|
|
134
|
-
created_at: string;
|
|
135
|
-
updated_at: string;
|
|
136
|
-
item_id: number;
|
|
137
|
-
expires: string;
|
|
138
|
-
id_number: number | null;
|
|
139
|
-
stock_actual: LotStockGraphQL;
|
|
140
|
-
stocks: {
|
|
141
|
-
//available, outgoing, incoming
|
|
142
|
-
[key: string]: LotStockGraphQL | string;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
//Modelo que devuelve la API
|
|
147
|
-
export type LoteSchema = {
|
|
148
|
-
id: number;
|
|
149
|
-
lot_id: number;
|
|
150
|
-
entity_id: number;
|
|
151
|
-
agency_id: number;
|
|
152
|
-
available: string;
|
|
153
|
-
incoming: string;
|
|
154
|
-
outgoing: string;
|
|
155
|
-
created_at: string;
|
|
156
|
-
updated_at: string;
|
|
157
|
-
baskets: BasketSchema[];
|
|
158
|
-
availableByBasket: number;
|
|
159
|
-
baskets_quantity: number;
|
|
160
|
-
lot: {
|
|
161
|
-
id: number;
|
|
162
|
-
active: boolean;
|
|
163
|
-
name: string;
|
|
164
|
-
description: string;
|
|
165
|
-
entity_id: number;
|
|
166
|
-
created_at: string;
|
|
167
|
-
updated_at: string;
|
|
168
|
-
item_id: number;
|
|
169
|
-
expires: string;
|
|
170
|
-
id_number: number | null;
|
|
171
|
-
item: ItemGraphQL;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
export type LoteProcesadoSchema = {
|
|
176
|
-
lote_id: string;
|
|
177
|
-
lote_name: string;
|
|
178
|
-
delivery_date: string;
|
|
179
|
-
purchase_date: string;
|
|
180
|
-
proveedor: string;
|
|
181
|
-
recepcion: string;
|
|
182
|
-
verdura: string;
|
|
183
|
-
pesoNeto: string;
|
|
184
|
-
canastas: string;
|
|
185
|
-
pesoNetoPorCanasta: string;
|
|
186
|
-
rechazo: string;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
export type PoBasketType = {
|
|
190
|
-
[key: string]: {
|
|
191
|
-
lot_id: string;
|
|
192
|
-
rBaskets: number;
|
|
193
|
-
qcBaskets: number;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
export type ItemAssociatedLots = {
|
|
198
|
-
lots: LotGraphQL[];
|
|
199
|
-
item: ItemGraphQL;
|
|
200
|
-
recepciones_basket_item_id: number;
|
|
201
|
-
poBasket: PoBasketType;
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
//Modelo con el cuál responde el backend
|
|
205
|
-
export type MotivoRechazo = {
|
|
206
|
-
Nombre: string;
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
export type RegisterMotivosRechazoBody = {
|
|
210
|
-
Canastas?: string;
|
|
211
|
-
Razon_primaria: string;
|
|
212
|
-
Razon_secundaria: string;
|
|
213
|
-
Razon_terciaria: string;
|
|
214
|
-
Otras_razones?: string;
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
export type CreatePriceListBody = Partial<PriceListGraphQL> & {
|
|
218
|
-
payee_category_ids: string[];
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
export type ProfileResponse = {
|
|
222
|
-
profile: ProfileGraphQL;
|
|
223
|
-
memberships: MembershipGraphQL[];
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
export type PurchasesListResponseSchema<T> = {
|
|
227
|
-
draw: number;
|
|
228
|
-
recordsTotal: number;
|
|
229
|
-
recordsFiltered: number;
|
|
230
|
-
data: T[];
|
|
231
|
-
vendors?: BasicIdNameSchema[];
|
|
232
|
-
vendor_categories?: BasicIdNameSchema[];
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
//Schema con el que responde la api de la orden de compra
|
|
236
|
-
export type HTMLPurchasesListSchema = {
|
|
237
|
-
z: string;
|
|
238
|
-
i: string;
|
|
239
|
-
ref: string;
|
|
240
|
-
dte: string;
|
|
241
|
-
o: string;
|
|
242
|
-
ven: string;
|
|
243
|
-
inv: string;
|
|
244
|
-
ct: string;
|
|
245
|
-
itms: 1;
|
|
246
|
-
tot: string;
|
|
247
|
-
due: string;
|
|
248
|
-
r: string;
|
|
249
|
-
r2: string;
|
|
250
|
-
DT_RowId: string;
|
|
251
|
-
dis: string;
|
|
252
|
-
och: string | null;
|
|
253
|
-
rd: string;
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
export type PurchasesDataTableListFormatedSchema = {
|
|
257
|
-
id: string;
|
|
258
|
-
zid: string;
|
|
259
|
-
id_number: number;
|
|
260
|
-
no_orden: number;
|
|
261
|
-
dte: Date;
|
|
262
|
-
o: boolean;
|
|
263
|
-
vendor: string;
|
|
264
|
-
po_editable: boolean;
|
|
265
|
-
dis: number;
|
|
266
|
-
och: number;
|
|
267
|
-
rd: string;
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
export type UpdatePurchaseOrderBody = {
|
|
271
|
-
purchase_order: {
|
|
272
|
-
discount?: number;
|
|
273
|
-
other_charges?: number;
|
|
274
|
-
payee_id?: number | string;
|
|
275
|
-
purchase_order_details_attributes?: {
|
|
276
|
-
[key: string]: {
|
|
277
|
-
id?: string | number;
|
|
278
|
-
unit_cost: string | number;
|
|
279
|
-
item_id: string | number;
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
export type PurchaseOrderReceptionDetails = {
|
|
286
|
-
id: number;
|
|
287
|
-
purchase_order_detail_id: number;
|
|
288
|
-
reception_id: number;
|
|
289
|
-
quantity: string;
|
|
290
|
-
item_id: number;
|
|
291
|
-
lot_delivered_quantity: string[];
|
|
292
|
-
lot_name: string[];
|
|
293
|
-
lot_expire: string[];
|
|
294
|
-
serial_name?: any;
|
|
295
|
-
serial_description?: any;
|
|
296
|
-
lot_description: string[];
|
|
297
|
-
bundle_id?: any;
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
export type PurchaseOrderReception = {
|
|
301
|
-
id: number;
|
|
302
|
-
agency_id: string;
|
|
303
|
-
entity_id: string;
|
|
304
|
-
invoice_number?: any;
|
|
305
|
-
reception_details: PurchaseOrderReceptionDetails[];
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
export type NewPurchaseOrderResponse = {
|
|
309
|
-
purchase_order: PurchaseOrderGraphQL;
|
|
310
|
-
purchasers: EmployeeGraphQL[];
|
|
311
|
-
purchasersList: SelectFieldOption[];
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
export type PurchaseOrderGeneralInfo = {
|
|
315
|
-
incoterm_id: number;
|
|
316
|
-
currency_id: number;
|
|
317
|
-
charge_term_id: number;
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
export type ExtendedPurchaseOrderBody = {
|
|
321
|
-
payee_info: string;
|
|
322
|
-
tag_ids: string[];
|
|
323
|
-
purchase_order_details: Partial<PurchaseOrderDetailsGraphQL>[];
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
export type CreateNewPurchaseOrderBody = Omit<
|
|
327
|
-
Partial<PurchaseOrderGraphQL>,
|
|
328
|
-
"purchase_order_details"
|
|
329
|
-
> &
|
|
330
|
-
ExtendedPurchaseOrderBody;
|
|
331
|
-
|
|
332
|
-
export type SelectFieldOption = { value: any; label: string };
|
|
333
|
-
|
|
334
|
-
export type DataTablesFilterBody = {
|
|
335
|
-
start: number;
|
|
336
|
-
length: number;
|
|
337
|
-
tag?: string;
|
|
338
|
-
agency?: string;
|
|
339
|
-
agency_from?: string;
|
|
340
|
-
search?: {
|
|
341
|
-
value: string;
|
|
342
|
-
regex: boolean;
|
|
343
|
-
};
|
|
344
|
-
order: { [key: string]: { column: string; dir: string } };
|
|
345
|
-
Desde?: string;
|
|
346
|
-
Hasta?: string;
|
|
347
|
-
vendor?: string;
|
|
348
|
-
vendor_category?: string;
|
|
349
|
-
item?: string;
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
export type BasicIdNameSchema = {
|
|
353
|
-
id: number;
|
|
354
|
-
name: string;
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
export type ObjectKeyString<T> = {
|
|
358
|
-
[key: string]: T;
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
export type GeneratePDFBody = {
|
|
362
|
-
s_date: string;
|
|
363
|
-
e_date: string;
|
|
364
|
-
print_template: number | string;
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
export type GeneratedPDFResult = { status: number; zid: number };
|
|
368
|
-
|
|
369
|
-
export type PDFResult = {
|
|
370
|
-
status: number;
|
|
371
|
-
percentage: number;
|
|
372
|
-
message: string;
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
export type GenericStepResponse = { msg: string; step: string };
|
|
376
|
-
|
|
377
|
-
export type BasketSchema = {
|
|
378
|
-
total: number;
|
|
379
|
-
id: number;
|
|
380
|
-
color: string;
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
export interface ReceptionDetailsAttributes {
|
|
384
|
-
[key: string]: {
|
|
385
|
-
item_id: string | number;
|
|
386
|
-
purchase_order_detail_id: string | number;
|
|
387
|
-
lot_delivered_quantity: string[] | number[];
|
|
388
|
-
lot_name: string[];
|
|
389
|
-
lot_expire: string[];
|
|
390
|
-
lot_description: string[];
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
export type NewReceptionBody = {
|
|
395
|
-
reception: {
|
|
396
|
-
agency_id: string | number;
|
|
397
|
-
received_at: string;
|
|
398
|
-
invoice_number?: string;
|
|
399
|
-
purchase_order_id: string | number;
|
|
400
|
-
needs_transit: string | boolean;
|
|
401
|
-
entity_id: string | number;
|
|
402
|
-
reception_details_attributes: ReceptionDetailsAttributes;
|
|
403
|
-
};
|
|
404
|
-
};
|
|
405
|
-
|
|
406
|
-
export type ItemWithPrices = ItemGraphQL & {
|
|
407
|
-
suggested_prices: Array<SuggestedPriceGraphQL>;
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
export type WebAppTableBody<T> = {
|
|
411
|
-
temp_purchase_order_id?: string;
|
|
412
|
-
webapp_row: {
|
|
413
|
-
data: T;
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
export type WebAppTableUpdateResponse = {
|
|
418
|
-
id: number;
|
|
419
|
-
webapp_table_id: number;
|
|
420
|
-
data: {
|
|
421
|
-
Nombre: string;
|
|
422
|
-
};
|
|
423
|
-
creator_id: number;
|
|
424
|
-
updater_id: number | null;
|
|
425
|
-
created_at: string;
|
|
426
|
-
updated_at: string;
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
export type WebAppTableCreateBody = {
|
|
430
|
-
name: string;
|
|
431
|
-
rows_structure: string[];
|
|
432
|
-
rows_type: string[];
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
export type GraphQLToken = {
|
|
436
|
-
status: number;
|
|
437
|
-
message: string;
|
|
438
|
-
token: string;
|
|
439
|
-
expires: string;
|
|
440
|
-
expiresMsg: string;
|
|
441
|
-
graphqlUrl: string;
|
|
442
|
-
};
|
|
443
|
-
|
|
444
|
-
export type AxiosUtilsResponse<T> = {
|
|
445
|
-
error?: boolean;
|
|
446
|
-
msg?: string;
|
|
447
|
-
userMsg?: string;
|
|
448
|
-
data?: T;
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
export type MonthsType = {
|
|
452
|
-
ene: number;
|
|
453
|
-
feb: number;
|
|
454
|
-
mar: number;
|
|
455
|
-
abr: number;
|
|
456
|
-
may: number;
|
|
457
|
-
jun: number;
|
|
458
|
-
jul: number;
|
|
459
|
-
ago: number;
|
|
460
|
-
sep: number;
|
|
461
|
-
oct: number;
|
|
462
|
-
nov: number;
|
|
463
|
-
dic: number;
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
export const MONTHS = {
|
|
467
|
-
ene: 0,
|
|
468
|
-
feb: 1,
|
|
469
|
-
mar: 2,
|
|
470
|
-
abr: 3,
|
|
471
|
-
may: 4,
|
|
472
|
-
jun: 5,
|
|
473
|
-
jul: 6,
|
|
474
|
-
ago: 7,
|
|
475
|
-
sep: 8,
|
|
476
|
-
oct: 9,
|
|
477
|
-
nov: 10,
|
|
478
|
-
dic: 11,
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
export type POHistoryMassive = {
|
|
482
|
-
id: number;
|
|
483
|
-
finalizada?: boolean;
|
|
484
|
-
originalOtherCharges: number;
|
|
485
|
-
originalDiscount: number;
|
|
486
|
-
};
|
|
487
|
-
|
|
488
|
-
export type BitacoraPOMassive = {
|
|
489
|
-
accion: string;
|
|
490
|
-
discount?: number | string;
|
|
491
|
-
other_charges?: number | string;
|
|
492
|
-
payeeCategoryId?: number | string;
|
|
493
|
-
itemId?: number | string;
|
|
494
|
-
fechaDesde?: string;
|
|
495
|
-
fechaHasta?: string;
|
|
496
|
-
purchaseOrders: POHistoryMassive[];
|
|
497
|
-
modificadoPor: string;
|
|
498
|
-
fechaCreacion: string;
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
//Modelo con el cuál responde el backend
|
|
502
|
-
export type ConsolidatedHistory = {
|
|
503
|
-
creadoPor: string;
|
|
504
|
-
fechaCreacion: string;
|
|
505
|
-
grupos: ConsolidateGroup[];
|
|
506
|
-
pdfLink: string;
|
|
507
|
-
};
|
|
508
|
-
|
|
509
|
-
export type ConsolidateGroup = {
|
|
510
|
-
purchaseOrderIds: number[];
|
|
511
|
-
payeeId: number;
|
|
512
|
-
finalizado: boolean;
|
|
513
|
-
msgError: string;
|
|
514
|
-
consolidatedId: number;
|
|
515
|
-
payeeName: string;
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
export type CostoSemanalSpecialItem = {
|
|
519
|
-
specialItemId: number;
|
|
520
|
-
lunMar: number;
|
|
521
|
-
mieJue: number;
|
|
522
|
-
vieSabDom: number;
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
export type PurchaseOrderCosto = {
|
|
526
|
-
id: number;
|
|
527
|
-
finalizado?: boolean;
|
|
528
|
-
msgResultado?: string;
|
|
529
|
-
fecha: string;
|
|
530
|
-
purchase_order_details: {
|
|
531
|
-
id: number;
|
|
532
|
-
item_id: number;
|
|
533
|
-
unit_cost: number;
|
|
534
|
-
}[];
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
export type CostoSemanal = {
|
|
538
|
-
item: number;
|
|
539
|
-
lunMar: number;
|
|
540
|
-
mieJue: number;
|
|
541
|
-
vieSabDom: number;
|
|
542
|
-
};
|
|
543
|
-
|
|
544
|
-
export type BitacoraCostosItems = {
|
|
545
|
-
costos: CostoSemanal[];
|
|
546
|
-
costosEspeciales: CostoSemanalSpecialItem[];
|
|
547
|
-
costosActualizados: PurchaseOrderCosto[];
|
|
548
|
-
costosEspecialesActualizados: PurchaseOrderCosto[];
|
|
549
|
-
fechas: {
|
|
550
|
-
lunes: string;
|
|
551
|
-
martes: string;
|
|
552
|
-
miercoles: string;
|
|
553
|
-
jueves: string;
|
|
554
|
-
viernes: string;
|
|
555
|
-
sabado: string;
|
|
556
|
-
domingo: string;
|
|
557
|
-
};
|
|
558
|
-
accion: string;
|
|
559
|
-
modificadoPor: string;
|
|
560
|
-
fechaCreacion: string;
|
|
561
|
-
};
|
|
562
|
-
|
|
563
|
-
//Modelo con el cuál responde el backend
|
|
564
|
-
export type DischargeHistory = {
|
|
565
|
-
creadoPor: string;
|
|
566
|
-
fechaCreacion: string;
|
|
567
|
-
grupos: DischargeGroup[];
|
|
568
|
-
pdfLink: string;
|
|
569
|
-
initialIdNumber: string;
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
export type DischargeGroup = {
|
|
573
|
-
purchaseOrders: { id: number; due: string }[];
|
|
574
|
-
discharge_id: number;
|
|
575
|
-
finalizado: boolean;
|
|
576
|
-
msgError: string;
|
|
577
|
-
description: string;
|
|
578
|
-
payee_id: number;
|
|
579
|
-
id_number: string;
|
|
580
|
-
};
|
|
581
|
-
|
|
582
|
-
export type TransformedObject = {
|
|
583
|
-
form_submission_values_attributes: {
|
|
584
|
-
[key: string]: {
|
|
585
|
-
form_field_id: string;
|
|
586
|
-
value: string;
|
|
587
|
-
groups_path: string;
|
|
588
|
-
};
|
|
589
|
-
};
|
|
590
|
-
form_id: number;
|
|
591
|
-
document_id: string;
|
|
592
|
-
document_type: string;
|
|
593
|
-
reference: string;
|
|
594
|
-
zid: number;
|
|
595
|
-
id_number?: string;
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
export const UNIDADES_DE_MEDIDA = [
|
|
599
|
-
{ label: "Frasco", value: "frasco", stocks_only_integer: false },
|
|
600
|
-
{ label: "Bolsa", value: "bolsa", stocks_only_integer: false },
|
|
601
|
-
{ label: "Paquete", value: "paquete", stocks_only_integer: false },
|
|
602
|
-
{ label: "Caja", value: "caja", stocks_only_integer: false },
|
|
603
|
-
{ label: "Unidades", value: "unidades", stocks_only_integer: true },
|
|
604
|
-
];
|
|
605
|
-
|
|
606
|
-
export type SearchItemParams = {
|
|
607
|
-
start: string;
|
|
608
|
-
length: string;
|
|
609
|
-
search: { value: string; regex: "false" | "true" };
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
export type HTMLItemListSchema = {
|
|
613
|
-
zid: string;
|
|
614
|
-
cod: string;
|
|
615
|
-
act: string;
|
|
616
|
-
name: string;
|
|
617
|
-
stck: string;
|
|
618
|
-
sell: string;
|
|
619
|
-
purch: string;
|
|
620
|
-
cat: string;
|
|
621
|
-
cat_note: string;
|
|
622
|
-
vat: string;
|
|
623
|
-
warr: string;
|
|
624
|
-
ra: string;
|
|
625
|
-
DT_RowId: string;
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
export type ResponseItemList = {
|
|
629
|
-
draw: number;
|
|
630
|
-
recordsTotal: number;
|
|
631
|
-
recordsFiltered: number;
|
|
632
|
-
data: Array<HTMLItemListSchema>;
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
export type ItemDataTable = {
|
|
636
|
-
zid: number;
|
|
637
|
-
itemId: number;
|
|
638
|
-
name: string;
|
|
639
|
-
stck: string | null;
|
|
640
|
-
act: string | null;
|
|
641
|
-
sell: string | null;
|
|
642
|
-
purch: string | null;
|
|
643
|
-
vat: string | null;
|
|
644
|
-
cat: string;
|
|
645
|
-
warr: string;
|
|
646
|
-
cat_note: string;
|
|
647
|
-
DT_RowId: number;
|
|
648
|
-
};
|
|
649
|
-
|
|
650
|
-
//Modelo con el cuál responde el backend
|
|
651
|
-
export type Template = {
|
|
652
|
-
hoja: string;
|
|
653
|
-
nombre: string;
|
|
654
|
-
version: number;
|
|
655
|
-
etiqueta: string;
|
|
656
|
-
creadoPor: string;
|
|
657
|
-
fechaCreacion: string;
|
|
658
|
-
marginTop: number;
|
|
659
|
-
marginLeft: number;
|
|
660
|
-
verticalGap: number;
|
|
661
|
-
horizontalGap: number;
|
|
662
|
-
templateBorder: number;
|
|
663
|
-
pageBorder: number;
|
|
664
|
-
barCodeHeight: number;
|
|
665
|
-
};
|
|
666
|
-
|
|
667
|
-
export type HistoryTemplate = Template & {
|
|
668
|
-
id_plantilla: number;
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
//Modelo con el cuál responde el backend
|
|
672
|
-
export type TipoMuestra = {
|
|
673
|
-
creadoPor: string;
|
|
674
|
-
fechaCreacion: string;
|
|
675
|
-
nombre: string;
|
|
676
|
-
agency_id: string;
|
|
677
|
-
description: string;
|
|
678
|
-
};
|
|
679
|
-
|
|
680
|
-
export type RejectionWebAppTableObject = {
|
|
681
|
-
webapp_table: {
|
|
682
|
-
[key: string]: string;
|
|
683
|
-
};
|
|
684
|
-
rejection_select: { value: string; label: string }[];
|
|
685
|
-
rejection_list: string[];
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
export type ReceptionType = { Codigo: string; Nombre: string };
|
|
689
|
-
|
|
690
|
-
//Modelo con el cuál responde el backend
|
|
691
|
-
export type QueueFormReceptionWebAppTable = {
|
|
692
|
-
creadoPor: string;
|
|
693
|
-
fechaCreacion: string;
|
|
694
|
-
formSubmited: any;
|
|
695
|
-
estado: string;
|
|
696
|
-
agency_id: number;
|
|
697
|
-
description: string;
|
|
698
|
-
};
|
|
699
|
-
|
|
700
|
-
export type RowDataType = {
|
|
701
|
-
id: any;
|
|
702
|
-
[key: string]: any;
|
|
703
|
-
};
|
|
704
|
-
|
|
705
|
-
export type GenericDynamicTableColumn = {
|
|
706
|
-
name: string;
|
|
707
|
-
label: string;
|
|
708
|
-
type: "checkbox" | "textField" | "selectField" | "label";
|
|
709
|
-
integer?: boolean;
|
|
710
|
-
options?: SelectFieldOption[];
|
|
711
|
-
loadingOptions?: boolean;
|
|
712
|
-
textFieldType?: "number";
|
|
713
|
-
width?: number;
|
|
714
|
-
disabled?: boolean;
|
|
715
|
-
onChange?: (
|
|
716
|
-
row: RowDataType,
|
|
717
|
-
value: any,
|
|
718
|
-
setTableValue: (columnName: string, newValue: any) => void
|
|
719
|
-
) => void;
|
|
720
|
-
};
|