@gesagro/jaspion-sdk 2.0.7 → 2.0.8
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.d.mts +37 -2
- package/dist/index.d.ts +37 -2
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1778,6 +1778,39 @@ var LocationList = class extends Report {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
};
|
|
1780
1780
|
|
|
1781
|
+
// src/namespaces/pig-master/reports/maternity-piglet-death-analysis.ts
|
|
1782
|
+
var MaternityPigletDeathAnalysis = class extends Report {
|
|
1783
|
+
constructor() {
|
|
1784
|
+
super(...arguments);
|
|
1785
|
+
this.template = "@pig-master/maternity-piglet-death-analysis";
|
|
1786
|
+
this.fileName = "An\xE1lise de mortes de leit\xF5es na maternidade";
|
|
1787
|
+
}
|
|
1788
|
+
async pdf(input) {
|
|
1789
|
+
await this.requestPdf({
|
|
1790
|
+
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
1791
|
+
parameters: [
|
|
1792
|
+
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
1793
|
+
{ key: "DATE_END", value: input.dateRange?.end ?? null },
|
|
1794
|
+
{ key: "CALENDAR", value: input.calendarType },
|
|
1795
|
+
{ key: "GROUP", value: input.groupBy },
|
|
1796
|
+
{ key: "FIELD", value: input.emphasis },
|
|
1797
|
+
{ key: "PARITY", value: input.parity?.toString() ?? null },
|
|
1798
|
+
{ key: "ORIGIN_ID", value: input.femaleSwineOriginId },
|
|
1799
|
+
{ key: "BREED_ID", value: input.femaleSwineBreedId },
|
|
1800
|
+
{ key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
|
|
1801
|
+
{ key: "EMPLOYEE_ID", value: input.employeeId },
|
|
1802
|
+
{ key: "LOCATION_ID", value: input.locationId },
|
|
1803
|
+
{ key: "PEN", value: input.pen },
|
|
1804
|
+
{ key: "CAUSE_ID", value: input.causeId },
|
|
1805
|
+
{ key: "SCORE_ID", value: input.scoreId },
|
|
1806
|
+
{ key: "CONTEXT", value: input.context },
|
|
1807
|
+
{ key: "INDUCTION", value: input.farrowingInduction },
|
|
1808
|
+
{ key: "INTERVENTION", value: input.farrowingIntervention }
|
|
1809
|
+
]
|
|
1810
|
+
});
|
|
1811
|
+
}
|
|
1812
|
+
};
|
|
1813
|
+
|
|
1781
1814
|
// src/namespaces/pig-master/reports/maternity-piglet-death-collection-form.ts
|
|
1782
1815
|
var MaternityPigletDeathCollectionForm = class extends Report {
|
|
1783
1816
|
constructor() {
|
|
@@ -2664,6 +2697,7 @@ var PigMaster = class {
|
|
|
2664
2697
|
this.weaningForecast = new WeaningForecast(http);
|
|
2665
2698
|
this.farrowingForecast = new FarrowingForecast(http);
|
|
2666
2699
|
this.breedingProjection = new BreedingProjection(http);
|
|
2700
|
+
this.maternityPigletDeathAnalysis = new MaternityPigletDeathAnalysis(http);
|
|
2667
2701
|
}
|
|
2668
2702
|
};
|
|
2669
2703
|
|