@deepintel-ltd/farmpro-contracts 1.7.13 → 1.7.19

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 (78) 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/agent-workflows.routes.d.ts +88 -88
  5. package/dist/routes/agents.routes.d.ts +3260 -0
  6. package/dist/routes/agents.routes.d.ts.map +1 -1
  7. package/dist/routes/agents.routes.js +130 -1
  8. package/dist/routes/analytics.routes.d.ts +20 -20
  9. package/dist/routes/documents.routes.d.ts +855 -58
  10. package/dist/routes/documents.routes.d.ts.map +1 -1
  11. package/dist/routes/documents.routes.js +43 -1
  12. package/dist/routes/equipment.routes.d.ts +38 -38
  13. package/dist/routes/farm-status.routes.d.ts +315 -0
  14. package/dist/routes/farm-status.routes.d.ts.map +1 -0
  15. package/dist/routes/farm-status.routes.js +26 -0
  16. package/dist/routes/fertigation.routes.d.ts +148 -148
  17. package/dist/routes/field-monitoring.routes.d.ts +52 -52
  18. package/dist/routes/field-observations.routes.d.ts +56 -56
  19. package/dist/routes/finance.routes.d.ts +3493 -0
  20. package/dist/routes/finance.routes.d.ts.map +1 -1
  21. package/dist/routes/finance.routes.js +158 -1
  22. package/dist/routes/geofences.routes.d.ts.map +1 -1
  23. package/dist/routes/index.d.ts +3 -0
  24. package/dist/routes/index.d.ts.map +1 -1
  25. package/dist/routes/index.js +2 -0
  26. package/dist/routes/irrigation.routes.d.ts +6 -6
  27. package/dist/routes/measurements.routes.d.ts +13 -4
  28. package/dist/routes/measurements.routes.d.ts.map +1 -1
  29. package/dist/routes/monitoring-visualization.routes.d.ts +43 -36
  30. package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
  31. package/dist/routes/monitoring-visualization.routes.js +7 -4
  32. package/dist/routes/pest-disease-risk.routes.d.ts +20 -20
  33. package/dist/routes/prescription-maps.routes.d.ts +570 -23
  34. package/dist/routes/prescription-maps.routes.d.ts.map +1 -1
  35. package/dist/routes/prescription-maps.routes.js +18 -1
  36. package/dist/routes/soil-tests.routes.d.ts +30 -30
  37. package/dist/routes/subscriptions.routes.d.ts +14 -14
  38. package/dist/routes/weather.routes.d.ts +545 -52
  39. package/dist/routes/weather.routes.d.ts.map +1 -1
  40. package/dist/routes/weather.routes.js +13 -1
  41. package/dist/routes/yield-prediction.routes.d.ts +30 -30
  42. package/dist/schemas/agent-workflows.schemas.d.ts +92 -92
  43. package/dist/schemas/agents.schemas.d.ts +1120 -0
  44. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  45. package/dist/schemas/agents.schemas.js +181 -0
  46. package/dist/schemas/analytics.schemas.d.ts +56 -56
  47. package/dist/schemas/documents.schemas.d.ts +248 -48
  48. package/dist/schemas/documents.schemas.d.ts.map +1 -1
  49. package/dist/schemas/documents.schemas.js +38 -0
  50. package/dist/schemas/equipment.schemas.d.ts +30 -30
  51. package/dist/schemas/farm-status.schemas.d.ts +451 -0
  52. package/dist/schemas/farm-status.schemas.d.ts.map +1 -0
  53. package/dist/schemas/farm-status.schemas.js +44 -0
  54. package/dist/schemas/fertigation.schemas.d.ts +50 -50
  55. package/dist/schemas/field-monitoring.schemas.d.ts +42 -42
  56. package/dist/schemas/field-observations.schemas.d.ts +44 -44
  57. package/dist/schemas/finance.schemas.d.ts +1057 -0
  58. package/dist/schemas/finance.schemas.d.ts.map +1 -1
  59. package/dist/schemas/finance.schemas.js +170 -0
  60. package/dist/schemas/irrigation.schemas.d.ts +8 -8
  61. package/dist/schemas/measurements.schemas.d.ts +21 -8
  62. package/dist/schemas/measurements.schemas.d.ts.map +1 -1
  63. package/dist/schemas/measurements.schemas.js +13 -6
  64. package/dist/schemas/monitoring-visualization.schemas.d.ts +50 -43
  65. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  66. package/dist/schemas/monitoring-visualization.schemas.js +27 -17
  67. package/dist/schemas/pest-disease-risk.schemas.d.ts +18 -18
  68. package/dist/schemas/prescription-maps.schemas.d.ts +45 -22
  69. package/dist/schemas/prescription-maps.schemas.d.ts.map +1 -1
  70. package/dist/schemas/prescription-maps.schemas.js +9 -1
  71. package/dist/schemas/recommendations.schemas.d.ts +2 -2
  72. package/dist/schemas/soil-tests.schemas.d.ts +28 -28
  73. package/dist/schemas/subscriptions.schemas.d.ts +22 -22
  74. package/dist/schemas/weather.schemas.d.ts +789 -112
  75. package/dist/schemas/weather.schemas.d.ts.map +1 -1
  76. package/dist/schemas/weather.schemas.js +37 -0
  77. package/dist/schemas/yield-prediction.schemas.d.ts +12 -12
  78. package/package.json +1 -1
