@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.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,13 +632,66 @@ 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
|
});
|
|
658
639
|
}
|
|
659
640
|
};
|
|
660
641
|
|
|
642
|
+
// src/core/to-snake-case.ts
|
|
643
|
+
function toSnakeCase(str) {
|
|
644
|
+
return str.replace(/[A-Z]/g, (letter, index) => {
|
|
645
|
+
return index === 0 ? letter.toLowerCase() : `_${letter.toLowerCase()}`;
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
// src/namespaces/pig-master/reports/farrowing-list.ts
|
|
650
|
+
var FarrowingList = class extends Report {
|
|
651
|
+
constructor() {
|
|
652
|
+
super(...arguments);
|
|
653
|
+
this.template = "@pig-master/farrowing-list";
|
|
654
|
+
this.fileName = "Listagem de partos";
|
|
655
|
+
}
|
|
656
|
+
async pdf(input) {
|
|
657
|
+
await this.requestPdf({
|
|
658
|
+
resources: this.getResources(input),
|
|
659
|
+
parameters: [
|
|
660
|
+
...this.getParameters(input),
|
|
661
|
+
{ key: "DATA_ONLY", value: false }
|
|
662
|
+
]
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
async csv(input) {
|
|
666
|
+
await this.requestCsv({
|
|
667
|
+
resources: this.getResources(input),
|
|
668
|
+
parameters: [
|
|
669
|
+
...this.getParameters(input),
|
|
670
|
+
{ key: "DATA_ONLY", value: true }
|
|
671
|
+
]
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
getResources(input) {
|
|
675
|
+
return [{ key: "FARM_ID", value: input.farmId }];
|
|
676
|
+
}
|
|
677
|
+
getParameters(input) {
|
|
678
|
+
return [
|
|
679
|
+
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
680
|
+
{ key: "DATE_END", value: input.dateRange?.end ?? null },
|
|
681
|
+
{ key: "CALENDAR", value: input.calendarType },
|
|
682
|
+
{ key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
|
|
683
|
+
{ key: "PARITY", value: input.parity?.toString() ?? null },
|
|
684
|
+
{ key: "MATING_DATE_BEGIN", value: input.matingDateRange?.start ?? null },
|
|
685
|
+
{ key: "MATING_DATE_END", value: input.matingDateRange?.end ?? null },
|
|
686
|
+
{ key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
|
|
687
|
+
{ key: "ORIGIN_ID", value: input.originId },
|
|
688
|
+
{ key: "BREED_ID", value: input.breedId },
|
|
689
|
+
{ key: "ORDERBYDIRECTION", value: input.orderBy.direction },
|
|
690
|
+
{ key: "ORDERBYCOLUMN", value: toSnakeCase(input.orderBy.column) }
|
|
691
|
+
];
|
|
692
|
+
}
|
|
693
|
+
};
|
|
694
|
+
|
|
661
695
|
// src/namespaces/pig-master/reports/farrowing-type-list.ts
|
|
662
696
|
var FarrowingTypeList = class extends Report {
|
|
663
697
|
constructor() {
|
|
@@ -666,7 +700,7 @@ var FarrowingTypeList = class extends Report {
|
|
|
666
700
|
this.fileName = "Listagem de tipos de parto";
|
|
667
701
|
}
|
|
668
702
|
async pdf(input) {
|
|
669
|
-
|
|
703
|
+
await this.requestPdf({
|
|
670
704
|
resources: this.getResources(input),
|
|
671
705
|
parameters: [
|
|
672
706
|
...this.getParameters(input),
|
|
@@ -675,7 +709,7 @@ var FarrowingTypeList = class extends Report {
|
|
|
675
709
|
});
|
|
676
710
|
}
|
|
677
711
|
async csv(input) {
|
|
678
|
-
|
|
712
|
+
await this.requestCsv({
|
|
679
713
|
resources: this.getResources(input),
|
|
680
714
|
parameters: [
|
|
681
715
|
...this.getParameters(input),
|
|
@@ -699,7 +733,7 @@ var FemaleSwineArrivalMonitoring = class extends Report {
|
|
|
699
733
|
this.fileName = "Acompanhamento do lote";
|
|
700
734
|
}
|
|
701
735
|
async pdf(input) {
|
|
702
|
-
|
|
736
|
+
await this.requestPdf({
|
|
703
737
|
resources: this.getResources(input),
|
|
704
738
|
parameters: [
|
|
705
739
|
...this.getParameters(input),
|
|
@@ -708,7 +742,7 @@ var FemaleSwineArrivalMonitoring = class extends Report {
|
|
|
708
742
|
});
|
|
709
743
|
}
|
|
710
744
|
async csv(input) {
|
|
711
|
-
|
|
745
|
+
await this.requestCsv({
|
|
712
746
|
resources: this.getResources(input),
|
|
713
747
|
parameters: [
|
|
714
748
|
...this.getParameters(input),
|
|
@@ -739,7 +773,7 @@ var FemaleSwineByBreedList = class extends Report {
|
|
|
739
773
|
this.fileName = "F\xEAmeas por ra\xE7a";
|
|
740
774
|
}
|
|
741
775
|
async pdf(input) {
|
|
742
|
-
|
|
776
|
+
await this.requestPdf({
|
|
743
777
|
resources: this.getResources(input),
|
|
744
778
|
parameters: [
|
|
745
779
|
...this.getParameters(input),
|
|
@@ -748,7 +782,7 @@ var FemaleSwineByBreedList = class extends Report {
|
|
|
748
782
|
});
|
|
749
783
|
}
|
|
750
784
|
async csv(input) {
|
|
751
|
-
|
|
785
|
+
await this.requestCsv({
|
|
752
786
|
resources: this.getResources(input),
|
|
753
787
|
parameters: [
|
|
754
788
|
...this.getParameters(input),
|
|
@@ -780,7 +814,7 @@ var FemaleSwineByParityList = class extends Report {
|
|
|
780
814
|
this.fileName = "F\xEAmeas por cria";
|
|
781
815
|
}
|
|
782
816
|
async pdf(input) {
|
|
783
|
-
|
|
817
|
+
await this.requestPdf({
|
|
784
818
|
resources: this.getResources(input),
|
|
785
819
|
parameters: [
|
|
786
820
|
...this.getParameters(input),
|
|
@@ -789,7 +823,7 @@ var FemaleSwineByParityList = class extends Report {
|
|
|
789
823
|
});
|
|
790
824
|
}
|
|
791
825
|
async csv(input) {
|
|
792
|
-
|
|
826
|
+
await this.requestCsv({
|
|
793
827
|
resources: this.getResources(input),
|
|
794
828
|
parameters: [
|
|
795
829
|
...this.getParameters(input),
|
|
@@ -821,7 +855,7 @@ var FemaleSwineByStatusList = class extends Report {
|
|
|
821
855
|
this.fileName = "F\xEAmeas por status";
|
|
822
856
|
}
|
|
823
857
|
async pdf(input) {
|
|
824
|
-
|
|
858
|
+
await this.requestPdf({
|
|
825
859
|
resources: this.getResources(input),
|
|
826
860
|
parameters: [
|
|
827
861
|
...this.getParameters(input),
|
|
@@ -830,7 +864,7 @@ var FemaleSwineByStatusList = class extends Report {
|
|
|
830
864
|
});
|
|
831
865
|
}
|
|
832
866
|
async csv(input) {
|
|
833
|
-
|
|
867
|
+
await this.requestCsv({
|
|
834
868
|
resources: this.getResources(input),
|
|
835
869
|
parameters: [
|
|
836
870
|
...this.getParameters(input),
|
|
@@ -886,7 +920,7 @@ var FemaleSwineByTraceabilityList = class extends Report {
|
|
|
886
920
|
this.fileName = "F\xEAmeas por rastreabilidade";
|
|
887
921
|
}
|
|
888
922
|
async pdf(input) {
|
|
889
|
-
|
|
923
|
+
await this.requestPdf({
|
|
890
924
|
resources: this.getResources(input),
|
|
891
925
|
parameters: [
|
|
892
926
|
...this.getParameters(input),
|
|
@@ -895,7 +929,7 @@ var FemaleSwineByTraceabilityList = class extends Report {
|
|
|
895
929
|
});
|
|
896
930
|
}
|
|
897
931
|
async csv(input) {
|
|
898
|
-
|
|
932
|
+
await this.requestCsv({
|
|
899
933
|
resources: this.getResources(input),
|
|
900
934
|
parameters: [
|
|
901
935
|
...this.getParameters(input),
|
|
@@ -931,7 +965,7 @@ var FemaleSwineDeathAnalysis = class extends Report {
|
|
|
931
965
|
this.fileName = "An\xE1lise morte de f\xEAmeas";
|
|
932
966
|
}
|
|
933
967
|
async pdf(input) {
|
|
934
|
-
|
|
968
|
+
await this.requestPdf({
|
|
935
969
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
936
970
|
parameters: [
|
|
937
971
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -963,7 +997,7 @@ var FemaleSwineDeathCollectionForm = class extends Report {
|
|
|
963
997
|
this.fileName = "Morte de f\xEAmea";
|
|
964
998
|
}
|
|
965
999
|
async pdf(input) {
|
|
966
|
-
|
|
1000
|
+
await this.requestPdf({
|
|
967
1001
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
968
1002
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
969
1003
|
});
|
|
@@ -978,7 +1012,7 @@ var FemaleSwineDeathList = class extends Report {
|
|
|
978
1012
|
this.fileName = "Morte de f\xEAmeas";
|
|
979
1013
|
}
|
|
980
1014
|
async pdf(input) {
|
|
981
|
-
|
|
1015
|
+
await this.requestPdf({
|
|
982
1016
|
resources: this.getResources(input),
|
|
983
1017
|
parameters: [
|
|
984
1018
|
...this.getParameters(input),
|
|
@@ -987,7 +1021,7 @@ var FemaleSwineDeathList = class extends Report {
|
|
|
987
1021
|
});
|
|
988
1022
|
}
|
|
989
1023
|
async csv(input) {
|
|
990
|
-
|
|
1024
|
+
await this.requestCsv({
|
|
991
1025
|
resources: this.getResources(input),
|
|
992
1026
|
parameters: [
|
|
993
1027
|
...this.getParameters(input),
|
|
@@ -1027,7 +1061,7 @@ var FemaleSwineDiscardAnalysis = class extends Report {
|
|
|
1027
1061
|
this.fileName = "An\xE1lise descarte de f\xEAmeas";
|
|
1028
1062
|
}
|
|
1029
1063
|
async pdf(input) {
|
|
1030
|
-
|
|
1064
|
+
await this.requestPdf({
|
|
1031
1065
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1032
1066
|
parameters: [
|
|
1033
1067
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -1060,7 +1094,7 @@ var FemaleSwineDiscardCollectionForm = class extends Report {
|
|
|
1060
1094
|
this.fileName = "Descarte de f\xEAmea";
|
|
1061
1095
|
}
|
|
1062
1096
|
async pdf(input) {
|
|
1063
|
-
|
|
1097
|
+
await this.requestPdf({
|
|
1064
1098
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1065
1099
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1066
1100
|
});
|
|
@@ -1075,7 +1109,7 @@ var FemaleSwineDiscardList = class extends Report {
|
|
|
1075
1109
|
this.fileName = "Descarte de f\xEAmeas";
|
|
1076
1110
|
}
|
|
1077
1111
|
async pdf(input) {
|
|
1078
|
-
|
|
1112
|
+
await this.requestPdf({
|
|
1079
1113
|
resources: this.getResources(input),
|
|
1080
1114
|
parameters: [
|
|
1081
1115
|
...this.getParameters(input),
|
|
@@ -1084,7 +1118,7 @@ var FemaleSwineDiscardList = class extends Report {
|
|
|
1084
1118
|
});
|
|
1085
1119
|
}
|
|
1086
1120
|
async csv(input) {
|
|
1087
|
-
|
|
1121
|
+
await this.requestCsv({
|
|
1088
1122
|
resources: this.getResources(input),
|
|
1089
1123
|
parameters: [
|
|
1090
1124
|
...this.getParameters(input),
|
|
@@ -1125,7 +1159,7 @@ var FemaleSwineEarTagReplacementList = class extends Report {
|
|
|
1125
1159
|
this.fileName = "Trocas de brinco de f\xEAmeas";
|
|
1126
1160
|
}
|
|
1127
1161
|
async pdf(input) {
|
|
1128
|
-
|
|
1162
|
+
await this.requestPdf({
|
|
1129
1163
|
resources: this.getResources(input),
|
|
1130
1164
|
parameters: [
|
|
1131
1165
|
...this.getParameters(input),
|
|
@@ -1134,7 +1168,7 @@ var FemaleSwineEarTagReplacementList = class extends Report {
|
|
|
1134
1168
|
});
|
|
1135
1169
|
}
|
|
1136
1170
|
async csv(input) {
|
|
1137
|
-
|
|
1171
|
+
await this.requestCsv({
|
|
1138
1172
|
resources: this.getResources(input),
|
|
1139
1173
|
parameters: [
|
|
1140
1174
|
...this.getParameters(input),
|
|
@@ -1164,7 +1198,7 @@ var FemaleSwineInventory = class extends Report {
|
|
|
1164
1198
|
this.fileName = "Estoque de f\xEAmeas";
|
|
1165
1199
|
}
|
|
1166
1200
|
async pdf(input) {
|
|
1167
|
-
|
|
1201
|
+
await this.requestPdf({
|
|
1168
1202
|
resources: this.getResources(input),
|
|
1169
1203
|
parameters: [
|
|
1170
1204
|
...this.getParameters(input),
|
|
@@ -1173,7 +1207,7 @@ var FemaleSwineInventory = class extends Report {
|
|
|
1173
1207
|
});
|
|
1174
1208
|
}
|
|
1175
1209
|
async csv(input) {
|
|
1176
|
-
|
|
1210
|
+
await this.requestCsv({
|
|
1177
1211
|
resources: this.getResources(input),
|
|
1178
1212
|
parameters: [
|
|
1179
1213
|
...this.getParameters(input),
|
|
@@ -1204,7 +1238,7 @@ var FemaleSwinePendingActionList = class extends Report {
|
|
|
1204
1238
|
this.fileName = "A\xE7\xF5es pendentes";
|
|
1205
1239
|
}
|
|
1206
1240
|
async pdf(input) {
|
|
1207
|
-
|
|
1241
|
+
await this.requestPdf({
|
|
1208
1242
|
resources: this.getResources(input),
|
|
1209
1243
|
parameters: [
|
|
1210
1244
|
...this.getParameters(input),
|
|
@@ -1213,7 +1247,7 @@ var FemaleSwinePendingActionList = class extends Report {
|
|
|
1213
1247
|
});
|
|
1214
1248
|
}
|
|
1215
1249
|
async csv(input) {
|
|
1216
|
-
|
|
1250
|
+
await this.requestCsv({
|
|
1217
1251
|
resources: this.getResources(input),
|
|
1218
1252
|
parameters: [
|
|
1219
1253
|
...this.getParameters(input),
|
|
@@ -1241,7 +1275,7 @@ var FemaleSwinePreDiscardList = class extends Report {
|
|
|
1241
1275
|
this.fileName = "Listagem de pr\xE9-descartes de f\xEAmeas";
|
|
1242
1276
|
}
|
|
1243
1277
|
async pdf(input) {
|
|
1244
|
-
|
|
1278
|
+
await this.requestPdf({
|
|
1245
1279
|
resources: this.getResources(input),
|
|
1246
1280
|
parameters: [
|
|
1247
1281
|
...this.getParameters(input),
|
|
@@ -1250,7 +1284,7 @@ var FemaleSwinePreDiscardList = class extends Report {
|
|
|
1250
1284
|
});
|
|
1251
1285
|
}
|
|
1252
1286
|
async csv(input) {
|
|
1253
|
-
|
|
1287
|
+
await this.requestCsv({
|
|
1254
1288
|
resources: this.getResources(input),
|
|
1255
1289
|
parameters: [
|
|
1256
1290
|
...this.getParameters(input),
|
|
@@ -1282,7 +1316,7 @@ var FemaleSwineRecord = class extends Report {
|
|
|
1282
1316
|
this.fileName = "Ficha da f\xEAmea";
|
|
1283
1317
|
}
|
|
1284
1318
|
async pdf(input) {
|
|
1285
|
-
|
|
1319
|
+
await this.requestPdf({
|
|
1286
1320
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1287
1321
|
parameters: [
|
|
1288
1322
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -1302,7 +1336,7 @@ var FemaleSwineSalePlanningList = class extends Report {
|
|
|
1302
1336
|
this.fileName = "Listagem de f\xEAmeas planejadas para venda";
|
|
1303
1337
|
}
|
|
1304
1338
|
async pdf(input) {
|
|
1305
|
-
|
|
1339
|
+
await this.requestPdf({
|
|
1306
1340
|
resources: this.getResources(input),
|
|
1307
1341
|
parameters: [
|
|
1308
1342
|
...this.getParameters(input),
|
|
@@ -1311,7 +1345,7 @@ var FemaleSwineSalePlanningList = class extends Report {
|
|
|
1311
1345
|
});
|
|
1312
1346
|
}
|
|
1313
1347
|
async csv(input) {
|
|
1314
|
-
|
|
1348
|
+
await this.requestCsv({
|
|
1315
1349
|
resources: this.getResources(input),
|
|
1316
1350
|
parameters: [
|
|
1317
1351
|
...this.getParameters(input),
|
|
@@ -1342,7 +1376,7 @@ var FemaleSwineTreatmentCollectionForm = class extends Report {
|
|
|
1342
1376
|
this.fileName = "Medica\xE7\xE3o / vacina\xE7\xE3o de f\xEAmea";
|
|
1343
1377
|
}
|
|
1344
1378
|
async pdf(input) {
|
|
1345
|
-
|
|
1379
|
+
await this.requestPdf({
|
|
1346
1380
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1347
1381
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1348
1382
|
});
|
|
@@ -1357,7 +1391,7 @@ var FemaleSwineTreatmentList = class extends Report {
|
|
|
1357
1391
|
this.fileName = "Listagem de medica\xE7\xF5es / vacinas (f\xEAmeas)";
|
|
1358
1392
|
}
|
|
1359
1393
|
async pdf(input) {
|
|
1360
|
-
|
|
1394
|
+
await this.requestPdf({
|
|
1361
1395
|
resources: this.getResources(input),
|
|
1362
1396
|
parameters: [
|
|
1363
1397
|
...this.getParameters(input),
|
|
@@ -1366,7 +1400,7 @@ var FemaleSwineTreatmentList = class extends Report {
|
|
|
1366
1400
|
});
|
|
1367
1401
|
}
|
|
1368
1402
|
async csv(input) {
|
|
1369
|
-
|
|
1403
|
+
await this.requestCsv({
|
|
1370
1404
|
resources: this.getResources(input),
|
|
1371
1405
|
parameters: [
|
|
1372
1406
|
...this.getParameters(input),
|
|
@@ -1396,7 +1430,7 @@ var FinishingPigletDeathCollectionForm = class extends Report {
|
|
|
1396
1430
|
this.fileName = "Morte de leit\xE3o na termina\xE7\xE3o";
|
|
1397
1431
|
}
|
|
1398
1432
|
async pdf(input) {
|
|
1399
|
-
|
|
1433
|
+
await this.requestPdf({
|
|
1400
1434
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1401
1435
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1402
1436
|
});
|
|
@@ -1411,7 +1445,7 @@ var FlushingFemaleSwineList = class extends Report {
|
|
|
1411
1445
|
this.fileName = "F\xEAmeas flushing";
|
|
1412
1446
|
}
|
|
1413
1447
|
async pdf(input) {
|
|
1414
|
-
|
|
1448
|
+
await this.requestPdf({
|
|
1415
1449
|
resources: this.getResources(input),
|
|
1416
1450
|
parameters: [
|
|
1417
1451
|
...this.getParameters(input),
|
|
@@ -1420,7 +1454,7 @@ var FlushingFemaleSwineList = class extends Report {
|
|
|
1420
1454
|
});
|
|
1421
1455
|
}
|
|
1422
1456
|
async csv(input) {
|
|
1423
|
-
|
|
1457
|
+
await this.requestCsv({
|
|
1424
1458
|
resources: this.getResources(input),
|
|
1425
1459
|
parameters: [
|
|
1426
1460
|
...this.getParameters(input),
|
|
@@ -1449,7 +1483,7 @@ var FlushingMonitor = class extends Report {
|
|
|
1449
1483
|
this.fileName = "Flushing";
|
|
1450
1484
|
}
|
|
1451
1485
|
async pdf(input) {
|
|
1452
|
-
|
|
1486
|
+
await this.requestPdf({
|
|
1453
1487
|
resources: this.getResources(input),
|
|
1454
1488
|
parameters: [
|
|
1455
1489
|
...this.getParameters(input),
|
|
@@ -1458,7 +1492,7 @@ var FlushingMonitor = class extends Report {
|
|
|
1458
1492
|
});
|
|
1459
1493
|
}
|
|
1460
1494
|
async csv(input) {
|
|
1461
|
-
|
|
1495
|
+
await this.requestCsv({
|
|
1462
1496
|
resources: this.getResources(input),
|
|
1463
1497
|
parameters: [
|
|
1464
1498
|
...this.getParameters(input),
|
|
@@ -1487,7 +1521,7 @@ var GiltInventory = class extends Report {
|
|
|
1487
1521
|
this.fileName = "Estoque de leitoas";
|
|
1488
1522
|
}
|
|
1489
1523
|
async pdf(input) {
|
|
1490
|
-
|
|
1524
|
+
await this.requestPdf({
|
|
1491
1525
|
resources: this.getResources(input),
|
|
1492
1526
|
parameters: [
|
|
1493
1527
|
...this.getParameters(input),
|
|
@@ -1496,7 +1530,7 @@ var GiltInventory = class extends Report {
|
|
|
1496
1530
|
});
|
|
1497
1531
|
}
|
|
1498
1532
|
async csv(input) {
|
|
1499
|
-
|
|
1533
|
+
await this.requestCsv({
|
|
1500
1534
|
resources: this.getResources(input),
|
|
1501
1535
|
parameters: [
|
|
1502
1536
|
...this.getParameters(input),
|
|
@@ -1527,7 +1561,7 @@ var GtaList = class extends Report {
|
|
|
1527
1561
|
this.fileName = "Listagem de gtas";
|
|
1528
1562
|
}
|
|
1529
1563
|
async pdf(input) {
|
|
1530
|
-
|
|
1564
|
+
await this.requestPdf({
|
|
1531
1565
|
resources: this.getResources(input),
|
|
1532
1566
|
parameters: [
|
|
1533
1567
|
...this.getParameters(input),
|
|
@@ -1536,7 +1570,7 @@ var GtaList = class extends Report {
|
|
|
1536
1570
|
});
|
|
1537
1571
|
}
|
|
1538
1572
|
async csv(input) {
|
|
1539
|
-
|
|
1573
|
+
await this.requestCsv({
|
|
1540
1574
|
resources: this.getResources(input),
|
|
1541
1575
|
parameters: [
|
|
1542
1576
|
...this.getParameters(input),
|
|
@@ -1563,7 +1597,7 @@ var HeatDetectionCollectionForm = class extends Report {
|
|
|
1563
1597
|
this.fileName = "Registro de cio";
|
|
1564
1598
|
}
|
|
1565
1599
|
async pdf(input) {
|
|
1566
|
-
|
|
1600
|
+
await this.requestPdf({
|
|
1567
1601
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1568
1602
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1569
1603
|
});
|
|
@@ -1578,7 +1612,7 @@ var HeatDetectionList = class extends Report {
|
|
|
1578
1612
|
this.fileName = "Listagem de registros de cio";
|
|
1579
1613
|
}
|
|
1580
1614
|
async pdf(input) {
|
|
1581
|
-
|
|
1615
|
+
await this.requestPdf({
|
|
1582
1616
|
resources: this.getResources(input),
|
|
1583
1617
|
parameters: [
|
|
1584
1618
|
...this.getParameters(input),
|
|
@@ -1587,7 +1621,7 @@ var HeatDetectionList = class extends Report {
|
|
|
1587
1621
|
});
|
|
1588
1622
|
}
|
|
1589
1623
|
async csv(input) {
|
|
1590
|
-
|
|
1624
|
+
await this.requestCsv({
|
|
1591
1625
|
resources: this.getResources(input),
|
|
1592
1626
|
parameters: [
|
|
1593
1627
|
...this.getParameters(input),
|
|
@@ -1627,7 +1661,7 @@ var HeatMonitoring = class extends Report {
|
|
|
1627
1661
|
this.fileName = "Mapa de Cio";
|
|
1628
1662
|
}
|
|
1629
1663
|
async pdf(input) {
|
|
1630
|
-
|
|
1664
|
+
await this.requestPdf({
|
|
1631
1665
|
resources: this.getResources(input),
|
|
1632
1666
|
parameters: [
|
|
1633
1667
|
...this.getParameters(input),
|
|
@@ -1636,7 +1670,7 @@ var HeatMonitoring = class extends Report {
|
|
|
1636
1670
|
});
|
|
1637
1671
|
}
|
|
1638
1672
|
async csv(input) {
|
|
1639
|
-
|
|
1673
|
+
await this.requestCsv({
|
|
1640
1674
|
resources: this.getResources(input),
|
|
1641
1675
|
parameters: [
|
|
1642
1676
|
...this.getParameters(input),
|
|
@@ -1667,7 +1701,7 @@ var LocationList = class extends Report {
|
|
|
1667
1701
|
this.fileName = "Listagem de localiza\xE7\xF5es";
|
|
1668
1702
|
}
|
|
1669
1703
|
async pdf(input) {
|
|
1670
|
-
|
|
1704
|
+
await this.requestPdf({
|
|
1671
1705
|
resources: this.getResources(input),
|
|
1672
1706
|
parameters: [
|
|
1673
1707
|
...this.getParameters(input),
|
|
@@ -1676,7 +1710,7 @@ var LocationList = class extends Report {
|
|
|
1676
1710
|
});
|
|
1677
1711
|
}
|
|
1678
1712
|
async csv(input) {
|
|
1679
|
-
|
|
1713
|
+
await this.requestCsv({
|
|
1680
1714
|
resources: this.getResources(input),
|
|
1681
1715
|
parameters: [
|
|
1682
1716
|
...this.getParameters(input),
|
|
@@ -1700,7 +1734,7 @@ var MaternityPigletDeathCollectionForm = class extends Report {
|
|
|
1700
1734
|
this.fileName = "Morte de leit\xE3o na maternidade";
|
|
1701
1735
|
}
|
|
1702
1736
|
async pdf(input) {
|
|
1703
|
-
|
|
1737
|
+
await this.requestPdf({
|
|
1704
1738
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1705
1739
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1706
1740
|
});
|
|
@@ -1715,7 +1749,7 @@ var MaternityPigletDeathList = class extends Report {
|
|
|
1715
1749
|
this.fileName = "Listagem de mortes de leit\xE3o";
|
|
1716
1750
|
}
|
|
1717
1751
|
async pdf(input) {
|
|
1718
|
-
|
|
1752
|
+
await this.requestPdf({
|
|
1719
1753
|
resources: this.getResources(input),
|
|
1720
1754
|
parameters: [
|
|
1721
1755
|
...this.getParameters(input),
|
|
@@ -1724,7 +1758,7 @@ var MaternityPigletDeathList = class extends Report {
|
|
|
1724
1758
|
});
|
|
1725
1759
|
}
|
|
1726
1760
|
async csv(input) {
|
|
1727
|
-
|
|
1761
|
+
await this.requestCsv({
|
|
1728
1762
|
resources: this.getResources(input),
|
|
1729
1763
|
parameters: [
|
|
1730
1764
|
...this.getParameters(input),
|
|
@@ -1757,7 +1791,7 @@ var MaternityPigletTransferCollectionForm = class extends Report {
|
|
|
1757
1791
|
this.fileName = "Transfer\xEAncia de leit\xE3o na maternidade";
|
|
1758
1792
|
}
|
|
1759
1793
|
async pdf(input) {
|
|
1760
|
-
|
|
1794
|
+
await this.requestPdf({
|
|
1761
1795
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1762
1796
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1763
1797
|
});
|
|
@@ -1772,7 +1806,7 @@ var MatingAnalysis = class extends Report {
|
|
|
1772
1806
|
this.fileName = "An\xE1lise de coberturas";
|
|
1773
1807
|
}
|
|
1774
1808
|
async pdf(input) {
|
|
1775
|
-
|
|
1809
|
+
await this.requestPdf({
|
|
1776
1810
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1777
1811
|
parameters: [
|
|
1778
1812
|
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
@@ -1810,7 +1844,7 @@ var MatingCollectionForm = class extends Report {
|
|
|
1810
1844
|
this.fileName = "Cobertura";
|
|
1811
1845
|
}
|
|
1812
1846
|
async pdf(input) {
|
|
1813
|
-
|
|
1847
|
+
await this.requestPdf({
|
|
1814
1848
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1815
1849
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1816
1850
|
});
|
|
@@ -1825,7 +1859,7 @@ var MatingGroupList = class extends Report {
|
|
|
1825
1859
|
this.fileName = "Listagem de grupos de cobertura";
|
|
1826
1860
|
}
|
|
1827
1861
|
async pdf(input) {
|
|
1828
|
-
|
|
1862
|
+
await this.requestPdf({
|
|
1829
1863
|
resources: this.getResources(input),
|
|
1830
1864
|
parameters: [
|
|
1831
1865
|
...this.getParameters(input),
|
|
@@ -1834,7 +1868,7 @@ var MatingGroupList = class extends Report {
|
|
|
1834
1868
|
});
|
|
1835
1869
|
}
|
|
1836
1870
|
async csv(input) {
|
|
1837
|
-
|
|
1871
|
+
await this.requestCsv({
|
|
1838
1872
|
resources: this.getResources(input),
|
|
1839
1873
|
parameters: [
|
|
1840
1874
|
...this.getParameters(input),
|
|
@@ -1858,7 +1892,7 @@ var MatingList = class extends Report {
|
|
|
1858
1892
|
this.fileName = "Listagem de coberturas";
|
|
1859
1893
|
}
|
|
1860
1894
|
async pdf(input) {
|
|
1861
|
-
|
|
1895
|
+
await this.requestPdf({
|
|
1862
1896
|
resources: this.getResources(input),
|
|
1863
1897
|
parameters: [
|
|
1864
1898
|
...this.getParameters(input),
|
|
@@ -1867,7 +1901,7 @@ var MatingList = class extends Report {
|
|
|
1867
1901
|
});
|
|
1868
1902
|
}
|
|
1869
1903
|
async csv(input) {
|
|
1870
|
-
|
|
1904
|
+
await this.requestCsv({
|
|
1871
1905
|
resources: this.getResources(input),
|
|
1872
1906
|
parameters: [
|
|
1873
1907
|
...this.getParameters(input),
|
|
@@ -1915,7 +1949,7 @@ var MatingOverview = class extends Report {
|
|
|
1915
1949
|
this.fileName = "Performance de coberturas";
|
|
1916
1950
|
}
|
|
1917
1951
|
async pdf(input) {
|
|
1918
|
-
|
|
1952
|
+
await this.requestPdf({
|
|
1919
1953
|
resources: this.getResources(input),
|
|
1920
1954
|
parameters: [
|
|
1921
1955
|
...this.getParameters(input),
|
|
@@ -1924,7 +1958,7 @@ var MatingOverview = class extends Report {
|
|
|
1924
1958
|
});
|
|
1925
1959
|
}
|
|
1926
1960
|
async csv(input) {
|
|
1927
|
-
|
|
1961
|
+
await this.requestCsv({
|
|
1928
1962
|
resources: this.getResources(input),
|
|
1929
1963
|
parameters: [
|
|
1930
1964
|
...this.getParameters(input),
|
|
@@ -1955,7 +1989,7 @@ var MbrfFemaleSwineRecord = class extends Report {
|
|
|
1955
1989
|
this.fileName = "Ficha fim";
|
|
1956
1990
|
}
|
|
1957
1991
|
async pdf(input) {
|
|
1958
|
-
|
|
1992
|
+
await this.requestPdf({
|
|
1959
1993
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1960
1994
|
parameters: [
|
|
1961
1995
|
{ key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
|
|
@@ -1973,7 +2007,7 @@ var NurseryPigletDeathCollectionForm = class extends Report {
|
|
|
1973
2007
|
this.fileName = "Morte de leit\xE3o na creche";
|
|
1974
2008
|
}
|
|
1975
2009
|
async pdf(input) {
|
|
1976
|
-
|
|
2010
|
+
await this.requestPdf({
|
|
1977
2011
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1978
2012
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
1979
2013
|
});
|
|
@@ -1988,7 +2022,7 @@ var OriginList = class extends Report {
|
|
|
1988
2022
|
this.fileName = "Listagem de origens";
|
|
1989
2023
|
}
|
|
1990
2024
|
async pdf(input) {
|
|
1991
|
-
|
|
2025
|
+
await this.requestPdf({
|
|
1992
2026
|
resources: this.getResources(input),
|
|
1993
2027
|
parameters: [
|
|
1994
2028
|
...this.getParameters(input),
|
|
@@ -1997,7 +2031,7 @@ var OriginList = class extends Report {
|
|
|
1997
2031
|
});
|
|
1998
2032
|
}
|
|
1999
2033
|
async csv(input) {
|
|
2000
|
-
|
|
2034
|
+
await this.requestCsv({
|
|
2001
2035
|
resources: this.getResources(input),
|
|
2002
2036
|
parameters: [
|
|
2003
2037
|
...this.getParameters(input),
|
|
@@ -2021,7 +2055,7 @@ var ParityStructure = class extends Report {
|
|
|
2021
2055
|
this.fileName = "Estrutura et\xE1ria";
|
|
2022
2056
|
}
|
|
2023
2057
|
async pdf(input) {
|
|
2024
|
-
|
|
2058
|
+
await this.requestPdf({
|
|
2025
2059
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2026
2060
|
parameters: [
|
|
2027
2061
|
{ key: "LOCATE", value: input.language.replace("-", "_") },
|
|
@@ -2042,7 +2076,7 @@ var PreFlushingFemaleSwineList = class extends Report {
|
|
|
2042
2076
|
this.fileName = "F\xEAmeas pr\xE9-flushing";
|
|
2043
2077
|
}
|
|
2044
2078
|
async pdf(input) {
|
|
2045
|
-
|
|
2079
|
+
await this.requestPdf({
|
|
2046
2080
|
resources: this.getResources(input),
|
|
2047
2081
|
parameters: [
|
|
2048
2082
|
...this.getParameters(input),
|
|
@@ -2051,7 +2085,7 @@ var PreFlushingFemaleSwineList = class extends Report {
|
|
|
2051
2085
|
});
|
|
2052
2086
|
}
|
|
2053
2087
|
async csv(input) {
|
|
2054
|
-
|
|
2088
|
+
await this.requestCsv({
|
|
2055
2089
|
resources: this.getResources(input),
|
|
2056
2090
|
parameters: [
|
|
2057
2091
|
...this.getParameters(input),
|
|
@@ -2080,7 +2114,7 @@ var PregnantFemaleSwineList = class extends Report {
|
|
|
2080
2114
|
this.fileName = "F\xEAmeas gestantes";
|
|
2081
2115
|
}
|
|
2082
2116
|
async pdf(input) {
|
|
2083
|
-
|
|
2117
|
+
await this.requestPdf({
|
|
2084
2118
|
resources: this.getResources(input),
|
|
2085
2119
|
parameters: [
|
|
2086
2120
|
{ key: "DATA_ONLY", value: false },
|
|
@@ -2089,7 +2123,7 @@ var PregnantFemaleSwineList = class extends Report {
|
|
|
2089
2123
|
});
|
|
2090
2124
|
}
|
|
2091
2125
|
async csv(input) {
|
|
2092
|
-
|
|
2126
|
+
await this.requestCsv({
|
|
2093
2127
|
resources: this.getResources(input),
|
|
2094
2128
|
parameters: [
|
|
2095
2129
|
{ key: "DATA_ONLY", value: true },
|
|
@@ -2118,7 +2152,7 @@ var PregnantFemaleSwineSaleList = class extends Report {
|
|
|
2118
2152
|
this.fileName = "Listagem de vendas de gestantes";
|
|
2119
2153
|
}
|
|
2120
2154
|
async pdf(input) {
|
|
2121
|
-
|
|
2155
|
+
await this.requestPdf({
|
|
2122
2156
|
resources: this.getResources(input),
|
|
2123
2157
|
parameters: [
|
|
2124
2158
|
...this.getParameters(input),
|
|
@@ -2127,7 +2161,7 @@ var PregnantFemaleSwineSaleList = class extends Report {
|
|
|
2127
2161
|
});
|
|
2128
2162
|
}
|
|
2129
2163
|
async csv(input) {
|
|
2130
|
-
|
|
2164
|
+
await this.requestCsv({
|
|
2131
2165
|
resources: this.getResources(input),
|
|
2132
2166
|
parameters: [
|
|
2133
2167
|
...this.getParameters(input),
|
|
@@ -2171,7 +2205,7 @@ var ReproductiveFailureAnalysis = class extends Report {
|
|
|
2171
2205
|
this.fileName = "An\xE1lise de perdas de cobertura";
|
|
2172
2206
|
}
|
|
2173
2207
|
async pdf(input) {
|
|
2174
|
-
|
|
2208
|
+
await this.requestPdf({
|
|
2175
2209
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2176
2210
|
parameters: [
|
|
2177
2211
|
{ key: "GROUP", value: input.groupBy },
|
|
@@ -2204,7 +2238,7 @@ var ReproductiveFailureCollectionForm = class extends Report {
|
|
|
2204
2238
|
this.fileName = "Perda de cobertura";
|
|
2205
2239
|
}
|
|
2206
2240
|
async pdf(input) {
|
|
2207
|
-
|
|
2241
|
+
await this.requestPdf({
|
|
2208
2242
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2209
2243
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
2210
2244
|
});
|
|
@@ -2219,7 +2253,7 @@ var ReproductiveFailureList = class extends Report {
|
|
|
2219
2253
|
this.fileName = "Perdas de cobertura";
|
|
2220
2254
|
}
|
|
2221
2255
|
async pdf(input) {
|
|
2222
|
-
|
|
2256
|
+
await this.requestPdf({
|
|
2223
2257
|
resources: this.getResources(input),
|
|
2224
2258
|
parameters: [
|
|
2225
2259
|
...this.getParameters(input),
|
|
@@ -2228,7 +2262,7 @@ var ReproductiveFailureList = class extends Report {
|
|
|
2228
2262
|
});
|
|
2229
2263
|
}
|
|
2230
2264
|
async csv(input) {
|
|
2231
|
-
|
|
2265
|
+
await this.requestCsv({
|
|
2232
2266
|
resources: this.getResources(input),
|
|
2233
2267
|
parameters: [
|
|
2234
2268
|
...this.getParameters(input),
|
|
@@ -2266,7 +2300,7 @@ var ScoreList = class extends Report {
|
|
|
2266
2300
|
this.fileName = "Listagem de escores";
|
|
2267
2301
|
}
|
|
2268
2302
|
async pdf(input) {
|
|
2269
|
-
|
|
2303
|
+
await this.requestPdf({
|
|
2270
2304
|
resources: this.getResources(input),
|
|
2271
2305
|
parameters: [
|
|
2272
2306
|
...this.getParameters(input),
|
|
@@ -2275,7 +2309,7 @@ var ScoreList = class extends Report {
|
|
|
2275
2309
|
});
|
|
2276
2310
|
}
|
|
2277
2311
|
async csv(input) {
|
|
2278
|
-
|
|
2312
|
+
await this.requestCsv({
|
|
2279
2313
|
resources: this.getResources(input),
|
|
2280
2314
|
parameters: [
|
|
2281
2315
|
...this.getParameters(input),
|
|
@@ -2299,7 +2333,7 @@ var WeaningAnalysis = class extends Report {
|
|
|
2299
2333
|
this.fileName = "An\xE1lise de desmames";
|
|
2300
2334
|
}
|
|
2301
2335
|
async pdf(input) {
|
|
2302
|
-
|
|
2336
|
+
await this.requestPdf({
|
|
2303
2337
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2304
2338
|
parameters: [
|
|
2305
2339
|
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
@@ -2332,7 +2366,7 @@ var WeaningCollectionForm = class extends Report {
|
|
|
2332
2366
|
this.fileName = "Desmame";
|
|
2333
2367
|
}
|
|
2334
2368
|
async pdf(input) {
|
|
2335
|
-
|
|
2369
|
+
await this.requestPdf({
|
|
2336
2370
|
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2337
2371
|
parameters: [{ key: "CALENDAR", value: input.calendarType }]
|
|
2338
2372
|
});
|
|
@@ -2347,7 +2381,7 @@ var WeaningList = class extends Report {
|
|
|
2347
2381
|
this.fileName = "Listagem de desmames";
|
|
2348
2382
|
}
|
|
2349
2383
|
async pdf(input) {
|
|
2350
|
-
|
|
2384
|
+
await this.requestPdf({
|
|
2351
2385
|
resources: this.getResources(input),
|
|
2352
2386
|
parameters: [
|
|
2353
2387
|
...this.getParameters(input),
|
|
@@ -2356,7 +2390,7 @@ var WeaningList = class extends Report {
|
|
|
2356
2390
|
});
|
|
2357
2391
|
}
|
|
2358
2392
|
async csv(input) {
|
|
2359
|
-
|
|
2393
|
+
await this.requestCsv({
|
|
2360
2394
|
resources: this.getResources(input),
|
|
2361
2395
|
parameters: [
|
|
2362
2396
|
...this.getParameters(input),
|
|
@@ -2475,25 +2509,18 @@ var PigMaster = class {
|
|
|
2475
2509
|
this.weaningCollectionForm = new WeaningCollectionForm(http);
|
|
2476
2510
|
this.maternityPigletDeathList = new MaternityPigletDeathList(http);
|
|
2477
2511
|
this.weaningList = new WeaningList(http);
|
|
2512
|
+
this.farrowingList = new FarrowingList(http);
|
|
2478
2513
|
}
|
|
2479
2514
|
};
|
|
2480
2515
|
|
|
2481
|
-
// src/
|
|
2482
|
-
var
|
|
2483
|
-
constructor(http) {
|
|
2484
|
-
this.http = http;
|
|
2516
|
+
// src/jaspion.ts
|
|
2517
|
+
var Jaspion = class {
|
|
2518
|
+
constructor({ http }) {
|
|
2485
2519
|
this.pigMaster = new PigMaster(http);
|
|
2486
2520
|
}
|
|
2487
|
-
setAccessToken(token) {
|
|
2488
|
-
this.http.setHeader("Authorization", `Bearer ${token}`);
|
|
2489
|
-
}
|
|
2490
2521
|
};
|
|
2491
|
-
function jaspion(baseUrl) {
|
|
2492
|
-
const http = new HttpClient(baseUrl);
|
|
2493
|
-
return new JaspionClient(http);
|
|
2494
|
-
}
|
|
2495
2522
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2496
2523
|
0 && (module.exports = {
|
|
2497
|
-
|
|
2524
|
+
Jaspion
|
|
2498
2525
|
});
|
|
2499
2526
|
//# sourceMappingURL=index.js.map
|