@gesagro/jaspion-sdk 1.0.11 → 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 +19 -12
- package/dist/index.d.ts +19 -12
- package/dist/index.js +133 -160
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +132 -159
- 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,7 +606,7 @@ 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
|
});
|
|
@@ -647,7 +628,7 @@ var FarrowingList = class extends Report {
|
|
|
647
628
|
this.fileName = "Listagem de partos";
|
|
648
629
|
}
|
|
649
630
|
async pdf(input) {
|
|
650
|
-
|
|
631
|
+
await this.requestPdf({
|
|
651
632
|
resources: this.getResources(input),
|
|
652
633
|
parameters: [
|
|
653
634
|
...this.getParameters(input),
|
|
@@ -656,7 +637,7 @@ var FarrowingList = class extends Report {
|
|
|
656
637
|
});
|
|
657
638
|
}
|
|
658
639
|
async csv(input) {
|
|
659
|
-
|
|
640
|
+
await this.requestCsv({
|
|
660
641
|
resources: this.getResources(input),
|
|
661
642
|
parameters: [
|
|
662
643
|
...this.getParameters(input),
|
|
@@ -693,7 +674,7 @@ var FarrowingTypeList = class extends Report {
|
|
|
693
674
|
this.fileName = "Listagem de tipos de parto";
|
|
694
675
|
}
|
|
695
676
|
async pdf(input) {
|
|
696
|
-
|
|
677
|
+
await this.requestPdf({
|
|
697
678
|
resources: this.getResources(input),
|
|
698
679
|
parameters: [
|
|
699
680
|
...this.getParameters(input),
|
|
@@ -702,7 +683,7 @@ var FarrowingTypeList = class extends Report {
|
|
|
702
683
|
});
|
|
703
684
|
}
|
|
704
685
|
async csv(input) {
|
|
705
|
-
|
|
686
|
+
await this.requestCsv({
|
|
706
687
|
resources: this.getResources(input),
|
|
707
688
|
parameters: [
|
|
708
689
|
...this.getParameters(input),
|
|
@@ -726,7 +707,7 @@ var FemaleSwineArrivalMonitoring = class extends Report {
|
|
|
726
707
|
this.fileName = "Acompanhamento do lote";
|
|
727
708
|
}
|
|
728
709
|
async pdf(input) {
|
|
729
|
-
|
|
710
|
+
await this.requestPdf({
|
|
730
711
|
resources: this.getResources(input),
|
|
731
712
|
parameters: [
|
|
732
713
|
...this.getParameters(input),
|
|
@@ -735,7 +716,7 @@ var FemaleSwineArrivalMonitoring = class extends Report {
|
|
|
735
716
|
});
|
|
736
717
|
}
|
|
737
718
|
async csv(input) {
|
|
738
|
-
|
|
719
|
+
await this.requestCsv({
|
|
739
720
|
resources: this.getResources(input),
|
|
740
721
|
parameters: [
|
|
741
722
|
...this.getParameters(input),
|
|
@@ -766,7 +747,7 @@ var FemaleSwineByBreedList = class extends Report {
|
|
|
766
747
|
this.fileName = "F\xEAmeas por ra\xE7a";
|
|
767
748
|
}
|
|
768
749
|
async pdf(input) {
|
|
769
|
-
|
|
750
|
+
await this.requestPdf({
|
|
770
751
|
resources: this.getResources(input),
|
|
771
752
|
parameters: [
|
|
772
753
|
...this.getParameters(input),
|
|
@@ -775,7 +756,7 @@ var FemaleSwineByBreedList = class extends Report {
|
|
|
775
756
|
});
|
|
776
757
|
}
|
|
777
758
|
async csv(input) {
|
|
778
|
-
|
|
759
|
+
await this.requestCsv({
|
|
779
760
|
resources: this.getResources(input),
|
|
780
761
|
parameters: [
|
|
781
762
|
...this.getParameters(input),
|
|
@@ -807,7 +788,7 @@ var FemaleSwineByParityList = class extends Report {
|
|
|
807
788
|
this.fileName = "F\xEAmeas por cria";
|
|
808
789
|
}
|
|
809
790
|
async pdf(input) {
|
|
810
|
-
|
|
791
|
+
await this.requestPdf({
|
|
811
792
|
resources: this.getResources(input),
|
|
812
793
|
parameters: [
|
|
813
794
|
...this.getParameters(input),
|
|
@@ -816,7 +797,7 @@ var FemaleSwineByParityList = class extends Report {
|
|
|
816
797
|
});
|
|
817
798
|
}
|
|
818
799
|
async csv(input) {
|
|
819
|
-
|
|
800
|
+
await this.requestCsv({
|
|
820
801
|
resources: this.getResources(input),
|
|
821
802
|
parameters: [
|
|
822
803
|
...this.getParameters(input),
|
|
@@ -848,7 +829,7 @@ var FemaleSwineByStatusList = class extends Report {
|
|
|
848
829
|
this.fileName = "F\xEAmeas por status";
|
|
849
830
|
}
|
|
850
831
|
async pdf(input) {
|
|
851
|
-
|
|
832
|
+
await this.requestPdf({
|
|
852
833
|
resources: this.getResources(input),
|
|
853
834
|
parameters: [
|
|
854
835
|
...this.getParameters(input),
|
|
@@ -857,7 +838,7 @@ var FemaleSwineByStatusList = class extends Report {
|
|
|
857
838
|
});
|
|
858
839
|
}
|
|
859
840
|
async csv(input) {
|
|
860
|
-
|
|
841
|
+
await this.requestCsv({
|
|
861
842
|
resources: this.getResources(input),
|
|
862
843
|
parameters: [
|
|
863
844
|
...this.getParameters(input),
|
|
@@ -913,7 +894,7 @@ var FemaleSwineByTraceabilityList = class extends Report {
|
|
|
913
894
|
this.fileName = "F\xEAmeas por rastreabilidade";
|
|
914
895
|
}
|
|
915
896
|
async pdf(input) {
|
|
916
|
-
|
|
897
|
+
await this.requestPdf({
|
|
917
898
|
resources: this.getResources(input),
|
|
918
899
|
parameters: [
|
|
919
900
|
...this.getParameters(input),
|
|
@@ -922,7 +903,7 @@ var FemaleSwineByTraceabilityList = class extends Report {
|
|
|
922
903
|
});
|
|
923
904
|
}
|
|
924
905
|
async csv(input) {
|
|
925
|
-
|
|
906
|
+
await this.requestCsv({
|
|
926
907
|
resources: this.getResources(input),
|
|
927
908
|
parameters: [
|
|
928
909
|
...this.getParameters(input),
|
|
@@ -958,7 +939,7 @@ var FemaleSwineDeathAnalysis = class extends Report {
|
|
|
958
939
|
this.fileName = "An\xE1lise morte de f\xEAmeas";
|
|
959
940
|
}
|
|
960
941
|
async pdf(input) {
|
|
961
|
-
|
|
942
|
+
await this.requestPdf({
|
|
962
943
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
963
944
|
parameters: [
|
|
964
945
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -990,7 +971,7 @@ var FemaleSwineDeathCollectionForm = class extends Report {
|
|
|
990
971
|
this.fileName = "Morte de f\xEAmea";
|
|
991
972
|
}
|
|
992
973
|
async pdf(input) {
|
|
993
|
-
|
|
974
|
+
await this.requestPdf({
|
|
994
975
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
995
976
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
996
977
|
});
|
|
@@ -1005,7 +986,7 @@ var FemaleSwineDeathList = class extends Report {
|
|
|
1005
986
|
this.fileName = "Morte de f\xEAmeas";
|
|
1006
987
|
}
|
|
1007
988
|
async pdf(input) {
|
|
1008
|
-
|
|
989
|
+
await this.requestPdf({
|
|
1009
990
|
resources: this.getResources(input),
|
|
1010
991
|
parameters: [
|
|
1011
992
|
...this.getParameters(input),
|
|
@@ -1014,7 +995,7 @@ var FemaleSwineDeathList = class extends Report {
|
|
|
1014
995
|
});
|
|
1015
996
|
}
|
|
1016
997
|
async csv(input) {
|
|
1017
|
-
|
|
998
|
+
await this.requestCsv({
|
|
1018
999
|
resources: this.getResources(input),
|
|
1019
1000
|
parameters: [
|
|
1020
1001
|
...this.getParameters(input),
|
|
@@ -1054,7 +1035,7 @@ var FemaleSwineDiscardAnalysis = class extends Report {
|
|
|
1054
1035
|
this.fileName = "An\xE1lise descarte de f\xEAmeas";
|
|
1055
1036
|
}
|
|
1056
1037
|
async pdf(input) {
|
|
1057
|
-
|
|
1038
|
+
await this.requestPdf({
|
|
1058
1039
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1059
1040
|
parameters: [
|
|
1060
1041
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -1087,7 +1068,7 @@ var FemaleSwineDiscardCollectionForm = class extends Report {
|
|
|
1087
1068
|
this.fileName = "Descarte de f\xEAmea";
|
|
1088
1069
|
}
|
|
1089
1070
|
async pdf(input) {
|
|
1090
|
-
|
|
1071
|
+
await this.requestPdf({
|
|
1091
1072
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1092
1073
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1093
1074
|
});
|
|
@@ -1102,7 +1083,7 @@ var FemaleSwineDiscardList = class extends Report {
|
|
|
1102
1083
|
this.fileName = "Descarte de f\xEAmeas";
|
|
1103
1084
|
}
|
|
1104
1085
|
async pdf(input) {
|
|
1105
|
-
|
|
1086
|
+
await this.requestPdf({
|
|
1106
1087
|
resources: this.getResources(input),
|
|
1107
1088
|
parameters: [
|
|
1108
1089
|
...this.getParameters(input),
|
|
@@ -1111,7 +1092,7 @@ var FemaleSwineDiscardList = class extends Report {
|
|
|
1111
1092
|
});
|
|
1112
1093
|
}
|
|
1113
1094
|
async csv(input) {
|
|
1114
|
-
|
|
1095
|
+
await this.requestCsv({
|
|
1115
1096
|
resources: this.getResources(input),
|
|
1116
1097
|
parameters: [
|
|
1117
1098
|
...this.getParameters(input),
|
|
@@ -1152,7 +1133,7 @@ var FemaleSwineEarTagReplacementList = class extends Report {
|
|
|
1152
1133
|
this.fileName = "Trocas de brinco de f\xEAmeas";
|
|
1153
1134
|
}
|
|
1154
1135
|
async pdf(input) {
|
|
1155
|
-
|
|
1136
|
+
await this.requestPdf({
|
|
1156
1137
|
resources: this.getResources(input),
|
|
1157
1138
|
parameters: [
|
|
1158
1139
|
...this.getParameters(input),
|
|
@@ -1161,7 +1142,7 @@ var FemaleSwineEarTagReplacementList = class extends Report {
|
|
|
1161
1142
|
});
|
|
1162
1143
|
}
|
|
1163
1144
|
async csv(input) {
|
|
1164
|
-
|
|
1145
|
+
await this.requestCsv({
|
|
1165
1146
|
resources: this.getResources(input),
|
|
1166
1147
|
parameters: [
|
|
1167
1148
|
...this.getParameters(input),
|
|
@@ -1191,7 +1172,7 @@ var FemaleSwineInventory = class extends Report {
|
|
|
1191
1172
|
this.fileName = "Estoque de f\xEAmeas";
|
|
1192
1173
|
}
|
|
1193
1174
|
async pdf(input) {
|
|
1194
|
-
|
|
1175
|
+
await this.requestPdf({
|
|
1195
1176
|
resources: this.getResources(input),
|
|
1196
1177
|
parameters: [
|
|
1197
1178
|
...this.getParameters(input),
|
|
@@ -1200,7 +1181,7 @@ var FemaleSwineInventory = class extends Report {
|
|
|
1200
1181
|
});
|
|
1201
1182
|
}
|
|
1202
1183
|
async csv(input) {
|
|
1203
|
-
|
|
1184
|
+
await this.requestCsv({
|
|
1204
1185
|
resources: this.getResources(input),
|
|
1205
1186
|
parameters: [
|
|
1206
1187
|
...this.getParameters(input),
|
|
@@ -1231,7 +1212,7 @@ var FemaleSwinePendingActionList = class extends Report {
|
|
|
1231
1212
|
this.fileName = "A\xE7\xF5es pendentes";
|
|
1232
1213
|
}
|
|
1233
1214
|
async pdf(input) {
|
|
1234
|
-
|
|
1215
|
+
await this.requestPdf({
|
|
1235
1216
|
resources: this.getResources(input),
|
|
1236
1217
|
parameters: [
|
|
1237
1218
|
...this.getParameters(input),
|
|
@@ -1240,7 +1221,7 @@ var FemaleSwinePendingActionList = class extends Report {
|
|
|
1240
1221
|
});
|
|
1241
1222
|
}
|
|
1242
1223
|
async csv(input) {
|
|
1243
|
-
|
|
1224
|
+
await this.requestCsv({
|
|
1244
1225
|
resources: this.getResources(input),
|
|
1245
1226
|
parameters: [
|
|
1246
1227
|
...this.getParameters(input),
|
|
@@ -1268,7 +1249,7 @@ var FemaleSwinePreDiscardList = class extends Report {
|
|
|
1268
1249
|
this.fileName = "Listagem de pr\xE9-descartes de f\xEAmeas";
|
|
1269
1250
|
}
|
|
1270
1251
|
async pdf(input) {
|
|
1271
|
-
|
|
1252
|
+
await this.requestPdf({
|
|
1272
1253
|
resources: this.getResources(input),
|
|
1273
1254
|
parameters: [
|
|
1274
1255
|
...this.getParameters(input),
|
|
@@ -1277,7 +1258,7 @@ var FemaleSwinePreDiscardList = class extends Report {
|
|
|
1277
1258
|
});
|
|
1278
1259
|
}
|
|
1279
1260
|
async csv(input) {
|
|
1280
|
-
|
|
1261
|
+
await this.requestCsv({
|
|
1281
1262
|
resources: this.getResources(input),
|
|
1282
1263
|
parameters: [
|
|
1283
1264
|
...this.getParameters(input),
|
|
@@ -1309,7 +1290,7 @@ var FemaleSwineRecord = class extends Report {
|
|
|
1309
1290
|
this.fileName = "Ficha da f\xEAmea";
|
|
1310
1291
|
}
|
|
1311
1292
|
async pdf(input) {
|
|
1312
|
-
|
|
1293
|
+
await this.requestPdf({
|
|
1313
1294
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1314
1295
|
parameters: [
|
|
1315
1296
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -1329,7 +1310,7 @@ var FemaleSwineSalePlanningList = class extends Report {
|
|
|
1329
1310
|
this.fileName = "Listagem de f\xEAmeas planejadas para venda";
|
|
1330
1311
|
}
|
|
1331
1312
|
async pdf(input) {
|
|
1332
|
-
|
|
1313
|
+
await this.requestPdf({
|
|
1333
1314
|
resources: this.getResources(input),
|
|
1334
1315
|
parameters: [
|
|
1335
1316
|
...this.getParameters(input),
|
|
@@ -1338,7 +1319,7 @@ var FemaleSwineSalePlanningList = class extends Report {
|
|
|
1338
1319
|
});
|
|
1339
1320
|
}
|
|
1340
1321
|
async csv(input) {
|
|
1341
|
-
|
|
1322
|
+
await this.requestCsv({
|
|
1342
1323
|
resources: this.getResources(input),
|
|
1343
1324
|
parameters: [
|
|
1344
1325
|
...this.getParameters(input),
|
|
@@ -1369,7 +1350,7 @@ var FemaleSwineTreatmentCollectionForm = class extends Report {
|
|
|
1369
1350
|
this.fileName = "Medica\xE7\xE3o / vacina\xE7\xE3o de f\xEAmea";
|
|
1370
1351
|
}
|
|
1371
1352
|
async pdf(input) {
|
|
1372
|
-
|
|
1353
|
+
await this.requestPdf({
|
|
1373
1354
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1374
1355
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1375
1356
|
});
|
|
@@ -1384,7 +1365,7 @@ var FemaleSwineTreatmentList = class extends Report {
|
|
|
1384
1365
|
this.fileName = "Listagem de medica\xE7\xF5es / vacinas (f\xEAmeas)";
|
|
1385
1366
|
}
|
|
1386
1367
|
async pdf(input) {
|
|
1387
|
-
|
|
1368
|
+
await this.requestPdf({
|
|
1388
1369
|
resources: this.getResources(input),
|
|
1389
1370
|
parameters: [
|
|
1390
1371
|
...this.getParameters(input),
|
|
@@ -1393,7 +1374,7 @@ var FemaleSwineTreatmentList = class extends Report {
|
|
|
1393
1374
|
});
|
|
1394
1375
|
}
|
|
1395
1376
|
async csv(input) {
|
|
1396
|
-
|
|
1377
|
+
await this.requestCsv({
|
|
1397
1378
|
resources: this.getResources(input),
|
|
1398
1379
|
parameters: [
|
|
1399
1380
|
...this.getParameters(input),
|
|
@@ -1423,7 +1404,7 @@ var FinishingPigletDeathCollectionForm = class extends Report {
|
|
|
1423
1404
|
this.fileName = "Morte de leit\xE3o na termina\xE7\xE3o";
|
|
1424
1405
|
}
|
|
1425
1406
|
async pdf(input) {
|
|
1426
|
-
|
|
1407
|
+
await this.requestPdf({
|
|
1427
1408
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1428
1409
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1429
1410
|
});
|
|
@@ -1438,7 +1419,7 @@ var FlushingFemaleSwineList = class extends Report {
|
|
|
1438
1419
|
this.fileName = "F\xEAmeas flushing";
|
|
1439
1420
|
}
|
|
1440
1421
|
async pdf(input) {
|
|
1441
|
-
|
|
1422
|
+
await this.requestPdf({
|
|
1442
1423
|
resources: this.getResources(input),
|
|
1443
1424
|
parameters: [
|
|
1444
1425
|
...this.getParameters(input),
|
|
@@ -1447,7 +1428,7 @@ var FlushingFemaleSwineList = class extends Report {
|
|
|
1447
1428
|
});
|
|
1448
1429
|
}
|
|
1449
1430
|
async csv(input) {
|
|
1450
|
-
|
|
1431
|
+
await this.requestCsv({
|
|
1451
1432
|
resources: this.getResources(input),
|
|
1452
1433
|
parameters: [
|
|
1453
1434
|
...this.getParameters(input),
|
|
@@ -1476,7 +1457,7 @@ var FlushingMonitor = class extends Report {
|
|
|
1476
1457
|
this.fileName = "Flushing";
|
|
1477
1458
|
}
|
|
1478
1459
|
async pdf(input) {
|
|
1479
|
-
|
|
1460
|
+
await this.requestPdf({
|
|
1480
1461
|
resources: this.getResources(input),
|
|
1481
1462
|
parameters: [
|
|
1482
1463
|
...this.getParameters(input),
|
|
@@ -1485,7 +1466,7 @@ var FlushingMonitor = class extends Report {
|
|
|
1485
1466
|
});
|
|
1486
1467
|
}
|
|
1487
1468
|
async csv(input) {
|
|
1488
|
-
|
|
1469
|
+
await this.requestCsv({
|
|
1489
1470
|
resources: this.getResources(input),
|
|
1490
1471
|
parameters: [
|
|
1491
1472
|
...this.getParameters(input),
|
|
@@ -1514,7 +1495,7 @@ var GiltInventory = class extends Report {
|
|
|
1514
1495
|
this.fileName = "Estoque de leitoas";
|
|
1515
1496
|
}
|
|
1516
1497
|
async pdf(input) {
|
|
1517
|
-
|
|
1498
|
+
await this.requestPdf({
|
|
1518
1499
|
resources: this.getResources(input),
|
|
1519
1500
|
parameters: [
|
|
1520
1501
|
...this.getParameters(input),
|
|
@@ -1523,7 +1504,7 @@ var GiltInventory = class extends Report {
|
|
|
1523
1504
|
});
|
|
1524
1505
|
}
|
|
1525
1506
|
async csv(input) {
|
|
1526
|
-
|
|
1507
|
+
await this.requestCsv({
|
|
1527
1508
|
resources: this.getResources(input),
|
|
1528
1509
|
parameters: [
|
|
1529
1510
|
...this.getParameters(input),
|
|
@@ -1554,7 +1535,7 @@ var GtaList = class extends Report {
|
|
|
1554
1535
|
this.fileName = "Listagem de gtas";
|
|
1555
1536
|
}
|
|
1556
1537
|
async pdf(input) {
|
|
1557
|
-
|
|
1538
|
+
await this.requestPdf({
|
|
1558
1539
|
resources: this.getResources(input),
|
|
1559
1540
|
parameters: [
|
|
1560
1541
|
...this.getParameters(input),
|
|
@@ -1563,7 +1544,7 @@ var GtaList = class extends Report {
|
|
|
1563
1544
|
});
|
|
1564
1545
|
}
|
|
1565
1546
|
async csv(input) {
|
|
1566
|
-
|
|
1547
|
+
await this.requestCsv({
|
|
1567
1548
|
resources: this.getResources(input),
|
|
1568
1549
|
parameters: [
|
|
1569
1550
|
...this.getParameters(input),
|
|
@@ -1590,7 +1571,7 @@ var HeatDetectionCollectionForm = class extends Report {
|
|
|
1590
1571
|
this.fileName = "Registro de cio";
|
|
1591
1572
|
}
|
|
1592
1573
|
async pdf(input) {
|
|
1593
|
-
|
|
1574
|
+
await this.requestPdf({
|
|
1594
1575
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1595
1576
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1596
1577
|
});
|
|
@@ -1605,7 +1586,7 @@ var HeatDetectionList = class extends Report {
|
|
|
1605
1586
|
this.fileName = "Listagem de registros de cio";
|
|
1606
1587
|
}
|
|
1607
1588
|
async pdf(input) {
|
|
1608
|
-
|
|
1589
|
+
await this.requestPdf({
|
|
1609
1590
|
resources: this.getResources(input),
|
|
1610
1591
|
parameters: [
|
|
1611
1592
|
...this.getParameters(input),
|
|
@@ -1614,7 +1595,7 @@ var HeatDetectionList = class extends Report {
|
|
|
1614
1595
|
});
|
|
1615
1596
|
}
|
|
1616
1597
|
async csv(input) {
|
|
1617
|
-
|
|
1598
|
+
await this.requestCsv({
|
|
1618
1599
|
resources: this.getResources(input),
|
|
1619
1600
|
parameters: [
|
|
1620
1601
|
...this.getParameters(input),
|
|
@@ -1654,7 +1635,7 @@ var HeatMonitoring = class extends Report {
|
|
|
1654
1635
|
this.fileName = "Mapa de Cio";
|
|
1655
1636
|
}
|
|
1656
1637
|
async pdf(input) {
|
|
1657
|
-
|
|
1638
|
+
await this.requestPdf({
|
|
1658
1639
|
resources: this.getResources(input),
|
|
1659
1640
|
parameters: [
|
|
1660
1641
|
...this.getParameters(input),
|
|
@@ -1663,7 +1644,7 @@ var HeatMonitoring = class extends Report {
|
|
|
1663
1644
|
});
|
|
1664
1645
|
}
|
|
1665
1646
|
async csv(input) {
|
|
1666
|
-
|
|
1647
|
+
await this.requestCsv({
|
|
1667
1648
|
resources: this.getResources(input),
|
|
1668
1649
|
parameters: [
|
|
1669
1650
|
...this.getParameters(input),
|
|
@@ -1694,7 +1675,7 @@ var LocationList = class extends Report {
|
|
|
1694
1675
|
this.fileName = "Listagem de localiza\xE7\xF5es";
|
|
1695
1676
|
}
|
|
1696
1677
|
async pdf(input) {
|
|
1697
|
-
|
|
1678
|
+
await this.requestPdf({
|
|
1698
1679
|
resources: this.getResources(input),
|
|
1699
1680
|
parameters: [
|
|
1700
1681
|
...this.getParameters(input),
|
|
@@ -1703,7 +1684,7 @@ var LocationList = class extends Report {
|
|
|
1703
1684
|
});
|
|
1704
1685
|
}
|
|
1705
1686
|
async csv(input) {
|
|
1706
|
-
|
|
1687
|
+
await this.requestCsv({
|
|
1707
1688
|
resources: this.getResources(input),
|
|
1708
1689
|
parameters: [
|
|
1709
1690
|
...this.getParameters(input),
|
|
@@ -1727,7 +1708,7 @@ var MaternityPigletDeathCollectionForm = class extends Report {
|
|
|
1727
1708
|
this.fileName = "Morte de leit\xE3o na maternidade";
|
|
1728
1709
|
}
|
|
1729
1710
|
async pdf(input) {
|
|
1730
|
-
|
|
1711
|
+
await this.requestPdf({
|
|
1731
1712
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1732
1713
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1733
1714
|
});
|
|
@@ -1742,7 +1723,7 @@ var MaternityPigletDeathList = class extends Report {
|
|
|
1742
1723
|
this.fileName = "Listagem de mortes de leit\xE3o";
|
|
1743
1724
|
}
|
|
1744
1725
|
async pdf(input) {
|
|
1745
|
-
|
|
1726
|
+
await this.requestPdf({
|
|
1746
1727
|
resources: this.getResources(input),
|
|
1747
1728
|
parameters: [
|
|
1748
1729
|
...this.getParameters(input),
|
|
@@ -1751,7 +1732,7 @@ var MaternityPigletDeathList = class extends Report {
|
|
|
1751
1732
|
});
|
|
1752
1733
|
}
|
|
1753
1734
|
async csv(input) {
|
|
1754
|
-
|
|
1735
|
+
await this.requestCsv({
|
|
1755
1736
|
resources: this.getResources(input),
|
|
1756
1737
|
parameters: [
|
|
1757
1738
|
...this.getParameters(input),
|
|
@@ -1784,7 +1765,7 @@ var MaternityPigletTransferCollectionForm = class extends Report {
|
|
|
1784
1765
|
this.fileName = "Transfer\xEAncia de leit\xE3o na maternidade";
|
|
1785
1766
|
}
|
|
1786
1767
|
async pdf(input) {
|
|
1787
|
-
|
|
1768
|
+
await this.requestPdf({
|
|
1788
1769
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1789
1770
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1790
1771
|
});
|
|
@@ -1799,7 +1780,7 @@ var MatingAnalysis = class extends Report {
|
|
|
1799
1780
|
this.fileName = "An\xE1lise de coberturas";
|
|
1800
1781
|
}
|
|
1801
1782
|
async pdf(input) {
|
|
1802
|
-
|
|
1783
|
+
await this.requestPdf({
|
|
1803
1784
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1804
1785
|
parameters: [
|
|
1805
1786
|
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
@@ -1837,7 +1818,7 @@ var MatingCollectionForm = class extends Report {
|
|
|
1837
1818
|
this.fileName = "Cobertura";
|
|
1838
1819
|
}
|
|
1839
1820
|
async pdf(input) {
|
|
1840
|
-
|
|
1821
|
+
await this.requestPdf({
|
|
1841
1822
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1842
1823
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1843
1824
|
});
|
|
@@ -1852,7 +1833,7 @@ var MatingGroupList = class extends Report {
|
|
|
1852
1833
|
this.fileName = "Listagem de grupos de cobertura";
|
|
1853
1834
|
}
|
|
1854
1835
|
async pdf(input) {
|
|
1855
|
-
|
|
1836
|
+
await this.requestPdf({
|
|
1856
1837
|
resources: this.getResources(input),
|
|
1857
1838
|
parameters: [
|
|
1858
1839
|
...this.getParameters(input),
|
|
@@ -1861,7 +1842,7 @@ var MatingGroupList = class extends Report {
|
|
|
1861
1842
|
});
|
|
1862
1843
|
}
|
|
1863
1844
|
async csv(input) {
|
|
1864
|
-
|
|
1845
|
+
await this.requestCsv({
|
|
1865
1846
|
resources: this.getResources(input),
|
|
1866
1847
|
parameters: [
|
|
1867
1848
|
...this.getParameters(input),
|
|
@@ -1885,7 +1866,7 @@ var MatingList = class extends Report {
|
|
|
1885
1866
|
this.fileName = "Listagem de coberturas";
|
|
1886
1867
|
}
|
|
1887
1868
|
async pdf(input) {
|
|
1888
|
-
|
|
1869
|
+
await this.requestPdf({
|
|
1889
1870
|
resources: this.getResources(input),
|
|
1890
1871
|
parameters: [
|
|
1891
1872
|
...this.getParameters(input),
|
|
@@ -1894,7 +1875,7 @@ var MatingList = class extends Report {
|
|
|
1894
1875
|
});
|
|
1895
1876
|
}
|
|
1896
1877
|
async csv(input) {
|
|
1897
|
-
|
|
1878
|
+
await this.requestCsv({
|
|
1898
1879
|
resources: this.getResources(input),
|
|
1899
1880
|
parameters: [
|
|
1900
1881
|
...this.getParameters(input),
|
|
@@ -1942,7 +1923,7 @@ var MatingOverview = class extends Report {
|
|
|
1942
1923
|
this.fileName = "Performance de coberturas";
|
|
1943
1924
|
}
|
|
1944
1925
|
async pdf(input) {
|
|
1945
|
-
|
|
1926
|
+
await this.requestPdf({
|
|
1946
1927
|
resources: this.getResources(input),
|
|
1947
1928
|
parameters: [
|
|
1948
1929
|
...this.getParameters(input),
|
|
@@ -1951,7 +1932,7 @@ var MatingOverview = class extends Report {
|
|
|
1951
1932
|
});
|
|
1952
1933
|
}
|
|
1953
1934
|
async csv(input) {
|
|
1954
|
-
|
|
1935
|
+
await this.requestCsv({
|
|
1955
1936
|
resources: this.getResources(input),
|
|
1956
1937
|
parameters: [
|
|
1957
1938
|
...this.getParameters(input),
|
|
@@ -1982,7 +1963,7 @@ var MbrfFemaleSwineRecord = class extends Report {
|
|
|
1982
1963
|
this.fileName = "Ficha fim";
|
|
1983
1964
|
}
|
|
1984
1965
|
async pdf(input) {
|
|
1985
|
-
|
|
1966
|
+
await this.requestPdf({
|
|
1986
1967
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1987
1968
|
parameters: [
|
|
1988
1969
|
{ key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
|
|
@@ -2000,7 +1981,7 @@ var NurseryPigletDeathCollectionForm = class extends Report {
|
|
|
2000
1981
|
this.fileName = "Morte de leit\xE3o na creche";
|
|
2001
1982
|
}
|
|
2002
1983
|
async pdf(input) {
|
|
2003
|
-
|
|
1984
|
+
await this.requestPdf({
|
|
2004
1985
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2005
1986
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
2006
1987
|
});
|
|
@@ -2015,7 +1996,7 @@ var OriginList = class extends Report {
|
|
|
2015
1996
|
this.fileName = "Listagem de origens";
|
|
2016
1997
|
}
|
|
2017
1998
|
async pdf(input) {
|
|
2018
|
-
|
|
1999
|
+
await this.requestPdf({
|
|
2019
2000
|
resources: this.getResources(input),
|
|
2020
2001
|
parameters: [
|
|
2021
2002
|
...this.getParameters(input),
|
|
@@ -2024,7 +2005,7 @@ var OriginList = class extends Report {
|
|
|
2024
2005
|
});
|
|
2025
2006
|
}
|
|
2026
2007
|
async csv(input) {
|
|
2027
|
-
|
|
2008
|
+
await this.requestCsv({
|
|
2028
2009
|
resources: this.getResources(input),
|
|
2029
2010
|
parameters: [
|
|
2030
2011
|
...this.getParameters(input),
|
|
@@ -2048,7 +2029,7 @@ var ParityStructure = class extends Report {
|
|
|
2048
2029
|
this.fileName = "Estrutura et\xE1ria";
|
|
2049
2030
|
}
|
|
2050
2031
|
async pdf(input) {
|
|
2051
|
-
|
|
2032
|
+
await this.requestPdf({
|
|
2052
2033
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2053
2034
|
parameters: [
|
|
2054
2035
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -2069,7 +2050,7 @@ var PreFlushingFemaleSwineList = class extends Report {
|
|
|
2069
2050
|
this.fileName = "F\xEAmeas pr\xE9-flushing";
|
|
2070
2051
|
}
|
|
2071
2052
|
async pdf(input) {
|
|
2072
|
-
|
|
2053
|
+
await this.requestPdf({
|
|
2073
2054
|
resources: this.getResources(input),
|
|
2074
2055
|
parameters: [
|
|
2075
2056
|
...this.getParameters(input),
|
|
@@ -2078,7 +2059,7 @@ var PreFlushingFemaleSwineList = class extends Report {
|
|
|
2078
2059
|
});
|
|
2079
2060
|
}
|
|
2080
2061
|
async csv(input) {
|
|
2081
|
-
|
|
2062
|
+
await this.requestCsv({
|
|
2082
2063
|
resources: this.getResources(input),
|
|
2083
2064
|
parameters: [
|
|
2084
2065
|
...this.getParameters(input),
|
|
@@ -2107,7 +2088,7 @@ var PregnantFemaleSwineList = class extends Report {
|
|
|
2107
2088
|
this.fileName = "F\xEAmeas gestantes";
|
|
2108
2089
|
}
|
|
2109
2090
|
async pdf(input) {
|
|
2110
|
-
|
|
2091
|
+
await this.requestPdf({
|
|
2111
2092
|
resources: this.getResources(input),
|
|
2112
2093
|
parameters: [
|
|
2113
2094
|
{ key: "DATA_ONLY", value: false },
|
|
@@ -2116,7 +2097,7 @@ var PregnantFemaleSwineList = class extends Report {
|
|
|
2116
2097
|
});
|
|
2117
2098
|
}
|
|
2118
2099
|
async csv(input) {
|
|
2119
|
-
|
|
2100
|
+
await this.requestCsv({
|
|
2120
2101
|
resources: this.getResources(input),
|
|
2121
2102
|
parameters: [
|
|
2122
2103
|
{ key: "DATA_ONLY", value: true },
|
|
@@ -2145,7 +2126,7 @@ var PregnantFemaleSwineSaleList = class extends Report {
|
|
|
2145
2126
|
this.fileName = "Listagem de vendas de gestantes";
|
|
2146
2127
|
}
|
|
2147
2128
|
async pdf(input) {
|
|
2148
|
-
|
|
2129
|
+
await this.requestPdf({
|
|
2149
2130
|
resources: this.getResources(input),
|
|
2150
2131
|
parameters: [
|
|
2151
2132
|
...this.getParameters(input),
|
|
@@ -2154,7 +2135,7 @@ var PregnantFemaleSwineSaleList = class extends Report {
|
|
|
2154
2135
|
});
|
|
2155
2136
|
}
|
|
2156
2137
|
async csv(input) {
|
|
2157
|
-
|
|
2138
|
+
await this.requestCsv({
|
|
2158
2139
|
resources: this.getResources(input),
|
|
2159
2140
|
parameters: [
|
|
2160
2141
|
...this.getParameters(input),
|
|
@@ -2198,7 +2179,7 @@ var ReproductiveFailureAnalysis = class extends Report {
|
|
|
2198
2179
|
this.fileName = "An\xE1lise de perdas de cobertura";
|
|
2199
2180
|
}
|
|
2200
2181
|
async pdf(input) {
|
|
2201
|
-
|
|
2182
|
+
await this.requestPdf({
|
|
2202
2183
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2203
2184
|
parameters: [
|
|
2204
2185
|
{ key: "GROUP", value: input.groupBy },
|
|
@@ -2231,7 +2212,7 @@ var ReproductiveFailureCollectionForm = class extends Report {
|
|
|
2231
2212
|
this.fileName = "Perda de cobertura";
|
|
2232
2213
|
}
|
|
2233
2214
|
async pdf(input) {
|
|
2234
|
-
|
|
2215
|
+
await this.requestPdf({
|
|
2235
2216
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2236
2217
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
2237
2218
|
});
|
|
@@ -2246,7 +2227,7 @@ var ReproductiveFailureList = class extends Report {
|
|
|
2246
2227
|
this.fileName = "Perdas de cobertura";
|
|
2247
2228
|
}
|
|
2248
2229
|
async pdf(input) {
|
|
2249
|
-
|
|
2230
|
+
await this.requestPdf({
|
|
2250
2231
|
resources: this.getResources(input),
|
|
2251
2232
|
parameters: [
|
|
2252
2233
|
...this.getParameters(input),
|
|
@@ -2255,7 +2236,7 @@ var ReproductiveFailureList = class extends Report {
|
|
|
2255
2236
|
});
|
|
2256
2237
|
}
|
|
2257
2238
|
async csv(input) {
|
|
2258
|
-
|
|
2239
|
+
await this.requestCsv({
|
|
2259
2240
|
resources: this.getResources(input),
|
|
2260
2241
|
parameters: [
|
|
2261
2242
|
...this.getParameters(input),
|
|
@@ -2293,7 +2274,7 @@ var ScoreList = class extends Report {
|
|
|
2293
2274
|
this.fileName = "Listagem de escores";
|
|
2294
2275
|
}
|
|
2295
2276
|
async pdf(input) {
|
|
2296
|
-
|
|
2277
|
+
await this.requestPdf({
|
|
2297
2278
|
resources: this.getResources(input),
|
|
2298
2279
|
parameters: [
|
|
2299
2280
|
...this.getParameters(input),
|
|
@@ -2302,7 +2283,7 @@ var ScoreList = class extends Report {
|
|
|
2302
2283
|
});
|
|
2303
2284
|
}
|
|
2304
2285
|
async csv(input) {
|
|
2305
|
-
|
|
2286
|
+
await this.requestCsv({
|
|
2306
2287
|
resources: this.getResources(input),
|
|
2307
2288
|
parameters: [
|
|
2308
2289
|
...this.getParameters(input),
|
|
@@ -2326,7 +2307,7 @@ var WeaningAnalysis = class extends Report {
|
|
|
2326
2307
|
this.fileName = "An\xE1lise de desmames";
|
|
2327
2308
|
}
|
|
2328
2309
|
async pdf(input) {
|
|
2329
|
-
|
|
2310
|
+
await this.requestPdf({
|
|
2330
2311
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2331
2312
|
parameters: [
|
|
2332
2313
|
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
@@ -2359,7 +2340,7 @@ var WeaningCollectionForm = class extends Report {
|
|
|
2359
2340
|
this.fileName = "Desmame";
|
|
2360
2341
|
}
|
|
2361
2342
|
async pdf(input) {
|
|
2362
|
-
|
|
2343
|
+
await this.requestPdf({
|
|
2363
2344
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2364
2345
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
2365
2346
|
});
|
|
@@ -2374,7 +2355,7 @@ var WeaningList = class extends Report {
|
|
|
2374
2355
|
this.fileName = "Listagem de desmames";
|
|
2375
2356
|
}
|
|
2376
2357
|
async pdf(input) {
|
|
2377
|
-
|
|
2358
|
+
await this.requestPdf({
|
|
2378
2359
|
resources: this.getResources(input),
|
|
2379
2360
|
parameters: [
|
|
2380
2361
|
...this.getParameters(input),
|
|
@@ -2383,7 +2364,7 @@ var WeaningList = class extends Report {
|
|
|
2383
2364
|
});
|
|
2384
2365
|
}
|
|
2385
2366
|
async csv(input) {
|
|
2386
|
-
|
|
2367
|
+
await this.requestCsv({
|
|
2387
2368
|
resources: this.getResources(input),
|
|
2388
2369
|
parameters: [
|
|
2389
2370
|
...this.getParameters(input),
|
|
@@ -2506,21 +2487,13 @@ var PigMaster = class {
|
|
|
2506
2487
|
}
|
|
2507
2488
|
};
|
|
2508
2489
|
|
|
2509
|
-
// src/
|
|
2510
|
-
var
|
|
2511
|
-
constructor(http) {
|
|
2512
|
-
this.http = http;
|
|
2490
|
+
// src/jaspion.ts
|
|
2491
|
+
var Jaspion = class {
|
|
2492
|
+
constructor({ http }) {
|
|
2513
2493
|
this.pigMaster = new PigMaster(http);
|
|
2514
2494
|
}
|
|
2515
|
-
setAccessToken(token) {
|
|
2516
|
-
this.http.setHeader("Authorization", `Bearer ${token}`);
|
|
2517
|
-
}
|
|
2518
2495
|
};
|
|
2519
|
-
function jaspion(baseUrl) {
|
|
2520
|
-
const http = new HttpClient(baseUrl);
|
|
2521
|
-
return new JaspionClient(http);
|
|
2522
|
-
}
|
|
2523
2496
|
export {
|
|
2524
|
-
|
|
2497
|
+
Jaspion
|
|
2525
2498
|
};
|
|
2526
2499
|
//# sourceMappingURL=index.mjs.map
|