@@ -8,10 +8,10 @@ export declare const relatedEntitySchema: z.ZodObject<{
8
8
  type: z.ZodEnum<["farm", "field", "purchase", "expense", "equipment", "other"]>;
9
9
  id: z.ZodString;
10
10
  }, "strip", z.ZodTypeAny, {
11
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
11
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
12
12
  id: string;
13
13
  }, {
14
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
14
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
15
15
  id: string;
16
16
  }>;
17
17
  export declare const documentAttributesSchema: z.ZodObject<{
@@ -28,10 +28,10 @@ export declare const documentAttributesSchema: z.ZodObject<{
28
28
  type: z.ZodEnum<["farm", "field", "purchase", "expense", "equipment", "other"]>;
29
29
  id: z.ZodString;
30
30
  }, "strip", z.ZodTypeAny, {
31
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
31
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
32
32
  id: string;
33
33
  }, {
34
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
34
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
35
35
  id: string;
36
36
  }>>;
37
37
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -52,7 +52,7 @@ export declare const documentAttributesSchema: z.ZodObject<{
52
52
  uploadedDate: string;
53
53
  uploadedBy: string | null;
54
54
  relatedTo: {
55
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
55
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
56
56
  id: string;
57
57
  } | null;
58
58
  fileExtension?: string | null | undefined;
@@ -70,7 +70,7 @@ export declare const documentAttributesSchema: z.ZodObject<{
70
70
  uploadedDate: string;
71
71
  uploadedBy: string | null;
72
72
  relatedTo: {
73
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
73
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
74
74
  id: string;
75
75
  } | null;
76
76
  fileExtension?: string | null | undefined;
@@ -86,10 +86,10 @@ export declare const createDocumentAttributesSchema: z.ZodObject<{
86
86
  type: z.ZodEnum<["farm", "field", "purchase", "expense", "equipment", "other"]>;
87
87
  id: z.ZodString;
88
88
  }, "strip", z.ZodTypeAny, {
89
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
89
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
90
90
  id: string;
91
91
  }, {
92
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
92
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
93
93
  id: string;
94
94
  }>>;
95
95
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -103,7 +103,7 @@ export declare const createDocumentAttributesSchema: z.ZodObject<{
103
103
  fileSize?: number | undefined;
104
104
  tags?: string[] | undefined;
105
105
  relatedTo?: {
106
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
106
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
107
107
  id: string;
108
108
  } | undefined;
109
109
  }, {
@@ -115,7 +115,7 @@ export declare const createDocumentAttributesSchema: z.ZodObject<{
115
115
  fileSize?: number | undefined;
116
116
  tags?: string[] | undefined;
117
117
  relatedTo?: {
118
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
118
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
119
119
  id: string;
120
120
  } | undefined;
121
121
  }>;
@@ -129,10 +129,10 @@ export declare const updateDocumentAttributesSchema: z.ZodObject<{
129
129
  type: z.ZodEnum<["farm", "field", "purchase", "expense", "equipment", "other"]>;
130
130
  id: z.ZodString;
131
131
  }, "strip", z.ZodTypeAny, {
132
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
132
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
133
133
  id: string;
134
134
  }, {
135
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
135
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
136
136
  id: string;
137
137
  }>>>;
138
138
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -146,7 +146,7 @@ export declare const updateDocumentAttributesSchema: z.ZodObject<{
146
146
  fileSize?: number | undefined;
147
147
  tags?: string[] | undefined;
148
148
  relatedTo?: {
149
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
149
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
150
150
  id: string;
151
151
  } | null | undefined;
152
152
  }, {
@@ -158,7 +158,7 @@ export declare const updateDocumentAttributesSchema: z.ZodObject<{
158
158
  fileSize?: number | undefined;
159
159
  tags?: string[] | undefined;
160
160
  relatedTo?: {
161
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
161
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
162
162
  id: string;
163
163
  } | null | undefined;
164
164
  }>;
@@ -174,10 +174,10 @@ export declare const createDocumentSchema: z.ZodObject<{
174
174
  type: z.ZodEnum<["farm", "field", "purchase", "expense", "equipment", "other"]>;
175
175
  id: z.ZodString;
176
176
  }, "strip", z.ZodTypeAny, {
177
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
177
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
178
178
  id: string;
179
179
  }, {
180
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
180
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
181
181
  id: string;
182
182
  }>>;
183
183
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -191,7 +191,7 @@ export declare const createDocumentSchema: z.ZodObject<{
191
191
  fileSize?: number | undefined;
192
192
  tags?: string[] | undefined;
193
193
  relatedTo?: {
194
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
194
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
195
195
  id: string;
196
196
  } | undefined;
197
197
  }, {
@@ -203,7 +203,7 @@ export declare const createDocumentSchema: z.ZodObject<{
203
203
  fileSize?: number | undefined;
204
204
  tags?: string[] | undefined;
205
205
  relatedTo?: {
206
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
206
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
207
207
  id: string;
208
208
  } | undefined;
209
209
  }>;
@@ -218,7 +218,7 @@ export declare const createDocumentSchema: z.ZodObject<{
218
218
  fileSize?: number | undefined;
219
219
  tags?: string[] | undefined;
220
220
  relatedTo?: {
221
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
221
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
222
222
  id: string;
223
223
  } | undefined;
224
224
  };
@@ -233,7 +233,7 @@ export declare const createDocumentSchema: z.ZodObject<{
233
233
  fileSize?: number | undefined;
234
234
  tags?: string[] | undefined;
235
235
  relatedTo?: {
236
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
236
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
237
237
  id: string;
238
238
  } | undefined;
239
239
  };
@@ -251,10 +251,10 @@ export declare const updateDocumentSchema: z.ZodObject<{
251
251
  type: z.ZodEnum<["farm", "field", "purchase", "expense", "equipment", "other"]>;
252
252
  id: z.ZodString;
253
253
  }, "strip", z.ZodTypeAny, {
254
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
254
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
255
255
  id: string;
256
256
  }, {
257
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
257
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
258
258
  id: string;
259
259
  }>>>;
260
260
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -268,7 +268,7 @@ export declare const updateDocumentSchema: z.ZodObject<{
268
268
  fileSize?: number | undefined;
269
269
  tags?: string[] | undefined;
270
270
  relatedTo?: {
271
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
271
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
272
272
  id: string;
273
273
  } | null | undefined;
274
274
  }, {
@@ -280,7 +280,7 @@ export declare const updateDocumentSchema: z.ZodObject<{
280
280
  fileSize?: number | undefined;
281
281
  tags?: string[] | undefined;
282
282
  relatedTo?: {
283
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
283
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
284
284
  id: string;
285
285
  } | null | undefined;
286
286
  }>;
@@ -296,7 +296,7 @@ export declare const updateDocumentSchema: z.ZodObject<{
296
296
  fileSize?: number | undefined;
297
297
  tags?: string[] | undefined;
298
298
  relatedTo?: {
299
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
299
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
300
300
  id: string;
301
301
  } | null | undefined;
302
302
  };
@@ -312,7 +312,7 @@ export declare const updateDocumentSchema: z.ZodObject<{
312
312
  fileSize?: number | undefined;
313
313
  tags?: string[] | undefined;
314
314
  relatedTo?: {
315
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
315
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
316
316
  id: string;
317
317
  } | null | undefined;
318
318
  };
@@ -334,10 +334,10 @@ export declare const documentResourceSchema: z.ZodObject<{
334
334
  type: z.ZodEnum<["farm", "field", "purchase", "expense", "equipment", "other"]>;
335
335
  id: z.ZodString;
336
336
  }, "strip", z.ZodTypeAny, {
337
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
337
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
338
338
  id: string;
339
339
  }, {
340
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
340
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
341
341
  id: string;
342
342
  }>>;
343
343
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -358,7 +358,7 @@ export declare const documentResourceSchema: z.ZodObject<{
358
358
  uploadedDate: string;
359
359
  uploadedBy: string | null;
360
360
  relatedTo: {
361
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
361
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
362
362
  id: string;
363
363
  } | null;
364
364
  fileExtension?: string | null | undefined;
@@ -376,7 +376,7 @@ export declare const documentResourceSchema: z.ZodObject<{
376
376
  uploadedDate: string;
377
377
  uploadedBy: string | null;
378
378
  relatedTo: {
379
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
379
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
380
380
  id: string;
381
381
  } | null;
382
382
  fileExtension?: string | null | undefined;
@@ -401,7 +401,7 @@ export declare const documentResourceSchema: z.ZodObject<{
401
401
  uploadedDate: string;
402
402
  uploadedBy: string | null;
403
403
  relatedTo: {
404
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
404
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
405
405
  id: string;
406
406
  } | null;
407
407
  fileExtension?: string | null | undefined;
@@ -426,7 +426,7 @@ export declare const documentResourceSchema: z.ZodObject<{
426
426
  uploadedDate: string;
427
427
  uploadedBy: string | null;
428
428
  relatedTo: {
429
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
429
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
430
430
  id: string;
431
431
  } | null;
432
432
  fileExtension?: string | null | undefined;
@@ -454,10 +454,10 @@ export declare const documentResponseSchema: z.ZodObject<{
454
454
  type: z.ZodEnum<["farm", "field", "purchase", "expense", "equipment", "other"]>;
455
455
  id: z.ZodString;
456
456
  }, "strip", z.ZodTypeAny, {
457
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
457
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
458
458
  id: string;
459
459
  }, {
460
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
460
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
461
461
  id: string;
462
462
  }>>;
463
463
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -478,7 +478,7 @@ export declare const documentResponseSchema: z.ZodObject<{
478
478
  uploadedDate: string;
479
479
  uploadedBy: string | null;
480
480
  relatedTo: {
481
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
481
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
482
482
  id: string;
483
483
  } | null;
484
484
  fileExtension?: string | null | undefined;
@@ -496,7 +496,7 @@ export declare const documentResponseSchema: z.ZodObject<{
496
496
  uploadedDate: string;
497
497
  uploadedBy: string | null;
498
498
  relatedTo: {
499
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
499
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
500
500
  id: string;
501
501
  } | null;
502
502
  fileExtension?: string | null | undefined;
@@ -521,7 +521,7 @@ export declare const documentResponseSchema: z.ZodObject<{
521
521
  uploadedDate: string;
522
522
  uploadedBy: string | null;
523
523
  relatedTo: {
524
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
524
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
525
525
  id: string;
526
526
  } | null;
527
527
  fileExtension?: string | null | undefined;
@@ -546,7 +546,7 @@ export declare const documentResponseSchema: z.ZodObject<{
546
546
  uploadedDate: string;
547
547
  uploadedBy: string | null;
548
548
  relatedTo: {
549
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
549
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
550
550
  id: string;
551
551
  } | null;
552
552
  fileExtension?: string | null | undefined;
@@ -597,7 +597,7 @@ export declare const documentResponseSchema: z.ZodObject<{
597
597
  uploadedDate: string;
598
598
  uploadedBy: string | null;
599
599
  relatedTo: {
600
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
600
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
601
601
  id: string;
602
602
  } | null;
603
603
  fileExtension?: string | null | undefined;
@@ -634,7 +634,7 @@ export declare const documentResponseSchema: z.ZodObject<{
634
634
  uploadedDate: string;
635
635
  uploadedBy: string | null;
636
636
  relatedTo: {
637
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
637
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
638
638
  id: string;
639
639
  } | null;
640
640
  fileExtension?: string | null | undefined;
@@ -673,10 +673,10 @@ export declare const documentListResponseSchema: z.ZodObject<{
673
673
  type: z.ZodEnum<["farm", "field", "purchase", "expense", "equipment", "other"]>;
674
674
  id: z.ZodString;
675
675
  }, "strip", z.ZodTypeAny, {
676
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
676
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
677
677
  id: string;
678
678
  }, {
679
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
679
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
680
680
  id: string;
681
681
  }>>;
682
682
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -697,7 +697,7 @@ export declare const documentListResponseSchema: z.ZodObject<{
697
697
  uploadedDate: string;
698
698
  uploadedBy: string | null;
699
699
  relatedTo: {
700
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
700
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
701
701
  id: string;
702
702
  } | null;
703
703
  fileExtension?: string | null | undefined;
@@ -715,7 +715,7 @@ export declare const documentListResponseSchema: z.ZodObject<{
715
715
  uploadedDate: string;
716
716
  uploadedBy: string | null;
717
717
  relatedTo: {
718
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
718
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
719
719
  id: string;
720
720
  } | null;
721
721
  fileExtension?: string | null | undefined;
@@ -740,7 +740,7 @@ export declare const documentListResponseSchema: z.ZodObject<{
740
740
  uploadedDate: string;
741
741
  uploadedBy: string | null;
742
742
  relatedTo: {
743
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
743
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
744
744
  id: string;
745
745
  } | null;
746
746
  fileExtension?: string | null | undefined;
@@ -765,7 +765,7 @@ export declare const documentListResponseSchema: z.ZodObject<{
765
765
  uploadedDate: string;
766
766
  uploadedBy: string | null;
767
767
  relatedTo: {
768
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
768
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
769
769
  id: string;
770
770
  } | null;
771
771
  fileExtension?: string | null | undefined;
@@ -816,7 +816,7 @@ export declare const documentListResponseSchema: z.ZodObject<{
816
816
  uploadedDate: string;
817
817
  uploadedBy: string | null;
818
818
  relatedTo: {
819
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
819
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
820
820
  id: string;
821
821
  } | null;
822
822
  fileExtension?: string | null | undefined;
@@ -853,7 +853,7 @@ export declare const documentListResponseSchema: z.ZodObject<{
853
853
  uploadedDate: string;
854
854
  uploadedBy: string | null;
855
855
  relatedTo: {
856
- type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
856
+ type: "farm" | "field" | "expense" | "other" | "equipment" | "purchase";
857
857
  id: string;
858
858
  } | null;
859
859
  fileExtension?: string | null | undefined;
@@ -874,6 +874,206 @@ export declare const documentListResponseSchema: z.ZodObject<{
874
874
  meta?: Record<string, unknown> | undefined;
875
875
  }[] | undefined;
876
876
  }>;
877
+ export declare const receiptScanResponseSchema: z.ZodObject<{
878
+ data: z.ZodObject<{
879
+ type: z.ZodLiteral<"receipt-scan">;
880
+ id: z.ZodString;
881
+ attributes: z.ZodObject<{
882
+ vendor: z.ZodNullable<z.ZodString>;
883
+ amount: z.ZodNullable<z.ZodNumber>;
884
+ currency: z.ZodNullable<z.ZodString>;
885
+ date: z.ZodNullable<z.ZodString>;
886
+ suggestedCategory: z.ZodNullable<z.ZodString>;
887
+ notes: z.ZodNullable<z.ZodString>;
888
+ }, "strip", z.ZodTypeAny, {
889
+ date: string | null;
890
+ currency: string | null;
891
+ notes: string | null;
892
+ amount: number | null;
893
+ vendor: string | null;
894
+ suggestedCategory: string | null;
895
+ }, {
896
+ date: string | null;
897
+ currency: string | null;
898
+ notes: string | null;
899
+ amount: number | null;
900
+ vendor: string | null;
901
+ suggestedCategory: string | null;
902
+ }>;
903
+ }, "strip", z.ZodTypeAny, {
904
+ type: "receipt-scan";
905
+ id: string;
906
+ attributes: {
907
+ date: string | null;
908
+ currency: string | null;
909
+ notes: string | null;
910
+ amount: number | null;
911
+ vendor: string | null;
912
+ suggestedCategory: string | null;
913
+ };
914
+ }, {
915
+ type: "receipt-scan";
916
+ id: string;
917
+ attributes: {
918
+ date: string | null;
919
+ currency: string | null;
920
+ notes: string | null;
921
+ amount: number | null;
922
+ vendor: string | null;
923
+ suggestedCategory: string | null;
924
+ };
925
+ }>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ data: {
928
+ type: "receipt-scan";
929
+ id: string;
930
+ attributes: {
931
+ date: string | null;
932
+ currency: string | null;
933
+ notes: string | null;
934
+ amount: number | null;
935
+ vendor: string | null;
936
+ suggestedCategory: string | null;
937
+ };
938
+ };
939
+ }, {
940
+ data: {
941
+ type: "receipt-scan";
942
+ id: string;
943
+ attributes: {
944
+ date: string | null;
945
+ currency: string | null;
946
+ notes: string | null;
947
+ amount: number | null;
948
+ vendor: string | null;
949
+ suggestedCategory: string | null;
950
+ };
951
+ };
952
+ }>;
953
+ export declare const contractAnalysisResponseSchema: z.ZodObject<{
954
+ data: z.ZodObject<{
955
+ type: z.ZodLiteral<"contract-analysis">;
956
+ id: z.ZodString;
957
+ attributes: z.ZodObject<{
958
+ riskScore: z.ZodNumber;
959
+ risks: z.ZodArray<z.ZodString, "many">;
960
+ recommendedChanges: z.ZodArray<z.ZodString, "many">;
961
+ summary: z.ZodString;
962
+ }, "strip", z.ZodTypeAny, {
963
+ summary: string;
964
+ risks: string[];
965
+ riskScore: number;
966
+ recommendedChanges: string[];
967
+ }, {
968
+ summary: string;
969
+ risks: string[];
970
+ riskScore: number;
971
+ recommendedChanges: string[];
972
+ }>;
973
+ }, "strip", z.ZodTypeAny, {
974
+ type: "contract-analysis";
975
+ id: string;
976
+ attributes: {
977
+ summary: string;
978
+ risks: string[];
979
+ riskScore: number;
980
+ recommendedChanges: string[];
981
+ };
982
+ }, {
983
+ type: "contract-analysis";
984
+ id: string;
985
+ attributes: {
986
+ summary: string;
987
+ risks: string[];
988
+ riskScore: number;
989
+ recommendedChanges: string[];
990
+ };
991
+ }>;
992
+ }, "strip", z.ZodTypeAny, {
993
+ data: {
994
+ type: "contract-analysis";
995
+ id: string;
996
+ attributes: {
997
+ summary: string;
998
+ risks: string[];
999
+ riskScore: number;
1000
+ recommendedChanges: string[];
1001
+ };
1002
+ };
1003
+ }, {
1004
+ data: {
1005
+ type: "contract-analysis";
1006
+ id: string;
1007
+ attributes: {
1008
+ summary: string;
1009
+ risks: string[];
1010
+ riskScore: number;
1011
+ recommendedChanges: string[];
1012
+ };
1013
+ };
1014
+ }>;
1015
+ export declare const complianceSummaryResponseSchema: z.ZodObject<{
1016
+ data: z.ZodObject<{
1017
+ type: z.ZodLiteral<"compliance-summary">;
1018
+ id: z.ZodString;
1019
+ attributes: z.ZodObject<{
1020
+ farmId: z.ZodString;
1021
+ periodDays: z.ZodNumber;
1022
+ summary: z.ZodString;
1023
+ actionItems: z.ZodArray<z.ZodString, "many">;
1024
+ }, "strip", z.ZodTypeAny, {
1025
+ summary: string;
1026
+ farmId: string;
1027
+ periodDays: number;
1028
+ actionItems: string[];
1029
+ }, {
1030
+ summary: string;
1031
+ farmId: string;
1032
+ periodDays: number;
1033
+ actionItems: string[];
1034
+ }>;
1035
+ }, "strip", z.ZodTypeAny, {
1036
+ type: "compliance-summary";
1037
+ id: string;
1038
+ attributes: {
1039
+ summary: string;
1040
+ farmId: string;
1041
+ periodDays: number;
1042
+ actionItems: string[];
1043
+ };
1044
+ }, {
1045
+ type: "compliance-summary";
1046
+ id: string;
1047
+ attributes: {
1048
+ summary: string;
1049
+ farmId: string;
1050
+ periodDays: number;
1051
+ actionItems: string[];
1052
+ };
1053
+ }>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ data: {
1056
+ type: "compliance-summary";
1057
+ id: string;
1058
+ attributes: {
1059
+ summary: string;
1060
+ farmId: string;
1061
+ periodDays: number;
1062
+ actionItems: string[];
1063
+ };
1064
+ };
1065
+ }, {
1066
+ data: {
1067
+ type: "compliance-summary";
1068
+ id: string;
1069
+ attributes: {
1070
+ summary: string;
1071
+ farmId: string;
1072
+ periodDays: number;
1073
+ actionItems: string[];
1074
+ };
1075
+ };
1076
+ }>;
877
1077
  export { uploadedFileAttributesSchema, uploadedFileResourceSchema, uploadedFileResponseSchema, uploadFileBodySchema, type UploadedFileAttributes, type UploadedFileResource, type UploadedFileResponse, type UploadFileBody, } from './files.schemas';
878
1078
  export type DocumentType = z.infer<typeof documentTypeSchema>;
879
1079
  export type RelatedEntityType = z.infer<typeof relatedEntityTypeSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"documents.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/documents.schemas.ts"],"names":[],"mappings":"AAAA,OAA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,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,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;AACvE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -73,5 +73,43 @@ export const documentResourceSchema = createJsonApiResourceSchema('documents', d
73
73
  // Document responses (JSON:API format)
74
74
  export const documentResponseSchema = jsonApiSingleResponseSchema(documentResourceSchema);
75
75
  export const documentListResponseSchema = jsonApiCollectionResponseSchema(documentResourceSchema);
76
+ export const receiptScanResponseSchema = z.object({
77
+ data: z.object({
78
+ type: z.literal('receipt-scan'),
79
+ id: z.string(),
80
+ attributes: z.object({
81
+ vendor: z.string().nullable(),
82
+ amount: z.number().nullable(),
83
+ currency: z.string().nullable(),
84
+ date: z.string().nullable(),
85
+ suggestedCategory: z.string().nullable(),
86
+ notes: z.string().nullable(),
87
+ }),
88
+ }),
89
+ });
90
+ export const contractAnalysisResponseSchema = z.object({
91
+ data: z.object({
92
+ type: z.literal('contract-analysis'),
93
+ id: z.string(),
94
+ attributes: z.object({
95
+ riskScore: z.number().min(0).max(100),
96
+ risks: z.array(z.string()),
97
+ recommendedChanges: z.array(z.string()),
98
+ summary: z.string(),
99
+ }),
100
+ }),
101
+ });
102
+ export const complianceSummaryResponseSchema = z.object({
103
+ data: z.object({
104
+ type: z.literal('compliance-summary'),
105
+ id: z.string(),
106
+ attributes: z.object({
107
+ farmId: z.string().uuid(),
108
+ periodDays: z.number().int().positive(),
109
+ summary: z.string(),
110
+ actionItems: z.array(z.string()),
111
+ }),
112
+ }),
113
+ });
76
114
  // Re-export file upload schemas from shared files.schemas.ts
77
115
  export { uploadedFileAttributesSchema, uploadedFileResourceSchema, uploadedFileResponseSchema, uploadFileBodySchema, } from './files.schemas';