@agroyaar/sdk 3.4.2 → 3.4.4
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 +23 -14
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -647,9 +647,9 @@ var experimentMapper = {
|
|
|
647
647
|
getExperiment: (dto) => ({
|
|
648
648
|
id: dto.id,
|
|
649
649
|
createdAt: dto.createdAt,
|
|
650
|
-
laboratory: dto.laboratory
|
|
650
|
+
laboratory: dto.laboratory,
|
|
651
651
|
samplesCount: dto.samplesCount,
|
|
652
|
-
status: dto.status
|
|
652
|
+
status: dto.status
|
|
653
653
|
}),
|
|
654
654
|
getExperiments: (dto) => ({
|
|
655
655
|
experiments: dto.experiments.map(experimentMapper.getExperiment),
|
package/dist/index.d.ts
CHANGED
|
@@ -4310,8 +4310,10 @@ type ExperimentModel = {
|
|
|
4310
4310
|
id: string;
|
|
4311
4311
|
createdAt: string;
|
|
4312
4312
|
samplesCount: number;
|
|
4313
|
-
laboratory: {
|
|
4314
|
-
|
|
4313
|
+
laboratory: {
|
|
4314
|
+
laboratoryName: string;
|
|
4315
|
+
};
|
|
4316
|
+
status: Status;
|
|
4315
4317
|
};
|
|
4316
4318
|
type ExperimentsModel = {
|
|
4317
4319
|
experiments: ExperimentModel[];
|
|
@@ -4512,6 +4514,22 @@ type CroppingPatternTypes = ApiRequestType<{
|
|
|
4512
4514
|
};
|
|
4513
4515
|
}>;
|
|
4514
4516
|
|
|
4517
|
+
type GetExperimentParams = paths["/farmers/{farmerId}/experiments/results"]["get"]["parameters"];
|
|
4518
|
+
type GetExperimentWithMeta = paths["/farmers/{farmerId}/experiments/results"]["get"]["responses"]["200"]["content"]["application/json"]["result"]["data"];
|
|
4519
|
+
type ExperimentsType = ApiRequestType<{
|
|
4520
|
+
experiment: components["schemas"]["Experiment"];
|
|
4521
|
+
experimentWithMeta: GetExperimentWithMeta;
|
|
4522
|
+
}, {
|
|
4523
|
+
getExperiments: {
|
|
4524
|
+
params: GetExperimentParams["query"];
|
|
4525
|
+
pathParams: GetExperimentParams["path"];
|
|
4526
|
+
};
|
|
4527
|
+
}>;
|
|
4528
|
+
|
|
4529
|
+
type StaticsTypes = ApiRequestType<{
|
|
4530
|
+
plantType: components["schemas"]["ProductKind"];
|
|
4531
|
+
}, {}>;
|
|
4532
|
+
|
|
4515
4533
|
type Parameters$1 = {
|
|
4516
4534
|
params?: Record<string, unknown>;
|
|
4517
4535
|
pathParams?: Record<string, unknown>;
|
|
@@ -4530,6 +4548,9 @@ declare namespace ApiTypes {
|
|
|
4530
4548
|
type SeasonsProcess = SeasonsProcessType;
|
|
4531
4549
|
type Sensor = SensorType;
|
|
4532
4550
|
type CroppingPattern = CroppingPatternTypes;
|
|
4551
|
+
type Experiments = ExperimentsType;
|
|
4552
|
+
type Statics = StaticsTypes;
|
|
4553
|
+
type Products = ProductsTypes;
|
|
4533
4554
|
}
|
|
4534
4555
|
|
|
4535
4556
|
type GetProductsParams = paths["/farmers/{farmerId}/products"]["get"]["parameters"];
|
|
@@ -4542,18 +4563,6 @@ type ProductsTypes = ApiRequestType<{
|
|
|
4542
4563
|
};
|
|
4543
4564
|
}>;
|
|
4544
4565
|
|
|
4545
|
-
type GetExperimentParams = paths["/farmers/{farmerId}/experiments/results"]["get"]["parameters"];
|
|
4546
|
-
type GetExperimentWithMeta = paths["/farmers/{farmerId}/experiments/results"]["get"]["responses"]["200"]["content"]["application/json"]["result"]["data"];
|
|
4547
|
-
type ExperimentsType = ApiRequestType<{
|
|
4548
|
-
experiment: components["schemas"]["Experiment"];
|
|
4549
|
-
experimentWithMeta: GetExperimentWithMeta;
|
|
4550
|
-
}, {
|
|
4551
|
-
getExperiments: {
|
|
4552
|
-
params: GetExperimentParams["query"];
|
|
4553
|
-
pathParams: GetExperimentParams["path"];
|
|
4554
|
-
};
|
|
4555
|
-
}>;
|
|
4556
|
-
|
|
4557
4566
|
type HttpMethod = "get" | "post" | "put" | "delete" | "patch";
|
|
4558
4567
|
type ExtractPathsByMethod<M extends HttpMethod> = {
|
|
4559
4568
|
[K in keyof paths]: M extends keyof paths[K] ? K : never;
|
package/dist/index.mjs
CHANGED
|
@@ -611,9 +611,9 @@ var experimentMapper = {
|
|
|
611
611
|
getExperiment: (dto) => ({
|
|
612
612
|
id: dto.id,
|
|
613
613
|
createdAt: dto.createdAt,
|
|
614
|
-
laboratory: dto.laboratory
|
|
614
|
+
laboratory: dto.laboratory,
|
|
615
615
|
samplesCount: dto.samplesCount,
|
|
616
|
-
status: dto.status
|
|
616
|
+
status: dto.status
|
|
617
617
|
}),
|
|
618
618
|
getExperiments: (dto) => ({
|
|
619
619
|
experiments: dto.experiments.map(experimentMapper.getExperiment),
|