@gesagro/jaspion-sdk 2.0.9 → 2.0.11
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/README.md +1 -1
- package/dist/index.d.mts +23 -2
- package/dist/index.d.ts +23 -2
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -327,7 +327,7 @@ declare class FarmSummary extends Report implements PdfReport, CsvReport {
|
|
|
327
327
|
private getParameters;
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
type FarrowingAnalysisGroupBy = 'year-period' | 'parity' | 'employee' | 'breed' | 'doses' | 'first-mating-age' | 'first-mating-weight' | 'interval-from-weaning' | 'day-of-week' | 'lactation-length' | 'origin' | 'arrival-daily-gain' | 'first-mating-daily-gain' | 'farrowing-classification' | 'month-year';
|
|
330
|
+
type FarrowingAnalysisGroupBy = 'year-period' | 'parity' | 'employee' | 'breed' | 'doses' | 'first-mating-age' | 'first-mating-weight' | 'interval-from-weaning' | 'day-of-week' | 'lactation-length' | 'origin' | 'arrival-daily-gain' | 'first-mating-daily-gain' | 'farrowing-classification' | 'month-year' | 'score';
|
|
331
331
|
type FarrowingAnalysisEmphasis = 'farrowing-count' | 'total-born-count' | 'liveborn-count' | 'liveborn-percentage' | 'average-liveborn' | 'stillborn-count' | 'stillborn-percentage' | 'average-stillborn' | 'mummified-count' | 'mummified-percentage' | 'average-mummified' | 'average-litter-birth-weight' | 'average-farrowing-duration' | 'induction-count' | 'intervention-count' | 'average-gestation-length' | 'farrowing-percentage';
|
|
332
332
|
interface FarrowingAnalysisInput {
|
|
333
333
|
farmId: string;
|
|
@@ -1386,7 +1386,7 @@ declare class ScoreList extends Report implements PdfReport, CsvReport {
|
|
|
1386
1386
|
private getParameters;
|
|
1387
1387
|
}
|
|
1388
1388
|
|
|
1389
|
-
type WeaningAnalysisGroupBy = 'year-period' | 'parity' | 'breed' | 'month-year';
|
|
1389
|
+
type WeaningAnalysisGroupBy = 'year-period' | 'parity' | 'breed' | 'month-year' | 'score';
|
|
1390
1390
|
type WeaningAnalysisEmphasis = 'weaning-count' | 'weaning-percentage' | 'lactating-weaning-count' | 'piglet-batch-count' | 'weaned-piglet-count' | 'average-weaned-piglet-count' | 'weaned-litter-weight' | 'average-weaned-piglet-weight' | 'nurse-sow-weaning-count' | 'dead-piglet-count' | 'dead-piglet-percentage' | 'estimated-dead-piglet-percentage' | 'liveborn-count' | 'transferred-piglet-count' | 'received-piglet-count';
|
|
1391
1391
|
interface WeaningAnalysisInput {
|
|
1392
1392
|
farmId: string;
|
|
@@ -1477,6 +1477,26 @@ declare class WeaningList extends Report implements PdfReport, CsvReport {
|
|
|
1477
1477
|
private getParameters;
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
|
+
interface WeaningOverviewInput {
|
|
1481
|
+
farmId: string;
|
|
1482
|
+
calendarType: CalendarType;
|
|
1483
|
+
dateRange: {
|
|
1484
|
+
start: string;
|
|
1485
|
+
end: string;
|
|
1486
|
+
};
|
|
1487
|
+
originId: string | null;
|
|
1488
|
+
breedId: string | null;
|
|
1489
|
+
birthPlaceId: string | null;
|
|
1490
|
+
}
|
|
1491
|
+
declare class WeaningOverview extends Report implements PdfReport, CsvReport {
|
|
1492
|
+
readonly template = "@pig-master/weaning-overview";
|
|
1493
|
+
fileName: string;
|
|
1494
|
+
pdf(input: WeaningOverviewInput): Promise<void>;
|
|
1495
|
+
csv(input: WeaningOverviewInput): Promise<void>;
|
|
1496
|
+
private getResources;
|
|
1497
|
+
private getParameters;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1480
1500
|
declare class PigMaster {
|
|
1481
1501
|
readonly birthPlaceList: BirthPlaceList;
|
|
1482
1502
|
readonly boarByBreedList: BoarByBreedList;
|
|
@@ -1553,6 +1573,7 @@ declare class PigMaster {
|
|
|
1553
1573
|
readonly farrowingForecast: FarrowingForecast;
|
|
1554
1574
|
readonly breedingProjection: BreedingProjection;
|
|
1555
1575
|
readonly maternityPigletDeathAnalysis: MaternityPigletDeathAnalysis;
|
|
1576
|
+
readonly weaningOverview: WeaningOverview;
|
|
1556
1577
|
constructor(http: HttpClient);
|
|
1557
1578
|
}
|
|
1558
1579
|
|
package/dist/index.d.ts
CHANGED
|
@@ -327,7 +327,7 @@ declare class FarmSummary extends Report implements PdfReport, CsvReport {
|
|
|
327
327
|
private getParameters;
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
type FarrowingAnalysisGroupBy = 'year-period' | 'parity' | 'employee' | 'breed' | 'doses' | 'first-mating-age' | 'first-mating-weight' | 'interval-from-weaning' | 'day-of-week' | 'lactation-length' | 'origin' | 'arrival-daily-gain' | 'first-mating-daily-gain' | 'farrowing-classification' | 'month-year';
|
|
330
|
+
type FarrowingAnalysisGroupBy = 'year-period' | 'parity' | 'employee' | 'breed' | 'doses' | 'first-mating-age' | 'first-mating-weight' | 'interval-from-weaning' | 'day-of-week' | 'lactation-length' | 'origin' | 'arrival-daily-gain' | 'first-mating-daily-gain' | 'farrowing-classification' | 'month-year' | 'score';
|
|
331
331
|
type FarrowingAnalysisEmphasis = 'farrowing-count' | 'total-born-count' | 'liveborn-count' | 'liveborn-percentage' | 'average-liveborn' | 'stillborn-count' | 'stillborn-percentage' | 'average-stillborn' | 'mummified-count' | 'mummified-percentage' | 'average-mummified' | 'average-litter-birth-weight' | 'average-farrowing-duration' | 'induction-count' | 'intervention-count' | 'average-gestation-length' | 'farrowing-percentage';
|
|
332
332
|
interface FarrowingAnalysisInput {
|
|
333
333
|
farmId: string;
|
|
@@ -1386,7 +1386,7 @@ declare class ScoreList extends Report implements PdfReport, CsvReport {
|
|
|
1386
1386
|
private getParameters;
|
|
1387
1387
|
}
|
|
1388
1388
|
|
|
1389
|
-
type WeaningAnalysisGroupBy = 'year-period' | 'parity' | 'breed' | 'month-year';
|
|
1389
|
+
type WeaningAnalysisGroupBy = 'year-period' | 'parity' | 'breed' | 'month-year' | 'score';
|
|
1390
1390
|
type WeaningAnalysisEmphasis = 'weaning-count' | 'weaning-percentage' | 'lactating-weaning-count' | 'piglet-batch-count' | 'weaned-piglet-count' | 'average-weaned-piglet-count' | 'weaned-litter-weight' | 'average-weaned-piglet-weight' | 'nurse-sow-weaning-count' | 'dead-piglet-count' | 'dead-piglet-percentage' | 'estimated-dead-piglet-percentage' | 'liveborn-count' | 'transferred-piglet-count' | 'received-piglet-count';
|
|
1391
1391
|
interface WeaningAnalysisInput {
|
|
1392
1392
|
farmId: string;
|
|
@@ -1477,6 +1477,26 @@ declare class WeaningList extends Report implements PdfReport, CsvReport {
|
|
|
1477
1477
|
private getParameters;
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
|
+
interface WeaningOverviewInput {
|
|
1481
|
+
farmId: string;
|
|
1482
|
+
calendarType: CalendarType;
|
|
1483
|
+
dateRange: {
|
|
1484
|
+
start: string;
|
|
1485
|
+
end: string;
|
|
1486
|
+
};
|
|
1487
|
+
originId: string | null;
|
|
1488
|
+
breedId: string | null;
|
|
1489
|
+
birthPlaceId: string | null;
|
|
1490
|
+
}
|
|
1491
|
+
declare class WeaningOverview extends Report implements PdfReport, CsvReport {
|
|
1492
|
+
readonly template = "@pig-master/weaning-overview";
|
|
1493
|
+
fileName: string;
|
|
1494
|
+
pdf(input: WeaningOverviewInput): Promise<void>;
|
|
1495
|
+
csv(input: WeaningOverviewInput): Promise<void>;
|
|
1496
|
+
private getResources;
|
|
1497
|
+
private getParameters;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1480
1500
|
declare class PigMaster {
|
|
1481
1501
|
readonly birthPlaceList: BirthPlaceList;
|
|
1482
1502
|
readonly boarByBreedList: BoarByBreedList;
|
|
@@ -1553,6 +1573,7 @@ declare class PigMaster {
|
|
|
1553
1573
|
readonly farrowingForecast: FarrowingForecast;
|
|
1554
1574
|
readonly breedingProjection: BreedingProjection;
|
|
1555
1575
|
readonly maternityPigletDeathAnalysis: MaternityPigletDeathAnalysis;
|
|
1576
|
+
readonly weaningOverview: WeaningOverview;
|
|
1556
1577
|
constructor(http: HttpClient);
|
|
1557
1578
|
}
|
|
1558
1579
|
|
package/dist/index.js
CHANGED
|
@@ -2644,6 +2644,46 @@ var WeaningList = class extends Report {
|
|
|
2644
2644
|
}
|
|
2645
2645
|
};
|
|
2646
2646
|
|
|
2647
|
+
// src/namespaces/pig-master/reports/weaning-overview.ts
|
|
2648
|
+
var WeaningOverview = class extends Report {
|
|
2649
|
+
constructor() {
|
|
2650
|
+
super(...arguments);
|
|
2651
|
+
this.template = "@pig-master/weaning-overview";
|
|
2652
|
+
this.fileName = "Performance de desmames";
|
|
2653
|
+
}
|
|
2654
|
+
async pdf(input) {
|
|
2655
|
+
await this.requestPdf({
|
|
2656
|
+
resources: this.getResources(input),
|
|
2657
|
+
parameters: [
|
|
2658
|
+
...this.getParameters(input),
|
|
2659
|
+
{ key: "DATA_ONLY", value: false }
|
|
2660
|
+
]
|
|
2661
|
+
});
|
|
2662
|
+
}
|
|
2663
|
+
async csv(input) {
|
|
2664
|
+
await this.requestCsv({
|
|
2665
|
+
resources: this.getResources(input),
|
|
2666
|
+
parameters: [
|
|
2667
|
+
...this.getParameters(input),
|
|
2668
|
+
{ key: "DATA_ONLY", value: true }
|
|
2669
|
+
]
|
|
2670
|
+
});
|
|
2671
|
+
}
|
|
2672
|
+
getResources(input) {
|
|
2673
|
+
return [{ key: "FARM_ID", value: input.farmId }];
|
|
2674
|
+
}
|
|
2675
|
+
getParameters(input) {
|
|
2676
|
+
return [
|
|
2677
|
+
{ key: "DATE_BEGIN", value: input.dateRange.start },
|
|
2678
|
+
{ key: "DATE_END", value: input.dateRange.end },
|
|
2679
|
+
{ key: "CALENDAR", value: input.calendarType },
|
|
2680
|
+
{ key: "ORIGIN_ID", value: input.originId },
|
|
2681
|
+
{ key: "BREED_ID", value: input.breedId },
|
|
2682
|
+
{ key: "BIRTH_PLACE_ID", value: input.birthPlaceId }
|
|
2683
|
+
];
|
|
2684
|
+
}
|
|
2685
|
+
};
|
|
2686
|
+
|
|
2647
2687
|
// src/namespaces/pig-master/index.ts
|
|
2648
2688
|
var PigMaster = class {
|
|
2649
2689
|
constructor(http) {
|
|
@@ -2724,6 +2764,7 @@ var PigMaster = class {
|
|
|
2724
2764
|
this.farrowingForecast = new FarrowingForecast(http);
|
|
2725
2765
|
this.breedingProjection = new BreedingProjection(http);
|
|
2726
2766
|
this.maternityPigletDeathAnalysis = new MaternityPigletDeathAnalysis(http);
|
|
2767
|
+
this.weaningOverview = new WeaningOverview(http);
|
|
2727
2768
|
}
|
|
2728
2769
|
};
|
|
2729
2770
|
|