@deepintel-ltd/farmpro-contracts 1.36.7 → 1.36.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.
@@ -1 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGvC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACjF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACjF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,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"}
@@ -1,6 +1,23 @@
1
1
  import { z } from 'zod';
2
2
  import { timestampsSchema, createJsonApiResourceSchema, jsonApiSingleResponseSchema, jsonApiCollectionResponseSchema, } from './common.schemas';
3
- export const fieldActivityTypeSchema = z.enum(['weeding', 'fertilizer']);
3
+ export const fieldActivityTypeSchema = z.enum([
4
+ 'weeding',
5
+ 'fertilizer',
6
+ 'scouting',
7
+ 'spray',
8
+ 'biocontrol',
9
+ 'sanitation',
10
+ 'irrigation',
11
+ 'pruning',
12
+ 'staking',
13
+ ]);
14
+ /** What a spray or biocontrol record applied, so the harvest checks can read it without parsing a note. */
15
+ export const treatmentProductClassSchema = z.enum(['fungicide', 'insecticide', 'miticide', 'biopesticide', 'herbicide']);
16
+ export const resistanceSystemSchema = z.enum(['IRAC', 'FRAC', 'HRAC']);
17
+ /** Group codes as IRAC, FRAC and HRAC publish them: "5", "11A", "M01". */
18
+ const resistanceCodeSchema = z.string().regex(/^[A-Za-z0-9]{1,4}$/, 'Use the short code on the label, like 5, 11A or M01');
19
+ /** Waiting period from the label. Longest in common use is under a year. */
20
+ const preHarvestDaysSchema = z.number().int().min(1).max(365);
4
21
  export const fieldActivitySourceSchema = z.enum(['manual', 'agent', 'whatsapp']);
5
22
  export const fieldActivityAttributesSchema = z
6
23
  .object({
@@ -15,6 +32,13 @@ export const fieldActivityAttributesSchema = z
15
32
  quantity: z.number().nullable(),
16
33
  unit: z.string().nullable(),
17
34
  notes: z.string().nullable(),
35
+ productClass: treatmentProductClassSchema.nullable().optional(),
36
+ activeIngredient: z.string().nullable().optional(),
37
+ resistanceSystem: resistanceSystemSchema.nullable().optional(),
38
+ resistanceCode: z.string().nullable().optional(),
39
+ /** Null on a spray means the farmer did not know the waiting period. */
40
+ preHarvestDays: z.number().int().nullable().optional(),
41
+ targetThreat: z.string().nullable().optional(),
18
42
  createdById: z.string().uuid().nullable(),
19
43
  source: fieldActivitySourceSchema,
20
44
  })
@@ -31,9 +55,29 @@ export const createFieldActivityAttributesSchema = z
31
55
  quantity: z.number().positive().optional(),
32
56
  unit: z.string().max(50).optional(),
33
57
  notes: z.string().optional(),
58
+ productClass: treatmentProductClassSchema.optional(),
59
+ activeIngredient: z.string().max(200).optional(),
60
+ resistanceSystem: resistanceSystemSchema.optional(),
61
+ resistanceCode: resistanceCodeSchema.optional(),
62
+ preHarvestDays: preHarvestDaysSchema.optional(),
63
+ targetThreat: z.string().max(120).optional(),
34
64
  source: fieldActivitySourceSchema.optional(),
35
65
  })
