@agroyaar/sdk 3.1.4 → 3.1.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.cjs CHANGED
@@ -162,7 +162,8 @@ var sensorsMapper = {
162
162
  engineOilPressure: dto.engineOilPressure,
163
163
  engineWaterTemperature: dto.engineWaterTemperature,
164
164
  batteryChargePercentage: dto.batteryChargePercentage,
165
- mechanizationId: dto.mechanizationId
165
+ mechanizationId: dto.mechanizationId,
166
+ alerts: dto.alerts
166
167
  }),
167
168
  getMechanizationTemperatureChange: (dto) => ({
168
169
  date: dto.date,
package/dist/index.d.ts CHANGED
@@ -1696,18 +1696,6 @@ interface components {
1696
1696
  */
1697
1697
  value: number;
1698
1698
  };
1699
- DayOfYearChartReportType: {
1700
- /**
1701
- * @description روز سال
1702
- * @example 1
1703
- */
1704
- dayOfYear: number;
1705
- /**
1706
- * @description مقدار
1707
- * @example 20
1708
- */
1709
- value: number;
1710
- };
1711
1699
  MonthlyChartReportType: {
1712
1700
  /**
1713
1701
  * @description شماره ماه
@@ -1764,17 +1752,23 @@ interface components {
1764
1752
  annuallyNetIrrigationRequirement: components["schemas"]["AnnuallyChartReportType"][];
1765
1753
  /** @description درجه روز رشد تامین شده ۳۰ سال گذشته */
1766
1754
  annuallySuppliedGrowingDegreeDay: components["schemas"]["AnnuallyChartReportType"][];
1767
- /** @description تغییرات دمای حداکثر روزانه ۳۰ سال گذشته */
1768
- dailyMaximumTemperatureChange: components["schemas"]["DayOfYearChartReportType"][];
1769
- /** @description تغییرات دمای حداقل روزانه ۳۰ سال گذشته */
1770
- dailyMinimumTemperatureChange: components["schemas"]["DayOfYearChartReportType"][];
1771
- /** @description تغییرات دمای میانگین روزانه ۳۰ سال گذشته */
1772
- dailyMeanTemperatureChange: components["schemas"]["DayOfYearChartReportType"][];
1773
1755
  /** @description ریسک‌های دمایی */
1774
1756
  temperatureRisks: components["schemas"]["CroppingPatternRiskChartType"][];
1775
1757
  /** @description ریسک‌های رطوبتی */
1776
1758
  humidityRisks: components["schemas"]["CroppingPatternRiskChartType"][];
1777
1759
  };
1760
+ DayOfYearChartReportType: {
1761
+ /**
1762
+ * @description روز سال
1763
+ * @example 1
1764
+ */
1765
+ dayOfYear: number;
1766
+ /**
1767
+ * @description مقدار
1768
+ * @example 20
1769
+ */
1770
+ value: number;
1771
+ };
1778
1772
  CroppingPattern: {
1779
1773
  readonly id: string;
1780
1774
  /** Format: date-time */
@@ -4193,6 +4187,11 @@ type ProductKind = {
4193
4187
  label: string;
4194
4188
  name: string;
4195
4189
  };
4190
+ type Alert = {
4191
+ dangerous: boolean;
4192
+ message: string;
4193
+ field: string;
4194
+ };
4196
4195
 
4197
4196
  declare const __brand: unique symbol;
4198
4197
  type Brand<B> = {
@@ -4251,6 +4250,7 @@ type MotorizedMechanizationSensorsModel = {
4251
4250
  engineWaterTemperature: number;
4252
4251
  batteryChargePercentage: number;
4253
4252
  mechanizationId: string;
4253
+ alerts: Alert[];
4254
4254
  };
4255
4255
  type TrackingDeviceCodeModel = {
4256
4256
  deviceCode: string;
@@ -4583,4 +4583,4 @@ declare const createSDK: (config: ClientConfig, middlewares?: Parameters<typeof
4583
4583
  };
4584
4584
  };
4585
4585
 
4586
- export { type AnnuallyChartReportModel, type ApiRequestType, ApiTypes, type City, type CroppingPatternModel, type CroppingPatternReportModel, type CroppingPatternRiskChartModel, type DayOfYearChartReportModel, type DeviceCodeModel, type Experiment, type Farm, type Farmer, Identifiers, type Invoice, type IrrigationSource, type Location, type MechanizationFuelConsumptionChangesModel, type MechanizationMachineUsageKind, type MechanizationMachineUsageType, type MechanizationModel, type MechanizationMovementChangesModel, type MechanizationMovementChangesModelWithMeta, type MechanizationQuestionModel, type MechanizationSeasonProcessKind, type MechanizationSeasonProcessType, type MechanizationTemperatureChangesModel, type MechanizationType, type MechanizationVarietyModel, type MotorizedMechanizationSensorsModel, type MovementChangeModel, type OwnershipType, type Product, type ProductKind, type ProductKindType, type Province, type SeasonsProcessModel, type ServiceType, type SpeedChangesChartModel, type Status, type StatusType, type TaskType, type TrackingDeviceCodeModel, type VarietyKind, type VerifyPhoneNumberModel, type WeatherStation, type WeatherStationAlertPhoneNumber, createSDK };
4586
+ export { type Alert, type AnnuallyChartReportModel, type ApiRequestType, ApiTypes, type City, type CroppingPatternModel, type CroppingPatternReportModel, type CroppingPatternRiskChartModel, type DayOfYearChartReportModel, type DeviceCodeModel, type Experiment, type Farm, type Farmer, Identifiers, type Invoice, type IrrigationSource, type Location, type MechanizationFuelConsumptionChangesModel, type MechanizationMachineUsageKind, type MechanizationMachineUsageType, type MechanizationModel, type MechanizationMovementChangesModel, type MechanizationMovementChangesModelWithMeta, type MechanizationQuestionModel, type MechanizationSeasonProcessKind, type MechanizationSeasonProcessType, type MechanizationTemperatureChangesModel, type MechanizationType, type MechanizationVarietyModel, type MotorizedMechanizationSensorsModel, type MovementChangeModel, type OwnershipType, type Product, type ProductKind, type ProductKindType, type Province, type SeasonsProcessModel, type ServiceType, type SpeedChangesChartModel, type Status, type StatusType, type TaskType, type TrackingDeviceCodeModel, type VarietyKind, type VerifyPhoneNumberModel, type WeatherStation, type WeatherStationAlertPhoneNumber, createSDK };
package/dist/index.mjs CHANGED
@@ -126,7 +126,8 @@ var sensorsMapper = {
126
126
  engineOilPressure: dto.engineOilPressure,
127
127
  engineWaterTemperature: dto.engineWaterTemperature,
128
128
  batteryChargePercentage: dto.batteryChargePercentage,
129
- mechanizationId: dto.mechanizationId
129
+ mechanizationId: dto.mechanizationId,
130
+ alerts: dto.alerts
130
131
  }),
131
132
  getMechanizationTemperatureChange: (dto) => ({
132
133
  date: dto.date,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agroyaar/sdk",
3
- "version": "3.1.4",
3
+ "version": "3.1.6",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",