@deepintel-ltd/farmpro-contracts 1.11.8 → 1.11.9

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 (40) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -0
  4. package/dist/routes/agents.routes.d.ts +142 -0
  5. package/dist/routes/agents.routes.d.ts.map +1 -1
  6. package/dist/routes/equipment.routes.d.ts +36 -36
  7. package/dist/routes/extension.routes.d.ts +12 -12
  8. package/dist/routes/fertigation.routes.d.ts +156 -156
  9. package/dist/routes/field-activities.routes.d.ts +2397 -0
  10. package/dist/routes/field-activities.routes.d.ts.map +1 -0
  11. package/dist/routes/field-activities.routes.js +81 -0
  12. package/dist/routes/fields.routes.d.ts +860 -0
  13. package/dist/routes/fields.routes.d.ts.map +1 -1
  14. package/dist/routes/fields.routes.js +20 -1
  15. package/dist/routes/index.d.ts +3 -0
  16. package/dist/routes/index.d.ts.map +1 -1
  17. package/dist/routes/index.js +2 -0
  18. package/dist/routes/irrigation.routes.d.ts +20 -20
  19. package/dist/routes/livestock-groups.routes.d.ts +36 -36
  20. package/dist/routes/livestock.routes.d.ts +30 -30
  21. package/dist/routes/soil-tests.routes.d.ts +36 -36
  22. package/dist/routes/tasks.routes.d.ts +120 -120
  23. package/dist/schemas/agents.schemas.d.ts +163 -0
  24. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  25. package/dist/schemas/agents.schemas.js +23 -0
  26. package/dist/schemas/equipment.schemas.d.ts +30 -30
  27. package/dist/schemas/extension.schemas.d.ts +18 -18
  28. package/dist/schemas/fertigation.schemas.d.ts +42 -42
  29. package/dist/schemas/field-activities.schemas.d.ts +806 -0
  30. package/dist/schemas/field-activities.schemas.d.ts.map +1 -0
  31. package/dist/schemas/field-activities.schemas.js +68 -0
  32. package/dist/schemas/fields.schemas.d.ts +173 -0
  33. package/dist/schemas/fields.schemas.d.ts.map +1 -1
  34. package/dist/schemas/fields.schemas.js +14 -0
  35. package/dist/schemas/irrigation.schemas.d.ts +14 -14
  36. package/dist/schemas/livestock-groups.schemas.d.ts +24 -24
  37. package/dist/schemas/livestock.schemas.d.ts +24 -24
  38. package/dist/schemas/soil-tests.schemas.d.ts +34 -34
  39. package/dist/schemas/tasks.schemas.d.ts +96 -96
  40. package/package.json +1 -1
