@deepintel-ltd/farmpro-contracts 1.11.8 → 1.11.10

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 (43) hide show
  1. package/dist/index.d.ts +5 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -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 +867 -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 +6 -0
  16. package/dist/routes/index.d.ts.map +1 -1
  17. package/dist/routes/index.js +4 -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/market-intelligence.routes.d.ts +364 -0
  22. package/dist/routes/market-intelligence.routes.d.ts.map +1 -0
  23. package/dist/routes/market-intelligence.routes.js +45 -0
  24. package/dist/routes/soil-tests.routes.d.ts +36 -36
  25. package/dist/routes/tasks.routes.d.ts +120 -120
  26. package/dist/schemas/agents.schemas.d.ts +163 -0
  27. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  28. package/dist/schemas/agents.schemas.js +23 -0
  29. package/dist/schemas/equipment.schemas.d.ts +30 -30
  30. package/dist/schemas/extension.schemas.d.ts +18 -18
  31. package/dist/schemas/fertigation.schemas.d.ts +42 -42
  32. package/dist/schemas/field-activities.schemas.d.ts +806 -0
  33. package/dist/schemas/field-activities.schemas.d.ts.map +1 -0
  34. package/dist/schemas/field-activities.schemas.js +68 -0
  35. package/dist/schemas/fields.schemas.d.ts +181 -0
  36. package/dist/schemas/fields.schemas.d.ts.map +1 -1
  37. package/dist/schemas/fields.schemas.js +16 -0
  38. package/dist/schemas/irrigation.schemas.d.ts +14 -14
  39. package/dist/schemas/livestock-groups.schemas.d.ts +24 -24
  40. package/dist/schemas/livestock.schemas.d.ts +24 -24
  41. package/dist/schemas/soil-tests.schemas.d.ts +34 -34
  42. package/dist/schemas/tasks.schemas.d.ts +96 -96
  43. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-activities.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/field-activities.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,uBAAuB,sCAAoC,CAAC;AACzE,eAAO,MAAM,yBAAyB,4CAA0C,CAAC;AAEjF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBhB,CAAC;AAE3B,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB5C,CAAC;AAEL,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9C,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { z } from 'zod';
2
+ import { timestampsSchema, createJsonApiResourceSchema, jsonApiSingleResponseSchema, jsonApiCollectionResponseSchema, } from './common.schemas';
3
+ export const fieldActivityTypeSchema = z.enum(['weeding', 'fertilizer']);
4
+ export const fieldActivitySourceSchema = z.enum(['manual', 'agent', 'whatsapp']);
5
+ export const fieldActivityAttributesSchema = z
6
+ .object({
7
+ fieldId: z.string().uuid(),
8
+ fieldName: z.string().optional(),
9
+ type: fieldActivityTypeSchema,
10
+ occurredAt: z.string().datetime(),
11
+ method: z.string().nullable(),
12
+ productName: z.string().nullable(),
13
+ fertilizerProductId: z.string().uuid().nullable(),
14
+ inventoryItemId: z.string().uuid().nullable(),
15
+ quantity: z.number().nullable(),
16
+ unit: z.string().nullable(),
17
+ notes: z.string().nullable(),
18
+ createdById: z.string().uuid().nullable(),
19
+ source: fieldActivitySourceSchema,
20
+ })
21
+ .merge(timestampsSchema);
22
+ export const createFieldActivityAttributesSchema = z
23
+ .object({
24
+ fieldId: z.string().uuid(),
25
+ type: fieldActivityTypeSchema,
26
+ occurredAt: z.string().datetime(),
27
+ method: z.string().max(100).optional(),
28
+ productName: z.string().max(200).optional(),
29
+ fertilizerProductId: z.string().uuid().optional(),
30
+ inventoryItemId: z.string().uuid().optional(),
31
+ quantity: z.number().positive().optional(),
32
+ unit: z.string().max(50).optional(),
33
+ notes: z.string().optional(),
34
+ source: fieldActivitySourceSchema.optional(),
35
+ })
36
+ .superRefine((data, ctx) => {
37
+ if (data.type === 'fertilizer') {
38
+ if (!data.productName && !data.fertilizerProductId && !data.inventoryItemId) {
39
+ ctx.addIssue({
40
+ code: z.ZodIssueCode.custom,
41
+ message: 'Fertilizer activity requires productName, fertilizerProductId, or inventoryItemId',
42
+ path: ['productName'],
43
+ });
44
+ }
45
+ }
46
+ });
47
+ export const updateFieldActivityAttributesSchema = z.object({
48
+ occurredAt: z.string().datetime().optional(),
49
+ method: z.string().max(100).nullable().optional(),
50
+ productName: z.string().max(200).nullable().optional(),
51
+ fertilizerProductId: z.string().uuid().nullable().optional(),
52
+ inventoryItemId: z.string().uuid().nullable().optional(),
53
+ quantity: z.number().positive().nullable().optional(),
54
+ unit: z.string().max(50).nullable().optional(),
55
+ notes: z.string().nullable().optional(),
56
+ });
57
+ export const createFieldActivitySchema = z.object({
58
+ type: z.literal('field-activities'),
59
+ attributes: createFieldActivityAttributesSchema,
60
+ });
61
+ export const updateFieldActivitySchema = z.object({
62
+ type: z.literal('field-activities'),
63
+ id: z.string().uuid(),
64
+ attributes: updateFieldActivityAttributesSchema,
65
+ });
66
+ export const fieldActivityResourceSchema = createJsonApiResourceSchema('field-activities', fieldActivityAttributesSchema);
67
+ export const fieldActivityResponseSchema = jsonApiSingleResponseSchema(fieldActivityResourceSchema);
68
+ export const fieldActivityListResponseSchema = jsonApiCollectionResponseSchema(fieldActivityResourceSchema);
@@ -228,10 +228,36 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
228
228
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
229
229
  coordinates: number[] | number[][] | number[][][] | number[][][][];
