@agroyaar/sdk 1.5.1 → 1.5.2
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 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -198,7 +198,8 @@ var createMechanizationServices = (client) => ({
|
|
|
198
198
|
);
|
|
199
199
|
} catch (error) {
|
|
200
200
|
const err = error instanceof Error ? error : new Error(String(error));
|
|
201
|
-
console.error("Mechanization API Error:", err);
|
|
201
|
+
console.error("Motorized Mechanization Sensors API Error:", err);
|
|
202
|
+
return import_ts_belt.R.Error(err);
|
|
202
203
|
}
|
|
203
204
|
},
|
|
204
205
|
SubmitTrackingDeviceCode: async ({
|
package/dist/index.d.ts
CHANGED
|
@@ -313,7 +313,7 @@ declare const createSDK: (config: ClientConfig, middlewares?: Parameters<typeof
|
|
|
313
313
|
getMechanizationVarieties: ({ kindName, }: MechanizationVarietyVariables) => Promise<_mobily_ts_belt.Ok<MechanizationVarietyModel[]> | _mobily_ts_belt.Error<Error>>;
|
|
314
314
|
getSpeedChangesChartData: ({ farmerId, mechanizationId, }: SpeedChangesChartVariables) => Promise<_mobily_ts_belt.Ok<SpeedChangesChartModel[]> | undefined>;
|
|
315
315
|
getMechanizations: ({ kindName, farmerId }: MechanizationVariables) => Promise<_mobily_ts_belt.Error<Error> | _mobily_ts_belt.Ok<MechanizationModel[]>>;
|
|
316
|
-
getMotorizedMechanizationSensors: ({ farmerId, mechanizationId, }: MotorizedMechanizationSensorsVariables) => Promise<_mobily_ts_belt.
|
|
316
|
+
getMotorizedMechanizationSensors: ({ farmerId, mechanizationId, }: MotorizedMechanizationSensorsVariables) => Promise<_mobily_ts_belt.Error<Error> | _mobily_ts_belt.Ok<MotorizedMechanizationSensorsModel>>;
|
|
317
317
|
SubmitTrackingDeviceCode: ({ farmerId, mechanizationId, deviceCode, }: SubmitTrackingDeviceVariables) => Promise<_mobily_ts_belt.Error<Error> | _mobily_ts_belt.Ok<TrackingDeviceCodeModel>>;
|
|
318
318
|
getSeasonsProcess: () => Promise<_mobily_ts_belt.Error<Error> | _mobily_ts_belt.Ok<SeasonsProcessModel[]>>;
|
|
319
319
|
UpdateTrackingDeviceCode: ({ farmerId, mechanizationId, deviceCode, verificationToken, }: UpdateTrackingDeviceVariables) => Promise<_mobily_ts_belt.Error<Error> | _mobily_ts_belt.Ok<TrackingDeviceCodeModel>>;
|
package/dist/index.mjs
CHANGED
|
@@ -162,7 +162,8 @@ var createMechanizationServices = (client) => ({
|
|
|
162
162
|
);
|
|
163
163
|
} catch (error) {
|
|
164
164
|
const err = error instanceof Error ? error : new Error(String(error));
|
|
165
|
-
console.error("Mechanization API Error:", err);
|
|
165
|
+
console.error("Motorized Mechanization Sensors API Error:", err);
|
|
166
|
+
return R.Error(err);
|
|
166
167
|
}
|
|
167
168
|
},
|
|
168
169
|
SubmitTrackingDeviceCode: async ({
|