@@ -2458,6 +2458,31 @@ export declare const fieldsRouter: {
2458
2458
  plantingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2459
2459
  expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2460
2460
  cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>>;
2461
+ cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
2462
+ id: z.ZodString;
2463
+ season: z.ZodString;
2464
+ crop: z.ZodString;
2465
+ plantingDate: z.ZodString;
2466
+ harvestDate: z.ZodNullable<z.ZodString>;
2467
+ yield: z.ZodNullable<z.ZodNumber>;
2468
+ yieldUnit: z.ZodNullable<z.ZodString>;
2469
+ }, "strip", z.ZodTypeAny, {
2470
+ id: string;
2471
+ crop: string;
2472
+ season: string;
2473
+ plantingDate: string;
2474
+ harvestDate: string | null;
2475
+ yield: number | null;
2476
+ yieldUnit: string | null;
2477
+ }, {
2478
+ id: string;
2479
+ crop: string;
2480
+ season: string;
2481
+ plantingDate: string;
2482
+ harvestDate: string | null;
2483
+ yield: number | null;
2484
+ yieldUnit: string | null;
2485
+ }>, "many">>;
2461
2486
  }, "strip", z.ZodTypeAny, {
2462
2487
  name?: string | undefined;
2463
2488
  crop?: string | undefined;
@@ -2472,6 +2497,15 @@ export declare const fieldsRouter: {
2472
2497
  soilType?: string | undefined;
2473
2498
  expectedHarvestDate?: string | null | undefined;
2474
2499
  cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
2500
+ cropHistory?: {
2501
+ id: string;
2502
+ crop: string;
2503
+ season: string;
2504
+ plantingDate: string;
2505
+ harvestDate: string | null;
2506
+ yield: number | null;
2507
+ yieldUnit: string | null;
2508
+ }[] | undefined;
2475
2509
  }, {
2476
2510
  name?: string | undefined;
2477
2511
  crop?: string | undefined;
@@ -2486,6 +2520,15 @@ export declare const fieldsRouter: {
2486
2520
  soilType?: string | undefined;
2487
2521
  expectedHarvestDate?: string | null | undefined;
2488
2522
  cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
2523
+ cropHistory?: {
2524
+ id: string;
2525
+ crop: string;
2526
+ season: string;
2527
+ plantingDate: string;
2528
+ harvestDate: string | null;
2529
+ yield: number | null;
2530
+ yieldUnit: string | null;
2531
+ }[] | undefined;
2489
2532
  }>;
2490
2533
  }, "strip", z.ZodTypeAny, {
2491
2534
  type: "fields";
@@ -2504,6 +2547,15 @@ export declare const fieldsRouter: {
2504
2547
  soilType?: string | undefined;
2505
2548
  expectedHarvestDate?: string | null | undefined;
2506
2549
  cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
2550
+ cropHistory?: {
2551
+ id: string;
2552
+ crop: string;
2553
+ season: string;
2554
+ plantingDate: string;
2555
+ harvestDate: string | null;
2556
+ yield: number | null;
2557
+ yieldUnit: string | null;
2558
+ }[] | undefined;
2507
2559
  };
2508
2560
  }, {
2509
2561
  type: "fields";
@@ -2522,6 +2574,15 @@ export declare const fieldsRouter: {
2522
2574
  soilType?: string | undefined;
2523
2575
  expectedHarvestDate?: string | null | undefined;
2524
2576
  cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
2577
+ cropHistory?: {
2578
+ id: string;
2579
+ crop: string;
2580
+ season: string;
2581
+ plantingDate: string;
2582
+ harvestDate: string | null;
2583
+ yield: number | null;
2584
+ yieldUnit: string | null;
2585
+ }[] | undefined;
2525
2586
  };
2526
2587
  }>;
2527
2588
  }, "strip", z.ZodTypeAny, {
@@ -2542,6 +2603,15 @@ export declare const fieldsRouter: {
2542
2603
  soilType?: string | undefined;
2543
2604
  expectedHarvestDate?: string | null | undefined;
2544
2605
  cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
2606
+ cropHistory?: {
2607
+ id: string;
2608
+ crop: string;
2609
+ season: string;
2610
+ plantingDate: string;
2611
+ harvestDate: string | null;
2612
+ yield: number | null;
2613
+ yieldUnit: string | null;
2614
+ }[] | undefined;
2545
2615
  };
2546
2616
  };
2547
2617
  }, {
@@ -2562,6 +2632,15 @@ export declare const fieldsRouter: {
2562
2632
  soilType?: string | undefined;
2563
2633
  expectedHarvestDate?: string | null | undefined;
2564
2634
  cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
2635
+ cropHistory?: {
2636
+ id: string;
2637
+ crop: string;
2638
+ season: string;
2639
+ plantingDate: string;
2640
+ harvestDate: string | null;
2641
+ yield: number | null;
2642
+ yieldUnit: string | null;
2643
+ }[] | undefined;
2565
2644
  };
2566
2645
  };
2567
2646
  }>;
@@ -3261,6 +3340,787 @@ export declare const fieldsRouter: {
3261
3340
  }>;
3262
3341
  };
3263
3342
  };
