@agroyaar/sdk 3.4.2 → 3.4.3

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +19 -12
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4512,6 +4512,22 @@ type CroppingPatternTypes = ApiRequestType<{
4512
4512
  };
4513
4513
  }>;
4514
4514
 
4515
+ type GetExperimentParams = paths["/farmers/{farmerId}/experiments/results"]["get"]["parameters"];
4516
+ type GetExperimentWithMeta = paths["/farmers/{farmerId}/experiments/results"]["get"]["responses"]["200"]["content"]["application/json"]["result"]["data"];
4517
+ type ExperimentsType = ApiRequestType<{
4518
+ experiment: components["schemas"]["Experiment"];
4519
+ experimentWithMeta: GetExperimentWithMeta;
4520
+ }, {
4521
+ getExperiments: {
4522
+ params: GetExperimentParams["query"];
4523
+ pathParams: GetExperimentParams["path"];
4524
+ };
4525
+ }>;
4526
+
4527
+ type StaticsTypes = ApiRequestType<{
4528
+ plantType: components["schemas"]["ProductKind"];
4529
+ }, {}>;
4530
+
4515
4531
  type Parameters$1 = {
4516
4532
  params?: Record<string, unknown>;
4517
4533
  pathParams?: Record<string, unknown>;
@@ -4530,6 +4546,9 @@ declare namespace ApiTypes {
4530
4546
  type SeasonsProcess = SeasonsProcessType;
4531
4547
  type Sensor = SensorType;
4532
4548
  type CroppingPattern = CroppingPatternTypes;
4549
+ type Experiments = ExperimentsType;
4550
+ type Statics = StaticsTypes;
4551
+ type Products = ProductsTypes;
4533
4552
  }
4534
4553
 
4535
4554
  type GetProductsParams = paths["/farmers/{farmerId}/products"]["get"]["parameters"];
@@ -4542,18 +4561,6 @@ type ProductsTypes = ApiRequestType<{
4542
4561
  };
4543
4562
  }>;
4544
4563
 
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
4564
  type HttpMethod = "get" | "post" | "put" | "delete" | "patch";
4558
4565
  type ExtractPathsByMethod<M extends HttpMethod> = {
4559
4566
  [K in keyof paths]: M extends keyof paths[K] ? K : never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agroyaar/sdk",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",