@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.js
CHANGED
|
@@ -20,46 +20,23 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
-
|
|
23
|
+
Jaspion: () => Jaspion
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(index_exports);
|
|
26
26
|
|
|
27
|
-
// src/core/http-client.ts
|
|
28
|
-
var HttpClient = class {
|
|
29
|
-
constructor(baseUrl) {
|
|
30
|
-
this.baseUrl = baseUrl;
|
|
31
|
-
this.headers = {
|
|
32
|
-
"Content-Type": "application/json"
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
setHeader(key, value) {
|
|
36
|
-
this.headers[key] = value;
|
|
37
|
-
}
|
|
38
|
-
async post(path, body) {
|
|
39
|
-
const response = await fetch(`${this.baseUrl}${path}`, {
|
|
40
|
-
method: "POST",
|
|
41
|
-
headers: this.headers,
|
|
42
|
-
body: JSON.stringify(body)
|
|
43
|
-
});
|
|
44
|
-
if (!response.ok) {
|
|
45
|
-
throw new Error(`Request failed with status ${response.status}`);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
27
|
// src/core/report.ts
|
|
51
28
|
var Report = class {
|
|
52
29
|
constructor(http) {
|
|
53
30
|
this.http = http;
|
|
54
31
|
}
|
|
55
32
|
async requestPdf(input) {
|
|
56
|
-
|
|
33
|
+
await this.request({
|
|
57
34
|
...input,
|
|
58
35
|
contentType: "application/pdf"
|
|
59
36
|
});
|
|
60
37
|
}
|
|
61
38
|
async requestCsv(input) {
|
|
62
|
-
|
|
39
|
+
await this.request({
|
|
63
40
|
...input,
|
|
64
41
|
contentType: "text/csv"
|
|
65
42
|
});
|
|
@@ -74,13 +51,17 @@ var Report = class {
|
|
|
74
51
|
"text/csv": ".csv"
|
|
75
52
|
};
|
|
76
53
|
const fileName = `${this.fileName}${fileExtensions[contentType]}`;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
54
|
+
return this.http.request({
|
|
55
|
+
method: "POST",
|
|
56
|
+
path: "/reports",
|
|
57
|
+
body: {
|
|
58
|
+
template: this.template,
|
|
59
|
+
fileName,
|
|
60
|
+
parameters,
|
|
61
|
+
resources,
|
|
62
|
+
contentType,
|
|
63
|
+
type: "jasper-reports"
|
|
64
|
+
}
|
|
84
65
|
});
|
|
85
66
|
}
|
|
86
67
|
};
|
|
@@ -93,7 +74,7 @@ var BirthPlaceList = class extends Report {
|
|
|
93
74
|
this.fileName = "Listagem de proced\xEAncias";
|
|
94
75
|
}
|
|
95
76
|
async pdf(input) {
|
|
96
|
-
|
|
77
|
+
await this.requestPdf({
|
|
97
78
|
resources: this.getResources(input),
|
|
98
79
|
parameters: [
|
|
99
80
|
...this.getParameters(input),
|
|
@@ -102,7 +83,7 @@ var BirthPlaceList = class extends Report {
|
|
|
102
83
|
});
|
|
103
84
|
}
|
|
104
85
|
async csv(input) {
|
|
105
|
-
|
|
86
|
+
await this.requestCsv({
|
|
106
87
|
resources: this.getResources(input),
|
|
107
88
|
parameters: [
|
|
108
89
|
...this.getParameters(input),
|
|
@@ -126,7 +107,7 @@ var BoarByBreedList = class extends Report {
|
|
|
126
107
|
this.fileName = "Machos por ra\xE7a";
|
|
127
108
|
}
|
|
128
109
|
async pdf(input) {
|
|
129
|
-
|
|
110
|
+
await this.requestPdf({
|
|
130
111
|
resources: this.getResources(input),
|
|
131
112
|
parameters: [
|
|
132
113
|
...this.getParameters(input),
|
|
@@ -135,7 +116,7 @@ var BoarByBreedList = class extends Report {
|
|
|
135
116
|
});
|
|
136
117
|
}
|
|
137
118
|
async csv(input) {
|
|
138
|
-
|
|
119
|
+
await this.requestCsv({
|
|
139
120
|
resources: this.getResources(input),
|
|
140
121
|
parameters: [
|
|
141
122
|
...this.getParameters(input),
|
|
@@ -163,7 +144,7 @@ var BoarDeathCollectionForm = class extends Report {
|
|
|
163
144
|
this.fileName = "Morte de macho";
|
|
164
145
|
}
|
|
165
146
|
async pdf(input) {
|
|
166
|
-
|
|
147
|
+
await this.requestPdf({
|
|
167
148
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
168
149
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
169
150
|
});
|
|
@@ -178,7 +159,7 @@ var BoarDeathList = class extends Report {
|
|
|
178
159
|
this.fileName = "Mortes de machos";
|
|
179
160
|
}
|
|
180
161
|
async pdf(input) {
|
|
181
|
-
|
|
162
|
+
await this.requestPdf({
|
|
182
163
|
resources: this.getResources(input),
|
|
183
164
|
parameters: [
|
|
184
165
|
...this.getParameters(input),
|
|
@@ -187,7 +168,7 @@ var BoarDeathList = class extends Report {
|
|
|
187
168
|
});
|
|
188
169
|
}
|
|
189
170
|
async csv(input) {
|
|
190
|
-
|
|
171
|
+
await this.requestCsv({
|
|
191
172
|
resources: this.getResources(input),
|
|
192
173
|
parameters: [
|
|
193
174
|
...this.getParameters(input),
|
|
@@ -225,7 +206,7 @@ var BoarDiscardCollectionForm = class extends Report {
|
|
|
225
206
|
this.fileName = "Descarte de macho";
|
|
226
207
|
}
|
|
227
208
|
async pdf(input) {
|
|
228
|
-
|
|
209
|
+
await this.requestPdf({
|
|
229
210
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
230
211
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
231
212
|
});
|
|
@@ -240,7 +221,7 @@ var BoarDiscardList = class extends Report {
|
|
|
240
221
|
this.fileName = "Descartes de machos";
|
|
241
222
|
}
|
|
242
223
|
async pdf(input) {
|
|
243
|
-
|
|
224
|
+
await this.requestPdf({
|
|
244
225
|
resources: this.getResources(input),
|
|
245
226
|
parameters: [
|
|
246
227
|
...this.getParameters(input),
|
|
@@ -249,7 +230,7 @@ var BoarDiscardList = class extends Report {
|
|
|
249
230
|
});
|
|
250
231
|
}
|
|
251
232
|
async csv(input) {
|
|
252
|
-
|
|
233
|
+
await this.requestCsv({
|
|
253
234
|
resources: this.getResources(input),
|
|
254
235
|
parameters: [
|
|
255
236
|
...this.getParameters(input),
|
|
@@ -288,7 +269,7 @@ var BoarEarTagReplacementList = class extends Report {
|
|
|
288
269
|
this.fileName = "Trocas de brinco de macho";
|
|
289
270
|
}
|
|
290
271
|
async pdf(input) {
|
|
291
|
-
|
|
272
|
+
await this.requestPdf({
|
|
292
273
|
resources: this.getResources(input),
|
|
293
274
|
parameters: [
|
|
294
275
|
...this.getParameters(input),
|
|
@@ -297,7 +278,7 @@ var BoarEarTagReplacementList = class extends Report {
|
|
|
297
278
|
});
|
|
298
279
|
}
|
|
299
280
|
async csv(input) {
|
|
300
|
-
|
|
281
|
+
await this.requestCsv({
|
|
301
282
|
resources: this.getResources(input),
|
|
302
283
|
parameters: [
|
|
303
284
|
...this.getParameters(input),
|
|
@@ -327,7 +308,7 @@ var BoarTreatmentCollectionForm = class extends Report {
|
|
|
327
308
|
this.fileName = "Medica\xE7\xE3o / vacina\xE7\xE3o de macho";
|
|
328
309
|
}
|
|
329
310
|
async pdf(input) {
|
|
330
|
-
|
|
311
|
+
await this.requestPdf({
|
|
331
312
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
332
313
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
333
314
|
});
|
|
@@ -342,7 +323,7 @@ var BoarTreatmentList = class extends Report {
|
|
|
342
323
|
this.fileName = "Listagem de medica\xE7\xF5es / vacinas (machos)";
|
|
343
324
|
}
|
|
344
325
|
async pdf(input) {
|
|
345
|
-
|
|
326
|
+
await this.requestPdf({
|
|
346
327
|
resources: this.getResources(input),
|
|
347
328
|
parameters: [
|
|
348
329
|
...this.getParameters(input),
|
|
@@ -351,7 +332,7 @@ var BoarTreatmentList = class extends Report {
|
|
|
351
332
|
});
|
|
352
333
|
}
|
|
353
334
|
async csv(input) {
|
|
354
|
-
|
|
335
|
+
await this.requestCsv({
|
|
355
336
|
resources: this.getResources(input),
|
|
356
337
|
parameters: [
|
|
357
338
|
...this.getParameters(input),
|
|
@@ -381,7 +362,7 @@ var BoarsInventory = class extends Report {
|
|
|
381
362
|
this.fileName = "Estoque de machos";
|
|
382
363
|
}
|
|
383
364
|
async pdf(input) {
|
|
384
|
-
|
|
365
|
+
await this.requestPdf({
|
|
385
366
|
resources: this.getResources(input),
|
|
386
367
|
parameters: [
|
|
387
368
|
...this.getParameters(input),
|
|
@@ -390,7 +371,7 @@ var BoarsInventory = class extends Report {
|
|
|
390
371
|
});
|
|
391
372
|
}
|
|
392
373
|
async csv(input) {
|
|
393
|
-
|
|
374
|
+
await this.requestCsv({
|
|
394
375
|
resources: this.getResources(input),
|
|
395
376
|
parameters: [
|
|
396
377
|
...this.getParameters(input),
|
|
@@ -421,7 +402,7 @@ var BreedList = class extends Report {
|
|
|
421
402
|
this.fileName = "Listagem de ra\xE7as";
|
|
422
403
|
}
|
|
423
404
|
async pdf(input) {
|
|
424
|
-
|
|
405
|
+
await this.requestPdf({
|
|
425
406
|
resources: this.getResources(input),
|
|
426
407
|
parameters: [
|
|
427
408
|
...this.getParameters(input),
|
|
@@ -430,7 +411,7 @@ var BreedList = class extends Report {
|
|
|
430
411
|
});
|
|
431
412
|
}
|
|
432
413
|
async csv(input) {
|
|
433
|
-
|
|
414
|
+
await this.requestCsv({
|
|
434
415
|
resources: this.getResources(input),
|
|
435
416
|
parameters: [
|
|
436
417
|
...this.getParameters(input),
|
|
@@ -454,7 +435,7 @@ var BreedingMonitor = class extends Report {
|
|
|
454
435
|
this.fileName = "Monitor de Reprodu\xE7\xE3o";
|
|
455
436
|
}
|
|
456
437
|
async pdf(input) {
|
|
457
|
-
|
|
438
|
+
await this.requestPdf({
|
|
458
439
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
459
440
|
parameters: [
|
|
460
441
|
{ key: "DATE_BEGIN", value: input.dateRange.start },
|
|
@@ -474,7 +455,7 @@ var CauseList = class extends Report {
|
|
|
474
455
|
this.fileName = "Listagem de motivos";
|
|
475
456
|
}
|
|
476
457
|
async pdf(input) {
|
|
477
|
-
|
|
458
|
+
await this.requestPdf({
|
|
478
459
|
resources: this.getResources(input),
|
|
479
460
|
parameters: [
|
|
480
461
|
...this.getParameters(input),
|
|
@@ -483,7 +464,7 @@ var CauseList = class extends Report {
|
|
|
483
464
|
});
|
|
484
465
|
}
|
|
485
466
|
async csv(input) {
|
|
486
|
-
|
|
467
|
+
await this.requestCsv({
|
|
487
468
|
resources: this.getResources(input),
|
|
488
469
|
parameters: [
|
|
489
470
|
...this.getParameters(input),
|
|
@@ -513,7 +494,7 @@ var DrugList = class extends Report {
|
|
|
513
494
|
this.fileName = "Listagem de medicamentos / vacinas";
|
|
514
495
|
}
|
|
515
496
|
async pdf(input) {
|
|
516
|
-
|
|
497
|
+
await this.requestPdf({
|
|
517
498
|
resources: this.getResources(input),
|
|
518
499
|
parameters: [
|
|
519
500
|
...this.getParameters(input),
|
|
@@ -522,7 +503,7 @@ var DrugList = class extends Report {
|
|
|
522
503
|
});
|
|
523
504
|
}
|
|
524
505
|
async csv(input) {
|
|
525
|
-
|
|
506
|
+
await this.requestCsv({
|
|
526
507
|
resources: this.getResources(input),
|
|
527
508
|
parameters: [
|
|
528
509
|
...this.getParameters(input),
|
|
@@ -546,7 +527,7 @@ var EmployeeList = class extends Report {
|
|
|
546
527
|
this.fileName = "Listagem de funcion\xE1rios";
|
|
547
528
|
}
|
|
548
529
|
async pdf(input) {
|
|
549
|
-
|
|
530
|
+
await this.requestPdf({
|
|
550
531
|
resources: this.getResources(input),
|
|
551
532
|
parameters: [
|
|
552
533
|
...this.getParameters(input),
|
|
@@ -555,7 +536,7 @@ var EmployeeList = class extends Report {
|
|
|
555
536
|
});
|
|
556
537
|
}
|
|
557
538
|
async csv(input) {
|
|
558
|
-
|
|
539
|
+
await this.requestCsv({
|
|
559
540
|
resources: this.getResources(input),
|
|
560
541
|
parameters: [
|
|
561
542
|
...this.getParameters(input),
|
|
@@ -582,7 +563,7 @@ var FarmSummary = class extends Report {
|
|
|
582
563
|
this.fileName = "Fechamento de per\xEDodo";
|
|
583
564
|
}
|
|
584
565
|
async pdf(input) {
|
|
585
|
-
|
|
566
|
+
await this.requestPdf({
|
|
586
567
|
resources: this.getResources(input),
|
|
587
568
|
parameters: [
|
|
588
569
|
...this.getParameters(input),
|
|
@@ -591,7 +572,7 @@ var FarmSummary = class extends Report {
|
|
|
591
572
|
});
|
|
592
573
|
}
|
|
593
574
|
async csv(input) {
|
|
594
|
-
|
|
575
|
+
await this.requestCsv({
|
|
595
576
|
resources: this.getResources(input),
|
|
596
577
|
parameters: [
|
|
597
578
|
...this.getParameters(input),
|
|
@@ -619,7 +600,7 @@ var FarrowingAnalysis = class extends Report {
|
|
|
619
600
|
this.fileName = "An\xE1lise de partos";
|
|
620
601
|
}
|
|
621
602
|
async pdf(input) {
|
|
622
|
-
|
|
603
|
+
await this.requestPdf({
|
|
623
604
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
624
605
|
parameters: [
|
|
625
606
|
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
@@ -651,7 +632,7 @@ var FarrowingCollectionForm = class extends Report {
|
|
|
651
632
|
this.fileName = "Parto";
|
|
652
633
|
}
|
|
653
634
|
async pdf(input) {
|
|
654
|
-
|
|
635
|
+
await this.requestPdf({
|
|
655
636
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
656
637
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
657
638
|
});
|
|
@@ -673,7 +654,7 @@ var FarrowingList = class extends Report {
|
|
|
673
654
|
this.fileName = "Listagem de partos";
|
|
674
655
|
}
|
|
675
656
|
async pdf(input) {
|
|
676
|
-
|
|
657
|
+
await this.requestPdf({
|
|
677
658
|
resources: this.getResources(input),
|
|
678
659
|
parameters: [
|
|
679
660
|
...this.getParameters(input),
|
|
@@ -682,7 +663,7 @@ var FarrowingList = class extends Report {
|
|
|
682
663
|
});
|
|
683
664
|
}
|
|
684
665
|
async csv(input) {
|
|
685
|
-
|
|
666
|
+
await this.requestCsv({
|
|
686
667
|
resources: this.getResources(input),
|
|
687
668
|
parameters: [
|
|
688
669
|
...this.getParameters(input),
|
|
@@ -719,7 +700,7 @@ var FarrowingTypeList = class extends Report {
|
|
|
719
700
|
this.fileName = "Listagem de tipos de parto";
|
|
720
701
|
}
|
|
721
702
|
async pdf(input) {
|
|
722
|
-
|
|
703
|
+
await this.requestPdf({
|
|
723
704
|
resources: this.getResources(input),
|
|
724
705
|
parameters: [
|
|
725
706
|
...this.getParameters(input),
|
|
@@ -728,7 +709,7 @@ var FarrowingTypeList = class extends Report {
|
|
|
728
709
|
});
|
|
729
710
|
}
|
|
730
711
|
async csv(input) {
|
|
731
|
-
|
|
712
|
+
await this.requestCsv({
|
|
732
713
|
resources: this.getResources(input),
|
|
733
714
|
parameters: [
|
|
734
715
|
...this.getParameters(input),
|
|
@@ -752,7 +733,7 @@ var FemaleSwineArrivalMonitoring = class extends Report {
|
|
|
752
733
|
this.fileName = "Acompanhamento do lote";
|
|
753
734
|
}
|
|
754
735
|
async pdf(input) {
|
|
755
|
-
|
|
736
|
+
await this.requestPdf({
|
|
756
737
|
resources: this.getResources(input),
|
|
757
738
|
parameters: [
|
|
758
739
|
...this.getParameters(input),
|
|
@@ -761,7 +742,7 @@ var FemaleSwineArrivalMonitoring = class extends Report {
|
|
|
761
742
|
});
|
|
762
743
|
}
|
|
763
744
|
async csv(input) {
|
|
764
|
-
|
|
745
|
+
await this.requestCsv({
|
|
765
746
|
resources: this.getResources(input),
|
|
766
747
|
parameters: [
|
|
767
748
|
...this.getParameters(input),
|
|
@@ -792,7 +773,7 @@ var FemaleSwineByBreedList = class extends Report {
|
|
|
792
773
|
this.fileName = "F\xEAmeas por ra\xE7a";
|
|
793
774
|
}
|
|
794
775
|
async pdf(input) {
|
|
795
|
-
|
|
776
|
+
await this.requestPdf({
|
|
796
777
|
resources: this.getResources(input),
|
|
797
778
|
parameters: [
|
|
798
779
|
...this.getParameters(input),
|
|
@@ -801,7 +782,7 @@ var FemaleSwineByBreedList = class extends Report {
|
|
|
801
782
|
});
|
|
802
783
|
}
|
|
803
784
|
async csv(input) {
|
|
804
|
-
|
|
785
|
+
await this.requestCsv({
|
|
805
786
|
resources: this.getResources(input),
|
|
806
787
|
parameters: [
|
|
807
788
|
...this.getParameters(input),
|
|
@@ -833,7 +814,7 @@ var FemaleSwineByParityList = class extends Report {
|
|
|
833
814
|
this.fileName = "F\xEAmeas por cria";
|
|
834
815
|
}
|
|
835
816
|
async pdf(input) {
|
|
836
|
-
|
|
817
|
+
await this.requestPdf({
|
|
837
818
|
resources: this.getResources(input),
|
|
838
819
|
parameters: [
|
|
839
820
|
...this.getParameters(input),
|
|
@@ -842,7 +823,7 @@ var FemaleSwineByParityList = class extends Report {
|
|
|
842
823
|
});
|
|
843
824
|
}
|
|
844
825
|
async csv(input) {
|
|
845
|
-
|
|
826
|
+
await this.requestCsv({
|
|
846
827
|
resources: this.getResources(input),
|
|
847
828
|
parameters: [
|
|
848
829
|
...this.getParameters(input),
|
|
@@ -874,7 +855,7 @@ var FemaleSwineByStatusList = class extends Report {
|
|
|
874
855
|
this.fileName = "F\xEAmeas por status";
|
|
875
856
|
}
|
|
876
857
|
async pdf(input) {
|
|
877
|
-
|
|
858
|
+
await this.requestPdf({
|
|
878
859
|
resources: this.getResources(input),
|
|
879
860
|
parameters: [
|
|
880
861
|
...this.getParameters(input),
|
|
@@ -883,7 +864,7 @@ var FemaleSwineByStatusList = class extends Report {
|
|
|
883
864
|
});
|
|
884
865
|
}
|
|
885
866
|
async csv(input) {
|
|
886
|
-
|
|
867
|
+
await this.requestCsv({
|
|
887
868
|
resources: this.getResources(input),
|
|
888
869
|
parameters: [
|
|
889
870
|
...this.getParameters(input),
|
|
@@ -939,7 +920,7 @@ var FemaleSwineByTraceabilityList = class extends Report {
|
|
|
939
920
|
this.fileName = "F\xEAmeas por rastreabilidade";
|
|
940
921
|
}
|
|
941
922
|
async pdf(input) {
|
|
942
|
-
|
|
923
|
+
await this.requestPdf({
|
|
943
924
|
resources: this.getResources(input),
|
|
944
925
|
parameters: [
|
|
945
926
|
...this.getParameters(input),
|
|
@@ -948,7 +929,7 @@ var FemaleSwineByTraceabilityList = class extends Report {
|
|
|
948
929
|
});
|
|
949
930
|
}
|
|
950
931
|
async csv(input) {
|
|
951
|
-
|
|
932
|
+
await this.requestCsv({
|
|
952
933
|
resources: this.getResources(input),
|
|
953
934
|
parameters: [
|
|
954
935
|
...this.getParameters(input),
|
|
@@ -984,7 +965,7 @@ var FemaleSwineDeathAnalysis = class extends Report {
|
|
|
984
965
|
this.fileName = "An\xE1lise morte de f\xEAmeas";
|
|
985
966
|
}
|
|
986
967
|
async pdf(input) {
|
|
987
|
-
|
|
968
|
+
await this.requestPdf({
|
|
988
969
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
989
970
|
parameters: [
|
|
990
971
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -1016,7 +997,7 @@ var FemaleSwineDeathCollectionForm = class extends Report {
|
|
|
1016
997
|
this.fileName = "Morte de f\xEAmea";
|
|
1017
998
|
}
|
|
1018
999
|
async pdf(input) {
|
|
1019
|
-
|
|
1000
|
+
await this.requestPdf({
|
|
1020
1001
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1021
1002
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1022
1003
|
});
|
|
@@ -1031,7 +1012,7 @@ var FemaleSwineDeathList = class extends Report {
|
|
|
1031
1012
|
this.fileName = "Morte de f\xEAmeas";
|
|
1032
1013
|
}
|
|
1033
1014
|
async pdf(input) {
|
|
1034
|
-
|
|
1015
|
+
await this.requestPdf({
|
|
1035
1016
|
resources: this.getResources(input),
|
|
1036
1017
|
parameters: [
|
|
1037
1018
|
...this.getParameters(input),
|
|
@@ -1040,7 +1021,7 @@ var FemaleSwineDeathList = class extends Report {
|
|
|
1040
1021
|
});
|
|
1041
1022
|
}
|
|
1042
1023
|
async csv(input) {
|
|
1043
|
-
|
|
1024
|
+
await this.requestCsv({
|
|
1044
1025
|
resources: this.getResources(input),
|
|
1045
1026
|
parameters: [
|
|
1046
1027
|
...this.getParameters(input),
|
|
@@ -1080,7 +1061,7 @@ var FemaleSwineDiscardAnalysis = class extends Report {
|
|
|
1080
1061
|
this.fileName = "An\xE1lise descarte de f\xEAmeas";
|
|
1081
1062
|
}
|
|
1082
1063
|
async pdf(input) {
|
|
1083
|
-
|
|
1064
|
+
await this.requestPdf({
|
|
1084
1065
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1085
1066
|
parameters: [
|
|
1086
1067
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -1113,7 +1094,7 @@ var FemaleSwineDiscardCollectionForm = class extends Report {
|
|
|
1113
1094
|
this.fileName = "Descarte de f\xEAmea";
|
|
1114
1095
|
}
|
|
1115
1096
|
async pdf(input) {
|
|
1116
|
-
|
|
1097
|
+
await this.requestPdf({
|
|
1117
1098
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1118
1099
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1119
1100
|
});
|
|
@@ -1128,7 +1109,7 @@ var FemaleSwineDiscardList = class extends Report {
|
|
|
1128
1109
|
this.fileName = "Descarte de f\xEAmeas";
|
|
1129
1110
|
}
|
|
1130
1111
|
async pdf(input) {
|
|
1131
|
-
|
|
1112
|
+
await this.requestPdf({
|
|
1132
1113
|
resources: this.getResources(input),
|
|
1133
1114
|
parameters: [
|
|
1134
1115
|
...this.getParameters(input),
|
|
@@ -1137,7 +1118,7 @@ var FemaleSwineDiscardList = class extends Report {
|
|
|
1137
1118
|
});
|
|
1138
1119
|
}
|
|
1139
1120
|
async csv(input) {
|
|
1140
|
-
|
|
1121
|
+
await this.requestCsv({
|
|
1141
1122
|
resources: this.getResources(input),
|
|
1142
1123
|
parameters: [
|
|
1143
1124
|
...this.getParameters(input),
|
|
@@ -1178,7 +1159,7 @@ var FemaleSwineEarTagReplacementList = class extends Report {
|
|
|
1178
1159
|
this.fileName = "Trocas de brinco de f\xEAmeas";
|
|
1179
1160
|
}
|
|
1180
1161
|
async pdf(input) {
|
|
1181
|
-
|
|
1162
|
+
await this.requestPdf({
|
|
1182
1163
|
resources: this.getResources(input),
|
|
1183
1164
|
parameters: [
|
|
1184
1165
|
...this.getParameters(input),
|
|
@@ -1187,7 +1168,7 @@ var FemaleSwineEarTagReplacementList = class extends Report {
|
|
|
1187
1168
|
});
|
|
1188
1169
|
}
|
|
1189
1170
|
async csv(input) {
|
|
1190
|
-
|
|
1171
|
+
await this.requestCsv({
|
|
1191
1172
|
resources: this.getResources(input),
|
|
1192
1173
|
parameters: [
|
|
1193
1174
|
...this.getParameters(input),
|
|
@@ -1217,7 +1198,7 @@ var FemaleSwineInventory = class extends Report {
|
|
|
1217
1198
|
this.fileName = "Estoque de f\xEAmeas";
|
|
1218
1199
|
}
|
|
1219
1200
|
async pdf(input) {
|
|
1220
|
-
|
|
1201
|
+
await this.requestPdf({
|
|
1221
1202
|
resources: this.getResources(input),
|
|
1222
1203
|
parameters: [
|
|
1223
1204
|
...this.getParameters(input),
|
|
@@ -1226,7 +1207,7 @@ var FemaleSwineInventory = class extends Report {
|
|
|
1226
1207
|
});
|
|
1227
1208
|
}
|
|
1228
1209
|
async csv(input) {
|
|
1229
|
-
|
|
1210
|
+
await this.requestCsv({
|
|
1230
1211
|
resources: this.getResources(input),
|
|
1231
1212
|
parameters: [
|
|
1232
1213
|
...this.getParameters(input),
|
|
@@ -1257,7 +1238,7 @@ var FemaleSwinePendingActionList = class extends Report {
|
|
|
1257
1238
|
this.fileName = "A\xE7\xF5es pendentes";
|
|
1258
1239
|
}
|
|
1259
1240
|
async pdf(input) {
|
|
1260
|
-
|
|
1241
|
+
await this.requestPdf({
|
|
1261
1242
|
resources: this.getResources(input),
|
|
1262
1243
|
parameters: [
|
|
1263
1244
|
...this.getParameters(input),
|
|
@@ -1266,7 +1247,7 @@ var FemaleSwinePendingActionList = class extends Report {
|
|
|
1266
1247
|
});
|
|
1267
1248
|
}
|
|
1268
1249
|
async csv(input) {
|
|
1269
|
-
|
|
1250
|
+
await this.requestCsv({
|
|
1270
1251
|
resources: this.getResources(input),
|
|
1271
1252
|
parameters: [
|
|
1272
1253
|
...this.getParameters(input),
|
|
@@ -1294,7 +1275,7 @@ var FemaleSwinePreDiscardList = class extends Report {
|
|
|
1294
1275
|
this.fileName = "Listagem de pr\xE9-descartes de f\xEAmeas";
|
|
1295
1276
|
}
|
|
1296
1277
|
async pdf(input) {
|
|
1297
|
-
|
|
1278
|
+
await this.requestPdf({
|
|
1298
1279
|
resources: this.getResources(input),
|
|
1299
1280
|
parameters: [
|
|
1300
1281
|
...this.getParameters(input),
|
|
@@ -1303,7 +1284,7 @@ var FemaleSwinePreDiscardList = class extends Report {
|
|
|
1303
1284
|
});
|
|
1304
1285
|
}
|
|
1305
1286
|
async csv(input) {
|
|
1306
|
-
|
|
1287
|
+
await this.requestCsv({
|
|
1307
1288
|
resources: this.getResources(input),
|
|
1308
1289
|
parameters: [
|
|
1309
1290
|
...this.getParameters(input),
|
|
@@ -1335,7 +1316,7 @@ var FemaleSwineRecord = class extends Report {
|
|
|
1335
1316
|
this.fileName = "Ficha da f\xEAmea";
|
|
1336
1317
|
}
|
|
1337
1318
|
async pdf(input) {
|
|
1338
|
-
|
|
1319
|
+
await this.requestPdf({
|
|
1339
1320
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1340
1321
|
parameters: [
|
|
1341
1322
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -1355,7 +1336,7 @@ var FemaleSwineSalePlanningList = class extends Report {
|
|
|
1355
1336
|
this.fileName = "Listagem de f\xEAmeas planejadas para venda";
|
|
1356
1337
|
}
|
|
1357
1338
|
async pdf(input) {
|
|
1358
|
-
|
|
1339
|
+
await this.requestPdf({
|
|
1359
1340
|
resources: this.getResources(input),
|
|
1360
1341
|
parameters: [
|
|
1361
1342
|
...this.getParameters(input),
|
|
@@ -1364,7 +1345,7 @@ var FemaleSwineSalePlanningList = class extends Report {
|
|
|
1364
1345
|
});
|
|
1365
1346
|
}
|
|
1366
1347
|
async csv(input) {
|
|
1367
|
-
|
|
1348
|
+
await this.requestCsv({
|
|
1368
1349
|
resources: this.getResources(input),
|
|
1369
1350
|
parameters: [
|
|
1370
1351
|
...this.getParameters(input),
|
|
@@ -1395,7 +1376,7 @@ var FemaleSwineTreatmentCollectionForm = class extends Report {
|
|
|
1395
1376
|
this.fileName = "Medica\xE7\xE3o / vacina\xE7\xE3o de f\xEAmea";
|
|
1396
1377
|
}
|
|
1397
1378
|
async pdf(input) {
|
|
1398
|
-
|
|
1379
|
+
await this.requestPdf({
|
|
1399
1380
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1400
1381
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1401
1382
|
});
|
|
@@ -1410,7 +1391,7 @@ var FemaleSwineTreatmentList = class extends Report {
|
|
|
1410
1391
|
this.fileName = "Listagem de medica\xE7\xF5es / vacinas (f\xEAmeas)";
|
|
1411
1392
|
}
|
|
1412
1393
|
async pdf(input) {
|
|
1413
|
-
|
|
1394
|
+
await this.requestPdf({
|
|
1414
1395
|
resources: this.getResources(input),
|
|
1415
1396
|
parameters: [
|
|
1416
1397
|
...this.getParameters(input),
|
|
@@ -1419,7 +1400,7 @@ var FemaleSwineTreatmentList = class extends Report {
|
|
|
1419
1400
|
});
|
|
1420
1401
|
}
|
|
1421
1402
|
async csv(input) {
|
|
1422
|
-
|
|
1403
|
+
await this.requestCsv({
|
|
1423
1404
|
resources: this.getResources(input),
|
|
1424
1405
|
parameters: [
|
|
1425
1406
|
...this.getParameters(input),
|
|
@@ -1449,7 +1430,7 @@ var FinishingPigletDeathCollectionForm = class extends Report {
|
|
|
1449
1430
|
this.fileName = "Morte de leit\xE3o na termina\xE7\xE3o";
|
|
1450
1431
|
}
|
|
1451
1432
|
async pdf(input) {
|
|
1452
|
-
|
|
1433
|
+
await this.requestPdf({
|
|
1453
1434
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1454
1435
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1455
1436
|
});
|
|
@@ -1464,7 +1445,7 @@ var FlushingFemaleSwineList = class extends Report {
|
|
|
1464
1445
|
this.fileName = "F\xEAmeas flushing";
|
|
1465
1446
|
}
|
|
1466
1447
|
async pdf(input) {
|
|
1467
|
-
|
|
1448
|
+
await this.requestPdf({
|
|
1468
1449
|
resources: this.getResources(input),
|
|
1469
1450
|
parameters: [
|
|
1470
1451
|
...this.getParameters(input),
|
|
@@ -1473,7 +1454,7 @@ var FlushingFemaleSwineList = class extends Report {
|
|
|
1473
1454
|
});
|
|
1474
1455
|
}
|
|
1475
1456
|
async csv(input) {
|
|
1476
|
-
|
|
1457
|
+
await this.requestCsv({
|
|
1477
1458
|
resources: this.getResources(input),
|
|
1478
1459
|
parameters: [
|
|
1479
1460
|
...this.getParameters(input),
|
|
@@ -1502,7 +1483,7 @@ var FlushingMonitor = class extends Report {
|
|
|
1502
1483
|
this.fileName = "Flushing";
|
|
1503
1484
|
}
|
|
1504
1485
|
async pdf(input) {
|
|
1505
|
-
|
|
1486
|
+
await this.requestPdf({
|
|
1506
1487
|
resources: this.getResources(input),
|
|
1507
1488
|
parameters: [
|
|
1508
1489
|
...this.getParameters(input),
|
|
@@ -1511,7 +1492,7 @@ var FlushingMonitor = class extends Report {
|
|
|
1511
1492
|
});
|
|
1512
1493
|
}
|
|
1513
1494
|
async csv(input) {
|
|
1514
|
-
|
|
1495
|
+
await this.requestCsv({
|
|
1515
1496
|
resources: this.getResources(input),
|
|
1516
1497
|
parameters: [
|
|
1517
1498
|
...this.getParameters(input),
|
|
@@ -1540,7 +1521,7 @@ var GiltInventory = class extends Report {
|
|
|
1540
1521
|
this.fileName = "Estoque de leitoas";
|
|
1541
1522
|
}
|
|
1542
1523
|
async pdf(input) {
|
|
1543
|
-
|
|
1524
|
+
await this.requestPdf({
|
|
1544
1525
|
resources: this.getResources(input),
|
|
1545
1526
|
parameters: [
|
|
1546
1527
|
...this.getParameters(input),
|
|
@@ -1549,7 +1530,7 @@ var GiltInventory = class extends Report {
|
|
|
1549
1530
|
});
|
|
1550
1531
|
}
|
|
1551
1532
|
async csv(input) {
|
|
1552
|
-
|
|
1533
|
+
await this.requestCsv({
|
|
1553
1534
|
resources: this.getResources(input),
|
|
1554
1535
|
parameters: [
|
|
1555
1536
|
...this.getParameters(input),
|
|
@@ -1580,7 +1561,7 @@ var GtaList = class extends Report {
|
|
|
1580
1561
|
this.fileName = "Listagem de gtas";
|
|
1581
1562
|
}
|
|
1582
1563
|
async pdf(input) {
|
|
1583
|
-
|
|
1564
|
+
await this.requestPdf({
|
|
1584
1565
|
resources: this.getResources(input),
|
|
1585
1566
|
parameters: [
|
|
1586
1567
|
...this.getParameters(input),
|
|
@@ -1589,7 +1570,7 @@ var GtaList = class extends Report {
|
|
|
1589
1570
|
});
|
|
1590
1571
|
}
|
|
1591
1572
|
async csv(input) {
|
|
1592
|
-
|
|
1573
|
+
await this.requestCsv({
|
|
1593
1574
|
resources: this.getResources(input),
|
|
1594
1575
|
parameters: [
|
|
1595
1576
|
...this.getParameters(input),
|
|
@@ -1616,7 +1597,7 @@ var HeatDetectionCollectionForm = class extends Report {
|
|
|
1616
1597
|
this.fileName = "Registro de cio";
|
|
1617
1598
|
}
|
|
1618
1599
|
async pdf(input) {
|
|
1619
|
-
|
|
1600
|
+
await this.requestPdf({
|
|
1620
1601
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1621
1602
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1622
1603
|
});
|
|
@@ -1631,7 +1612,7 @@ var HeatDetectionList = class extends Report {
|
|
|
1631
1612
|
this.fileName = "Listagem de registros de cio";
|
|
1632
1613
|
}
|
|
1633
1614
|
async pdf(input) {
|
|
1634
|
-
|
|
1615
|
+
await this.requestPdf({
|
|
1635
1616
|
resources: this.getResources(input),
|
|
1636
1617
|
parameters: [
|
|
1637
1618
|
...this.getParameters(input),
|
|
@@ -1640,7 +1621,7 @@ var HeatDetectionList = class extends Report {
|
|
|
1640
1621
|
});
|
|
1641
1622
|
}
|
|
1642
1623
|
async csv(input) {
|
|
1643
|
-
|
|
1624
|
+
await this.requestCsv({
|
|
1644
1625
|
resources: this.getResources(input),
|
|
1645
1626
|
parameters: [
|
|
1646
1627
|
...this.getParameters(input),
|
|
@@ -1680,7 +1661,7 @@ var HeatMonitoring = class extends Report {
|
|
|
1680
1661
|
this.fileName = "Mapa de Cio";
|
|
1681
1662
|
}
|
|
1682
1663
|
async pdf(input) {
|
|
1683
|
-
|
|
1664
|
+
await this.requestPdf({
|
|
1684
1665
|
resources: this.getResources(input),
|
|
1685
1666
|
parameters: [
|
|
1686
1667
|
...this.getParameters(input),
|
|
@@ -1689,7 +1670,7 @@ var HeatMonitoring = class extends Report {
|
|
|
1689
1670
|
});
|
|
1690
1671
|
}
|
|
1691
1672
|
async csv(input) {
|
|
1692
|
-
|
|
1673
|
+
await this.requestCsv({
|
|
1693
1674
|
resources: this.getResources(input),
|
|
1694
1675
|
parameters: [
|
|
1695
1676
|
...this.getParameters(input),
|
|
@@ -1720,7 +1701,7 @@ var LocationList = class extends Report {
|
|
|
1720
1701
|
this.fileName = "Listagem de localiza\xE7\xF5es";
|
|
1721
1702
|
}
|
|
1722
1703
|
async pdf(input) {
|
|
1723
|
-
|
|
1704
|
+
await this.requestPdf({
|
|
1724
1705
|
resources: this.getResources(input),
|
|
1725
1706
|
parameters: [
|
|
1726
1707
|
...this.getParameters(input),
|
|
@@ -1729,7 +1710,7 @@ var LocationList = class extends Report {
|
|
|
1729
1710
|
});
|
|
1730
1711
|
}
|
|
1731
1712
|
async csv(input) {
|
|
1732
|
-
|
|
1713
|
+
await this.requestCsv({
|
|
1733
1714
|
resources: this.getResources(input),
|
|
1734
1715
|
parameters: [
|
|
1735
1716
|
...this.getParameters(input),
|
|
@@ -1753,7 +1734,7 @@ var MaternityPigletDeathCollectionForm = class extends Report {
|
|
|
1753
1734
|
this.fileName = "Morte de leit\xE3o na maternidade";
|
|
1754
1735
|
}
|
|
1755
1736
|
async pdf(input) {
|
|
1756
|
-
|
|
1737
|
+
await this.requestPdf({
|
|
1757
1738
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1758
1739
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1759
1740
|
});
|
|
@@ -1768,7 +1749,7 @@ var MaternityPigletDeathList = class extends Report {
|
|
|
1768
1749
|
this.fileName = "Listagem de mortes de leit\xE3o";
|
|
1769
1750
|
}
|
|
1770
1751
|
async pdf(input) {
|
|
1771
|
-
|
|
1752
|
+
await this.requestPdf({
|
|
1772
1753
|
resources: this.getResources(input),
|
|
1773
1754
|
parameters: [
|
|
1774
1755
|
...this.getParameters(input),
|
|
@@ -1777,7 +1758,7 @@ var MaternityPigletDeathList = class extends Report {
|
|
|
1777
1758
|
});
|
|
1778
1759
|
}
|
|
1779
1760
|
async csv(input) {
|
|
1780
|
-
|
|
1761
|
+
await this.requestCsv({
|
|
1781
1762
|
resources: this.getResources(input),
|
|
1782
1763
|
parameters: [
|
|
1783
1764
|
...this.getParameters(input),
|
|
@@ -1810,7 +1791,7 @@ var MaternityPigletTransferCollectionForm = class extends Report {
|
|
|
1810
1791
|
this.fileName = "Transfer\xEAncia de leit\xE3o na maternidade";
|
|
1811
1792
|
}
|
|
1812
1793
|
async pdf(input) {
|
|
1813
|
-
|
|
1794
|
+
await this.requestPdf({
|
|
1814
1795
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1815
1796
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1816
1797
|
});
|
|
@@ -1825,7 +1806,7 @@ var MatingAnalysis = class extends Report {
|
|
|
1825
1806
|
this.fileName = "An\xE1lise de coberturas";
|
|
1826
1807
|
}
|
|
1827
1808
|
async pdf(input) {
|
|
1828
|
-
|
|
1809
|
+
await this.requestPdf({
|
|
1829
1810
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1830
1811
|
parameters: [
|
|
1831
1812
|
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
@@ -1863,7 +1844,7 @@ var MatingCollectionForm = class extends Report {
|
|
|
1863
1844
|
this.fileName = "Cobertura";
|
|
1864
1845
|
}
|
|
1865
1846
|
async pdf(input) {
|
|
1866
|
-
|
|
1847
|
+
await this.requestPdf({
|
|
1867
1848
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1868
1849
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1869
1850
|
});
|
|
@@ -1878,7 +1859,7 @@ var MatingGroupList = class extends Report {
|
|
|
1878
1859
|
this.fileName = "Listagem de grupos de cobertura";
|
|
1879
1860
|
}
|
|
1880
1861
|
async pdf(input) {
|
|
1881
|
-
|
|
1862
|
+
await this.requestPdf({
|
|
1882
1863
|
resources: this.getResources(input),
|
|
1883
1864
|
parameters: [
|
|
1884
1865
|
...this.getParameters(input),
|
|
@@ -1887,7 +1868,7 @@ var MatingGroupList = class extends Report {
|
|
|
1887
1868
|
});
|
|
1888
1869
|
}
|
|
1889
1870
|
async csv(input) {
|
|
1890
|
-
|
|
1871
|
+
await this.requestCsv({
|
|
1891
1872
|
resources: this.getResources(input),
|
|
1892
1873
|
parameters: [
|
|
1893
1874
|
...this.getParameters(input),
|
|
@@ -1911,7 +1892,7 @@ var MatingList = class extends Report {
|
|
|
1911
1892
|
this.fileName = "Listagem de coberturas";
|
|
1912
1893
|
}
|
|
1913
1894
|
async pdf(input) {
|
|
1914
|
-
|
|
1895
|
+
await this.requestPdf({
|
|
1915
1896
|
resources: this.getResources(input),
|
|
1916
1897
|
parameters: [
|
|
1917
1898
|
...this.getParameters(input),
|
|
@@ -1920,7 +1901,7 @@ var MatingList = class extends Report {
|
|
|
1920
1901
|
});
|
|
1921
1902
|
}
|
|
1922
1903
|
async csv(input) {
|
|
1923
|
-
|
|
1904
|
+
await this.requestCsv({
|
|
1924
1905
|
resources: this.getResources(input),
|
|
1925
1906
|
parameters: [
|
|
1926
1907
|
...this.getParameters(input),
|
|
@@ -1968,7 +1949,7 @@ var MatingOverview = class extends Report {
|
|
|
1968
1949
|
this.fileName = "Performance de coberturas";
|
|
1969
1950
|
}
|
|
1970
1951
|
async pdf(input) {
|
|
1971
|
-
|
|
1952
|
+
await this.requestPdf({
|
|
1972
1953
|
resources: this.getResources(input),
|
|
1973
1954
|
parameters: [
|
|
1974
1955
|
...this.getParameters(input),
|
|
@@ -1977,7 +1958,7 @@ var MatingOverview = class extends Report {
|
|
|
1977
1958
|
});
|
|
1978
1959
|
}
|
|
1979
1960
|
async csv(input) {
|
|
1980
|
-
|
|
1961
|
+
await this.requestCsv({
|
|
1981
1962
|
resources: this.getResources(input),
|
|
1982
1963
|
parameters: [
|
|
1983
1964
|
...this.getParameters(input),
|
|
@@ -2008,7 +1989,7 @@ var MbrfFemaleSwineRecord = class extends Report {
|
|
|
2008
1989
|
this.fileName = "Ficha fim";
|
|
2009
1990
|
}
|
|
2010
1991
|
async pdf(input) {
|
|
2011
|
-
|
|
1992
|
+
await this.requestPdf({
|
|
2012
1993
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2013
1994
|
parameters: [
|
|
2014
1995
|
{ key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
|
|
@@ -2026,7 +2007,7 @@ var NurseryPigletDeathCollectionForm = class extends Report {
|
|
|
2026
2007
|
this.fileName = "Morte de leit\xE3o na creche";
|
|
2027
2008
|
}
|
|
2028
2009
|
async pdf(input) {
|
|
2029
|
-
|
|
2010
|
+
await this.requestPdf({
|
|
2030
2011
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2031
2012
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
2032
2013
|
});
|
|
@@ -2041,7 +2022,7 @@ var OriginList = class extends Report {
|
|
|
2041
2022
|
this.fileName = "Listagem de origens";
|
|
2042
2023
|
}
|
|
2043
2024
|
async pdf(input) {
|
|
2044
|
-
|
|
2025
|
+
await this.requestPdf({
|
|
2045
2026
|
resources: this.getResources(input),
|
|
2046
2027
|
parameters: [
|
|
2047
2028
|
...this.getParameters(input),
|
|
@@ -2050,7 +2031,7 @@ var OriginList = class extends Report {
|
|
|
2050
2031
|
});
|
|
2051
2032
|
}
|
|
2052
2033
|
async csv(input) {
|
|
2053
|
-
|
|
2034
|
+
await this.requestCsv({
|
|
2054
2035
|
resources: this.getResources(input),
|
|
2055
2036
|
parameters: [
|
|
2056
2037
|
...this.getParameters(input),
|
|
@@ -2074,7 +2055,7 @@ var ParityStructure = class extends Report {
|
|
|
2074
2055
|
this.fileName = "Estrutura et\xE1ria";
|
|
2075
2056
|
}
|
|
2076
2057
|
async pdf(input) {
|
|
2077
|
-
|
|
2058
|
+
await this.requestPdf({
|
|
2078
2059
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2079
2060
|
parameters: [
|
|
2080
2061
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -2095,7 +2076,7 @@ var PreFlushingFemaleSwineList = class extends Report {
|
|
|
2095
2076
|
this.fileName = "F\xEAmeas pr\xE9-flushing";
|
|
2096
2077
|
}
|
|
2097
2078
|
async pdf(input) {
|
|
2098
|
-
|
|
2079
|
+
await this.requestPdf({
|
|
2099
2080
|
resources: this.getResources(input),
|
|
2100
2081
|
parameters: [
|
|
2101
2082
|
...this.getParameters(input),
|
|
@@ -2104,7 +2085,7 @@ var PreFlushingFemaleSwineList = class extends Report {
|
|
|
2104
2085
|
});
|
|
2105
2086
|
}
|
|
2106
2087
|
async csv(input) {
|
|
2107
|
-
|
|
2088
|
+
await this.requestCsv({
|
|
2108
2089
|
resources: this.getResources(input),
|
|
2109
2090
|
parameters: [
|
|
2110
2091
|
...this.getParameters(input),
|
|
@@ -2133,7 +2114,7 @@ var PregnantFemaleSwineList = class extends Report {
|
|
|
2133
2114
|
this.fileName = "F\xEAmeas gestantes";
|
|
2134
2115
|
}
|
|
2135
2116
|
async pdf(input) {
|
|
2136
|
-
|
|
2117
|
+
await this.requestPdf({
|
|
2137
2118
|
resources: this.getResources(input),
|
|
2138
2119
|
parameters: [
|
|
2139
2120
|
{ key: "DATA_ONLY", value: false },
|
|
@@ -2142,7 +2123,7 @@ var PregnantFemaleSwineList = class extends Report {
|
|
|
2142
2123
|
});
|
|
2143
2124
|
}
|
|
2144
2125
|
async csv(input) {
|
|
2145
|
-
|
|
2126
|
+
await this.requestCsv({
|
|
2146
2127
|
resources: this.getResources(input),
|
|
2147
2128
|
parameters: [
|
|
2148
2129
|
{ key: "DATA_ONLY", value: true },
|
|
@@ -2171,7 +2152,7 @@ var PregnantFemaleSwineSaleList = class extends Report {
|
|
|
2171
2152
|
this.fileName = "Listagem de vendas de gestantes";
|
|
2172
2153
|
}
|
|
2173
2154
|
async pdf(input) {
|
|
2174
|
-
|
|
2155
|
+
await this.requestPdf({
|
|
2175
2156
|
resources: this.getResources(input),
|
|
2176
2157
|
parameters: [
|
|
2177
2158
|
...this.getParameters(input),
|
|
@@ -2180,7 +2161,7 @@ var PregnantFemaleSwineSaleList = class extends Report {
|
|
|
2180
2161
|
});
|
|
2181
2162
|
}
|
|
2182
2163
|
async csv(input) {
|
|
2183
|
-
|
|
2164
|
+
await this.requestCsv({
|
|
2184
2165
|
resources: this.getResources(input),
|
|
2185
2166
|
parameters: [
|
|
2186
2167
|
...this.getParameters(input),
|
|
@@ -2224,7 +2205,7 @@ var ReproductiveFailureAnalysis = class extends Report {
|
|
|
2224
2205
|
this.fileName = "An\xE1lise de perdas de cobertura";
|
|
2225
2206
|
}
|
|
2226
2207
|
async pdf(input) {
|
|
2227
|
-
|
|
2208
|
+
await this.requestPdf({
|
|
2228
2209
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2229
2210
|
parameters: [
|
|
2230
2211
|
{ key: "GROUP", value: input.groupBy },
|
|
@@ -2257,7 +2238,7 @@ var ReproductiveFailureCollectionForm = class extends Report {
|
|
|
2257
2238
|
this.fileName = "Perda de cobertura";
|
|
2258
2239
|
}
|
|
2259
2240
|
async pdf(input) {
|
|
2260
|
-
|
|
2241
|
+
await this.requestPdf({
|
|
2261
2242
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2262
2243
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
2263
2244
|
});
|
|
@@ -2272,7 +2253,7 @@ var ReproductiveFailureList = class extends Report {
|
|
|
2272
2253
|
this.fileName = "Perdas de cobertura";
|
|
2273
2254
|
}
|
|
2274
2255
|
async pdf(input) {
|
|
2275
|
-
|
|
2256
|
+
await this.requestPdf({
|
|
2276
2257
|
resources: this.getResources(input),
|
|
2277
2258
|
parameters: [
|
|
2278
2259
|
...this.getParameters(input),
|
|
@@ -2281,7 +2262,7 @@ var ReproductiveFailureList = class extends Report {
|
|
|
2281
2262
|
});
|
|
2282
2263
|
}
|
|
2283
2264
|
async csv(input) {
|
|
2284
|
-
|
|
2265
|
+
await this.requestCsv({
|
|
2285
2266
|
resources: this.getResources(input),
|
|
2286
2267
|
parameters: [
|
|
2287
2268
|
...this.getParameters(input),
|
|
@@ -2319,7 +2300,7 @@ var ScoreList = class extends Report {
|
|
|
2319
2300
|
this.fileName = "Listagem de escores";
|
|
2320
2301
|
}
|
|
2321
2302
|
async pdf(input) {
|
|
2322
|
-
|
|
2303
|
+
await this.requestPdf({
|
|
2323
2304
|
resources: this.getResources(input),
|
|
2324
2305
|
parameters: [
|
|
2325
2306
|
...this.getParameters(input),
|
|
@@ -2328,7 +2309,7 @@ var ScoreList = class extends Report {
|
|
|
2328
2309
|
});
|
|
2329
2310
|
}
|
|
2330
2311
|
async csv(input) {
|
|
2331
|
-
|
|
2312
|
+
await this.requestCsv({
|
|
2332
2313
|
resources: this.getResources(input),
|
|
2333
2314
|
parameters: [
|
|
2334
2315
|
...this.getParameters(input),
|
|
@@ -2352,7 +2333,7 @@ var WeaningAnalysis = class extends Report {
|
|
|
2352
2333
|
this.fileName = "An\xE1lise de desmames";
|
|
2353
2334
|
}
|
|
2354
2335
|
async pdf(input) {
|
|
2355
|
-
|
|
2336
|
+
await this.requestPdf({
|
|
2356
2337
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2357
2338
|
parameters: [
|
|
2358
2339
|
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
@@ -2385,7 +2366,7 @@ var WeaningCollectionForm = class extends Report {
|
|
|
2385
2366
|
this.fileName = "Desmame";
|
|
2386
2367
|
}
|
|
2387
2368
|
async pdf(input) {
|
|
2388
|
-
|
|
2369
|
+
await this.requestPdf({
|
|
2389
2370
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2390
2371
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
2391
2372
|
});
|
|
@@ -2400,7 +2381,7 @@ var WeaningList = class extends Report {
|
|
|
2400
2381
|
this.fileName = "Listagem de desmames";
|
|
2401
2382
|
}
|
|
2402
2383
|
async pdf(input) {
|
|
2403
|
-
|
|
2384
|
+
await this.requestPdf({
|
|
2404
2385
|
resources: this.getResources(input),
|
|
2405
2386
|
parameters: [
|
|
2406
2387
|
...this.getParameters(input),
|
|
@@ -2409,7 +2390,7 @@ var WeaningList = class extends Report {
|
|
|
2409
2390
|
});
|
|
2410
2391
|
}
|
|
2411
2392
|
async csv(input) {
|
|
2412
|
-
|
|
2393
|
+
await this.requestCsv({
|
|
2413
2394
|
resources: this.getResources(input),
|
|
2414
2395
|
parameters: [
|
|
2415
2396
|
...this.getParameters(input),
|
|
@@ -2532,22 +2513,14 @@ var PigMaster = class {
|
|
|
2532
2513
|
}
|
|
2533
2514
|
};
|
|
2534
2515
|
|
|
2535
|
-
// src/
|
|
2536
|
-
var
|
|
2537
|
-
constructor(http) {
|
|
2538
|
-
this.http = http;
|
|
2516
|
+
// src/jaspion.ts
|
|
2517
|
+
var Jaspion = class {
|
|
2518
|
+
constructor({ http }) {
|
|
2539
2519
|
this.pigMaster = new PigMaster(http);
|
|
2540
2520
|
}
|
|
2541
|
-
setAccessToken(token) {
|
|
2542
|
-
this.http.setHeader("Authorization", `Bearer ${token}`);
|
|
2543
|
-
}
|
|
2544
2521
|
};
|
|
2545
|
-
function jaspion(baseUrl) {
|
|
2546
|
-
const http = new HttpClient(baseUrl);
|
|
2547
|
-
return new JaspionClient(http);
|
|
2548
|
-
}
|
|
2549
2522
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2550
2523
|
0 && (module.exports = {
|
|
2551
|
-
|
|
2524
|
+
Jaspion
|
|
2552
2525
|
});
|
|
2553
2526
|
//# sourceMappingURL=index.js.map
|