@deepintel-ltd/farmpro-contracts 1.16.9 → 1.16.11
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/admin.routes.d.ts +1036 -0
- package/dist/routes/admin.routes.d.ts.map +1 -1
- package/dist/routes/admin.routes.js +29 -1
- package/dist/routes/agent-workflows.routes.d.ts +246 -246
- package/dist/routes/agents.routes.d.ts +16 -16
- package/dist/routes/fertigation.routes.d.ts +80 -80
- package/dist/routes/field-monitoring.routes.d.ts +8 -8
- package/dist/routes/field-observations.routes.d.ts +28 -28
- package/dist/routes/health.routes.d.ts +66 -0
- package/dist/routes/health.routes.d.ts.map +1 -1
- package/dist/routes/livestock-groups.routes.d.ts +8 -8
- package/dist/routes/livestock.routes.d.ts +50 -50
- package/dist/routes/payments.routes.d.ts +20 -20
- package/dist/routes/pest-disease-risk.routes.d.ts +4 -4
- package/dist/routes/soil-tests.routes.d.ts +40 -40
- package/dist/schemas/admin.schemas.d.ts +267 -0
- package/dist/schemas/admin.schemas.d.ts.map +1 -1
- package/dist/schemas/admin.schemas.js +38 -0
- package/dist/schemas/agent-workflows.schemas.d.ts +206 -206
- package/dist/schemas/agents.schemas.d.ts +16 -16
- package/dist/schemas/fertigation.schemas.d.ts +36 -36
- package/dist/schemas/field-monitoring.schemas.d.ts +8 -8
- package/dist/schemas/field-observations.schemas.d.ts +20 -20
- package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
- package/dist/schemas/field-observations.schemas.js +3 -2
- package/dist/schemas/health.schemas.d.ts +33 -0
- package/dist/schemas/health.schemas.d.ts.map +1 -1
- package/dist/schemas/health.schemas.js +1 -0
- package/dist/schemas/livestock.schemas.d.ts +50 -50
- package/dist/schemas/monitoring-visualization.schemas.js +4 -4
- package/dist/schemas/payments.schemas.d.ts +20 -20
- package/dist/schemas/pest-disease-risk.schemas.d.ts +2 -2
- package/dist/schemas/soil-tests.schemas.d.ts +42 -42
- package/package.json +1 -1
|
@@ -99,9 +99,9 @@ export declare const movementRecordAttributesSchema: z.ZodObject<{
|
|
|
99
99
|
notes: z.ZodNullable<z.ZodString>;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
101
|
id: string;
|
|
102
|
+
reason: string | null;
|
|
102
103
|
currency: string;
|
|
103
104
|
notes: string | null;
|
|
104
|
-
reason: string | null;
|
|
105
105
|
movementDate: string;
|
|
106
106
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
107
107
|
fromLocation: string | null;
|
|
@@ -111,8 +111,8 @@ export declare const movementRecordAttributesSchema: z.ZodObject<{
|
|
|
111
111
|
documentRef: string | null;
|
|
112
112
|
}, {
|
|
113
113
|
id: string;
|
|
114
|
-
notes: string | null;
|
|
115
114
|
reason: string | null;
|
|
115
|
+
notes: string | null;
|
|
116
116
|
movementDate: string;
|
|
117
117
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
118
118
|
fromLocation: string | null;
|
|
@@ -240,9 +240,9 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
240
240
|
notes: z.ZodNullable<z.ZodString>;
|
|
241
241
|
}, "strip", z.ZodTypeAny, {
|
|
242
242
|
id: string;
|
|
243
|
+
reason: string | null;
|
|
243
244
|
currency: string;
|
|
244
245
|
notes: string | null;
|
|
245
|
-
reason: string | null;
|
|
246
246
|
movementDate: string;
|
|
247
247
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
248
248
|
fromLocation: string | null;
|
|
@@ -252,8 +252,8 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
252
252
|
documentRef: string | null;
|
|
253
253
|
}, {
|
|
254
254
|
id: string;
|
|
255
|
-
notes: string | null;
|
|
256
255
|
reason: string | null;
|
|
256
|
+
notes: string | null;
|
|
257
257
|
movementDate: string;
|
|
258
258
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
259
259
|
fromLocation: string | null;
|
|
@@ -324,9 +324,9 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
324
324
|
}[] | undefined;
|
|
325
325
|
recentMovements?: {
|
|
326
326
|
id: string;
|
|
327
|
+
reason: string | null;
|
|
327
328
|
currency: string;
|
|
328
329
|
notes: string | null;
|
|
329
|
-
reason: string | null;
|
|
330
330
|
movementDate: string;
|
|
331
331
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
332
332
|
fromLocation: string | null;
|
|
@@ -393,8 +393,8 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
393
393
|
}[] | undefined;
|
|
394
394
|
recentMovements?: {
|
|
395
395
|
id: string;
|
|
396
|
-
notes: string | null;
|
|
397
396
|
reason: string | null;
|
|
397
|
+
notes: string | null;
|
|
398
398
|
movementDate: string;
|
|
399
399
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
400
400
|
fromLocation: string | null;
|
|
@@ -619,8 +619,8 @@ export declare const createMovementRecordAttributesSchema: z.ZodObject<{
|
|
|
619
619
|
currency: string;
|
|
620
620
|
movementDate: string;
|
|
621
621
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
622
|
-
notes?: string | undefined;
|
|
623
622
|
reason?: string | undefined;
|
|
623
|
+
notes?: string | undefined;
|
|
624
624
|
fromLocation?: string | undefined;
|
|
625
625
|
toLocation?: string | undefined;
|
|
626
626
|
transactionValue?: number | undefined;
|
|
@@ -629,9 +629,9 @@ export declare const createMovementRecordAttributesSchema: z.ZodObject<{
|
|
|
629
629
|
}, {
|
|
630
630
|
movementDate: string;
|
|
631
631
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
632
|
+
reason?: string | undefined;
|
|
632
633
|
currency?: string | undefined;
|
|
633
634
|
notes?: string | undefined;
|
|
634
|
-
reason?: string | undefined;
|
|
635
635
|
fromLocation?: string | undefined;
|
|
636
636
|
toLocation?: string | undefined;
|
|
637
637
|
transactionValue?: number | undefined;
|
|
@@ -1023,8 +1023,8 @@ export declare const createMovementRecordSchema: z.ZodObject<{
|
|
|
1023
1023
|
currency: string;
|
|
1024
1024
|
movementDate: string;
|
|
1025
1025
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1026
|
-
notes?: string | undefined;
|
|
1027
1026
|
reason?: string | undefined;
|
|
1027
|
+
notes?: string | undefined;
|
|
1028
1028
|
fromLocation?: string | undefined;
|
|
1029
1029
|
toLocation?: string | undefined;
|
|
1030
1030
|
transactionValue?: number | undefined;
|
|
@@ -1033,9 +1033,9 @@ export declare const createMovementRecordSchema: z.ZodObject<{
|
|
|
1033
1033
|
}, {
|
|
1034
1034
|
movementDate: string;
|
|
1035
1035
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1036
|
+
reason?: string | undefined;
|
|
1036
1037
|
currency?: string | undefined;
|
|
1037
1038
|
notes?: string | undefined;
|
|
1038
|
-
reason?: string | undefined;
|
|
1039
1039
|
fromLocation?: string | undefined;
|
|
1040
1040
|
toLocation?: string | undefined;
|
|
1041
1041
|
transactionValue?: number | undefined;
|
|
@@ -1048,8 +1048,8 @@ export declare const createMovementRecordSchema: z.ZodObject<{
|
|
|
1048
1048
|
currency: string;
|
|
1049
1049
|
movementDate: string;
|
|
1050
1050
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1051
|
-
notes?: string | undefined;
|
|
1052
1051
|
reason?: string | undefined;
|
|
1052
|
+
notes?: string | undefined;
|
|
1053
1053
|
fromLocation?: string | undefined;
|
|
1054
1054
|
toLocation?: string | undefined;
|
|
1055
1055
|
transactionValue?: number | undefined;
|
|
@@ -1061,9 +1061,9 @@ export declare const createMovementRecordSchema: z.ZodObject<{
|
|
|
1061
1061
|
attributes: {
|
|
1062
1062
|
movementDate: string;
|
|
1063
1063
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1064
|
+
reason?: string | undefined;
|
|
1064
1065
|
currency?: string | undefined;
|
|
1065
1066
|
notes?: string | undefined;
|
|
1066
|
-
reason?: string | undefined;
|
|
1067
1067
|
fromLocation?: string | undefined;
|
|
1068
1068
|
toLocation?: string | undefined;
|
|
1069
1069
|
transactionValue?: number | undefined;
|
|
@@ -1192,9 +1192,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1192
1192
|
notes: z.ZodNullable<z.ZodString>;
|
|
1193
1193
|
}, "strip", z.ZodTypeAny, {
|
|
1194
1194
|
id: string;
|
|
1195
|
+
reason: string | null;
|
|
1195
1196
|
currency: string;
|
|
1196
1197
|
notes: string | null;
|
|
1197
|
-
reason: string | null;
|
|
1198
1198
|
movementDate: string;
|
|
1199
1199
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1200
1200
|
fromLocation: string | null;
|
|
@@ -1204,8 +1204,8 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1204
1204
|
documentRef: string | null;
|
|
1205
1205
|
}, {
|
|
1206
1206
|
id: string;
|
|
1207
|
-
notes: string | null;
|
|
1208
1207
|
reason: string | null;
|
|
1208
|
+
notes: string | null;
|
|
1209
1209
|
movementDate: string;
|
|
1210
1210
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1211
1211
|
fromLocation: string | null;
|
|
@@ -1276,9 +1276,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1276
1276
|
}[] | undefined;
|
|
1277
1277
|
recentMovements?: {
|
|
1278
1278
|
id: string;
|
|
1279
|
+
reason: string | null;
|
|
1279
1280
|
currency: string;
|
|
1280
1281
|
notes: string | null;
|
|
1281
|
-
reason: string | null;
|
|
1282
1282
|
movementDate: string;
|
|
1283
1283
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1284
1284
|
fromLocation: string | null;
|
|
@@ -1345,8 +1345,8 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1345
1345
|
}[] | undefined;
|
|
1346
1346
|
recentMovements?: {
|
|
1347
1347
|
id: string;
|
|
1348
|
-
notes: string | null;
|
|
1349
1348
|
reason: string | null;
|
|
1349
|
+
notes: string | null;
|
|
1350
1350
|
movementDate: string;
|
|
1351
1351
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1352
1352
|
fromLocation: string | null;
|
|
@@ -1421,9 +1421,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1421
1421
|
}[] | undefined;
|
|
1422
1422
|
recentMovements?: {
|
|
1423
1423
|
id: string;
|
|
1424
|
+
reason: string | null;
|
|
1424
1425
|
currency: string;
|
|
1425
1426
|
notes: string | null;
|
|
1426
|
-
reason: string | null;
|
|
1427
1427
|
movementDate: string;
|
|
1428
1428
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1429
1429
|
fromLocation: string | null;
|
|
@@ -1497,8 +1497,8 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1497
1497
|
}[] | undefined;
|
|
1498
1498
|
recentMovements?: {
|
|
1499
1499
|
id: string;
|
|
1500
|
-
notes: string | null;
|
|
1501
1500
|
reason: string | null;
|
|
1501
|
+
notes: string | null;
|
|
1502
1502
|
movementDate: string;
|
|
1503
1503
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1504
1504
|
fromLocation: string | null;
|
|
@@ -1699,9 +1699,9 @@ export declare const movementRecordResourceSchema: z.ZodObject<{
|
|
|
1699
1699
|
notes: z.ZodNullable<z.ZodString>;
|
|
1700
1700
|
}, "strip", z.ZodTypeAny, {
|
|
1701
1701
|
id: string;
|
|
1702
|
+
reason: string | null;
|
|
1702
1703
|
currency: string;
|
|
1703
1704
|
notes: string | null;
|
|
1704
|
-
reason: string | null;
|
|
1705
1705
|
movementDate: string;
|
|
1706
1706
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1707
1707
|
fromLocation: string | null;
|
|
@@ -1711,8 +1711,8 @@ export declare const movementRecordResourceSchema: z.ZodObject<{
|
|
|
1711
1711
|
documentRef: string | null;
|
|
1712
1712
|
}, {
|
|
1713
1713
|
id: string;
|
|
1714
|
-
notes: string | null;
|
|
1715
1714
|
reason: string | null;
|
|
1715
|
+
notes: string | null;
|
|
1716
1716
|
movementDate: string;
|
|
1717
1717
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1718
1718
|
fromLocation: string | null;
|
|
@@ -1730,9 +1730,9 @@ export declare const movementRecordResourceSchema: z.ZodObject<{
|
|
|
1730
1730
|
id: string;
|
|
1731
1731
|
attributes: {
|
|
1732
1732
|
id: string;
|
|
1733
|
+
reason: string | null;
|
|
1733
1734
|
currency: string;
|
|
1734
1735
|
notes: string | null;
|
|
1735
|
-
reason: string | null;
|
|
1736
1736
|
movementDate: string;
|
|
1737
1737
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1738
1738
|
fromLocation: string | null;
|
|
@@ -1749,8 +1749,8 @@ export declare const movementRecordResourceSchema: z.ZodObject<{
|
|
|
1749
1749
|
id: string;
|
|
1750
1750
|
attributes: {
|
|
1751
1751
|
id: string;
|
|
1752
|
-
notes: string | null;
|
|
1753
1752
|
reason: string | null;
|
|
1753
|
+
notes: string | null;
|
|
1754
1754
|
movementDate: string;
|
|
1755
1755
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1756
1756
|
fromLocation: string | null;
|
|
@@ -1886,9 +1886,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1886
1886
|
notes: z.ZodNullable<z.ZodString>;
|
|
1887
1887
|
}, "strip", z.ZodTypeAny, {
|
|
1888
1888
|
id: string;
|
|
1889
|
+
reason: string | null;
|
|
1889
1890
|
currency: string;
|
|
1890
1891
|
notes: string | null;
|
|
1891
|
-
reason: string | null;
|
|
1892
1892
|
movementDate: string;
|
|
1893
1893
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1894
1894
|
fromLocation: string | null;
|
|
@@ -1898,8 +1898,8 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1898
1898
|
documentRef: string | null;
|
|
1899
1899
|
}, {
|
|
1900
1900
|
id: string;
|
|
1901
|
-
notes: string | null;
|
|
1902
1901
|
reason: string | null;
|
|
1902
|
+
notes: string | null;
|
|
1903
1903
|
movementDate: string;
|
|
1904
1904
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1905
1905
|
fromLocation: string | null;
|
|
@@ -1970,9 +1970,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1970
1970
|
}[] | undefined;
|
|
1971
1971
|
recentMovements?: {
|
|
1972
1972
|
id: string;
|
|
1973
|
+
reason: string | null;
|
|
1973
1974
|
currency: string;
|
|
1974
1975
|
notes: string | null;
|
|
1975
|
-
reason: string | null;
|
|
1976
1976
|
movementDate: string;
|
|
1977
1977
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
1978
1978
|
fromLocation: string | null;
|
|
@@ -2039,8 +2039,8 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2039
2039
|
}[] | undefined;
|
|
2040
2040
|
recentMovements?: {
|
|
2041
2041
|
id: string;
|
|
2042
|
-
notes: string | null;
|
|
2043
2042
|
reason: string | null;
|
|
2043
|
+
notes: string | null;
|
|
2044
2044
|
movementDate: string;
|
|
2045
2045
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
2046
2046
|
fromLocation: string | null;
|
|
@@ -2115,9 +2115,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2115
2115
|
}[] | undefined;
|
|
2116
2116
|
recentMovements?: {
|
|
2117
2117
|
id: string;
|
|
2118
|
+
reason: string | null;
|
|
2118
2119
|
currency: string;
|
|
2119
2120
|
notes: string | null;
|
|
2120
|
-
reason: string | null;
|
|
2121
2121
|
movementDate: string;
|
|
2122
2122
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
2123
2123
|
fromLocation: string | null;
|
|
@@ -2191,8 +2191,8 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2191
2191
|
}[] | undefined;
|
|
2192
2192
|
recentMovements?: {
|
|
2193
2193
|
id: string;
|
|
2194
|
-
notes: string | null;
|
|
2195
2194
|
reason: string | null;
|
|
2195
|
+
notes: string | null;
|
|
2196
2196
|
movementDate: string;
|
|
2197
2197
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
2198
2198
|
fromLocation: string | null;
|
|
@@ -2293,9 +2293,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2293
2293
|
}[] | undefined;
|
|
2294
2294
|
recentMovements?: {
|
|
2295
2295
|
id: string;
|
|
2296
|
+
reason: string | null;
|
|
2296
2297
|
currency: string;
|
|
2297
2298
|
notes: string | null;
|
|
2298
|
-
reason: string | null;
|
|
2299
2299
|
movementDate: string;
|
|
2300
2300
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
2301
2301
|
fromLocation: string | null;
|
|
@@ -2381,8 +2381,8 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2381
2381
|
}[] | undefined;
|
|
2382
2382
|
recentMovements?: {
|
|
2383
2383
|
id: string;
|
|
2384
|
-
notes: string | null;
|
|
2385
2384
|
reason: string | null;
|
|
2385
|
+
notes: string | null;
|
|
2386
2386
|
movementDate: string;
|
|
2387
2387
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
2388
2388
|
fromLocation: string | null;
|
|
@@ -2530,9 +2530,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2530
2530
|
notes: z.ZodNullable<z.ZodString>;
|
|
2531
2531
|
}, "strip", z.ZodTypeAny, {
|
|
2532
2532
|
id: string;
|
|
2533
|
+
reason: string | null;
|
|
2533
2534
|
currency: string;
|
|
2534
2535
|
notes: string | null;
|
|
2535
|
-
reason: string | null;
|
|
2536
2536
|
movementDate: string;
|
|
2537
2537
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
2538
2538
|
fromLocation: string | null;
|
|
@@ -2542,8 +2542,8 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2542
2542
|
documentRef: string | null;
|
|
2543
2543
|
}, {
|
|
2544
2544
|
id: string;
|
|
2545
|
-
notes: string | null;
|
|
2546
2545
|
reason: string | null;
|
|
2546
|
+
notes: string | null;
|
|
2547
2547
|
movementDate: string;
|
|
2548
2548
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
2549
2549
|
fromLocation: string | null;
|
|
@@ -2614,9 +2614,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2614
2614
|
}[] | undefined;
|
|
2615
2615
|
recentMovements?: {
|
|
2616
2616
|
id: string;
|
|
2617
|
+
reason: string | null;
|
|
2617
2618
|
currency: string;
|
|
2618
2619
|
notes: string | null;
|
|
2619
|
-
reason: string | null;
|
|
2620
2620
|
movementDate: string;
|
|
2621
2621
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
2622
2622
|
fromLocation: string | null;
|
|
@@ -2683,8 +2683,8 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2683
2683
|
}[] | undefined;
|
|
2684
2684
|
recentMovements?: {
|
|
2685
2685
|
id: string;
|
|
2686
|
-
notes: string | null;
|
|
2687
2686
|
reason: string | null;
|
|
2687
|
+
notes: string | null;
|
|
2688
2688
|
movementDate: string;
|
|
2689
2689
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
2690
2690
|
fromLocation: string | null;
|
|
@@ -2759,9 +2759,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2759
2759
|
}[] | undefined;
|
|
2760
2760
|
recentMovements?: {
|
|
2761
2761
|
id: string;
|
|
2762
|
+
reason: string | null;
|
|
2762
2763
|
currency: string;
|
|
2763
2764
|
notes: string | null;
|
|
2764
|
-
reason: string | null;
|
|
2765
2765
|
movementDate: string;
|
|
2766
2766
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
2767
2767
|
fromLocation: string | null;
|
|
@@ -2835,8 +2835,8 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2835
2835
|
}[] | undefined;
|
|
2836
2836
|
recentMovements?: {
|
|
2837
2837
|
id: string;
|
|
2838
|
-
notes: string | null;
|
|
2839
2838
|
reason: string | null;
|
|
2839
|
+
notes: string | null;
|
|
2840
2840
|
movementDate: string;
|
|
2841
2841
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
2842
2842
|
fromLocation: string | null;
|
|
@@ -2937,9 +2937,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2937
2937
|
}[] | undefined;
|
|
2938
2938
|
recentMovements?: {
|
|
2939
2939
|
id: string;
|
|
2940
|
+
reason: string | null;
|
|
2940
2941
|
currency: string;
|
|
2941
2942
|
notes: string | null;
|
|
2942
|
-
reason: string | null;
|
|
2943
2943
|
movementDate: string;
|
|
2944
2944
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
2945
2945
|
fromLocation: string | null;
|
|
@@ -3025,8 +3025,8 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
3025
3025
|
}[] | undefined;
|
|
3026
3026
|
recentMovements?: {
|
|
3027
3027
|
id: string;
|
|
3028
|
-
notes: string | null;
|
|
3029
3028
|
reason: string | null;
|
|
3029
|
+
notes: string | null;
|
|
3030
3030
|
movementDate: string;
|
|
3031
3031
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3032
3032
|
fromLocation: string | null;
|
|
@@ -3636,9 +3636,9 @@ export declare const movementRecordResponseSchema: z.ZodObject<{
|
|
|
3636
3636
|
notes: z.ZodNullable<z.ZodString>;
|
|
3637
3637
|
}, "strip", z.ZodTypeAny, {
|
|
3638
3638
|
id: string;
|
|
3639
|
+
reason: string | null;
|
|
3639
3640
|
currency: string;
|
|
3640
3641
|
notes: string | null;
|
|
3641
|
-
reason: string | null;
|
|
3642
3642
|
movementDate: string;
|
|
3643
3643
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3644
3644
|
fromLocation: string | null;
|
|
@@ -3648,8 +3648,8 @@ export declare const movementRecordResponseSchema: z.ZodObject<{
|
|
|
3648
3648
|
documentRef: string | null;
|
|
3649
3649
|
}, {
|
|
3650
3650
|
id: string;
|
|
3651
|
-
notes: string | null;
|
|
3652
3651
|
reason: string | null;
|
|
3652
|
+
notes: string | null;
|
|
3653
3653
|
movementDate: string;
|
|
3654
3654
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3655
3655
|
fromLocation: string | null;
|
|
@@ -3667,9 +3667,9 @@ export declare const movementRecordResponseSchema: z.ZodObject<{
|
|
|
3667
3667
|
id: string;
|
|
3668
3668
|
attributes: {
|
|
3669
3669
|
id: string;
|
|
3670
|
+
reason: string | null;
|
|
3670
3671
|
currency: string;
|
|
3671
3672
|
notes: string | null;
|
|
3672
|
-
reason: string | null;
|
|
3673
3673
|
movementDate: string;
|
|
3674
3674
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3675
3675
|
fromLocation: string | null;
|
|
@@ -3686,8 +3686,8 @@ export declare const movementRecordResponseSchema: z.ZodObject<{
|
|
|
3686
3686
|
id: string;
|
|
3687
3687
|
attributes: {
|
|
3688
3688
|
id: string;
|
|
3689
|
-
notes: string | null;
|
|
3690
3689
|
reason: string | null;
|
|
3690
|
+
notes: string | null;
|
|
3691
3691
|
movementDate: string;
|
|
3692
3692
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3693
3693
|
fromLocation: string | null;
|
|
@@ -3731,9 +3731,9 @@ export declare const movementRecordResponseSchema: z.ZodObject<{
|
|
|
3731
3731
|
id: string;
|
|
3732
3732
|
attributes: {
|
|
3733
3733
|
id: string;
|
|
3734
|
+
reason: string | null;
|
|
3734
3735
|
currency: string;
|
|
3735
3736
|
notes: string | null;
|
|
3736
|
-
reason: string | null;
|
|
3737
3737
|
movementDate: string;
|
|
3738
3738
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3739
3739
|
fromLocation: string | null;
|
|
@@ -3762,8 +3762,8 @@ export declare const movementRecordResponseSchema: z.ZodObject<{
|
|
|
3762
3762
|
id: string;
|
|
3763
3763
|
attributes: {
|
|
3764
3764
|
id: string;
|
|
3765
|
-
notes: string | null;
|
|
3766
3765
|
reason: string | null;
|
|
3766
|
+
notes: string | null;
|
|
3767
3767
|
movementDate: string;
|
|
3768
3768
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3769
3769
|
fromLocation: string | null;
|
|
@@ -3806,9 +3806,9 @@ export declare const movementRecordListResponseSchema: z.ZodObject<{
|
|
|
3806
3806
|
notes: z.ZodNullable<z.ZodString>;
|
|
3807
3807
|
}, "strip", z.ZodTypeAny, {
|
|
3808
3808
|
id: string;
|
|
3809
|
+
reason: string | null;
|
|
3809
3810
|
currency: string;
|
|
3810
3811
|
notes: string | null;
|
|
3811
|
-
reason: string | null;
|
|
3812
3812
|
movementDate: string;
|
|
3813
3813
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3814
3814
|
fromLocation: string | null;
|
|
@@ -3818,8 +3818,8 @@ export declare const movementRecordListResponseSchema: z.ZodObject<{
|
|
|
3818
3818
|
documentRef: string | null;
|
|
3819
3819
|
}, {
|
|
3820
3820
|
id: string;
|
|
3821
|
-
notes: string | null;
|
|
3822
3821
|
reason: string | null;
|
|
3822
|
+
notes: string | null;
|
|
3823
3823
|
movementDate: string;
|
|
3824
3824
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3825
3825
|
fromLocation: string | null;
|
|
@@ -3837,9 +3837,9 @@ export declare const movementRecordListResponseSchema: z.ZodObject<{
|
|
|
3837
3837
|
id: string;
|
|
3838
3838
|
attributes: {
|
|
3839
3839
|
id: string;
|
|
3840
|
+
reason: string | null;
|
|
3840
3841
|
currency: string;
|
|
3841
3842
|
notes: string | null;
|
|
3842
|
-
reason: string | null;
|
|
3843
3843
|
movementDate: string;
|
|
3844
3844
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3845
3845
|
fromLocation: string | null;
|
|
@@ -3856,8 +3856,8 @@ export declare const movementRecordListResponseSchema: z.ZodObject<{
|
|
|
3856
3856
|
id: string;
|
|
3857
3857
|
attributes: {
|
|
3858
3858
|
id: string;
|
|
3859
|
-
notes: string | null;
|
|
3860
3859
|
reason: string | null;
|
|
3860
|
+
notes: string | null;
|
|
3861
3861
|
movementDate: string;
|
|
3862
3862
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3863
3863
|
fromLocation: string | null;
|
|
@@ -3901,9 +3901,9 @@ export declare const movementRecordListResponseSchema: z.ZodObject<{
|
|
|
3901
3901
|
id: string;
|
|
3902
3902
|
attributes: {
|
|
3903
3903
|
id: string;
|
|
3904
|
+
reason: string | null;
|
|
3904
3905
|
currency: string;
|
|
3905
3906
|
notes: string | null;
|
|
3906
|
-
reason: string | null;
|
|
3907
3907
|
movementDate: string;
|
|
3908
3908
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3909
3909
|
fromLocation: string | null;
|
|
@@ -3932,8 +3932,8 @@ export declare const movementRecordListResponseSchema: z.ZodObject<{
|
|
|
3932
3932
|
id: string;
|
|
3933
3933
|
attributes: {
|
|
3934
3934
|
id: string;
|
|
3935
|
-
notes: string | null;
|
|
3936
3935
|
reason: string | null;
|
|
3936
|
+
notes: string | null;
|
|
3937
3937
|
movementDate: string;
|
|
3938
3938
|
movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
|
|
3939
3939
|
fromLocation: string | null;
|
|
@@ -424,8 +424,8 @@ export const photoTimelineQuerySchema = z.object({
|
|
|
424
424
|
});
|
|
425
425
|
export const photoTimelineItemSchema = z.object({
|
|
426
426
|
id: z.string().uuid(),
|
|
427
|
-
photoUrl: z.string().
|
|
428
|
-
thumbnailUrl: z.string().
|
|
427
|
+
photoUrl: z.string().min(1),
|
|
428
|
+
thumbnailUrl: z.string().min(1).nullable(),
|
|
429
429
|
captureDate: z.string().datetime(),
|
|
430
430
|
location: coordinateSchema.nullable(),
|
|
431
431
|
healthScore: z.number().min(0).max(100).nullable(),
|
|
@@ -473,8 +473,8 @@ export const photoPinIssueSchema = z.object({
|
|
|
473
473
|
export const photoPinSchema = z.object({
|
|
474
474
|
id: z.string().uuid(),
|
|
475
475
|
location: coordinateSchema,
|
|
476
|
-
photoUrl: z.string().
|
|
477
|
-
thumbnailUrl: z.string().
|
|
476
|
+
photoUrl: z.string().min(1),
|
|
477
|
+
thumbnailUrl: z.string().min(1).nullable(),
|
|
478
478
|
captureDate: z.string().datetime(),
|
|
479
479
|
healthScore: z.number().min(0).max(100).nullable(),
|
|
480
480
|
status: z.enum(['healthy', 'moderate', 'concerning', 'critical']),
|