@gesagro/jaspion-sdk 1.0.10 → 2.0.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.
- package/README.md +62 -3
- package/dist/index.d.mts +47 -12
- package/dist/index.d.ts +47 -12
- package/dist/index.js +185 -158
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +184 -157
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
package/dist/index.mjs
CHANGED
|
@@ -1,39 +1,16 @@
|
|
|
1
|
-
// src/core/http-client.ts
|
|
2
|
-
var HttpClient = class {
|
|
3
|
-
constructor(baseUrl) {
|
|
4
|
-
this.baseUrl = baseUrl;
|
|
5
|
-
this.headers = {
|
|
6
|
-
"Content-Type": "application/json"
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
setHeader(key, value) {
|
|
10
|
-
this.headers[key] = value;
|
|
11
|
-
}
|
|
12
|
-
async post(path, body) {
|
|
13
|
-
const response = await fetch(`${this.baseUrl}${path}`, {
|
|
14
|
-
method: "POST",
|
|
15
|
-
headers: this.headers,
|
|
16
|
-
body: JSON.stringify(body)
|
|
17
|
-
});
|
|
18
|
-
if (!response.ok) {
|
|
19
|
-
throw new Error(`Request failed with status ${response.status}`);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
|
|
24
1
|
// src/core/report.ts
|
|
25
2
|
var Report = class {
|
|
26
3
|
constructor(http) {
|
|
27
4
|
this.http = http;
|
|
28
5
|
}
|
|
29
6
|
async requestPdf(input) {
|
|
30
|
-
|
|
7
|
+
await this.request({
|
|
31
8
|
...input,
|
|
32
9
|
contentType: "application/pdf"
|
|
33
10
|
});
|
|
34
11
|
}
|
|
35
12
|
async requestCsv(input) {
|
|
36
|
-
|
|
13
|
+
await this.request({
|
|
37
14
|
...input,
|
|
38
15
|
contentType: "text/csv"
|
|
39
16
|
});
|
|
@@ -48,13 +25,17 @@ var Report = class {
|
|
|
48
25
|
"text/csv": ".csv"
|
|
49
26
|
};
|
|
50
27
|
const fileName = `${this.fileName}${fileExtensions[contentType]}`;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
28
|
+
return this.http.request({
|
|
29
|
+
method: "POST",
|
|
30
|
+
path: "/reports",
|
|
31
|
+
body: {
|
|
32
|
+
template: this.template,
|
|
33
|
+
fileName,
|
|
34
|
+
parameters,
|
|
35
|
+
resources,
|
|
36
|
+
contentType,
|
|
37
|
+
type: "jasper-reports"
|
|
38
|
+
}
|
|
58
39
|
});
|
|
59
40
|
}
|
|
60
41
|
};
|
|
@@ -67,7 +48,7 @@ var BirthPlaceList = class extends Report {
|
|
|
67
48
|
this.fileName = "Listagem de proced\xEAncias";
|
|
68
49
|
}
|
|
69
50
|
async pdf(input) {
|
|
70
|
-
|
|
51
|
+
await this.requestPdf({
|
|
71
52
|
resources: this.getResources(input),
|
|
72
53
|
parameters: [
|
|
73
54
|
...this.getParameters(input),
|
|
@@ -76,7 +57,7 @@ var BirthPlaceList = class extends Report {
|
|
|
76
57
|
});
|
|
77
58
|
}
|
|
78
59
|
async csv(input) {
|
|
79
|
-
|
|
60
|
+
await this.requestCsv({
|
|
80
61
|
resources: this.getResources(input),
|
|
81
62
|
parameters: [
|
|
82
63
|
...this.getParameters(input),
|
|
@@ -100,7 +81,7 @@ var BoarByBreedList = class extends Report {
|
|
|
100
81
|
this.fileName = "Machos por ra\xE7a";
|
|
101
82
|
}
|
|
102
83
|
async pdf(input) {
|
|
103
|
-
|
|
84
|
+
await this.requestPdf({
|
|
104
85
|
resources: this.getResources(input),
|
|
105
86
|
parameters: [
|
|
106
87
|
...this.getParameters(input),
|
|
@@ -109,7 +90,7 @@ var BoarByBreedList = class extends Report {
|
|
|
109
90
|
});
|
|
110
91
|
}
|
|
111
92
|
async csv(input) {
|
|
112
|
-
|
|
93
|
+
await this.requestCsv({
|
|
113
94
|
resources: this.getResources(input),
|
|
114
95
|
parameters: [
|
|
115
96
|
...this.getParameters(input),
|
|
@@ -137,7 +118,7 @@ var BoarDeathCollectionForm = class extends Report {
|
|
|
137
118
|
this.fileName = "Morte de macho";
|
|
138
119
|
}
|
|
139
120
|
async pdf(input) {
|
|
140
|
-
|
|
121
|
+
await this.requestPdf({
|
|
141
122
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
142
123
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
143
124
|
});
|
|
@@ -152,7 +133,7 @@ var BoarDeathList = class extends Report {
|
|
|
152
133
|
this.fileName = "Mortes de machos";
|
|
153
134
|
}
|
|
154
135
|
async pdf(input) {
|
|
155
|
-
|
|
136
|
+
await this.requestPdf({
|
|
156
137
|
resources: this.getResources(input),
|
|
157
138
|
parameters: [
|
|
158
139
|
...this.getParameters(input),
|
|
@@ -161,7 +142,7 @@ var BoarDeathList = class extends Report {
|
|
|
161
142
|
});
|
|
162
143
|
}
|
|
163
144
|
async csv(input) {
|
|
164
|
-
|
|
145
|
+
await this.requestCsv({
|
|
165
146
|
resources: this.getResources(input),
|
|
166
147
|
parameters: [
|
|
167
148
|
...this.getParameters(input),
|
|
@@ -199,7 +180,7 @@ var BoarDiscardCollectionForm = class extends Report {
|
|
|
199
180
|
this.fileName = "Descarte de macho";
|
|
200
181
|
}
|
|
201
182
|
async pdf(input) {
|
|
202
|
-
|
|
183
|
+
await this.requestPdf({
|
|
203
184
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
204
185
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
205
186
|
});
|
|
@@ -214,7 +195,7 @@ var BoarDiscardList = class extends Report {
|
|
|
214
195
|
this.fileName = "Descartes de machos";
|
|
215
196
|
}
|
|
216
197
|
async pdf(input) {
|
|
217
|
-
|
|
198
|
+
await this.requestPdf({
|
|
218
199
|
resources: this.getResources(input),
|
|
219
200
|
parameters: [
|
|
220
201
|
...this.getParameters(input),
|
|
@@ -223,7 +204,7 @@ var BoarDiscardList = class extends Report {
|
|
|
223
204
|
});
|
|
224
205
|
}
|
|
225
206
|
async csv(input) {
|
|
226
|
-
|
|
207
|
+
await this.requestCsv({
|
|
227
208
|
resources: this.getResources(input),
|
|
228
209
|
parameters: [
|
|
229
210
|
...this.getParameters(input),
|
|
@@ -262,7 +243,7 @@ var BoarEarTagReplacementList = class extends Report {
|
|
|
262
243
|
this.fileName = "Trocas de brinco de macho";
|
|
263
244
|
}
|
|
264
245
|
async pdf(input) {
|
|
265
|
-
|
|
246
|
+
await this.requestPdf({
|
|
266
247
|
resources: this.getResources(input),
|
|
267
248
|
parameters: [
|
|
268
249
|
...this.getParameters(input),
|
|
@@ -271,7 +252,7 @@ var BoarEarTagReplacementList = class extends Report {
|
|
|
271
252
|
});
|
|
272
253
|
}
|
|
273
254
|
async csv(input) {
|
|
274
|
-
|
|
255
|
+
await this.requestCsv({
|
|
275
256
|
resources: this.getResources(input),
|
|
276
257
|
parameters: [
|
|
277
258
|
...this.getParameters(input),
|
|
@@ -301,7 +282,7 @@ var BoarTreatmentCollectionForm = class extends Report {
|
|
|
301
282
|
this.fileName = "Medica\xE7\xE3o / vacina\xE7\xE3o de macho";
|
|
302
283
|
}
|
|
303
284
|
async pdf(input) {
|
|
304
|
-
|
|
285
|
+
await this.requestPdf({
|
|
305
286
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
306
287
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
307
288
|
});
|
|
@@ -316,7 +297,7 @@ var BoarTreatmentList = class extends Report {
|
|
|
316
297
|
this.fileName = "Listagem de medica\xE7\xF5es / vacinas (machos)";
|
|
317
298
|
}
|
|
318
299
|
async pdf(input) {
|
|
319
|
-
|
|
300
|
+
await this.requestPdf({
|
|
320
301
|
resources: this.getResources(input),
|
|
321
302
|
parameters: [
|
|
322
303
|
...this.getParameters(input),
|
|
@@ -325,7 +306,7 @@ var BoarTreatmentList = class extends Report {
|
|
|
325
306
|
});
|
|
326
307
|
}
|
|
327
308
|
async csv(input) {
|
|
328
|
-
|
|
309
|
+
await this.requestCsv({
|
|
329
310
|
resources: this.getResources(input),
|
|
330
311
|
parameters: [
|
|
331
312
|
...this.getParameters(input),
|
|
@@ -355,7 +336,7 @@ var BoarsInventory = class extends Report {
|
|
|
355
336
|
this.fileName = "Estoque de machos";
|
|
356
337
|
}
|
|
357
338
|
async pdf(input) {
|
|
358
|
-
|
|
339
|
+
await this.requestPdf({
|
|
359
340
|
resources: this.getResources(input),
|
|
360
341
|
parameters: [
|
|
361
342
|
...this.getParameters(input),
|
|
@@ -364,7 +345,7 @@ var BoarsInventory = class extends Report {
|
|
|
364
345
|
});
|
|
365
346
|
}
|
|
366
347
|
async csv(input) {
|
|
367
|
-
|
|
348
|
+
await this.requestCsv({
|
|
368
349
|
resources: this.getResources(input),
|
|
369
350
|
parameters: [
|
|
370
351
|
...this.getParameters(input),
|
|
@@ -395,7 +376,7 @@ var BreedList = class extends Report {
|
|
|
395
376
|
this.fileName = "Listagem de ra\xE7as";
|
|
396
377
|
}
|
|
397
378
|
async pdf(input) {
|
|
398
|
-
|
|
379
|
+
await this.requestPdf({
|
|
399
380
|
resources: this.getResources(input),
|
|
400
381
|
parameters: [
|
|
401
382
|
...this.getParameters(input),
|
|
@@ -404,7 +385,7 @@ var BreedList = class extends Report {
|
|
|
404
385
|
});
|
|
405
386
|
}
|
|
406
387
|
async csv(input) {
|
|
407
|
-
|
|
388
|
+
await this.requestCsv({
|
|
408
389
|
resources: this.getResources(input),
|
|
409
390
|
parameters: [
|
|
410
391
|
...this.getParameters(input),
|
|
@@ -428,7 +409,7 @@ var BreedingMonitor = class extends Report {
|
|
|
428
409
|
this.fileName = "Monitor de Reprodu\xE7\xE3o";
|
|
429
410
|
}
|
|
430
411
|
async pdf(input) {
|
|
431
|
-
|
|
412
|
+
await this.requestPdf({
|
|
432
413
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
433
414
|
parameters: [
|
|
434
415
|
{ key: "DATE_BEGIN", value: input.dateRange.start },
|
|
@@ -448,7 +429,7 @@ var CauseList = class extends Report {
|
|
|
448
429
|
this.fileName = "Listagem de motivos";
|
|
449
430
|
}
|
|
450
431
|
async pdf(input) {
|
|
451
|
-
|
|
432
|
+
await this.requestPdf({
|
|
452
433
|
resources: this.getResources(input),
|
|
453
434
|
parameters: [
|
|
454
435
|
...this.getParameters(input),
|
|
@@ -457,7 +438,7 @@ var CauseList = class extends Report {
|
|
|
457
438
|
});
|
|
458
439
|
}
|
|
459
440
|
async csv(input) {
|
|
460
|
-
|
|
441
|
+
await this.requestCsv({
|
|
461
442
|
resources: this.getResources(input),
|
|
462
443
|
parameters: [
|
|
463
444
|
...this.getParameters(input),
|
|
@@ -487,7 +468,7 @@ var DrugList = class extends Report {
|
|
|
487
468
|
this.fileName = "Listagem de medicamentos / vacinas";
|
|
488
469
|
}
|
|
489
470
|
async pdf(input) {
|
|
490
|
-
|
|
471
|
+
await this.requestPdf({
|
|
491
472
|
resources: this.getResources(input),
|
|
492
473
|
parameters: [
|
|
493
474
|
...this.getParameters(input),
|
|
@@ -496,7 +477,7 @@ var DrugList = class extends Report {
|
|
|
496
477
|
});
|
|
497
478
|
}
|
|
498
479
|
async csv(input) {
|
|
499
|
-
|
|
480
|
+
await this.requestCsv({
|
|
500
481
|
resources: this.getResources(input),
|
|
501
482
|
parameters: [
|
|
502
483
|
...this.getParameters(input),
|
|
@@ -520,7 +501,7 @@ var EmployeeList = class extends Report {
|
|
|
520
501
|
this.fileName = "Listagem de funcion\xE1rios";
|
|
521
502
|
}
|
|
522
503
|
async pdf(input) {
|
|
523
|
-
|
|
504
|
+
await this.requestPdf({
|
|
524
505
|
resources: this.getResources(input),
|
|
525
506
|
parameters: [
|
|
526
507
|
...this.getParameters(input),
|
|
@@ -529,7 +510,7 @@ var EmployeeList = class extends Report {
|
|
|
529
510
|
});
|
|
530
511
|
}
|
|
531
512
|
async csv(input) {
|
|
532
|
-
|
|
513
|
+
await this.requestCsv({
|
|
533
514
|
resources: this.getResources(input),
|
|
534
515
|
parameters: [
|
|
535
516
|
...this.getParameters(input),
|
|
@@ -556,7 +537,7 @@ var FarmSummary = class extends Report {
|
|
|
556
537
|
this.fileName = "Fechamento de per\xEDodo";
|
|
557
538
|
}
|
|
558
539
|
async pdf(input) {
|
|
559
|
-
|
|
540
|
+
await this.requestPdf({
|
|
560
541
|
resources: this.getResources(input),
|
|
561
542
|
parameters: [
|
|
562
543
|
...this.getParameters(input),
|
|
@@ -565,7 +546,7 @@ var FarmSummary = class extends Report {
|
|
|
565
546
|
});
|
|
566
547
|
}
|
|
567
548
|
async csv(input) {
|
|
568
|
-
|
|
549
|
+
await this.requestCsv({
|
|
569
550
|
resources: this.getResources(input),
|
|
570
551
|
parameters: [
|
|
571
552
|
...this.getParameters(input),
|
|
@@ -593,7 +574,7 @@ var FarrowingAnalysis = class extends Report {
|
|
|
593
574
|
this.fileName = "An\xE1lise de partos";
|
|
594
575
|
}
|
|
595
576
|
async pdf(input) {
|
|
596
|
-
|
|
577
|
+
await this.requestPdf({
|
|
597
578
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
598
579
|
parameters: [
|
|
599
580
|
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
@@ -625,13 +606,66 @@ var FarrowingCollectionForm = class extends Report {
|
|
|
625
606
|
this.fileName = "Parto";
|
|
626
607
|
}
|
|
627
608
|
async pdf(input) {
|
|
628
|
-
|
|
609
|
+
await this.requestPdf({
|
|
629
610
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
630
611
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
631
612
|
});
|
|
632
613
|
}
|
|
633
614
|
};
|
|
634
615
|
|
|
616
|
+
// src/core/to-snake-case.ts
|
|
617
|
+
function toSnakeCase(str) {
|
|
618
|
+
return str.replace(/[A-Z]/g, (letter, index) => {
|
|
619
|
+
return index === 0 ? letter.toLowerCase() : `_${letter.toLowerCase()}`;
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
// src/namespaces/pig-master/reports/farrowing-list.ts
|
|
624
|
+
var FarrowingList = class extends Report {
|
|
625
|
+
constructor() {
|
|
626
|
+
super(...arguments);
|
|
627
|
+
this.template = "@pig-master/farrowing-list";
|
|
628
|
+
this.fileName = "Listagem de partos";
|
|
629
|
+
}
|
|
630
|
+
async pdf(input) {
|
|
631
|
+
await this.requestPdf({
|
|
632
|
+
resources: this.getResources(input),
|
|
633
|
+
parameters: [
|
|
634
|
+
...this.getParameters(input),
|
|
635
|
+
{ key: "DATA_ONLY", value: false }
|
|
636
|
+
]
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
async csv(input) {
|
|
640
|
+
await this.requestCsv({
|
|
641
|
+
resources: this.getResources(input),
|
|
642
|
+
parameters: [
|
|
643
|
+
...this.getParameters(input),
|
|
644
|
+
{ key: "DATA_ONLY", value: true }
|
|
645
|
+
]
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
getResources(input) {
|
|
649
|
+
return [{ key: "FARM_ID", value: input.farmId }];
|
|
650
|
+
}
|
|
651
|
+
getParameters(input) {
|
|
652
|
+
return [
|
|
653
|
+
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
654
|
+
{ key: "DATE_END", value: input.dateRange?.end ?? null },
|
|
655
|
+
{ key: "CALENDAR", value: input.calendarType },
|
|
656
|
+
{ key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
|
|
657
|
+
{ key: "PARITY", value: input.parity?.toString() ?? null },
|
|
658
|
+
{ key: "MATING_DATE_BEGIN", value: input.matingDateRange?.start ?? null },
|
|
659
|
+
{ key: "MATING_DATE_END", value: input.matingDateRange?.end ?? null },
|
|
660
|
+
{ key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
|
|
661
|
+
{ key: "ORIGIN_ID", value: input.originId },
|
|
662
|
+
{ key: "BREED_ID", value: input.breedId },
|
|
663
|
+
{ key: "ORDERBYDIRECTION", value: input.orderBy.direction },
|
|
664
|
+
{ key: "ORDERBYCOLUMN", value: toSnakeCase(input.orderBy.column) }
|
|
665
|
+
];
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
|
|
635
669
|
// src/namespaces/pig-master/reports/farrowing-type-list.ts
|
|
636
670
|
var FarrowingTypeList = class extends Report {
|
|
637
671
|
constructor() {
|
|
@@ -640,7 +674,7 @@ var FarrowingTypeList = class extends Report {
|
|
|
640
674
|
this.fileName = "Listagem de tipos de parto";
|
|
641
675
|
}
|
|
642
676
|
async pdf(input) {
|
|
643
|
-
|
|
677
|
+
await this.requestPdf({
|
|
644
678
|
resources: this.getResources(input),
|
|
645
679
|
parameters: [
|
|
646
680
|
...this.getParameters(input),
|
|
@@ -649,7 +683,7 @@ var FarrowingTypeList = class extends Report {
|
|
|
649
683
|
});
|
|
650
684
|
}
|
|
651
685
|
async csv(input) {
|
|
652
|
-
|
|
686
|
+
await this.requestCsv({
|
|
653
687
|
resources: this.getResources(input),
|
|
654
688
|
parameters: [
|
|
655
689
|
...this.getParameters(input),
|
|
@@ -673,7 +707,7 @@ var FemaleSwineArrivalMonitoring = class extends Report {
|
|
|
673
707
|
this.fileName = "Acompanhamento do lote";
|
|
674
708
|
}
|
|
675
709
|
async pdf(input) {
|
|
676
|
-
|
|
710
|
+
await this.requestPdf({
|
|
677
711
|
resources: this.getResources(input),
|
|
678
712
|
parameters: [
|
|
679
713
|
...this.getParameters(input),
|
|
@@ -682,7 +716,7 @@ var FemaleSwineArrivalMonitoring = class extends Report {
|
|
|
682
716
|
});
|
|
683
717
|
}
|
|
684
718
|
async csv(input) {
|
|
685
|
-
|
|
719
|
+
await this.requestCsv({
|
|
686
720
|
resources: this.getResources(input),
|
|
687
721
|
parameters: [
|
|
688
722
|
...this.getParameters(input),
|
|
@@ -713,7 +747,7 @@ var FemaleSwineByBreedList = class extends Report {
|
|
|
713
747
|
this.fileName = "F\xEAmeas por ra\xE7a";
|
|
714
748
|
}
|
|
715
749
|
async pdf(input) {
|
|
716
|
-
|
|
750
|
+
await this.requestPdf({
|
|
717
751
|
resources: this.getResources(input),
|
|
718
752
|
parameters: [
|
|
719
753
|
...this.getParameters(input),
|
|
@@ -722,7 +756,7 @@ var FemaleSwineByBreedList = class extends Report {
|
|
|
722
756
|
});
|
|
723
757
|
}
|
|
724
758
|
async csv(input) {
|
|
725
|
-
|
|
759
|
+
await this.requestCsv({
|
|
726
760
|
resources: this.getResources(input),
|
|
727
761
|
parameters: [
|
|
728
762
|
...this.getParameters(input),
|
|
@@ -754,7 +788,7 @@ var FemaleSwineByParityList = class extends Report {
|
|
|
754
788
|
this.fileName = "F\xEAmeas por cria";
|
|
755
789
|
}
|
|
756
790
|
async pdf(input) {
|
|
757
|
-
|
|
791
|
+
await this.requestPdf({
|
|
758
792
|
resources: this.getResources(input),
|
|
759
793
|
parameters: [
|
|
760
794
|
...this.getParameters(input),
|
|
@@ -763,7 +797,7 @@ var FemaleSwineByParityList = class extends Report {
|
|
|
763
797
|
});
|
|
764
798
|
}
|
|
765
799
|
async csv(input) {
|
|
766
|
-
|
|
800
|
+
await this.requestCsv({
|
|
767
801
|
resources: this.getResources(input),
|
|
768
802
|
parameters: [
|
|
769
803
|
...this.getParameters(input),
|
|
@@ -795,7 +829,7 @@ var FemaleSwineByStatusList = class extends Report {
|
|
|
795
829
|
this.fileName = "F\xEAmeas por status";
|
|
796
830
|
}
|
|
797
831
|
async pdf(input) {
|
|
798
|
-
|
|
832
|
+
await this.requestPdf({
|
|
799
833
|
resources: this.getResources(input),
|
|
800
834
|
parameters: [
|
|
801
835
|
...this.getParameters(input),
|
|
@@ -804,7 +838,7 @@ var FemaleSwineByStatusList = class extends Report {
|
|
|
804
838
|
});
|
|
805
839
|
}
|
|
806
840
|
async csv(input) {
|
|
807
|
-
|
|
841
|
+
await this.requestCsv({
|
|
808
842
|
resources: this.getResources(input),
|
|
809
843
|
parameters: [
|
|
810
844
|
...this.getParameters(input),
|
|
@@ -860,7 +894,7 @@ var FemaleSwineByTraceabilityList = class extends Report {
|
|
|
860
894
|
this.fileName = "F\xEAmeas por rastreabilidade";
|
|
861
895
|
}
|
|
862
896
|
async pdf(input) {
|
|
863
|
-
|
|
897
|
+
await this.requestPdf({
|
|
864
898
|
resources: this.getResources(input),
|
|
865
899
|
parameters: [
|
|
866
900
|
...this.getParameters(input),
|
|
@@ -869,7 +903,7 @@ var FemaleSwineByTraceabilityList = class extends Report {
|
|
|
869
903
|
});
|
|
870
904
|
}
|
|
871
905
|
async csv(input) {
|
|
872
|
-
|
|
906
|
+
await this.requestCsv({
|
|
873
907
|
resources: this.getResources(input),
|
|
874
908
|
parameters: [
|
|
875
909
|
...this.getParameters(input),
|
|
@@ -905,7 +939,7 @@ var FemaleSwineDeathAnalysis = class extends Report {
|
|
|
905
939
|
this.fileName = "An\xE1lise morte de f\xEAmeas";
|
|
906
940
|
}
|
|
907
941
|
async pdf(input) {
|
|
908
|
-
|
|
942
|
+
await this.requestPdf({
|
|
909
943
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
910
944
|
parameters: [
|
|
911
945
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -937,7 +971,7 @@ var FemaleSwineDeathCollectionForm = class extends Report {
|
|
|
937
971
|
this.fileName = "Morte de f\xEAmea";
|
|
938
972
|
}
|
|
939
973
|
async pdf(input) {
|
|
940
|
-
|
|
974
|
+
await this.requestPdf({
|
|
941
975
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
942
976
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
943
977
|
});
|
|
@@ -952,7 +986,7 @@ var FemaleSwineDeathList = class extends Report {
|
|
|
952
986
|
this.fileName = "Morte de f\xEAmeas";
|
|
953
987
|
}
|
|
954
988
|
async pdf(input) {
|
|
955
|
-
|
|
989
|
+
await this.requestPdf({
|
|
956
990
|
resources: this.getResources(input),
|
|
957
991
|
parameters: [
|
|
958
992
|
...this.getParameters(input),
|
|
@@ -961,7 +995,7 @@ var FemaleSwineDeathList = class extends Report {
|
|
|
961
995
|
});
|
|
962
996
|
}
|
|
963
997
|
async csv(input) {
|
|
964
|
-
|
|
998
|
+
await this.requestCsv({
|
|
965
999
|
resources: this.getResources(input),
|
|
966
1000
|
parameters: [
|
|
967
1001
|
...this.getParameters(input),
|
|
@@ -1001,7 +1035,7 @@ var FemaleSwineDiscardAnalysis = class extends Report {
|
|
|
1001
1035
|
this.fileName = "An\xE1lise descarte de f\xEAmeas";
|
|
1002
1036
|
}
|
|
1003
1037
|
async pdf(input) {
|
|
1004
|
-
|
|
1038
|
+
await this.requestPdf({
|
|
1005
1039
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1006
1040
|
parameters: [
|
|
1007
1041
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -1034,7 +1068,7 @@ var FemaleSwineDiscardCollectionForm = class extends Report {
|
|
|
1034
1068
|
this.fileName = "Descarte de f\xEAmea";
|
|
1035
1069
|
}
|
|
1036
1070
|
async pdf(input) {
|
|
1037
|
-
|
|
1071
|
+
await this.requestPdf({
|
|
1038
1072
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1039
1073
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1040
1074
|
});
|
|
@@ -1049,7 +1083,7 @@ var FemaleSwineDiscardList = class extends Report {
|
|
|
1049
1083
|
this.fileName = "Descarte de f\xEAmeas";
|
|
1050
1084
|
}
|
|
1051
1085
|
async pdf(input) {
|
|
1052
|
-
|
|
1086
|
+
await this.requestPdf({
|
|
1053
1087
|
resources: this.getResources(input),
|
|
1054
1088
|
parameters: [
|
|
1055
1089
|
...this.getParameters(input),
|
|
@@ -1058,7 +1092,7 @@ var FemaleSwineDiscardList = class extends Report {
|
|
|
1058
1092
|
});
|
|
1059
1093
|
}
|
|
1060
1094
|
async csv(input) {
|
|
1061
|
-
|
|
1095
|
+
await this.requestCsv({
|
|
1062
1096
|
resources: this.getResources(input),
|
|
1063
1097
|
parameters: [
|
|
1064
1098
|
...this.getParameters(input),
|
|
@@ -1099,7 +1133,7 @@ var FemaleSwineEarTagReplacementList = class extends Report {
|
|
|
1099
1133
|
this.fileName = "Trocas de brinco de f\xEAmeas";
|
|
1100
1134
|
}
|
|
1101
1135
|
async pdf(input) {
|
|
1102
|
-
|
|
1136
|
+
await this.requestPdf({
|
|
1103
1137
|
resources: this.getResources(input),
|
|
1104
1138
|
parameters: [
|
|
1105
1139
|
...this.getParameters(input),
|
|
@@ -1108,7 +1142,7 @@ var FemaleSwineEarTagReplacementList = class extends Report {
|
|
|
1108
1142
|
});
|
|
1109
1143
|
}
|
|
1110
1144
|
async csv(input) {
|
|
1111
|
-
|
|
1145
|
+
await this.requestCsv({
|
|
1112
1146
|
resources: this.getResources(input),
|
|
1113
1147
|
parameters: [
|
|
1114
1148
|
...this.getParameters(input),
|
|
@@ -1138,7 +1172,7 @@ var FemaleSwineInventory = class extends Report {
|
|
|
1138
1172
|
this.fileName = "Estoque de f\xEAmeas";
|
|
1139
1173
|
}
|
|
1140
1174
|
async pdf(input) {
|
|
1141
|
-
|
|
1175
|
+
await this.requestPdf({
|
|
1142
1176
|
resources: this.getResources(input),
|
|
1143
1177
|
parameters: [
|
|
1144
1178
|
...this.getParameters(input),
|
|
@@ -1147,7 +1181,7 @@ var FemaleSwineInventory = class extends Report {
|
|
|
1147
1181
|
});
|
|
1148
1182
|
}
|
|
1149
1183
|
async csv(input) {
|
|
1150
|
-
|
|
1184
|
+
await this.requestCsv({
|
|
1151
1185
|
resources: this.getResources(input),
|
|
1152
1186
|
parameters: [
|
|
1153
1187
|
...this.getParameters(input),
|
|
@@ -1178,7 +1212,7 @@ var FemaleSwinePendingActionList = class extends Report {
|
|
|
1178
1212
|
this.fileName = "A\xE7\xF5es pendentes";
|
|
1179
1213
|
}
|
|
1180
1214
|
async pdf(input) {
|
|
1181
|
-
|
|
1215
|
+
await this.requestPdf({
|
|
1182
1216
|
resources: this.getResources(input),
|
|
1183
1217
|
parameters: [
|
|
1184
1218
|
...this.getParameters(input),
|
|
@@ -1187,7 +1221,7 @@ var FemaleSwinePendingActionList = class extends Report {
|
|
|
1187
1221
|
});
|
|
1188
1222
|
}
|
|
1189
1223
|
async csv(input) {
|
|
1190
|
-
|
|
1224
|
+
await this.requestCsv({
|
|
1191
1225
|
resources: this.getResources(input),
|
|
1192
1226
|
parameters: [
|
|
1193
1227
|
...this.getParameters(input),
|
|
@@ -1215,7 +1249,7 @@ var FemaleSwinePreDiscardList = class extends Report {
|
|
|
1215
1249
|
this.fileName = "Listagem de pr\xE9-descartes de f\xEAmeas";
|
|
1216
1250
|
}
|
|
1217
1251
|
async pdf(input) {
|
|
1218
|
-
|
|
1252
|
+
await this.requestPdf({
|
|
1219
1253
|
resources: this.getResources(input),
|
|
1220
1254
|
parameters: [
|
|
1221
1255
|
...this.getParameters(input),
|
|
@@ -1224,7 +1258,7 @@ var FemaleSwinePreDiscardList = class extends Report {
|
|
|
1224
1258
|
});
|
|
1225
1259
|
}
|
|
1226
1260
|
async csv(input) {
|
|
1227
|
-
|
|
1261
|
+
await this.requestCsv({
|
|
1228
1262
|
resources: this.getResources(input),
|
|
1229
1263
|
parameters: [
|
|
1230
1264
|
...this.getParameters(input),
|
|
@@ -1256,7 +1290,7 @@ var FemaleSwineRecord = class extends Report {
|
|
|
1256
1290
|
this.fileName = "Ficha da f\xEAmea";
|
|
1257
1291
|
}
|
|
1258
1292
|
async pdf(input) {
|
|
1259
|
-
|
|
1293
|
+
await this.requestPdf({
|
|
1260
1294
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1261
1295
|
parameters: [
|
|
1262
1296
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -1276,7 +1310,7 @@ var FemaleSwineSalePlanningList = class extends Report {
|
|
|
1276
1310
|
this.fileName = "Listagem de f\xEAmeas planejadas para venda";
|
|
1277
1311
|
}
|
|
1278
1312
|
async pdf(input) {
|
|
1279
|
-
|
|
1313
|
+
await this.requestPdf({
|
|
1280
1314
|
resources: this.getResources(input),
|
|
1281
1315
|
parameters: [
|
|
1282
1316
|
...this.getParameters(input),
|
|
@@ -1285,7 +1319,7 @@ var FemaleSwineSalePlanningList = class extends Report {
|
|
|
1285
1319
|
});
|
|
1286
1320
|
}
|
|
1287
1321
|
async csv(input) {
|
|
1288
|
-
|
|
1322
|
+
await this.requestCsv({
|
|
1289
1323
|
resources: this.getResources(input),
|
|
1290
1324
|
parameters: [
|
|
1291
1325
|
...this.getParameters(input),
|
|
@@ -1316,7 +1350,7 @@ var FemaleSwineTreatmentCollectionForm = class extends Report {
|
|
|
1316
1350
|
this.fileName = "Medica\xE7\xE3o / vacina\xE7\xE3o de f\xEAmea";
|
|
1317
1351
|
}
|
|
1318
1352
|
async pdf(input) {
|
|
1319
|
-
|
|
1353
|
+
await this.requestPdf({
|
|
1320
1354
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1321
1355
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1322
1356
|
});
|
|
@@ -1331,7 +1365,7 @@ var FemaleSwineTreatmentList = class extends Report {
|
|
|
1331
1365
|
this.fileName = "Listagem de medica\xE7\xF5es / vacinas (f\xEAmeas)";
|
|
1332
1366
|
}
|
|
1333
1367
|
async pdf(input) {
|
|
1334
|
-
|
|
1368
|
+
await this.requestPdf({
|
|
1335
1369
|
resources: this.getResources(input),
|
|
1336
1370
|
parameters: [
|
|
1337
1371
|
...this.getParameters(input),
|
|
@@ -1340,7 +1374,7 @@ var FemaleSwineTreatmentList = class extends Report {
|
|
|
1340
1374
|
});
|
|
1341
1375
|
}
|
|
1342
1376
|
async csv(input) {
|
|
1343
|
-
|
|
1377
|
+
await this.requestCsv({
|
|
1344
1378
|
resources: this.getResources(input),
|
|
1345
1379
|
parameters: [
|
|
1346
1380
|
...this.getParameters(input),
|
|
@@ -1370,7 +1404,7 @@ var FinishingPigletDeathCollectionForm = class extends Report {
|
|
|
1370
1404
|
this.fileName = "Morte de leit\xE3o na termina\xE7\xE3o";
|
|
1371
1405
|
}
|
|
1372
1406
|
async pdf(input) {
|
|
1373
|
-
|
|
1407
|
+
await this.requestPdf({
|
|
1374
1408
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1375
1409
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1376
1410
|
});
|
|
@@ -1385,7 +1419,7 @@ var FlushingFemaleSwineList = class extends Report {
|
|
|
1385
1419
|
this.fileName = "F\xEAmeas flushing";
|
|
1386
1420
|
}
|
|
1387
1421
|
async pdf(input) {
|
|
1388
|
-
|
|
1422
|
+
await this.requestPdf({
|
|
1389
1423
|
resources: this.getResources(input),
|
|
1390
1424
|
parameters: [
|
|
1391
1425
|
...this.getParameters(input),
|
|
@@ -1394,7 +1428,7 @@ var FlushingFemaleSwineList = class extends Report {
|
|
|
1394
1428
|
});
|
|
1395
1429
|
}
|
|
1396
1430
|
async csv(input) {
|
|
1397
|
-
|
|
1431
|
+
await this.requestCsv({
|
|
1398
1432
|
resources: this.getResources(input),
|
|
1399
1433
|
parameters: [
|
|
1400
1434
|
...this.getParameters(input),
|
|
@@ -1423,7 +1457,7 @@ var FlushingMonitor = class extends Report {
|
|
|
1423
1457
|
this.fileName = "Flushing";
|
|
1424
1458
|
}
|
|
1425
1459
|
async pdf(input) {
|
|
1426
|
-
|
|
1460
|
+
await this.requestPdf({
|
|
1427
1461
|
resources: this.getResources(input),
|
|
1428
1462
|
parameters: [
|
|
1429
1463
|
...this.getParameters(input),
|
|
@@ -1432,7 +1466,7 @@ var FlushingMonitor = class extends Report {
|
|
|
1432
1466
|
});
|
|
1433
1467
|
}
|
|
1434
1468
|
async csv(input) {
|
|
1435
|
-
|
|
1469
|
+
await this.requestCsv({
|
|
1436
1470
|
resources: this.getResources(input),
|
|
1437
1471
|
parameters: [
|
|
1438
1472
|
...this.getParameters(input),
|
|
@@ -1461,7 +1495,7 @@ var GiltInventory = class extends Report {
|
|
|
1461
1495
|
this.fileName = "Estoque de leitoas";
|
|
1462
1496
|
}
|
|
1463
1497
|
async pdf(input) {
|
|
1464
|
-
|
|
1498
|
+
await this.requestPdf({
|
|
1465
1499
|
resources: this.getResources(input),
|
|
1466
1500
|
parameters: [
|
|
1467
1501
|
...this.getParameters(input),
|
|
@@ -1470,7 +1504,7 @@ var GiltInventory = class extends Report {
|
|
|
1470
1504
|
});
|
|
1471
1505
|
}
|
|
1472
1506
|
async csv(input) {
|
|
1473
|
-
|
|
1507
|
+
await this.requestCsv({
|
|
1474
1508
|
resources: this.getResources(input),
|
|
1475
1509
|
parameters: [
|
|
1476
1510
|
...this.getParameters(input),
|
|
@@ -1501,7 +1535,7 @@ var GtaList = class extends Report {
|
|
|
1501
1535
|
this.fileName = "Listagem de gtas";
|
|
1502
1536
|
}
|
|
1503
1537
|
async pdf(input) {
|
|
1504
|
-
|
|
1538
|
+
await this.requestPdf({
|
|
1505
1539
|
resources: this.getResources(input),
|
|
1506
1540
|
parameters: [
|
|
1507
1541
|
...this.getParameters(input),
|
|
@@ -1510,7 +1544,7 @@ var GtaList = class extends Report {
|
|
|
1510
1544
|
});
|
|
1511
1545
|
}
|
|
1512
1546
|
async csv(input) {
|
|
1513
|
-
|
|
1547
|
+
await this.requestCsv({
|
|
1514
1548
|
resources: this.getResources(input),
|
|
1515
1549
|
parameters: [
|
|
1516
1550
|
...this.getParameters(input),
|
|
@@ -1537,7 +1571,7 @@ var HeatDetectionCollectionForm = class extends Report {
|
|
|
1537
1571
|
this.fileName = "Registro de cio";
|
|
1538
1572
|
}
|
|
1539
1573
|
async pdf(input) {
|
|
1540
|
-
|
|
1574
|
+
await this.requestPdf({
|
|
1541
1575
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1542
1576
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1543
1577
|
});
|
|
@@ -1552,7 +1586,7 @@ var HeatDetectionList = class extends Report {
|
|
|
1552
1586
|
this.fileName = "Listagem de registros de cio";
|
|
1553
1587
|
}
|
|
1554
1588
|
async pdf(input) {
|
|
1555
|
-
|
|
1589
|
+
await this.requestPdf({
|
|
1556
1590
|
resources: this.getResources(input),
|
|
1557
1591
|
parameters: [
|
|
1558
1592
|
...this.getParameters(input),
|
|
@@ -1561,7 +1595,7 @@ var HeatDetectionList = class extends Report {
|
|
|
1561
1595
|
});
|
|
1562
1596
|
}
|
|
1563
1597
|
async csv(input) {
|
|
1564
|
-
|
|
1598
|
+
await this.requestCsv({
|
|
1565
1599
|
resources: this.getResources(input),
|
|
1566
1600
|
parameters: [
|
|
1567
1601
|
...this.getParameters(input),
|
|
@@ -1601,7 +1635,7 @@ var HeatMonitoring = class extends Report {
|
|
|
1601
1635
|
this.fileName = "Mapa de Cio";
|
|
1602
1636
|
}
|
|
1603
1637
|
async pdf(input) {
|
|
1604
|
-
|
|
1638
|
+
await this.requestPdf({
|
|
1605
1639
|
resources: this.getResources(input),
|
|
1606
1640
|
parameters: [
|
|
1607
1641
|
...this.getParameters(input),
|
|
@@ -1610,7 +1644,7 @@ var HeatMonitoring = class extends Report {
|
|
|
1610
1644
|
});
|
|
1611
1645
|
}
|
|
1612
1646
|
async csv(input) {
|
|
1613
|
-
|
|
1647
|
+
await this.requestCsv({
|
|
1614
1648
|
resources: this.getResources(input),
|
|
1615
1649
|
parameters: [
|
|
1616
1650
|
...this.getParameters(input),
|
|
@@ -1641,7 +1675,7 @@ var LocationList = class extends Report {
|
|
|
1641
1675
|
this.fileName = "Listagem de localiza\xE7\xF5es";
|
|
1642
1676
|
}
|
|
1643
1677
|
async pdf(input) {
|
|
1644
|
-
|
|
1678
|
+
await this.requestPdf({
|
|
1645
1679
|
resources: this.getResources(input),
|
|
1646
1680
|
parameters: [
|
|
1647
1681
|
...this.getParameters(input),
|
|
@@ -1650,7 +1684,7 @@ var LocationList = class extends Report {
|
|
|
1650
1684
|
});
|
|
1651
1685
|
}
|
|
1652
1686
|
async csv(input) {
|
|
1653
|
-
|
|
1687
|
+
await this.requestCsv({
|
|
1654
1688
|
resources: this.getResources(input),
|
|
1655
1689
|
parameters: [
|
|
1656
1690
|
...this.getParameters(input),
|
|
@@ -1674,7 +1708,7 @@ var MaternityPigletDeathCollectionForm = class extends Report {
|
|
|
1674
1708
|
this.fileName = "Morte de leit\xE3o na maternidade";
|
|
1675
1709
|
}
|
|
1676
1710
|
async pdf(input) {
|
|
1677
|
-
|
|
1711
|
+
await this.requestPdf({
|
|
1678
1712
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1679
1713
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1680
1714
|
});
|
|
@@ -1689,7 +1723,7 @@ var MaternityPigletDeathList = class extends Report {
|
|
|
1689
1723
|
this.fileName = "Listagem de mortes de leit\xE3o";
|
|
1690
1724
|
}
|
|
1691
1725
|
async pdf(input) {
|
|
1692
|
-
|
|
1726
|
+
await this.requestPdf({
|
|
1693
1727
|
resources: this.getResources(input),
|
|
1694
1728
|
parameters: [
|
|
1695
1729
|
...this.getParameters(input),
|
|
@@ -1698,7 +1732,7 @@ var MaternityPigletDeathList = class extends Report {
|
|
|
1698
1732
|
});
|
|
1699
1733
|
}
|
|
1700
1734
|
async csv(input) {
|
|
1701
|
-
|
|
1735
|
+
await this.requestCsv({
|
|
1702
1736
|
resources: this.getResources(input),
|
|
1703
1737
|
parameters: [
|
|
1704
1738
|
...this.getParameters(input),
|
|
@@ -1731,7 +1765,7 @@ var MaternityPigletTransferCollectionForm = class extends Report {
|
|
|
1731
1765
|
this.fileName = "Transfer\xEAncia de leit\xE3o na maternidade";
|
|
1732
1766
|
}
|
|
1733
1767
|
async pdf(input) {
|
|
1734
|
-
|
|
1768
|
+
await this.requestPdf({
|
|
1735
1769
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1736
1770
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1737
1771
|
});
|
|
@@ -1746,7 +1780,7 @@ var MatingAnalysis = class extends Report {
|
|
|
1746
1780
|
this.fileName = "An\xE1lise de coberturas";
|
|
1747
1781
|
}
|
|
1748
1782
|
async pdf(input) {
|
|
1749
|
-
|
|
1783
|
+
await this.requestPdf({
|
|
1750
1784
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1751
1785
|
parameters: [
|
|
1752
1786
|
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
@@ -1784,7 +1818,7 @@ var MatingCollectionForm = class extends Report {
|
|
|
1784
1818
|
this.fileName = "Cobertura";
|
|
1785
1819
|
}
|
|
1786
1820
|
async pdf(input) {
|
|
1787
|
-
|
|
1821
|
+
await this.requestPdf({
|
|
1788
1822
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1789
1823
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1790
1824
|
});
|
|
@@ -1799,7 +1833,7 @@ var MatingGroupList = class extends Report {
|
|
|
1799
1833
|
this.fileName = "Listagem de grupos de cobertura";
|
|
1800
1834
|
}
|
|
1801
1835
|
async pdf(input) {
|
|
1802
|
-
|
|
1836
|
+
await this.requestPdf({
|
|
1803
1837
|
resources: this.getResources(input),
|
|
1804
1838
|
parameters: [
|
|
1805
1839
|
...this.getParameters(input),
|
|
@@ -1808,7 +1842,7 @@ var MatingGroupList = class extends Report {
|
|
|
1808
1842
|
});
|
|
1809
1843
|
}
|
|
1810
1844
|
async csv(input) {
|
|
1811
|
-
|
|
1845
|
+
await this.requestCsv({
|
|
1812
1846
|
resources: this.getResources(input),
|
|
1813
1847
|
parameters: [
|
|
1814
1848
|
...this.getParameters(input),
|
|
@@ -1832,7 +1866,7 @@ var MatingList = class extends Report {
|
|
|
1832
1866
|
this.fileName = "Listagem de coberturas";
|
|
1833
1867
|
}
|
|
1834
1868
|
async pdf(input) {
|
|
1835
|
-
|
|
1869
|
+
await this.requestPdf({
|
|
1836
1870
|
resources: this.getResources(input),
|
|
1837
1871
|
parameters: [
|
|
1838
1872
|
...this.getParameters(input),
|
|
@@ -1841,7 +1875,7 @@ var MatingList = class extends Report {
|
|
|
1841
1875
|
});
|
|
1842
1876
|
}
|
|
1843
1877
|
async csv(input) {
|
|
1844
|
-
|
|
1878
|
+
await this.requestCsv({
|
|
1845
1879
|
resources: this.getResources(input),
|
|
1846
1880
|
parameters: [
|
|
1847
1881
|
...this.getParameters(input),
|
|
@@ -1889,7 +1923,7 @@ var MatingOverview = class extends Report {
|
|
|
1889
1923
|
this.fileName = "Performance de coberturas";
|
|
1890
1924
|
}
|
|
1891
1925
|
async pdf(input) {
|
|
1892
|
-
|
|
1926
|
+
await this.requestPdf({
|
|
1893
1927
|
resources: this.getResources(input),
|
|
1894
1928
|
parameters: [
|
|
1895
1929
|
...this.getParameters(input),
|
|
@@ -1898,7 +1932,7 @@ var MatingOverview = class extends Report {
|
|
|
1898
1932
|
});
|
|
1899
1933
|
}
|
|
1900
1934
|
async csv(input) {
|
|
1901
|
-
|
|
1935
|
+
await this.requestCsv({
|
|
1902
1936
|
resources: this.getResources(input),
|
|
1903
1937
|
parameters: [
|
|
1904
1938
|
...this.getParameters(input),
|
|
@@ -1929,7 +1963,7 @@ var MbrfFemaleSwineRecord = class extends Report {
|
|
|
1929
1963
|
this.fileName = "Ficha fim";
|
|
1930
1964
|
}
|
|
1931
1965
|
async pdf(input) {
|
|
1932
|
-
|
|
1966
|
+
await this.requestPdf({
|
|
1933
1967
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1934
1968
|
parameters: [
|
|
1935
1969
|
{ key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
|
|
@@ -1947,7 +1981,7 @@ var NurseryPigletDeathCollectionForm = class extends Report {
|
|
|
1947
1981
|
this.fileName = "Morte de leit\xE3o na creche";
|
|
1948
1982
|
}
|
|
1949
1983
|
async pdf(input) {
|
|
1950
|
-
|
|
1984
|
+
await this.requestPdf({
|
|
1951
1985
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1952
1986
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1953
1987
|
});
|
|
@@ -1962,7 +1996,7 @@ var OriginList = class extends Report {
|
|
|
1962
1996
|
this.fileName = "Listagem de origens";
|
|
1963
1997
|
}
|
|
1964
1998
|
async pdf(input) {
|
|
1965
|
-
|
|
1999
|
+
await this.requestPdf({
|
|
1966
2000
|
resources: this.getResources(input),
|
|
1967
2001
|
parameters: [
|
|
1968
2002
|
...this.getParameters(input),
|
|
@@ -1971,7 +2005,7 @@ var OriginList = class extends Report {
|
|
|
1971
2005
|
});
|
|
1972
2006
|
}
|
|
1973
2007
|
async csv(input) {
|
|
1974
|
-
|
|
2008
|
+
await this.requestCsv({
|
|
1975
2009
|
resources: this.getResources(input),
|
|
1976
2010
|
parameters: [
|
|
1977
2011
|
...this.getParameters(input),
|
|
@@ -1995,7 +2029,7 @@ var ParityStructure = class extends Report {
|
|
|
1995
2029
|
this.fileName = "Estrutura et\xE1ria";
|
|
1996
2030
|
}
|
|
1997
2031
|
async pdf(input) {
|
|
1998
|
-
|
|
2032
|
+
await this.requestPdf({
|
|
1999
2033
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2000
2034
|
parameters: [
|
|
2001
2035
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -2016,7 +2050,7 @@ var PreFlushingFemaleSwineList = class extends Report {
|
|
|
2016
2050
|
this.fileName = "F\xEAmeas pr\xE9-flushing";
|
|
2017
2051
|
}
|
|
2018
2052
|
async pdf(input) {
|
|
2019
|
-
|
|
2053
|
+
await this.requestPdf({
|
|
2020
2054
|
resources: this.getResources(input),
|
|
2021
2055
|
parameters: [
|
|
2022
2056
|
...this.getParameters(input),
|
|
@@ -2025,7 +2059,7 @@ var PreFlushingFemaleSwineList = class extends Report {
|
|
|
2025
2059
|
});
|
|
2026
2060
|
}
|
|
2027
2061
|
async csv(input) {
|
|
2028
|
-
|
|
2062
|
+
await this.requestCsv({
|
|
2029
2063
|
resources: this.getResources(input),
|
|
2030
2064
|
parameters: [
|
|
2031
2065
|
...this.getParameters(input),
|
|
@@ -2054,7 +2088,7 @@ var PregnantFemaleSwineList = class extends Report {
|
|
|
2054
2088
|
this.fileName = "F\xEAmeas gestantes";
|
|
2055
2089
|
}
|
|
2056
2090
|
async pdf(input) {
|
|
2057
|
-
|
|
2091
|
+
await this.requestPdf({
|
|
2058
2092
|
resources: this.getResources(input),
|
|
2059
2093
|
parameters: [
|
|
2060
2094
|
{ key: "DATA_ONLY", value: false },
|
|
@@ -2063,7 +2097,7 @@ var PregnantFemaleSwineList = class extends Report {
|
|
|
2063
2097
|
});
|
|
2064
2098
|
}
|
|
2065
2099
|
async csv(input) {
|
|
2066
|
-
|
|
2100
|
+
await this.requestCsv({
|
|
2067
2101
|
resources: this.getResources(input),
|
|
2068
2102
|
parameters: [
|
|
2069
2103
|
{ key: "DATA_ONLY", value: true },
|
|
@@ -2092,7 +2126,7 @@ var PregnantFemaleSwineSaleList = class extends Report {
|
|
|
2092
2126
|
this.fileName = "Listagem de vendas de gestantes";
|
|
2093
2127
|
}
|
|
2094
2128
|
async pdf(input) {
|
|
2095
|
-
|
|
2129
|
+
await this.requestPdf({
|
|
2096
2130
|
resources: this.getResources(input),
|
|
2097
2131
|
parameters: [
|
|
2098
2132
|
...this.getParameters(input),
|
|
@@ -2101,7 +2135,7 @@ var PregnantFemaleSwineSaleList = class extends Report {
|
|
|
2101
2135
|
});
|
|
2102
2136
|
}
|
|
2103
2137
|
async csv(input) {
|
|
2104
|
-
|
|
2138
|
+
await this.requestCsv({
|
|
2105
2139
|
resources: this.getResources(input),
|
|
2106
2140
|
parameters: [
|
|
2107
2141
|
...this.getParameters(input),
|
|
@@ -2145,7 +2179,7 @@ var ReproductiveFailureAnalysis = class extends Report {
|
|
|
2145
2179
|
this.fileName = "An\xE1lise de perdas de cobertura";
|
|
2146
2180
|
}
|
|
2147
2181
|
async pdf(input) {
|
|
2148
|
-
|
|
2182
|
+
await this.requestPdf({
|
|
2149
2183
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2150
2184
|
parameters: [
|
|
2151
2185
|
{ key: "GROUP", value: input.groupBy },
|
|
@@ -2178,7 +2212,7 @@ var ReproductiveFailureCollectionForm = class extends Report {
|
|
|
2178
2212
|
this.fileName = "Perda de cobertura";
|
|
2179
2213
|
}
|
|
2180
2214
|
async pdf(input) {
|
|
2181
|
-
|
|
2215
|
+
await this.requestPdf({
|
|
2182
2216
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2183
2217
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
2184
2218
|
});
|
|
@@ -2193,7 +2227,7 @@ var ReproductiveFailureList = class extends Report {
|
|
|
2193
2227
|
this.fileName = "Perdas de cobertura";
|
|
2194
2228
|
}
|
|
2195
2229
|
async pdf(input) {
|
|
2196
|
-
|
|
2230
|
+
await this.requestPdf({
|
|
2197
2231
|
resources: this.getResources(input),
|
|
2198
2232
|
parameters: [
|
|
2199
2233
|
...this.getParameters(input),
|
|
@@ -2202,7 +2236,7 @@ var ReproductiveFailureList = class extends Report {
|
|
|
2202
2236
|
});
|
|
2203
2237
|
}
|
|
2204
2238
|
async csv(input) {
|
|
2205
|
-
|
|
2239
|
+
await this.requestCsv({
|
|
2206
2240
|
resources: this.getResources(input),
|
|
2207
2241
|
parameters: [
|
|
2208
2242
|
...this.getParameters(input),
|
|
@@ -2240,7 +2274,7 @@ var ScoreList = class extends Report {
|
|
|
2240
2274
|
this.fileName = "Listagem de escores";
|
|
2241
2275
|
}
|
|
2242
2276
|
async pdf(input) {
|
|
2243
|
-
|
|
2277
|
+
await this.requestPdf({
|
|
2244
2278
|
resources: this.getResources(input),
|
|
2245
2279
|
parameters: [
|
|
2246
2280
|
...this.getParameters(input),
|
|
@@ -2249,7 +2283,7 @@ var ScoreList = class extends Report {
|
|
|
2249
2283
|
});
|
|
2250
2284
|
}
|
|
2251
2285
|
async csv(input) {
|
|
2252
|
-
|
|
2286
|
+
await this.requestCsv({
|
|
2253
2287
|
resources: this.getResources(input),
|
|
2254
2288
|
parameters: [
|
|
2255
2289
|
...this.getParameters(input),
|
|
@@ -2273,7 +2307,7 @@ var WeaningAnalysis = class extends Report {
|
|
|
2273
2307
|
this.fileName = "An\xE1lise de desmames";
|
|
2274
2308
|
}
|
|
2275
2309
|
async pdf(input) {
|
|
2276
|
-
|
|
2310
|
+
await this.requestPdf({
|
|
2277
2311
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2278
2312
|
parameters: [
|
|
2279
2313
|
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
@@ -2306,7 +2340,7 @@ var WeaningCollectionForm = class extends Report {
|
|
|
2306
2340
|
this.fileName = "Desmame";
|
|
2307
2341
|
}
|
|
2308
2342
|
async pdf(input) {
|
|
2309
|
-
|
|
2343
|
+
await this.requestPdf({
|
|
2310
2344
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2311
2345
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
2312
2346
|
});
|
|
@@ -2321,7 +2355,7 @@ var WeaningList = class extends Report {
|
|
|
2321
2355
|
this.fileName = "Listagem de desmames";
|
|
2322
2356
|
}
|
|
2323
2357
|
async pdf(input) {
|
|
2324
|
-
|
|
2358
|
+
await this.requestPdf({
|
|
2325
2359
|
resources: this.getResources(input),
|
|
2326
2360
|
parameters: [
|
|
2327
2361
|
...this.getParameters(input),
|
|
@@ -2330,7 +2364,7 @@ var WeaningList = class extends Report {
|
|
|
2330
2364
|
});
|
|
2331
2365
|
}
|
|
2332
2366
|
async csv(input) {
|
|
2333
|
-
|
|
2367
|
+
await this.requestCsv({
|
|
2334
2368
|
resources: this.getResources(input),
|
|
2335
2369
|
parameters: [
|
|
2336
2370
|
...this.getParameters(input),
|
|
@@ -2449,24 +2483,17 @@ var PigMaster = class {
|
|
|
2449
2483
|
this.weaningCollectionForm = new WeaningCollectionForm(http);
|
|
2450
2484
|
this.maternityPigletDeathList = new MaternityPigletDeathList(http);
|
|
2451
2485
|
this.weaningList = new WeaningList(http);
|
|
2486
|
+
this.farrowingList = new FarrowingList(http);
|
|
2452
2487
|
}
|
|
2453
2488
|
};
|
|
2454
2489
|
|
|
2455
|
-
// src/
|
|
2456
|
-
var
|
|
2457
|
-
constructor(http) {
|
|
2458
|
-
this.http = http;
|
|
2490
|
+
// src/jaspion.ts
|
|
2491
|
+
var Jaspion = class {
|
|
2492
|
+
constructor({ http }) {
|
|
2459
2493
|
this.pigMaster = new PigMaster(http);
|
|
2460
2494
|
}
|
|
2461
|
-
setAccessToken(token) {
|
|
2462
|
-
this.http.setHeader("Authorization", `Bearer ${token}`);
|
|
2463
|
-
}
|
|
2464
2495
|
};
|
|
2465
|
-
function jaspion(baseUrl) {
|
|
2466
|
-
const http = new HttpClient(baseUrl);
|
|
2467
|
-
return new JaspionClient(http);
|
|
2468
|
-
}
|
|
2469
2496
|
export {
|
|
2470
|
-
|
|
2497
|
+
Jaspion
|
|
2471
2498
|
};
|
|
2472
2499
|
//# sourceMappingURL=index.mjs.map
|