@gesagro/jaspion-sdk 2.0.4 → 2.0.6
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 +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +40 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -421,6 +421,43 @@ var BreedingMonitor = class extends Report {
|
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
423
|
|
|
424
|
+
// src/namespaces/pig-master/reports/breeding-projection.ts
|
|
425
|
+
var BreedingProjection = class extends Report {
|
|
426
|
+
constructor() {
|
|
427
|
+
super(...arguments);
|
|
428
|
+
this.template = "@pig-master/breeding-projection";
|
|
429
|
+
this.fileName = "Proje\xE7\xE3o de reprodu\xE7\xE3o";
|
|
430
|
+
}
|
|
431
|
+
async pdf(input) {
|
|
432
|
+
await this.requestPdf({
|
|
433
|
+
resources: this.getResources(input),
|
|
434
|
+
parameters: [
|
|
435
|
+
...this.getParameters(input),
|
|
436
|
+
{ key: "DATA_ONLY", value: false }
|
|
437
|
+
]
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
async csv(input) {
|
|
441
|
+
await this.requestCsv({
|
|
442
|
+
resources: this.getResources(input),
|
|
443
|
+
parameters: [
|
|
444
|
+
...this.getParameters(input),
|
|
445
|
+
{ key: "DATA_ONLY", value: true }
|
|
446
|
+
]
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
getResources(input) {
|
|
450
|
+
return [{ key: "FARM_ID", value: input.farmId }];
|
|
451
|
+
}
|
|
452
|
+
getParameters(input) {
|
|
453
|
+
return [
|
|
454
|
+
{ key: "DATE_BEGIN", value: input.dateRange.start },
|
|
455
|
+
{ key: "DATE_END", value: input.dateRange.end },
|
|
456
|
+
{ key: "CALENDAR", value: input.calendarType }
|
|
457
|
+
];
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
|
|
424
461
|
// src/namespaces/pig-master/reports/cause-list.ts
|
|
425
462
|
var CauseList = class extends Report {
|
|
426
463
|
constructor() {
|
|
@@ -2252,6 +2289,8 @@ var PregnantFemaleSwineSaleList = class extends Report {
|
|
|
2252
2289
|
{ key: "DUE_DATE_BEGIN", value: input.dueDateRange?.start ?? null },
|
|
2253
2290
|
{ key: "DUE_DATE_END", value: input.dueDateRange?.end ?? null },
|
|
2254
2291
|
{ key: "ORIGIN_ID", value: input.originId },
|
|
2292
|
+
{ key: "BREED_ID", value: input.breedId },
|
|
2293
|
+
{ key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
|
|
2255
2294
|
{ key: "P_WEEKDAY", value: input.yearPeriod.weekday },
|
|
2256
2295
|
{ key: "P_WEEK", value: input.yearPeriod.week }
|
|
2257
2296
|
];
|
|
@@ -2624,6 +2663,7 @@ var PigMaster = class {
|
|
|
2624
2663
|
this.maternityPigletTransferList = new MaternityPigletTransferList(http);
|
|
2625
2664
|
this.weaningForecast = new WeaningForecast(http);
|
|
2626
2665
|
this.farrowingForecast = new FarrowingForecast(http);
|
|
2666
|
+
this.breedingProjection = new BreedingProjection(http);
|
|
2627
2667
|
}
|
|
2628
2668
|
};
|
|
2629
2669
|
|