@deepintel-ltd/farmpro-contracts 1.11.10 → 1.11.12
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 +509 -0
- package/dist/routes/agents.routes.d.ts.map +1 -1
- package/dist/routes/agents.routes.js +19 -1
- package/dist/routes/finance.routes.d.ts +360 -4
- package/dist/routes/finance.routes.d.ts.map +1 -1
- package/dist/routes/finance.routes.js +46 -3
- package/dist/routes/notifications.routes.d.ts +14 -14
- package/dist/routes/weather.routes.d.ts +9 -0
- package/dist/routes/weather.routes.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.d.ts +198 -0
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.js +14 -0
- package/dist/schemas/notifications.schemas.d.ts +23 -23
- package/dist/schemas/notifications.schemas.d.ts.map +1 -1
- package/dist/schemas/notifications.schemas.js +1 -0
- package/dist/schemas/weather.schemas.d.ts +28 -0
- package/dist/schemas/weather.schemas.d.ts.map +1 -1
- package/dist/schemas/weather.schemas.js +3 -1
- package/package.json +1 -1
|
@@ -43,12 +43,14 @@ export declare const weatherForecastSchema: z.ZodObject<{
|
|
|
43
43
|
rain?: number | undefined;
|
|
44
44
|
}>;
|
|
45
45
|
export declare const weatherAlertSchema: z.ZodObject<{
|
|
46
|
+
/** Stable id: weather_alert:{farmId}:{type}:{YYYY-MM-DD}[:disambiguator] */
|
|
46
47
|
id: z.ZodString;
|
|
47
48
|
type: z.ZodEnum<["drought", "heavy-rain", "frost", "optimal", "wind"]>;
|
|
48
49
|
severity: z.ZodEnum<["high", "medium", "low"]>;
|
|
49
50
|
message: z.ZodString;
|
|
50
51
|
fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
52
|
date: z.ZodString;
|
|
53
|
+
recommendation: z.ZodOptional<z.ZodString>;
|
|
52
54
|
recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
55
|
priority: z.ZodNumber;
|
|
54
56
|
action: z.ZodString;
|
|
@@ -158,6 +160,7 @@ export declare const weatherAlertSchema: z.ZodObject<{
|
|
|
158
160
|
riskLevel?: string | undefined;
|
|
159
161
|
}[] | undefined;
|
|
160
162
|
fieldId?: string | null | undefined;
|
|
163
|
+
recommendation?: string | undefined;
|
|
161
164
|
}, {
|
|
162
165
|
type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
|
|
163
166
|
message: string;
|
|
@@ -187,6 +190,7 @@ export declare const weatherAlertSchema: z.ZodObject<{
|
|
|
187
190
|
riskLevel?: string | undefined;
|
|
188
191
|
}[] | undefined;
|
|
189
192
|
fieldId?: string | null | undefined;
|
|
193
|
+
recommendation?: string | undefined;
|
|
190
194
|
}>;
|
|
191
195
|
export declare const weatherAttributesSchema: z.ZodObject<{
|
|
192
196
|
farmId: z.ZodString;
|
|
@@ -229,12 +233,14 @@ export declare const weatherAttributesSchema: z.ZodObject<{
|
|
|
229
233
|
rain?: number | undefined;
|
|
230
234
|
}>, "many">;
|
|
231
235
|
alerts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
236
|
+
/** Stable id: weather_alert:{farmId}:{type}:{YYYY-MM-DD}[:disambiguator] */
|
|
232
237
|
id: z.ZodString;
|
|
233
238
|
type: z.ZodEnum<["drought", "heavy-rain", "frost", "optimal", "wind"]>;
|
|
234
239
|
severity: z.ZodEnum<["high", "medium", "low"]>;
|
|
235
240
|
message: z.ZodString;
|
|
236
241
|
fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
242
|
date: z.ZodString;
|
|
243
|
+
recommendation: z.ZodOptional<z.ZodString>;
|
|
238
244
|
recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
239
245
|
priority: z.ZodNumber;
|
|
240
246
|
action: z.ZodString;
|
|
@@ -344,6 +350,7 @@ export declare const weatherAttributesSchema: z.ZodObject<{
|
|
|
344
350
|
riskLevel?: string | undefined;
|
|
345
351
|
}[] | undefined;
|
|
346
352
|
fieldId?: string | null | undefined;
|
|
353
|
+
recommendation?: string | undefined;
|
|
347
354
|
}, {
|
|
348
355
|
type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
|
|
349
356
|
message: string;
|
|
@@ -373,6 +380,7 @@ export declare const weatherAttributesSchema: z.ZodObject<{
|
|
|
373
380
|
riskLevel?: string | undefined;
|
|
374
381
|
}[] | undefined;
|
|
375
382
|
fieldId?: string | null | undefined;
|
|
383
|
+
recommendation?: string | undefined;
|
|
376
384
|
}>, "many">>;
|
|
377
385
|
}, "strip", z.ZodTypeAny, {
|
|
378
386
|
farmId: string;
|
|
@@ -419,6 +427,7 @@ export declare const weatherAttributesSchema: z.ZodObject<{
|
|
|
419
427
|
riskLevel?: string | undefined;
|
|
420
428
|
}[] | undefined;
|
|
421
429
|
fieldId?: string | null | undefined;
|
|
430
|
+
recommendation?: string | undefined;
|
|
422
431
|
}[] | undefined;
|
|
423
432
|
}, {
|
|
424
433
|
farmId: string;
|
|
@@ -465,6 +474,7 @@ export declare const weatherAttributesSchema: z.ZodObject<{
|
|
|
465
474
|
riskLevel?: string | undefined;
|
|
466
475
|
}[] | undefined;
|
|
467
476
|
fieldId?: string | null | undefined;
|
|
477
|
+
recommendation?: string | undefined;
|
|
468
478
|
}[] | undefined;
|
|
469
479
|
}>;
|
|
470
480
|
export declare const plannerRiskLevelSchema: z.ZodEnum<["low", "medium", "high"]>;
|
|
@@ -1187,12 +1197,14 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1187
1197
|
rain?: number | undefined;
|
|
1188
1198
|
}>, "many">;
|
|
1189
1199
|
alerts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1200
|
+
/** Stable id: weather_alert:{farmId}:{type}:{YYYY-MM-DD}[:disambiguator] */
|
|
1190
1201
|
id: z.ZodString;
|
|
1191
1202
|
type: z.ZodEnum<["drought", "heavy-rain", "frost", "optimal", "wind"]>;
|
|
1192
1203
|
severity: z.ZodEnum<["high", "medium", "low"]>;
|
|
1193
1204
|
message: z.ZodString;
|
|
1194
1205
|
fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1195
1206
|
date: z.ZodString;
|
|
1207
|
+
recommendation: z.ZodOptional<z.ZodString>;
|
|
1196
1208
|
recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1197
1209
|
priority: z.ZodNumber;
|
|
1198
1210
|
action: z.ZodString;
|
|
@@ -1302,6 +1314,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1302
1314
|
riskLevel?: string | undefined;
|
|
1303
1315
|
}[] | undefined;
|
|
1304
1316
|
fieldId?: string | null | undefined;
|
|
1317
|
+
recommendation?: string | undefined;
|
|
1305
1318
|
}, {
|
|
1306
1319
|
type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
|
|
1307
1320
|
message: string;
|
|
@@ -1331,6 +1344,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1331
1344
|
riskLevel?: string | undefined;
|
|
1332
1345
|
}[] | undefined;
|
|
1333
1346
|
fieldId?: string | null | undefined;
|
|
1347
|
+
recommendation?: string | undefined;
|
|
1334
1348
|
}>, "many">>;
|
|
1335
1349
|
}, "strip", z.ZodTypeAny, {
|
|
1336
1350
|
farmId: string;
|
|
@@ -1377,6 +1391,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1377
1391
|
riskLevel?: string | undefined;
|
|
1378
1392
|
}[] | undefined;
|
|
1379
1393
|
fieldId?: string | null | undefined;
|
|
1394
|
+
recommendation?: string | undefined;
|
|
1380
1395
|
}[] | undefined;
|
|
1381
1396
|
}, {
|
|
1382
1397
|
farmId: string;
|
|
@@ -1423,6 +1438,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1423
1438
|
riskLevel?: string | undefined;
|
|
1424
1439
|
}[] | undefined;
|
|
1425
1440
|
fieldId?: string | null | undefined;
|
|
1441
|
+
recommendation?: string | undefined;
|
|
1426
1442
|
}[] | undefined;
|
|
1427
1443
|
}>;
|
|
1428
1444
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1476,6 +1492,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1476
1492
|
riskLevel?: string | undefined;
|
|
1477
1493
|
}[] | undefined;
|
|
1478
1494
|
fieldId?: string | null | undefined;
|
|
1495
|
+
recommendation?: string | undefined;
|
|
1479
1496
|
}[] | undefined;
|
|
1480
1497
|
};
|
|
1481
1498
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1529,6 +1546,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1529
1546
|
riskLevel?: string | undefined;
|
|
1530
1547
|
}[] | undefined;
|
|
1531
1548
|
fieldId?: string | null | undefined;
|
|
1549
|
+
recommendation?: string | undefined;
|
|
1532
1550
|
}[] | undefined;
|
|
1533
1551
|
};
|
|
1534
1552
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1580,12 +1598,14 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1580
1598
|
rain?: number | undefined;
|
|
1581
1599
|
}>, "many">;
|
|
1582
1600
|
alerts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1601
|
+
/** Stable id: weather_alert:{farmId}:{type}:{YYYY-MM-DD}[:disambiguator] */
|
|
1583
1602
|
id: z.ZodString;
|
|
1584
1603
|
type: z.ZodEnum<["drought", "heavy-rain", "frost", "optimal", "wind"]>;
|
|
1585
1604
|
severity: z.ZodEnum<["high", "medium", "low"]>;
|
|
1586
1605
|
message: z.ZodString;
|
|
1587
1606
|
fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1588
1607
|
date: z.ZodString;
|
|
1608
|
+
recommendation: z.ZodOptional<z.ZodString>;
|
|
1589
1609
|
recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1590
1610
|
priority: z.ZodNumber;
|
|
1591
1611
|
action: z.ZodString;
|
|
@@ -1695,6 +1715,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1695
1715
|
riskLevel?: string | undefined;
|
|
1696
1716
|
}[] | undefined;
|
|
1697
1717
|
fieldId?: string | null | undefined;
|
|
1718
|
+
recommendation?: string | undefined;
|
|
1698
1719
|
}, {
|
|
1699
1720
|
type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
|
|
1700
1721
|
message: string;
|
|
@@ -1724,6 +1745,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1724
1745
|
riskLevel?: string | undefined;
|
|
1725
1746
|
}[] | undefined;
|
|
1726
1747
|
fieldId?: string | null | undefined;
|
|
1748
|
+
recommendation?: string | undefined;
|
|
1727
1749
|
}>, "many">>;
|
|
1728
1750
|
}, "strip", z.ZodTypeAny, {
|
|
1729
1751
|
farmId: string;
|
|
@@ -1770,6 +1792,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1770
1792
|
riskLevel?: string | undefined;
|
|
1771
1793
|
}[] | undefined;
|
|
1772
1794
|
fieldId?: string | null | undefined;
|
|
1795
|
+
recommendation?: string | undefined;
|
|
1773
1796
|
}[] | undefined;
|
|
1774
1797
|
}, {
|
|
1775
1798
|
farmId: string;
|
|
@@ -1816,6 +1839,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1816
1839
|
riskLevel?: string | undefined;
|
|
1817
1840
|
}[] | undefined;
|
|
1818
1841
|
fieldId?: string | null | undefined;
|
|
1842
|
+
recommendation?: string | undefined;
|
|
1819
1843
|
}[] | undefined;
|
|
1820
1844
|
}>;
|
|
1821
1845
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1869,6 +1893,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1869
1893
|
riskLevel?: string | undefined;
|
|
1870
1894
|
}[] | undefined;
|
|
1871
1895
|
fieldId?: string | null | undefined;
|
|
1896
|
+
recommendation?: string | undefined;
|
|
1872
1897
|
}[] | undefined;
|
|
1873
1898
|
};
|
|
1874
1899
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1922,6 +1947,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1922
1947
|
riskLevel?: string | undefined;
|
|
1923
1948
|
}[] | undefined;
|
|
1924
1949
|
fieldId?: string | null | undefined;
|
|
1950
|
+
recommendation?: string | undefined;
|
|
1925
1951
|
}[] | undefined;
|
|
1926
1952
|
};
|
|
1927
1953
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2001,6 +2027,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
2001
2027
|
riskLevel?: string | undefined;
|
|
2002
2028
|
}[] | undefined;
|
|
2003
2029
|
fieldId?: string | null | undefined;
|
|
2030
|
+
recommendation?: string | undefined;
|
|
2004
2031
|
}[] | undefined;
|
|
2005
2032
|
};
|
|
2006
2033
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2066,6 +2093,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
2066
2093
|
riskLevel?: string | undefined;
|
|
2067
2094
|
}[] | undefined;
|
|
2068
2095
|
fieldId?: string | null | undefined;
|
|
2096
|
+
recommendation?: string | undefined;
|
|
2069
2097
|
}[] | undefined;
|
|
2070
2098
|
};
|
|
2071
2099
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weather.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/weather.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;GAEG;AAGH,eAAO,MAAM,sBAAsB,kEAAgE,CAAC;AAGpG,eAAO,MAAM,0BAA0B,sCAAoC,CAAC;AAG5E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;EAMhC,CAAC;A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AAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -26,12 +26,14 @@ export const weatherForecastSchema = z.object({
|
|
|
26
26
|
});
|
|
27
27
|
// Weather alert
|
|
28
28
|
export const weatherAlertSchema = z.object({
|
|
29
|
-
id:
|
|
29
|
+
/** Stable id: weather_alert:{farmId}:{type}:{YYYY-MM-DD}[:disambiguator] */
|
|
30
|
+
id: z.string().min(1),
|
|
30
31
|
type: weatherAlertTypeSchema,
|
|
31
32
|
severity: weatherAlertSeveritySchema,
|
|
32
33
|
message: z.string(),
|
|
33
34
|
fieldId: z.string().uuid().nullable().optional(), // Field-specific alerts
|
|
34
35
|
date: z.string().datetime(),
|
|
36
|
+
recommendation: z.string().optional(),
|
|
35
37
|
recommendations: z.array(recommendationSchema).optional(),
|
|
36
38
|
});
|
|
37
39
|
// Weather attributes schema (for JSON:API attributes object)
|