@gesagro/jaspion-sdk 2.0.10 → 2.1.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 ADDED
@@ -0,0 +1,4091 @@
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-type-list.ts
1017
+ var FarrowingTypeList = class extends Report {
1018
+ template = "@pig-master/farrowing-type-list";
1019
+ fileName = "Listagem de tipos de parto";
1020
+ async pdf(input) {
1021
+ await this.requestPdf({
1022
+ resources: this.getResources(input),
1023
+ parameters: [...this.getParameters(input), {
1024
+ key: "DATA_ONLY",
1025
+ value: false
1026
+ }]
1027
+ });
1028
+ }
1029
+ async csv(input) {
1030
+ await this.requestCsv({
1031
+ resources: this.getResources(input),
1032
+ parameters: [...this.getParameters(input), {
1033
+ key: "DATA_ONLY",
1034
+ value: true
1035
+ }]
1036
+ });
1037
+ }
1038
+ getResources(input) {
1039
+ return [{
1040
+ key: "FARM_ID",
1041
+ value: input.farmId
1042
+ }];
1043
+ }
1044
+ getParameters(input) {
1045
+ return [{
1046
+ key: "LOCATE",
1047
+ value: input.language.replace("-", "_")
1048
+ }];
1049
+ }
1050
+ };
1051
+ //#endregion
1052
+ //#region src/namespaces/pig-master/reports/female-swine-arrival-monitoring.ts
1053
+ var FemaleSwineArrivalMonitoring = class extends Report {
1054
+ template = "@pig-master/female-swine-arrival-monitoring";
1055
+ fileName = "Acompanhamento do lote";
1056
+ async pdf(input) {
1057
+ await this.requestPdf({
1058
+ resources: this.getResources(input),
1059
+ parameters: [...this.getParameters(input), {
1060
+ key: "DATA_ONLY",
1061
+ value: false
1062
+ }]
1063
+ });
1064
+ }
1065
+ async csv(input) {
1066
+ await this.requestCsv({
1067
+ resources: this.getResources(input),
1068
+ parameters: [...this.getParameters(input), {
1069
+ key: "DATA_ONLY",
1070
+ value: true
1071
+ }]
1072
+ });
1073
+ }
1074
+ getResources(input) {
1075
+ return [{
1076
+ key: "FARM_ID",
1077
+ value: input.farmId
1078
+ }];
1079
+ }
1080
+ getParameters(input) {
1081
+ return [
1082
+ {
1083
+ key: "DATE_BEGIN",
1084
+ value: input.dateRange.start
1085
+ },
1086
+ {
1087
+ key: "DATE_END",
1088
+ value: input.dateRange.end
1089
+ },
1090
+ {
1091
+ key: "CALENDAR",
1092
+ value: input.calendarType
1093
+ },
1094
+ {
1095
+ key: "PAGE",
1096
+ value: input.pagination.page
1097
+ },
1098
+ {
1099
+ key: "PER_PAGE",
1100
+ value: input.pagination.perPage
1101
+ },
1102
+ {
1103
+ key: "ORIGIN_ID",
1104
+ value: input.originId
1105
+ }
1106
+ ];
1107
+ }
1108
+ };
1109
+ //#endregion
1110
+ //#region src/namespaces/pig-master/reports/female-swine-by-breed-list.ts
1111
+ var FemaleSwineByBreedList = class extends Report {
1112
+ template = "@pig-master/female-swine-by-breed-list";
1113
+ fileName = "Fêmeas por raça";
1114
+ async pdf(input) {
1115
+ await this.requestPdf({
1116
+ resources: this.getResources(input),
1117
+ parameters: [...this.getParameters(input), {
1118
+ key: "DATA_ONLY",
1119
+ value: false
1120
+ }]
1121
+ });
1122
+ }
1123
+ async csv(input) {
1124
+ await this.requestCsv({
1125
+ resources: this.getResources(input),
1126
+ parameters: [...this.getParameters(input), {
1127
+ key: "DATA_ONLY",
1128
+ value: true
1129
+ }]
1130
+ });
1131
+ }
1132
+ getResources(input) {
1133
+ return [{
1134
+ key: "FARM_ID",
1135
+ value: input.farmId
1136
+ }];
1137
+ }
1138
+ getParameters(input) {
1139
+ return [
1140
+ {
1141
+ key: "LOCATE",
1142
+ value: input.language.replace("-", "_")
1143
+ },
1144
+ {
1145
+ key: "BREED_ID",
1146
+ value: input.breedId
1147
+ },
1148
+ {
1149
+ key: "REMOVE_GILT_SOW",
1150
+ value: input.productivityStatus === "productive"
1151
+ },
1152
+ {
1153
+ key: "CALENDAR",
1154
+ value: input.calendarType
1155
+ }
1156
+ ];
1157
+ }
1158
+ };
1159
+ //#endregion
1160
+ //#region src/namespaces/pig-master/reports/female-swine-by-parity-list.ts
1161
+ var FemaleSwineByParityList = class extends Report {
1162
+ template = "@pig-master/female-swine-by-parity-list";
1163
+ fileName = "Fêmeas por cria";
1164
+ async pdf(input) {
1165
+ await this.requestPdf({
1166
+ resources: this.getResources(input),
1167
+ parameters: [...this.getParameters(input), {
1168
+ key: "DATA_ONLY",
1169
+ value: false
1170
+ }]
1171
+ });
1172
+ }
1173
+ async csv(input) {
1174
+ await this.requestCsv({
1175
+ resources: this.getResources(input),
1176
+ parameters: [...this.getParameters(input), {
1177
+ key: "DATA_ONLY",
1178
+ value: true
1179
+ }]
1180
+ });
1181
+ }
1182
+ getResources(input) {
1183
+ return [{
1184
+ key: "FARM_ID",
1185
+ value: input.farmId
1186
+ }];
1187
+ }
1188
+ getParameters(input) {
1189
+ return [
1190
+ {
1191
+ key: "LOCATE",
1192
+ value: input.language.replace("-", "_")
1193
+ },
1194
+ {
1195
+ key: "PARITY",
1196
+ value: input.parity?.toString() ?? null
1197
+ },
1198
+ {
1199
+ key: "BREED_ID",
1200
+ value: input.breedId
1201
+ },
1202
+ {
1203
+ key: "ORIGIN_ID",
1204
+ value: input.originId
1205
+ },
1206
+ {
1207
+ key: "BIRTH_PLACE_ID",
1208
+ value: input.birthPlaceId
1209
+ },
1210
+ {
1211
+ key: "STATUS",
1212
+ value: input.status
1213
+ },
1214
+ {
1215
+ key: "CALENDAR",
1216
+ value: input.calendarType
1217
+ }
1218
+ ];
1219
+ }
1220
+ };
1221
+ //#endregion
1222
+ //#region src/namespaces/pig-master/reports/female-swine-by-status-list.ts
1223
+ var FemaleSwineByStatusList = class extends Report {
1224
+ template = "@pig-master/female-swine-by-status-list";
1225
+ fileName = "Fêmeas por status";
1226
+ async pdf(input) {
1227
+ await this.requestPdf({
1228
+ resources: this.getResources(input),
1229
+ parameters: [...this.getParameters(input), {
1230
+ key: "DATA_ONLY",
1231
+ value: false
1232
+ }]
1233
+ });
1234
+ }
1235
+ async csv(input) {
1236
+ await this.requestCsv({
1237
+ resources: this.getResources(input),
1238
+ parameters: [...this.getParameters(input), {
1239
+ key: "DATA_ONLY",
1240
+ value: true
1241
+ }]
1242
+ });
1243
+ }
1244
+ getResources(input) {
1245
+ return [{
1246
+ key: "FARM_ID",
1247
+ value: input.farmId
1248
+ }];
1249
+ }
1250
+ getParameters(input) {
1251
+ return [
1252
+ {
1253
+ key: "LOCATE",
1254
+ value: input.language.replace("-", "_")
1255
+ },
1256
+ {
1257
+ key: "STATUS",
1258
+ value: input.status
1259
+ },
1260
+ {
1261
+ key: "DAYSTODAY_BEGIN",
1262
+ value: input.gestationLengthRange?.start.toString() ?? null
1263
+ },
1264
+ {
1265
+ key: "DAYSTODAY_END",
1266
+ value: input.gestationLengthRange?.end.toString() ?? null
1267
+ },
1268
+ {
1269
+ key: "CALENDAR",
1270
+ value: input.calendarType
1271
+ },
1272
+ {
1273
+ key: "LAST_EVENT_DATE_BEGIN",
1274
+ value: input.lastEventDateRange?.start ?? null
1275
+ },
1276
+ {
1277
+ key: "LAST_EVENT_DATE_END",
1278
+ value: input.lastEventDateRange?.end ?? null
1279
+ },
1280
+ {
1281
+ key: "PARITY",
1282
+ value: input.parity?.toString() ?? null
1283
+ },
1284
+ {
1285
+ key: "BREED_ID",
1286
+ value: input.breedId
1287
+ },
1288
+ {
1289
+ key: "ORIGIN_ID",
1290
+ value: input.originId
1291
+ },
1292
+ {
1293
+ key: "BIRTH_PLACE_ID",
1294
+ value: input.birthPlaceId
1295
+ },
1296
+ {
1297
+ key: "LIFECYCLE_STATUS",
1298
+ value: input.lifecycleStatus
1299
+ },
1300
+ {
1301
+ key: "ARRIVAL_DATE_BEGIN",
1302
+ value: input.arrivalDateRange?.start ?? null
1303
+ },
1304
+ {
1305
+ key: "ARRIVAL_DATE_END",
1306
+ value: input.arrivalDateRange?.end ?? null
1307
+ },
1308
+ {
1309
+ key: "ORDERBYCOLUMN",
1310
+ value: input.orderBy.column
1311
+ },
1312
+ {
1313
+ key: "ORDERBYDIRECTION",
1314
+ value: input.orderBy.direction
1315
+ }
1316
+ ];
1317
+ }
1318
+ };
1319
+ //#endregion
1320
+ //#region src/namespaces/pig-master/reports/female-swine-by-traceability-list.ts
1321
+ var FemaleSwineByTraceabilityList = class extends Report {
1322
+ template = "@pig-master/female-swine-by-traceability-list";
1323
+ fileName = "Fêmeas por rastreabilidade";
1324
+ async pdf(input) {
1325
+ await this.requestPdf({
1326
+ resources: this.getResources(input),
1327
+ parameters: [...this.getParameters(input), {
1328
+ key: "DATA_ONLY",
1329
+ value: false
1330
+ }]
1331
+ });
1332
+ }
1333
+ async csv(input) {
1334
+ await this.requestCsv({
1335
+ resources: this.getResources(input),
1336
+ parameters: [...this.getParameters(input), {
1337
+ key: "DATA_ONLY",
1338
+ value: true
1339
+ }]
1340
+ });
1341
+ }
1342
+ getResources(input) {
1343
+ return [{
1344
+ key: "FARM_ID",
1345
+ value: input.farmId
1346
+ }];
1347
+ }
1348
+ getParameters(input) {
1349
+ return [
1350
+ {
1351
+ key: "LOCATE",
1352
+ value: input.language.replace("-", "_")
1353
+ },
1354
+ {
1355
+ key: "BIRTH_PLACE_ID",
1356
+ value: input.birthPlaceId
1357
+ },
1358
+ {
1359
+ key: "ORIGIN_ID",
1360
+ value: input.originId
1361
+ },
1362
+ {
1363
+ key: "GTA_ID",
1364
+ value: input.gtaId
1365
+ },
1366
+ {
1367
+ key: "CALENDAR",
1368
+ value: input.calendarType
1369
+ },
1370
+ {
1371
+ key: "ARRIVAL_DATE_BEGIN",
1372
+ value: input.arrivalDateRange?.start ?? null
1373
+ },
1374
+ {
1375
+ key: "ARRIVAL_DATE_END",
1376
+ value: input.arrivalDateRange?.end ?? null
1377
+ },
1378
+ {
1379
+ key: "LIFECYCLE_STATUS",
1380
+ value: input.lifecycleStatus
1381
+ }
1382
+ ];
1383
+ }
1384
+ };
1385
+ //#endregion
1386
+ //#region src/namespaces/pig-master/reports/female-swine-death-analysis.ts
1387
+ var FemaleSwineDeathAnalysis = class extends Report {
1388
+ template = "@pig-master/female-swine-death-analysis";
1389
+ fileName = "Análise morte de fêmeas";
1390
+ async pdf(input) {
1391
+ await this.requestPdf({
1392
+ resources: [{
1393
+ key: "FARM_ID",
1394
+ value: input.farmId
1395
+ }],
1396
+ parameters: [
1397
+ {
1398
+ key: "LOCATE",
1399
+ value: input.language.replace("-", "_")
1400
+ },
1401
+ {
1402
+ key: "GROUPED_DESCRIPTION",
1403
+ value: input.groupBy
1404
+ },
1405
+ {
1406
+ key: "DATE_BEGIN",
1407
+ value: input.dateRange?.start ?? null
1408
+ },
1409
+ {
1410
+ key: "DATE_END",
1411
+ value: input.dateRange?.end ?? null
1412
+ },
1413
+ {
1414
+ key: "CAUSE_ID",
1415
+ value: input.causeId
1416
+ },
1417
+ {
1418
+ key: "PARITY",
1419
+ value: input.parity?.toString() ?? null
1420
+ },
1421
+ {
1422
+ key: "BREED_ID",
1423
+ value: input.breedId
1424
+ },
1425
+ {
1426
+ key: "ORIGIN_ID",
1427
+ value: input.originId
1428
+ },
1429
+ {
1430
+ key: "BIRTH_PLACE_ID",
1431
+ value: input.birthPlaceId
1432
+ },
1433
+ {
1434
+ key: "STATUS",
1435
+ value: input.status
1436
+ },
1437
+ {
1438
+ key: "CALENDAR",
1439
+ value: input.calendarType
1440
+ },
1441
+ {
1442
+ key: "ARRIVAL_DATE_BEGIN",
1443
+ value: input.arrivalDateRange?.start ?? null
1444
+ },
1445
+ {
1446
+ key: "ARRIVAL_DATE_END",
1447
+ value: input.arrivalDateRange?.end ?? null
1448
+ }
1449
+ ]
1450
+ });
1451
+ }
1452
+ };
1453
+ //#endregion
1454
+ //#region src/namespaces/pig-master/reports/female-swine-death-collection-form.ts
1455
+ var FemaleSwineDeathCollectionForm = class extends Report {
1456
+ template = "@pig-master/female-swine-death-collection-form";
1457
+ fileName = "Morte de fêmea";
1458
+ async pdf(input) {
1459
+ await this.requestPdf({
1460
+ resources: [{
1461
+ key: "FARM_ID",
1462
+ value: input.farmId
1463
+ }],
1464
+ parameters: [{
1465
+ key: "CALENDAR",
1466
+ value: input.calendarType
1467
+ }]
1468
+ });
1469
+ }
1470
+ };
1471
+ //#endregion
1472
+ //#region src/namespaces/pig-master/reports/female-swine-death-list.ts
1473
+ var FemaleSwineDeathList = class extends Report {
1474
+ template = "@pig-master/female-swine-death-list";
1475
+ fileName = "Morte de fêmeas";
1476
+ async pdf(input) {
1477
+ await this.requestPdf({
1478
+ resources: this.getResources(input),
1479
+ parameters: [...this.getParameters(input), {
1480
+ key: "DATA_ONLY",
1481
+ value: false
1482
+ }]
1483
+ });
1484
+ }
1485
+ async csv(input) {
1486
+ await this.requestCsv({
1487
+ resources: this.getResources(input),
1488
+ parameters: [...this.getParameters(input), {
1489
+ key: "DATA_ONLY",
1490
+ value: true
1491
+ }]
1492
+ });
1493
+ }
1494
+ getResources(input) {
1495
+ return [{
1496
+ key: "FARM_ID",
1497
+ value: input.farmId
1498
+ }];
1499
+ }
1500
+ getParameters(input) {
1501
+ return [
1502
+ {
1503
+ key: "LOCATE",
1504
+ value: input.language.replace("-", "_")
1505
+ },
1506
+ {
1507
+ key: "DATE_BEGIN",
1508
+ value: input.dateRange?.start ?? null
1509
+ },
1510
+ {
1511
+ key: "DATE_END",
1512
+ value: input.dateRange?.end ?? null
1513
+ },
1514
+ {
1515
+ key: "CAUSE_ID",
1516
+ value: input.causeId
1517
+ },
1518
+ {
1519
+ key: "PARITY",
1520
+ value: input.parity?.toString() ?? null
1521
+ },
1522
+ {
1523
+ key: "BREED_ID",
1524
+ value: input.breedId
1525
+ },
1526
+ {
1527
+ key: "ORIGIN_ID",
1528
+ value: input.originId
1529
+ },
1530
+ {
1531
+ key: "BIRTH_PLACE_ID",
1532
+ value: input.birthPlaceId
1533
+ },
1534
+ {
1535
+ key: "STATUS",
1536
+ value: input.status
1537
+ },
1538
+ {
1539
+ key: "CALENDAR",
1540
+ value: input.calendarType
1541
+ },
1542
+ {
1543
+ key: "ARRIVAL_DATE_BEGIN",
1544
+ value: input.arrivalDateRange?.start ?? null
1545
+ },
1546
+ {
1547
+ key: "ARRIVAL_DATE_END",
1548
+ value: input.arrivalDateRange?.end ?? null
1549
+ }
1550
+ ];
1551
+ }
1552
+ };
1553
+ //#endregion
1554
+ //#region src/namespaces/pig-master/reports/female-swine-discard-analysis.ts
1555
+ var FemaleSwineDiscardAnalysis = class extends Report {
1556
+ template = "@pig-master/female-swine-discard-analysis";
1557
+ fileName = "Análise descarte de fêmeas";
1558
+ async pdf(input) {
1559
+ await this.requestPdf({
1560
+ resources: [{
1561
+ key: "FARM_ID",
1562
+ value: input.farmId
1563
+ }],
1564
+ parameters: [
1565
+ {
1566
+ key: "LOCATE",
1567
+ value: input.language.replace("-", "_")
1568
+ },
1569
+ {
1570
+ key: "GROUPED_DESCRIPTION",
1571
+ value: input.groupBy
1572
+ },
1573
+ {
1574
+ key: "DATE_BEGIN",
1575
+ value: input.dateRange?.start ?? null
1576
+ },
1577
+ {
1578
+ key: "DATE_END",
1579
+ value: input.dateRange?.end ?? null
1580
+ },
1581
+ {
1582
+ key: "CAUSE_ID",
1583
+ value: input.causeId
1584
+ },
1585
+ {
1586
+ key: "PARITY",
1587
+ value: input.parity?.toString() ?? null
1588
+ },
1589
+ {
1590
+ key: "BREED_ID",
1591
+ value: input.breedId
1592
+ },
1593
+ {
1594
+ key: "ORIGIN_ID",
1595
+ value: input.originId
1596
+ },
1597
+ {
1598
+ key: "BIRTH_PLACE_ID",
1599
+ value: input.birthPlaceId
1600
+ },
1601
+ {
1602
+ key: "RECIPIENT_ID",
1603
+ value: input.recipientId
1604
+ },
1605
+ {
1606
+ key: "STATUS",
1607
+ value: input.status
1608
+ },
1609
+ {
1610
+ key: "CALENDAR",
1611
+ value: input.calendarType
1612
+ },
1613
+ {
1614
+ key: "ARRIVAL_DATE_BEGIN",
1615
+ value: input.arrivalDateRange?.start ?? null
1616
+ },
1617
+ {
1618
+ key: "ARRIVAL_DATE_END",
1619
+ value: input.arrivalDateRange?.end ?? null
1620
+ }
1621
+ ]
1622
+ });
1623
+ }
1624
+ };
1625
+ //#endregion
1626
+ //#region src/namespaces/pig-master/reports/female-swine-discard-collection-form.ts
1627
+ var FemaleSwineDiscardCollectionForm = class extends Report {
1628
+ template = "@pig-master/female-swine-discard-collection-form";
1629
+ fileName = "Descarte de fêmea";
1630
+ async pdf(input) {
1631
+ await this.requestPdf({
1632
+ resources: [{
1633
+ key: "FARM_ID",
1634
+ value: input.farmId
1635
+ }],
1636
+ parameters: [{
1637
+ key: "CALENDAR",
1638
+ value: input.calendarType
1639
+ }]
1640
+ });
1641
+ }
1642
+ };
1643
+ //#endregion
1644
+ //#region src/namespaces/pig-master/reports/female-swine-discard-list.ts
1645
+ var FemaleSwineDiscardList = class extends Report {
1646
+ template = "@pig-master/female-swine-discard-list";
1647
+ fileName = "Descarte de fêmeas";
1648
+ async pdf(input) {
1649
+ await this.requestPdf({
1650
+ resources: this.getResources(input),
1651
+ parameters: [...this.getParameters(input), {
1652
+ key: "DATA_ONLY",
1653
+ value: false
1654
+ }]
1655
+ });
1656
+ }
1657
+ async csv(input) {
1658
+ await this.requestCsv({
1659
+ resources: this.getResources(input),
1660
+ parameters: [...this.getParameters(input), {
1661
+ key: "DATA_ONLY",
1662
+ value: true
1663
+ }]
1664
+ });
1665
+ }
1666
+ getResources(input) {
1667
+ return [{
1668
+ key: "FARM_ID",
1669
+ value: input.farmId
1670
+ }];
1671
+ }
1672
+ getParameters(input) {
1673
+ return [
1674
+ {
1675
+ key: "LOCATE",
1676
+ value: input.language.replace("-", "_")
1677
+ },
1678
+ {
1679
+ key: "CAUSE_ID",
1680
+ value: input.causeId
1681
+ },
1682
+ {
1683
+ key: "BREED_ID",
1684
+ value: input.breedId
1685
+ },
1686
+ {
1687
+ key: "ORIGIN_ID",
1688
+ value: input.originId
1689
+ },
1690
+ {
1691
+ key: "BIRTH_PLACE_ID",
1692
+ value: input.birthPlaceId
1693
+ },
1694
+ {
1695
+ key: "DATE_BEGIN",
1696
+ value: input.dateRange?.start ?? null
1697
+ },
1698
+ {
1699
+ key: "DATE_END",
1700
+ value: input.dateRange?.end ?? null
1701
+ },
1702
+ {
1703
+ key: "PARITY",
1704
+ value: input.parity?.toString() ?? null
1705
+ },
1706
+ {
1707
+ key: "RECIPIENT_ID",
1708
+ value: input.recipientId
1709
+ },
1710
+ {
1711
+ key: "STATUS",
1712
+ value: input.status
1713
+ },
1714
+ {
1715
+ key: "CALENDAR",
1716
+ value: input.calendarType
1717
+ },
1718
+ {
1719
+ key: "ARRIVAL_DATE_BEGIN",
1720
+ value: input.arrivalDateRange?.start ?? null
1721
+ },
1722
+ {
1723
+ key: "ARRIVAL_DATE_END",
1724
+ value: input.arrivalDateRange?.end ?? null
1725
+ }
1726
+ ];
1727
+ }
1728
+ };
1729
+ //#endregion
1730
+ //#region src/namespaces/pig-master/reports/female-swine-ear-tag-replacement-list.ts
1731
+ var FemaleSwineEarTagReplacementList = class extends Report {
1732
+ template = "@pig-master/female-swine-ear-tag-replacement-list";
1733
+ fileName = "Trocas de brinco de fêmeas";
1734
+ async pdf(input) {
1735
+ await this.requestPdf({
1736
+ resources: this.getResources(input),
1737
+ parameters: [...this.getParameters(input), {
1738
+ key: "DATA_ONLY",
1739
+ value: false
1740
+ }]
1741
+ });
1742
+ }
1743
+ async csv(input) {
1744
+ await this.requestCsv({
1745
+ resources: this.getResources(input),
1746
+ parameters: [...this.getParameters(input), {
1747
+ key: "DATA_ONLY",
1748
+ value: true
1749
+ }]
1750
+ });
1751
+ }
1752
+ getResources(input) {
1753
+ return [{
1754
+ key: "FARM_ID",
1755
+ value: input.farmId
1756
+ }];
1757
+ }
1758
+ getParameters(input) {
1759
+ return [
1760
+ {
1761
+ key: "DATE_BEGIN",
1762
+ value: input.dateRange?.start ?? null
1763
+ },
1764
+ {
1765
+ key: "DATE_END",
1766
+ value: input.dateRange?.end ?? null
1767
+ },
1768
+ {
1769
+ key: "OLD_EAR_TAG",
1770
+ value: input.oldEarTag
1771
+ },
1772
+ {
1773
+ key: "NEW_EAR_TAG",
1774
+ value: input.newEarTag
1775
+ },
1776
+ {
1777
+ key: "CALENDAR",
1778
+ value: input.calendarType
1779
+ }
1780
+ ];
1781
+ }
1782
+ };
1783
+ //#endregion
1784
+ //#region src/namespaces/pig-master/reports/female-swine-inventory.ts
1785
+ var FemaleSwineInventory = class extends Report {
1786
+ template = "@pig-master/female-swine-inventory";
1787
+ fileName = "Estoque de fêmeas";
1788
+ async pdf(input) {
1789
+ await this.requestPdf({
1790
+ resources: this.getResources(input),
1791
+ parameters: [...this.getParameters(input), {
1792
+ key: "DATA_ONLY",
1793
+ value: false
1794
+ }]
1795
+ });
1796
+ }
1797
+ async csv(input) {
1798
+ await this.requestCsv({
1799
+ resources: this.getResources(input),
1800
+ parameters: [...this.getParameters(input), {
1801
+ key: "DATA_ONLY",
1802
+ value: true
1803
+ }]
1804
+ });
1805
+ }
1806
+ getResources(input) {
1807
+ return [{
1808
+ key: "FARM_ID",
1809
+ value: input.farmId
1810
+ }];
1811
+ }
1812
+ getParameters(input) {
1813
+ return [
1814
+ {
1815
+ key: "DATE_BEGIN",
1816
+ value: input.dateRange.start
1817
+ },
1818
+ {
1819
+ key: "DATE_END",
1820
+ value: input.dateRange.end
1821
+ },
1822
+ {
1823
+ key: "CALENDAR",
1824
+ value: input.calendarType
1825
+ },
1826
+ {
1827
+ key: "ORIGIN_ID",
1828
+ value: input.originId
1829
+ },
1830
+ {
1831
+ key: "BREED_ID",
1832
+ value: input.breedId
1833
+ },
1834
+ {
1835
+ key: "BIRTH_PLACE_ID",
1836
+ value: input.birthPlaceId
1837
+ }
1838
+ ];
1839
+ }
1840
+ };
1841
+ //#endregion
1842
+ //#region src/namespaces/pig-master/reports/female-swine-pending-action-list.ts
1843
+ var FemaleSwinePendingActionList = class extends Report {
1844
+ template = "@pig-master/female-swine-pending-action-list";
1845
+ fileName = "Ações pendentes";
1846
+ async pdf(input) {
1847
+ await this.requestPdf({
1848
+ resources: this.getResources(input),
1849
+ parameters: [...this.getParameters(input), {
1850
+ key: "DATA_ONLY",
1851
+ value: false
1852
+ }]
1853
+ });
1854
+ }
1855
+ async csv(input) {
1856
+ await this.requestCsv({
1857
+ resources: this.getResources(input),
1858
+ parameters: [...this.getParameters(input), {
1859
+ key: "DATA_ONLY",
1860
+ value: true
1861
+ }]
1862
+ });
1863
+ }
1864
+ getResources(input) {
1865
+ return [{
1866
+ key: "FARM_ID",
1867
+ value: input.farmId
1868
+ }];
1869
+ }
1870
+ getParameters(input) {
1871
+ return [
1872
+ {
1873
+ key: "LOCATE",
1874
+ value: input.language.replace("-", "_")
1875
+ },
1876
+ {
1877
+ key: "STATUS",
1878
+ value: input.status
1879
+ },
1880
+ {
1881
+ key: "CALENDAR",
1882
+ value: input.calendarType
1883
+ }
1884
+ ];
1885
+ }
1886
+ };
1887
+ //#endregion
1888
+ //#region src/namespaces/pig-master/reports/female-swine-pre-discard-list.ts
1889
+ var FemaleSwinePreDiscardList = class extends Report {
1890
+ template = "@pig-master/female-swine-pre-discard-list";
1891
+ fileName = "Listagem de pré-descartes de fêmeas";
1892
+ async pdf(input) {
1893
+ await this.requestPdf({
1894
+ resources: this.getResources(input),
1895
+ parameters: [...this.getParameters(input), {
1896
+ key: "DATA_ONLY",
1897
+ value: false
1898
+ }]
1899
+ });
1900
+ }
1901
+ async csv(input) {
1902
+ await this.requestCsv({
1903
+ resources: this.getResources(input),
1904
+ parameters: [...this.getParameters(input), {
1905
+ key: "DATA_ONLY",
1906
+ value: true
1907
+ }]
1908
+ });
1909
+ }
1910
+ getResources(input) {
1911
+ return [{
1912
+ key: "FARM_ID",
1913
+ value: input.farmId
1914
+ }];
1915
+ }
1916
+ getParameters(input) {
1917
+ return [
1918
+ {
1919
+ key: "CALENDAR",
1920
+ value: input.calendarType
1921
+ },
1922
+ {
1923
+ key: "LOCATE",
1924
+ value: input.language.replace("-", "_")
1925
+ },
1926
+ {
1927
+ key: "PRE_DISCARD",
1928
+ value: input.preDiscard
1929
+ },
1930
+ {
1931
+ key: "DATE_BEGIN",
1932
+ value: input.dateRange?.start ?? null
1933
+ },
1934
+ {
1935
+ key: "DATE_END",
1936
+ value: input.dateRange?.end ?? null
1937
+ },
1938
+ {
1939
+ key: "ORDERBYCOLUMN",
1940
+ value: input.orderBy.column
1941
+ },
1942
+ {
1943
+ key: "ORDERBYDIRECTION",
1944
+ value: input.orderBy.direction
1945
+ }
1946
+ ];
1947
+ }
1948
+ };
1949
+ //#endregion
1950
+ //#region src/namespaces/pig-master/reports/female-swine-record.ts
1951
+ var FemaleSwineRecord = class extends Report {
1952
+ template = "@pig-master/female-swine-record";
1953
+ fileName = "Ficha da fêmea";
1954
+ async pdf(input) {
1955
+ await this.requestPdf({
1956
+ resources: [{
1957
+ key: "FARM_ID",
1958
+ value: input.farmId
1959
+ }],
1960
+ parameters: [
1961
+ {
1962
+ key: "LOCATE",
1963
+ value: input.language.replace("-", "_")
1964
+ },
1965
+ {
1966
+ key: "FEMALE_SWINE_ID",
1967
+ value: input.femaleSwineId
1968
+ },
1969
+ {
1970
+ key: "BORN_FOLLOW",
1971
+ value: input.farrowingAssistance
1972
+ },
1973
+ {
1974
+ key: "CALENDAR",
1975
+ value: input.calendarType
1976
+ }
1977
+ ]
1978
+ });
1979
+ }
1980
+ };
1981
+ //#endregion
1982
+ //#region src/namespaces/pig-master/reports/female-swine-sale-planning-list.ts
1983
+ var FemaleSwineSalePlanningList = class extends Report {
1984
+ template = "@pig-master/female-swine-sale-planning-list";
1985
+ fileName = "Listagem de fêmeas planejadas para venda";
1986
+ async pdf(input) {
1987
+ await this.requestPdf({
1988
+ resources: this.getResources(input),
1989
+ parameters: [...this.getParameters(input), {
1990
+ key: "DATA_ONLY",
1991
+ value: false
1992
+ }]
1993
+ });
1994
+ }
1995
+ async csv(input) {
1996
+ await this.requestCsv({
1997
+ resources: this.getResources(input),
1998
+ parameters: [...this.getParameters(input), {
1999
+ key: "DATA_ONLY",
2000
+ value: true
2001
+ }]
2002
+ });
2003
+ }
2004
+ getResources(input) {
2005
+ return [{
2006
+ key: "FARM_ID",
2007
+ value: input.farmId
2008
+ }];
2009
+ }
2010
+ getParameters(input) {
2011
+ return [
2012
+ {
2013
+ key: "CALENDAR",
2014
+ value: input.calendarType
2015
+ },
2016
+ {
2017
+ key: "QUERY",
2018
+ value: input.query
2019
+ },
2020
+ {
2021
+ key: "DATE_BEGIN",
2022
+ value: input.dateRange?.start ?? null
2023
+ },
2024
+ {
2025
+ key: "DATE_END",
2026
+ value: input.dateRange?.end ?? null
2027
+ },
2028
+ {
2029
+ key: "RECIPIENT_ID",
2030
+ value: input.recipientId
2031
+ },
2032
+ {
2033
+ key: "ORDERBYCOLUMN",
2034
+ value: input.orderBy.column
2035
+ },
2036
+ {
2037
+ key: "ORDERBYDIRECTION",
2038
+ value: input.orderBy.direction
2039
+ }
2040
+ ];
2041
+ }
2042
+ };
2043
+ //#endregion
2044
+ //#region src/namespaces/pig-master/reports/female-swine-treatment-collection-form.ts
2045
+ var FemaleSwineTreatmentCollectionForm = class extends Report {
2046
+ template = "@pig-master/female-swine-treatment-collection-form";
2047
+ fileName = "Medicação / vacinação de fêmea";
2048
+ async pdf(input) {
2049
+ await this.requestPdf({
2050
+ resources: [{
2051
+ key: "FARM_ID",
2052
+ value: input.farmId
2053
+ }],
2054
+ parameters: [{
2055
+ key: "CALENDAR",
2056
+ value: input.calendarType
2057
+ }]
2058
+ });
2059
+ }
2060
+ };
2061
+ //#endregion
2062
+ //#region src/namespaces/pig-master/reports/female-swine-treatment-list.ts
2063
+ var FemaleSwineTreatmentList = class extends Report {
2064
+ template = "@pig-master/female-swine-treatment-list";
2065
+ fileName = "Listagem de medicações / vacinas (fêmeas)";
2066
+ async pdf(input) {
2067
+ await this.requestPdf({
2068
+ resources: this.getResources(input),
2069
+ parameters: [...this.getParameters(input), {
2070
+ key: "DATA_ONLY",
2071
+ value: false
2072
+ }]
2073
+ });
2074
+ }
2075
+ async csv(input) {
2076
+ await this.requestCsv({
2077
+ resources: this.getResources(input),
2078
+ parameters: [...this.getParameters(input), {
2079
+ key: "DATA_ONLY",
2080
+ value: true
2081
+ }]
2082
+ });
2083
+ }
2084
+ getResources(input) {
2085
+ return [{
2086
+ key: "FARM_ID",
2087
+ value: input.farmId
2088
+ }];
2089
+ }
2090
+ getParameters(input) {
2091
+ return [
2092
+ {
2093
+ key: "CALENDAR",
2094
+ value: input.calendarType
2095
+ },
2096
+ {
2097
+ key: "LOCATE",
2098
+ value: input.language.replace("-", "_")
2099
+ },
2100
+ {
2101
+ key: "DATE_BEGIN",
2102
+ value: input.dateRange?.start ?? null
2103
+ },
2104
+ {
2105
+ key: "DATE_END",
2106
+ value: input.dateRange?.end ?? null
2107
+ },
2108
+ {
2109
+ key: "FEMALE_SWINE_ID",
2110
+ value: input.femaleSwineId
2111
+ }
2112
+ ];
2113
+ }
2114
+ };
2115
+ //#endregion
2116
+ //#region src/namespaces/pig-master/reports/finishing-piglet-death-collection-form.ts
2117
+ var FinishingPigletDeathCollectionForm = class extends Report {
2118
+ template = "@pig-master/finishing-piglet-death-collection-form";
2119
+ fileName = "Morte de leitão na terminação";
2120
+ async pdf(input) {
2121
+ await this.requestPdf({
2122
+ resources: [{
2123
+ key: "FARM_ID",
2124
+ value: input.farmId
2125
+ }],
2126
+ parameters: [{
2127
+ key: "CALENDAR",
2128
+ value: input.calendarType
2129
+ }]
2130
+ });
2131
+ }
2132
+ };
2133
+ //#endregion
2134
+ //#region src/namespaces/pig-master/reports/flushing-female-swine-list.ts
2135
+ var FlushingFemaleSwineList = class extends Report {
2136
+ template = "@pig-master/flushing-female-swine-list";
2137
+ fileName = "Fêmeas flushing";
2138
+ async pdf(input) {
2139
+ await this.requestPdf({
2140
+ resources: this.getResources(input),
2141
+ parameters: [...this.getParameters(input), {
2142
+ key: "DATA_ONLY",
2143
+ value: false
2144
+ }]
2145
+ });
2146
+ }
2147
+ async csv(input) {
2148
+ await this.requestCsv({
2149
+ resources: this.getResources(input),
2150
+ parameters: [...this.getParameters(input), {
2151
+ key: "DATA_ONLY",
2152
+ value: true
2153
+ }]
2154
+ });
2155
+ }
2156
+ getResources(input) {
2157
+ return [{
2158
+ key: "FARM_ID",
2159
+ value: input.farmId
2160
+ }];
2161
+ }
2162
+ getParameters(input) {
2163
+ return [
2164
+ {
2165
+ key: "DATE_BEGIN",
2166
+ value: input.dateRange.start
2167
+ },
2168
+ {
2169
+ key: "DATE_END",
2170
+ value: input.dateRange.end
2171
+ },
2172
+ {
2173
+ key: "CALENDAR",
2174
+ value: input.calendarType
2175
+ },
2176
+ {
2177
+ key: "ORIGIN_ID",
2178
+ value: input.originId
2179
+ }
2180
+ ];
2181
+ }
2182
+ };
2183
+ //#endregion
2184
+ //#region src/namespaces/pig-master/reports/flushing-monitor.ts
2185
+ var FlushingMonitor = class extends Report {
2186
+ template = "@pig-master/flushing-monitor";
2187
+ fileName = "Flushing";
2188
+ async pdf(input) {
2189
+ await this.requestPdf({
2190
+ resources: this.getResources(input),
2191
+ parameters: [...this.getParameters(input), {
2192
+ key: "DATA_ONLY",
2193
+ value: false
2194
+ }]
2195
+ });
2196
+ }
2197
+ async csv(input) {
2198
+ await this.requestCsv({
2199
+ resources: this.getResources(input),
2200
+ parameters: [...this.getParameters(input), {
2201
+ key: "DATA_ONLY",
2202
+ value: true
2203
+ }]
2204
+ });
2205
+ }
2206
+ getResources(input) {
2207
+ return [{
2208
+ key: "FARM_ID",
2209
+ value: input.farmId
2210
+ }];
2211
+ }
2212
+ getParameters(input) {
2213
+ return [
2214
+ {
2215
+ key: "DATE_BEGIN",
2216
+ value: input.dateRange.start
2217
+ },
2218
+ {
2219
+ key: "DATE_END",
2220
+ value: input.dateRange.end
2221
+ },
2222
+ {
2223
+ key: "CALENDAR",
2224
+ value: input.calendarType
2225
+ },
2226
+ {
2227
+ key: "ORIGIN_ID",
2228
+ value: input.originId
2229
+ }
2230
+ ];
2231
+ }
2232
+ };
2233
+ //#endregion
2234
+ //#region src/namespaces/pig-master/reports/gilt-inventory.ts
2235
+ var GiltInventory = class extends Report {
2236
+ template = "@pig-master/gilt-inventory";
2237
+ fileName = "Estoque de leitoas";
2238
+ async pdf(input) {
2239
+ await this.requestPdf({
2240
+ resources: this.getResources(input),
2241
+ parameters: [...this.getParameters(input), {
2242
+ key: "DATA_ONLY",
2243
+ value: false
2244
+ }]
2245
+ });
2246
+ }
2247
+ async csv(input) {
2248
+ await this.requestCsv({
2249
+ resources: this.getResources(input),
2250
+ parameters: [...this.getParameters(input), {
2251
+ key: "DATA_ONLY",
2252
+ value: true
2253
+ }]
2254
+ });
2255
+ }
2256
+ getResources(input) {
2257
+ return [{
2258
+ key: "FARM_ID",
2259
+ value: input.farmId
2260
+ }];
2261
+ }
2262
+ getParameters(input) {
2263
+ return [
2264
+ {
2265
+ key: "DATE_BEGIN",
2266
+ value: input.dateRange.start
2267
+ },
2268
+ {
2269
+ key: "DATE_END",
2270
+ value: input.dateRange.end
2271
+ },
2272
+ {
2273
+ key: "CALENDAR",
2274
+ value: input.calendarType
2275
+ },
2276
+ {
2277
+ key: "ORIGIN_ID",
2278
+ value: input.originId
2279
+ },
2280
+ {
2281
+ key: "BREED_ID",
2282
+ value: input.breedId
2283
+ },
2284
+ {
2285
+ key: "BIRTH_PLACE_ID",
2286
+ value: input.birthPlaceId
2287
+ }
2288
+ ];
2289
+ }
2290
+ };
2291
+ //#endregion
2292
+ //#region src/namespaces/pig-master/reports/gta-list.ts
2293
+ var GtaList = class extends Report {
2294
+ template = "@pig-master/gta-list";
2295
+ fileName = "Listagem de gtas";
2296
+ async pdf(input) {
2297
+ await this.requestPdf({
2298
+ resources: this.getResources(input),
2299
+ parameters: [...this.getParameters(input), {
2300
+ key: "DATA_ONLY",
2301
+ value: false
2302
+ }]
2303
+ });
2304
+ }
2305
+ async csv(input) {
2306
+ await this.requestCsv({
2307
+ resources: this.getResources(input),
2308
+ parameters: [...this.getParameters(input), {
2309
+ key: "DATA_ONLY",
2310
+ value: true
2311
+ }]
2312
+ });
2313
+ }
2314
+ getResources(input) {
2315
+ return [{
2316
+ key: "FARM_ID",
2317
+ value: input.farmId
2318
+ }];
2319
+ }
2320
+ getParameters(input) {
2321
+ return [{
2322
+ key: "LOCATE",
2323
+ value: input.language.replace("-", "_")
2324
+ }, {
2325
+ key: "CALENDAR",
2326
+ value: input.calendarType
2327
+ }];
2328
+ }
2329
+ };
2330
+ //#endregion
2331
+ //#region src/namespaces/pig-master/reports/heat-detection-collection-form.ts
2332
+ var HeatDetectionCollectionForm = class extends Report {
2333
+ template = "@pig-master/heat-detection-collection-form";
2334
+ fileName = "Registro de cio";
2335
+ async pdf(input) {
2336
+ await this.requestPdf({
2337
+ resources: [{
2338
+ key: "FARM_ID",
2339
+ value: input.farmId
2340
+ }],
2341
+ parameters: [{
2342
+ key: "CALENDAR",
2343
+ value: input.calendarType
2344
+ }]
2345
+ });
2346
+ }
2347
+ };
2348
+ //#endregion
2349
+ //#region src/namespaces/pig-master/reports/heat-detection-list.ts
2350
+ var HeatDetectionList = class extends Report {
2351
+ template = "@pig-master/heat-detection-list";
2352
+ fileName = "Listagem de registros de cio";
2353
+ async pdf(input) {
2354
+ await this.requestPdf({
2355
+ resources: this.getResources(input),
2356
+ parameters: [...this.getParameters(input), {
2357
+ key: "DATA_ONLY",
2358
+ value: false
2359
+ }]
2360
+ });
2361
+ }
2362
+ async csv(input) {
2363
+ await this.requestCsv({
2364
+ resources: this.getResources(input),
2365
+ parameters: [...this.getParameters(input), {
2366
+ key: "DATA_ONLY",
2367
+ value: true
2368
+ }]
2369
+ });
2370
+ }
2371
+ getResources(input) {
2372
+ return [{
2373
+ key: "FARM_ID",
2374
+ value: input.farmId
2375
+ }];
2376
+ }
2377
+ getParameters(input) {
2378
+ return [
2379
+ {
2380
+ key: "LOCATE",
2381
+ value: input.language.replace("-", "_")
2382
+ },
2383
+ {
2384
+ key: "CALENDAR",
2385
+ value: input.calendarType
2386
+ },
2387
+ {
2388
+ key: "ORIGIN_ID",
2389
+ value: input.originId
2390
+ },
2391
+ {
2392
+ key: "ARRIVAL_DATE_BEGIN",
2393
+ value: input.arrivalDateRange?.start ?? null
2394
+ },
2395
+ {
2396
+ key: "ARRIVAL_DATE_END",
2397
+ value: input.arrivalDateRange?.end ?? null
2398
+ },
2399
+ {
2400
+ key: "DATE_BEGIN",
2401
+ value: input.dateRange?.start ?? null
2402
+ },
2403
+ {
2404
+ key: "DATE_END",
2405
+ value: input.dateRange?.end ?? null
2406
+ },
2407
+ {
2408
+ key: "FEMALE_SWINE_ID",
2409
+ value: input.femaleSwineId
2410
+ },
2411
+ {
2412
+ key: "NUMBER",
2413
+ value: input.number?.toString() ?? null
2414
+ },
2415
+ {
2416
+ key: "STIMULUS",
2417
+ value: input.stimulus
2418
+ },
2419
+ {
2420
+ key: "ORDERBYDIRECTION",
2421
+ value: input.orderBy.direction
2422
+ },
2423
+ {
2424
+ key: "ORDERBYCOLUMN",
2425
+ value: input.orderBy.column
2426
+ }
2427
+ ];
2428
+ }
2429
+ };
2430
+ //#endregion
2431
+ //#region src/namespaces/pig-master/reports/heat-monitoring.ts
2432
+ var HeatMonitoring = class extends Report {
2433
+ template = "@pig-master/heat-monitoring";
2434
+ fileName = "Mapa de Cio";
2435
+ async pdf(input) {
2436
+ await this.requestPdf({
2437
+ resources: this.getResources(input),
2438
+ parameters: [...this.getParameters(input), {
2439
+ key: "DATA_ONLY",
2440
+ value: false
2441
+ }]
2442
+ });
2443
+ }
2444
+ async csv(input) {
2445
+ await this.requestCsv({
2446
+ resources: this.getResources(input),
2447
+ parameters: [...this.getParameters(input), {
2448
+ key: "DATA_ONLY",
2449
+ value: true
2450
+ }]
2451
+ });
2452
+ }
2453
+ getResources(input) {
2454
+ return [{
2455
+ key: "FARM_ID",
2456
+ value: input.farmId
2457
+ }];
2458
+ }
2459
+ getParameters(input) {
2460
+ return [
2461
+ {
2462
+ key: "DATE_BEGIN",
2463
+ value: input.dateRange.start
2464
+ },
2465
+ {
2466
+ key: "DATE_END",
2467
+ value: input.dateRange.end
2468
+ },
2469
+ {
2470
+ key: "CALENDAR",
2471
+ value: input.calendarType
2472
+ },
2473
+ {
2474
+ key: "PAGE",
2475
+ value: input.pagination.page
2476
+ },
2477
+ {
2478
+ key: "PER_PAGE",
2479
+ value: input.pagination.perPage
2480
+ },
2481
+ {
2482
+ key: "ORIGIN_ID",
2483
+ value: input.originId
2484
+ }
2485
+ ];
2486
+ }
2487
+ };
2488
+ //#endregion
2489
+ //#region src/namespaces/pig-master/reports/location-list.ts
2490
+ var LocationList = class extends Report {
2491
+ template = "@pig-master/location-list";
2492
+ fileName = "Listagem de localizações";
2493
+ async pdf(input) {
2494
+ await this.requestPdf({
2495
+ resources: this.getResources(input),
2496
+ parameters: [...this.getParameters(input), {
2497
+ key: "DATA_ONLY",
2498
+ value: false
2499
+ }]
2500
+ });
2501
+ }
2502
+ async csv(input) {
2503
+ await this.requestCsv({
2504
+ resources: this.getResources(input),
2505
+ parameters: [...this.getParameters(input), {
2506
+ key: "DATA_ONLY",
2507
+ value: true
2508
+ }]
2509
+ });
2510
+ }
2511
+ getResources(input) {
2512
+ return [{
2513
+ key: "FARM_ID",
2514
+ value: input.farmId
2515
+ }];
2516
+ }
2517
+ getParameters(input) {
2518
+ return [{
2519
+ key: "LOCATE",
2520
+ value: input.language.replace("-", "_")
2521
+ }];
2522
+ }
2523
+ };
2524
+ //#endregion
2525
+ //#region src/namespaces/pig-master/reports/maternity-piglet-death-analysis.ts
2526
+ var MaternityPigletDeathAnalysis = class extends Report {
2527
+ template = "@pig-master/maternity-piglet-death-analysis";
2528
+ fileName = "Análise de mortes de leitões na maternidade";
2529
+ async pdf(input) {
2530
+ await this.requestPdf({
2531
+ resources: [{
2532
+ key: "FARM_ID",
2533
+ value: input.farmId
2534
+ }],
2535
+ parameters: [
2536
+ {
2537
+ key: "DATE_BEGIN",
2538
+ value: input.dateRange?.start ?? null
2539
+ },
2540
+ {
2541
+ key: "DATE_END",
2542
+ value: input.dateRange?.end ?? null
2543
+ },
2544
+ {
2545
+ key: "CALENDAR",
2546
+ value: input.calendarType
2547
+ },
2548
+ {
2549
+ key: "GROUP",
2550
+ value: input.groupBy
2551
+ },
2552
+ {
2553
+ key: "FIELD",
2554
+ value: input.emphasis
2555
+ },
2556
+ {
2557
+ key: "PARITY",
2558
+ value: input.parity?.toString() ?? null
2559
+ },
2560
+ {
2561
+ key: "ORIGIN_ID",
2562
+ value: input.femaleSwineOriginId
2563
+ },
2564
+ {
2565
+ key: "BREED_ID",
2566
+ value: input.femaleSwineBreedId
2567
+ },
2568
+ {
2569
+ key: "FEMALE_SWINE_ID",
2570
+ value: input.femaleSwineId
2571
+ },
2572
+ {
2573
+ key: "EMPLOYEE_ID",
2574
+ value: input.employeeId
2575
+ },
2576
+ {
2577
+ key: "LOCATION_ID",
2578
+ value: input.locationId
2579
+ },
2580
+ {
2581
+ key: "PEN",
2582
+ value: input.pen
2583
+ },
2584
+ {
2585
+ key: "CAUSE_ID",
2586
+ value: input.causeId
2587
+ },
2588
+ {
2589
+ key: "SCORE_ID",
2590
+ value: input.scoreId
2591
+ },
2592
+ {
2593
+ key: "CONTEXT",
2594
+ value: input.context
2595
+ },
2596
+ {
2597
+ key: "INDUCTION",
2598
+ value: input.farrowingInduction
2599
+ },
2600
+ {
2601
+ key: "INTERVENTION",
2602
+ value: input.farrowingIntervention
2603
+ }
2604
+ ]
2605
+ });
2606
+ }
2607
+ };
2608
+ //#endregion
2609
+ //#region src/namespaces/pig-master/reports/maternity-piglet-death-collection-form.ts
2610
+ var MaternityPigletDeathCollectionForm = class extends Report {
2611
+ template = "@pig-master/maternity-piglet-death-collection-form";
2612
+ fileName = "Morte de leitão na maternidade";
2613
+ async pdf(input) {
2614
+ await this.requestPdf({
2615
+ resources: [{
2616
+ key: "FARM_ID",
2617
+ value: input.farmId
2618
+ }],
2619
+ parameters: [{
2620
+ key: "CALENDAR",
2621
+ value: input.calendarType
2622
+ }]
2623
+ });
2624
+ }
2625
+ };
2626
+ //#endregion
2627
+ //#region src/namespaces/pig-master/reports/maternity-piglet-death-list.ts
2628
+ var MaternityPigletDeathList = class extends Report {
2629
+ template = "@pig-master/maternity-piglet-death-list";
2630
+ fileName = "Listagem de mortes de leitão";
2631
+ async pdf(input) {
2632
+ await this.requestPdf({
2633
+ resources: this.getResources(input),
2634
+ parameters: [...this.getParameters(input), {
2635
+ key: "DATA_ONLY",
2636
+ value: false
2637
+ }]
2638
+ });
2639
+ }
2640
+ async csv(input) {
2641
+ await this.requestCsv({
2642
+ resources: this.getResources(input),
2643
+ parameters: [...this.getParameters(input), {
2644
+ key: "DATA_ONLY",
2645
+ value: true
2646
+ }]
2647
+ });
2648
+ }
2649
+ getResources(input) {
2650
+ return [{
2651
+ key: "FARM_ID",
2652
+ value: input.farmId
2653
+ }];
2654
+ }
2655
+ getParameters(input) {
2656
+ return [
2657
+ {
2658
+ key: "CALENDAR",
2659
+ value: input.calendarType
2660
+ },
2661
+ {
2662
+ key: "DATE_BEGIN",
2663
+ value: input.dateRange?.start ?? null
2664
+ },
2665
+ {
2666
+ key: "DATE_END",
2667
+ value: input.dateRange?.end ?? null
2668
+ },
2669
+ {
2670
+ key: "FEMALE_SWINE_ID",
2671
+ value: input.femaleSwineId
2672
+ },
2673
+ {
2674
+ key: "PARITY",
2675
+ value: input.parity?.toString() ?? null
2676
+ },
2677
+ {
2678
+ key: "CONTEXT",
2679
+ value: input.context
2680
+ },
2681
+ {
2682
+ key: "EMPLOYEE_ID",
2683
+ value: input.employeeId
2684
+ },
2685
+ {
2686
+ key: "CAUSE_ID",
2687
+ value: input.causeId
2688
+ }
2689
+ ];
2690
+ }
2691
+ };
2692
+ //#endregion
2693
+ //#region src/namespaces/pig-master/reports/maternity-piglet-transfer-collection-form.ts
2694
+ var MaternityPigletTransferCollectionForm = class extends Report {
2695
+ template = "@pig-master/maternity-piglet-transfer-collection-form";
2696
+ fileName = "Transferência de leitão na maternidade";
2697
+ async pdf(input) {
2698
+ await this.requestPdf({
2699
+ resources: [{
2700
+ key: "FARM_ID",
2701
+ value: input.farmId
2702
+ }],
2703
+ parameters: [{
2704
+ key: "CALENDAR",
2705
+ value: input.calendarType
2706
+ }]
2707
+ });
2708
+ }
2709
+ };
2710
+ //#endregion
2711
+ //#region src/namespaces/pig-master/reports/maternity-piglet-transfer-list.ts
2712
+ var MaternityPigletTransferList = class extends Report {
2713
+ template = "@pig-master/maternity-piglet-transfer-list";
2714
+ fileName = "Listagem de transferências de leitão";
2715
+ async pdf(input) {
2716
+ await this.requestPdf({
2717
+ resources: this.getResources(input),
2718
+ parameters: [...this.getParameters(input), {
2719
+ key: "DATA_ONLY",
2720
+ value: false
2721
+ }]
2722
+ });
2723
+ }
2724
+ async csv(input) {
2725
+ await this.requestCsv({
2726
+ resources: this.getResources(input),
2727
+ parameters: [...this.getParameters(input), {
2728
+ key: "DATA_ONLY",
2729
+ value: true
2730
+ }]
2731
+ });
2732
+ }
2733
+ getResources(input) {
2734
+ return [{
2735
+ key: "FARM_ID",
2736
+ value: input.farmId
2737
+ }];
2738
+ }
2739
+ getParameters(input) {
2740
+ return [
2741
+ {
2742
+ key: "DATE_BEGIN",
2743
+ value: input.dateRange?.start ?? null
2744
+ },
2745
+ {
2746
+ key: "DATE_END",
2747
+ value: input.dateRange?.end ?? null
2748
+ },
2749
+ {
2750
+ key: "CALENDAR",
2751
+ value: input.calendarType
2752
+ },
2753
+ {
2754
+ key: "DONOR_ID",
2755
+ value: input.donorId
2756
+ },
2757
+ {
2758
+ key: "DONOR_PARITY",
2759
+ value: input.donorParity?.toString() ?? null
2760
+ },
2761
+ {
2762
+ key: "DONOR_CONTEXT",
2763
+ value: input.donorContext
2764
+ },
2765
+ {
2766
+ key: "RECIPIENT_ID",
2767
+ value: input.recipientId
2768
+ },
2769
+ {
2770
+ key: "RECIPIENT_PARITY",
2771
+ value: input.recipientParity?.toString() ?? null
2772
+ },
2773
+ {
2774
+ key: "RECIPIENT_CONTEXT",
2775
+ value: input.recipientContext
2776
+ }
2777
+ ];
2778
+ }
2779
+ };
2780
+ //#endregion
2781
+ //#region src/namespaces/pig-master/reports/mating-analysis.ts
2782
+ var MatingAnalysis = class extends Report {
2783
+ template = "@pig-master/mating-analysis";
2784
+ fileName = "Análise de coberturas";
2785
+ async pdf(input) {
2786
+ await this.requestPdf({
2787
+ resources: [{
2788
+ key: "FARM_ID",
2789
+ value: input.farmId
2790
+ }],
2791
+ parameters: [
2792
+ {
2793
+ key: "DATE_BEGIN",
2794
+ value: input.dateRange?.start ?? null
2795
+ },
2796
+ {
2797
+ key: "DATE_END",
2798
+ value: input.dateRange?.end ?? null
2799
+ },
2800
+ {
2801
+ key: "CALENDAR",
2802
+ value: input.calendarType
2803
+ },
2804
+ {
2805
+ key: "GROUP",
2806
+ value: input.groupBy
2807
+ },
2808
+ {
2809
+ key: "FIELD",
2810
+ value: input.emphasis
2811
+ },
2812
+ {
2813
+ key: "PARITY",
2814
+ value: input.parity?.toString() ?? null
2815
+ },
2816
+ {
2817
+ key: "ORIGIN_ID",
2818
+ value: input.originId
2819
+ },
2820
+ {
2821
+ key: "BREED_ID",
2822
+ value: input.breedId
2823
+ },
2824
+ {
2825
+ key: "BIRTH_PLACE_ID",
2826
+ value: input.birthPlaceId
2827
+ },
2828
+ {
2829
+ key: "FEMALE_SWINE_ID",
2830
+ value: input.femaleSwineId
2831
+ },
2832
+ {
2833
+ key: "ARRIVAL_DATE_BEGIN",
2834
+ value: input.arrivalDateRange?.start ?? null
2835
+ },
2836
+ {
2837
+ key: "ARRIVAL_DATE_END",
2838
+ value: input.arrivalDateRange?.end ?? null
2839
+ },
2840
+ {
2841
+ key: "ARRIVAL_REPRODUCTIVE_STATUS",
2842
+ value: input.arrivalReproductiveStatus
2843
+ },
2844
+ {
2845
+ key: "MATING_CONTEXT",
2846
+ value: input.matingContext
2847
+ },
2848
+ {
2849
+ key: "METHOD",
2850
+ value: input.method
2851
+ },
2852
+ {
2853
+ key: "LOCATE",
2854
+ value: input.language.replace("-", "_")
2855
+ }
2856
+ ]
2857
+ });
2858
+ }
2859
+ };
2860
+ //#endregion
2861
+ //#region src/namespaces/pig-master/reports/mating-collection-form.ts
2862
+ var MatingCollectionForm = class extends Report {
2863
+ template = "@pig-master/mating-collection-form";
2864
+ fileName = "Cobertura";
2865
+ async pdf(input) {
2866
+ await this.requestPdf({
2867
+ resources: [{
2868
+ key: "FARM_ID",
2869
+ value: input.farmId
2870
+ }],
2871
+ parameters: [{
2872
+ key: "CALENDAR",
2873
+ value: input.calendarType
2874
+ }]
2875
+ });
2876
+ }
2877
+ };
2878
+ //#endregion
2879
+ //#region src/namespaces/pig-master/reports/mating-group-list.ts
2880
+ var MatingGroupList = class extends Report {
2881
+ template = "@pig-master/mating-group-list";
2882
+ fileName = "Listagem de grupos de cobertura";
2883
+ async pdf(input) {
2884
+ await this.requestPdf({
2885
+ resources: this.getResources(input),
2886
+ parameters: [...this.getParameters(input), {
2887
+ key: "DATA_ONLY",
2888
+ value: false
2889
+ }]
2890
+ });
2891
+ }
2892
+ async csv(input) {
2893
+ await this.requestCsv({
2894
+ resources: this.getResources(input),
2895
+ parameters: [...this.getParameters(input), {
2896
+ key: "DATA_ONLY",
2897
+ value: true
2898
+ }]
2899
+ });
2900
+ }
2901
+ getResources(input) {
2902
+ return [{
2903
+ key: "FARM_ID",
2904
+ value: input.farmId
2905
+ }];
2906
+ }
2907
+ getParameters(input) {
2908
+ return [{
2909
+ key: "LOCATE",
2910
+ value: input.language.replace("-", "_")
2911
+ }];
2912
+ }
2913
+ };
2914
+ //#endregion
2915
+ //#region src/namespaces/pig-master/reports/mating-list.ts
2916
+ var MatingList = class extends Report {
2917
+ template = "@pig-master/mating-list";
2918
+ fileName = "Listagem de coberturas";
2919
+ async pdf(input) {
2920
+ await this.requestPdf({
2921
+ resources: this.getResources(input),
2922
+ parameters: [...this.getParameters(input), {
2923
+ key: "DATA_ONLY",
2924
+ value: false
2925
+ }]
2926
+ });
2927
+ }
2928
+ async csv(input) {
2929
+ await this.requestCsv({
2930
+ resources: this.getResources(input),
2931
+ parameters: [...this.getParameters(input), {
2932
+ key: "DATA_ONLY",
2933
+ value: true
2934
+ }]
2935
+ });
2936
+ }
2937
+ getResources(input) {
2938
+ return [{
2939
+ key: "FARM_ID",
2940
+ value: input.farmId
2941
+ }];
2942
+ }
2943
+ getParameters(input) {
2944
+ return [
2945
+ {
2946
+ key: "DATE_BEGIN",
2947
+ value: input.dateRange?.start ?? null
2948
+ },
2949
+ {
2950
+ key: "DATE_END",
2951
+ value: input.dateRange?.end ?? null
2952
+ },
2953
+ {
2954
+ key: "CALENDAR",
2955
+ value: input.calendarType
2956
+ },
2957
+ {
2958
+ key: "MANAGEMENT_CYCLE",
2959
+ value: input.managementCycle
2960
+ },
2961
+ {
2962
+ key: "PARITY",
2963
+ value: input.parity?.toString() ?? null
2964
+ },
2965
+ {
2966
+ key: "ORIGIN_ID",
2967
+ value: input.originId
2968
+ },
2969
+ {
2970
+ key: "BREED_ID",
2971
+ value: input.breedId
2972
+ },
2973
+ {
2974
+ key: "BIRTH_PLACE_ID",
2975
+ value: input.birthPlaceId
2976
+ },
2977
+ {
2978
+ key: "FEMALE_SWINE_ID",
2979
+ value: input.femaleSwineId
2980
+ },
2981
+ {
2982
+ key: "ARRIVAL_DATE_BEGIN",
2983
+ value: input.arrivalDateRange?.start ?? null
2984
+ },
2985
+ {
2986
+ key: "ARRIVAL_DATE_END",
2987
+ value: input.arrivalDateRange?.end ?? null
2988
+ },
2989
+ {
2990
+ key: "ARRIVAL_REPRODUCTIVE_STATUS",
2991
+ value: input.arrivalReproductiveStatus
2992
+ },
2993
+ {
2994
+ key: "MATING_CONTEXT",
2995
+ value: input.matingContext
2996
+ },
2997
+ {
2998
+ key: "ORDER_BY_COLUMN",
2999
+ value: input.orderBy.column
3000
+ },
3001
+ {
3002
+ key: "ORDER_BY_DIRECTION",
3003
+ value: input.orderBy.direction
3004
+ },
3005
+ {
3006
+ key: "METHOD",
3007
+ value: input.method
3008
+ },
3009
+ {
3010
+ key: "LOCATE",
3011
+ value: input.language.replace("-", "_")
3012
+ }
3013
+ ];
3014
+ }
3015
+ };
3016
+ //#endregion
3017
+ //#region src/namespaces/pig-master/reports/mating-overview.ts
3018
+ var MatingOverview = class extends Report {
3019
+ template = "@pig-master/mating-overview";
3020
+ fileName = "Performance de coberturas";
3021
+ async pdf(input) {
3022
+ await this.requestPdf({
3023
+ resources: this.getResources(input),
3024
+ parameters: [...this.getParameters(input), {
3025
+ key: "DATA_ONLY",
3026
+ value: false
3027
+ }]
3028
+ });
3029
+ }
3030
+ async csv(input) {
3031
+ await this.requestCsv({
3032
+ resources: this.getResources(input),
3033
+ parameters: [...this.getParameters(input), {
3034
+ key: "DATA_ONLY",
3035
+ value: true
3036
+ }]
3037
+ });
3038
+ }
3039
+ getResources(input) {
3040
+ return [{
3041
+ key: "FARM_ID",
3042
+ value: input.farmId
3043
+ }];
3044
+ }
3045
+ getParameters(input) {
3046
+ return [
3047
+ {
3048
+ key: "DATE_BEGIN",
3049
+ value: input.dateRange.start
3050
+ },
3051
+ {
3052
+ key: "DATE_END",
3053
+ value: input.dateRange.end
3054
+ },
3055
+ {
3056
+ key: "CALENDAR",
3057
+ value: input.calendarType
3058
+ },
3059
+ {
3060
+ key: "ORIGIN_ID",
3061
+ value: input.originId
3062
+ },
3063
+ {
3064
+ key: "BREED_ID",
3065
+ value: input.breedId
3066
+ },
3067
+ {
3068
+ key: "BIRTH_PLACE_ID",
3069
+ value: input.birthPlaceId
3070
+ }
3071
+ ];
3072
+ }
3073
+ };
3074
+ //#endregion
3075
+ //#region src/namespaces/pig-master/reports/mbrf-female-swine-record.ts
3076
+ var MbrfFemaleSwineRecord = class extends Report {
3077
+ template = "@pig-master/mbrf-female-swine-record";
3078
+ fileName = "Ficha fim";
3079
+ async pdf(input) {
3080
+ await this.requestPdf({
3081
+ resources: [{
3082
+ key: "FARM_ID",
3083
+ value: input.farmId
3084
+ }],
3085
+ parameters: [{
3086
+ key: "FEMALE_SWINE_ID",
3087
+ value: input.femaleSwineId
3088
+ }, {
3089
+ key: "CALENDAR",
3090
+ value: input.calendarType
3091
+ }]
3092
+ });
3093
+ }
3094
+ };
3095
+ //#endregion
3096
+ //#region src/namespaces/pig-master/reports/nursery-piglet-death-collection-form.ts
3097
+ var NurseryPigletDeathCollectionForm = class extends Report {
3098
+ template = "@pig-master/nursery-piglet-death-collection-form";
3099
+ fileName = "Morte de leitão na creche";
3100
+ async pdf(input) {
3101
+ await this.requestPdf({
3102
+ resources: [{
3103
+ key: "FARM_ID",
3104
+ value: input.farmId
3105
+ }],
3106
+ parameters: [{
3107
+ key: "CALENDAR",
3108
+ value: input.calendarType
3109
+ }]
3110
+ });
3111
+ }
3112
+ };
3113
+ //#endregion
3114
+ //#region src/namespaces/pig-master/reports/origin-list.ts
3115
+ var OriginList = class extends Report {
3116
+ template = "@pig-master/origin-list";
3117
+ fileName = "Listagem de origens";
3118
+ async pdf(input) {
3119
+ await this.requestPdf({
3120
+ resources: this.getResources(input),
3121
+ parameters: [...this.getParameters(input), {
3122
+ key: "DATA_ONLY",
3123
+ value: false
3124
+ }]
3125
+ });
3126
+ }
3127
+ async csv(input) {
3128
+ await this.requestCsv({
3129
+ resources: this.getResources(input),
3130
+ parameters: [...this.getParameters(input), {
3131
+ key: "DATA_ONLY",
3132
+ value: true
3133
+ }]
3134
+ });
3135
+ }
3136
+ getResources(input) {
3137
+ return [{
3138
+ key: "FARM_ID",
3139
+ value: input.farmId
3140
+ }];
3141
+ }
3142
+ getParameters(input) {
3143
+ return [{
3144
+ key: "LOCATE",
3145
+ value: input.language.replace("-", "_")
3146
+ }];
3147
+ }
3148
+ };
3149
+ //#endregion
3150
+ //#region src/namespaces/pig-master/reports/parity-structure.ts
3151
+ var ParityStructure = class extends Report {
3152
+ template = "@pig-master/parity-structure";
3153
+ fileName = "Estrutura etária";
3154
+ async pdf(input) {
3155
+ await this.requestPdf({
3156
+ resources: [{
3157
+ key: "FARM_ID",
3158
+ value: input.farmId
3159
+ }],
3160
+ parameters: [
3161
+ {
3162
+ key: "LOCATE",
3163
+ value: input.language.replace("-", "_")
3164
+ },
3165
+ {
3166
+ key: "BREED_ID",
3167
+ value: input.breedId
3168
+ },
3169
+ {
3170
+ key: "BIRTH_PLACE_ID",
3171
+ value: input.birthPlaceId
3172
+ },
3173
+ {
3174
+ key: "ORIGIN_ID",
3175
+ value: input.originId
3176
+ },
3177
+ {
3178
+ key: "STATUS",
3179
+ value: input.status
3180
+ }
3181
+ ]
3182
+ });
3183
+ }
3184
+ };
3185
+ //#endregion
3186
+ //#region src/namespaces/pig-master/reports/pre-flushing-female-swine-list.ts
3187
+ var PreFlushingFemaleSwineList = class extends Report {
3188
+ template = "@pig-master/pre-flushing-female-swine-list";
3189
+ fileName = "Fêmeas pré-flushing";
3190
+ async pdf(input) {
3191
+ await this.requestPdf({
3192
+ resources: this.getResources(input),
3193
+ parameters: [...this.getParameters(input), {
3194
+ key: "DATA_ONLY",
3195
+ value: false
3196
+ }]
3197
+ });
3198
+ }
3199
+ async csv(input) {
3200
+ await this.requestCsv({
3201
+ resources: this.getResources(input),
3202
+ parameters: [...this.getParameters(input), {
3203
+ key: "DATA_ONLY",
3204
+ value: true
3205
+ }]
3206
+ });
3207
+ }
3208
+ getResources(input) {
3209
+ return [{
3210
+ key: "FARM_ID",
3211
+ value: input.farmId
3212
+ }];
3213
+ }
3214
+ getParameters(input) {
3215
+ return [
3216
+ {
3217
+ key: "DATE_BEGIN",
3218
+ value: input.dateRange.start
3219
+ },
3220
+ {
3221
+ key: "DATE_END",
3222
+ value: input.dateRange.end
3223
+ },
3224
+ {
3225
+ key: "CALENDAR",
3226
+ value: input.calendarType
3227
+ },
3228
+ {
3229
+ key: "ORIGIN_ID",
3230
+ value: input.originId
3231
+ }
3232
+ ];
3233
+ }
3234
+ };
3235
+ //#endregion
3236
+ //#region src/namespaces/pig-master/reports/pregnant-female-swine-list.ts
3237
+ var PregnantFemaleSwineList = class extends Report {
3238
+ template = "@pig-master/pregnant-female-swine-list";
3239
+ fileName = "Fêmeas gestantes";
3240
+ async pdf(input) {
3241
+ await this.requestPdf({
3242
+ resources: this.getResources(input),
3243
+ parameters: [{
3244
+ key: "DATA_ONLY",
3245
+ value: false
3246
+ }, ...this.getParameters(input)]
3247
+ });
3248
+ }
3249
+ async csv(input) {
3250
+ await this.requestCsv({
3251
+ resources: this.getResources(input),
3252
+ parameters: [{
3253
+ key: "DATA_ONLY",
3254
+ value: true
3255
+ }, ...this.getParameters(input)]
3256
+ });
3257
+ }
3258
+ getResources(input) {
3259
+ return [{
3260
+ key: "FARM_ID",
3261
+ value: input.farmId
3262
+ }];
3263
+ }
3264
+ getParameters(input) {
3265
+ return [
3266
+ {
3267
+ key: "CALENDAR",
3268
+ value: input.calendarType
3269
+ },
3270
+ {
3271
+ key: "MATING_DATE_BEGIN",
3272
+ value: input.matingDateRange.start
3273
+ },
3274
+ {
3275
+ key: "MATING_DATE_END",
3276
+ value: input.matingDateRange.end
3277
+ },
3278
+ {
3279
+ key: "GESTATION_WEEK",
3280
+ value: input.gestationWeek.toString()
3281
+ }
3282
+ ];
3283
+ }
3284
+ };
3285
+ //#endregion
3286
+ //#region src/namespaces/pig-master/reports/pregnant-female-swine-sale-list.ts
3287
+ var PregnantFemaleSwineSaleList = class extends Report {
3288
+ template = "@pig-master/pregnant-female-swine-sale-list";
3289
+ fileName = "Listagem de vendas de gestantes";
3290
+ async pdf(input) {
3291
+ await this.requestPdf({
3292
+ resources: this.getResources(input),
3293
+ parameters: [...this.getParameters(input), {
3294
+ key: "DATA_ONLY",
3295
+ value: false
3296
+ }]
3297
+ });
3298
+ }
3299
+ async csv(input) {
3300
+ await this.requestCsv({
3301
+ resources: this.getResources(input),
3302
+ parameters: [...this.getParameters(input), {
3303
+ key: "DATA_ONLY",
3304
+ value: true
3305
+ }]
3306
+ });
3307
+ }
3308
+ getResources(input) {
3309
+ return [{
3310
+ key: "FARM_ID",
3311
+ value: input.farmId
3312
+ }];
3313
+ }
3314
+ getParameters(input) {
3315
+ return [
3316
+ {
3317
+ key: "CALENDAR",
3318
+ value: input.calendarType
3319
+ },
3320
+ {
3321
+ key: "LOCATE",
3322
+ value: input.language.replace("-", "_")
3323
+ },
3324
+ {
3325
+ key: "DATE_BEGIN",
3326
+ value: input.dateRange?.start ?? null
3327
+ },
3328
+ {
3329
+ key: "DATE_END",
3330
+ value: input.dateRange?.end ?? null
3331
+ },
3332
+ {
3333
+ key: "MATING_DATE_BEGIN",
3334
+ value: input.matingDateRange?.start ?? null
3335
+ },
3336
+ {
3337
+ key: "MATING_DATE_END",
3338
+ value: input.matingDateRange?.end ?? null
3339
+ },
3340
+ {
3341
+ key: "RECIPIENT_ID",
3342
+ value: input.recipientId
3343
+ },
3344
+ {
3345
+ key: "ARRIVAL_DATE_BEGIN",
3346
+ value: input.arrivalDateRange?.start ?? null
3347
+ },
3348
+ {
3349
+ key: "ARRIVAL_DATE_END",
3350
+ value: input.arrivalDateRange?.end ?? null
3351
+ },
3352
+ {
3353
+ key: "ORDERBYCOLUMN",
3354
+ value: input.orderBy.column
3355
+ },
3356
+ {
3357
+ key: "ORDERBYDIRECTION",
3358
+ value: input.orderBy.direction
3359
+ },
3360
+ {
3361
+ key: "DUE_DATE_BEGIN",
3362
+ value: input.dueDateRange?.start ?? null
3363
+ },
3364
+ {
3365
+ key: "DUE_DATE_END",
3366
+ value: input.dueDateRange?.end ?? null
3367
+ },
3368
+ {
3369
+ key: "ORIGIN_ID",
3370
+ value: input.originId
3371
+ },
3372
+ {
3373
+ key: "BREED_ID",
3374
+ value: input.breedId
3375
+ },
3376
+ {
3377
+ key: "BIRTH_PLACE_ID",
3378
+ value: input.birthPlaceId
3379
+ },
3380
+ {
3381
+ key: "P_WEEKDAY",
3382
+ value: input.yearPeriod.weekday
3383
+ },
3384
+ {
3385
+ key: "P_WEEK",
3386
+ value: input.yearPeriod.week
3387
+ }
3388
+ ];
3389
+ }
3390
+ };
3391
+ //#endregion
3392
+ //#region src/namespaces/pig-master/reports/reproductive-failure-analysis.ts
3393
+ var ReproductiveFailureAnalysis = class extends Report {
3394
+ template = "@pig-master/reproductive-failure-analysis";
3395
+ fileName = "Análise de perdas de cobertura";
3396
+ async pdf(input) {
3397
+ await this.requestPdf({
3398
+ resources: [{
3399
+ key: "FARM_ID",
3400
+ value: input.farmId
3401
+ }],
3402
+ parameters: [
3403
+ {
3404
+ key: "GROUP",
3405
+ value: input.groupBy
3406
+ },
3407
+ {
3408
+ key: "FIELD",
3409
+ value: input.emphasis
3410
+ },
3411
+ {
3412
+ key: "CALENDAR",
3413
+ value: input.calendarType
3414
+ },
3415
+ {
3416
+ key: "DATE_BEGIN",
3417
+ value: input.dateRange?.start ?? null
3418
+ },
3419
+ {
3420
+ key: "DATE_END",
3421
+ value: input.dateRange?.end ?? null
3422
+ },
3423
+ {
3424
+ key: "MATING_DATE_BEGIN",
3425
+ value: input.matingDateRange?.start ?? null
3426
+ },
3427
+ {
3428
+ key: "MATING_DATE_END",
3429
+ value: input.matingDateRange?.end ?? null
3430
+ },
3431
+ {
3432
+ key: "FEMALE_SWINE_ID",
3433
+ value: input.femaleSwineId
3434
+ },
3435
+ {
3436
+ key: "PARITY",
3437
+ value: input.parity?.toString() ?? null
3438
+ },
3439
+ {
3440
+ key: "CONTEXT",
3441
+ value: input.context
3442
+ },
3443
+ {
3444
+ key: "BREED_ID",
3445
+ value: input.breedId
3446
+ },
3447
+ {
3448
+ key: "BIRTH_PLACE_ID",
3449
+ value: input.birthPlaceId
3450
+ },
3451
+ {
3452
+ key: "ORIGIN_ID",
3453
+ value: input.originId
3454
+ },
3455
+ {
3456
+ key: "LOCATE",
3457
+ value: input.language.replace("-", "_")
3458
+ }
3459
+ ]
3460
+ });
3461
+ }
3462
+ };
3463
+ //#endregion
3464
+ //#region src/namespaces/pig-master/reports/reproductive-failure-collection-form.ts
3465
+ var ReproductiveFailureCollectionForm = class extends Report {
3466
+ template = "@pig-master/reproductive-failure-collection-form";
3467
+ fileName = "Perda de cobertura";
3468
+ async pdf(input) {
3469
+ await this.requestPdf({
3470
+ resources: [{
3471
+ key: "FARM_ID",
3472
+ value: input.farmId
3473
+ }],
3474
+ parameters: [{
3475
+ key: "CALENDAR",
3476
+ value: input.calendarType
3477
+ }]
3478
+ });
3479
+ }
3480
+ };
3481
+ //#endregion
3482
+ //#region src/namespaces/pig-master/reports/reproductive-failure-list.ts
3483
+ var ReproductiveFailureList = class extends Report {
3484
+ template = "@pig-master/reproductive-failure-list";
3485
+ fileName = "Perdas de cobertura";
3486
+ async pdf(input) {
3487
+ await this.requestPdf({
3488
+ resources: this.getResources(input),
3489
+ parameters: [...this.getParameters(input), {
3490
+ key: "DATA_ONLY",
3491
+ value: false
3492
+ }]
3493
+ });
3494
+ }
3495
+ async csv(input) {
3496
+ await this.requestCsv({
3497
+ resources: this.getResources(input),
3498
+ parameters: [...this.getParameters(input), {
3499
+ key: "DATA_ONLY",
3500
+ value: true
3501
+ }]
3502
+ });
3503
+ }
3504
+ getResources(input) {
3505
+ return [{
3506
+ key: "FARM_ID",
3507
+ value: input.farmId
3508
+ }];
3509
+ }
3510
+ getParameters(input) {
3511
+ return [
3512
+ {
3513
+ key: "DATE_BEGIN",
3514
+ value: input.dateRange?.start ?? null
3515
+ },
3516
+ {
3517
+ key: "DATE_END",
3518
+ value: input.dateRange?.end ?? null
3519
+ },
3520
+ {
3521
+ key: "CALENDAR",
3522
+ value: input.calendarType
3523
+ },
3524
+ {
3525
+ key: "PARITY",
3526
+ value: input.parity?.toString() ?? null
3527
+ },
3528
+ {
3529
+ key: "ORIGIN_ID",
3530
+ value: input.originId
3531
+ },
3532
+ {
3533
+ key: "BREED_ID",
3534
+ value: input.breedId
3535
+ },
3536
+ {
3537
+ key: "BIRTH_PLACE_ID",
3538
+ value: input.birthPlaceId
3539
+ },
3540
+ {
3541
+ key: "FEMALE_SWINE_ID",
3542
+ value: input.femaleSwineId
3543
+ },
3544
+ {
3545
+ key: "MATING_DATE_BEGIN",
3546
+ value: input.matingDateRange?.start ?? null
3547
+ },
3548
+ {
3549
+ key: "MATING_DATE_END",
3550
+ value: input.matingDateRange?.end ?? null
3551
+ },
3552
+ {
3553
+ key: "CONTEXT",
3554
+ value: input.context
3555
+ },
3556
+ {
3557
+ key: "ORDERBYCOLUMN",
3558
+ value: input.orderBy.column
3559
+ },
3560
+ {
3561
+ key: "ORDERBYDIRECTION",
3562
+ value: input.orderBy.direction
3563
+ }
3564
+ ];
3565
+ }
3566
+ };
3567
+ //#endregion
3568
+ //#region src/namespaces/pig-master/reports/score-list.ts
3569
+ var ScoreList = class extends Report {
3570
+ template = "@pig-master/score-list";
3571
+ fileName = "Listagem de escores";
3572
+ async pdf(input) {
3573
+ await this.requestPdf({
3574
+ resources: this.getResources(input),
3575
+ parameters: [...this.getParameters(input), {
3576
+ key: "DATA_ONLY",
3577
+ value: false
3578
+ }]
3579
+ });
3580
+ }
3581
+ async csv(input) {
3582
+ await this.requestCsv({
3583
+ resources: this.getResources(input),
3584
+ parameters: [...this.getParameters(input), {
3585
+ key: "DATA_ONLY",
3586
+ value: true
3587
+ }]
3588
+ });
3589
+ }
3590
+ getResources(input) {
3591
+ return [{
3592
+ key: "FARM_ID",
3593
+ value: input.farmId
3594
+ }];
3595
+ }
3596
+ getParameters(input) {
3597
+ return [{
3598
+ key: "LOCATE",
3599
+ value: input.language.replace("-", "_")
3600
+ }];
3601
+ }
3602
+ };
3603
+ //#endregion
3604
+ //#region src/namespaces/pig-master/reports/weaning-analysis.ts
3605
+ var WeaningAnalysis = class extends Report {
3606
+ template = "@pig-master/weaning-analysis";
3607
+ fileName = "Análise de desmames";
3608
+ async pdf(input) {
3609
+ await this.requestPdf({
3610
+ resources: [{
3611
+ key: "FARM_ID",
3612
+ value: input.farmId
3613
+ }],
3614
+ parameters: [
3615
+ {
3616
+ key: "DATE_BEGIN",
3617
+ value: input.dateRange?.start ?? null
3618
+ },
3619
+ {
3620
+ key: "DATE_END",
3621
+ value: input.dateRange?.end ?? null
3622
+ },
3623
+ {
3624
+ key: "CALENDAR",
3625
+ value: input.calendarType
3626
+ },
3627
+ {
3628
+ key: "GROUP",
3629
+ value: input.groupBy
3630
+ },
3631
+ {
3632
+ key: "FIELD",
3633
+ value: input.emphasis
3634
+ },
3635
+ {
3636
+ key: "PARITY",
3637
+ value: input.parity?.toString() ?? null
3638
+ },
3639
+ {
3640
+ key: "ORIGIN_ID",
3641
+ value: input.originId
3642
+ },
3643
+ {
3644
+ key: "BREED_ID",
3645
+ value: input.breedId
3646
+ },
3647
+ {
3648
+ key: "BIRTH_PLACE_ID",
3649
+ value: input.birthPlaceId
3650
+ },
3651
+ {
3652
+ key: "FEMALE_SWINE_ID",
3653
+ value: input.femaleSwineId
3654
+ },
3655
+ {
3656
+ key: "MATING_DATE_BEGIN",
3657
+ value: input.matingDateRange?.start ?? null
3658
+ },
3659
+ {
3660
+ key: "MATING_DATE_END",
3661
+ value: input.matingDateRange?.end ?? null
3662
+ },
3663
+ {
3664
+ key: "CONTEXT",
3665
+ value: input.context
3666
+ },
3667
+ {
3668
+ key: "PIGLET_BATCH_ID",
3669
+ value: input.nurseryPigletBatchId
3670
+ }
3671
+ ]
3672
+ });
3673
+ }
3674
+ };
3675
+ //#endregion
3676
+ //#region src/namespaces/pig-master/reports/weaning-collection-form.ts
3677
+ var WeaningCollectionForm = class extends Report {
3678
+ template = "@pig-master/weaning-collection-form";
3679
+ fileName = "Desmame";
3680
+ async pdf(input) {
3681
+ await this.requestPdf({
3682
+ resources: [{
3683
+ key: "FARM_ID",
3684
+ value: input.farmId
3685
+ }],
3686
+ parameters: [{
3687
+ key: "CALENDAR",
3688
+ value: input.calendarType
3689
+ }]
3690
+ });
3691
+ }
3692
+ };
3693
+ //#endregion
3694
+ //#region src/namespaces/pig-master/reports/weaning-forecast.ts
3695
+ var WeaningForecast = class extends Report {
3696
+ template = "@pig-master/weaning-forecast";
3697
+ fileName = "Previsão de desmames";
3698
+ async pdf(input) {
3699
+ await this.requestPdf({
3700
+ resources: this.getResources(input),
3701
+ parameters: [...this.getParameters(input), {
3702
+ key: "DATA_ONLY",
3703
+ value: false
3704
+ }]
3705
+ });
3706
+ }
3707
+ async csv(input) {
3708
+ await this.requestCsv({
3709
+ resources: this.getResources(input),
3710
+ parameters: [...this.getParameters(input), {
3711
+ key: "DATA_ONLY",
3712
+ value: true
3713
+ }]
3714
+ });
3715
+ }
3716
+ getResources(input) {
3717
+ return [{
3718
+ key: "FARM_ID",
3719
+ value: input.farmId
3720
+ }];
3721
+ }
3722
+ getParameters(input) {
3723
+ return [
3724
+ {
3725
+ key: "WEANING_DATE",
3726
+ value: input.weaningDate
3727
+ },
3728
+ {
3729
+ key: "CALENDAR",
3730
+ value: input.calendarType
3731
+ },
3732
+ {
3733
+ key: "PARITY",
3734
+ value: input.parity?.toString() ?? null
3735
+ },
3736
+ {
3737
+ key: "LOCATION_ID",
3738
+ value: input.locationId
3739
+ },
3740
+ {
3741
+ key: "PEN",
3742
+ value: input.pen
3743
+ },
3744
+ {
3745
+ key: "MIN_LACTATION_DAYS",
3746
+ value: input.lactationLengthRange?.start.toString() ?? null
3747
+ },
3748
+ {
3749
+ key: "MAX_LACTATION_DAYS",
3750
+ value: input.lactationLengthRange?.end.toString() ?? null
3751
+ },
3752
+ {
3753
+ key: "CONTEXT",
3754
+ value: input.context
3755
+ },
3756
+ {
3757
+ key: "ORDERBYDIRECTION",
3758
+ value: input.orderBy.direction
3759
+ },
3760
+ {
3761
+ key: "ORDERBYCOLUMN",
3762
+ value: toSnakeCase(input.orderBy.column)
3763
+ }
3764
+ ];
3765
+ }
3766
+ };
3767
+ //#endregion
3768
+ //#region src/namespaces/pig-master/reports/weaning-list.ts
3769
+ var WeaningList = class extends Report {
3770
+ template = "@pig-master/weaning-list";
3771
+ fileName = "Listagem de desmames";
3772
+ async pdf(input) {
3773
+ await this.requestPdf({
3774
+ resources: this.getResources(input),
3775
+ parameters: [...this.getParameters(input), {
3776
+ key: "DATA_ONLY",
3777
+ value: false
3778
+ }]
3779
+ });
3780
+ }
3781
+ async csv(input) {
3782
+ await this.requestCsv({
3783
+ resources: this.getResources(input),
3784
+ parameters: [...this.getParameters(input), {
3785
+ key: "DATA_ONLY",
3786
+ value: true
3787
+ }]
3788
+ });
3789
+ }
3790
+ getResources(input) {
3791
+ return [{
3792
+ key: "FARM_ID",
3793
+ value: input.farmId
3794
+ }];
3795
+ }
3796
+ getParameters(input) {
3797
+ let orderByColumn = input.orderBy.column;
3798
+ switch (orderByColumn) {
3799
+ case "createdAt":
3800
+ orderByColumn = "created_at";
3801
+ break;
3802
+ case "weanedPiglets": orderByColumn = "weaned_piglets";
3803
+ }
3804
+ return [
3805
+ {
3806
+ key: "DATE_BEGIN",
3807
+ value: input.dateRange?.start ?? null
3808
+ },
3809
+ {
3810
+ key: "DATE_END",
3811
+ value: input.dateRange?.end ?? null
3812
+ },
3813
+ {
3814
+ key: "CALENDAR",
3815
+ value: input.calendarType
3816
+ },
3817
+ {
3818
+ key: "PARITY",
3819
+ value: input.parity?.toString() ?? null
3820
+ },
3821
+ {
3822
+ key: "ORIGIN_ID",
3823
+ value: input.originId
3824
+ },
3825
+ {
3826
+ key: "BREED_ID",
3827
+ value: input.breedId
3828
+ },
3829
+ {
3830
+ key: "BIRTH_PLACE_ID",
3831
+ value: input.birthPlaceId
3832
+ },
3833
+ {
3834
+ key: "FEMALE_SWINE_ID",
3835
+ value: input.femaleSwineId
3836
+ },
3837
+ {
3838
+ key: "MATING_DATE_BEGIN",
3839
+ value: input.matingDateRange?.start ?? null
3840
+ },
3841
+ {
3842
+ key: "MATING_DATE_END",
3843
+ value: input.matingDateRange?.end ?? null
3844
+ },
3845
+ {
3846
+ key: "CONTEXT",
3847
+ value: input.context
3848
+ },
3849
+ {
3850
+ key: "PIGLET_BATCH_ID",
3851
+ value: input.nurseryPigletBatchId
3852
+ },
3853
+ {
3854
+ key: "ORDERBYDIRECTION",
3855
+ value: input.orderBy.direction
3856
+ },
3857
+ {
3858
+ key: "ORDERBYCOLUMN",
3859
+ value: orderByColumn
3860
+ }
3861
+ ];
3862
+ }
3863
+ };
3864
+ //#endregion
3865
+ //#region src/namespaces/pig-master/reports/weaning-overview.ts
3866
+ var WeaningOverview = class extends Report {
3867
+ template = "@pig-master/weaning-overview";
3868
+ fileName = "Performance de desmames";
3869
+ async pdf(input) {
3870
+ await this.requestPdf({
3871
+ resources: this.getResources(input),
3872
+ parameters: [...this.getParameters(input), {
3873
+ key: "DATA_ONLY",
3874
+ value: false
3875
+ }]
3876
+ });
3877
+ }
3878
+ async csv(input) {
3879
+ await this.requestCsv({
3880
+ resources: this.getResources(input),
3881
+ parameters: [...this.getParameters(input), {
3882
+ key: "DATA_ONLY",
3883
+ value: true
3884
+ }]
3885
+ });
3886
+ }
3887
+ getResources(input) {
3888
+ return [{
3889
+ key: "FARM_ID",
3890
+ value: input.farmId
3891
+ }];
3892
+ }
3893
+ getParameters(input) {
3894
+ return [
3895
+ {
3896
+ key: "DATE_BEGIN",
3897
+ value: input.dateRange.start
3898
+ },
3899
+ {
3900
+ key: "DATE_END",
3901
+ value: input.dateRange.end
3902
+ },
3903
+ {
3904
+ key: "CALENDAR",
3905
+ value: input.calendarType
3906
+ },
3907
+ {
3908
+ key: "ORIGIN_ID",
3909
+ value: input.originId
3910
+ },
3911
+ {
3912
+ key: "BREED_ID",
3913
+ value: input.breedId
3914
+ },
3915
+ {
3916
+ key: "BIRTH_PLACE_ID",
3917
+ value: input.birthPlaceId
3918
+ }
3919
+ ];
3920
+ }
3921
+ };
3922
+ //#endregion
3923
+ //#region src/namespaces/pig-master/index.ts
3924
+ var PigMaster = class {
3925
+ birthPlaceList;
3926
+ boarByBreedList;
3927
+ boarDeathCollectionForm;
3928
+ boarDeathList;
3929
+ boarDiscardCollectionForm;
3930
+ boarDiscardList;
3931
+ boarEarTagReplacementList;
3932
+ boarsInventory;
3933
+ boarTreatmentCollectionForm;
3934
+ boarTreatmentList;
3935
+ breedingMonitor;
3936
+ breedList;
3937
+ causeList;
3938
+ drugList;
3939
+ employeeList;
3940
+ farmSummary;
3941
+ farrowingAnalysis;
3942
+ farrowingCollectionForm;
3943
+ farrowingTypeList;
3944
+ femaleSwineArrivalMonitoring;
3945
+ femaleSwineByBreedList;
3946
+ femaleSwineByParityList;
3947
+ femaleSwineByStatusList;
3948
+ femaleSwineByTraceabilityList;
3949
+ femaleSwineDeathAnalysis;
3950
+ femaleSwineDeathCollectionForm;
3951
+ femaleSwineDeathList;
3952
+ femaleSwineDiscardAnalysis;
3953
+ femaleSwineDiscardCollectionForm;
3954
+ femaleSwineDiscardList;
3955
+ femaleSwineEarTagReplacementList;
3956
+ femaleSwineInventory;
3957
+ femaleSwinePendingActionList;
3958
+ femaleSwinePreDiscardList;
3959
+ femaleSwineRecord;
3960
+ femaleSwineSalePlanningList;
3961
+ femaleSwineTreatmentCollectionForm;
3962
+ femaleSwineTreatmentList;
3963
+ finishingPigletDeathCollectionForm;
3964
+ flushingFemaleSwineList;
3965
+ flushingMonitor;
3966
+ giltInventory;
3967
+ gtaList;
3968
+ heatDetectionCollectionForm;
3969
+ heatDetectionList;
3970
+ heatMonitoring;
3971
+ locationList;
3972
+ maternityPigletDeathCollectionForm;
3973
+ maternityPigletTransferCollectionForm;
3974
+ matingAnalysis;
3975
+ matingCollectionForm;
3976
+ matingGroupList;
3977
+ matingList;
3978
+ matingOverview;
3979
+ mbrfFemaleSwineRecord;
3980
+ nurseryPigletDeathCollectionForm;
3981
+ originList;
3982
+ parityStructure;
3983
+ preFlushingFemaleSwineList;
3984
+ pregnantFemaleSwineList;
3985
+ pregnantFemaleSwineSaleList;
3986
+ reproductiveFailureAnalysis;
3987
+ reproductiveFailureCollectionForm;
3988
+ reproductiveFailureList;
3989
+ scoreList;
3990
+ weaningAnalysis;
3991
+ weaningCollectionForm;
3992
+ maternityPigletDeathList;
3993
+ weaningList;
3994
+ farrowingList;
3995
+ maternityPigletTransferList;
3996
+ weaningForecast;
3997
+ farrowingForecast;
3998
+ breedingProjection;
3999
+ maternityPigletDeathAnalysis;
4000
+ weaningOverview;
4001
+ constructor(http) {
4002
+ this.birthPlaceList = new BirthPlaceList(http);
4003
+ this.boarByBreedList = new BoarByBreedList(http);
4004
+ this.boarDeathCollectionForm = new BoarDeathCollectionForm(http);
4005
+ this.boarDeathList = new BoarDeathList(http);
4006
+ this.boarDiscardCollectionForm = new BoarDiscardCollectionForm(http);
4007
+ this.boarDiscardList = new BoarDiscardList(http);
4008
+ this.boarEarTagReplacementList = new BoarEarTagReplacementList(http);
4009
+ this.boarsInventory = new BoarsInventory(http);
4010
+ this.boarTreatmentCollectionForm = new BoarTreatmentCollectionForm(http);
4011
+ this.boarTreatmentList = new BoarTreatmentList(http);
4012
+ this.breedingMonitor = new BreedingMonitor(http);
4013
+ this.breedList = new BreedList(http);
4014
+ this.causeList = new CauseList(http);
4015
+ this.drugList = new DrugList(http);
4016
+ this.employeeList = new EmployeeList(http);
4017
+ this.farmSummary = new FarmSummary(http);
4018
+ this.farrowingAnalysis = new FarrowingAnalysis(http);
4019
+ this.farrowingCollectionForm = new FarrowingCollectionForm(http);
4020
+ this.farrowingTypeList = new FarrowingTypeList(http);
4021
+ this.femaleSwineArrivalMonitoring = new FemaleSwineArrivalMonitoring(http);
4022
+ this.femaleSwineByBreedList = new FemaleSwineByBreedList(http);
4023
+ this.femaleSwineByParityList = new FemaleSwineByParityList(http);
4024
+ this.femaleSwineByStatusList = new FemaleSwineByStatusList(http);
4025
+ this.femaleSwineByTraceabilityList = new FemaleSwineByTraceabilityList(http);
4026
+ this.femaleSwineDeathAnalysis = new FemaleSwineDeathAnalysis(http);
4027
+ this.femaleSwineDeathCollectionForm = new FemaleSwineDeathCollectionForm(http);
4028
+ this.femaleSwineDeathList = new FemaleSwineDeathList(http);
4029
+ this.femaleSwineDiscardAnalysis = new FemaleSwineDiscardAnalysis(http);
4030
+ this.femaleSwineDiscardCollectionForm = new FemaleSwineDiscardCollectionForm(http);
4031
+ this.femaleSwineDiscardList = new FemaleSwineDiscardList(http);
4032
+ this.femaleSwineEarTagReplacementList = new FemaleSwineEarTagReplacementList(http);
4033
+ this.femaleSwineInventory = new FemaleSwineInventory(http);
4034
+ this.femaleSwinePendingActionList = new FemaleSwinePendingActionList(http);
4035
+ this.femaleSwinePreDiscardList = new FemaleSwinePreDiscardList(http);
4036
+ this.femaleSwineRecord = new FemaleSwineRecord(http);
4037
+ this.femaleSwineSalePlanningList = new FemaleSwineSalePlanningList(http);
4038
+ this.femaleSwineTreatmentCollectionForm = new FemaleSwineTreatmentCollectionForm(http);
4039
+ this.femaleSwineTreatmentList = new FemaleSwineTreatmentList(http);
4040
+ this.finishingPigletDeathCollectionForm = new FinishingPigletDeathCollectionForm(http);
4041
+ this.flushingFemaleSwineList = new FlushingFemaleSwineList(http);
4042
+ this.flushingMonitor = new FlushingMonitor(http);
4043
+ this.giltInventory = new GiltInventory(http);
4044
+ this.gtaList = new GtaList(http);
4045
+ this.heatDetectionCollectionForm = new HeatDetectionCollectionForm(http);
4046
+ this.heatDetectionList = new HeatDetectionList(http);
4047
+ this.heatMonitoring = new HeatMonitoring(http);
4048
+ this.locationList = new LocationList(http);
4049
+ this.maternityPigletDeathCollectionForm = new MaternityPigletDeathCollectionForm(http);
4050
+ this.maternityPigletTransferCollectionForm = new MaternityPigletTransferCollectionForm(http);
4051
+ this.matingAnalysis = new MatingAnalysis(http);
4052
+ this.matingCollectionForm = new MatingCollectionForm(http);
4053
+ this.matingGroupList = new MatingGroupList(http);
4054
+ this.matingList = new MatingList(http);
4055
+ this.matingOverview = new MatingOverview(http);
4056
+ this.mbrfFemaleSwineRecord = new MbrfFemaleSwineRecord(http);
4057
+ this.nurseryPigletDeathCollectionForm = new NurseryPigletDeathCollectionForm(http);
4058
+ this.originList = new OriginList(http);
4059
+ this.parityStructure = new ParityStructure(http);
4060
+ this.preFlushingFemaleSwineList = new PreFlushingFemaleSwineList(http);
4061
+ this.pregnantFemaleSwineList = new PregnantFemaleSwineList(http);
4062
+ this.pregnantFemaleSwineSaleList = new PregnantFemaleSwineSaleList(http);
4063
+ this.reproductiveFailureAnalysis = new ReproductiveFailureAnalysis(http);
4064
+ this.reproductiveFailureCollectionForm = new ReproductiveFailureCollectionForm(http);
4065
+ this.reproductiveFailureList = new ReproductiveFailureList(http);
4066
+ this.scoreList = new ScoreList(http);
4067
+ this.weaningAnalysis = new WeaningAnalysis(http);
4068
+ this.weaningCollectionForm = new WeaningCollectionForm(http);
4069
+ this.maternityPigletDeathList = new MaternityPigletDeathList(http);
4070
+ this.weaningList = new WeaningList(http);
4071
+ this.farrowingList = new FarrowingList(http);
4072
+ this.maternityPigletTransferList = new MaternityPigletTransferList(http);
4073
+ this.weaningForecast = new WeaningForecast(http);
4074
+ this.farrowingForecast = new FarrowingForecast(http);
4075
+ this.breedingProjection = new BreedingProjection(http);
4076
+ this.maternityPigletDeathAnalysis = new MaternityPigletDeathAnalysis(http);
4077
+ this.weaningOverview = new WeaningOverview(http);
4078
+ }
4079
+ };
4080
+ //#endregion
4081
+ //#region src/jaspion.ts
4082
+ var Jaspion = class {
4083
+ pigMaster;
4084
+ constructor({ http }) {
4085
+ this.pigMaster = new PigMaster(http);
4086
+ }
4087
+ };
4088
+ //#endregion
4089
+ exports.Jaspion = Jaspion;
4090
+
4091
+ //# sourceMappingURL=index.cjs.map