@gesagro/jaspion-sdk 2.1.0 → 2.1.2

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
@@ -3565,6 +3565,34 @@ var ReproductiveFailureList = class extends Report {
3565
3565
  }
3566
3566
  };
3567
3567
  //#endregion
3568
+ //#region src/namespaces/pig-master/reports/retention-rate.ts
3569
+ var RetentionRate = class extends Report {
3570
+ template = "@pig-master/retention-rate";
3571
+ fileName = "Taxa de retenção";
3572
+ async pdf(input) {
3573
+ await this.requestPdf({
3574
+ resources: [{
3575
+ key: "FARM_ID",
3576
+ value: input.farmId
3577
+ }],
3578
+ parameters: [
3579
+ {
3580
+ key: "CALENDAR",
3581
+ value: input.calendarType
3582
+ },
3583
+ {
3584
+ key: "DATE_BEGIN",
3585
+ value: input.dateRange?.start ?? null
3586
+ },
3587
+ {
3588
+ key: "DATE_END",
3589
+ value: input.dateRange?.end ?? null
3590
+ }
3591
+ ]
3592
+ });
3593
+ }
3594
+ };
3595
+ //#endregion
3568
3596
  //#region src/namespaces/pig-master/reports/score-list.ts
3569
3597
  var ScoreList = class extends Report {
3570
3598
  template = "@pig-master/score-list";
@@ -3986,6 +4014,7 @@ var PigMaster = class {
3986
4014
  reproductiveFailureAnalysis;
3987
4015
  reproductiveFailureCollectionForm;
3988
4016
  reproductiveFailureList;
4017
+ retentionRate;
3989
4018
  scoreList;
3990
4019
  weaningAnalysis;
3991
4020
  weaningCollectionForm;
@@ -4063,6 +4092,7 @@ var PigMaster = class {
4063
4092
  this.reproductiveFailureAnalysis = new ReproductiveFailureAnalysis(http);
4064
4093
  this.reproductiveFailureCollectionForm = new ReproductiveFailureCollectionForm(http);
4065
4094
  this.reproductiveFailureList = new ReproductiveFailureList(http);
4095
+ this.retentionRate = new RetentionRate(http);
4066
4096
  this.scoreList = new ScoreList(http);
4067
4097
  this.weaningAnalysis = new WeaningAnalysis(http);
4068
4098
  this.weaningCollectionForm = new WeaningCollectionForm(http);