@agroyaar/sdk 1.1.5 → 1.1.6-1
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 +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -112,8 +112,7 @@ var mappers = {
|
|
112
112
|
engineOilPressure: response.engineOilPressure,
|
113
113
|
engineWaterTemperature: response.engineWaterTemperature,
|
114
114
|
batteryChargePercentage: response.batteryChargePercentage,
|
115
|
-
mechanizationId: response.mechanizationId
|
116
|
-
mechanization: mappers.getMechanization(response.mechanization)
|
115
|
+
mechanizationId: response.mechanizationId
|
117
116
|
})
|
118
117
|
};
|
119
118
|
|
@@ -159,6 +158,7 @@ var createMechanizationServices = (client) => ({
|
|
159
158
|
const { data } = await client.get(
|
160
159
|
`/farmers/${farmerId}/mechanizations/${mechanizationId}/sensors`
|
161
160
|
);
|
161
|
+
console.log({ data });
|
162
162
|
return import_ts_belt.R.Ok(
|
163
163
|
mappers.getMotorizedMechanizationSensors(
|
164
164
|
data.result.data.mechanizations
|
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
@@ -76,8 +76,7 @@ var mappers = {
|
|
76
76
|
engineOilPressure: response.engineOilPressure,
|
77
77
|
engineWaterTemperature: response.engineWaterTemperature,
|
78
78
|
batteryChargePercentage: response.batteryChargePercentage,
|
79
|
-
mechanizationId: response.mechanizationId
|
80
|
-
mechanization: mappers.getMechanization(response.mechanization)
|
79
|
+
mechanizationId: response.mechanizationId
|
81
80
|
})
|
82
81
|
};
|
83
82
|
|
@@ -123,6 +122,7 @@ var createMechanizationServices = (client) => ({
|
|
123
122
|
const { data } = await client.get(
|
124
123
|
`/farmers/${farmerId}/mechanizations/${mechanizationId}/sensors`
|
125
124
|
);
|
125
|
+
console.log({ data });
|
126
126
|
return R.Ok(
|
127
127
|
mappers.getMotorizedMechanizationSensors(
|
128
128
|
data.result.data.mechanizations
|