@agroyaar/sdk 3.1.5 → 3.1.7

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,
@@ -523,7 +524,9 @@ var mechanizationMapper = {
523
524
  kind: dto.kind,
524
525
  kindName: dto.kindName,
525
526
  deviceCode: dto.deviceCode,
526
- variety: varietiesMapper.getOne(dto.variety)
527
+ variety: varietiesMapper.getOne(dto.variety),
528
+ performancePerKilometer: dto.performancePerKilometer,
529
+ timingPerformance: dto.timingPerformance
527
530
  }),
528
531
  getAll: (dto) => dto.map(mechanizationMapper.getOne),
529
532
  create: (_res) => ({})
package/dist/index.d.ts CHANGED
@@ -4187,6 +4187,11 @@ type ProductKind = {
4187
4187
  label: string;
4188
4188
  name: string;
4189
4189
  };
4190
+ type Alert = {
4191
+ dangerous: boolean;
4192
+ message: string;
4193
+ field: string;
4194
+ };
4190
4195
 
4191
4196
  declare const __brand: unique symbol;
4192
4197
  type Brand<B> = {
@@ -4225,6 +4230,8 @@ type MechanizationModel = {
4225
4230
  kind: VarietyKind;
4226
4231
  kindName: MechanizationType;
4227
4232
  variety: MechanizationVarietyModel;
4233
+ performancePerKilometer: number;
4234
+ timingPerformance: number;
4228
4235
  };
4229
4236
  type SeasonsProcessModel = {
4230
4237
  id: Identifiers.SeasonsProcessId;
@@ -4245,6 +4252,7 @@ type MotorizedMechanizationSensorsModel = {
4245
4252
  engineWaterTemperature: number;
4246
4253
  batteryChargePercentage: number;
4247
4254
  mechanizationId: string;
4255
+ alerts: Alert[];
4248
4256
  };
4249
4257
  type TrackingDeviceCodeModel = {
4250
4258
  deviceCode: string;
@@ -4577,4 +4585,4 @@ declare const createSDK: (config: ClientConfig, middlewares?: Parameters<typeof
4577
4585
  };
4578
4586
  };
4579
4587
 
4580
- 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 };
4588
+ 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,
@@ -487,7 +488,9 @@ var mechanizationMapper = {
487
488
  kind: dto.kind,
488
489
  kindName: dto.kindName,
489
490
  deviceCode: dto.deviceCode,
490
- variety: varietiesMapper.getOne(dto.variety)
491
+ variety: varietiesMapper.getOne(dto.variety),
492
+ performancePerKilometer: dto.performancePerKilometer,
493
+ timingPerformance: dto.timingPerformance
491
494
  }),
492
495
  getAll: (dto) => dto.map(mechanizationMapper.getOne),
493
496
  create: (_res) => ({})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agroyaar/sdk",
3
- "version": "3.1.5",
3
+ "version": "3.1.7",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",