230
230
  }>>>;
231
+ area: z.ZodOptional<z.ZodNumber>;
231
232
  currentCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
233
  plantingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
234
  expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
235
  cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>>;
236
+ cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
237
+ id: z.ZodString;
238
+ season: z.ZodString;
239
+ crop: z.ZodString;
240
+ plantingDate: z.ZodString;
241
+ harvestDate: z.ZodNullable<z.ZodString>;
242
+ yield: z.ZodNullable<z.ZodNumber>;
243
+ yieldUnit: z.ZodNullable<z.ZodString>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ id: string;
246
+ crop: string;
247
+ season: string;
248
+ plantingDate: string;
249
+ harvestDate: string | null;
250
+ yield: number | null;
251
+ yieldUnit: string | null;
252
+ }, {
253
+ id: string;
254
+ crop: string;
255
+ season: string;
256
+ plantingDate: string;
257
+ harvestDate: string | null;
258
+ yield: number | null;
259
+ yieldUnit: string | null;
260
+ }>, "many">>;
235
261
  }, "strip", z.ZodTypeAny, {
236
262
  name?: string | undefined;
237
263
  crop?: string | undefined;
@@ -239,6 +265,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
239
265
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
240
266
  coordinates: number[] | number[][] | number[][][] | number[][][][];
241
267
  } | null | undefined;
268
+ area?: number | undefined;
242
269
  currentCrop?: string | null | undefined;
243
270
  plantingDate?: string | null | undefined;
244
271
  ndvi?: number | undefined;
@@ -246,6 +273,15 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
246
273
  soilType?: string | undefined;
247
274
  expectedHarvestDate?: string | null | undefined;
248
275
  cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
276
+ cropHistory?: {
277
+ id: string;
278
+ crop: string;
279
+ season: string;
280
+ plantingDate: string;
281
+ harvestDate: string | null;
282
+ yield: number | null;
283
+ yieldUnit: string | null;
284
+ }[] | undefined;
249
285
  }, {
250
286
  name?: string | undefined;
251
287
  crop?: string | undefined;
@@ -253,6 +289,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
253
289
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
254
290
  coordinates: number[] | number[][] | number[][][] | number[][][][];
255
291
  } | null | undefined;
292
+ area?: number | undefined;
256
293
  currentCrop?: string | null | undefined;
257
294
  plantingDate?: string | null | undefined;
258
295
  ndvi?: number | undefined;
@@ -260,6 +297,82 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
260
297
  soilType?: string | undefined;
