@deepintel-ltd/farmpro-contracts 1.4.2 → 1.5.1
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/agent-workflows.routes.js +6 -6
- package/dist/routes/documents.routes.d.ts +378 -15
- package/dist/routes/documents.routes.d.ts.map +1 -1
- package/dist/routes/documents.routes.js +16 -1
- package/dist/routes/farms.routes.d.ts +42 -0
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/field-monitoring.routes.d.ts +290 -4
- package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
- package/dist/routes/field-monitoring.routes.js +48 -1
- package/dist/routes/field-observations.routes.d.ts +6 -6
- package/dist/routes/tasks.routes.d.ts +10 -4
- package/dist/routes/tasks.routes.d.ts.map +1 -1
- package/dist/routes/team.routes.d.ts +343 -0
- package/dist/routes/team.routes.d.ts.map +1 -1
- package/dist/routes/team.routes.js +26 -0
- package/dist/schemas/documents.schemas.d.ts +77 -18
- package/dist/schemas/documents.schemas.d.ts.map +1 -1
- package/dist/schemas/documents.schemas.js +6 -3
- package/dist/schemas/farms.schemas.d.ts +51 -0
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +5 -1
- package/dist/schemas/field-monitoring.schemas.d.ts +9 -3
- package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
- package/dist/schemas/field-monitoring.schemas.js +3 -1
- package/dist/schemas/field-observations.schemas.d.ts +3 -3
- package/dist/schemas/field-observations.schemas.js +1 -1
- package/dist/schemas/tasks.schemas.d.ts +17 -5
- package/dist/schemas/tasks.schemas.d.ts.map +1 -1
- package/dist/schemas/tasks.schemas.js +9 -1
- package/dist/schemas/team.schemas.d.ts +8 -0
- package/dist/schemas/team.schemas.d.ts.map +1 -1
- package/dist/schemas/team.schemas.js +1 -0
- package/package.json +1 -1
|
@@ -64,6 +64,8 @@ export declare const documentsRouter: {
|
|
|
64
64
|
type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
|
|
65
65
|
category: z.ZodNullable<z.ZodString>;
|
|
66
66
|
fileUrl: z.ZodString;
|
|
67
|
+
viewUrl: z.ZodOptional<z.ZodString>;
|
|
68
|
+
fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
69
|
fileSize: z.ZodNullable<z.ZodNumber>;
|
|
68
70
|
uploadedDate: z.ZodString;
|
|
69
71
|
uploadedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -98,6 +100,8 @@ export declare const documentsRouter: {
|
|
|
98
100
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
99
101
|
id: string;
|
|
100
102
|
} | null;
|
|
103
|
+
viewUrl?: string | undefined;
|
|
104
|
+
fileExtension?: string | null | undefined;
|
|
101
105
|
tags?: string[] | undefined;
|
|
102
106
|
}, {
|
|
103
107
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
@@ -115,6 +119,8 @@ export declare const documentsRouter: {
|
|
|
115
119
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
116
120
|
id: string;
|
|
117
121
|
} | null;
|
|
122
|
+
viewUrl?: string | undefined;
|
|
123
|
+
fileExtension?: string | null | undefined;
|
|
118
124
|
tags?: string[] | undefined;
|
|
119
125
|
}>;
|
|
120
126
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -139,6 +145,8 @@ export declare const documentsRouter: {
|
|
|
139
145
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
140
146
|
id: string;
|
|
141
147
|
} | null;
|
|
148
|
+
viewUrl?: string | undefined;
|
|
149
|
+
fileExtension?: string | null | undefined;
|
|
142
150
|
tags?: string[] | undefined;
|
|
143
151
|
};
|
|
144
152
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -163,6 +171,8 @@ export declare const documentsRouter: {
|
|
|
163
171
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
164
172
|
id: string;
|
|
165
173
|
} | null;
|
|
174
|
+
viewUrl?: string | undefined;
|
|
175
|
+
fileExtension?: string | null | undefined;
|
|
166
176
|
tags?: string[] | undefined;
|
|
167
177
|
};
|
|
168
178
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -213,6 +223,8 @@ export declare const documentsRouter: {
|
|
|
213
223
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
214
224
|
id: string;
|
|
215
225
|
} | null;
|
|
226
|
+
viewUrl?: string | undefined;
|
|
227
|
+
fileExtension?: string | null | undefined;
|
|
216
228
|
tags?: string[] | undefined;
|
|
217
229
|
};
|
|
218
230
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -249,6 +261,8 @@ export declare const documentsRouter: {
|
|
|
249
261
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
250
262
|
id: string;
|
|
251
263
|
} | null;
|
|
264
|
+
viewUrl?: string | undefined;
|
|
265
|
+
fileExtension?: string | null | undefined;
|
|
252
266
|
tags?: string[] | undefined;
|
|
253
267
|
};
|
|
254
268
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -460,13 +474,13 @@ export declare const documentsRouter: {
|
|
|
460
474
|
description: "Upload a file and get back the file URL in JSON:API format";
|
|
461
475
|
method: "POST";
|
|
462
476
|
contentType: "multipart/form-data";
|
|
463
|
-
body: z.ZodObject<{
|
|
464
|
-
file: z.
|
|
477
|
+
body: z.ZodUnion<[z.ZodObject<{
|
|
478
|
+
file: z.ZodAny;
|
|
465
479
|
}, "strip", z.ZodTypeAny, {
|
|
466
|
-
file
|
|
480
|
+
file?: any;
|
|
467
481
|
}, {
|
|
468
|
-
file
|
|
469
|
-
}>;
|
|
482
|
+
file?: any;
|
|
483
|
+
}>, z.ZodUndefined]>;
|
|
470
484
|
path: "/farms/:farmId/documents/upload";
|
|
471
485
|
responses: {
|
|
472
486
|
200: z.ZodObject<{
|
|
@@ -474,23 +488,26 @@ export declare const documentsRouter: {
|
|
|
474
488
|
type: z.ZodLiteral<string>;
|
|
475
489
|
id: z.ZodString;
|
|
476
490
|
attributes: z.ZodObject<{
|
|
477
|
-
fileUrl: z.ZodString
|
|
491
|
+
fileUrl: z.ZodOptional<z.ZodString>;
|
|
492
|
+
viewUrl: z.ZodString;
|
|
478
493
|
fileSize: z.ZodNumber;
|
|
479
494
|
fileName: z.ZodString;
|
|
480
495
|
contentType: z.ZodOptional<z.ZodString>;
|
|
481
496
|
uploadedAt: z.ZodString;
|
|
482
497
|
}, "strip", z.ZodTypeAny, {
|
|
483
|
-
|
|
498
|
+
viewUrl: string;
|
|
484
499
|
fileSize: number;
|
|
485
500
|
fileName: string;
|
|
486
501
|
uploadedAt: string;
|
|
487
502
|
contentType?: string | undefined;
|
|
503
|
+
fileUrl?: string | undefined;
|
|
488
504
|
}, {
|
|
489
|
-
|
|
505
|
+
viewUrl: string;
|
|
490
506
|
fileSize: number;
|
|
491
507
|
fileName: string;
|
|
492
508
|
uploadedAt: string;
|
|
493
509
|
contentType?: string | undefined;
|
|
510
|
+
fileUrl?: string | undefined;
|
|
494
511
|
}>;
|
|
495
512
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
496
513
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -499,11 +516,12 @@ export declare const documentsRouter: {
|
|
|
499
516
|
type: string;
|
|
500
517
|
id: string;
|
|
501
518
|
attributes: {
|
|
502
|
-
|
|
519
|
+
viewUrl: string;
|
|
503
520
|
fileSize: number;
|
|
504
521
|
fileName: string;
|
|
505
522
|
uploadedAt: string;
|
|
506
523
|
contentType?: string | undefined;
|
|
524
|
+
fileUrl?: string | undefined;
|
|
507
525
|
};
|
|
508
526
|
relationships?: Record<string, unknown> | undefined;
|
|
509
527
|
links?: Record<string, string> | undefined;
|
|
@@ -512,11 +530,12 @@ export declare const documentsRouter: {
|
|
|
512
530
|
type: string;
|
|
513
531
|
id: string;
|
|
514
532
|
attributes: {
|
|
515
|
-
|
|
533
|
+
viewUrl: string;
|
|
516
534
|
fileSize: number;
|
|
517
535
|
fileName: string;
|
|
518
536
|
uploadedAt: string;
|
|
519
537
|
contentType?: string | undefined;
|
|
538
|
+
fileUrl?: string | undefined;
|
|
520
539
|
};
|
|
521
540
|
relationships?: Record<string, unknown> | undefined;
|
|
522
541
|
links?: Record<string, string> | undefined;
|
|
@@ -551,11 +570,12 @@ export declare const documentsRouter: {
|
|
|
551
570
|
type: string;
|
|
552
571
|
id: string;
|
|
553
572
|
attributes: {
|
|
554
|
-
|
|
573
|
+
viewUrl: string;
|
|
555
574
|
fileSize: number;
|
|
556
575
|
fileName: string;
|
|
557
576
|
uploadedAt: string;
|
|
558
577
|
contentType?: string | undefined;
|
|
578
|
+
fileUrl?: string | undefined;
|
|
559
579
|
};
|
|
560
580
|
relationships?: Record<string, unknown> | undefined;
|
|
561
581
|
links?: Record<string, string> | undefined;
|
|
@@ -576,11 +596,12 @@ export declare const documentsRouter: {
|
|
|
576
596
|
type: string;
|
|
577
597
|
id: string;
|
|
578
598
|
attributes: {
|
|
579
|
-
|
|
599
|
+
viewUrl: string;
|
|
580
600
|
fileSize: number;
|
|
581
601
|
fileName: string;
|
|
582
602
|
uploadedAt: string;
|
|
583
603
|
contentType?: string | undefined;
|
|
604
|
+
fileUrl?: string | undefined;
|
|
584
605
|
};
|
|
585
606
|
relationships?: Record<string, unknown> | undefined;
|
|
586
607
|
links?: Record<string, string> | undefined;
|
|
@@ -885,11 +906,11 @@ export declare const documentsRouter: {
|
|
|
885
906
|
method: "POST";
|
|
886
907
|
contentType: "multipart/form-data";
|
|
887
908
|
body: z.ZodObject<{
|
|
888
|
-
file: z.
|
|
909
|
+
file: z.ZodAny;
|
|
889
910
|
}, "strip", z.ZodTypeAny, {
|
|
890
|
-
file
|
|
911
|
+
file?: any;
|
|
891
912
|
}, {
|
|
892
|
-
file
|
|
913
|
+
file?: any;
|
|
893
914
|
}>;
|
|
894
915
|
path: "/farms/:farmId/documents/:id/upload";
|
|
895
916
|
responses: {
|
|
@@ -903,6 +924,8 @@ export declare const documentsRouter: {
|
|
|
903
924
|
type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
|
|
904
925
|
category: z.ZodNullable<z.ZodString>;
|
|
905
926
|
fileUrl: z.ZodString;
|
|
927
|
+
viewUrl: z.ZodOptional<z.ZodString>;
|
|
928
|
+
fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
906
929
|
fileSize: z.ZodNullable<z.ZodNumber>;
|
|
907
930
|
uploadedDate: z.ZodString;
|
|
908
931
|
uploadedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -937,6 +960,8 @@ export declare const documentsRouter: {
|
|
|
937
960
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
938
961
|
id: string;
|
|
939
962
|
} | null;
|
|
963
|
+
viewUrl?: string | undefined;
|
|
964
|
+
fileExtension?: string | null | undefined;
|
|
940
965
|
tags?: string[] | undefined;
|
|
941
966
|
}, {
|
|
942
967
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
@@ -954,6 +979,8 @@ export declare const documentsRouter: {
|
|
|
954
979
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
955
980
|
id: string;
|
|
956
981
|
} | null;
|
|
982
|
+
viewUrl?: string | undefined;
|
|
983
|
+
fileExtension?: string | null | undefined;
|
|
957
984
|
tags?: string[] | undefined;
|
|
958
985
|
}>;
|
|
959
986
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -978,6 +1005,8 @@ export declare const documentsRouter: {
|
|
|
978
1005
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
979
1006
|
id: string;
|
|
980
1007
|
} | null;
|
|
1008
|
+
viewUrl?: string | undefined;
|
|
1009
|
+
fileExtension?: string | null | undefined;
|
|
981
1010
|
tags?: string[] | undefined;
|
|
982
1011
|
};
|
|
983
1012
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1002,6 +1031,8 @@ export declare const documentsRouter: {
|
|
|
1002
1031
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1003
1032
|
id: string;
|
|
1004
1033
|
} | null;
|
|
1034
|
+
viewUrl?: string | undefined;
|
|
1035
|
+
fileExtension?: string | null | undefined;
|
|
1005
1036
|
tags?: string[] | undefined;
|
|
1006
1037
|
};
|
|
1007
1038
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1052,6 +1083,8 @@ export declare const documentsRouter: {
|
|
|
1052
1083
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1053
1084
|
id: string;
|
|
1054
1085
|
} | null;
|
|
1086
|
+
viewUrl?: string | undefined;
|
|
1087
|
+
fileExtension?: string | null | undefined;
|
|
1055
1088
|
tags?: string[] | undefined;
|
|
1056
1089
|
};
|
|
1057
1090
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1088,6 +1121,8 @@ export declare const documentsRouter: {
|
|
|
1088
1121
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1089
1122
|
id: string;
|
|
1090
1123
|
} | null;
|
|
1124
|
+
viewUrl?: string | undefined;
|
|
1125
|
+
fileExtension?: string | null | undefined;
|
|
1091
1126
|
tags?: string[] | undefined;
|
|
1092
1127
|
};
|
|
1093
1128
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1512,6 +1547,8 @@ export declare const documentsRouter: {
|
|
|
1512
1547
|
type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
|
|
1513
1548
|
category: z.ZodNullable<z.ZodString>;
|
|
1514
1549
|
fileUrl: z.ZodString;
|
|
1550
|
+
viewUrl: z.ZodOptional<z.ZodString>;
|
|
1551
|
+
fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1515
1552
|
fileSize: z.ZodNullable<z.ZodNumber>;
|
|
1516
1553
|
uploadedDate: z.ZodString;
|
|
1517
1554
|
uploadedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -1546,6 +1583,8 @@ export declare const documentsRouter: {
|
|
|
1546
1583
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1547
1584
|
id: string;
|
|
1548
1585
|
} | null;
|
|
1586
|
+
viewUrl?: string | undefined;
|
|
1587
|
+
fileExtension?: string | null | undefined;
|
|
1549
1588
|
tags?: string[] | undefined;
|
|
1550
1589
|
}, {
|
|
1551
1590
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
@@ -1563,6 +1602,8 @@ export declare const documentsRouter: {
|
|
|
1563
1602
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1564
1603
|
id: string;
|
|
1565
1604
|
} | null;
|
|
1605
|
+
viewUrl?: string | undefined;
|
|
1606
|
+
fileExtension?: string | null | undefined;
|
|
1566
1607
|
tags?: string[] | undefined;
|
|
1567
1608
|
}>;
|
|
1568
1609
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1587,6 +1628,8 @@ export declare const documentsRouter: {
|
|
|
1587
1628
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1588
1629
|
id: string;
|
|
1589
1630
|
} | null;
|
|
1631
|
+
viewUrl?: string | undefined;
|
|
1632
|
+
fileExtension?: string | null | undefined;
|
|
1590
1633
|
tags?: string[] | undefined;
|
|
1591
1634
|
};
|
|
1592
1635
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1611,6 +1654,8 @@ export declare const documentsRouter: {
|
|
|
1611
1654
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1612
1655
|
id: string;
|
|
1613
1656
|
} | null;
|
|
1657
|
+
viewUrl?: string | undefined;
|
|
1658
|
+
fileExtension?: string | null | undefined;
|
|
1614
1659
|
tags?: string[] | undefined;
|
|
1615
1660
|
};
|
|
1616
1661
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1661,6 +1706,8 @@ export declare const documentsRouter: {
|
|
|
1661
1706
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1662
1707
|
id: string;
|
|
1663
1708
|
} | null;
|
|
1709
|
+
viewUrl?: string | undefined;
|
|
1710
|
+
fileExtension?: string | null | undefined;
|
|
1664
1711
|
tags?: string[] | undefined;
|
|
1665
1712
|
};
|
|
1666
1713
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1697,6 +1744,8 @@ export declare const documentsRouter: {
|
|
|
1697
1744
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1698
1745
|
id: string;
|
|
1699
1746
|
} | null;
|
|
1747
|
+
viewUrl?: string | undefined;
|
|
1748
|
+
fileExtension?: string | null | undefined;
|
|
1700
1749
|
tags?: string[] | undefined;
|
|
1701
1750
|
};
|
|
1702
1751
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2109,6 +2158,8 @@ export declare const documentsRouter: {
|
|
|
2109
2158
|
type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
|
|
2110
2159
|
category: z.ZodNullable<z.ZodString>;
|
|
2111
2160
|
fileUrl: z.ZodString;
|
|
2161
|
+
viewUrl: z.ZodOptional<z.ZodString>;
|
|
2162
|
+
fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2112
2163
|
fileSize: z.ZodNullable<z.ZodNumber>;
|
|
2113
2164
|
uploadedDate: z.ZodString;
|
|
2114
2165
|
uploadedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -2143,6 +2194,8 @@ export declare const documentsRouter: {
|
|
|
2143
2194
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2144
2195
|
id: string;
|
|
2145
2196
|
} | null;
|
|
2197
|
+
viewUrl?: string | undefined;
|
|
2198
|
+
fileExtension?: string | null | undefined;
|
|
2146
2199
|
tags?: string[] | undefined;
|
|
2147
2200
|
}, {
|
|
2148
2201
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
@@ -2160,6 +2213,8 @@ export declare const documentsRouter: {
|
|
|
2160
2213
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2161
2214
|
id: string;
|
|
2162
2215
|
} | null;
|
|
2216
|
+
viewUrl?: string | undefined;
|
|
2217
|
+
fileExtension?: string | null | undefined;
|
|
2163
2218
|
tags?: string[] | undefined;
|
|
2164
2219
|
}>;
|
|
2165
2220
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -2184,6 +2239,8 @@ export declare const documentsRouter: {
|
|
|
2184
2239
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2185
2240
|
id: string;
|
|
2186
2241
|
} | null;
|
|
2242
|
+
viewUrl?: string | undefined;
|
|
2243
|
+
fileExtension?: string | null | undefined;
|
|
2187
2244
|
tags?: string[] | undefined;
|
|
2188
2245
|
};
|
|
2189
2246
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2208,6 +2265,8 @@ export declare const documentsRouter: {
|
|
|
2208
2265
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2209
2266
|
id: string;
|
|
2210
2267
|
} | null;
|
|
2268
|
+
viewUrl?: string | undefined;
|
|
2269
|
+
fileExtension?: string | null | undefined;
|
|
2211
2270
|
tags?: string[] | undefined;
|
|
2212
2271
|
};
|
|
2213
2272
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2258,6 +2317,8 @@ export declare const documentsRouter: {
|
|
|
2258
2317
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2259
2318
|
id: string;
|
|
2260
2319
|
} | null;
|
|
2320
|
+
viewUrl?: string | undefined;
|
|
2321
|
+
fileExtension?: string | null | undefined;
|
|
2261
2322
|
tags?: string[] | undefined;
|
|
2262
2323
|
};
|
|
2263
2324
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2294,6 +2355,8 @@ export declare const documentsRouter: {
|
|
|
2294
2355
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2295
2356
|
id: string;
|
|
2296
2357
|
} | null;
|
|
2358
|
+
viewUrl?: string | undefined;
|
|
2359
|
+
fileExtension?: string | null | undefined;
|
|
2297
2360
|
tags?: string[] | undefined;
|
|
2298
2361
|
};
|
|
2299
2362
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2636,6 +2699,8 @@ export declare const documentsRouter: {
|
|
|
2636
2699
|
type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
|
|
2637
2700
|
category: z.ZodNullable<z.ZodString>;
|
|
2638
2701
|
fileUrl: z.ZodString;
|
|
2702
|
+
viewUrl: z.ZodOptional<z.ZodString>;
|
|
2703
|
+
fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2639
2704
|
fileSize: z.ZodNullable<z.ZodNumber>;
|
|
2640
2705
|
uploadedDate: z.ZodString;
|
|
2641
2706
|
uploadedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -2670,6 +2735,8 @@ export declare const documentsRouter: {
|
|
|
2670
2735
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2671
2736
|
id: string;
|
|
2672
2737
|
} | null;
|
|
2738
|
+
viewUrl?: string | undefined;
|
|
2739
|
+
fileExtension?: string | null | undefined;
|
|
2673
2740
|
tags?: string[] | undefined;
|
|
2674
2741
|
}, {
|
|
2675
2742
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
@@ -2687,6 +2754,8 @@ export declare const documentsRouter: {
|
|
|
2687
2754
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2688
2755
|
id: string;
|
|
2689
2756
|
} | null;
|
|
2757
|
+
viewUrl?: string | undefined;
|
|
2758
|
+
fileExtension?: string | null | undefined;
|
|
2690
2759
|
tags?: string[] | undefined;
|
|
2691
2760
|
}>;
|
|
2692
2761
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -2711,6 +2780,8 @@ export declare const documentsRouter: {
|
|
|
2711
2780
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2712
2781
|
id: string;
|
|
2713
2782
|
} | null;
|
|
2783
|
+
viewUrl?: string | undefined;
|
|
2784
|
+
fileExtension?: string | null | undefined;
|
|
2714
2785
|
tags?: string[] | undefined;
|
|
2715
2786
|
};
|
|
2716
2787
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2735,6 +2806,8 @@ export declare const documentsRouter: {
|
|
|
2735
2806
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2736
2807
|
id: string;
|
|
2737
2808
|
} | null;
|
|
2809
|
+
viewUrl?: string | undefined;
|
|
2810
|
+
fileExtension?: string | null | undefined;
|
|
2738
2811
|
tags?: string[] | undefined;
|
|
2739
2812
|
};
|
|
2740
2813
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2785,6 +2858,8 @@ export declare const documentsRouter: {
|
|
|
2785
2858
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2786
2859
|
id: string;
|
|
2787
2860
|
} | null;
|
|
2861
|
+
viewUrl?: string | undefined;
|
|
2862
|
+
fileExtension?: string | null | undefined;
|
|
2788
2863
|
tags?: string[] | undefined;
|
|
2789
2864
|
};
|
|
2790
2865
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2821,6 +2896,8 @@ export declare const documentsRouter: {
|
|
|
2821
2896
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2822
2897
|
id: string;
|
|
2823
2898
|
} | null;
|
|
2899
|
+
viewUrl?: string | undefined;
|
|
2900
|
+
fileExtension?: string | null | undefined;
|
|
2824
2901
|
tags?: string[] | undefined;
|
|
2825
2902
|
};
|
|
2826
2903
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -3415,5 +3492,291 @@ export declare const documentsRouter: {
|
|
|
3415
3492
|
}>;
|
|
3416
3493
|
};
|
|
3417
3494
|
};
|
|
3495
|
+
viewDocument: {
|
|
3496
|
+
pathParams: z.ZodObject<{
|
|
3497
|
+
docId: z.ZodString;
|
|
3498
|
+
}, "strip", z.ZodTypeAny, {
|
|
3499
|
+
docId: string;
|
|
3500
|
+
}, {
|
|
3501
|
+
docId: string;
|
|
3502
|
+
}>;
|
|
3503
|
+
summary: "View document file";
|
|
3504
|
+
description: "Stream or download a document file by its UUID. Extension is optional - both /documents/view/{docId} and /documents/view/{docId}.{ext} work for the same file.";
|
|
3505
|
+
method: "GET";
|
|
3506
|
+
path: "/documents/view/:docId";
|
|
3507
|
+
responses: {
|
|
3508
|
+
200: z.ZodAny;
|
|
3509
|
+
404: z.ZodObject<{
|
|
3510
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
3511
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3512
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
3513
|
+
about: z.ZodOptional<z.ZodString>;
|
|
3514
|
+
}, "strip", z.ZodTypeAny, {
|
|
3515
|
+
about?: string | undefined;
|
|
3516
|
+
}, {
|
|
3517
|
+
about?: string | undefined;
|
|
3518
|
+
}>>;
|
|
3519
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3520
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3521
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3522
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3523
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
3524
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
3525
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
3526
|
+
}, "strip", z.ZodTypeAny, {
|
|
3527
|
+
pointer?: string | undefined;
|
|
3528
|
+
parameter?: string | undefined;
|
|
3529
|
+
}, {
|
|
3530
|
+
pointer?: string | undefined;
|
|
3531
|
+
parameter?: string | undefined;
|
|
3532
|
+
}>>;
|
|
3533
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3534
|
+
}, "strip", z.ZodTypeAny, {
|
|
3535
|
+
status?: string | undefined;
|
|
3536
|
+
code?: string | undefined;
|
|
3537
|
+
id?: string | undefined;
|
|
3538
|
+
links?: {
|
|
3539
|
+
about?: string | undefined;
|
|
3540
|
+
} | undefined;
|
|
3541
|
+
meta?: Record<string, unknown> | undefined;
|
|
3542
|
+
title?: string | undefined;
|
|
3543
|
+
detail?: string | undefined;
|
|
3544
|
+
source?: {
|
|
3545
|
+
pointer?: string | undefined;
|
|
3546
|
+
parameter?: string | undefined;
|
|
3547
|
+
} | undefined;
|
|
3548
|
+
}, {
|
|
3549
|
+
status?: string | undefined;
|
|
3550
|
+
code?: string | undefined;
|
|
3551
|
+
id?: string | undefined;
|
|
3552
|
+
links?: {
|
|
3553
|
+
about?: string | undefined;
|
|
3554
|
+
} | undefined;
|
|
3555
|
+
meta?: Record<string, unknown> | undefined;
|
|
3556
|
+
title?: string | undefined;
|
|
3557
|
+
detail?: string | undefined;
|
|
3558
|
+
source?: {
|
|
3559
|
+
pointer?: string | undefined;
|
|
3560
|
+
parameter?: string | undefined;
|
|
3561
|
+
} | undefined;
|
|
3562
|
+
}>, "many">;
|
|
3563
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3564
|
+
}, "strip", z.ZodTypeAny, {
|
|
3565
|
+
errors: {
|
|
3566
|
+
status?: string | undefined;
|
|
3567
|
+
code?: string | undefined;
|
|
3568
|
+
id?: string | undefined;
|
|
3569
|
+
links?: {
|
|
3570
|
+
about?: string | undefined;
|
|
3571
|
+
} | undefined;
|
|
3572
|
+
meta?: Record<string, unknown> | undefined;
|
|
3573
|
+
title?: string | undefined;
|
|
3574
|
+
detail?: string | undefined;
|
|
3575
|
+
source?: {
|
|
3576
|
+
pointer?: string | undefined;
|
|
3577
|
+
parameter?: string | undefined;
|
|
3578
|
+
} | undefined;
|
|
3579
|
+
}[];
|
|
3580
|
+
meta?: Record<string, unknown> | undefined;
|
|
3581
|
+
}, {
|
|
3582
|
+
errors: {
|
|
3583
|
+
status?: string | undefined;
|
|
3584
|
+
code?: string | undefined;
|
|
3585
|
+
id?: string | undefined;
|
|
3586
|
+
links?: {
|
|
3587
|
+
about?: string | undefined;
|
|
3588
|
+
} | undefined;
|
|
3589
|
+
meta?: Record<string, unknown> | undefined;
|
|
3590
|
+
title?: string | undefined;
|
|
3591
|
+
detail?: string | undefined;
|
|
3592
|
+
source?: {
|
|
3593
|
+
pointer?: string | undefined;
|
|
3594
|
+
parameter?: string | undefined;
|
|
3595
|
+
} | undefined;
|
|
3596
|
+
}[];
|
|
3597
|
+
meta?: Record<string, unknown> | undefined;
|
|
3598
|
+
}>;
|
|
3599
|
+
401: z.ZodObject<{
|
|
3600
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
3601
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3602
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
3603
|
+
about: z.ZodOptional<z.ZodString>;
|
|
3604
|
+
}, "strip", z.ZodTypeAny, {
|
|
3605
|
+
about?: string | undefined;
|
|
3606
|
+
}, {
|
|
3607
|
+
about?: string | undefined;
|
|
3608
|
+
}>>;
|
|
3609
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3610
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3611
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3612
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3613
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
3614
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
3615
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
3616
|
+
}, "strip", z.ZodTypeAny, {
|
|
3617
|
+
pointer?: string | undefined;
|
|
3618
|
+
parameter?: string | undefined;
|
|
3619
|
+
}, {
|
|
3620
|
+
pointer?: string | undefined;
|
|
3621
|
+
parameter?: string | undefined;
|
|
3622
|
+
}>>;
|
|
3623
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3624
|
+
}, "strip", z.ZodTypeAny, {
|
|
3625
|
+
status?: string | undefined;
|
|
3626
|
+
code?: string | undefined;
|
|
3627
|
+
id?: string | undefined;
|
|
3628
|
+
links?: {
|
|
3629
|
+
about?: string | undefined;
|
|
3630
|
+
} | undefined;
|
|
3631
|
+
meta?: Record<string, unknown> | undefined;
|
|
3632
|
+
title?: string | undefined;
|
|
3633
|
+
detail?: string | undefined;
|
|
3634
|
+
source?: {
|
|
3635
|
+
pointer?: string | undefined;
|
|
3636
|
+
parameter?: string | undefined;
|
|
3637
|
+
} | undefined;
|
|
3638
|
+
}, {
|
|
3639
|
+
status?: string | undefined;
|
|
3640
|
+
code?: string | undefined;
|
|
3641
|
+
id?: string | undefined;
|
|
3642
|
+
links?: {
|
|
3643
|
+
about?: string | undefined;
|
|
3644
|
+
} | undefined;
|
|
3645
|
+
meta?: Record<string, unknown> | undefined;
|
|
3646
|
+
title?: string | undefined;
|
|
3647
|
+
detail?: string | undefined;
|
|
3648
|
+
source?: {
|
|
3649
|
+
pointer?: string | undefined;
|
|
3650
|
+
parameter?: string | undefined;
|
|
3651
|
+
} | undefined;
|
|
3652
|
+
}>, "many">;
|
|
3653
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3654
|
+
}, "strip", z.ZodTypeAny, {
|
|
3655
|
+
errors: {
|
|
3656
|
+
status?: string | undefined;
|
|
3657
|
+
code?: string | undefined;
|
|
3658
|
+
id?: string | undefined;
|
|
3659
|
+
links?: {
|
|
3660
|
+
about?: string | undefined;
|
|
3661
|
+
} | undefined;
|
|
3662
|
+
meta?: Record<string, unknown> | undefined;
|
|
3663
|
+
title?: string | undefined;
|
|
3664
|
+
detail?: string | undefined;
|
|
3665
|
+
source?: {
|
|
3666
|
+
pointer?: string | undefined;
|
|
3667
|
+
parameter?: string | undefined;
|
|
3668
|
+
} | undefined;
|
|
3669
|
+
}[];
|
|
3670
|
+
meta?: Record<string, unknown> | undefined;
|
|
3671
|
+
}, {
|
|
3672
|
+
errors: {
|
|
3673
|
+
status?: string | undefined;
|
|
3674
|
+
code?: string | undefined;
|
|
3675
|
+
id?: string | undefined;
|
|
3676
|
+
links?: {
|
|
3677
|
+
about?: string | undefined;
|
|
3678
|
+
} | undefined;
|
|
3679
|
+
meta?: Record<string, unknown> | undefined;
|
|
3680
|
+
title?: string | undefined;
|
|
3681
|
+
detail?: string | undefined;
|
|
3682
|
+
source?: {
|
|
3683
|
+
pointer?: string | undefined;
|
|
3684
|
+
parameter?: string | undefined;
|
|
3685
|
+
} | undefined;
|
|
3686
|
+
}[];
|
|
3687
|
+
meta?: Record<string, unknown> | undefined;
|
|
3688
|
+
}>;
|
|
3689
|
+
403: z.ZodObject<{
|
|
3690
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
3691
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3692
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
3693
|
+
about: z.ZodOptional<z.ZodString>;
|
|
3694
|
+
}, "strip", z.ZodTypeAny, {
|
|
3695
|
+
about?: string | undefined;
|
|
3696
|
+
}, {
|
|
3697
|
+
about?: string | undefined;
|
|
3698
|
+
}>>;
|
|
3699
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3700
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3701
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3702
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3703
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
3704
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
3705
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
3706
|
+
}, "strip", z.ZodTypeAny, {
|
|
3707
|
+
pointer?: string | undefined;
|
|
3708
|
+
parameter?: string | undefined;
|
|
3709
|
+
}, {
|
|
3710
|
+
pointer?: string | undefined;
|
|
3711
|
+
parameter?: string | undefined;
|
|
3712
|
+
}>>;
|
|
3713
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3714
|
+
}, "strip", z.ZodTypeAny, {
|
|
3715
|
+
status?: string | undefined;
|
|
3716
|
+
code?: string | undefined;
|
|
3717
|
+
id?: string | undefined;
|
|
3718
|
+
links?: {
|
|
3719
|
+
about?: string | undefined;
|
|
3720
|
+
} | undefined;
|
|
3721
|
+
meta?: Record<string, unknown> | undefined;
|
|
3722
|
+
title?: string | undefined;
|
|
3723
|
+
detail?: string | undefined;
|
|
3724
|
+
source?: {
|
|
3725
|
+
pointer?: string | undefined;
|
|
3726
|
+
parameter?: string | undefined;
|
|
3727
|
+
} | undefined;
|
|
3728
|
+
}, {
|
|
3729
|
+
status?: string | undefined;
|
|
3730
|
+
code?: string | undefined;
|
|
3731
|
+
id?: string | undefined;
|
|
3732
|
+
links?: {
|
|
3733
|
+
about?: string | undefined;
|
|
3734
|
+
} | undefined;
|
|
3735
|
+
meta?: Record<string, unknown> | undefined;
|
|
3736
|
+
title?: string | undefined;
|
|
3737
|
+
detail?: string | undefined;
|
|
3738
|
+
source?: {
|
|
3739
|
+
pointer?: string | undefined;
|
|
3740
|
+
parameter?: string | undefined;
|
|
3741
|
+
} | undefined;
|
|
3742
|
+
}>, "many">;
|
|
3743
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3744
|
+
}, "strip", z.ZodTypeAny, {
|
|
3745
|
+
errors: {
|
|
3746
|
+
status?: string | undefined;
|
|
3747
|
+
code?: string | undefined;
|
|
3748
|
+
id?: string | undefined;
|
|
3749
|
+
links?: {
|
|
3750
|
+
about?: string | undefined;
|
|
3751
|
+
} | undefined;
|
|
3752
|
+
meta?: Record<string, unknown> | undefined;
|
|
3753
|
+
title?: string | undefined;
|
|
3754
|
+
detail?: string | undefined;
|
|
3755
|
+
source?: {
|
|
3756
|
+
pointer?: string | undefined;
|
|
3757
|
+
parameter?: string | undefined;
|
|
3758
|
+
} | undefined;
|
|
3759
|
+
}[];
|
|
3760
|
+
meta?: Record<string, unknown> | undefined;
|
|
3761
|
+
}, {
|
|
3762
|
+
errors: {
|
|
3763
|
+
status?: string | undefined;
|
|
3764
|
+
code?: string | undefined;
|
|
3765
|
+
id?: string | undefined;
|
|
3766
|
+
links?: {
|
|
3767
|
+
about?: string | undefined;
|
|
3768
|
+
} | undefined;
|
|
3769
|
+
meta?: Record<string, unknown> | undefined;
|
|
3770
|
+
title?: string | undefined;
|
|
3771
|
+
detail?: string | undefined;
|
|
3772
|
+
source?: {
|
|
3773
|
+
pointer?: string | undefined;
|
|
3774
|
+
parameter?: string | undefined;
|
|
3775
|
+
} | undefined;
|
|
3776
|
+
}[];
|
|
3777
|
+
meta?: Record<string, unknown> | undefined;
|
|
3778
|
+
}>;
|
|
3779
|
+
};
|
|
3780
|
+
};
|
|
3418
3781
|
};
|
|
3419
3782
|
//# sourceMappingURL=documents.routes.d.ts.map
|