@gesagro/jaspion-sdk 2.1.1 → 2.1.3

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 CHANGED
@@ -1013,6 +1013,50 @@ var FarrowingList = class extends Report {
1013
1013
  }
1014
1014
  };
1015
1015
  //#endregion
1016
+ //#region src/namespaces/pig-master/reports/farrowing-rate.ts
1017
+ var FarrowingRate = class extends Report {
1018
+ template = "@pig-master/farrowing-rate";
1019
+ fileName = "Taxa de parição";
1020
+ async pdf(input) {
1021
+ await this.requestPdf({
1022
+ resources: [{
1023
+ key: "FARM_ID",
1024
+ value: input.farmId
1025
+ }],
1026
+ parameters: [
1027
+ {
1028
+ key: "DATE_BEGIN",
1029
+ value: input.dateRange.start
1030
+ },
1031
+ {
1032
+ key: "DATE_END",
1033
+ value: input.dateRange.end
1034
+ },
1035
+ {
1036
+ key: "CALENDAR",
1037
+ value: input.calendarType
1038
+ },
1039
+ {
1040
+ key: "PARITY",
1041
+ value: input.parity?.toString() ?? null
1042
+ },
1043
+ {
1044
+ key: "BREED_ID",
1045
+ value: input.femaleSwineBreedId
1046
+ },
1047
+ {
1048
+ key: "BIRTH_PLACE_ID",
1049
+ value: input.femaleSwineBirthPlaceId
1050
+ },
1051
+ {
1052
+ key: "ORIGIN_ID",
1053
+ value: input.femaleSwineOriginId
1054
+ }
1055
+ ]
1056
+ });
1057
+ }
1058
+ };
1059
+ //#endregion
1016
1060
  //#region src/namespaces/pig-master/reports/farrowing-type-list.ts
1017
1061
  var FarrowingTypeList = class extends Report {
1018
1062
  template = "@pig-master/farrowing-type-list";
@@ -3565,6 +3609,34 @@ var ReproductiveFailureList = class extends Report {
3565
3609
  }
3566
3610
  };
3567
3611
  //#endregion
3612
+ //#region src/namespaces/pig-master/reports/retention-rate.ts
3613
+ var RetentionRate = class extends Report {
3614
+ template = "@pig-master/retention-rate";
3615
+ fileName = "Taxa de retenção";
3616
+ async pdf(input) {
3617
+ await this.requestPdf({
3618
+ resources: [{
3619
+ key: "FARM_ID",
3620
+ value: input.farmId
3621
+ }],
3622
+ parameters: [
3623
+ {
3624
+ key: "CALENDAR",
3625
+ value: input.calendarType
3626
+ },
3627
+ {
3628
+ key: "DATE_BEGIN",
3629
+ value: input.dateRange.start
3630
+ },
3631
+ {
3632
+ key: "DATE_END",
3633
+ value: input.dateRange.end
3634
+ }
3635
+ ]
3636
+ });
3637
+ }
3638
+ };
3639
+ //#endregion
3568
3640
  //#region src/namespaces/pig-master/reports/score-list.ts
3569
3641
  var ScoreList = class extends Report {
3570
3642
  template = "@pig-master/score-list";
@@ -3986,12 +4058,14 @@ var PigMaster = class {
3986
4058
  reproductiveFailureAnalysis;
3987
4059
  reproductiveFailureCollectionForm;
3988
4060
  reproductiveFailureList;
4061
+ retentionRate;
3989
4062
  scoreList;
3990
4063
  weaningAnalysis;
3991
4064
  weaningCollectionForm;
3992
4065
  maternityPigletDeathList;
3993
4066
  weaningList;
3994
4067
  farrowingList;
4068
+ farrowingRate;
3995
4069
  maternityPigletTransferList;
3996
4070
  weaningForecast;
3997
4071
  farrowingForecast;
@@ -4063,12 +4137,14 @@ var PigMaster = class {
4063
4137
  this.reproductiveFailureAnalysis = new ReproductiveFailureAnalysis(http);
4064
4138
  this.reproductiveFailureCollectionForm = new ReproductiveFailureCollectionForm(http);
4065
4139
  this.reproductiveFailureList = new ReproductiveFailureList(http);
4140
+ this.retentionRate = new RetentionRate(http);
4066
4141
  this.scoreList = new ScoreList(http);
4067
4142
  this.weaningAnalysis = new WeaningAnalysis(http);
4068
4143
  this.weaningCollectionForm = new WeaningCollectionForm(http);
4069
4144
  this.maternityPigletDeathList = new MaternityPigletDeathList(http);
4070
4145
  this.weaningList = new WeaningList(http);
4071
4146
  this.farrowingList = new FarrowingList(http);
4147
+ this.farrowingRate = new FarrowingRate(http);
4072
4148
  this.maternityPigletTransferList = new MaternityPigletTransferList(http);
4073
4149
  this.weaningForecast = new WeaningForecast(http);
4074
4150
  this.farrowingForecast = new FarrowingForecast(http);