@agroyaar/sdk 3.13.0 → 3.13.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 +4 -3
- package/dist/index.d.ts +22 -1
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -206,7 +206,7 @@ var croppingSuitabilityMapper = {
|
|
|
206
206
|
croppingSuitabilityKind: dto.croppingSuitabilityKind
|
|
207
207
|
}),
|
|
208
208
|
getAll: (dto) => dto.map(croppingSuitabilityMapper.getOne),
|
|
209
|
-
create: (
|
|
209
|
+
create: (dto) => dto
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
// src/services/dashboard/cropping-suitability/croppingSuitability.service.ts
|
|
@@ -821,8 +821,9 @@ var productsMappers = {
|
|
|
821
821
|
getProduct: (dto) => ({
|
|
822
822
|
id: dto.id,
|
|
823
823
|
name: dto.name,
|
|
824
|
-
|
|
825
|
-
|
|
824
|
+
type: dto.type,
|
|
825
|
+
productId: dto.productId,
|
|
826
|
+
persianName: dto.persianName
|
|
826
827
|
}),
|
|
827
828
|
getProducts: (dto) => dto.map(productsMappers.getProduct)
|
|
828
829
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -5209,6 +5209,7 @@ type PlantTypeModel = {
|
|
|
5209
5209
|
type ProductModel = {
|
|
5210
5210
|
id: string;
|
|
5211
5211
|
name: string;
|
|
5212
|
+
productId: number;
|
|
5212
5213
|
persianName: string;
|
|
5213
5214
|
type: "FARM" | "ORCHARD";
|
|
5214
5215
|
};
|
|
@@ -5511,7 +5512,27 @@ declare const createSDK: (config: ClientConfig, middlewares?: Parameters<typeof
|
|
|
5511
5512
|
croppingSuitability: {
|
|
5512
5513
|
getOne: ({ pathParams, }: CroppingSuitabilityTypes["RequestParams"]["getOne"]) => Promise<_mobily_ts_belt.Error<Error> | _mobily_ts_belt.Ok<CroppingSuitabilityModel>>;
|
|
5513
5514
|
getAll: ({ pathParams, }: CroppingSuitabilityTypes["RequestParams"]["getAll"]) => Promise<_mobily_ts_belt.Error<Error> | _mobily_ts_belt.Ok<CroppingSuitabilityModel[]>>;
|
|
5514
|
-
create: ({ body, pathParams, }: CroppingSuitabilityTypes["RequestParams"]["create"]) => Promise<_mobily_ts_belt.Error<Error> | _mobily_ts_belt.Ok<
|
|
5515
|
+
create: ({ body, pathParams, }: CroppingSuitabilityTypes["RequestParams"]["create"]) => Promise<_mobily_ts_belt.Error<Error> | _mobily_ts_belt.Ok<{
|
|
5516
|
+
readonly id: string;
|
|
5517
|
+
readonly createdAt: string;
|
|
5518
|
+
readonly updatedAt: string;
|
|
5519
|
+
readonly deletedAt: string;
|
|
5520
|
+
farm: components["schemas"]["Farm"];
|
|
5521
|
+
farmer: components["schemas"]["Farmer"];
|
|
5522
|
+
irrigationSource: components["schemas"]["IrrigationSource"];
|
|
5523
|
+
experiment: components["schemas"]["Experiment"];
|
|
5524
|
+
invoice: components["schemas"]["Invoice"];
|
|
5525
|
+
weatherStation: components["schemas"]["WeatherStation"];
|
|
5526
|
+
growingSeasonIrrigationTimes: number;
|
|
5527
|
+
irrigationHoursPerShift: number;
|
|
5528
|
+
reports: components["schemas"]["CroppingSuitabilityReport"][];
|
|
5529
|
+
croppingSuitabilityKind: components["schemas"]["CroppingSuitabilityKinds"];
|
|
5530
|
+
selectedCrops: components["schemas"]["Product"][];
|
|
5531
|
+
status: components["schemas"]["Status"];
|
|
5532
|
+
dailyMaximumTemperatureChange: components["schemas"]["DayOfYearChartReportType"][];
|
|
5533
|
+
dailyMinimumTemperatureChange: components["schemas"]["DayOfYearChartReportType"][];
|
|
5534
|
+
dailyMeanTemperatureChange: components["schemas"]["DayOfYearChartReportType"][];
|
|
5535
|
+
}>>;
|
|
5515
5536
|
};
|
|
5516
5537
|
statics: {
|
|
5517
5538
|
getPlantType: () => Promise<_mobily_ts_belt.Error<Error> | _mobily_ts_belt.Ok<PlantTypeModel[]>>;
|
package/dist/index.mjs
CHANGED
|
@@ -170,7 +170,7 @@ var croppingSuitabilityMapper = {
|
|
|
170
170
|
croppingSuitabilityKind: dto.croppingSuitabilityKind
|
|
171
171
|
}),
|
|
172
172
|
getAll: (dto) => dto.map(croppingSuitabilityMapper.getOne),
|
|
173
|
-
create: (
|
|
173
|
+
create: (dto) => dto
|
|
174
174
|
};
|
|
175
175
|
|
|
176
176
|
// src/services/dashboard/cropping-suitability/croppingSuitability.service.ts
|
|
@@ -785,8 +785,9 @@ var productsMappers = {
|
|
|
785
785
|
getProduct: (dto) => ({
|
|
786
786
|
id: dto.id,
|
|
787
787
|
name: dto.name,
|
|
788
|
-
|
|
789
|
-
|
|
788
|
+
type: dto.type,
|
|
789
|
+
productId: dto.productId,
|
|
790
|
+
persianName: dto.persianName
|
|
790
791
|
}),
|
|
791
792
|
getProducts: (dto) => dto.map(productsMappers.getProduct)
|
|
792
793
|
};
|