@deepintel-ltd/farmpro-contracts 1.16.1 → 1.16.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/routes/agents.routes.d.ts +8 -8
- package/dist/routes/documents.routes.d.ts +78 -78
- package/dist/routes/fertigation.routes.d.ts +4 -4
- package/dist/routes/field-observations.routes.d.ts +174 -28
- package/dist/routes/field-observations.routes.d.ts.map +1 -1
- package/dist/routes/field-observations.routes.js +7 -4
- package/dist/routes/fields.routes.d.ts +797 -0
- package/dist/routes/fields.routes.d.ts.map +1 -1
- package/dist/routes/fields.routes.js +23 -1
- package/dist/routes/files.routes.d.ts +6 -6
- package/dist/routes/finance.routes.d.ts +30 -30
- package/dist/routes/inventory.routes.d.ts +6 -6
- package/dist/routes/irrigation.routes.d.ts +2 -2
- package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
- package/dist/routes/pest-disease-risk.routes.d.ts +44 -44
- package/dist/routes/prescription-maps.routes.d.ts +4 -4
- package/dist/routes/subscriptions.routes.d.ts +4 -4
- package/dist/routes/tasks.routes.d.ts +108 -108
- package/dist/routes/team-payments.routes.d.ts +36 -36
- package/dist/routes/weather.routes.d.ts +42 -42
- package/dist/schemas/agents.schemas.d.ts +8 -8
- package/dist/schemas/common.schemas.d.ts +32 -0
- package/dist/schemas/common.schemas.d.ts.map +1 -1
- package/dist/schemas/common.schemas.js +14 -0
- package/dist/schemas/documents.schemas.d.ts +48 -48
- package/dist/schemas/fertigation.schemas.d.ts +2 -2
- package/dist/schemas/fields.schemas.d.ts +42 -0
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +4 -0
- package/dist/schemas/files.schemas.d.ts +12 -12
- package/dist/schemas/finance.schemas.d.ts +34 -34
- package/dist/schemas/inventory.schemas.d.ts +6 -6
- package/dist/schemas/irrigation.schemas.d.ts +2 -2
- package/dist/schemas/monitoring-visualization.schemas.d.ts +6 -6
- package/dist/schemas/pest-disease-risk.schemas.d.ts +36 -36
- package/dist/schemas/prescription-maps.schemas.d.ts +4 -4
- package/dist/schemas/subscriptions.schemas.d.ts +2 -2
- package/dist/schemas/tasks.schemas.d.ts +96 -96
- package/dist/schemas/team-payments.schemas.d.ts +24 -24
- package/dist/schemas/weather.schemas.d.ts +84 -84
- package/package.json +1 -1
|
@@ -61,6 +61,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
|
|
|
61
61
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
62
62
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
63
63
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
64
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
65
|
historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
66
|
date: z.ZodString;
|
|
66
67
|
value: z.ZodNumber;
|
|
@@ -117,6 +118,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
|
|
|
117
118
|
soilType: string | null;
|
|
118
119
|
expectedHarvestDate: string | null;
|
|
119
120
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
121
|
+
coverImage?: string | null | undefined;
|
|
120
122
|
historicalNdvi?: {
|
|
121
123
|
value: number;
|
|
122
124
|
date: string;
|
|
@@ -148,6 +150,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
|
|
|
148
150
|
soilType: string | null;
|
|
149
151
|
expectedHarvestDate: string | null;
|
|
150
152
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
153
|
+
coverImage?: string | null | undefined;
|
|
151
154
|
historicalNdvi?: {
|
|
152
155
|
value: number;
|
|
153
156
|
date: string;
|
|
@@ -258,6 +261,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
258
261
|
yield: number | null;
|
|
259
262
|
yieldUnit: string | null;
|
|
260
263
|
}>, "many">>;
|
|
264
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
261
265
|
}, "strip", z.ZodTypeAny, {
|
|
262
266
|
name?: string | undefined;
|
|
263
267
|
crop?: string | undefined;
|
|
@@ -273,6 +277,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
273
277
|
soilType?: string | undefined;
|
|
274
278
|
expectedHarvestDate?: string | null | undefined;
|
|
275
279
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
280
|
+
coverImage?: string | null | undefined;
|
|
276
281
|
cropHistory?: {
|
|
277
282
|
id: string;
|
|
278
283
|
crop: string;
|
|
@@ -297,6 +302,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
297
302
|
soilType?: string | undefined;
|
|
298
303
|
expectedHarvestDate?: string | null | undefined;
|
|
299
304
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
305
|
+
coverImage?: string | null | undefined;
|
|
300
306
|
cropHistory?: {
|
|
301
307
|
id: string;
|
|
302
308
|
crop: string;
|
|
@@ -564,6 +570,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
564
570
|
yield: number | null;
|
|
565
571
|
yieldUnit: string | null;
|
|
566
572
|
}>, "many">>;
|
|
573
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
567
574
|
}, "strip", z.ZodTypeAny, {
|
|
568
575
|
name?: string | undefined;
|
|
569
576
|
crop?: string | undefined;
|
|
@@ -579,6 +586,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
579
586
|
soilType?: string | undefined;
|
|
580
587
|
expectedHarvestDate?: string | null | undefined;
|
|
581
588
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
589
|
+
coverImage?: string | null | undefined;
|
|
582
590
|
cropHistory?: {
|
|
583
591
|
id: string;
|
|
584
592
|
crop: string;
|
|
@@ -603,6 +611,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
603
611
|
soilType?: string | undefined;
|
|
604
612
|
expectedHarvestDate?: string | null | undefined;
|
|
605
613
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
614
|
+
coverImage?: string | null | undefined;
|
|
606
615
|
cropHistory?: {
|
|
607
616
|
id: string;
|
|
608
617
|
crop: string;
|
|
@@ -631,6 +640,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
631
640
|
soilType?: string | undefined;
|
|
632
641
|
expectedHarvestDate?: string | null | undefined;
|
|
633
642
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
643
|
+
coverImage?: string | null | undefined;
|
|
634
644
|
cropHistory?: {
|
|
635
645
|
id: string;
|
|
636
646
|
crop: string;
|
|
@@ -659,6 +669,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
659
669
|
soilType?: string | undefined;
|
|
660
670
|
expectedHarvestDate?: string | null | undefined;
|
|
661
671
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
672
|
+
coverImage?: string | null | undefined;
|
|
662
673
|
cropHistory?: {
|
|
663
674
|
id: string;
|
|
664
675
|
crop: string;
|
|
@@ -695,6 +706,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
695
706
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
696
707
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
697
708
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
709
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
698
710
|
historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
699
711
|
date: z.ZodString;
|
|
700
712
|
value: z.ZodNumber;
|
|
@@ -751,6 +763,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
751
763
|
soilType: string | null;
|
|
752
764
|
expectedHarvestDate: string | null;
|
|
753
765
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
766
|
+
coverImage?: string | null | undefined;
|
|
754
767
|
historicalNdvi?: {
|
|
755
768
|
value: number;
|
|
756
769
|
date: string;
|
|
@@ -782,6 +795,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
782
795
|
soilType: string | null;
|
|
783
796
|
expectedHarvestDate: string | null;
|
|
784
797
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
798
|
+
coverImage?: string | null | undefined;
|
|
785
799
|
historicalNdvi?: {
|
|
786
800
|
value: number;
|
|
787
801
|
date: string;
|
|
@@ -820,6 +834,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
820
834
|
soilType: string | null;
|
|
821
835
|
expectedHarvestDate: string | null;
|
|
822
836
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
837
|
+
coverImage?: string | null | undefined;
|
|
823
838
|
historicalNdvi?: {
|
|
824
839
|
value: number;
|
|
825
840
|
date: string;
|
|
@@ -858,6 +873,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
858
873
|
soilType: string | null;
|
|
859
874
|
expectedHarvestDate: string | null;
|
|
860
875
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
876
|
+
coverImage?: string | null | undefined;
|
|
861
877
|
historicalNdvi?: {
|
|
862
878
|
value: number;
|
|
863
879
|
date: string;
|
|
@@ -901,6 +917,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
901
917
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
902
918
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
903
919
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
920
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
904
921
|
historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
905
922
|
date: z.ZodString;
|
|
906
923
|
value: z.ZodNumber;
|
|
@@ -957,6 +974,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
957
974
|
soilType: string | null;
|
|
958
975
|
expectedHarvestDate: string | null;
|
|
959
976
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
977
|
+
coverImage?: string | null | undefined;
|
|
960
978
|
historicalNdvi?: {
|
|
961
979
|
value: number;
|
|
962
980
|
date: string;
|
|
@@ -988,6 +1006,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
988
1006
|
soilType: string | null;
|
|
989
1007
|
expectedHarvestDate: string | null;
|
|
990
1008
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1009
|
+
coverImage?: string | null | undefined;
|
|
991
1010
|
historicalNdvi?: {
|
|
992
1011
|
value: number;
|
|
993
1012
|
date: string;
|
|
@@ -1221,6 +1240,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1221
1240
|
soilType: string | null;
|
|
1222
1241
|
expectedHarvestDate: string | null;
|
|
1223
1242
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1243
|
+
coverImage?: string | null | undefined;
|
|
1224
1244
|
historicalNdvi?: {
|
|
1225
1245
|
value: number;
|
|
1226
1246
|
date: string;
|
|
@@ -1293,6 +1313,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1293
1313
|
soilType: string | null;
|
|
1294
1314
|
expectedHarvestDate: string | null;
|
|
1295
1315
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1316
|
+
coverImage?: string | null | undefined;
|
|
1296
1317
|
historicalNdvi?: {
|
|
1297
1318
|
value: number;
|
|
1298
1319
|
date: string;
|
|
@@ -1371,6 +1392,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1371
1392
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
1372
1393
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
1373
1394
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
1395
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1374
1396
|
historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1375
1397
|
date: z.ZodString;
|
|
1376
1398
|
value: z.ZodNumber;
|
|
@@ -1427,6 +1449,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1427
1449
|
soilType: string | null;
|
|
1428
1450
|
expectedHarvestDate: string | null;
|
|
1429
1451
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1452
|
+
coverImage?: string | null | undefined;
|
|
1430
1453
|
historicalNdvi?: {
|
|
1431
1454
|
value: number;
|
|
1432
1455
|
date: string;
|
|
@@ -1458,6 +1481,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1458
1481
|
soilType: string | null;
|
|
1459
1482
|
expectedHarvestDate: string | null;
|
|
1460
1483
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1484
|
+
coverImage?: string | null | undefined;
|
|
1461
1485
|
historicalNdvi?: {
|
|
1462
1486
|
value: number;
|
|
1463
1487
|
date: string;
|
|
@@ -1496,6 +1520,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1496
1520
|
soilType: string | null;
|
|
1497
1521
|
expectedHarvestDate: string | null;
|
|
1498
1522
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1523
|
+
coverImage?: string | null | undefined;
|
|
1499
1524
|
historicalNdvi?: {
|
|
1500
1525
|
value: number;
|
|
1501
1526
|
date: string;
|
|
@@ -1534,6 +1559,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1534
1559
|
soilType: string | null;
|
|
1535
1560
|
expectedHarvestDate: string | null;
|
|
1536
1561
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1562
|
+
coverImage?: string | null | undefined;
|
|
1537
1563
|
historicalNdvi?: {
|
|
1538
1564
|
value: number;
|
|
1539
1565
|
date: string;
|
|
@@ -1598,6 +1624,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1598
1624
|
soilType: string | null;
|
|
1599
1625
|
expectedHarvestDate: string | null;
|
|
1600
1626
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1627
|
+
coverImage?: string | null | undefined;
|
|
1601
1628
|
historicalNdvi?: {
|
|
1602
1629
|
value: number;
|
|
1603
1630
|
date: string;
|
|
@@ -1648,6 +1675,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1648
1675
|
soilType: string | null;
|
|
1649
1676
|
expectedHarvestDate: string | null;
|
|
1650
1677
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1678
|
+
coverImage?: string | null | undefined;
|
|
1651
1679
|
historicalNdvi?: {
|
|
1652
1680
|
value: number;
|
|
1653
1681
|
date: string;
|
|
@@ -1703,6 +1731,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
1703
1731
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
1704
1732
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
1705
1733
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
1734
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1706
1735
|
historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1707
1736
|
date: z.ZodString;
|
|
1708
1737
|
value: z.ZodNumber;
|
|
@@ -1759,6 +1788,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
1759
1788
|
soilType: string | null;
|
|
1760
1789
|
expectedHarvestDate: string | null;
|
|
1761
1790
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1791
|
+
coverImage?: string | null | undefined;
|
|
1762
1792
|
historicalNdvi?: {
|
|
1763
1793
|
value: number;
|
|
1764
1794
|
date: string;
|
|
@@ -1790,6 +1820,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
1790
1820
|
soilType: string | null;
|
|
1791
1821
|
expectedHarvestDate: string | null;
|
|
1792
1822
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1823
|
+
coverImage?: string | null | undefined;
|
|
1793
1824
|
historicalNdvi?: {
|
|
1794
1825
|
value: number;
|
|
1795
1826
|
date: string;
|
|
@@ -2023,6 +2054,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2023
2054
|
soilType: string | null;
|
|
2024
2055
|
expectedHarvestDate: string | null;
|
|
2025
2056
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2057
|
+
coverImage?: string | null | undefined;
|
|
2026
2058
|
historicalNdvi?: {
|
|
2027
2059
|
value: number;
|
|
2028
2060
|
date: string;
|
|
@@ -2095,6 +2127,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2095
2127
|
soilType: string | null;
|
|
2096
2128
|
expectedHarvestDate: string | null;
|
|
2097
2129
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2130
|
+
coverImage?: string | null | undefined;
|
|
2098
2131
|
historicalNdvi?: {
|
|
2099
2132
|
value: number;
|
|
2100
2133
|
date: string;
|
|
@@ -2193,6 +2226,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2193
2226
|
soilType: string | null;
|
|
2194
2227
|
expectedHarvestDate: string | null;
|
|
2195
2228
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2229
|
+
coverImage?: string | null | undefined;
|
|
2196
2230
|
historicalNdvi?: {
|
|
2197
2231
|
value: number;
|
|
2198
2232
|
date: string;
|
|
@@ -2277,6 +2311,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2277
2311
|
soilType: string | null;
|
|
2278
2312
|
expectedHarvestDate: string | null;
|
|
2279
2313
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2314
|
+
coverImage?: string | null | undefined;
|
|
2280
2315
|
historicalNdvi?: {
|
|
2281
2316
|
value: number;
|
|
2282
2317
|
date: string;
|
|
@@ -2366,6 +2401,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2366
2401
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
2367
2402
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
2368
2403
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
2404
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2369
2405
|
historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2370
2406
|
date: z.ZodString;
|
|
2371
2407
|
value: z.ZodNumber;
|
|
@@ -2422,6 +2458,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2422
2458
|
soilType: string | null;
|
|
2423
2459
|
expectedHarvestDate: string | null;
|
|
2424
2460
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2461
|
+
coverImage?: string | null | undefined;
|
|
2425
2462
|
historicalNdvi?: {
|
|
2426
2463
|
value: number;
|
|
2427
2464
|
date: string;
|
|
@@ -2453,6 +2490,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2453
2490
|
soilType: string | null;
|
|
2454
2491
|
expectedHarvestDate: string | null;
|
|
2455
2492
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2493
|
+
coverImage?: string | null | undefined;
|
|
2456
2494
|
historicalNdvi?: {
|
|
2457
2495
|
value: number;
|
|
2458
2496
|
date: string;
|
|
@@ -2491,6 +2529,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2491
2529
|
soilType: string | null;
|
|
2492
2530
|
expectedHarvestDate: string | null;
|
|
2493
2531
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2532
|
+
coverImage?: string | null | undefined;
|
|
2494
2533
|
historicalNdvi?: {
|
|
2495
2534
|
value: number;
|
|
2496
2535
|
date: string;
|
|
@@ -2529,6 +2568,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2529
2568
|
soilType: string | null;
|
|
2530
2569
|
expectedHarvestDate: string | null;
|
|
2531
2570
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2571
|
+
coverImage?: string | null | undefined;
|
|
2532
2572
|
historicalNdvi?: {
|
|
2533
2573
|
value: number;
|
|
2534
2574
|
date: string;
|
|
@@ -2593,6 +2633,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2593
2633
|
soilType: string | null;
|
|
2594
2634
|
expectedHarvestDate: string | null;
|
|
2595
2635
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2636
|
+
coverImage?: string | null | undefined;
|
|
2596
2637
|
historicalNdvi?: {
|
|
2597
2638
|
value: number;
|
|
2598
2639
|
date: string;
|
|
@@ -2643,6 +2684,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2643
2684
|
soilType: string | null;
|
|
2644
2685
|
expectedHarvestDate: string | null;
|
|
2645
2686
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2687
|
+
coverImage?: string | null | undefined;
|
|
2646
2688
|
historicalNdvi?: {
|
|
2647
2689
|
value: number;
|
|
2648
2690
|
date: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/fields.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,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;;;;;;;;;;;;;;;;;;;;;EAW1D,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -37,6 +37,8 @@ export const fieldAttributesSchema = z.object({
|
|
|
37
37
|
plantingDate: z.string().datetime().nullable(),
|
|
38
38
|
expectedHarvestDate: z.string().datetime().nullable(),
|
|
39
39
|
cropStage: cropStageSchema.nullable(),
|
|
40
|
+
// Card cover: preset:<id> or /files/view/fields/...
|
|
41
|
+
coverImage: z.string().max(500).nullable().optional(),
|
|
40
42
|
// Historical data
|
|
41
43
|
historicalNdvi: z.array(historicalDataPointSchema).optional(),
|
|
42
44
|
cropHistory: z.array(cropHistoryEntrySchema).optional(),
|
|
@@ -67,6 +69,8 @@ export const updateFieldAttributesSchema = createFieldAttributesSchema
|
|
|
67
69
|
expectedHarvestDate: z.string().datetime().nullable().optional(),
|
|
68
70
|
cropStage: cropStageSchema.nullable().optional(),
|
|
69
71
|
cropHistory: z.array(cropHistoryEntrySchema).optional(),
|
|
72
|
+
/** `preset:<id>`, upload URL, or null to clear to category default */
|
|
73
|
+
coverImage: z.string().max(500).nullable().optional(),
|
|
70
74
|
});
|
|
71
75
|
// Record planting (archives prior season into cropHistory)
|
|
72
76
|
export const recordPlantingAttributesSchema = z.object({
|
|
@@ -10,14 +10,14 @@ export declare const uploadedFileAttributesSchema: z.ZodObject<{
|
|
|
10
10
|
uploadedAt: z.ZodString;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
fileUrl: string;
|
|
13
|
-
fileName: string;
|
|
14
13
|
fileSize: number;
|
|
14
|
+
fileName: string;
|
|
15
15
|
uploadedAt: string;
|
|
16
16
|
contentType?: string | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
fileUrl: string;
|
|
19
|
-
fileName: string;
|
|
20
19
|
fileSize: number;
|
|
20
|
+
fileName: string;
|
|
21
21
|
uploadedAt: string;
|
|
22
22
|
contentType?: string | undefined;
|
|
23
23
|
}>;
|
|
@@ -32,14 +32,14 @@ export declare const uploadedFileResourceSchema: z.ZodObject<{
|
|
|
32
32
|
uploadedAt: z.ZodString;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
fileUrl: string;
|
|
35
|
-
fileName: string;
|
|
36
35
|
fileSize: number;
|
|
36
|
+
fileName: string;
|
|
37
37
|
uploadedAt: string;
|
|
38
38
|
contentType?: string | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
fileUrl: string;
|
|
41
|
-
fileName: string;
|
|
42
41
|
fileSize: number;
|
|
42
|
+
fileName: string;
|
|
43
43
|
uploadedAt: string;
|
|
44
44
|
contentType?: string | undefined;
|
|
45
45
|
}>;
|
|
@@ -51,8 +51,8 @@ export declare const uploadedFileResourceSchema: z.ZodObject<{
|
|
|
51
51
|
id: string;
|
|
52
52
|
attributes: {
|
|
53
53
|
fileUrl: string;
|
|
54
|
-
fileName: string;
|
|
55
54
|
fileSize: number;
|
|
55
|
+
fileName: string;
|
|
56
56
|
uploadedAt: string;
|
|
57
57
|
contentType?: string | undefined;
|
|
58
58
|
};
|
|
@@ -64,8 +64,8 @@ export declare const uploadedFileResourceSchema: z.ZodObject<{
|
|
|
64
64
|
id: string;
|
|
65
65
|
attributes: {
|
|
66
66
|
fileUrl: string;
|
|
67
|
-
fileName: string;
|
|
68
67
|
fileSize: number;
|
|
68
|
+
fileName: string;
|
|
69
69
|
uploadedAt: string;
|
|
70
70
|
contentType?: string | undefined;
|
|
71
71
|
};
|
|
@@ -85,14 +85,14 @@ export declare const uploadedFileResponseSchema: z.ZodObject<{
|
|
|
85
85
|
uploadedAt: z.ZodString;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
87
|
fileUrl: string;
|
|
88
|
-
fileName: string;
|
|
89
88
|
fileSize: number;
|
|
89
|
+
fileName: string;
|
|
90
90
|
uploadedAt: string;
|
|
91
91
|
contentType?: string | undefined;
|
|
92
92
|
}, {
|
|
93
93
|
fileUrl: string;
|
|
94
|
-
fileName: string;
|
|
95
94
|
fileSize: number;
|
|
95
|
+
fileName: string;
|
|
96
96
|
uploadedAt: string;
|
|
97
97
|
contentType?: string | undefined;
|
|
98
98
|
}>;
|
|
@@ -104,8 +104,8 @@ export declare const uploadedFileResponseSchema: z.ZodObject<{
|
|
|
104
104
|
id: string;
|
|
105
105
|
attributes: {
|
|
106
106
|
fileUrl: string;
|
|
107
|
-
fileName: string;
|
|
108
107
|
fileSize: number;
|
|
108
|
+
fileName: string;
|
|
109
109
|
uploadedAt: string;
|
|
110
110
|
contentType?: string | undefined;
|
|
111
111
|
};
|
|
@@ -117,8 +117,8 @@ export declare const uploadedFileResponseSchema: z.ZodObject<{
|
|
|
117
117
|
id: string;
|
|
118
118
|
attributes: {
|
|
119
119
|
fileUrl: string;
|
|
120
|
-
fileName: string;
|
|
121
120
|
fileSize: number;
|
|
121
|
+
fileName: string;
|
|
122
122
|
uploadedAt: string;
|
|
123
123
|
contentType?: string | undefined;
|
|
124
124
|
};
|
|
@@ -156,8 +156,8 @@ export declare const uploadedFileResponseSchema: z.ZodObject<{
|
|
|
156
156
|
id: string;
|
|
157
157
|
attributes: {
|
|
158
158
|
fileUrl: string;
|
|
159
|
-
fileName: string;
|
|
160
159
|
fileSize: number;
|
|
160
|
+
fileName: string;
|
|
161
161
|
uploadedAt: string;
|
|
162
162
|
contentType?: string | undefined;
|
|
163
163
|
};
|
|
@@ -181,8 +181,8 @@ export declare const uploadedFileResponseSchema: z.ZodObject<{
|
|
|
181
181
|
id: string;
|
|
182
182
|
attributes: {
|
|
183
183
|
fileUrl: string;
|
|
184
|
-
fileName: string;
|
|
185
184
|
fileSize: number;
|
|
185
|
+
fileName: string;
|
|
186
186
|
uploadedAt: string;
|
|
187
187
|
contentType?: string | undefined;
|
|
188
188
|
};
|