@gesagro/jaspion-sdk 1.0.8 → 1.0.9
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 +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +54 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2313,6 +2313,59 @@ var WeaningCollectionForm = class extends Report {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
};
|
|
2315
2315
|
|
|
2316
|
+
// src/namespaces/pig-master/reports/weaning-list.ts
|
|
2317
|
+
var WeaningList = class extends Report {
|
|
2318
|
+
constructor() {
|
|
2319
|
+
super(...arguments);
|
|
2320
|
+
this.template = "@pig-master/weaning-list";
|
|
2321
|
+
this.fileName = "Listagem de desmames";
|
|
2322
|
+
}
|
|
2323
|
+
async pdf(input) {
|
|
2324
|
+
return this.requestPdf({
|
|
2325
|
+
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2326
|
+
parameters: [
|
|
2327
|
+
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
2328
|
+
{ key: "DATE_END", value: input.dateRange?.end ?? null },
|
|
2329
|
+
{ key: "CALENDAR", value: input.calendarType },
|
|
2330
|
+
{ key: "PARITY", value: input.parity?.toString() ?? null },
|
|
2331
|
+
{ key: "ORIGIN_ID", value: input.originId },
|
|
2332
|
+
{ key: "BREED_ID", value: input.breedId },
|
|
2333
|
+
{ key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
|
|
2334
|
+
{ key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
|
|
2335
|
+
{
|
|
2336
|
+
key: "MATING_DATE_BEGIN",
|
|
2337
|
+
value: input.matingDateRange?.start ?? null
|
|
2338
|
+
},
|
|
2339
|
+
{ key: "MATING_DATE_END", value: input.matingDateRange?.end ?? null },
|
|
2340
|
+
{ key: "CONTEXT", value: input.context },
|
|
2341
|
+
{ key: "PIGLET_BATCH_ID", value: input.nurseryPigletBatchId }
|
|
2342
|
+
]
|
|
2343
|
+
});
|
|
2344
|
+
}
|
|
2345
|
+
async csv(input) {
|
|
2346
|
+
return this.requestCsv({
|
|
2347
|
+
resources: [{ key: "FARM_ID", value: input.farmId }],
|
|
2348
|
+
parameters: [
|
|
2349
|
+
{ key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
|
|
2350
|
+
{ key: "DATE_END", value: input.dateRange?.end ?? null },
|
|
2351
|
+
{ key: "CALENDAR", value: input.calendarType },
|
|
2352
|
+
{ key: "PARITY", value: input.parity?.toString() ?? null },
|
|
2353
|
+
{ key: "ORIGIN_ID", value: input.originId },
|
|
2354
|
+
{ key: "BREED_ID", value: input.breedId },
|
|
2355
|
+
{ key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
|
|
2356
|
+
{ key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
|
|
2357
|
+
{
|
|
2358
|
+
key: "MATING_DATE_BEGIN",
|
|
2359
|
+
value: input.matingDateRange?.start ?? null
|
|
2360
|
+
},
|
|
2361
|
+
{ key: "MATING_DATE_END", value: input.matingDateRange?.end ?? null },
|
|
2362
|
+
{ key: "CONTEXT", value: input.context },
|
|
2363
|
+
{ key: "PIGLET_BATCH_ID", value: input.nurseryPigletBatchId }
|
|
2364
|
+
]
|
|
2365
|
+
});
|
|
2366
|
+
}
|
|
2367
|
+
};
|
|
2368
|
+
|
|
2316
2369
|
// src/namespaces/pig-master/index.ts
|
|
2317
2370
|
var PigMaster = class {
|
|
2318
2371
|
constructor(http) {
|
|
@@ -2386,6 +2439,7 @@ var PigMaster = class {
|
|
|
2386
2439
|
this.weaningAnalysis = new WeaningAnalysis(http);
|
|
2387
2440
|
this.weaningCollectionForm = new WeaningCollectionForm(http);
|
|
2388
2441
|
this.maternityPigletDeathList = new MaternityPigletDeathList(http);
|
|
2442
|
+
this.weaningList = new WeaningList(http);
|
|
2389
2443
|
}
|
|
2390
2444
|
};
|
|
2391
2445
|
|