261
298
  expectedHarvestDate?: string | null | undefined;
262
299
  cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
300
+ cropHistory?: {
301
+ id: string;
302
+ crop: string;
303
+ season: string;
304
+ plantingDate: string;
305
+ harvestDate: string | null;
306
+ yield: number | null;
307
+ yieldUnit: string | null;
308
+ }[] | undefined;
309
+ }>;
310
+ export declare const recordPlantingAttributesSchema: z.ZodObject<{
311
+ plantingDate: z.ZodString;
312
+ currentCrop: z.ZodString;
313
+ expectedHarvestDate: z.ZodOptional<z.ZodString>;
314
+ variety: z.ZodOptional<z.ZodString>;
315
+ notes: z.ZodOptional<z.ZodString>;
316
+ cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ currentCrop: string;
319
+ plantingDate: string;
320
+ expectedHarvestDate?: string | undefined;
321
+ cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
322
+ variety?: string | undefined;
323
+ notes?: string | undefined;
324
+ }, {
325
+ currentCrop: string;
326
+ plantingDate: string;
327
+ expectedHarvestDate?: string | undefined;
328
+ cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
329
+ variety?: string | undefined;
330
+ notes?: string | undefined;
331
+ }>;
332
+ export declare const recordPlantingSchema: z.ZodObject<{
333
+ type: z.ZodLiteral<"field-plantings">;
334
+ attributes: z.ZodObject<{
335
+ plantingDate: z.ZodString;
336
+ currentCrop: z.ZodString;
337
+ expectedHarvestDate: z.ZodOptional<z.ZodString>;
338
+ variety: z.ZodOptional<z.ZodString>;
339
+ notes: z.ZodOptional<z.ZodString>;
340
+ cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
341
+ }, "strip", z.ZodTypeAny, {
342
+ currentCrop: string;
343
+ plantingDate: string;
344
+ expectedHarvestDate?: string | undefined;
345
+ cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
346
+ variety?: string | undefined;
347
+ notes?: string | undefined;
348
+ }, {
349
+ currentCrop: string;
350
+ plantingDate: string;
351
+ expectedHarvestDate?: string | undefined;
352
+ cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
353
+ variety?: string | undefined;
354
+ notes?: string | undefined;
355
+ }>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ type: "field-plantings";
358
+ attributes: {
359
+ currentCrop: string;
360
+ plantingDate: string;
361
+ expectedHarvestDate?: string | undefined;
362
+ cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
363
+ variety?: string | undefined;
364
+ notes?: string | undefined;
365
+ };
366
+ }, {
367
+ type: "field-plantings";
368
+ attributes: {
369
+ currentCrop: string;
370
+ plantingDate: string;
371
+ expectedHarvestDate?: string | undefined;
372
+ cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
373
+ variety?: string | undefined;
374
+ notes?: string | undefined;
375
+ };
263
376
  }>;
