@gesagro/jaspion-sdk 1.0.6 → 1.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 CHANGED
@@ -1275,8 +1275,8 @@ interface WeaningAnalysisInput {
1275
1275
  breedId: string | null;
1276
1276
  birthPlaceId: string | null;
1277
1277
  femaleSwineId: string | null;
1278
- language: Language;
1279
1278
  context: MaternityContext | null;
1279
+ nurseryPigletBatchId: string | null;
1280
1280
  }
1281
1281
  declare class WeaningAnalysis extends Report implements PdfReport {
1282
1282
  readonly template = "@pig-master/weaning-analysis";
package/dist/index.d.ts CHANGED
@@ -1275,8 +1275,8 @@ interface WeaningAnalysisInput {
1275
1275
  breedId: string | null;
1276
1276
  birthPlaceId: string | null;
1277
1277
  femaleSwineId: string | null;
1278
- language: Language;
1279
1278
  context: MaternityContext | null;
1279
+ nurseryPigletBatchId: string | null;
1280
1280
  }
1281
1281
  declare class WeaningAnalysis extends Report implements PdfReport {
1282
1282
  readonly template = "@pig-master/weaning-analysis";
package/dist/index.js CHANGED
@@ -627,7 +627,7 @@ var FarrowingAnalysis = class extends Report {
627
627
  { key: "CALENDAR", value: input.calendarType },
628
628
  { key: "GROUP", value: input.groupBy },
629
629
  { key: "FIELD", value: input.emphasis },
630
- { key: "PARITY", value: input.parity },
630
+ { key: "PARITY", value: input.parity?.toString() ?? null },
631
631
  { key: "ORIGIN_ID", value: input.originId },
632
632
  { key: "BREED_ID", value: input.breedId },
633
633
  { key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
@@ -803,7 +803,7 @@ var FemaleSwineByParityList = class extends Report {
803
803
  getParameters(input) {
804
804
  return [
805
805
  { key: "LOCATE", value: input.language.replace("-", "_") },
806
- { key: "PARITY", value: input.parity },
806
+ { key: "PARITY", value: input.parity?.toString() ?? null },
807
807
  { key: "BREED_ID", value: input.breedId },
808
808
  { key: "ORIGIN_ID", value: input.originId },
809
809
  { key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
@@ -847,9 +847,12 @@ var FemaleSwineByStatusList = class extends Report {
847
847
  { key: "STATUS", value: input.status },
848
848
  {
849
849
  key: "DAYSTODAY_BEGIN",
850
- value: input.gestationLengthRange?.start ?? null
850
+ value: input.gestationLengthRange?.start.toString() ?? null
851
+ },
852
+ {
853
+ key: "DAYSTODAY_END",
854
+ value: input.gestationLengthRange?.end.toString() ?? null
851
855
  },
852
- { key: "DAYSTODAY_END", value: input.gestationLengthRange?.end ?? null },
853
856
  { key: "CALENDAR", value: input.calendarType },
854
857
  {
855
858
  key: "LAST_EVENT_DATE_BEGIN",
@@ -859,7 +862,7 @@ var FemaleSwineByStatusList = class extends Report {
859
862
  key: "LAST_EVENT_DATE_END",
860
863
  value: input.lastEventDateRange?.end ?? null
861
864
  },
862
- { key: "PARITY", value: input.parity },
865
+ { key: "PARITY", value: input.parity?.toString() ?? null },
863
866
  { key: "BREED_ID", value: input.breedId },
864
867
  { key: "ORIGIN_ID", value: input.originId },
865
868
  { key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
@@ -936,7 +939,7 @@ var FemaleSwineDeathAnalysis = class extends Report {
936
939
  { key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
937
940
  { key: "DATE_END", value: input.dateRange?.end ?? null },
938
941
  { key: "CAUSE_ID", value: input.causeId },
939
- { key: "PARITY", value: input.parity },
942
+ { key: "PARITY", value: input.parity?.toString() ?? null },
940
943
  { key: "BREED_ID", value: input.breedId },
941
944
  { key: "ORIGIN_ID", value: input.originId },
942
945
  { key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
@@ -1001,7 +1004,7 @@ var FemaleSwineDeathList = class extends Report {
1001
1004
  { key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
1002
1005
  { key: "DATE_END", value: input.dateRange?.end ?? null },
1003
1006
  { key: "CAUSE_ID", value: input.causeId },
1004
- { key: "PARITY", value: input.parity },
1007
+ { key: "PARITY", value: input.parity?.toString() ?? null },
1005
1008
  { key: "BREED_ID", value: input.breedId },
1006
1009
  { key: "ORIGIN_ID", value: input.originId },
1007
1010
  { key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
@@ -1032,7 +1035,7 @@ var FemaleSwineDiscardAnalysis = class extends Report {
1032
1035
  { key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
1033
1036
  { key: "DATE_END", value: input.dateRange?.end ?? null },
1034
1037
  { key: "CAUSE_ID", value: input.causeId },
1035
- { key: "PARITY", value: input.parity },
1038
+ { key: "PARITY", value: input.parity?.toString() ?? null },
1036
1039
  { key: "BREED_ID", value: input.breedId },
1037
1040
  { key: "ORIGIN_ID", value: input.originId },
1038
1041
  { key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
@@ -1101,7 +1104,7 @@ var FemaleSwineDiscardList = class extends Report {
1101
1104
  { key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
1102
1105
  { key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
1103
1106
  { key: "DATE_END", value: input.dateRange?.end ?? null },
1104
- { key: "PARITY", value: input.parity },
1107
+ { key: "PARITY", value: input.parity?.toString() ?? null },
1105
1108
  { key: "RECIPIENT_ID", value: input.recipientId },
1106
1109
  { key: "STATUS", value: input.status },
1107
1110
  { key: "CALENDAR", value: input.calendarType },
@@ -1608,7 +1611,7 @@ var HeatDetectionList = class extends Report {
1608
1611
  { key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
1609
1612
  { key: "DATE_END", value: input.dateRange?.end ?? null },
1610
1613
  { key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
1611
- { key: "NUMBER", value: input.number },
1614
+ { key: "NUMBER", value: input.number?.toString() ?? null },
1612
1615
  { key: "STIMULUS", value: input.stimulus },
1613
1616
  { key: "ORDERBYDIRECTION", value: input.orderBy.direction },
1614
1617
  { key: "ORDERBYCOLUMN", value: input.orderBy.column }
@@ -1738,7 +1741,7 @@ var MaternityPigletDeathList = class extends Report {
1738
1741
  { key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
1739
1742
  { key: "DATE_END", value: input.dateRange?.end ?? null },
1740
1743
  { key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
1741
- { key: "PARITY", value: input.parity },
1744
+ { key: "PARITY", value: input.parity?.toString() ?? null },
1742
1745
  { key: "CONTEXT", value: input.context },
1743
1746
  { key: "EMPLOYEE_ID", value: input.employeeId },
1744
1747
  { key: "CAUSE_ID", value: input.causeId }
@@ -1777,7 +1780,7 @@ var MatingAnalysis = class extends Report {
1777
1780
  { key: "CALENDAR", value: input.calendarType },
1778
1781
  { key: "GROUP", value: input.groupBy },
1779
1782
  { key: "FIELD", value: input.emphasis },
1780
- { key: "PARITY", value: input.parity },
1783
+ { key: "PARITY", value: input.parity?.toString() ?? null },
1781
1784
  { key: "ORIGIN_ID", value: input.originId },
1782
1785
  { key: "BREED_ID", value: input.breedId },
1783
1786
  { key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
@@ -1881,7 +1884,7 @@ var MatingList = class extends Report {
1881
1884
  { key: "DATE_END", value: input.dateRange?.end ?? null },
1882
1885
  { key: "CALENDAR", value: input.calendarType },
1883
1886
  { key: "MANAGEMENT_CYCLE", value: input.managementCycle },
1884
- { key: "PARITY", value: input.parity },
1887
+ { key: "PARITY", value: input.parity?.toString() ?? null },
1885
1888
  { key: "ORIGIN_ID", value: input.originId },
1886
1889
  { key: "BREED_ID", value: input.breedId },
1887
1890
  { key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
@@ -2182,7 +2185,7 @@ var ReproductiveFailureAnalysis = class extends Report {
2182
2185
  },
2183
2186
  { key: "MATING_DATE_END", value: input.matingDateRange?.end ?? null },
2184
2187
  { key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
2185
- { key: "PARITY", value: input.parity },
2188
+ { key: "PARITY", value: input.parity?.toString() ?? null },
2186
2189
  { key: "CONTEXT", value: input.context },
2187
2190
  { key: "BREED_ID", value: input.breedId },
2188
2191
  { key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
@@ -2241,7 +2244,7 @@ var ReproductiveFailureList = class extends Report {
2241
2244
  { key: "DATE_BEGIN", value: input.dateRange?.start ?? null },
2242
2245
  { key: "DATE_END", value: input.dateRange?.end ?? null },
2243
2246
  { key: "CALENDAR", value: input.calendarType },
2244
- { key: "PARITY", value: input.parity },
2247
+ { key: "PARITY", value: input.parity?.toString() ?? null },
2245
2248
  { key: "ORIGIN_ID", value: input.originId },
2246
2249
  { key: "BREED_ID", value: input.breedId },
2247
2250
  { key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
@@ -2304,18 +2307,18 @@ var WeaningAnalysis = class extends Report {
2304
2307
  { key: "CALENDAR", value: input.calendarType },
2305
2308
  { key: "GROUP", value: input.groupBy },
2306
2309
  { key: "FIELD", value: input.emphasis },
2307
- { key: "PARITY", value: input.parity },
2310
+ { key: "PARITY", value: input.parity?.toString() ?? null },
2308
2311
  { key: "ORIGIN_ID", value: input.originId },
2309
2312
  { key: "BREED_ID", value: input.breedId },
2310
2313
  { key: "BIRTH_PLACE_ID", value: input.birthPlaceId },
2311
2314
  { key: "FEMALE_SWINE_ID", value: input.femaleSwineId },
2312
- { key: "LOCATE", value: input.language.replace("-", "_") },
2313
2315
  {
2314
2316
  key: "MATING_DATE_BEGIN",
2315
2317
  value: input.matingDateRange?.start ?? null
2316
2318
  },
2317
2319
  { key: "MATING_DATE_END", value: input.matingDateRange?.end ?? null },
2318
- { key: "CONTEXT", value: input.context }
2320
+ { key: "CONTEXT", value: input.context },
2321
+ { key: "PIGLET_BATCH_ID", value: input.nurseryPigletBatchId }
2319
2322
  ]
2320
2323
  });
2321
2324
  }