36
66
  .superRefine((data, ctx) => {
67
+ if (data.type === 'spray' && !data.productName && !data.activeIngredient) {
68
+ ctx.addIssue({
69
+ code: z.ZodIssueCode.custom,
70
+ message: 'A spray needs the product name or the active ingredient',
71
+ path: ['productName'],
72
+ });
73
+ }
74
+ if (Boolean(data.resistanceSystem) !== Boolean(data.resistanceCode)) {
75
+ ctx.addIssue({
76
+ code: z.ZodIssueCode.custom,
77
+ message: 'Give the resistance system and code together, or neither',
78
+ path: ['resistanceCode'],
79
+ });
80
+ }
37
81
  if (data.type === 'fertilizer') {
38
82
  if (!data.productName && !data.fertilizerProductId && !data.inventoryItemId) {
39
83
  ctx.addIssue({
@@ -53,6 +97,12 @@ export const updateFieldActivityAttributesSchema = z.object({
53
97
  quantity: z.number().positive().nullable().optional(),
54
98
  unit: z.string().max(50).nullable().optional(),
55
99
  notes: z.string().nullable().optional(),
100
+ productClass: treatmentProductClassSchema.nullable().optional(),
101
+ activeIngredient: z.string().max(200).nullable().optional(),
102
+ resistanceSystem: resistanceSystemSchema.nullable().optional(),
103
+ resistanceCode: resistanceCodeSchema.nullable().optional(),
104
+ preHarvestDays: preHarvestDaysSchema.nullable().optional(),
105
+ targetThreat: z.string().max(120).nullable().optional(),
56
106
  });
57
107
  export const createFieldActivitySchema = z.object({
58
108
  type: z.literal('field-activities'),
@@ -12,7 +12,7 @@ export declare const notificationAttributesSchema: z.ZodObject<{
12
12
  source: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
13
13
  createdAt: z.ZodString;
14
14
  }, "strip", z.ZodTypeAny, {
15
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
15
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
16
16
  title: string;
17
17
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
18
18
  createdAt: string;
@@ -22,7 +22,7 @@ export declare const notificationAttributesSchema: z.ZodObject<{
22
22
  farmId: string | null;
23
23
  readAt: string | null;
24
24
  }, {
25
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
25
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
26
26
  title: string;
27
27
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
28
28
  createdAt: string;
@@ -46,7 +46,7 @@ export declare const notificationResourceSchema: z.ZodObject<{
46
46
  source: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
47
47
  createdAt: z.ZodString;
48
48
  }, "strip", z.ZodTypeAny, {
49
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
49
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
50
50
  title: string;
51
51
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
52
52
  createdAt: string;
@@ -56,7 +56,7 @@ export declare const notificationResourceSchema: z.ZodObject<{
56
56
  farmId: string | null;
57
57
  readAt: string | null;
58
58
  }, {
59
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
59
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
60
60
  title: string;
61
61
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
62
62
  createdAt: string;
@@ -73,7 +73,7 @@ export declare const notificationResourceSchema: z.ZodObject<{
73
73
  type: string;
74
74
  id: string;
75
75
  attributes: {
76
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
76
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
77
77
  title: string;
78
78
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
79
79
  createdAt: string;
@@ -90,7 +90,7 @@ export declare const notificationResourceSchema: z.ZodObject<{
90
90
  type: string;
91
91
  id: string;
92
92
  attributes: {
93
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
93
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
94
94
  title: string;
95
95
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
96
96
  createdAt: string;
@@ -119,7 +119,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
119
119
  source: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
120
120
  createdAt: z.ZodString;
121
121
  }, "strip", z.ZodTypeAny, {
122
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
122
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
123
123
  title: string;
124
124
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
125
125
  createdAt: string;
@@ -129,7 +129,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
129
129
  farmId: string | null;
130
130
  readAt: string | null;
131
131
  }, {
132
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
132
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
133
133
  title: string;
134
134
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
135
135
  createdAt: string;
@@ -146,7 +146,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
146
146
  type: string;
147
147
  id: string;
148
148
  attributes: {
149
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
149
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
150
150
  title: string;
151
151
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
152
152
  createdAt: string;
@@ -163,7 +163,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
163
163
  type: string;
164
164
  id: string;
165
165
  attributes: {
166
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
166
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
167
167
  title: string;
168
168
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
169
169
  createdAt: string;
@@ -206,7 +206,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
206
206
  type: string;
207
207
  id: string;
208
208
  attributes: {
209
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
209
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
210
210
  title: string;
211
211
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
212
212
  createdAt: string;
@@ -235,7 +235,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
235
235
  type: string;
236
236
  id: string;
237
237
  attributes: {
238
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
238
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
239
239
  title: string;
240
240
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
241
241
  createdAt: string;
@@ -275,7 +275,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
275
275
  source: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
276
276
  createdAt: z.ZodString;
277
277
  }, "strip", z.ZodTypeAny, {
278
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
278
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
279
279
  title: string;
280
280
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
281
281
  createdAt: string;
@@ -285,7 +285,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
285
285
  farmId: string | null;
286
286
  readAt: string | null;
287
287
  }, {
288
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
288
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
289
289
  title: string;
290
290
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
291
291
  createdAt: string;
@@ -302,7 +302,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
302
302
  type: string;
303
303
  id: string;
304
304
  attributes: {
305
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
305
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
306
306
  title: string;
307
307
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
308
308
  createdAt: string;
@@ -319,7 +319,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
319
319
  type: string;
320
320
  id: string;
321
321
  attributes: {
322
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
322
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
323
323
  title: string;
324
324
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
325
325
  createdAt: string;
@@ -362,7 +362,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
362
362
  type: string;
363
363
  id: string;
364
364
  attributes: {
365
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
365
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
366
366
  title: string;
367
367
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
368
368
  createdAt: string;
@@ -391,7 +391,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
391
391
  type: string;
392
392
  id: string;
393
393
  attributes: {
394
- type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
394
+ type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
395
395
  title: string;
396
396
  source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
397
397
  createdAt: string;
@@ -38,11 +38,11 @@ export declare const symptomAnswersSchema: z.ZodObject<{
38
38
  affected: z.ZodOptional<z.ZodEnum<["few", "many", "most"]>>;
39
39
  lastFeed: z.ZodOptional<z.ZodEnum<["recent", "week", "late"]>>;
40
40
  }, "strip", z.ZodTypeAny, {
41
- drainage?: "ok" | "waterlogged" | "wet" | "dry" | undefined;
41
+ drainage?: "ok" | "wet" | "dry" | "waterlogged" | undefined;
42
42
  affected?: "many" | "few" | "most" | undefined;
43
43
  lastFeed?: "week" | "recent" | "late" | undefined;
44
44
  }, {
45
- drainage?: "ok" | "waterlogged" | "wet" | "dry" | undefined;
45
+ drainage?: "ok" | "wet" | "dry" | "waterlogged" | undefined;
46
46
  affected?: "many" | "few" | "most" | undefined;
47
47
  lastFeed?: "week" | "recent" | "late" | undefined;
48
48
  }>;
@@ -439,15 +439,15 @@ export declare const nutrientPlanSchema: z.ZodObject<{
439
439
  }, "strip", z.ZodTypeAny, {
440
440
  id: string;
441
441
  label: string;
442
- railLabel: string;
443
442
  dayStart: number;
444
443
  dayEnd: number;
444
+ railLabel: string;
445
445
  }, {
446
446
  id: string;
447
447
  label: string;
448
- railLabel: string;
449
448
  dayStart: number;
450
449
  dayEnd: number;
450
+ railLabel: string;
451
451
  }>;
452
452
  fieldDay: z.ZodNumber;
453
453
  yieldTargetKgPerPlant: z.ZodNumber;
@@ -731,9 +731,9 @@ export declare const nutrientPlanSchema: z.ZodObject<{
731
731
  stage: {
732
732
  id: string;
733
733
  label: string;
734
- railLabel: string;
735
734
  dayStart: number;
736
735
  dayEnd: number;
736
+ railLabel: string;
737
737
  };
738
738
  fertilizerSet: {
739
739
  id: string;
@@ -856,9 +856,9 @@ export declare const nutrientPlanSchema: z.ZodObject<{
856
856
  stage: {
857
857
  id: string;
858
858
  label: string;
859
- railLabel: string;
860
859
  dayStart: number;
861
860
  dayEnd: number;
861
+ railLabel: string;
862
862
  };
863
863
  fertilizerSet: {
864
864
  id: string;
@@ -1033,15 +1033,15 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
1033
1033
  }, "strip", z.ZodTypeAny, {
1034
1034
  id: string;
1035
1035
  label: string;
1036
- railLabel: string;
1037
1036
  dayStart: number;
1038
1037
  dayEnd: number;
1038
+ railLabel: string;
1039
1039
  }, {
1040
1040
  id: string;
1041
1041
  label: string;
1042
- railLabel: string;
1043
1042
  dayStart: number;
1044
1043
  dayEnd: number;
1044
+ railLabel: string;
1045
1045
  }>;
1046
1046
  fieldDay: z.ZodNumber;
1047
1047
  yieldTargetKgPerPlant: z.ZodNumber;
@@ -1325,9 +1325,9 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
1325
1325
  stage: {
1326
1326
  id: string;
1327
1327
  label: string;
1328
- railLabel: string;
1329
1328
  dayStart: number;
1330
1329
  dayEnd: number;
1330
+ railLabel: string;
1331
1331
  };
1332
1332
  fertilizerSet: {
1333
1333
  id: string;
@@ -1450,9 +1450,9 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
1450
1450
  stage: {
1451
1451
  id: string;
1452
1452
  label: string;
1453
- railLabel: string;
1454
1453
  dayStart: number;
1455
1454
  dayEnd: number;
1455
+ railLabel: string;
1456
1456
  };
1457
1457
  fertilizerSet: {
1458
1458
  id: string;
@@ -1871,9 +1871,9 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
1871
1871
  stage: {
1872
1872
  id: string;
1873
1873
  label: string;
1874
- railLabel: string;
1875
1874
  dayStart: number;
1876
1875
  dayEnd: number;
1876
+ railLabel: string;
1877
1877
  };
1878
1878
  fertilizerSet: {
1879
1879
  id: string;
@@ -2065,9 +2065,9 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
2065
2065
  stage: {
2066
2066
  id: string;
2067
2067
  label: string;
2068
- railLabel: string;
2069
2068
  dayStart: number;
2070
2069
  dayEnd: number;
2070
+ railLabel: string;
2071
2071
  };
2072
2072
  fertilizerSet: {
2073
2073
  id: string;
@@ -2296,11 +2296,11 @@ export declare const reportSymptomBodySchema: z.ZodObject<{
2296
2296
  affected: z.ZodOptional<z.ZodEnum<["few", "many", "most"]>>;
2297
2297
  lastFeed: z.ZodOptional<z.ZodEnum<["recent", "week", "late"]>>;
2298
2298
  }, "strip", z.ZodTypeAny, {
2299
- drainage?: "ok" | "waterlogged" | "wet" | "dry" | undefined;
2299
+ drainage?: "ok" | "wet" | "dry" | "waterlogged" | undefined;
2300
2300
  affected?: "many" | "few" | "most" | undefined;
2301
2301
  lastFeed?: "week" | "recent" | "late" | undefined;
2302
2302
  }, {
2303
- drainage?: "ok" | "waterlogged" | "wet" | "dry" | undefined;
2303
+ drainage?: "ok" | "wet" | "dry" | "waterlogged" | undefined;
2304
2304
  affected?: "many" | "few" | "most" | undefined;
2305
2305
  lastFeed?: "week" | "recent" | "late" | undefined;
2306
2306
  }>>;
@@ -2309,7 +2309,7 @@ export declare const reportSymptomBodySchema: z.ZodObject<{
2309
2309
  symptomId: "yellow-old-leaves" | "yellow-new-leaves" | "yellow-between-veins" | "pale-all-over" | "purple-leaves" | "leaf-edge-burn" | "salt-crust" | "soft-fruit-tips" | "flower-drop" | "wilting-wet-soil" | "stunted-slow" | "damping-off";
2310
2310
  notes?: string | undefined;
2311
2311
  answers?: {
2312
- drainage?: "ok" | "waterlogged" | "wet" | "dry" | undefined;
2312
+ drainage?: "ok" | "wet" | "dry" | "waterlogged" | undefined;
2313
2313
  affected?: "many" | "few" | "most" | undefined;
2314
2314
  lastFeed?: "week" | "recent" | "late" | undefined;
2315
2315
  } | undefined;
@@ -2317,7 +2317,7 @@ export declare const reportSymptomBodySchema: z.ZodObject<{
2317
2317
  symptomId: "yellow-old-leaves" | "yellow-new-leaves" | "yellow-between-veins" | "pale-all-over" | "purple-leaves" | "leaf-edge-burn" | "salt-crust" | "soft-fruit-tips" | "flower-drop" | "wilting-wet-soil" | "stunted-slow" | "damping-off";
2318
2318
  notes?: string | undefined;
2319
2319
  answers?: {
2320
- drainage?: "ok" | "waterlogged" | "wet" | "dry" | undefined;
2320
+ drainage?: "ok" | "wet" | "dry" | "waterlogged" | undefined;
2321
2321
  affected?: "many" | "few" | "most" | undefined;
2322
2322
  lastFeed?: "week" | "recent" | "late" | undefined;
2323
2323
  } | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.36.7",
3
+ "version": "1.36.9",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",