@agroyaar/sdk 1.0.4 → 1.0.5

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
@@ -92,7 +92,8 @@ var mappers = {
92
92
  },
93
93
  seasonProcessIds: response.seasonProcessIds,
94
94
  machineUsageIds: response.machineUsageIds
95
- })
95
+ }),
96
+ getMechanizationVarietyList: (response) => response.map(mappers.getMechanizationVariety)
96
97
  };
97
98
 
98
99
  // src/services/dashboard/mechanization/mechanization.service.ts
@@ -105,7 +106,7 @@ var createMechanizationServices = (client) => ({
105
106
  `/statics/mechanizations-varieties?kindName=${kindName}`
106
107
  );
107
108
  return data && import_ts_belt.R.Ok(
108
- mappers.getMechanizationVariety(
109
+ mappers.getMechanizationVarietyList(
109
110
  data.result.data.mechanizationVarieties
110
111
  )
111
112
  );
package/dist/index.mjs CHANGED
@@ -56,7 +56,8 @@ var mappers = {
56
56
  },
57
57
  seasonProcessIds: response.seasonProcessIds,
58
58
  machineUsageIds: response.machineUsageIds
59
- })
59
+ }),
60
+ getMechanizationVarietyList: (response) => response.map(mappers.getMechanizationVariety)
60
61
  };
61
62
 
62
63
  // src/services/dashboard/mechanization/mechanization.service.ts
@@ -69,7 +70,7 @@ var createMechanizationServices = (client) => ({
69
70
  `/statics/mechanizations-varieties?kindName=${kindName}`
70
71
  );
71
72
  return data && R.Ok(
72
- mappers.getMechanizationVariety(
73
+ mappers.getMechanizationVarietyList(
73
74
  data.result.data.mechanizationVarieties
74
75
  )
75
76
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agroyaar/sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",