3343
+ recordPlanting: {
3344
+ pathParams: z.ZodObject<{
3345
+ farmId: z.ZodString;
3346
+ id: z.ZodString;
3347
+ }, "strip", z.ZodTypeAny, {
3348
+ id: string;
3349
+ farmId: string;
3350
+ }, {
3351
+ id: string;
3352
+ farmId: string;
3353
+ }>;
3354
+ summary: "Record planting";
3355
+ description: "Record a new planting on a field, archiving the prior season into cropHistory when present";
3356
+ method: "POST";
3357
+ body: z.ZodObject<{
3358
+ data: z.ZodObject<{
3359
+ type: z.ZodLiteral<"field-plantings">;
3360
+ attributes: z.ZodObject<{
3361
+ plantingDate: z.ZodString;
3362
+ currentCrop: z.ZodString;
3363
+ expectedHarvestDate: z.ZodOptional<z.ZodString>;
3364
+ variety: z.ZodOptional<z.ZodString>;
3365
+ notes: z.ZodOptional<z.ZodString>;
3366
+ cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
3367
+ }, "strip", z.ZodTypeAny, {
3368
+ currentCrop: string;
3369
+ plantingDate: string;
3370
+ expectedHarvestDate?: string | undefined;
3371
+ cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
3372
+ variety?: string | undefined;
3373
+ notes?: string | undefined;
3374
+ }, {
3375
+ currentCrop: string;
3376
+ plantingDate: string;
3377
+ expectedHarvestDate?: string | undefined;
3378
+ cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
3379
+ variety?: string | undefined;
3380
+ notes?: string | undefined;
3381
+ }>;
3382
+ }, "strip", z.ZodTypeAny, {
3383
+ type: "field-plantings";
3384
+ attributes: {
3385
+ currentCrop: string;
3386
+ plantingDate: string;
3387
+ expectedHarvestDate?: string | undefined;
3388
+ cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
3389
+ variety?: string | undefined;
3390
+ notes?: string | undefined;
3391
+ };
3392
+ }, {
3393
+ type: "field-plantings";
3394
+ attributes: {
3395
+ currentCrop: string;
3396
+ plantingDate: string;
3397
+ expectedHarvestDate?: string | undefined;
3398
+ cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
3399
+ variety?: string | undefined;
3400
+ notes?: string | undefined;
3401
+ };
3402
+ }>;
3403
+ }, "strip", z.ZodTypeAny, {
3404
+ data: {
3405
+ type: "field-plantings";
3406
+ attributes: {
3407
+ currentCrop: string;
3408
+ plantingDate: string;
3409
+ expectedHarvestDate?: string | undefined;
3410
+ cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
3411
+ variety?: string | undefined;
3412
+ notes?: string | undefined;
3413
+ };
3414
+ };
3415
+ }, {
3416
+ data: {
3417
+ type: "field-plantings";
3418
+ attributes: {
3419
+ currentCrop: string;
3420
+ plantingDate: string;
3421
+ expectedHarvestDate?: string | undefined;
3422
+ cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
3423
+ variety?: string | undefined;
3424
+ notes?: string | undefined;
3425
+ };
3426
+ };
3427
+ }>;
3428
+ path: "/farms/:farmId/fields/:id/plantings";
3429
+ responses: {
3430
+ 200: z.ZodObject<{
3431
+ data: z.ZodObject<{
3432
+ type: z.ZodLiteral<string>;
3433
+ id: z.ZodString;
3434
+ attributes: z.ZodObject<{
3435
+ name: z.ZodString;
3436
+ geometry: z.ZodNullable<z.ZodObject<{
3437
+ type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
3438
+ coordinates: z.ZodUnion<[z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">, z.ZodArray<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">]>;
3439
+ }, "strip", z.ZodTypeAny, {
3440
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
3441
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
3442
+ }, {
3443
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
3444
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
3445
+ }>>;
3446
+ ndvi: z.ZodNullable<z.ZodNumber>;
3447
+ moisture: z.ZodNullable<z.ZodString>;
3448
+ status: z.ZodEnum<["ok", "alert", "critical"]>;
3449
+ area: z.ZodNullable<z.ZodString>;
3450
+ crop: z.ZodNullable<z.ZodString>;
3451
+ soilType: z.ZodNullable<z.ZodString>;
3452
+ currentCrop: z.ZodNullable<z.ZodString>;
3453
+ plantingDate: z.ZodNullable<z.ZodString>;
3454
+ expectedHarvestDate: z.ZodNullable<z.ZodString>;
3455
+ cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
3456
+ historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
3457
+ date: z.ZodString;
3458
+ value: z.ZodNumber;
3459
+ }, "strip", z.ZodTypeAny, {
3460
+ value: number;
3461
+ date: string;
3462
+ }, {
3463
+ value: number;
3464
+ date: string;
3465
+ }>, "many">>;
3466
+ cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
3467
+ id: z.ZodString;
3468
+ season: z.ZodString;
3469
+ crop: z.ZodString;
3470
+ plantingDate: z.ZodString;
3471
+ harvestDate: z.ZodNullable<z.ZodString>;
3472
+ yield: z.ZodNullable<z.ZodNumber>;
3473
+ yieldUnit: z.ZodNullable<z.ZodString>;
3474
+ }, "strip", z.ZodTypeAny, {
3475
+ id: string;
3476
+ crop: string;
3477
+ season: string;
3478
+ plantingDate: string;
3479
+ harvestDate: string | null;
3480
+ yield: number | null;
3481
+ yieldUnit: string | null;
3482
+ }, {
3483
+ id: string;
3484
+ crop: string;
3485
+ season: string;
3486
+ plantingDate: string;
3487
+ harvestDate: string | null;
3488
+ yield: number | null;
3489
+ yieldUnit: string | null;
3490
+ }>, "many">>;
3491
+ } & {
3492
+ createdAt: z.ZodString;
3493
+ updatedAt: z.ZodString;
3494
+ }, "strip", z.ZodTypeAny, {
3495
+ status: "ok" | "alert" | "critical";
3496
+ createdAt: string;
3497
+ updatedAt: string;
3498
+ name: string;
3499
+ crop: string | null;
3500
+ geometry: {
3501
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
3502
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
3503
+ } | null;
3504
+ area: string | null;
3505
+ currentCrop: string | null;
3506
+ plantingDate: string | null;
3507
+ ndvi: number | null;
3508
+ moisture: string | null;
3509
+ soilType: string | null;
3510
+ expectedHarvestDate: string | null;
3511
+ cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
3512
+ historicalNdvi?: {
3513
+ value: number;
3514
+ date: string;
3515
+ }[] | undefined;
3516
+ cropHistory?: {
3517
+ id: string;
3518
+ crop: string;
3519
+ season: string;
3520
+ plantingDate: string;
3521
+ harvestDate: string | null;
3522
+ yield: number | null;
3523
+ yieldUnit: string | null;
3524
+ }[] | undefined;
3525
+ }, {
3526
+ status: "ok" | "alert" | "critical";
3527
+ createdAt: string;
3528
+ updatedAt: string;
3529
+ name: string;
3530
+ crop: string | null;
3531
+ geometry: {
3532
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
3533
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
3534
+ } | null;
3535
+ area: string | null;
3536
+ currentCrop: string | null;
3537
+ plantingDate: string | null;
3538
+ ndvi: number | null;
3539
+ moisture: string | null;
3540
+ soilType: string | null;
3541
+ expectedHarvestDate: string | null;
3542
+ cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
3543
+ historicalNdvi?: {
3544
+ value: number;
3545
+ date: string;
3546
+ }[] | undefined;
3547
+ cropHistory?: {
3548
+ id: string;
3549
+ crop: string;
3550
+ season: string;
3551
+ plantingDate: string;
3552
+ harvestDate: string | null;
3553
+ yield: number | null;
3554
+ yieldUnit: string | null;
3555
+ }[] | undefined;
3556
+ }>;
3557
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3558
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3559
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3560
+ }, "strip", z.ZodTypeAny, {
3561
+ type: string;
3562
+ id: string;
3563
+ attributes: {
3564
+ status: "ok" | "alert" | "critical";
3565
+ createdAt: string;
3566
+ updatedAt: string;
3567
+ name: string;
3568
+ crop: string | null;
3569
+ geometry: {
3570
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
3571
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
3572
+ } | null;
3573
+ area: string | null;
3574
+ currentCrop: string | null;
3575
+ plantingDate: string | null;
3576
+ ndvi: number | null;
3577
+ moisture: string | null;
3578
+ soilType: string | null;
3579
+ expectedHarvestDate: string | null;
3580
+ cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
3581
+ historicalNdvi?: {
3582
+ value: number;
3583
+ date: string;
3584
+ }[] | undefined;
3585
+ cropHistory?: {
3586
+ id: string;
3587
+ crop: string;
3588
+ season: string;
3589
+ plantingDate: string;
3590
+ harvestDate: string | null;
3591
+ yield: number | null;
3592
+ yieldUnit: string | null;
3593
+ }[] | undefined;
3594
+ };
3595
+ relationships?: Record<string, unknown> | undefined;
3596
+ links?: Record<string, string> | undefined;
3597
+ meta?: Record<string, unknown> | undefined;
3598
+ }, {
3599
+ type: string;
3600
+ id: string;
3601
+ attributes: {
3602
+ status: "ok" | "alert" | "critical";
3603
+ createdAt: string;
3604
+ updatedAt: string;
3605
+ name: string;
3606
+ crop: string | null;
3607
+ geometry: {
3608
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
3609
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
3610
+ } | null;
3611
+ area: string | null;
3612
+ currentCrop: string | null;
3613
+ plantingDate: string | null;
3614
+ ndvi: number | null;
3615
+ moisture: string | null;
3616
+ soilType: string | null;
3617
+ expectedHarvestDate: string | null;
3618
+ cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
3619
+ historicalNdvi?: {
3620
+ value: number;
3621
+ date: string;
3622
+ }[] | undefined;
3623
+ cropHistory?: {
3624
+ id: string;
3625
+ crop: string;
3626
+ season: string;
3627
+ plantingDate: string;
3628
+ harvestDate: string | null;
3629
+ yield: number | null;
3630
+ yieldUnit: string | null;
3631
+ }[] | undefined;
3632
+ };
3633
+ relationships?: Record<string, unknown> | undefined;
3634
+ links?: Record<string, string> | undefined;
3635
+ meta?: Record<string, unknown> | undefined;
3636
+ }>;
3637
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
3638
+ type: z.ZodString;
3639
+ id: z.ZodString;
3640
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3641
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3642
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3643
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3644
+ }, "strip", z.ZodTypeAny, {
3645
+ type: string;
3646
+ id: string;
3647
+ attributes?: Record<string, unknown> | undefined;
3648
+ relationships?: Record<string, unknown> | undefined;
3649
+ links?: Record<string, string> | undefined;
3650
+ meta?: Record<string, unknown> | undefined;
3651
+ }, {
3652
+ type: string;
3653
+ id: string;
3654
+ attributes?: Record<string, unknown> | undefined;
3655
+ relationships?: Record<string, unknown> | undefined;
3656
+ links?: Record<string, string> | undefined;
3657
+ meta?: Record<string, unknown> | undefined;
3658
+ }>, "many">>;
3659
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3660
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3661
+ }, "strip", z.ZodTypeAny, {
3662
+ data: {
3663
+ type: string;
3664
+ id: string;
3665
+ attributes: {
3666
+ status: "ok" | "alert" | "critical";
3667
+ createdAt: string;
3668
+ updatedAt: string;
3669
+ name: string;
3670
+ crop: string | null;
3671
+ geometry: {
3672
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
3673
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
3674
+ } | null;
3675
+ area: string | null;
3676
+ currentCrop: string | null;
3677
+ plantingDate: string | null;
3678
+ ndvi: number | null;
3679
+ moisture: string | null;
3680
+ soilType: string | null;
3681
+ expectedHarvestDate: string | null;
3682
+ cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
3683
+ historicalNdvi?: {
3684
+ value: number;
3685
+ date: string;
3686
+ }[] | undefined;
3687
+ cropHistory?: {
3688
+ id: string;
3689
+ crop: string;
3690
+ season: string;
3691
+ plantingDate: string;
3692
+ harvestDate: string | null;
3693
+ yield: number | null;
3694
+ yieldUnit: string | null;
3695
+ }[] | undefined;
3696
+ };
3697
+ relationships?: Record<string, unknown> | undefined;
3698
+ links?: Record<string, string> | undefined;
3699
+ meta?: Record<string, unknown> | undefined;
3700
+ };
3701
+ links?: Record<string, string> | undefined;
3702
+ meta?: Record<string, unknown> | undefined;
3703
+ included?: {
3704
+ type: string;
3705
+ id: string;
3706
+ attributes?: Record<string, unknown> | undefined;
3707
+ relationships?: Record<string, unknown> | undefined;
3708
+ links?: Record<string, string> | undefined;
3709
+ meta?: Record<string, unknown> | undefined;
3710
+ }[] | undefined;
3711
+ }, {
3712
+ data: {
3713
+ type: string;
3714
+ id: string;
3715
+ attributes: {
3716
+ status: "ok" | "alert" | "critical";
3717
+ createdAt: string;
3718
+ updatedAt: string;
3719
+ name: string;
3720
+ crop: string | null;
3721
+ geometry: {
3722
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
3723
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
3724
+ } | null;
3725
+ area: string | null;
3726
+ currentCrop: string | null;
3727
+ plantingDate: string | null;
3728
+ ndvi: number | null;
3729
+ moisture: string | null;
3730
+ soilType: string | null;
3731
+ expectedHarvestDate: string | null;
3732
+ cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
3733
+ historicalNdvi?: {
3734
+ value: number;
3735
+ date: string;
3736
+ }[] | undefined;
3737
+ cropHistory?: {
3738
+ id: string;
3739
+ crop: string;
3740
+ season: string;
3741
+ plantingDate: string;
3742
+ harvestDate: string | null;
3743
+ yield: number | null;
3744
+ yieldUnit: string | null;
3745
+ }[] | undefined;
3746
+ };
3747
+ relationships?: Record<string, unknown> | undefined;
3748
+ links?: Record<string, string> | undefined;
3749
+ meta?: Record<string, unknown> | undefined;
3750
+ };
3751
+ links?: Record<string, string> | undefined;
3752
+ meta?: Record<string, unknown> | undefined;
3753
+ included?: {
3754
+ type: string;
3755
+ id: string;
3756
+ attributes?: Record<string, unknown> | undefined;
3757
+ relationships?: Record<string, unknown> | undefined;
3758
+ links?: Record<string, string> | undefined;
3759
+ meta?: Record<string, unknown> | undefined;
3760
+ }[] | undefined;
3761
+ }>;
3762
+ 400: z.ZodObject<{
3763
+ errors: z.ZodArray<z.ZodObject<{
3764
+ id: z.ZodOptional<z.ZodString>;
3765
+ links: z.ZodOptional<z.ZodObject<{
3766
+ about: z.ZodOptional<z.ZodString>;
3767
+ }, "strip", z.ZodTypeAny, {
3768
+ about?: string | undefined;
3769
+ }, {
3770
+ about?: string | undefined;
3771
+ }>>;
3772
+ status: z.ZodOptional<z.ZodString>;
3773
+ code: z.ZodOptional<z.ZodString>;
3774
+ title: z.ZodOptional<z.ZodString>;
3775
+ detail: z.ZodOptional<z.ZodString>;
3776
+ source: z.ZodOptional<z.ZodObject<{
3777
+ pointer: z.ZodOptional<z.ZodString>;
3778
+ parameter: z.ZodOptional<z.ZodString>;
3779
+ }, "strip", z.ZodTypeAny, {
3780
+ pointer?: string | undefined;
3781
+ parameter?: string | undefined;
3782
+ }, {
3783
+ pointer?: string | undefined;
3784
+ parameter?: string | undefined;
3785
+ }>>;
3786
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3787
+ }, "strip", z.ZodTypeAny, {
3788
+ status?: string | undefined;
3789
+ code?: string | undefined;
3790
+ id?: string | undefined;
3791
+ links?: {
3792
+ about?: string | undefined;
3793
+ } | undefined;
3794
+ meta?: Record<string, unknown> | undefined;
3795
+ title?: string | undefined;
3796
+ detail?: string | undefined;
3797
+ source?: {
3798
+ pointer?: string | undefined;
3799
+ parameter?: string | undefined;
3800
+ } | undefined;
3801
+ }, {
3802
+ status?: string | undefined;
3803
+ code?: string | undefined;
3804
+ id?: string | undefined;
3805
+ links?: {
3806
+ about?: string | undefined;
3807
+ } | undefined;
3808
+ meta?: Record<string, unknown> | undefined;
3809
+ title?: string | undefined;
3810
+ detail?: string | undefined;
3811
+ source?: {
3812
+ pointer?: string | undefined;
3813
+ parameter?: string | undefined;
3814
+ } | undefined;
3815
+ }>, "many">;
3816
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3817
+ }, "strip", z.ZodTypeAny, {
3818
+ errors: {
3819
+ status?: string | undefined;
3820
+ code?: string | undefined;
3821
+ id?: string | undefined;
3822
+ links?: {
3823
+ about?: string | undefined;
3824
+ } | undefined;
3825
+ meta?: Record<string, unknown> | undefined;
3826
+ title?: string | undefined;
3827
+ detail?: string | undefined;
3828
+ source?: {
3829
+ pointer?: string | undefined;
3830
+ parameter?: string | undefined;
3831
+ } | undefined;
3832
+ }[];
3833
+ meta?: Record<string, unknown> | undefined;
3834
+ }, {
3835
+ errors: {
3836
+ status?: string | undefined;
3837
+ code?: string | undefined;
3838
+ id?: string | undefined;
3839
+ links?: {
3840
+ about?: string | undefined;
3841
+ } | undefined;
3842
+ meta?: Record<string, unknown> | undefined;
3843
+ title?: string | undefined;
3844
+ detail?: string | undefined;
3845
+ source?: {
3846
+ pointer?: string | undefined;
3847
+ parameter?: string | undefined;
3848
+ } | undefined;
3849
+ }[];
3850
+ meta?: Record<string, unknown> | undefined;
3851
+ }>;
3852
+ 404: z.ZodObject<{
3853
+ errors: z.ZodArray<z.ZodObject<{
3854
+ id: z.ZodOptional<z.ZodString>;
3855
+ links: z.ZodOptional<z.ZodObject<{
3856
+ about: z.ZodOptional<z.ZodString>;
3857
+ }, "strip", z.ZodTypeAny, {
3858
+ about?: string | undefined;
3859
+ }, {
3860
+ about?: string | undefined;
3861
+ }>>;
3862
+ status: z.ZodOptional<z.ZodString>;
3863
+ code: z.ZodOptional<z.ZodString>;
3864
+ title: z.ZodOptional<z.ZodString>;
3865
+ detail: z.ZodOptional<z.ZodString>;
3866
+ source: z.ZodOptional<z.ZodObject<{
3867
+ pointer: z.ZodOptional<z.ZodString>;
3868
+ parameter: z.ZodOptional<z.ZodString>;
3869
+ }, "strip", z.ZodTypeAny, {
3870
+ pointer?: string | undefined;
3871
+ parameter?: string | undefined;
3872
+ }, {
3873
+ pointer?: string | undefined;
3874
+ parameter?: string | undefined;
3875
+ }>>;
3876
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3877
+ }, "strip", z.ZodTypeAny, {
3878
+ status?: string | undefined;
3879
+ code?: string | undefined;
3880
+ id?: string | undefined;
3881
+ links?: {
3882
+ about?: string | undefined;
3883
+ } | undefined;
3884
+ meta?: Record<string, unknown> | undefined;
3885
+ title?: string | undefined;
3886
+ detail?: string | undefined;
3887
+ source?: {
3888
+ pointer?: string | undefined;
3889
+ parameter?: string | undefined;
3890
+ } | undefined;
3891
+ }, {
3892
+ status?: string | undefined;
3893
+ code?: string | undefined;
3894
+ id?: string | undefined;
3895
+ links?: {
3896
+ about?: string | undefined;
3897
+ } | undefined;
3898
+ meta?: Record<string, unknown> | undefined;
3899
+ title?: string | undefined;
3900
+ detail?: string | undefined;
3901
+ source?: {
3902
+ pointer?: string | undefined;
3903
+ parameter?: string | undefined;
3904
+ } | undefined;
3905
+ }>, "many">;
3906
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3907
+ }, "strip", z.ZodTypeAny, {
3908
+ errors: {
3909
+ status?: string | undefined;
3910
+ code?: string | undefined;
3911
+ id?: string | undefined;
3912
+ links?: {
3913
+ about?: string | undefined;
3914
+ } | undefined;
3915
+ meta?: Record<string, unknown> | undefined;
3916
+ title?: string | undefined;
3917
+ detail?: string | undefined;
3918
+ source?: {
3919
+ pointer?: string | undefined;
3920
+ parameter?: string | undefined;
3921
+ } | undefined;
3922
+ }[];
3923
+ meta?: Record<string, unknown> | undefined;
3924
+ }, {
3925
+ errors: {
3926
+ status?: string | undefined;
3927
+ code?: string | undefined;
3928
+ id?: string | undefined;
3929
+ links?: {
3930
+ about?: string | undefined;
3931
+ } | undefined;
3932
+ meta?: Record<string, unknown> | undefined;
3933
+ title?: string | undefined;
3934
+ detail?: string | undefined;
3935
+ source?: {
3936
+ pointer?: string | undefined;
3937
+ parameter?: string | undefined;
3938
+ } | undefined;
3939
+ }[];
3940
+ meta?: Record<string, unknown> | undefined;
3941
+ }>;
3942
+ 401: z.ZodObject<{
3943
+ errors: z.ZodArray<z.ZodObject<{
3944
+ id: z.ZodOptional<z.ZodString>;
3945
+ links: z.ZodOptional<z.ZodObject<{
3946
+ about: z.ZodOptional<z.ZodString>;
3947
+ }, "strip", z.ZodTypeAny, {
3948
+ about?: string | undefined;
3949
+ }, {
3950
+ about?: string | undefined;
3951
+ }>>;
3952
+ status: z.ZodOptional<z.ZodString>;
3953
+ code: z.ZodOptional<z.ZodString>;
3954
+ title: z.ZodOptional<z.ZodString>;
3955
+ detail: z.ZodOptional<z.ZodString>;
3956
+ source: z.ZodOptional<z.ZodObject<{
3957
+ pointer: z.ZodOptional<z.ZodString>;
3958
+ parameter: z.ZodOptional<z.ZodString>;
3959
+ }, "strip", z.ZodTypeAny, {
3960
+ pointer?: string | undefined;
3961
+ parameter?: string | undefined;
3962
+ }, {
3963
+ pointer?: string | undefined;
3964
+ parameter?: string | undefined;
3965
+ }>>;
3966
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3967
+ }, "strip", z.ZodTypeAny, {
3968
+ status?: string | undefined;
3969
+ code?: string | undefined;
3970
+ id?: string | undefined;
3971
+ links?: {
3972
+ about?: string | undefined;
3973
+ } | undefined;
3974
+ meta?: Record<string, unknown> | undefined;
3975
+ title?: string | undefined;
3976
+ detail?: string | undefined;
3977
+ source?: {
3978
+ pointer?: string | undefined;
3979
+ parameter?: string | undefined;
3980
+ } | undefined;
3981
+ }, {
3982
+ status?: string | undefined;
3983
+ code?: string | undefined;
3984
+ id?: string | undefined;
3985
+ links?: {
3986
+ about?: string | undefined;
3987
+ } | undefined;
3988
+ meta?: Record<string, unknown> | undefined;
3989
+ title?: string | undefined;
3990
+ detail?: string | undefined;
3991
+ source?: {
3992
+ pointer?: string | undefined;
3993
+ parameter?: string | undefined;
3994
+ } | undefined;
3995
+ }>, "many">;
3996
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3997
+ }, "strip", z.ZodTypeAny, {
3998
+ errors: {
3999
+ status?: string | undefined;
4000
+ code?: string | undefined;
4001
+ id?: string | undefined;
4002
+ links?: {
4003
+ about?: string | undefined;
4004
+ } | undefined;
4005
+ meta?: Record<string, unknown> | undefined;
4006
+ title?: string | undefined;
4007
+ detail?: string | undefined;
4008
+ source?: {
4009
+ pointer?: string | undefined;
4010
+ parameter?: string | undefined;
4011
+ } | undefined;
4012
+ }[];
4013
+ meta?: Record<string, unknown> | undefined;
4014
+ }, {
4015
+ errors: {
4016
+ status?: string | undefined;
4017
+ code?: string | undefined;
4018
+ id?: string | undefined;
4019
+ links?: {
4020
+ about?: string | undefined;
4021
+ } | undefined;
4022
+ meta?: Record<string, unknown> | undefined;
4023
+ title?: string | undefined;
4024
+ detail?: string | undefined;
4025
+ source?: {
4026
+ pointer?: string | undefined;
4027
+ parameter?: string | undefined;
4028
+ } | undefined;
4029
+ }[];
4030
+ meta?: Record<string, unknown> | undefined;
4031
+ }>;
4032
+ 422: z.ZodObject<{
4033
+ errors: z.ZodArray<z.ZodObject<{
4034
+ id: z.ZodOptional<z.ZodString>;
4035
+ links: z.ZodOptional<z.ZodObject<{
4036
+ about: z.ZodOptional<z.ZodString>;
4037
+ }, "strip", z.ZodTypeAny, {
4038
+ about?: string | undefined;
4039
+ }, {
4040
+ about?: string | undefined;
4041
+ }>>;
4042
+ status: z.ZodOptional<z.ZodString>;
4043
+ code: z.ZodOptional<z.ZodString>;
4044
+ title: z.ZodOptional<z.ZodString>;
4045
+ detail: z.ZodOptional<z.ZodString>;
4046
+ source: z.ZodOptional<z.ZodObject<{
4047
+ pointer: z.ZodOptional<z.ZodString>;
4048
+ parameter: z.ZodOptional<z.ZodString>;
4049
+ }, "strip", z.ZodTypeAny, {
4050
+ pointer?: string | undefined;
4051
+ parameter?: string | undefined;
4052
+ }, {
4053
+ pointer?: string | undefined;
4054
+ parameter?: string | undefined;
4055
+ }>>;
4056
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4057
+ }, "strip", z.ZodTypeAny, {
4058
+ status?: string | undefined;
4059
+ code?: string | undefined;
4060
+ id?: string | undefined;
4061
+ links?: {
4062
+ about?: string | undefined;
4063
+ } | undefined;
4064
+ meta?: Record<string, unknown> | undefined;
4065
+ title?: string | undefined;
4066
+ detail?: string | undefined;
4067
+ source?: {
4068
+ pointer?: string | undefined;
4069
+ parameter?: string | undefined;
4070
+ } | undefined;
4071
+ }, {
4072
+ status?: string | undefined;
4073
+ code?: string | undefined;
4074
+ id?: string | undefined;
4075
+ links?: {
4076
+ about?: string | undefined;
4077
+ } | undefined;
4078
+ meta?: Record<string, unknown> | undefined;
4079
+ title?: string | undefined;
4080
+ detail?: string | undefined;
4081
+ source?: {
4082
+ pointer?: string | undefined;
4083
+ parameter?: string | undefined;
4084
+ } | undefined;
4085
+ }>, "many">;
4086
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4087
+ }, "strip", z.ZodTypeAny, {
4088
+ errors: {
4089
+ status?: string | undefined;
4090
+ code?: string | undefined;
4091
+ id?: string | undefined;
4092
+ links?: {
4093
+ about?: string | undefined;
4094
+ } | undefined;
4095
+ meta?: Record<string, unknown> | undefined;
4096
+ title?: string | undefined;
4097
+ detail?: string | undefined;
4098
+ source?: {
4099
+ pointer?: string | undefined;
4100
+ parameter?: string | undefined;
4101
+ } | undefined;
4102
+ }[];
4103
+ meta?: Record<string, unknown> | undefined;
4104
+ }, {
4105
+ errors: {
4106
+ status?: string | undefined;
4107
+ code?: string | undefined;
4108
+ id?: string | undefined;
4109
+ links?: {
4110
+ about?: string | undefined;
4111
+ } | undefined;
4112
+ meta?: Record<string, unknown> | undefined;
4113
+ title?: string | undefined;
4114
+ detail?: string | undefined;
4115
+ source?: {
4116
+ pointer?: string | undefined;
4117
+ parameter?: string | undefined;
4118
+ } | undefined;
4119
+ }[];
4120
+ meta?: Record<string, unknown> | undefined;
4121
+ }>;
4122
+ };
4123
+ };
3264
4124
  deleteField: {
3265
4125
  pathParams: z.ZodObject<{
3266
4126
  farmId: z.ZodString;