264
377
  export declare const createFieldSchema: z.ZodObject<{
265
378
  type: z.ZodLiteral<"fields">;
@@ -421,10 +534,36 @@ export declare const updateFieldSchema: z.ZodObject<{
421
534
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
422
535
  coordinates: number[] | number[][] | number[][][] | number[][][][];
423
536
  }>>>;
537
+ area: z.ZodOptional<z.ZodNumber>;
424
538
  currentCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
539
  plantingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
426
540
  expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
427
541
  cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>>;
542
+ cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
543
+ id: z.ZodString;
544
+ season: z.ZodString;
545
+ crop: z.ZodString;
546
+ plantingDate: z.ZodString;
547
+ harvestDate: z.ZodNullable<z.ZodString>;
548
+ yield: z.ZodNullable<z.ZodNumber>;
549
+ yieldUnit: z.ZodNullable<z.ZodString>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ id: string;
552
+ crop: string;
553
+ season: string;
554
+ plantingDate: string;
555
+ harvestDate: string | null;
556
+ yield: number | null;
557
+ yieldUnit: string | null;
558
+ }, {
559
+ id: string;
560
+ crop: string;
561
+ season: string;
562
+ plantingDate: string;
563
+ harvestDate: string | null;
564
+ yield: number | null;
565
+ yieldUnit: string | null;
566
+ }>, "many">>;
428
567
  }, "strip", z.ZodTypeAny, {
429
568
  name?: string | undefined;
430
569
  crop?: string | undefined;
@@ -432,6 +571,7 @@ export declare const updateFieldSchema: z.ZodObject<{
432
571
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
433
572
  coordinates: number[] | number[][] | number[][][] | number[][][][];
434
573
  } | null | undefined;
574
+ area?: number | undefined;
435
575
  currentCrop?: string | null | undefined;
436
576
  plantingDate?: string | null | undefined;
437
577
  ndvi?: number | undefined;
@@ -439,6 +579,15 @@ export declare const updateFieldSchema: z.ZodObject<{
439
579
  soilType?: string | undefined;
440
580
  expectedHarvestDate?: string | null | undefined;
441
581
  cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
582
+ cropHistory?: {
583
+ id: string;
584
+ crop: string;
585
+ season: string;
586
+ plantingDate: string;
587
+ harvestDate: string | null;
588
+ yield: number | null;
589
+ yieldUnit: string | null;
590
+ }[] | undefined;
442
591
  }, {
443
592
  name?: string | undefined;
444
593
  crop?: string | undefined;
@@ -446,6 +595,7 @@ export declare const updateFieldSchema: z.ZodObject<{
446
595
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
447
596
  coordinates: number[] | number[][] | number[][][] | number[][][][];
448
597
  } | null | undefined;
598
+ area?: number | undefined;
449
599
  currentCrop?: string | null | undefined;
450
600
  plantingDate?: string | null | undefined;
451
601
  ndvi?: number | undefined;
@@ -453,6 +603,15 @@ export declare const updateFieldSchema: z.ZodObject<{
453
603
  soilType?: string | undefined;
454
604
  expectedHarvestDate?: string | null | undefined;
455
605
  cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
606
+ cropHistory?: {
607
+ id: string;
608
+ crop: string;
609
+ season: string;
610
+ plantingDate: string;
611
+ harvestDate: string | null;
612
+ yield: number | null;
613
+ yieldUnit: string | null;
614
+ }[] | undefined;
456
615
  }>;
457
616
  }, "strip", z.ZodTypeAny, {
458
617
  type: "fields";
@@ -464,6 +623,7 @@ export declare const updateFieldSchema: z.ZodObject<{
464
623
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
465
624
  coordinates: number[] | number[][] | number[][][] | number[][][][];
466
625
  } | null | undefined;
626
+ area?: number | undefined;
467
627
  currentCrop?: string | null | undefined;
468
628
  plantingDate?: string | null | undefined;
469
629
  ndvi?: number | undefined;
@@ -471,6 +631,15 @@ export declare const updateFieldSchema: z.ZodObject<{
471
631
  soilType?: string | undefined;
472
632
  expectedHarvestDate?: string | null | undefined;
473
633
  cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
634
+ cropHistory?: {
635
+ id: string;
636
+ crop: string;
637
+ season: string;
638
+ plantingDate: string;
639
+ harvestDate: string | null;
640
+ yield: number | null;
641
+ yieldUnit: string | null;
642
+ }[] | undefined;
474
643
  };
475
644
  }, {
476
645
  type: "fields";
@@ -482,6 +651,7 @@ export declare const updateFieldSchema: z.ZodObject<{
482
651
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
483
652
  coordinates: number[] | number[][] | number[][][] | number[][][][];
484
653
  } | null | undefined;
654
+ area?: number | undefined;
485
655
  currentCrop?: string | null | undefined;
486
656
  plantingDate?: string | null | undefined;
487
657
  ndvi?: number | undefined;
@@ -489,6 +659,15 @@ export declare const updateFieldSchema: z.ZodObject<{
489
659
  soilType?: string | undefined;
490
660
  expectedHarvestDate?: string | null | undefined;
491
661
  cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
662
+ cropHistory?: {
663
+ id: string;
664
+ crop: string;
665
+ season: string;
666
+ plantingDate: string;
667
+ harvestDate: string | null;
668
+ yield: number | null;
669
+ yieldUnit: string | null;
670
+ }[] | undefined;
492
671
  };
493
672
  }>;
494
673
  export declare const fieldResourceSchema: z.ZodObject<{
@@ -2507,4 +2686,6 @@ export type FieldDetailResource = z.infer<typeof fieldDetailResourceSchema>;
2507
2686
  export type FieldResponse = z.infer<typeof fieldResponseSchema>;
2508
2687
  export type FieldDetailResponse = z.infer<typeof fieldDetailResponseSchema>;
2509
2688
  export type FieldListResponse = z.infer<typeof fieldListResponseSchema>;
2689
+ export type RecordPlantingAttributes = z.infer<typeof recordPlantingAttributesSchema>;
2690
+ export type RecordPlantingInput = z.infer<typeof recordPlantingSchema>;
2510
2691
  //# sourceMappingURL=fields.schemas.d.ts.map
@@ -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,CAAC;AASxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB,wCAAsC,CAAC;AAGrE,eAAO,MAAM,eAAe,uEAAqE,CAAC;AAGlG,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAQjC,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBR,CAAC;AAG3B,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -60,10 +60,26 @@ export const updateFieldAttributesSchema = createFieldAttributesSchema
60
60
  .partial()
61
61
  .extend({
62
62
  geometry: geoJSONGeometrySchema.nullable().optional(),
63
+ /** Manual area in hectares when geometry is absent or unchanged */
64
+ area: z.number().positive().max(100000).optional(),
63
65
  currentCrop: z.string().nullable().optional(),
64
66
  plantingDate: z.string().datetime().nullable().optional(),
65
67
  expectedHarvestDate: z.string().datetime().nullable().optional(),
66
68
  cropStage: cropStageSchema.nullable().optional(),
69
+ cropHistory: z.array(cropHistoryEntrySchema).optional(),
70
+ });
71
+ // Record planting (archives prior season into cropHistory)
72
+ export const recordPlantingAttributesSchema = z.object({
73
+ plantingDate: z.string().datetime(),
74
+ currentCrop: z.string().min(1),
75
+ expectedHarvestDate: z.string().datetime().optional(),
76
+ variety: z.string().max(200).optional(),
77
+ notes: z.string().optional(),
78
+ cropStage: cropStageSchema.optional(),
79
+ });
80
+ export const recordPlantingSchema = z.object({
81
+ type: z.literal('field-plantings'),
82
+ attributes: recordPlantingAttributesSchema,
67
83
  });
68
84
  // Create field input (JSON:API format)
69
85
  export const createFieldSchema = z.object({
@@ -143,8 +143,8 @@ export declare const irrigationScheduleAttributesSchema: z.ZodObject<{
143
143
  name: string;
144
144
  plantingDate: string;
145
145
  soilType: string | null;
146
- fieldId: string;
147
146
  notes: string | null;
147
+ fieldId: string;
148
148
  cropType: string;
149
149
  fieldCapacity: number;
150
150
  wiltingPoint: number;
@@ -166,8 +166,8 @@ export declare const irrigationScheduleAttributesSchema: z.ZodObject<{
166
166
  name: string;
167
167
  plantingDate: string;
168
168
  soilType: string | null;
169
- fieldId: string;
170
169
  notes: string | null;
170
+ fieldId: string;
171
171
  cropType: string;
172
172
  fieldCapacity: number;
173
173
  wiltingPoint: number;
@@ -256,8 +256,8 @@ export declare const updateIrrigationScheduleSchema: z.ZodObject<{
256
256
  name?: string | undefined;
257
257
  plantingDate?: string | undefined;
258
258
  soilType?: string | undefined;
259
- fieldId?: string | undefined;
260
259
  notes?: string | undefined;
260
+ fieldId?: string | undefined;
261
261
  autoGenerateEvents?: boolean | undefined;
262
262
  cropType?: string | undefined;
263
263
  fieldCapacity?: number | undefined;
@@ -273,8 +273,8 @@ export declare const updateIrrigationScheduleSchema: z.ZodObject<{
273
273
  name?: string | undefined;
274
274
  plantingDate?: string | undefined;
275
275
  soilType?: string | undefined;
276
- fieldId?: string | undefined;
277
276
  notes?: string | undefined;
277
+ fieldId?: string | undefined;
278
278
  autoGenerateEvents?: boolean | undefined;
279
279
  cropType?: string | undefined;
280
280
  fieldCapacity?: number | undefined;
@@ -428,8 +428,8 @@ export declare const irrigationScheduleResponseSchema: z.ZodObject<{
428
428
  name: string;
429
429
  plantingDate: string;
430
430
  soilType: string | null;
431
- fieldId: string;
432
431
  notes: string | null;
432
+ fieldId: string;
433
433
  cropType: string;
434
434
  fieldCapacity: number;
435
435
  wiltingPoint: number;
@@ -451,8 +451,8 @@ export declare const irrigationScheduleResponseSchema: z.ZodObject<{
451
451
  name: string;
452
452
  plantingDate: string;
453
453
  soilType: string | null;
454
- fieldId: string;
455
454
  notes: string | null;
455
+ fieldId: string;
456
456
  cropType: string;
457
457
  fieldCapacity: number;
458
458
  wiltingPoint: number;
@@ -478,8 +478,8 @@ export declare const irrigationScheduleResponseSchema: z.ZodObject<{
478
478
  name: string;
479
479
  plantingDate: string;
480
480
  soilType: string | null;
481
- fieldId: string;
482
481
  notes: string | null;
482
+ fieldId: string;
483
483
  cropType: string;
484
484
  fieldCapacity: number;
485
485
  wiltingPoint: number;
@@ -505,8 +505,8 @@ export declare const irrigationScheduleResponseSchema: z.ZodObject<{
505
505
  name: string;
506
506
  plantingDate: string;
507
507
  soilType: string | null;
508
- fieldId: string;
509
508
  notes: string | null;
509
+ fieldId: string;
510
510
  cropType: string;
511
511
  fieldCapacity: number;
512
512
  wiltingPoint: number;
@@ -557,8 +557,8 @@ export declare const irrigationScheduleListResponseSchema: z.ZodObject<{
557
557
  name: string;
558
558
  plantingDate: string;
559
559
  soilType: string | null;
560
- fieldId: string;
561
560
  notes: string | null;
561
+ fieldId: string;
562
562
  cropType: string;
563
563
  fieldCapacity: number;
564
564
  wiltingPoint: number;
@@ -580,8 +580,8 @@ export declare const irrigationScheduleListResponseSchema: z.ZodObject<{
580
580
  name: string;
581
581
  plantingDate: string;
582
582
  soilType: string | null;
583
- fieldId: string;
584
583
  notes: string | null;
584
+ fieldId: string;
585
585
  cropType: string;
586
586
  fieldCapacity: number;
587
587
  wiltingPoint: number;
@@ -607,8 +607,8 @@ export declare const irrigationScheduleListResponseSchema: z.ZodObject<{
607
607
  name: string;
608
608
  plantingDate: string;
609
609
  soilType: string | null;
610
- fieldId: string;
611
610
  notes: string | null;
611
+ fieldId: string;
612
612
  cropType: string;
613
613
  fieldCapacity: number;
614
614
  wiltingPoint: number;
@@ -634,8 +634,8 @@ export declare const irrigationScheduleListResponseSchema: z.ZodObject<{
634
634
  name: string;
635
635
  plantingDate: string;
636
636
  soilType: string | null;
637
- fieldId: string;
638
637
  notes: string | null;
638
+ fieldId: string;
639
639
  cropType: string;
640
640
  fieldCapacity: number;
641
641
  wiltingPoint: number;
@@ -670,8 +670,8 @@ export declare const irrigationScheduleListResponseSchema: z.ZodObject<{
670
670
  name: string;
671
671
  plantingDate: string;
672
672
  soilType: string | null;
673
- fieldId: string;
674
673
  notes: string | null;
674
+ fieldId: string;
675
675
  cropType: string;
676
676
  fieldCapacity: number;
677
677
  wiltingPoint: number;
@@ -702,8 +702,8 @@ export declare const irrigationScheduleListResponseSchema: z.ZodObject<{
702
702
  name: string;
703
703
  plantingDate: string;
704
704
  soilType: string | null;
705
- fieldId: string;
706
705
  notes: string | null;
706
+ fieldId: string;
707
707
  cropType: string;
708
708
  fieldCapacity: number;
709
709
  wiltingPoint: number;