@gesagro/jaspion-sdk 2.1.3 → 3.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/dist/index.cjs DELETED
@@ -1,4167 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/core/report.ts
3
- var Report = class {
4
- http;
5
- constructor(http) {
6
- this.http = http;
7
- }
8
- async requestPdf(input) {
9
- await this.request({
10
- ...input,
11
- contentType: "application/pdf"
12
- });
13
- }
14
- async requestCsv(input) {
15
- await this.request({
16
- ...input,
17
- contentType: "text/csv"
18
- });
19
- }
20
- async request({ contentType, parameters, resources }) {
21
- const fileName = `${this.fileName}${{
22
- "application/pdf": ".pdf",
23
- "text/csv": ".csv"
24
- }[contentType]}`;
25
- return this.http.request({
26
- method: "POST",
27
- path: "/reports",
28
- body: {
29
- template: this.template,
30
- fileName,
31
- parameters,
32
- resources,
33
- contentType,
34
- type: "jasper-reports"
35
- }
36
- });
37
- }
38
- };
39
- //#endregion
40
- //#region src/namespaces/pig-master/reports/birth-place-list.ts
41
- var BirthPlaceList = class extends Report {
42
- template = "@pig-master/birth-place-list";
43
- fileName = "Listagem de procedências";
44
- async pdf(input) {
45
- await this.requestPdf({
46
- resources: this.getResources(input),
47
- parameters: [...this.getParameters(input), {
48
- key: "DATA_ONLY",
49
- value: false
50
- }]
51
- });
52
- }
53
- async csv(input) {
54
- await this.requestCsv({
55
- resources: this.getResources(input),
56
- parameters: [...this.getParameters(input), {
57
- key: "DATA_ONLY",
58
- value: true
59
- }]
60
- });
61
- }
62
- getResources(input) {
63
- return [{
64
- key: "FARM_ID",
65
- value: input.farmId
66
- }];
67
- }
68
- getParameters(input) {
69
- return [{
70
- key: "LOCATE",
71
- value: input.language.replace("-", "_")
72
- }];
73
- }
74
- };
75
- //#endregion
76
- //#region src/namespaces/pig-master/reports/boar-by-breed-list.ts
77
- var BoarByBreedList = class extends Report {
78
- template = "@pig-master/boar-by-breed-list";
79
- fileName = "Machos por raça";
80
- async pdf(input) {
81
- await this.requestPdf({
82
- resources: this.getResources(input),
83
- parameters: [...this.getParameters(input), {
84
- key: "DATA_ONLY",
85
- value: false
86
- }]
87
- });
88
- }
89
- async csv(input) {
90
- await this.requestCsv({
91
- resources: this.getResources(input),
92
- parameters: [...this.getParameters(input), {
93
- key: "DATA_ONLY",
94
- value: true
95
- }]
96
- });
97
- }
98
- getResources(input) {
99
- return [{
100
- key: "FARM_ID",
101
- value: input.farmId
102
- }];
103
- }
104
- getParameters(input) {
105
- return [
106
- {
107
- key: "LOCATE",
108
- value: input.language.replace("-", "_")
109
- },
110
- {
111
- key: "BREED_ID",
112
- value: input.breedId
113
- },
114
- {
115
- key: "CALENDAR",
116
- value: input.calendarType
117
- }
118
- ];
119
- }
120
- };
121
- //#endregion
122
- //#region src/namespaces/pig-master/reports/boar-death-collection-form.ts
123
- var BoarDeathCollectionForm = class extends Report {
124
- template = "@pig-master/boar-death-collection-form";
125
- fileName = "Morte de macho";
126
- async pdf(input) {
127
- await this.requestPdf({
128
- resources: [{
129
- key: "FARM_ID",
130
- value: input.farmId
131
- }],
132
- parameters: [{
133
- key: "CALENDAR",
134
- value: input.calendarType
135
- }]
136
- });
137
- }
138
- };
139
- //#endregion
140
- //#region src/namespaces/pig-master/reports/boar-death-list.ts
141
- var BoarDeathList = class extends Report {
142
- template = "@pig-master/boar-death-list";
143
- fileName = "Mortes de machos";
144
- async pdf(input) {
145
- await this.requestPdf({
146
- resources: this.getResources(input),
147
- parameters: [...this.getParameters(input), {
148
- key: "DATA_ONLY",
149
- value: false
150
- }]
151
- });
152
- }
153
- async csv(input) {
154
- await this.requestCsv({
155
- resources: this.getResources(input),
156
- parameters: [...this.getParameters(input), {
157
- key: "DATA_ONLY",
158
- value: true
159
- }]
160
- });
161
- }
162
- getResources(input) {
163
- return [{
164
- key: "FARM_ID",
165
- value: input.farmId
166
- }];
167
- }
168
- getParameters(input) {
169
- return [
170
- {
171
- key: "LOCATE",
172
- value: input.language.replace("-", "_")
173
- },
174
- {
175
- key: "CAUSE_ID",
176
- value: input.causeId
177
- },
178
- {
179
- key: "BREED_ID",
180
- value: input.breedId
181
- },
182
- {
183
- key: "ORIGIN_ID",
184
- value: input.originId
185
- },
186
- {
187
- key: "BIRTH_PLACE_ID",
188
- value: input.birthPlaceId
189
- },
190
- {
191
- key: "DATE_BEGIN",
192
- value: input.dateRange?.start ?? null
193
- },
194
- {
195
- key: "DATE_END",
196
- value: input.dateRange?.end ?? null
197
- },
198
- {
199
- key: "CALENDAR",
200
- value: input.calendarType
201
- },
202
- {
203
- key: "ARRIVAL_DATE_BEGIN",
204
- value: input.arrivalDateRange?.start ?? null
205
- },
206
- {
207
- key: "ARRIVAL_DATE_END",
208
- value: input.arrivalDateRange?.end ?? null
209
- }
210
- ];
211
- }
212
- };
213
- //#endregion
214
- //#region src/namespaces/pig-master/reports/boar-discard-collection-form.ts
215
- var BoarDiscardCollectionForm = class extends Report {
216
- template = "@pig-master/boar-discard-collection-form";
217
- fileName = "Descarte de macho";
218
- async pdf(input) {
219
- await this.requestPdf({
220
- resources: [{
221
- key: "FARM_ID",
222
- value: input.farmId
223
- }],
224
- parameters: [{
225
- key: "CALENDAR",
226
- value: input.calendarType
227
- }]
228
- });
229
- }
230
- };
231
- //#endregion
232
- //#region src/namespaces/pig-master/reports/boar-discard-list.ts
233
- var BoarDiscardList = class extends Report {
234
- template = "@pig-master/boar-discard-list";
235
- fileName = "Descartes de machos";
236
- async pdf(input) {
237
- await this.requestPdf({
238
- resources: this.getResources(input),
239
- parameters: [...this.getParameters(input), {
240
- key: "DATA_ONLY",
241
- value: false
242
- }]
243
- });
244
- }
245
- async csv(input) {
246
- await this.requestCsv({
247
- resources: this.getResources(input),
248
- parameters: [...this.getParameters(input), {
249
- key: "DATA_ONLY",
250
- value: true
251
- }]
252
- });
253
- }
254
- getResources(input) {
255
- return [{
256
- key: "FARM_ID",
257
- value: input.farmId
258
- }];
259
- }
260
- getParameters(input) {
261
- return [
262
- {
263
- key: "LOCATE",
264
- value: input.language.replace("-", "_")
265
- },
266
- {
267
- key: "CAUSE_ID",
268
- value: input.causeId
269
- },
270
- {
271
- key: "BREED_ID",
272
- value: input.breedId
273
- },
274
- {
275
- key: "ORIGIN_ID",
276
- value: input.originId
277
- },
278
- {
279
- key: "BIRTH_PLACE_ID",
280
- value: input.birthPlaceId
281
- },
282
- {
283
- key: "DATE_BEGIN",
284
- value: input.dateRange?.start ?? null
285
- },
286
- {
287
- key: "DATE_END",
288
- value: input.dateRange?.end ?? null
289
- },
290
- {
291
- key: "RECIPIENT_ID",
292
- value: input.recipientId
293
- },
294
- {
295
- key: "CALENDAR",
296
- value: input.calendarType
297
- },
298
- {
299
- key: "ARRIVAL_DATE_BEGIN",
300
- value: input.arrivalDateRange?.start ?? null
301
- },
302
- {
303
- key: "ARRIVAL_DATE_END",
304
- value: input.arrivalDateRange?.end ?? null
305
- }
306
- ];
307
- }
308
- };
309
- //#endregion
310
- //#region src/namespaces/pig-master/reports/boar-ear-tag-replacement-list.ts
311
- var BoarEarTagReplacementList = class extends Report {
312
- template = "@pig-master/boar-ear-tag-replacement-list";
313
- fileName = "Trocas de brinco de macho";
314
- async pdf(input) {
315
- await this.requestPdf({
316
- resources: this.getResources(input),
317
- parameters: [...this.getParameters(input), {
318
- key: "DATA_ONLY",
319
- value: false
320
- }]
321
- });
322
- }
323
- async csv(input) {
324
- await this.requestCsv({
325
- resources: this.getResources(input),
326
- parameters: [...this.getParameters(input), {
327
- key: "DATA_ONLY",
328
- value: true
329
- }]
330
- });
331
- }
332
- getResources(input) {
333
- return [{
334
- key: "FARM_ID",
335
- value: input.farmId
336
- }];
337
- }
338
- getParameters(input) {
339
- return [
340
- {
341
- key: "DATE_BEGIN",
342
- value: input.dateRange?.start ?? null
343
- },
344
- {
345
- key: "DATE_END",
346
- value: input.dateRange?.end ?? null
347
- },
348
- {
349
- key: "OLD_EAR_TAG",
350
- value: input.oldEarTag
351
- },
352
- {
353
- key: "NEW_EAR_TAG",
354
- value: input.newEarTag
355
- },
356
- {
357
- key: "CALENDAR",
358
- value: input.calendarType
359
- }
360
- ];
361
- }
362
- };
363
- //#endregion
364
- //#region src/namespaces/pig-master/reports/boar-treatment-collection-form.ts
365
- var BoarTreatmentCollectionForm = class extends Report {
366
- template = "@pig-master/boar-treatment-collection-form";
367
- fileName = "Medicação / vacinação de macho";
368
- async pdf(input) {
369
- await this.requestPdf({
370
- resources: [{
371
- key: "FARM_ID",
372
- value: input.farmId
373
- }],
374
- parameters: [{
375
- key: "CALENDAR",
376
- value: input.calendarType
377
- }]
378
- });
379
- }
380
- };
381
- //#endregion
382
- //#region src/namespaces/pig-master/reports/boar-treatment-list.ts
383
- var BoarTreatmentList = class extends Report {
384
- template = "@pig-master/boar-treatment-list";
385
- fileName = "Listagem de medicações / vacinas (machos)";
386
- async pdf(input) {
387
- await this.requestPdf({
388
- resources: this.getResources(input),
389
- parameters: [...this.getParameters(input), {
390
- key: "DATA_ONLY",
391
- value: false
392
- }]
393
- });
394
- }
395
- async csv(input) {
396
- await this.requestCsv({
397
- resources: this.getResources(input),
398
- parameters: [...this.getParameters(input), {
399
- key: "DATA_ONLY",
400
- value: true
401
- }]
402
- });
403
- }
404
- getResources(input) {
405
- return [{
406
- key: "FARM_ID",
407
- value: input.farmId
408
- }];
409
- }
410
- getParameters(input) {
411
- return [
412
- {
413
- key: "CALENDAR",
414
- value: input.calendarType
415
- },
416
- {
417
- key: "LOCATE",
418
- value: input.language.replace("-", "_")
419
- },
420
- {
421
- key: "DATE_BEGIN",
422
- value: input.dateRange?.start ?? null
423
- },
424
- {
425
- key: "DATE_END",
426
- value: input.dateRange?.end ?? null
427
- },
428
- {
429
- key: "BOAR_ID",
430
- value: input.boarId
431
- }
432
- ];
433
- }
434
- };
435
- //#endregion
436
- //#region src/namespaces/pig-master/reports/boars-inventory.ts
437
- var BoarsInventory = class extends Report {
438
- template = "@pig-master/boars-inventory";
439
- fileName = "Estoque de machos";
440
- async pdf(input) {
441
- await this.requestPdf({
442
- resources: this.getResources(input),
443
- parameters: [...this.getParameters(input), {
444
- key: "DATA_ONLY",
445
- value: false
446
- }]
447
- });
448
- }
449
- async csv(input) {
450
- await this.requestCsv({
451
- resources: this.getResources(input),
452
- parameters: [...this.getParameters(input), {
453
- key: "DATA_ONLY",
454
- value: true
455
- }]
456
- });
457
- }
458
- getResources(input) {
459
- return [{
460
- key: "FARM_ID",
461
- value: input.farmId
462
- }];
463
- }
464
- getParameters(input) {
465
- return [
466
- {
467
- key: "DATE_BEGIN",
468
- value: input.dateRange.start
469
- },
470
- {
471
- key: "DATE_END",
472
- value: input.dateRange.end
473
- },
474
- {
475
- key: "CALENDAR",
476
- value: input.calendarType
477
- },
478
- {
479
- key: "ORIGIN_ID",
480
- value: input.originId
481
- },
482
- {
483
- key: "BREED_ID",
484
- value: input.breedId
485
- },
486
- {
487
- key: "BIRTH_PLACE_ID",
488
- value: input.birthPlaceId
489
- }
490
- ];
491
- }
492
- };
493
- //#endregion
494
- //#region src/namespaces/pig-master/reports/breed-list.ts
495
- var BreedList = class extends Report {
496
- template = "@pig-master/breed-list";
497
- fileName = "Listagem de raças";
498
- async pdf(input) {
499
- await this.requestPdf({
500
- resources: this.getResources(input),
501
- parameters: [...this.getParameters(input), {
502
- key: "DATA_ONLY",
503
- value: false
504
- }]
505
- });
506
- }
507
- async csv(input) {
508
- await this.requestCsv({
509
- resources: this.getResources(input),
510
- parameters: [...this.getParameters(input), {
511
- key: "DATA_ONLY",
512
- value: true
513
- }]
514
- });
515
- }
516
- getResources(input) {
517
- return [{
518
- key: "FARM_ID",
519
- value: input.farmId
520
- }];
521
- }
522
- getParameters(input) {
523
- return [{
524
- key: "LOCATE",
525
- value: input.language.replace("-", "_")
526
- }];
527
- }
528
- };
529
- //#endregion
530
- //#region src/namespaces/pig-master/reports/breeding-monitor.ts
531
- var BreedingMonitor = class extends Report {
532
- template = "@pig-master/breeding-monitor";
533
- fileName = "Monitor de Reprodução";
534
- async pdf(input) {
535
- await this.requestPdf({
536
- resources: [{
537
- key: "FARM_ID",
538
- value: input.farmId
539
- }],
540
- parameters: [
541
- {
542
- key: "DATE_BEGIN",
543
- value: input.dateRange.start
544
- },
545
- {
546
- key: "DATE_END",
547
- value: input.dateRange.end
548
- },
549
- {
550
- key: "CALENDAR",
551
- value: input.calendarType
552
- },
553
- {
554
- key: "DATA_ONLY",
555
- value: false
556
- }
557
- ]
558
- });
559
- }
560
- };
561
- //#endregion
562
- //#region src/namespaces/pig-master/reports/breeding-projection.ts
563
- var BreedingProjection = class extends Report {
564
- template = "@pig-master/breeding-projection";
565
- fileName = "Projeção de reprodução";
566
- async pdf(input) {
567
- await this.requestPdf({
568
- resources: this.getResources(input),
569
- parameters: [...this.getParameters(input), {
570
- key: "DATA_ONLY",
571
- value: false
572
- }]
573
- });
574
- }
575
- async csv(input) {
576
- await this.requestCsv({
577
- resources: this.getResources(input),
578
- parameters: [...this.getParameters(input), {
579
- key: "DATA_ONLY",
580
- value: true
581
- }]
582
- });
583
- }
584
- getResources(input) {
585
- return [{
586
- key: "FARM_ID",
587
- value: input.farmId
588
- }];
589
- }
590
- getParameters(input) {
591
- return [
592
- {
593
- key: "DATE_BEGIN",
594
- value: input.dateRange.start
595
- },
596
- {
597
- key: "DATE_END",
598
- value: input.dateRange.end
599
- },
600
- {
601
- key: "CALENDAR",
602
- value: input.calendarType
603
- }
604
- ];
605
- }
606
- };
607
- //#endregion
608
- //#region src/namespaces/pig-master/reports/cause-list.ts
609
- var CauseList = class extends Report {
610
- template = "@pig-master/cause-list";
611
- fileName = "Listagem de motivos";
612
- async pdf(input) {
613
- await this.requestPdf({
614
- resources: this.getResources(input),
615
- parameters: [...this.getParameters(input), {
616
- key: "DATA_ONLY",
617
- value: false
618
- }]
619
- });
620
- }
621
- async csv(input) {
622
- await this.requestCsv({
623
- resources: this.getResources(input),
624
- parameters: [...this.getParameters(input), {
625
- key: "DATA_ONLY",
626
- value: true
627
- }]
628
- });
629
- }
630
- getResources(input) {
631
- return [{
632
- key: "FARM_ID",
633
- value: input.farmId
634
- }];
635
- }
636
- getParameters(input) {
637
- return [
638
- {
639
- key: "LOCATE",
640
- value: input.language.replace("-", "_")
641
- },
642
- {
643
- key: "ORDERBYCOLUMN",
644
- value: input.orderBy.column
645
- },
646
- {
647
- key: "ORDERBYDIRECTION",
648
- value: input.orderBy.direction
649
- },
650
- {
651
- key: "DESCRIPTION",
652
- value: input.description
653
- },
654
- {
655
- key: "AVAILABILITY",
656
- value: input.availability
657
- }
658
- ];
659
- }
660
- };
661
- //#endregion
662
- //#region src/namespaces/pig-master/reports/drug-list.ts
663
- var DrugList = class extends Report {
664
- template = "@pig-master/drug-list";
665
- fileName = "Listagem de medicamentos / vacinas";
666
- async pdf(input) {
667
- await this.requestPdf({
668
- resources: this.getResources(input),
669
- parameters: [...this.getParameters(input), {
670
- key: "DATA_ONLY",
671
- value: false
672
- }]
673
- });
674
- }
675
- async csv(input) {
676
- await this.requestCsv({
677
- resources: this.getResources(input),
678
- parameters: [...this.getParameters(input), {
679
- key: "DATA_ONLY",
680
- value: true
681
- }]
682
- });
683
- }
684
- getResources(input) {
685
- return [{
686
- key: "FARM_ID",
687
- value: input.farmId
688
- }];
689
- }
690
- getParameters(input) {
691
- return [{
692
- key: "LOCATE",
693
- value: input.language.replace("-", "_")
694
- }];
695
- }
696
- };
697
- //#endregion
698
- //#region src/namespaces/pig-master/reports/employee-list.ts
699
- var EmployeeList = class extends Report {
700
- template = "@pig-master/employee-list";
701
- fileName = "Listagem de funcionários";
702
- async pdf(input) {
703
- await this.requestPdf({
704
- resources: this.getResources(input),
705
- parameters: [...this.getParameters(input), {
706
- key: "DATA_ONLY",
707
- value: false
708
- }]
709
- });
710
- }
711
- async csv(input) {
712
- await this.requestCsv({
713
- resources: this.getResources(input),
714
- parameters: [...this.getParameters(input), {
715
- key: "DATA_ONLY",
716
- value: true
717
- }]
718
- });
719
- }
720
- getResources(input) {
721
- return [{
722
- key: "FARM_ID",
723
- value: input.farmId
724
- }];
725
- }
726
- getParameters(input) {
727
- return [{
728
- key: "LOCATE",
729
- value: input.language.replace("-", "_")
730
- }, {
731
- key: "CALENDAR",
732
- value: input.calendarType
733
- }];
734
- }
735
- };
736
- //#endregion
737
- //#region src/namespaces/pig-master/reports/farm-summary.ts
738
- var FarmSummary = class extends Report {
739
- template = "@pig-master/farm-summary";
740
- fileName = "Fechamento de período";
741
- async pdf(input) {
742
- await this.requestPdf({
743
- resources: this.getResources(input),
744
- parameters: [...this.getParameters(input), {
745
- key: "DATA_ONLY",
746
- value: false
747
- }]
748
- });
749
- }
750
- async csv(input) {
751
- await this.requestCsv({
752
- resources: this.getResources(input),
753
- parameters: [...this.getParameters(input), {
754
- key: "DATA_ONLY",
755
- value: true
756
- }]
757
- });
758
- }
759
- getResources(input) {
760
- return [{
761
- key: "FARM_ID",
762
- value: input.farmId
763
- }];
764
- }
765
- getParameters(input) {
766
- return [
767
- {
768
- key: "DATE_BEGIN",
769
- value: input.dateRange.start
770
- },
771
- {
772
- key: "DATE_END",
773
- value: input.dateRange.end
774
- },
775
- {
776
- key: "CALENDAR",
777
- value: input.calendarType
778
- }
779
- ];
780
- }
781
- };
782
- //#endregion
783
- //#region src/namespaces/pig-master/reports/farrowing-analysis.ts
784
- var FarrowingAnalysis = class extends Report {
785
- template = "@pig-master/farrowing-analysis";
786
- fileName = "Análise de partos";
787
- async pdf(input) {
788
- await this.requestPdf({
789
- resources: [{
790
- key: "FARM_ID",
791
- value: input.farmId
792
- }],
793
- parameters: [
794
- {
795
- key: "DATE_BEGIN",
796
- value: input.dateRange?.start ?? null
797
- },
798
- {
799
- key: "DATE_END",
800
- value: input.dateRange?.end ?? null
801
- },
802
- {
803
- key: "CALENDAR",
804
- value: input.calendarType
805
- },
806
- {
807
- key: "GROUP",
808
- value: input.groupBy
809
- },
810
- {
811
- key: "FIELD",
812
- value: input.emphasis
813
- },
814
- {
815
- key: "PARITY",
816
- value: input.parity?.toString() ?? null
817
- },
818
- {
819
- key: "ORIGIN_ID",
820
- value: input.originId
821
- },
822
- {
823
- key: "BREED_ID",
824
- value: input.breedId
825
- },
826
- {
827
- key: "BIRTH_PLACE_ID",
828
- value: input.birthPlaceId
829
- },
830
- {
831
- key: "FEMALE_SWINE_ID",
832
- value: input.femaleSwineId
833
- },
834
- {
835
- key: "LOCATE",
836
- value: input.language.replace("-", "_")
837
- },
838
- {
839
- key: "MATING_DATE_BEGIN",
840
- value: input.matingDateRange?.start ?? null
841
- },
842
- {
843
- key: "MATING_DATE_END",
844
- value: input.matingDateRange?.end ?? null
845
- }
846
- ]
847
- });
848
- }
849
- };
850
- //#endregion
851
- //#region src/namespaces/pig-master/reports/farrowing-collection-form.ts
852
- var FarrowingCollectionForm = class extends Report {
853
- template = "@pig-master/farrowing-collection-form";
854
- fileName = "Parto";
855
- async pdf(input) {
856
- await this.requestPdf({
857
- resources: [{
858
- key: "FARM_ID",
859
- value: input.farmId
860
- }],
861
- parameters: [{
862
- key: "CALENDAR",
863
- value: input.calendarType
864
- }]
865
- });
866
- }
867
- };
868
- //#endregion
869
- //#region src/namespaces/pig-master/reports/farrowing-forecast.ts
870
- var FarrowingForecast = class extends Report {
871
- template = "@pig-master/farrowing-forecast";
872
- fileName = "Previsão de partos";
873
- async pdf(input) {
874
- await this.requestPdf({
875
- resources: this.getResources(input),
876
- parameters: [...this.getParameters(input), {
877
- key: "DATA_ONLY",
878
- value: false
879
- }]
880
- });
881
- }
882
- async csv(input) {
883
- await this.requestCsv({
884
- resources: this.getResources(input),
885
- parameters: [...this.getParameters(input), {
886
- key: "DATA_ONLY",
887
- value: true
888
- }]
889
- });
890
- }
891
- getResources(input) {
892
- return [{
893
- key: "FARM_ID",
894
- value: input.farmId
895
- }];
896
- }
897
- getParameters(input) {
898
- return [
899
- {
900
- key: "DATE_BEGIN",
901
- value: input.dateRange.start
902
- },
903
- {
904
- key: "DATE_END",
905
- value: input.dateRange.end
906
- },
907
- {
908
- key: "CALENDAR",
909
- value: input.calendarType
910
- },
911
- {
912
- key: "PARITY",
913
- value: input.parity?.toString() ?? null
914
- },
915
- {
916
- key: "LOCATION_ID",
917
- value: input.locationId
918
- },
919
- {
920
- key: "PEN",
921
- value: input.pen
922
- }
923
- ];
924
- }
925
- };
926
- //#endregion
927
- //#region src/core/to-snake-case.ts
928
- function toSnakeCase(str) {
929
- return str.replace(/[A-Z]/g, (letter, index) => {
930
- return index === 0 ? letter.toLowerCase() : `_${letter.toLowerCase()}`;
931
- });
932
- }
933
- //#endregion
934
- //#region src/namespaces/pig-master/reports/farrowing-list.ts
935
- var FarrowingList = class extends Report {
936
- template = "@pig-master/farrowing-list";
937
- fileName = "Listagem de partos";
938
- async pdf(input) {
939
- await this.requestPdf({
940
- resources: this.getResources(input),
941
- parameters: [...this.getParameters(input), {
942
- key: "DATA_ONLY",
943
- value: false
944
- }]
945
- });
946
- }
947
- async csv(input) {
948
- await this.requestCsv({
949
- resources: this.getResources(input),
950
- parameters: [...this.getParameters(input), {
951
- key: "DATA_ONLY",
952
- value: true
953
- }]
954
- });
955
- }
956
- getResources(input) {
957
- return [{
958
- key: "FARM_ID",
959
- value: input.farmId
960
- }];
961
- }
962
- getParameters(input) {
963
- return [
964
- {
965
- key: "DATE_BEGIN",
966
- value: input.dateRange?.start ?? null
967
- },
968
- {
969
- key: "DATE_END",
970
- value: input.dateRange?.end ?? null
971
- },
972
- {
973
- key: "CALENDAR",
974
- value: input.calendarType
975
- },
976
- {
977
- key: "FEMALE_SWINE_ID",
978
- value: input.femaleSwineId
979
- },
980
- {
981
- key: "PARITY",
982
- value: input.parity?.toString() ?? null
983
- },
984
- {
985
- key: "MATING_DATE_BEGIN",
986
- value: input.matingDateRange?.start ?? null
987
- },
988
- {
989
- key: "MATING_DATE_END",
990
- value: input.matingDateRange?.end ?? null
991
- },
992
- {
993
- key: "BIRTH_PLACE_ID",
994
- value: input.birthPlaceId
995
- },
996
- {
997
- key: "ORIGIN_ID",
998
- value: input.originId
999
- },
1000
- {
1001
- key: "BREED_ID",
1002
- value: input.breedId
1003
- },
1004
- {
1005
- key: "ORDERBYDIRECTION",
1006
- value: input.orderBy.direction
1007
- },
1008
- {
1009
- key: "ORDERBYCOLUMN",
1010
- value: toSnakeCase(input.orderBy.column)
1011
- }
1012
- ];
1013
- }
1014
- };
1015
- //#endregion
1016
- //#region src/namespaces/pig-master/reports/farrowing-rate.ts
1017
- var FarrowingRate = class extends Report {
1018
- template = "@pig-master/farrowing-rate";
1019
- fileName = "Taxa de parição";
1020
- async pdf(input) {
1021
- await this.requestPdf({
1022
- resources: [{
1023
- key: "FARM_ID",
1024
- value: input.farmId
1025
- }],
1026
- parameters: [
1027
- {
1028
- key: "DATE_BEGIN",
1029
- value: input.dateRange.start
1030
- },
1031
- {
1032
- key: "DATE_END",
1033
- value: input.dateRange.end
1034
- },
1035
- {
1036
- key: "CALENDAR",
1037
- value: input.calendarType
1038
- },
1039
- {
1040
- key: "PARITY",
1041
- value: input.parity?.toString() ?? null
1042
- },
1043
- {
1044
- key: "BREED_ID",
1045
- value: input.femaleSwineBreedId
1046
- },
1047
- {
1048
- key: "BIRTH_PLACE_ID",
1049
- value: input.femaleSwineBirthPlaceId
1050
- },
1051
- {
1052
- key: "ORIGIN_ID",
1053
- value: input.femaleSwineOriginId
1054
- }
1055
- ]
1056
- });
1057
- }
1058
- };
1059
- //#endregion
1060
- //#region src/namespaces/pig-master/reports/farrowing-type-list.ts
1061
- var FarrowingTypeList = class extends Report {
1062
- template = "@pig-master/farrowing-type-list";
1063
- fileName = "Listagem de tipos de parto";
1064
- async pdf(input) {
1065
- await this.requestPdf({
1066
- resources: this.getResources(input),
1067
- parameters: [...this.getParameters(input), {
1068
- key: "DATA_ONLY",
1069
- value: false
1070
- }]
1071
- });
1072
- }
1073
- async csv(input) {
1074
- await this.requestCsv({
1075
- resources: this.getResources(input),
1076
- parameters: [...this.getParameters(input), {
1077
- key: "DATA_ONLY",
1078
- value: true
1079
- }]
1080
- });
1081
- }
1082
- getResources(input) {
1083
- return [{
1084
- key: "FARM_ID",
1085
- value: input.farmId
1086
- }];
1087
- }
1088
- getParameters(input) {
1089
- return [{
1090
- key: "LOCATE",
1091
- value: input.language.replace("-", "_")
1092
- }];
1093
- }
1094
- };
1095
- //#endregion
1096
- //#region src/namespaces/pig-master/reports/female-swine-arrival-monitoring.ts
1097
- var FemaleSwineArrivalMonitoring = class extends Report {
1098
- template = "@pig-master/female-swine-arrival-monitoring";
1099
- fileName = "Acompanhamento do lote";
1100
- async pdf(input) {
1101
- await this.requestPdf({
1102
- resources: this.getResources(input),
1103
- parameters: [...this.getParameters(input), {
1104
- key: "DATA_ONLY",
1105
- value: false
1106
- }]
1107
- });
1108
- }
1109
- async csv(input) {
1110
- await this.requestCsv({
1111
- resources: this.getResources(input),
1112
- parameters: [...this.getParameters(input), {
1113
- key: "DATA_ONLY",
1114
- value: true
1115
- }]
1116
- });
1117
- }
1118
- getResources(input) {
1119
- return [{
1120
- key: "FARM_ID",
1121
- value: input.farmId
1122
- }];
1123
- }
1124
- getParameters(input) {
1125
- return [
1126
- {
1127
- key: "DATE_BEGIN",
1128
- value: input.dateRange.start
1129
- },
1130
- {
1131
- key: "DATE_END",
1132
- value: input.dateRange.end
1133
- },
1134
- {
1135
- key: "CALENDAR",
1136
- value: input.calendarType
1137
- },
1138
- {
1139
- key: "PAGE",
1140
- value: input.pagination.page
1141
- },
1142
- {
1143
- key: "PER_PAGE",
1144
- value: input.pagination.perPage
1145
- },
1146
- {
1147
- key: "ORIGIN_ID",
1148
- value: input.originId
1149
- }
1150
- ];
1151
- }
1152
- };
1153
- //#endregion
1154
- //#region src/namespaces/pig-master/reports/female-swine-by-breed-list.ts
1155
- var FemaleSwineByBreedList = class extends Report {
1156
- template = "@pig-master/female-swine-by-breed-list";
1157
- fileName = "Fêmeas por raça";
1158
- async pdf(input) {
1159
- await this.requestPdf({
1160
- resources: this.getResources(input),
1161
- parameters: [...this.getParameters(input), {
1162
- key: "DATA_ONLY",
1163
- value: false
1164
- }]
1165
- });
1166
- }
1167
- async csv(input) {
1168
- await this.requestCsv({
1169
- resources: this.getResources(input),
1170
- parameters: [...this.getParameters(input), {
1171
- key: "DATA_ONLY",
1172
- value: true
1173
- }]
1174
- });
1175
- }
1176
- getResources(input) {
1177
- return [{
1178
- key: "FARM_ID",
1179
- value: input.farmId
1180
- }];
1181
- }
1182
- getParameters(input) {
1183
- return [
1184
- {
1185
- key: "LOCATE",
1186
- value: input.language.replace("-", "_")
1187
- },
1188
- {
1189
- key: "BREED_ID",
1190
- value: input.breedId
1191
- },
1192
- {
1193
- key: "REMOVE_GILT_SOW",
1194
- value: input.productivityStatus === "productive"
1195
- },
1196
- {
1197
- key: "CALENDAR",
1198
- value: input.calendarType
1199
- }
1200
- ];
1201
- }
1202
- };
1203
- //#endregion
1204
- //#region src/namespaces/pig-master/reports/female-swine-by-parity-list.ts
1205
- var FemaleSwineByParityList = class extends Report {
1206
- template = "@pig-master/female-swine-by-parity-list";
1207
- fileName = "Fêmeas por cria";
1208
- async pdf(input) {
1209
- await this.requestPdf({
1210
- resources: this.getResources(input),
1211
- parameters: [...this.getParameters(input), {
1212
- key: "DATA_ONLY",
1213
- value: false
1214
- }]
1215
- });
1216
- }
1217
- async csv(input) {
1218
- await this.requestCsv({
1219
- resources: this.getResources(input),
1220
- parameters: [...this.getParameters(input), {
1221
- key: "DATA_ONLY",
1222
- value: true
1223
- }]
1224
- });
1225
- }
1226
- getResources(input) {
1227
- return [{
1228
- key: "FARM_ID",
1229
- value: input.farmId
1230
- }];
1231
- }
1232
- getParameters(input) {
1233
- return [
1234
- {
1235
- key: "LOCATE",
1236
- value: input.language.replace("-", "_")
1237
- },
1238
- {
1239
- key: "PARITY",
1240
- value: input.parity?.toString() ?? null
1241
- },
1242
- {
1243
- key: "BREED_ID",
1244
- value: input.breedId
1245
- },
1246
- {
1247
- key: "ORIGIN_ID",
1248
- value: input.originId
1249
- },
1250
- {
1251
- key: "BIRTH_PLACE_ID",
1252
- value: input.birthPlaceId
1253
- },
1254
- {
1255
- key: "STATUS",
1256
- value: input.status
1257
- },
1258
- {
1259
- key: "CALENDAR",
1260
- value: input.calendarType
1261
- }
1262
- ];
1263
- }
1264
- };
1265
- //#endregion
1266
- //#region src/namespaces/pig-master/reports/female-swine-by-status-list.ts
1267
- var FemaleSwineByStatusList = class extends Report {
1268
- template = "@pig-master/female-swine-by-status-list";
1269
- fileName = "Fêmeas por status";
1270
- async pdf(input) {
1271
- await this.requestPdf({
1272
- resources: this.getResources(input),
1273
- parameters: [...this.getParameters(input), {
1274
- key: "DATA_ONLY",
1275
- value: false
1276
- }]
1277
- });
1278
- }
1279
- async csv(input) {
1280
- await this.requestCsv({
1281
- resources: this.getResources(input),
1282
- parameters: [...this.getParameters(input), {
1283
- key: "DATA_ONLY",
1284
- value: true
1285
- }]
1286
- });
1287
- }
1288
- getResources(input) {
1289
- return [{
1290
- key: "FARM_ID",
1291
- value: input.farmId
1292
- }];
1293
- }
1294
- getParameters(input) {
1295
- return [
1296
- {
1297
- key: "LOCATE",
1298
- value: input.language.replace("-", "_")
1299
- },
1300
- {
1301
- key: "STATUS",
1302
- value: input.status
1303
- },
1304
- {
1305
- key: "DAYSTODAY_BEGIN",
1306
- value: input.gestationLengthRange?.start.toString() ?? null
1307
- },
1308
- {
1309
- key: "DAYSTODAY_END",
1310
- value: input.gestationLengthRange?.end.toString() ?? null
1311
- },
1312
- {
1313
- key: "CALENDAR",
1314
- value: input.calendarType
1315
- },
1316
- {
1317
- key: "LAST_EVENT_DATE_BEGIN",
1318
- value: input.lastEventDateRange?.start ?? null
1319
- },
1320
- {
1321
- key: "LAST_EVENT_DATE_END",
1322
- value: input.lastEventDateRange?.end ?? null
1323
- },
1324
- {
1325
- key: "PARITY",
1326
- value: input.parity?.toString() ?? null
1327
- },
1328
- {
1329
- key: "BREED_ID",
1330
- value: input.breedId
1331
- },
1332
- {
1333
- key: "ORIGIN_ID",
1334
- value: input.originId
1335
- },
1336
- {
1337
- key: "BIRTH_PLACE_ID",
1338
- value: input.birthPlaceId
1339
- },
1340
- {
1341
- key: "LIFECYCLE_STATUS",
1342
- value: input.lifecycleStatus
1343
- },
1344
- {
1345
- key: "ARRIVAL_DATE_BEGIN",
1346
- value: input.arrivalDateRange?.start ?? null
1347
- },
1348
- {
1349
- key: "ARRIVAL_DATE_END",
1350
- value: input.arrivalDateRange?.end ?? null
1351
- },
1352
- {
1353
- key: "ORDERBYCOLUMN",
1354
- value: input.orderBy.column
1355
- },
1356
- {
1357
- key: "ORDERBYDIRECTION",
1358
- value: input.orderBy.direction
1359
- }
1360
- ];
1361
- }
1362
- };
1363
- //#endregion
1364
- //#region src/namespaces/pig-master/reports/female-swine-by-traceability-list.ts
1365
- var FemaleSwineByTraceabilityList = class extends Report {
1366
- template = "@pig-master/female-swine-by-traceability-list";
1367
- fileName = "Fêmeas por rastreabilidade";
1368
- async pdf(input) {
1369
- await this.requestPdf({
1370
- resources: this.getResources(input),
1371
- parameters: [...this.getParameters(input), {
1372
- key: "DATA_ONLY",
1373
- value: false
1374
- }]
1375
- });
1376
- }
1377
- async csv(input) {
1378
- await this.requestCsv({
1379
- resources: this.getResources(input),
1380
- parameters: [...this.getParameters(input), {
1381
- key: "DATA_ONLY",
1382
- value: true
1383
- }]
1384
- });
1385
- }
1386
- getResources(input) {
1387
- return [{
1388
- key: "FARM_ID",
1389
- value: input.farmId
1390
- }];
1391
- }
1392
- getParameters(input) {
1393
- return [
1394
- {
1395
- key: "LOCATE",
1396
- value: input.language.replace("-", "_")
1397
- },
1398
- {
1399
- key: "BIRTH_PLACE_ID",
1400
- value: input.birthPlaceId
1401
- },
1402
- {
1403
- key: "ORIGIN_ID",
1404
- value: input.originId
1405
- },
1406
- {
1407
- key: "GTA_ID",
1408
- value: input.gtaId
1409
- },
1410
- {
1411
- key: "CALENDAR",
1412
- value: input.calendarType
1413
- },
1414
- {
1415
- key: "ARRIVAL_DATE_BEGIN",
1416
- value: input.arrivalDateRange?.start ?? null
1417
- },
1418
- {
1419
- key: "ARRIVAL_DATE_END",
1420
- value: input.arrivalDateRange?.end ?? null
1421
- },
1422
- {
1423
- key: "LIFECYCLE_STATUS",
1424
- value: input.lifecycleStatus
1425
- }
1426
- ];
1427
- }
1428
- };
1429
- //#endregion
1430
- //#region src/namespaces/pig-master/reports/female-swine-death-analysis.ts
1431
- var FemaleSwineDeathAnalysis = class extends Report {
1432
- template = "@pig-master/female-swine-death-analysis";
1433
- fileName = "Análise morte de fêmeas";
1434
- async pdf(input) {
1435
- await this.requestPdf({
1436
- resources: [{
1437
- key: "FARM_ID",
1438
- value: input.farmId
1439
- }],
1440
- parameters: [
1441
- {
1442
- key: "LOCATE",
1443
- value: input.language.replace("-", "_")
1444
- },
1445
- {
1446
- key: "GROUPED_DESCRIPTION",
1447
- value: input.groupBy
1448
- },
1449
- {
1450
- key: "DATE_BEGIN",
1451
- value: input.dateRange?.start ?? null
1452
- },
1453
- {
1454
- key: "DATE_END",
1455
- value: input.dateRange?.end ?? null
1456
- },
1457
- {
1458
- key: "CAUSE_ID",
1459
- value: input.causeId
1460
- },
1461
- {
1462
- key: "PARITY",
1463
- value: input.parity?.toString() ?? null
1464
- },
1465
- {
1466
- key: "BREED_ID",
1467
- value: input.breedId
1468
- },
1469
- {
1470
- key: "ORIGIN_ID",
1471
- value: input.originId
1472
- },
1473
- {
1474
- key: "BIRTH_PLACE_ID",
1475
- value: input.birthPlaceId
1476
- },
1477
- {
1478
- key: "STATUS",
1479
- value: input.status
1480
- },
1481
- {
1482
- key: "CALENDAR",
1483
- value: input.calendarType
1484
- },
1485
- {
1486
- key: "ARRIVAL_DATE_BEGIN",
1487
- value: input.arrivalDateRange?.start ?? null
1488
- },
1489
- {
1490
- key: "ARRIVAL_DATE_END",
1491
- value: input.arrivalDateRange?.end ?? null
1492
- }
1493
- ]
1494
- });
1495
- }
1496
- };
1497
- //#endregion
1498
- //#region src/namespaces/pig-master/reports/female-swine-death-collection-form.ts
1499
- var FemaleSwineDeathCollectionForm = class extends Report {
1500
- template = "@pig-master/female-swine-death-collection-form";
1501
- fileName = "Morte de fêmea";
1502
- async pdf(input) {
1503
- await this.requestPdf({
1504
- resources: [{
1505
- key: "FARM_ID",
1506
- value: input.farmId
1507
- }],
1508
- parameters: [{
1509
- key: "CALENDAR",
1510
- value: input.calendarType
1511
- }]
1512
- });
1513
- }
1514
- };
1515
- //#endregion
1516
- //#region src/namespaces/pig-master/reports/female-swine-death-list.ts
1517
- var FemaleSwineDeathList = class extends Report {
1518
- template = "@pig-master/female-swine-death-list";
1519
- fileName = "Morte de fêmeas";
1520
- async pdf(input) {
1521
- await this.requestPdf({
1522
- resources: this.getResources(input),
1523
- parameters: [...this.getParameters(input), {
1524
- key: "DATA_ONLY",
1525
- value: false
1526
- }]
1527
- });
1528
- }
1529
- async csv(input) {
1530
- await this.requestCsv({
1531
- resources: this.getResources(input),
1532
- parameters: [...this.getParameters(input), {
1533
- key: "DATA_ONLY",
1534
- value: true
1535
- }]
1536
- });
1537
- }
1538
- getResources(input) {
1539
- return [{
1540
- key: "FARM_ID",
1541
- value: input.farmId
1542
- }];
1543
- }
1544
- getParameters(input) {
1545
- return [
1546
- {
1547
- key: "LOCATE",
1548
- value: input.language.replace("-", "_")
1549
- },
1550
- {
1551
- key: "DATE_BEGIN",
1552
- value: input.dateRange?.start ?? null
1553
- },
1554
- {
1555
- key: "DATE_END",
1556
- value: input.dateRange?.end ?? null
1557
- },
1558
- {
1559
- key: "CAUSE_ID",
1560
- value: input.causeId
1561
- },
1562
- {
1563
- key: "PARITY",
1564
- value: input.parity?.toString() ?? null
1565
- },
1566
- {
1567
- key: "BREED_ID",
1568
- value: input.breedId
1569
- },
1570
- {
1571
- key: "ORIGIN_ID",
1572
- value: input.originId
1573
- },
1574
- {
1575
- key: "BIRTH_PLACE_ID",
1576
- value: input.birthPlaceId
1577
- },
1578
- {
1579
- key: "STATUS",
1580
- value: input.status
1581
- },
1582
- {
1583
- key: "CALENDAR",
1584
- value: input.calendarType
1585
- },
1586
- {
1587
- key: "ARRIVAL_DATE_BEGIN",
1588
- value: input.arrivalDateRange?.start ?? null
1589
- },
1590
- {
1591
- key: "ARRIVAL_DATE_END",
1592
- value: input.arrivalDateRange?.end ?? null
1593
- }
1594
- ];
1595
- }
1596
- };
1597
- //#endregion
1598
- //#region src/namespaces/pig-master/reports/female-swine-discard-analysis.ts
1599
- var FemaleSwineDiscardAnalysis = class extends Report {
1600
- template = "@pig-master/female-swine-discard-analysis";
1601
- fileName = "Análise descarte de fêmeas";
1602
- async pdf(input) {
1603
- await this.requestPdf({
1604
- resources: [{
1605
- key: "FARM_ID",
1606
- value: input.farmId
1607
- }],
1608
- parameters: [
1609
- {
1610
- key: "LOCATE",
1611
- value: input.language.replace("-", "_")
1612
- },
1613
- {
1614
- key: "GROUPED_DESCRIPTION",
1615
- value: input.groupBy
1616
- },
1617
- {
1618
- key: "DATE_BEGIN",
1619
- value: input.dateRange?.start ?? null
1620
- },
1621
- {
1622
- key: "DATE_END",
1623
- value: input.dateRange?.end ?? null
1624
- },
1625
- {
1626
- key: "CAUSE_ID",
1627
- value: input.causeId
1628
- },
1629
- {
1630
- key: "PARITY",
1631
- value: input.parity?.toString() ?? null
1632
- },
1633
- {
1634
- key: "BREED_ID",
1635
- value: input.breedId
1636
- },
1637
- {
1638
- key: "ORIGIN_ID",
1639
- value: input.originId
1640
- },
1641
- {
1642
- key: "BIRTH_PLACE_ID",
1643
- value: input.birthPlaceId
1644
- },
1645
- {
1646
- key: "RECIPIENT_ID",
1647
- value: input.recipientId
1648
- },
1649
- {
1650
- key: "STATUS",
1651
- value: input.status
1652
- },
1653
- {
1654
- key: "CALENDAR",
1655
- value: input.calendarType
1656
- },
1657
- {
1658
- key: "ARRIVAL_DATE_BEGIN",
1659
- value: input.arrivalDateRange?.start ?? null
1660
- },
1661
- {
1662
- key: "ARRIVAL_DATE_END",
1663
- value: input.arrivalDateRange?.end ?? null
1664
- }
1665
- ]
1666
- });
1667
- }
1668
- };
1669
- //#endregion
1670
- //#region src/namespaces/pig-master/reports/female-swine-discard-collection-form.ts
1671
- var FemaleSwineDiscardCollectionForm = class extends Report {
1672
- template = "@pig-master/female-swine-discard-collection-form";
1673
- fileName = "Descarte de fêmea";
1674
- async pdf(input) {
1675
- await this.requestPdf({
1676
- resources: [{
1677
- key: "FARM_ID",
1678
- value: input.farmId
1679
- }],
1680
- parameters: [{
1681
- key: "CALENDAR",
1682
- value: input.calendarType
1683
- }]
1684
- });
1685
- }
1686
- };
1687
- //#endregion
1688
- //#region src/namespaces/pig-master/reports/female-swine-discard-list.ts
1689
- var FemaleSwineDiscardList = class extends Report {
1690
- template = "@pig-master/female-swine-discard-list";
1691
- fileName = "Descarte de fêmeas";
1692
- async pdf(input) {
1693
- await this.requestPdf({
1694
- resources: this.getResources(input),
1695
- parameters: [...this.getParameters(input), {
1696
- key: "DATA_ONLY",
1697
- value: false
1698
- }]
1699
- });
1700
- }
1701
- async csv(input) {
1702
- await this.requestCsv({
1703
- resources: this.getResources(input),
1704
- parameters: [...this.getParameters(input), {
1705
- key: "DATA_ONLY",
1706
- value: true
1707
- }]
1708
- });
1709
- }
1710
- getResources(input) {
1711
- return [{
1712
- key: "FARM_ID",
1713
- value: input.farmId
1714
- }];
1715
- }
1716
- getParameters(input) {
1717
- return [
1718
- {
1719
- key: "LOCATE",
1720
- value: input.language.replace("-", "_")
1721
- },
1722
- {
1723
- key: "CAUSE_ID",
1724
- value: input.causeId
1725
- },
1726
- {
1727
- key: "BREED_ID",
1728
- value: input.breedId
1729
- },
1730
- {
1731
- key: "ORIGIN_ID",
1732
- value: input.originId
1733
- },
1734
- {
1735
- key: "BIRTH_PLACE_ID",
1736
- value: input.birthPlaceId
1737
- },
1738
- {
1739
- key: "DATE_BEGIN",
1740
- value: input.dateRange?.start ?? null
1741
- },
1742
- {
1743
- key: "DATE_END",
1744
- value: input.dateRange?.end ?? null
1745
- },
1746
- {
1747
- key: "PARITY",
1748
- value: input.parity?.toString() ?? null
1749
- },
1750
- {
1751
- key: "RECIPIENT_ID",
1752
- value: input.recipientId
1753
- },
1754
- {
1755
- key: "STATUS",
1756
- value: input.status
1757
- },
1758
- {
1759
- key: "CALENDAR",
1760
- value: input.calendarType
1761
- },
1762
- {
1763
- key: "ARRIVAL_DATE_BEGIN",
1764
- value: input.arrivalDateRange?.start ?? null
1765
- },
1766
- {
1767
- key: "ARRIVAL_DATE_END",
1768
- value: input.arrivalDateRange?.end ?? null
1769
- }
1770
- ];
1771
- }
1772
- };
1773
- //#endregion
1774
- //#region src/namespaces/pig-master/reports/female-swine-ear-tag-replacement-list.ts
1775
- var FemaleSwineEarTagReplacementList = class extends Report {
1776
- template = "@pig-master/female-swine-ear-tag-replacement-list";
1777
- fileName = "Trocas de brinco de fêmeas";
1778
- async pdf(input) {
1779
- await this.requestPdf({
1780
- resources: this.getResources(input),
1781
- parameters: [...this.getParameters(input), {
1782
- key: "DATA_ONLY",
1783
- value: false
1784
- }]
1785
- });
1786
- }
1787
- async csv(input) {
1788
- await this.requestCsv({
1789
- resources: this.getResources(input),
1790
- parameters: [...this.getParameters(input), {
1791
- key: "DATA_ONLY",
1792
- value: true
1793
- }]
1794
- });
1795
- }
1796
- getResources(input) {
1797
- return [{
1798
- key: "FARM_ID",
1799
- value: input.farmId
1800
- }];
1801
- }
1802
- getParameters(input) {
1803
- return [
1804
- {
1805
- key: "DATE_BEGIN",
1806
- value: input.dateRange?.start ?? null
1807
- },
1808
- {
1809
- key: "DATE_END",
1810
- value: input.dateRange?.end ?? null
1811
- },
1812
- {
1813
- key: "OLD_EAR_TAG",
1814
- value: input.oldEarTag
1815
- },
1816
- {
1817
- key: "NEW_EAR_TAG",
1818
- value: input.newEarTag
1819
- },
1820
- {
1821
- key: "CALENDAR",
1822
- value: input.calendarType
1823
- }
1824
- ];
1825
- }
1826
- };
1827
- //#endregion
1828
- //#region src/namespaces/pig-master/reports/female-swine-inventory.ts
1829
- var FemaleSwineInventory = class extends Report {
1830
- template = "@pig-master/female-swine-inventory";
1831
- fileName = "Estoque de fêmeas";
1832
- async pdf(input) {
1833
- await this.requestPdf({
1834
- resources: this.getResources(input),
1835
- parameters: [...this.getParameters(input), {
1836
- key: "DATA_ONLY",
1837
- value: false
1838
- }]
1839
- });
1840
- }
1841
- async csv(input) {
1842
- await this.requestCsv({
1843
- resources: this.getResources(input),
1844
- parameters: [...this.getParameters(input), {
1845
- key: "DATA_ONLY",
1846
- value: true
1847
- }]
1848
- });
1849
- }
1850
- getResources(input) {
1851
- return [{
1852
- key: "FARM_ID",
1853
- value: input.farmId
1854
- }];
1855
- }
1856
- getParameters(input) {
1857
- return [
1858
- {
1859
- key: "DATE_BEGIN",
1860
- value: input.dateRange.start
1861
- },
1862
- {
1863
- key: "DATE_END",
1864
- value: input.dateRange.end
1865
- },
1866
- {
1867
- key: "CALENDAR",
1868
- value: input.calendarType
1869
- },
1870
- {
1871
- key: "ORIGIN_ID",
1872
- value: input.originId
1873
- },
1874
- {
1875
- key: "BREED_ID",
1876
- value: input.breedId
1877
- },
1878
- {
1879
- key: "BIRTH_PLACE_ID",
1880
- value: input.birthPlaceId
1881
- }
1882
- ];
1883
- }
1884
- };
1885
- //#endregion
1886
- //#region src/namespaces/pig-master/reports/female-swine-pending-action-list.ts
1887
- var FemaleSwinePendingActionList = class extends Report {
1888
- template = "@pig-master/female-swine-pending-action-list";
1889
- fileName = "Ações pendentes";
1890
- async pdf(input) {
1891
- await this.requestPdf({
1892
- resources: this.getResources(input),
1893
- parameters: [...this.getParameters(input), {
1894
- key: "DATA_ONLY",
1895
- value: false
1896
- }]
1897
- });
1898
- }
1899
- async csv(input) {
1900
- await this.requestCsv({
1901
- resources: this.getResources(input),
1902
- parameters: [...this.getParameters(input), {
1903
- key: "DATA_ONLY",
1904
- value: true
1905
- }]
1906
- });
1907
- }
1908
- getResources(input) {
1909
- return [{
1910
- key: "FARM_ID",
1911
- value: input.farmId
1912
- }];
1913
- }
1914
- getParameters(input) {
1915
- return [
1916
- {
1917
- key: "LOCATE",
1918
- value: input.language.replace("-", "_")
1919
- },
1920
- {
1921
- key: "STATUS",
1922
- value: input.status
1923
- },
1924
- {
1925
- key: "CALENDAR",
1926
- value: input.calendarType
1927
- }
1928
- ];
1929
- }
1930
- };
1931
- //#endregion
1932
- //#region src/namespaces/pig-master/reports/female-swine-pre-discard-list.ts
1933
- var FemaleSwinePreDiscardList = class extends Report {
1934
- template = "@pig-master/female-swine-pre-discard-list";
1935
- fileName = "Listagem de pré-descartes de fêmeas";
1936
- async pdf(input) {
1937
- await this.requestPdf({
1938
- resources: this.getResources(input),
1939
- parameters: [...this.getParameters(input), {
1940
- key: "DATA_ONLY",
1941
- value: false
1942
- }]
1943
- });
1944
- }
1945
- async csv(input) {
1946
- await this.requestCsv({
1947
- resources: this.getResources(input),
1948
- parameters: [...this.getParameters(input), {
1949
- key: "DATA_ONLY",
1950
- value: true
1951
- }]
1952
- });
1953
- }
1954
- getResources(input) {
1955
- return [{
1956
- key: "FARM_ID",
1957
- value: input.farmId
1958
- }];
1959
- }
1960
- getParameters(input) {
1961
- return [
1962
- {
1963
- key: "CALENDAR",
1964
- value: input.calendarType
1965
- },
1966
- {
1967
- key: "LOCATE",
1968
- value: input.language.replace("-", "_")
1969
- },
1970
- {
1971
- key: "PRE_DISCARD",
1972
- value: input.preDiscard
1973
- },
1974
- {
1975
- key: "DATE_BEGIN",
1976
- value: input.dateRange?.start ?? null
1977
- },
1978
- {
1979
- key: "DATE_END",
1980
- value: input.dateRange?.end ?? null
1981
- },
1982
- {
1983
- key: "ORDERBYCOLUMN",
1984
- value: input.orderBy.column
1985
- },
1986
- {
1987
- key: "ORDERBYDIRECTION",
1988
- value: input.orderBy.direction
1989
- }
1990
- ];
1991
- }
1992
- };
1993
- //#endregion
1994
- //#region src/namespaces/pig-master/reports/female-swine-record.ts
1995
- var FemaleSwineRecord = class extends Report {
1996
- template = "@pig-master/female-swine-record";
1997
- fileName = "Ficha da fêmea";
1998
- async pdf(input) {
1999
- await this.requestPdf({
2000
- resources: [{
2001
- key: "FARM_ID",
2002
- value: input.farmId
2003
- }],
2004
- parameters: [
2005
- {
2006
- key: "LOCATE",
2007
- value: input.language.replace("-", "_")
2008
- },
2009
- {
2010
- key: "FEMALE_SWINE_ID",
2011
- value: input.femaleSwineId
2012
- },
2013
- {
2014
- key: "BORN_FOLLOW",
2015
- value: input.farrowingAssistance
2016
- },
2017
- {
2018
- key: "CALENDAR",
2019
- value: input.calendarType
2020
- }
2021
- ]
2022
- });
2023
- }
2024
- };
2025
- //#endregion
2026
- //#region src/namespaces/pig-master/reports/female-swine-sale-planning-list.ts
2027
- var FemaleSwineSalePlanningList = class extends Report {
2028
- template = "@pig-master/female-swine-sale-planning-list";
2029
- fileName = "Listagem de fêmeas planejadas para venda";
2030
- async pdf(input) {
2031
- await this.requestPdf({
2032
- resources: this.getResources(input),
2033
- parameters: [...this.getParameters(input), {
2034
- key: "DATA_ONLY",
2035
- value: false
2036
- }]
2037
- });
2038
- }
2039
- async csv(input) {
2040
- await this.requestCsv({
2041
- resources: this.getResources(input),
2042
- parameters: [...this.getParameters(input), {
2043
- key: "DATA_ONLY",
2044
- value: true
2045
- }]
2046
- });
2047
- }
2048
- getResources(input) {
2049
- return [{
2050
- key: "FARM_ID",
2051
- value: input.farmId
2052
- }];
2053
- }
2054
- getParameters(input) {
2055
- return [
2056
- {
2057
- key: "CALENDAR",
2058
- value: input.calendarType
2059
- },
2060
- {
2061
- key: "QUERY",
2062
- value: input.query
2063
- },
2064
- {
2065
- key: "DATE_BEGIN",
2066
- value: input.dateRange?.start ?? null
2067
- },
2068
- {
2069
- key: "DATE_END",
2070
- value: input.dateRange?.end ?? null
2071
- },
2072
- {
2073
- key: "RECIPIENT_ID",
2074
- value: input.recipientId
2075
- },
2076
- {
2077
- key: "ORDERBYCOLUMN",
2078
- value: input.orderBy.column
2079
- },
2080
- {
2081
- key: "ORDERBYDIRECTION",
2082
- value: input.orderBy.direction
2083
- }
2084
- ];
2085
- }
2086
- };
2087
- //#endregion
2088
- //#region src/namespaces/pig-master/reports/female-swine-treatment-collection-form.ts
2089
- var FemaleSwineTreatmentCollectionForm = class extends Report {
2090
- template = "@pig-master/female-swine-treatment-collection-form";
2091
- fileName = "Medicação / vacinação de fêmea";
2092
- async pdf(input) {
2093
- await this.requestPdf({
2094
- resources: [{
2095
- key: "FARM_ID",
2096
- value: input.farmId
2097
- }],
2098
- parameters: [{
2099
- key: "CALENDAR",
2100
- value: input.calendarType
2101
- }]
2102
- });
2103
- }
2104
- };
2105
- //#endregion
2106
- //#region src/namespaces/pig-master/reports/female-swine-treatment-list.ts
2107
- var FemaleSwineTreatmentList = class extends Report {
2108
- template = "@pig-master/female-swine-treatment-list";
2109
- fileName = "Listagem de medicações / vacinas (fêmeas)";
2110
- async pdf(input) {
2111
- await this.requestPdf({
2112
- resources: this.getResources(input),
2113
- parameters: [...this.getParameters(input), {
2114
- key: "DATA_ONLY",
2115
- value: false
2116
- }]
2117
- });
2118
- }
2119
- async csv(input) {
2120
- await this.requestCsv({
2121
- resources: this.getResources(input),
2122
- parameters: [...this.getParameters(input), {
2123
- key: "DATA_ONLY",
2124
- value: true
2125
- }]
2126
- });
2127
- }
2128
- getResources(input) {
2129
- return [{
2130
- key: "FARM_ID",
2131
- value: input.farmId
2132
- }];
2133
- }
2134
- getParameters(input) {
2135
- return [
2136
- {
2137
- key: "CALENDAR",
2138
- value: input.calendarType
2139
- },
2140
- {
2141
- key: "LOCATE",
2142
- value: input.language.replace("-", "_")
2143
- },
2144
- {
2145
- key: "DATE_BEGIN",
2146
- value: input.dateRange?.start ?? null
2147
- },
2148
- {
2149
- key: "DATE_END",
2150
- value: input.dateRange?.end ?? null
2151
- },
2152
- {
2153
- key: "FEMALE_SWINE_ID",
2154
- value: input.femaleSwineId
2155
- }
2156
- ];
2157
- }
2158
- };
2159
- //#endregion
2160
- //#region src/namespaces/pig-master/reports/finishing-piglet-death-collection-form.ts
2161
- var FinishingPigletDeathCollectionForm = class extends Report {
2162
- template = "@pig-master/finishing-piglet-death-collection-form";
2163
- fileName = "Morte de leitão na terminação";
2164
- async pdf(input) {
2165
- await this.requestPdf({
2166
- resources: [{
2167
- key: "FARM_ID",
2168
- value: input.farmId
2169
- }],
2170
- parameters: [{
2171
- key: "CALENDAR",
2172
- value: input.calendarType
2173
- }]
2174
- });
2175
- }
2176
- };
2177
- //#endregion
2178
- //#region src/namespaces/pig-master/reports/flushing-female-swine-list.ts
2179
- var FlushingFemaleSwineList = class extends Report {
2180
- template = "@pig-master/flushing-female-swine-list";
2181
- fileName = "Fêmeas flushing";
2182
- async pdf(input) {
2183
- await this.requestPdf({
2184
- resources: this.getResources(input),
2185
- parameters: [...this.getParameters(input), {
2186
- key: "DATA_ONLY",
2187
- value: false
2188
- }]
2189
- });
2190
- }
2191
- async csv(input) {
2192
- await this.requestCsv({
2193
- resources: this.getResources(input),
2194
- parameters: [...this.getParameters(input), {
2195
- key: "DATA_ONLY",
2196
- value: true
2197
- }]
2198
- });
2199
- }
2200
- getResources(input) {
2201
- return [{
2202
- key: "FARM_ID",
2203
- value: input.farmId
2204
- }];
2205
- }
2206
- getParameters(input) {
2207
- return [
2208
- {
2209
- key: "DATE_BEGIN",
2210
- value: input.dateRange.start
2211
- },
2212
- {
2213
- key: "DATE_END",
2214
- value: input.dateRange.end
2215
- },
2216
- {
2217
- key: "CALENDAR",
2218
- value: input.calendarType
2219
- },
2220
- {
2221
- key: "ORIGIN_ID",
2222
- value: input.originId
2223
- }
2224
- ];
2225
- }
2226
- };
2227
- //#endregion
2228
- //#region src/namespaces/pig-master/reports/flushing-monitor.ts
2229
- var FlushingMonitor = class extends Report {
2230
- template = "@pig-master/flushing-monitor";
2231
- fileName = "Flushing";
2232
- async pdf(input) {
2233
- await this.requestPdf({
2234
- resources: this.getResources(input),
2235
- parameters: [...this.getParameters(input), {
2236
- key: "DATA_ONLY",
2237
- value: false
2238
- }]
2239
- });
2240
- }
2241
- async csv(input) {
2242
- await this.requestCsv({
2243
- resources: this.getResources(input),
2244
- parameters: [...this.getParameters(input), {
2245
- key: "DATA_ONLY",
2246
- value: true
2247
- }]
2248
- });
2249
- }
2250
- getResources(input) {
2251
- return [{
2252
- key: "FARM_ID",
2253
- value: input.farmId
2254
- }];
2255
- }
2256
- getParameters(input) {
2257
- return [
2258
- {
2259
- key: "DATE_BEGIN",
2260
- value: input.dateRange.start
2261
- },
2262
- {
2263
- key: "DATE_END",
2264
- value: input.dateRange.end
2265
- },
2266
- {
2267
- key: "CALENDAR",
2268
- value: input.calendarType
2269
- },
2270
- {
2271
- key: "ORIGIN_ID",
2272
- value: input.originId
2273
- }
2274
- ];
2275
- }
2276
- };
2277
- //#endregion
2278
- //#region src/namespaces/pig-master/reports/gilt-inventory.ts
2279
- var GiltInventory = class extends Report {
2280
- template = "@pig-master/gilt-inventory";
2281
- fileName = "Estoque de leitoas";
2282
- async pdf(input) {
2283
- await this.requestPdf({
2284
- resources: this.getResources(input),
2285
- parameters: [...this.getParameters(input), {
2286
- key: "DATA_ONLY",
2287
- value: false
2288
- }]
2289
- });
2290
- }
2291
- async csv(input) {
2292
- await this.requestCsv({
2293
- resources: this.getResources(input),
2294
- parameters: [...this.getParameters(input), {
2295
- key: "DATA_ONLY",
2296
- value: true
2297
- }]
2298
- });
2299
- }
2300
- getResources(input) {
2301
- return [{
2302
- key: "FARM_ID",
2303
- value: input.farmId
2304
- }];
2305
- }
2306
- getParameters(input) {
2307
- return [
2308
- {
2309
- key: "DATE_BEGIN",
2310
- value: input.dateRange.start
2311
- },
2312
- {
2313
- key: "DATE_END",
2314
- value: input.dateRange.end
2315
- },
2316
- {
2317
- key: "CALENDAR",
2318
- value: input.calendarType
2319
- },
2320
- {
2321
- key: "ORIGIN_ID",
2322
- value: input.originId
2323
- },
2324
- {
2325
- key: "BREED_ID",
2326
- value: input.breedId
2327
- },
2328
- {
2329
- key: "BIRTH_PLACE_ID",
2330
- value: input.birthPlaceId
2331
- }
2332
- ];
2333
- }
2334
- };
2335
- //#endregion
2336
- //#region src/namespaces/pig-master/reports/gta-list.ts
2337
- var GtaList = class extends Report {
2338
- template = "@pig-master/gta-list";
2339
- fileName = "Listagem de gtas";
2340
- async pdf(input) {
2341
- await this.requestPdf({
2342
- resources: this.getResources(input),
2343
- parameters: [...this.getParameters(input), {
2344
- key: "DATA_ONLY",
2345
- value: false
2346
- }]
2347
- });
2348
- }
2349
- async csv(input) {
2350
- await this.requestCsv({
2351
- resources: this.getResources(input),
2352
- parameters: [...this.getParameters(input), {
2353
- key: "DATA_ONLY",
2354
- value: true
2355
- }]
2356
- });
2357
- }
2358
- getResources(input) {
2359
- return [{
2360
- key: "FARM_ID",
2361
- value: input.farmId
2362
- }];
2363
- }
2364
- getParameters(input) {
2365
- return [{
2366
- key: "LOCATE",
2367
- value: input.language.replace("-", "_")
2368
- }, {
2369
- key: "CALENDAR",
2370
- value: input.calendarType
2371
- }];
2372
- }
2373
- };
2374
- //#endregion
2375
- //#region src/namespaces/pig-master/reports/heat-detection-collection-form.ts
2376
- var HeatDetectionCollectionForm = class extends Report {
2377
- template = "@pig-master/heat-detection-collection-form";
2378
- fileName = "Registro de cio";
2379
- async pdf(input) {
2380
- await this.requestPdf({
2381
- resources: [{
2382
- key: "FARM_ID",
2383
- value: input.farmId
2384
- }],
2385
- parameters: [{
2386
- key: "CALENDAR",
2387
- value: input.calendarType
2388
- }]
2389
- });
2390
- }
2391
- };
2392
- //#endregion
2393
- //#region src/namespaces/pig-master/reports/heat-detection-list.ts
2394
- var HeatDetectionList = class extends Report {
2395
- template = "@pig-master/heat-detection-list";
2396
- fileName = "Listagem de registros de cio";
2397
- async pdf(input) {
2398
- await this.requestPdf({
2399
- resources: this.getResources(input),
2400
- parameters: [...this.getParameters(input), {
2401
- key: "DATA_ONLY",
2402
- value: false
2403
- }]
2404
- });
2405
- }
2406
- async csv(input) {
2407
- await this.requestCsv({
2408
- resources: this.getResources(input),
2409
- parameters: [...this.getParameters(input), {
2410
- key: "DATA_ONLY",
2411
- value: true
2412
- }]
2413
- });
2414
- }
2415
- getResources(input) {
2416
- return [{
2417
- key: "FARM_ID",
2418
- value: input.farmId
2419
- }];
2420
- }
2421
- getParameters(input) {
2422
- return [
2423
- {
2424
- key: "LOCATE",
2425
- value: input.language.replace("-", "_")
2426
- },
2427
- {
2428
- key: "CALENDAR",
2429
- value: input.calendarType
2430
- },
2431
- {
2432
- key: "ORIGIN_ID",
2433
- value: input.originId
2434
- },
2435
- {
2436
- key: "ARRIVAL_DATE_BEGIN",
2437
- value: input.arrivalDateRange?.start ?? null
2438
- },
2439
- {
2440
- key: "ARRIVAL_DATE_END",
2441
- value: input.arrivalDateRange?.end ?? null
2442
- },
2443
- {
2444
- key: "DATE_BEGIN",
2445
- value: input.dateRange?.start ?? null
2446
- },
2447
- {
2448
- key: "DATE_END",
2449
- value: input.dateRange?.end ?? null
2450
- },
2451
- {
2452
- key: "FEMALE_SWINE_ID",
2453
- value: input.femaleSwineId
2454
- },
2455
- {
2456
- key: "NUMBER",
2457
- value: input.number?.toString() ?? null
2458
- },
2459
- {
2460
- key: "STIMULUS",
2461
- value: input.stimulus
2462
- },
2463
- {
2464
- key: "ORDERBYDIRECTION",
2465
- value: input.orderBy.direction
2466
- },
2467
- {
2468
- key: "ORDERBYCOLUMN",
2469
- value: input.orderBy.column
2470
- }
2471
- ];
2472
- }
2473
- };
2474
- //#endregion
2475
- //#region src/namespaces/pig-master/reports/heat-monitoring.ts
2476
- var HeatMonitoring = class extends Report {
2477
- template = "@pig-master/heat-monitoring";
2478
- fileName = "Mapa de Cio";
2479
- async pdf(input) {
2480
- await this.requestPdf({
2481
- resources: this.getResources(input),
2482
- parameters: [...this.getParameters(input), {
2483
- key: "DATA_ONLY",
2484
- value: false
2485
- }]
2486
- });
2487
- }
2488
- async csv(input) {
2489
- await this.requestCsv({
2490
- resources: this.getResources(input),
2491
- parameters: [...this.getParameters(input), {
2492
- key: "DATA_ONLY",
2493
- value: true
2494
- }]
2495
- });
2496
- }
2497
- getResources(input) {
2498
- return [{
2499
- key: "FARM_ID",
2500
- value: input.farmId
2501
- }];
2502
- }
2503
- getParameters(input) {
2504
- return [
2505
- {
2506
- key: "DATE_BEGIN",
2507
- value: input.dateRange.start
2508
- },
2509
- {
2510
- key: "DATE_END",
2511
- value: input.dateRange.end
2512
- },
2513
- {
2514
- key: "CALENDAR",
2515
- value: input.calendarType
2516
- },
2517
- {
2518
- key: "PAGE",
2519
- value: input.pagination.page
2520
- },
2521
- {
2522
- key: "PER_PAGE",
2523
- value: input.pagination.perPage
2524
- },
2525
- {
2526
- key: "ORIGIN_ID",
2527
- value: input.originId
2528
- }
2529
- ];
2530
- }
2531
- };
2532
- //#endregion
2533
- //#region src/namespaces/pig-master/reports/location-list.ts
2534
- var LocationList = class extends Report {
2535
- template = "@pig-master/location-list";
2536
- fileName = "Listagem de localizações";
2537
- async pdf(input) {
2538
- await this.requestPdf({
2539
- resources: this.getResources(input),
2540
- parameters: [...this.getParameters(input), {
2541
- key: "DATA_ONLY",
2542
- value: false
2543
- }]
2544
- });
2545
- }
2546
- async csv(input) {
2547
- await this.requestCsv({
2548
- resources: this.getResources(input),
2549
- parameters: [...this.getParameters(input), {
2550
- key: "DATA_ONLY",
2551
- value: true
2552
- }]
2553
- });
2554
- }
2555
- getResources(input) {
2556
- return [{
2557
- key: "FARM_ID",
2558
- value: input.farmId
2559
- }];
2560
- }
2561
- getParameters(input) {
2562
- return [{
2563
- key: "LOCATE",
2564
- value: input.language.replace("-", "_")
2565
- }];
2566
- }
2567
- };
2568
- //#endregion
2569
- //#region src/namespaces/pig-master/reports/maternity-piglet-death-analysis.ts
2570
- var MaternityPigletDeathAnalysis = class extends Report {
2571
- template = "@pig-master/maternity-piglet-death-analysis";
2572
- fileName = "Análise de mortes de leitões na maternidade";
2573
- async pdf(input) {
2574
- await this.requestPdf({
2575
- resources: [{
2576
- key: "FARM_ID",
2577
- value: input.farmId
2578
- }],
2579
- parameters: [
2580
- {
2581
- key: "DATE_BEGIN",
2582
- value: input.dateRange?.start ?? null
2583
- },
2584
- {
2585
- key: "DATE_END",
2586
- value: input.dateRange?.end ?? null
2587
- },
2588
- {
2589
- key: "CALENDAR",
2590
- value: input.calendarType
2591
- },
2592
- {
2593
- key: "GROUP",
2594
- value: input.groupBy
2595
- },
2596
- {
2597
- key: "FIELD",
2598
- value: input.emphasis
2599
- },
2600
- {
2601
- key: "PARITY",
2602
- value: input.parity?.toString() ?? null
2603
- },
2604
- {
2605
- key: "ORIGIN_ID",
2606
- value: input.femaleSwineOriginId
2607
- },
2608
- {
2609
- key: "BREED_ID",
2610
- value: input.femaleSwineBreedId
2611
- },
2612
- {
2613
- key: "FEMALE_SWINE_ID",
2614
- value: input.femaleSwineId
2615
- },
2616
- {
2617
- key: "EMPLOYEE_ID",
2618
- value: input.employeeId
2619
- },
2620
- {
2621
- key: "LOCATION_ID",
2622
- value: input.locationId
2623
- },
2624
- {
2625
- key: "PEN",
2626
- value: input.pen
2627
- },
2628
- {
2629
- key: "CAUSE_ID",
2630
- value: input.causeId
2631
- },
2632
- {
2633
- key: "SCORE_ID",
2634
- value: input.scoreId
2635
- },
2636
- {
2637
- key: "CONTEXT",
2638
- value: input.context
2639
- },
2640
- {
2641
- key: "INDUCTION",
2642
- value: input.farrowingInduction
2643
- },
2644
- {
2645
- key: "INTERVENTION",
2646
- value: input.farrowingIntervention
2647
- }
2648
- ]
2649
- });
2650
- }
2651
- };
2652
- //#endregion
2653
- //#region src/namespaces/pig-master/reports/maternity-piglet-death-collection-form.ts
2654
- var MaternityPigletDeathCollectionForm = class extends Report {
2655
- template = "@pig-master/maternity-piglet-death-collection-form";
2656
- fileName = "Morte de leitão na maternidade";
2657
- async pdf(input) {
2658
- await this.requestPdf({
2659
- resources: [{
2660
- key: "FARM_ID",
2661
- value: input.farmId
2662
- }],
2663
- parameters: [{
2664
- key: "CALENDAR",
2665
- value: input.calendarType
2666
- }]
2667
- });
2668
- }
2669
- };
2670
- //#endregion
2671
- //#region src/namespaces/pig-master/reports/maternity-piglet-death-list.ts
2672
- var MaternityPigletDeathList = class extends Report {
2673
- template = "@pig-master/maternity-piglet-death-list";
2674
- fileName = "Listagem de mortes de leitão";
2675
- async pdf(input) {
2676
- await this.requestPdf({
2677
- resources: this.getResources(input),
2678
- parameters: [...this.getParameters(input), {
2679
- key: "DATA_ONLY",
2680
- value: false
2681
- }]
2682
- });
2683
- }
2684
- async csv(input) {
2685
- await this.requestCsv({
2686
- resources: this.getResources(input),
2687
- parameters: [...this.getParameters(input), {
2688
- key: "DATA_ONLY",
2689
- value: true
2690
- }]
2691
- });
2692
- }
2693
- getResources(input) {
2694
- return [{
2695
- key: "FARM_ID",
2696
- value: input.farmId
2697
- }];
2698
- }
2699
- getParameters(input) {
2700
- return [
2701
- {
2702
- key: "CALENDAR",
2703
- value: input.calendarType
2704
- },
2705
- {
2706
- key: "DATE_BEGIN",
2707
- value: input.dateRange?.start ?? null
2708
- },
2709
- {
2710
- key: "DATE_END",
2711
- value: input.dateRange?.end ?? null
2712
- },
2713
- {
2714
- key: "FEMALE_SWINE_ID",
2715
- value: input.femaleSwineId
2716
- },
2717
- {
2718
- key: "PARITY",
2719
- value: input.parity?.toString() ?? null
2720
- },
2721
- {
2722
- key: "CONTEXT",
2723
- value: input.context
2724
- },
2725
- {
2726
- key: "EMPLOYEE_ID",
2727
- value: input.employeeId
2728
- },
2729
- {
2730
- key: "CAUSE_ID",
2731
- value: input.causeId
2732
- }
2733
- ];
2734
- }
2735
- };
2736
- //#endregion
2737
- //#region src/namespaces/pig-master/reports/maternity-piglet-transfer-collection-form.ts
2738
- var MaternityPigletTransferCollectionForm = class extends Report {
2739
- template = "@pig-master/maternity-piglet-transfer-collection-form";
2740
- fileName = "Transferência de leitão na maternidade";
2741
- async pdf(input) {
2742
- await this.requestPdf({
2743
- resources: [{
2744
- key: "FARM_ID",
2745
- value: input.farmId
2746
- }],
2747
- parameters: [{
2748
- key: "CALENDAR",
2749
- value: input.calendarType
2750
- }]
2751
- });
2752
- }
2753
- };
2754
- //#endregion
2755
- //#region src/namespaces/pig-master/reports/maternity-piglet-transfer-list.ts
2756
- var MaternityPigletTransferList = class extends Report {
2757
- template = "@pig-master/maternity-piglet-transfer-list";
2758
- fileName = "Listagem de transferências de leitão";
2759
- async pdf(input) {
2760
- await this.requestPdf({
2761
- resources: this.getResources(input),
2762
- parameters: [...this.getParameters(input), {
2763
- key: "DATA_ONLY",
2764
- value: false
2765
- }]
2766
- });
2767
- }
2768
- async csv(input) {
2769
- await this.requestCsv({
2770
- resources: this.getResources(input),
2771
- parameters: [...this.getParameters(input), {
2772
- key: "DATA_ONLY",
2773
- value: true
2774
- }]
2775
- });
2776
- }
2777
- getResources(input) {
2778
- return [{
2779
- key: "FARM_ID",
2780
- value: input.farmId
2781
- }];
2782
- }
2783
- getParameters(input) {
2784
- return [
2785
- {
2786
- key: "DATE_BEGIN",
2787
- value: input.dateRange?.start ?? null
2788
- },
2789
- {
2790
- key: "DATE_END",
2791
- value: input.dateRange?.end ?? null
2792
- },
2793
- {
2794
- key: "CALENDAR",
2795
- value: input.calendarType
2796
- },
2797
- {
2798
- key: "DONOR_ID",
2799
- value: input.donorId
2800
- },
2801
- {
2802
- key: "DONOR_PARITY",
2803
- value: input.donorParity?.toString() ?? null
2804
- },
2805
- {
2806
- key: "DONOR_CONTEXT",
2807
- value: input.donorContext
2808
- },
2809
- {
2810
- key: "RECIPIENT_ID",
2811
- value: input.recipientId
2812
- },
2813
- {
2814
- key: "RECIPIENT_PARITY",
2815
- value: input.recipientParity?.toString() ?? null
2816
- },
2817
- {
2818
- key: "RECIPIENT_CONTEXT",
2819
- value: input.recipientContext
2820
- }
2821
- ];
2822
- }
2823
- };
2824
- //#endregion
2825
- //#region src/namespaces/pig-master/reports/mating-analysis.ts
2826
- var MatingAnalysis = class extends Report {
2827
- template = "@pig-master/mating-analysis";
2828
- fileName = "Análise de coberturas";
2829
- async pdf(input) {
2830
- await this.requestPdf({
2831
- resources: [{
2832
- key: "FARM_ID",
2833
- value: input.farmId
2834
- }],
2835
- parameters: [
2836
- {
2837
- key: "DATE_BEGIN",
2838
- value: input.dateRange?.start ?? null
2839
- },
2840
- {
2841
- key: "DATE_END",
2842
- value: input.dateRange?.end ?? null
2843
- },
2844
- {
2845
- key: "CALENDAR",
2846
- value: input.calendarType
2847
- },
2848
- {
2849
- key: "GROUP",
2850
- value: input.groupBy
2851
- },
2852
- {
2853
- key: "FIELD",
2854
- value: input.emphasis
2855
- },
2856
- {
2857
- key: "PARITY",
2858
- value: input.parity?.toString() ?? null
2859
- },
2860
- {
2861
- key: "ORIGIN_ID",
2862
- value: input.originId
2863
- },
2864
- {
2865
- key: "BREED_ID",
2866
- value: input.breedId
2867
- },
2868
- {
2869
- key: "BIRTH_PLACE_ID",
2870
- value: input.birthPlaceId
2871
- },
2872
- {
2873
- key: "FEMALE_SWINE_ID",
2874
- value: input.femaleSwineId
2875
- },
2876
- {
2877
- key: "ARRIVAL_DATE_BEGIN",
2878
- value: input.arrivalDateRange?.start ?? null
2879
- },
2880
- {
2881
- key: "ARRIVAL_DATE_END",
2882
- value: input.arrivalDateRange?.end ?? null
2883
- },
2884
- {
2885
- key: "ARRIVAL_REPRODUCTIVE_STATUS",
2886
- value: input.arrivalReproductiveStatus
2887
- },
2888
- {
2889
- key: "MATING_CONTEXT",
2890
- value: input.matingContext
2891
- },
2892
- {
2893
- key: "METHOD",
2894
- value: input.method
2895
- },
2896
- {
2897
- key: "LOCATE",
2898
- value: input.language.replace("-", "_")
2899
- }
2900
- ]
2901
- });
2902
- }
2903
- };
2904
- //#endregion
2905
- //#region src/namespaces/pig-master/reports/mating-collection-form.ts
2906
- var MatingCollectionForm = class extends Report {
2907
- template = "@pig-master/mating-collection-form";
2908
- fileName = "Cobertura";
2909
- async pdf(input) {
2910
- await this.requestPdf({
2911
- resources: [{
2912
- key: "FARM_ID",
2913
- value: input.farmId
2914
- }],
2915
- parameters: [{
2916
- key: "CALENDAR",
2917
- value: input.calendarType
2918
- }]
2919
- });
2920
- }
2921
- };
2922
- //#endregion
2923
- //#region src/namespaces/pig-master/reports/mating-group-list.ts
2924
- var MatingGroupList = class extends Report {
2925
- template = "@pig-master/mating-group-list";
2926
- fileName = "Listagem de grupos de cobertura";
2927
- async pdf(input) {
2928
- await this.requestPdf({
2929
- resources: this.getResources(input),
2930
- parameters: [...this.getParameters(input), {
2931
- key: "DATA_ONLY",
2932
- value: false
2933
- }]
2934
- });
2935
- }
2936
- async csv(input) {
2937
- await this.requestCsv({
2938
- resources: this.getResources(input),
2939
- parameters: [...this.getParameters(input), {
2940
- key: "DATA_ONLY",
2941
- value: true
2942
- }]
2943
- });
2944
- }
2945
- getResources(input) {
2946
- return [{
2947
- key: "FARM_ID",
2948
- value: input.farmId
2949
- }];
2950
- }
2951
- getParameters(input) {
2952
- return [{
2953
- key: "LOCATE",
2954
- value: input.language.replace("-", "_")
2955
- }];
2956
- }
2957
- };
2958
- //#endregion
2959
- //#region src/namespaces/pig-master/reports/mating-list.ts
2960
- var MatingList = class extends Report {
2961
- template = "@pig-master/mating-list";
2962
- fileName = "Listagem de coberturas";
2963
- async pdf(input) {
2964
- await this.requestPdf({
2965
- resources: this.getResources(input),
2966
- parameters: [...this.getParameters(input), {
2967
- key: "DATA_ONLY",
2968
- value: false
2969
- }]
2970
- });
2971
- }
2972
- async csv(input) {
2973
- await this.requestCsv({
2974
- resources: this.getResources(input),
2975
- parameters: [...this.getParameters(input), {
2976
- key: "DATA_ONLY",
2977
- value: true
2978
- }]
2979
- });
2980
- }
2981
- getResources(input) {
2982
- return [{
2983
- key: "FARM_ID",
2984
- value: input.farmId
2985
- }];
2986
- }
2987
- getParameters(input) {
2988
- return [
2989
- {
2990
- key: "DATE_BEGIN",
2991
- value: input.dateRange?.start ?? null
2992
- },
2993
- {
2994
- key: "DATE_END",
2995
- value: input.dateRange?.end ?? null
2996
- },
2997
- {
2998
- key: "CALENDAR",
2999
- value: input.calendarType
3000
- },
3001
- {
3002
- key: "MANAGEMENT_CYCLE",
3003
- value: input.managementCycle
3004
- },
3005
- {
3006
- key: "PARITY",
3007
- value: input.parity?.toString() ?? null
3008
- },
3009
- {
3010
- key: "ORIGIN_ID",
3011
- value: input.originId
3012
- },
3013
- {
3014
- key: "BREED_ID",
3015
- value: input.breedId
3016
- },
3017
- {
3018
- key: "BIRTH_PLACE_ID",
3019
- value: input.birthPlaceId
3020
- },
3021
- {
3022
- key: "FEMALE_SWINE_ID",
3023
- value: input.femaleSwineId
3024
- },
3025
- {
3026
- key: "ARRIVAL_DATE_BEGIN",
3027
- value: input.arrivalDateRange?.start ?? null
3028
- },
3029
- {
3030
- key: "ARRIVAL_DATE_END",
3031
- value: input.arrivalDateRange?.end ?? null
3032
- },
3033
- {
3034
- key: "ARRIVAL_REPRODUCTIVE_STATUS",
3035
- value: input.arrivalReproductiveStatus
3036
- },
3037
- {
3038
- key: "MATING_CONTEXT",
3039
- value: input.matingContext
3040
- },
3041
- {
3042
- key: "ORDER_BY_COLUMN",
3043
- value: input.orderBy.column
3044
- },
3045
- {
3046
- key: "ORDER_BY_DIRECTION",
3047
- value: input.orderBy.direction
3048
- },
3049
- {
3050
- key: "METHOD",
3051
- value: input.method
3052
- },
3053
- {
3054
- key: "LOCATE",
3055
- value: input.language.replace("-", "_")
3056
- }
3057
- ];
3058
- }
3059
- };
3060
- //#endregion
3061
- //#region src/namespaces/pig-master/reports/mating-overview.ts
3062
- var MatingOverview = class extends Report {
3063
- template = "@pig-master/mating-overview";
3064
- fileName = "Performance de coberturas";
3065
- async pdf(input) {
3066
- await this.requestPdf({
3067
- resources: this.getResources(input),
3068
- parameters: [...this.getParameters(input), {
3069
- key: "DATA_ONLY",
3070
- value: false
3071
- }]
3072
- });
3073
- }
3074
- async csv(input) {
3075
- await this.requestCsv({
3076
- resources: this.getResources(input),
3077
- parameters: [...this.getParameters(input), {
3078
- key: "DATA_ONLY",
3079
- value: true
3080
- }]
3081
- });
3082
- }
3083
- getResources(input) {
3084
- return [{
3085
- key: "FARM_ID",
3086
- value: input.farmId
3087
- }];
3088
- }
3089
- getParameters(input) {
3090
- return [
3091
- {
3092
- key: "DATE_BEGIN",
3093
- value: input.dateRange.start
3094
- },
3095
- {
3096
- key: "DATE_END",
3097
- value: input.dateRange.end
3098
- },
3099
- {
3100
- key: "CALENDAR",
3101
- value: input.calendarType
3102
- },
3103
- {
3104
- key: "ORIGIN_ID",
3105
- value: input.originId
3106
- },
3107
- {
3108
- key: "BREED_ID",
3109
- value: input.breedId
3110
- },
3111
- {
3112
- key: "BIRTH_PLACE_ID",
3113
- value: input.birthPlaceId
3114
- }
3115
- ];
3116
- }
3117
- };
3118
- //#endregion
3119
- //#region src/namespaces/pig-master/reports/mbrf-female-swine-record.ts
3120
- var MbrfFemaleSwineRecord = class extends Report {
3121
- template = "@pig-master/mbrf-female-swine-record";
3122
- fileName = "Ficha fim";
3123
- async pdf(input) {
3124
- await this.requestPdf({
3125
- resources: [{
3126
- key: "FARM_ID",
3127
- value: input.farmId
3128
- }],
3129
- parameters: [{
3130
- key: "FEMALE_SWINE_ID",
3131
- value: input.femaleSwineId
3132
- }, {
3133
- key: "CALENDAR",
3134
- value: input.calendarType
3135
- }]
3136
- });
3137
- }
3138
- };
3139
- //#endregion
3140
- //#region src/namespaces/pig-master/reports/nursery-piglet-death-collection-form.ts
3141
- var NurseryPigletDeathCollectionForm = class extends Report {
3142
- template = "@pig-master/nursery-piglet-death-collection-form";
3143
- fileName = "Morte de leitão na creche";
3144
- async pdf(input) {
3145
- await this.requestPdf({
3146
- resources: [{
3147
- key: "FARM_ID",
3148
- value: input.farmId
3149
- }],
3150
- parameters: [{
3151
- key: "CALENDAR",
3152
- value: input.calendarType
3153
- }]
3154
- });
3155
- }
3156
- };
3157
- //#endregion
3158
- //#region src/namespaces/pig-master/reports/origin-list.ts
3159
- var OriginList = class extends Report {
3160
- template = "@pig-master/origin-list";
3161
- fileName = "Listagem de origens";
3162
- async pdf(input) {
3163
- await this.requestPdf({
3164
- resources: this.getResources(input),
3165
- parameters: [...this.getParameters(input), {
3166
- key: "DATA_ONLY",
3167
- value: false
3168
- }]
3169
- });
3170
- }
3171
- async csv(input) {
3172
- await this.requestCsv({
3173
- resources: this.getResources(input),
3174
- parameters: [...this.getParameters(input), {
3175
- key: "DATA_ONLY",
3176
- value: true
3177
- }]
3178
- });
3179
- }
3180
- getResources(input) {
3181
- return [{
3182
- key: "FARM_ID",
3183
- value: input.farmId
3184
- }];
3185
- }
3186
- getParameters(input) {
3187
- return [{
3188
- key: "LOCATE",
3189
- value: input.language.replace("-", "_")
3190
- }];
3191
- }
3192
- };
3193
- //#endregion
3194
- //#region src/namespaces/pig-master/reports/parity-structure.ts
3195
- var ParityStructure = class extends Report {
3196
- template = "@pig-master/parity-structure";
3197
- fileName = "Estrutura etária";
3198
- async pdf(input) {
3199
- await this.requestPdf({
3200
- resources: [{
3201
- key: "FARM_ID",
3202
- value: input.farmId
3203
- }],
3204
- parameters: [
3205
- {
3206
- key: "LOCATE",
3207
- value: input.language.replace("-", "_")
3208
- },
3209
- {
3210
- key: "BREED_ID",
3211
- value: input.breedId
3212
- },
3213
- {
3214
- key: "BIRTH_PLACE_ID",
3215
- value: input.birthPlaceId
3216
- },
3217
- {
3218
- key: "ORIGIN_ID",
3219
- value: input.originId
3220
- },
3221
- {
3222
- key: "STATUS",
3223
- value: input.status
3224
- }
3225
- ]
3226
- });
3227
- }
3228
- };
3229
- //#endregion
3230
- //#region src/namespaces/pig-master/reports/pre-flushing-female-swine-list.ts
3231
- var PreFlushingFemaleSwineList = class extends Report {
3232
- template = "@pig-master/pre-flushing-female-swine-list";
3233
- fileName = "Fêmeas pré-flushing";
3234
- async pdf(input) {
3235
- await this.requestPdf({
3236
- resources: this.getResources(input),
3237
- parameters: [...this.getParameters(input), {
3238
- key: "DATA_ONLY",
3239
- value: false
3240
- }]
3241
- });
3242
- }
3243
- async csv(input) {
3244
- await this.requestCsv({
3245
- resources: this.getResources(input),
3246
- parameters: [...this.getParameters(input), {
3247
- key: "DATA_ONLY",
3248
- value: true
3249
- }]
3250
- });
3251
- }
3252
- getResources(input) {
3253
- return [{
3254
- key: "FARM_ID",
3255
- value: input.farmId
3256
- }];
3257
- }
3258
- getParameters(input) {
3259
- return [
3260
- {
3261
- key: "DATE_BEGIN",
3262
- value: input.dateRange.start
3263
- },
3264
- {
3265
- key: "DATE_END",
3266
- value: input.dateRange.end
3267
- },
3268
- {
3269
- key: "CALENDAR",
3270
- value: input.calendarType
3271
- },
3272
- {
3273
- key: "ORIGIN_ID",
3274
- value: input.originId
3275
- }
3276
- ];
3277
- }
3278
- };
3279
- //#endregion
3280
- //#region src/namespaces/pig-master/reports/pregnant-female-swine-list.ts
3281
- var PregnantFemaleSwineList = class extends Report {
3282
- template = "@pig-master/pregnant-female-swine-list";
3283
- fileName = "Fêmeas gestantes";
3284
- async pdf(input) {
3285
- await this.requestPdf({
3286
- resources: this.getResources(input),
3287
- parameters: [{
3288
- key: "DATA_ONLY",
3289
- value: false
3290
- }, ...this.getParameters(input)]
3291
- });
3292
- }
3293
- async csv(input) {
3294
- await this.requestCsv({
3295
- resources: this.getResources(input),
3296
- parameters: [{
3297
- key: "DATA_ONLY",
3298
- value: true
3299
- }, ...this.getParameters(input)]
3300
- });
3301
- }
3302
- getResources(input) {
3303
- return [{
3304
- key: "FARM_ID",
3305
- value: input.farmId
3306
- }];
3307
- }
3308
- getParameters(input) {
3309
- return [
3310
- {
3311
- key: "CALENDAR",
3312
- value: input.calendarType
3313
- },
3314
- {
3315
- key: "MATING_DATE_BEGIN",
3316
- value: input.matingDateRange.start
3317
- },
3318
- {
3319
- key: "MATING_DATE_END",
3320
- value: input.matingDateRange.end
3321
- },
3322
- {
3323
- key: "GESTATION_WEEK",
3324
- value: input.gestationWeek.toString()
3325
- }
3326
- ];
3327
- }
3328
- };
3329
- //#endregion
3330
- //#region src/namespaces/pig-master/reports/pregnant-female-swine-sale-list.ts
3331
- var PregnantFemaleSwineSaleList = class extends Report {
3332
- template = "@pig-master/pregnant-female-swine-sale-list";
3333
- fileName = "Listagem de vendas de gestantes";
3334
- async pdf(input) {
3335
- await this.requestPdf({
3336
- resources: this.getResources(input),
3337
- parameters: [...this.getParameters(input), {
3338
- key: "DATA_ONLY",
3339
- value: false
3340
- }]
3341
- });
3342
- }
3343
- async csv(input) {
3344
- await this.requestCsv({
3345
- resources: this.getResources(input),
3346
- parameters: [...this.getParameters(input), {
3347
- key: "DATA_ONLY",
3348
- value: true
3349
- }]
3350
- });
3351
- }
3352
- getResources(input) {
3353
- return [{
3354
- key: "FARM_ID",
3355
- value: input.farmId
3356
- }];
3357
- }
3358
- getParameters(input) {
3359
- return [
3360
- {
3361
- key: "CALENDAR",
3362
- value: input.calendarType
3363
- },
3364
- {
3365
- key: "LOCATE",
3366
- value: input.language.replace("-", "_")
3367
- },
3368
- {
3369
- key: "DATE_BEGIN",
3370
- value: input.dateRange?.start ?? null
3371
- },
3372
- {
3373
- key: "DATE_END",
3374
- value: input.dateRange?.end ?? null
3375
- },
3376
- {
3377
- key: "MATING_DATE_BEGIN",
3378
- value: input.matingDateRange?.start ?? null
3379
- },
3380
- {
3381
- key: "MATING_DATE_END",
3382
- value: input.matingDateRange?.end ?? null
3383
- },
3384
- {
3385
- key: "RECIPIENT_ID",
3386
- value: input.recipientId
3387
- },
3388
- {
3389
- key: "ARRIVAL_DATE_BEGIN",
3390
- value: input.arrivalDateRange?.start ?? null
3391
- },
3392
- {
3393
- key: "ARRIVAL_DATE_END",
3394
- value: input.arrivalDateRange?.end ?? null
3395
- },
3396
- {
3397
- key: "ORDERBYCOLUMN",
3398
- value: input.orderBy.column
3399
- },
3400
- {
3401
- key: "ORDERBYDIRECTION",
3402
- value: input.orderBy.direction
3403
- },
3404
- {
3405
- key: "DUE_DATE_BEGIN",
3406
- value: input.dueDateRange?.start ?? null
3407
- },
3408
- {
3409
- key: "DUE_DATE_END",
3410
- value: input.dueDateRange?.end ?? null
3411
- },
3412
- {
3413
- key: "ORIGIN_ID",
3414
- value: input.originId
3415
- },
3416
- {
3417
- key: "BREED_ID",
3418
- value: input.breedId
3419
- },
3420
- {
3421
- key: "BIRTH_PLACE_ID",
3422
- value: input.birthPlaceId
3423
- },
3424
- {
3425
- key: "P_WEEKDAY",
3426
- value: input.yearPeriod.weekday
3427
- },
3428
- {
3429
- key: "P_WEEK",
3430
- value: input.yearPeriod.week
3431
- }
3432
- ];
3433
- }
3434
- };
3435
- //#endregion
3436
- //#region src/namespaces/pig-master/reports/reproductive-failure-analysis.ts
3437
- var ReproductiveFailureAnalysis = class extends Report {
3438
- template = "@pig-master/reproductive-failure-analysis";
3439
- fileName = "Análise de perdas de cobertura";
3440
- async pdf(input) {
3441
- await this.requestPdf({
3442
- resources: [{
3443
- key: "FARM_ID",
3444
- value: input.farmId
3445
- }],
3446
- parameters: [
3447
- {
3448
- key: "GROUP",
3449
- value: input.groupBy
3450
- },
3451
- {
3452
- key: "FIELD",
3453
- value: input.emphasis
3454
- },
3455
- {
3456
- key: "CALENDAR",
3457
- value: input.calendarType
3458
- },
3459
- {
3460
- key: "DATE_BEGIN",
3461
- value: input.dateRange?.start ?? null
3462
- },
3463
- {
3464
- key: "DATE_END",
3465
- value: input.dateRange?.end ?? null
3466
- },
3467
- {
3468
- key: "MATING_DATE_BEGIN",
3469
- value: input.matingDateRange?.start ?? null
3470
- },
3471
- {
3472
- key: "MATING_DATE_END",
3473
- value: input.matingDateRange?.end ?? null
3474
- },
3475
- {
3476
- key: "FEMALE_SWINE_ID",
3477
- value: input.femaleSwineId
3478
- },
3479
- {
3480
- key: "PARITY",
3481
- value: input.parity?.toString() ?? null
3482
- },
3483
- {
3484
- key: "CONTEXT",
3485
- value: input.context
3486
- },
3487
- {
3488
- key: "BREED_ID",
3489
- value: input.breedId
3490
- },
3491
- {
3492
- key: "BIRTH_PLACE_ID",
3493
- value: input.birthPlaceId
3494
- },
3495
- {
3496
- key: "ORIGIN_ID",
3497
- value: input.originId
3498
- },
3499
- {
3500
- key: "LOCATE",
3501
- value: input.language.replace("-", "_")
3502
- }
3503
- ]
3504
- });
3505
- }
3506
- };
3507
- //#endregion
3508
- //#region src/namespaces/pig-master/reports/reproductive-failure-collection-form.ts
3509
- var ReproductiveFailureCollectionForm = class extends Report {
3510
- template = "@pig-master/reproductive-failure-collection-form";
3511
- fileName = "Perda de cobertura";
3512
- async pdf(input) {
3513
- await this.requestPdf({
3514
- resources: [{
3515
- key: "FARM_ID",
3516
- value: input.farmId
3517
- }],
3518
- parameters: [{
3519
- key: "CALENDAR",
3520
- value: input.calendarType
3521
- }]
3522
- });
3523
- }
3524
- };
3525
- //#endregion
3526
- //#region src/namespaces/pig-master/reports/reproductive-failure-list.ts
3527
- var ReproductiveFailureList = class extends Report {
3528
- template = "@pig-master/reproductive-failure-list";
3529
- fileName = "Perdas de cobertura";
3530
- async pdf(input) {
3531
- await this.requestPdf({
3532
- resources: this.getResources(input),
3533
- parameters: [...this.getParameters(input), {
3534
- key: "DATA_ONLY",
3535
- value: false
3536
- }]
3537
- });
3538
- }
3539
- async csv(input) {
3540
- await this.requestCsv({
3541
- resources: this.getResources(input),
3542
- parameters: [...this.getParameters(input), {
3543
- key: "DATA_ONLY",
3544
- value: true
3545
- }]
3546
- });
3547
- }
3548
- getResources(input) {
3549
- return [{
3550
- key: "FARM_ID",
3551
- value: input.farmId
3552
- }];
3553
- }
3554
- getParameters(input) {
3555
- return [
3556
- {
3557
- key: "DATE_BEGIN",
3558
- value: input.dateRange?.start ?? null
3559
- },
3560
- {
3561
- key: "DATE_END",
3562
- value: input.dateRange?.end ?? null
3563
- },
3564
- {
3565
- key: "CALENDAR",
3566
- value: input.calendarType
3567
- },
3568
- {
3569
- key: "PARITY",
3570
- value: input.parity?.toString() ?? null
3571
- },
3572
- {
3573
- key: "ORIGIN_ID",
3574
- value: input.originId
3575
- },
3576
- {
3577
- key: "BREED_ID",
3578
- value: input.breedId
3579
- },
3580
- {
3581
- key: "BIRTH_PLACE_ID",
3582
- value: input.birthPlaceId
3583
- },
3584
- {
3585
- key: "FEMALE_SWINE_ID",
3586
- value: input.femaleSwineId
3587
- },
3588
- {
3589
- key: "MATING_DATE_BEGIN",
3590
- value: input.matingDateRange?.start ?? null
3591
- },
3592
- {
3593
- key: "MATING_DATE_END",
3594
- value: input.matingDateRange?.end ?? null
3595
- },
3596
- {
3597
- key: "CONTEXT",
3598
- value: input.context
3599
- },
3600
- {
3601
- key: "ORDERBYCOLUMN",
3602
- value: input.orderBy.column
3603
- },
3604
- {
3605
- key: "ORDERBYDIRECTION",
3606
- value: input.orderBy.direction
3607
- }
3608
- ];
3609
- }
3610
- };
3611
- //#endregion
3612
- //#region src/namespaces/pig-master/reports/retention-rate.ts
3613
- var RetentionRate = class extends Report {
3614
- template = "@pig-master/retention-rate";
3615
- fileName = "Taxa de retenção";
3616
- async pdf(input) {
3617
- await this.requestPdf({
3618
- resources: [{
3619
- key: "FARM_ID",
3620
- value: input.farmId
3621
- }],
3622
- parameters: [
3623
- {
3624
- key: "CALENDAR",
3625
- value: input.calendarType
3626
- },
3627
- {
3628
- key: "DATE_BEGIN",
3629
- value: input.dateRange.start
3630
- },
3631
- {
3632
- key: "DATE_END",
3633
- value: input.dateRange.end
3634
- }
3635
- ]
3636
- });
3637
- }
3638
- };
3639
- //#endregion
3640
- //#region src/namespaces/pig-master/reports/score-list.ts
3641
- var ScoreList = class extends Report {
3642
- template = "@pig-master/score-list";
3643
- fileName = "Listagem de escores";
3644
- async pdf(input) {
3645
- await this.requestPdf({
3646
- resources: this.getResources(input),
3647
- parameters: [...this.getParameters(input), {
3648
- key: "DATA_ONLY",
3649
- value: false
3650
- }]
3651
- });
3652
- }
3653
- async csv(input) {
3654
- await this.requestCsv({
3655
- resources: this.getResources(input),
3656
- parameters: [...this.getParameters(input), {
3657
- key: "DATA_ONLY",
3658
- value: true
3659
- }]
3660
- });
3661
- }
3662
- getResources(input) {
3663
- return [{
3664
- key: "FARM_ID",
3665
- value: input.farmId
3666
- }];
3667
- }
3668
- getParameters(input) {
3669
- return [{
3670
- key: "LOCATE",
3671
- value: input.language.replace("-", "_")
3672
- }];
3673
- }
3674
- };
3675
- //#endregion
3676
- //#region src/namespaces/pig-master/reports/weaning-analysis.ts
3677
- var WeaningAnalysis = class extends Report {
3678
- template = "@pig-master/weaning-analysis";
3679
- fileName = "Análise de desmames";
3680
- async pdf(input) {
3681
- await this.requestPdf({
3682
- resources: [{
3683
- key: "FARM_ID",
3684
- value: input.farmId
3685
- }],
3686
- parameters: [
3687
- {
3688
- key: "DATE_BEGIN",
3689
- value: input.dateRange?.start ?? null
3690
- },
3691
- {
3692
- key: "DATE_END",
3693
- value: input.dateRange?.end ?? null
3694
- },
3695
- {
3696
- key: "CALENDAR",
3697
- value: input.calendarType
3698
- },
3699
- {
3700
- key: "GROUP",
3701
- value: input.groupBy
3702
- },
3703
- {
3704
- key: "FIELD",
3705
- value: input.emphasis
3706
- },
3707
- {
3708
- key: "PARITY",
3709
- value: input.parity?.toString() ?? null
3710
- },
3711
- {
3712
- key: "ORIGIN_ID",
3713
- value: input.originId
3714
- },
3715
- {
3716
- key: "BREED_ID",
3717
- value: input.breedId
3718
- },
3719
- {
3720
- key: "BIRTH_PLACE_ID",
3721
- value: input.birthPlaceId
3722
- },
3723
- {
3724
- key: "FEMALE_SWINE_ID",
3725
- value: input.femaleSwineId
3726
- },
3727
- {
3728
- key: "MATING_DATE_BEGIN",
3729
- value: input.matingDateRange?.start ?? null
3730
- },
3731
- {
3732
- key: "MATING_DATE_END",
3733
- value: input.matingDateRange?.end ?? null
3734
- },
3735
- {
3736
- key: "CONTEXT",
3737
- value: input.context
3738
- },
3739
- {
3740
- key: "PIGLET_BATCH_ID",
3741
- value: input.nurseryPigletBatchId
3742
- }
3743
- ]
3744
- });
3745
- }
3746
- };
3747
- //#endregion
3748
- //#region src/namespaces/pig-master/reports/weaning-collection-form.ts
3749
- var WeaningCollectionForm = class extends Report {
3750
- template = "@pig-master/weaning-collection-form";
3751
- fileName = "Desmame";
3752
- async pdf(input) {
3753
- await this.requestPdf({
3754
- resources: [{
3755
- key: "FARM_ID",
3756
- value: input.farmId
3757
- }],
3758
- parameters: [{
3759
- key: "CALENDAR",
3760
- value: input.calendarType
3761
- }]
3762
- });
3763
- }
3764
- };
3765
- //#endregion
3766
- //#region src/namespaces/pig-master/reports/weaning-forecast.ts
3767
- var WeaningForecast = class extends Report {
3768
- template = "@pig-master/weaning-forecast";
3769
- fileName = "Previsão de desmames";
3770
- async pdf(input) {
3771
- await this.requestPdf({
3772
- resources: this.getResources(input),
3773
- parameters: [...this.getParameters(input), {
3774
- key: "DATA_ONLY",
3775
- value: false
3776
- }]
3777
- });
3778
- }
3779
- async csv(input) {
3780
- await this.requestCsv({
3781
- resources: this.getResources(input),
3782
- parameters: [...this.getParameters(input), {
3783
- key: "DATA_ONLY",
3784
- value: true
3785
- }]
3786
- });
3787
- }
3788
- getResources(input) {
3789
- return [{
3790
- key: "FARM_ID",
3791
- value: input.farmId
3792
- }];
3793
- }
3794
- getParameters(input) {
3795
- return [
3796
- {
3797
- key: "WEANING_DATE",
3798
- value: input.weaningDate
3799
- },
3800
- {
3801
- key: "CALENDAR",
3802
- value: input.calendarType
3803
- },
3804
- {
3805
- key: "PARITY",
3806
- value: input.parity?.toString() ?? null
3807
- },
3808
- {
3809
- key: "LOCATION_ID",
3810
- value: input.locationId
3811
- },
3812
- {
3813
- key: "PEN",
3814
- value: input.pen
3815
- },
3816
- {
3817
- key: "MIN_LACTATION_DAYS",
3818
- value: input.lactationLengthRange?.start.toString() ?? null
3819
- },
3820
- {
3821
- key: "MAX_LACTATION_DAYS",
3822
- value: input.lactationLengthRange?.end.toString() ?? null
3823
- },
3824
- {
3825
- key: "CONTEXT",
3826
- value: input.context
3827
- },
3828
- {
3829
- key: "ORDERBYDIRECTION",
3830
- value: input.orderBy.direction
3831
- },
3832
- {
3833
- key: "ORDERBYCOLUMN",
3834
- value: toSnakeCase(input.orderBy.column)
3835
- }
3836
- ];
3837
- }
3838
- };
3839
- //#endregion
3840
- //#region src/namespaces/pig-master/reports/weaning-list.ts
3841
- var WeaningList = class extends Report {
3842
- template = "@pig-master/weaning-list";
3843
- fileName = "Listagem de desmames";
3844
- async pdf(input) {
3845
- await this.requestPdf({
3846
- resources: this.getResources(input),
3847
- parameters: [...this.getParameters(input), {
3848
- key: "DATA_ONLY",
3849
- value: false
3850
- }]
3851
- });
3852
- }
3853
- async csv(input) {
3854
- await this.requestCsv({
3855
- resources: this.getResources(input),
3856
- parameters: [...this.getParameters(input), {
3857
- key: "DATA_ONLY",
3858
- value: true
3859
- }]
3860
- });
3861
- }
3862
- getResources(input) {
3863
- return [{
3864
- key: "FARM_ID",
3865
- value: input.farmId
3866
- }];
3867
- }
3868
- getParameters(input) {
3869
- let orderByColumn = input.orderBy.column;
3870
- switch (orderByColumn) {
3871
- case "createdAt":
3872
- orderByColumn = "created_at";
3873
- break;
3874
- case "weanedPiglets": orderByColumn = "weaned_piglets";
3875
- }
3876
- return [
3877
- {
3878
- key: "DATE_BEGIN",
3879
- value: input.dateRange?.start ?? null
3880
- },
3881
- {
3882
- key: "DATE_END",
3883
- value: input.dateRange?.end ?? null
3884
- },
3885
- {
3886
- key: "CALENDAR",
3887
- value: input.calendarType
3888
- },
3889
- {
3890
- key: "PARITY",
3891
- value: input.parity?.toString() ?? null
3892
- },
3893
- {
3894
- key: "ORIGIN_ID",
3895
- value: input.originId
3896
- },
3897
- {
3898
- key: "BREED_ID",
3899
- value: input.breedId
3900
- },
3901
- {
3902
- key: "BIRTH_PLACE_ID",
3903
- value: input.birthPlaceId
3904
- },
3905
- {
3906
- key: "FEMALE_SWINE_ID",
3907
- value: input.femaleSwineId
3908
- },
3909
- {
3910
- key: "MATING_DATE_BEGIN",
3911
- value: input.matingDateRange?.start ?? null
3912
- },
3913
- {
3914
- key: "MATING_DATE_END",
3915
- value: input.matingDateRange?.end ?? null
3916
- },
3917
- {
3918
- key: "CONTEXT",
3919
- value: input.context
3920
- },
3921
- {
3922
- key: "PIGLET_BATCH_ID",
3923
- value: input.nurseryPigletBatchId
3924
- },
3925
- {
3926
- key: "ORDERBYDIRECTION",
3927
- value: input.orderBy.direction
3928
- },
3929
- {
3930
- key: "ORDERBYCOLUMN",
3931
- value: orderByColumn
3932
- }
3933
- ];
3934
- }
3935
- };
3936
- //#endregion
3937
- //#region src/namespaces/pig-master/reports/weaning-overview.ts
3938
- var WeaningOverview = class extends Report {
3939
- template = "@pig-master/weaning-overview";
3940
- fileName = "Performance de desmames";
3941
- async pdf(input) {
3942
- await this.requestPdf({
3943
- resources: this.getResources(input),
3944
- parameters: [...this.getParameters(input), {
3945
- key: "DATA_ONLY",
3946
- value: false
3947
- }]
3948
- });
3949
- }
3950
- async csv(input) {
3951
- await this.requestCsv({
3952
- resources: this.getResources(input),
3953
- parameters: [...this.getParameters(input), {
3954
- key: "DATA_ONLY",
3955
- value: true
3956
- }]
3957
- });
3958
- }
3959
- getResources(input) {
3960
- return [{
3961
- key: "FARM_ID",
3962
- value: input.farmId
3963
- }];
3964
- }
3965
- getParameters(input) {
3966
- return [
3967
- {
3968
- key: "DATE_BEGIN",
3969
- value: input.dateRange.start
3970
- },
3971
- {
3972
- key: "DATE_END",
3973
- value: input.dateRange.end
3974
- },
3975
- {
3976
- key: "CALENDAR",
3977
- value: input.calendarType
3978
- },
3979
- {
3980
- key: "ORIGIN_ID",
3981
- value: input.originId
3982
- },
3983
- {
3984
- key: "BREED_ID",
3985
- value: input.breedId
3986
- },
3987
- {
3988
- key: "BIRTH_PLACE_ID",
3989
- value: input.birthPlaceId
3990
- }
3991
- ];
3992
- }
3993
- };
3994
- //#endregion
3995
- //#region src/namespaces/pig-master/index.ts
3996
- var PigMaster = class {
3997
- birthPlaceList;
3998
- boarByBreedList;
3999
- boarDeathCollectionForm;
4000
- boarDeathList;
4001
- boarDiscardCollectionForm;
4002
- boarDiscardList;
4003
- boarEarTagReplacementList;
4004
- boarsInventory;
4005
- boarTreatmentCollectionForm;
4006
- boarTreatmentList;
4007
- breedingMonitor;
4008
- breedList;
4009
- causeList;
4010
- drugList;
4011
- employeeList;
4012
- farmSummary;
4013
- farrowingAnalysis;
4014
- farrowingCollectionForm;
4015
- farrowingTypeList;
4016
- femaleSwineArrivalMonitoring;
4017
- femaleSwineByBreedList;
4018
- femaleSwineByParityList;
4019
- femaleSwineByStatusList;
4020
- femaleSwineByTraceabilityList;
4021
- femaleSwineDeathAnalysis;
4022
- femaleSwineDeathCollectionForm;
4023
- femaleSwineDeathList;
4024
- femaleSwineDiscardAnalysis;
4025
- femaleSwineDiscardCollectionForm;
4026
- femaleSwineDiscardList;
4027
- femaleSwineEarTagReplacementList;
4028
- femaleSwineInventory;
4029
- femaleSwinePendingActionList;
4030
- femaleSwinePreDiscardList;
4031
- femaleSwineRecord;
4032
- femaleSwineSalePlanningList;
4033
- femaleSwineTreatmentCollectionForm;
4034
- femaleSwineTreatmentList;
4035
- finishingPigletDeathCollectionForm;
4036
- flushingFemaleSwineList;
4037
- flushingMonitor;
4038
- giltInventory;
4039
- gtaList;
4040
- heatDetectionCollectionForm;
4041
- heatDetectionList;
4042
- heatMonitoring;
4043
- locationList;
4044
- maternityPigletDeathCollectionForm;
4045
- maternityPigletTransferCollectionForm;
4046
- matingAnalysis;
4047
- matingCollectionForm;
4048
- matingGroupList;
4049
- matingList;
4050
- matingOverview;
4051
- mbrfFemaleSwineRecord;
4052
- nurseryPigletDeathCollectionForm;
4053
- originList;
4054
- parityStructure;
4055
- preFlushingFemaleSwineList;
4056
- pregnantFemaleSwineList;
4057
- pregnantFemaleSwineSaleList;
4058
- reproductiveFailureAnalysis;
4059
- reproductiveFailureCollectionForm;
4060
- reproductiveFailureList;
4061
- retentionRate;
4062
- scoreList;
4063
- weaningAnalysis;
4064
- weaningCollectionForm;
4065
- maternityPigletDeathList;
4066
- weaningList;
4067
- farrowingList;
4068
- farrowingRate;
4069
- maternityPigletTransferList;
4070
- weaningForecast;
4071
- farrowingForecast;
4072
- breedingProjection;
4073
- maternityPigletDeathAnalysis;
4074
- weaningOverview;
4075
- constructor(http) {
4076
- this.birthPlaceList = new BirthPlaceList(http);
4077
- this.boarByBreedList = new BoarByBreedList(http);
4078
- this.boarDeathCollectionForm = new BoarDeathCollectionForm(http);
4079
- this.boarDeathList = new BoarDeathList(http);
4080
- this.boarDiscardCollectionForm = new BoarDiscardCollectionForm(http);
4081
- this.boarDiscardList = new BoarDiscardList(http);
4082
- this.boarEarTagReplacementList = new BoarEarTagReplacementList(http);
4083
- this.boarsInventory = new BoarsInventory(http);
4084
- this.boarTreatmentCollectionForm = new BoarTreatmentCollectionForm(http);
4085
- this.boarTreatmentList = new BoarTreatmentList(http);
4086
- this.breedingMonitor = new BreedingMonitor(http);
4087
- this.breedList = new BreedList(http);
4088
- this.causeList = new CauseList(http);
4089
- this.drugList = new DrugList(http);
4090
- this.employeeList = new EmployeeList(http);
4091
- this.farmSummary = new FarmSummary(http);
4092
- this.farrowingAnalysis = new FarrowingAnalysis(http);
4093
- this.farrowingCollectionForm = new FarrowingCollectionForm(http);
4094
- this.farrowingTypeList = new FarrowingTypeList(http);
4095
- this.femaleSwineArrivalMonitoring = new FemaleSwineArrivalMonitoring(http);
4096
- this.femaleSwineByBreedList = new FemaleSwineByBreedList(http);
4097
- this.femaleSwineByParityList = new FemaleSwineByParityList(http);
4098
- this.femaleSwineByStatusList = new FemaleSwineByStatusList(http);
4099
- this.femaleSwineByTraceabilityList = new FemaleSwineByTraceabilityList(http);
4100
- this.femaleSwineDeathAnalysis = new FemaleSwineDeathAnalysis(http);
4101
- this.femaleSwineDeathCollectionForm = new FemaleSwineDeathCollectionForm(http);
4102
- this.femaleSwineDeathList = new FemaleSwineDeathList(http);
4103
- this.femaleSwineDiscardAnalysis = new FemaleSwineDiscardAnalysis(http);
4104
- this.femaleSwineDiscardCollectionForm = new FemaleSwineDiscardCollectionForm(http);
4105
- this.femaleSwineDiscardList = new FemaleSwineDiscardList(http);
4106
- this.femaleSwineEarTagReplacementList = new FemaleSwineEarTagReplacementList(http);
4107
- this.femaleSwineInventory = new FemaleSwineInventory(http);
4108
- this.femaleSwinePendingActionList = new FemaleSwinePendingActionList(http);
4109
- this.femaleSwinePreDiscardList = new FemaleSwinePreDiscardList(http);
4110
- this.femaleSwineRecord = new FemaleSwineRecord(http);
4111
- this.femaleSwineSalePlanningList = new FemaleSwineSalePlanningList(http);
4112
- this.femaleSwineTreatmentCollectionForm = new FemaleSwineTreatmentCollectionForm(http);
4113
- this.femaleSwineTreatmentList = new FemaleSwineTreatmentList(http);
4114
- this.finishingPigletDeathCollectionForm = new FinishingPigletDeathCollectionForm(http);
4115
- this.flushingFemaleSwineList = new FlushingFemaleSwineList(http);
4116
- this.flushingMonitor = new FlushingMonitor(http);
4117
- this.giltInventory = new GiltInventory(http);
4118
- this.gtaList = new GtaList(http);
4119
- this.heatDetectionCollectionForm = new HeatDetectionCollectionForm(http);
4120
- this.heatDetectionList = new HeatDetectionList(http);
4121
- this.heatMonitoring = new HeatMonitoring(http);
4122
- this.locationList = new LocationList(http);
4123
- this.maternityPigletDeathCollectionForm = new MaternityPigletDeathCollectionForm(http);
4124
- this.maternityPigletTransferCollectionForm = new MaternityPigletTransferCollectionForm(http);
4125
- this.matingAnalysis = new MatingAnalysis(http);
4126
- this.matingCollectionForm = new MatingCollectionForm(http);
4127
- this.matingGroupList = new MatingGroupList(http);
4128
- this.matingList = new MatingList(http);
4129
- this.matingOverview = new MatingOverview(http);
4130
- this.mbrfFemaleSwineRecord = new MbrfFemaleSwineRecord(http);
4131
- this.nurseryPigletDeathCollectionForm = new NurseryPigletDeathCollectionForm(http);
4132
- this.originList = new OriginList(http);
4133
- this.parityStructure = new ParityStructure(http);
4134
- this.preFlushingFemaleSwineList = new PreFlushingFemaleSwineList(http);
4135
- this.pregnantFemaleSwineList = new PregnantFemaleSwineList(http);
4136
- this.pregnantFemaleSwineSaleList = new PregnantFemaleSwineSaleList(http);
4137
- this.reproductiveFailureAnalysis = new ReproductiveFailureAnalysis(http);
4138
- this.reproductiveFailureCollectionForm = new ReproductiveFailureCollectionForm(http);
4139
- this.reproductiveFailureList = new ReproductiveFailureList(http);
4140
- this.retentionRate = new RetentionRate(http);
4141
- this.scoreList = new ScoreList(http);
4142
- this.weaningAnalysis = new WeaningAnalysis(http);
4143
- this.weaningCollectionForm = new WeaningCollectionForm(http);
4144
- this.maternityPigletDeathList = new MaternityPigletDeathList(http);
4145
- this.weaningList = new WeaningList(http);
4146
- this.farrowingList = new FarrowingList(http);
4147
- this.farrowingRate = new FarrowingRate(http);
4148
- this.maternityPigletTransferList = new MaternityPigletTransferList(http);
4149
- this.weaningForecast = new WeaningForecast(http);
4150
- this.farrowingForecast = new FarrowingForecast(http);
4151
- this.breedingProjection = new BreedingProjection(http);
4152
- this.maternityPigletDeathAnalysis = new MaternityPigletDeathAnalysis(http);
4153
- this.weaningOverview = new WeaningOverview(http);
4154
- }
4155
- };
4156
- //#endregion
4157
- //#region src/jaspion.ts
4158
- var Jaspion = class {
4159
- pigMaster;
4160
- constructor({ http }) {
4161
- this.pigMaster = new PigMaster(http);
4162
- }
4163
- };
4164
- //#endregion
4165
- exports.Jaspion = Jaspion;
4166
-
4167
- //# sourceMappingURL=index.cjs.map