@deepintel-ltd/farmpro-contracts 1.5.0 → 1.5.2
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/documents.routes.d.ts +377 -56
- package/dist/routes/documents.routes.d.ts.map +1 -1
- package/dist/routes/documents.routes.js +16 -1
- package/dist/routes/field-observations.routes.d.ts +6 -6
- package/dist/routes/tasks.routes.d.ts +455 -65
- package/dist/routes/tasks.routes.d.ts.map +1 -1
- package/dist/schemas/documents.schemas.d.ts +67 -45
- package/dist/schemas/documents.schemas.d.ts.map +1 -1
- package/dist/schemas/documents.schemas.js +6 -5
- 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 +438 -62
- package/dist/schemas/tasks.schemas.d.ts.map +1 -1
- package/dist/schemas/tasks.schemas.js +17 -3
- package/package.json +1 -1
|
@@ -64,6 +64,7 @@ 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
|
+
fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
68
|
fileSize: z.ZodNullable<z.ZodNumber>;
|
|
68
69
|
uploadedDate: z.ZodString;
|
|
69
70
|
uploadedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -89,8 +90,8 @@ export declare const documentsRouter: {
|
|
|
89
90
|
name: string;
|
|
90
91
|
description: string | null;
|
|
91
92
|
farmId: string;
|
|
92
|
-
category: string | null;
|
|
93
93
|
fileUrl: string;
|
|
94
|
+
category: string | null;
|
|
94
95
|
fileSize: number | null;
|
|
95
96
|
uploadedDate: string;
|
|
96
97
|
uploadedBy: string | null;
|
|
@@ -98,6 +99,7 @@ export declare const documentsRouter: {
|
|
|
98
99
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
99
100
|
id: string;
|
|
100
101
|
} | null;
|
|
102
|
+
fileExtension?: string | null | undefined;
|
|
101
103
|
tags?: string[] | undefined;
|
|
102
104
|
}, {
|
|
103
105
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
@@ -106,8 +108,8 @@ export declare const documentsRouter: {
|
|
|
106
108
|
name: string;
|
|
107
109
|
description: string | null;
|
|
108
110
|
farmId: string;
|
|
109
|
-
category: string | null;
|
|
110
111
|
fileUrl: string;
|
|
112
|
+
category: string | null;
|
|
111
113
|
fileSize: number | null;
|
|
112
114
|
uploadedDate: string;
|
|
113
115
|
uploadedBy: string | null;
|
|
@@ -115,6 +117,7 @@ export declare const documentsRouter: {
|
|
|
115
117
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
116
118
|
id: string;
|
|
117
119
|
} | null;
|
|
120
|
+
fileExtension?: string | null | undefined;
|
|
118
121
|
tags?: string[] | undefined;
|
|
119
122
|
}>;
|
|
120
123
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -130,8 +133,8 @@ export declare const documentsRouter: {
|
|
|
130
133
|
name: string;
|
|
131
134
|
description: string | null;
|
|
132
135
|
farmId: string;
|
|
133
|
-
category: string | null;
|
|
134
136
|
fileUrl: string;
|
|
137
|
+
category: string | null;
|
|
135
138
|
fileSize: number | null;
|
|
136
139
|
uploadedDate: string;
|
|
137
140
|
uploadedBy: string | null;
|
|
@@ -139,6 +142,7 @@ export declare const documentsRouter: {
|
|
|
139
142
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
140
143
|
id: string;
|
|
141
144
|
} | null;
|
|
145
|
+
fileExtension?: string | null | undefined;
|
|
142
146
|
tags?: string[] | undefined;
|
|
143
147
|
};
|
|
144
148
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -154,8 +158,8 @@ export declare const documentsRouter: {
|
|
|
154
158
|
name: string;
|
|
155
159
|
description: string | null;
|
|
156
160
|
farmId: string;
|
|
157
|
-
category: string | null;
|
|
158
161
|
fileUrl: string;
|
|
162
|
+
category: string | null;
|
|
159
163
|
fileSize: number | null;
|
|
160
164
|
uploadedDate: string;
|
|
161
165
|
uploadedBy: string | null;
|
|
@@ -163,6 +167,7 @@ export declare const documentsRouter: {
|
|
|
163
167
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
164
168
|
id: string;
|
|
165
169
|
} | null;
|
|
170
|
+
fileExtension?: string | null | undefined;
|
|
166
171
|
tags?: string[] | undefined;
|
|
167
172
|
};
|
|
168
173
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -204,8 +209,8 @@ export declare const documentsRouter: {
|
|
|
204
209
|
name: string;
|
|
205
210
|
description: string | null;
|
|
206
211
|
farmId: string;
|
|
207
|
-
category: string | null;
|
|
208
212
|
fileUrl: string;
|
|
213
|
+
category: string | null;
|
|
209
214
|
fileSize: number | null;
|
|
210
215
|
uploadedDate: string;
|
|
211
216
|
uploadedBy: string | null;
|
|
@@ -213,6 +218,7 @@ export declare const documentsRouter: {
|
|
|
213
218
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
214
219
|
id: string;
|
|
215
220
|
} | null;
|
|
221
|
+
fileExtension?: string | null | undefined;
|
|
216
222
|
tags?: string[] | undefined;
|
|
217
223
|
};
|
|
218
224
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -240,8 +246,8 @@ export declare const documentsRouter: {
|
|
|
240
246
|
name: string;
|
|
241
247
|
description: string | null;
|
|
242
248
|
farmId: string;
|
|
243
|
-
category: string | null;
|
|
244
249
|
fileUrl: string;
|
|
250
|
+
category: string | null;
|
|
245
251
|
fileSize: number | null;
|
|
246
252
|
uploadedDate: string;
|
|
247
253
|
uploadedBy: string | null;
|
|
@@ -249,6 +255,7 @@ export declare const documentsRouter: {
|
|
|
249
255
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
250
256
|
id: string;
|
|
251
257
|
} | null;
|
|
258
|
+
fileExtension?: string | null | undefined;
|
|
252
259
|
tags?: string[] | undefined;
|
|
253
260
|
};
|
|
254
261
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -460,13 +467,13 @@ export declare const documentsRouter: {
|
|
|
460
467
|
description: "Upload a file and get back the file URL in JSON:API format";
|
|
461
468
|
method: "POST";
|
|
462
469
|
contentType: "multipart/form-data";
|
|
463
|
-
body: z.ZodObject<{
|
|
464
|
-
file: z.
|
|
470
|
+
body: z.ZodUnion<[z.ZodObject<{
|
|
471
|
+
file: z.ZodAny;
|
|
465
472
|
}, "strip", z.ZodTypeAny, {
|
|
466
|
-
file
|
|
473
|
+
file?: any;
|
|
467
474
|
}, {
|
|
468
|
-
file
|
|
469
|
-
}>;
|
|
475
|
+
file?: any;
|
|
476
|
+
}>, z.ZodUndefined]>;
|
|
470
477
|
path: "/farms/:farmId/documents/upload";
|
|
471
478
|
responses: {
|
|
472
479
|
200: z.ZodObject<{
|
|
@@ -481,14 +488,14 @@ export declare const documentsRouter: {
|
|
|
481
488
|
uploadedAt: z.ZodString;
|
|
482
489
|
}, "strip", z.ZodTypeAny, {
|
|
483
490
|
fileUrl: string;
|
|
484
|
-
fileSize: number;
|
|
485
491
|
fileName: string;
|
|
492
|
+
fileSize: number;
|
|
486
493
|
uploadedAt: string;
|
|
487
494
|
contentType?: string | undefined;
|
|
488
495
|
}, {
|
|
489
496
|
fileUrl: string;
|
|
490
|
-
fileSize: number;
|
|
491
497
|
fileName: string;
|
|
498
|
+
fileSize: number;
|
|
492
499
|
uploadedAt: string;
|
|
493
500
|
contentType?: string | undefined;
|
|
494
501
|
}>;
|
|
@@ -500,8 +507,8 @@ export declare const documentsRouter: {
|
|
|
500
507
|
id: string;
|
|
501
508
|
attributes: {
|
|
502
509
|
fileUrl: string;
|
|
503
|
-
fileSize: number;
|
|
504
510
|
fileName: string;
|
|
511
|
+
fileSize: number;
|
|
505
512
|
uploadedAt: string;
|
|
506
513
|
contentType?: string | undefined;
|
|
507
514
|
};
|
|
@@ -513,8 +520,8 @@ export declare const documentsRouter: {
|
|
|
513
520
|
id: string;
|
|
514
521
|
attributes: {
|
|
515
522
|
fileUrl: string;
|
|
516
|
-
fileSize: number;
|
|
517
523
|
fileName: string;
|
|
524
|
+
fileSize: number;
|
|
518
525
|
uploadedAt: string;
|
|
519
526
|
contentType?: string | undefined;
|
|
520
527
|
};
|
|
@@ -552,8 +559,8 @@ export declare const documentsRouter: {
|
|
|
552
559
|
id: string;
|
|
553
560
|
attributes: {
|
|
554
561
|
fileUrl: string;
|
|
555
|
-
fileSize: number;
|
|
556
562
|
fileName: string;
|
|
563
|
+
fileSize: number;
|
|
557
564
|
uploadedAt: string;
|
|
558
565
|
contentType?: string | undefined;
|
|
559
566
|
};
|
|
@@ -577,8 +584,8 @@ export declare const documentsRouter: {
|
|
|
577
584
|
id: string;
|
|
578
585
|
attributes: {
|
|
579
586
|
fileUrl: string;
|
|
580
|
-
fileSize: number;
|
|
581
587
|
fileName: string;
|
|
588
|
+
fileSize: number;
|
|
582
589
|
uploadedAt: string;
|
|
583
590
|
contentType?: string | undefined;
|
|
584
591
|
};
|
|
@@ -885,11 +892,11 @@ export declare const documentsRouter: {
|
|
|
885
892
|
method: "POST";
|
|
886
893
|
contentType: "multipart/form-data";
|
|
887
894
|
body: z.ZodObject<{
|
|
888
|
-
file: z.
|
|
895
|
+
file: z.ZodAny;
|
|
889
896
|
}, "strip", z.ZodTypeAny, {
|
|
890
|
-
file
|
|
897
|
+
file?: any;
|
|
891
898
|
}, {
|
|
892
|
-
file
|
|
899
|
+
file?: any;
|
|
893
900
|
}>;
|
|
894
901
|
path: "/farms/:farmId/documents/:id/upload";
|
|
895
902
|
responses: {
|
|
@@ -903,6 +910,7 @@ export declare const documentsRouter: {
|
|
|
903
910
|
type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
|
|
904
911
|
category: z.ZodNullable<z.ZodString>;
|
|
905
912
|
fileUrl: z.ZodString;
|
|
913
|
+
fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
906
914
|
fileSize: z.ZodNullable<z.ZodNumber>;
|
|
907
915
|
uploadedDate: z.ZodString;
|
|
908
916
|
uploadedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -928,8 +936,8 @@ export declare const documentsRouter: {
|
|
|
928
936
|
name: string;
|
|
929
937
|
description: string | null;
|
|
930
938
|
farmId: string;
|
|
931
|
-
category: string | null;
|
|
932
939
|
fileUrl: string;
|
|
940
|
+
category: string | null;
|
|
933
941
|
fileSize: number | null;
|
|
934
942
|
uploadedDate: string;
|
|
935
943
|
uploadedBy: string | null;
|
|
@@ -937,6 +945,7 @@ export declare const documentsRouter: {
|
|
|
937
945
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
938
946
|
id: string;
|
|
939
947
|
} | null;
|
|
948
|
+
fileExtension?: string | null | undefined;
|
|
940
949
|
tags?: string[] | undefined;
|
|
941
950
|
}, {
|
|
942
951
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
@@ -945,8 +954,8 @@ export declare const documentsRouter: {
|
|
|
945
954
|
name: string;
|
|
946
955
|
description: string | null;
|
|
947
956
|
farmId: string;
|
|
948
|
-
category: string | null;
|
|
949
957
|
fileUrl: string;
|
|
958
|
+
category: string | null;
|
|
950
959
|
fileSize: number | null;
|
|
951
960
|
uploadedDate: string;
|
|
952
961
|
uploadedBy: string | null;
|
|
@@ -954,6 +963,7 @@ export declare const documentsRouter: {
|
|
|
954
963
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
955
964
|
id: string;
|
|
956
965
|
} | null;
|
|
966
|
+
fileExtension?: string | null | undefined;
|
|
957
967
|
tags?: string[] | undefined;
|
|
958
968
|
}>;
|
|
959
969
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -969,8 +979,8 @@ export declare const documentsRouter: {
|
|
|
969
979
|
name: string;
|
|
970
980
|
description: string | null;
|
|
971
981
|
farmId: string;
|
|
972
|
-
category: string | null;
|
|
973
982
|
fileUrl: string;
|
|
983
|
+
category: string | null;
|
|
974
984
|
fileSize: number | null;
|
|
975
985
|
uploadedDate: string;
|
|
976
986
|
uploadedBy: string | null;
|
|
@@ -978,6 +988,7 @@ export declare const documentsRouter: {
|
|
|
978
988
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
979
989
|
id: string;
|
|
980
990
|
} | null;
|
|
991
|
+
fileExtension?: string | null | undefined;
|
|
981
992
|
tags?: string[] | undefined;
|
|
982
993
|
};
|
|
983
994
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -993,8 +1004,8 @@ export declare const documentsRouter: {
|
|
|
993
1004
|
name: string;
|
|
994
1005
|
description: string | null;
|
|
995
1006
|
farmId: string;
|
|
996
|
-
category: string | null;
|
|
997
1007
|
fileUrl: string;
|
|
1008
|
+
category: string | null;
|
|
998
1009
|
fileSize: number | null;
|
|
999
1010
|
uploadedDate: string;
|
|
1000
1011
|
uploadedBy: string | null;
|
|
@@ -1002,6 +1013,7 @@ export declare const documentsRouter: {
|
|
|
1002
1013
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1003
1014
|
id: string;
|
|
1004
1015
|
} | null;
|
|
1016
|
+
fileExtension?: string | null | undefined;
|
|
1005
1017
|
tags?: string[] | undefined;
|
|
1006
1018
|
};
|
|
1007
1019
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1043,8 +1055,8 @@ export declare const documentsRouter: {
|
|
|
1043
1055
|
name: string;
|
|
1044
1056
|
description: string | null;
|
|
1045
1057
|
farmId: string;
|
|
1046
|
-
category: string | null;
|
|
1047
1058
|
fileUrl: string;
|
|
1059
|
+
category: string | null;
|
|
1048
1060
|
fileSize: number | null;
|
|
1049
1061
|
uploadedDate: string;
|
|
1050
1062
|
uploadedBy: string | null;
|
|
@@ -1052,6 +1064,7 @@ export declare const documentsRouter: {
|
|
|
1052
1064
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1053
1065
|
id: string;
|
|
1054
1066
|
} | null;
|
|
1067
|
+
fileExtension?: string | null | undefined;
|
|
1055
1068
|
tags?: string[] | undefined;
|
|
1056
1069
|
};
|
|
1057
1070
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1079,8 +1092,8 @@ export declare const documentsRouter: {
|
|
|
1079
1092
|
name: string;
|
|
1080
1093
|
description: string | null;
|
|
1081
1094
|
farmId: string;
|
|
1082
|
-
category: string | null;
|
|
1083
1095
|
fileUrl: string;
|
|
1096
|
+
category: string | null;
|
|
1084
1097
|
fileSize: number | null;
|
|
1085
1098
|
uploadedDate: string;
|
|
1086
1099
|
uploadedBy: string | null;
|
|
@@ -1088,6 +1101,7 @@ export declare const documentsRouter: {
|
|
|
1088
1101
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1089
1102
|
id: string;
|
|
1090
1103
|
} | null;
|
|
1104
|
+
fileExtension?: string | null | undefined;
|
|
1091
1105
|
tags?: string[] | undefined;
|
|
1092
1106
|
};
|
|
1093
1107
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1413,8 +1427,8 @@ export declare const documentsRouter: {
|
|
|
1413
1427
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
1414
1428
|
name: string;
|
|
1415
1429
|
description?: string | undefined;
|
|
1416
|
-
category?: string | undefined;
|
|
1417
1430
|
fileUrl?: string | undefined;
|
|
1431
|
+
category?: string | undefined;
|
|
1418
1432
|
fileSize?: number | undefined;
|
|
1419
1433
|
relatedTo?: {
|
|
1420
1434
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
@@ -1425,8 +1439,8 @@ export declare const documentsRouter: {
|
|
|
1425
1439
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
1426
1440
|
name: string;
|
|
1427
1441
|
description?: string | undefined;
|
|
1428
|
-
category?: string | undefined;
|
|
1429
1442
|
fileUrl?: string | undefined;
|
|
1443
|
+
category?: string | undefined;
|
|
1430
1444
|
fileSize?: number | undefined;
|
|
1431
1445
|
relatedTo?: {
|
|
1432
1446
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
@@ -1440,8 +1454,8 @@ export declare const documentsRouter: {
|
|
|
1440
1454
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
1441
1455
|
name: string;
|
|
1442
1456
|
description?: string | undefined;
|
|
1443
|
-
category?: string | undefined;
|
|
1444
1457
|
fileUrl?: string | undefined;
|
|
1458
|
+
category?: string | undefined;
|
|
1445
1459
|
fileSize?: number | undefined;
|
|
1446
1460
|
relatedTo?: {
|
|
1447
1461
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
@@ -1455,8 +1469,8 @@ export declare const documentsRouter: {
|
|
|
1455
1469
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
1456
1470
|
name: string;
|
|
1457
1471
|
description?: string | undefined;
|
|
1458
|
-
category?: string | undefined;
|
|
1459
1472
|
fileUrl?: string | undefined;
|
|
1473
|
+
category?: string | undefined;
|
|
1460
1474
|
fileSize?: number | undefined;
|
|
1461
1475
|
relatedTo?: {
|
|
1462
1476
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
@@ -1472,8 +1486,8 @@ export declare const documentsRouter: {
|
|
|
1472
1486
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
1473
1487
|
name: string;
|
|
1474
1488
|
description?: string | undefined;
|
|
1475
|
-
category?: string | undefined;
|
|
1476
1489
|
fileUrl?: string | undefined;
|
|
1490
|
+
category?: string | undefined;
|
|
1477
1491
|
fileSize?: number | undefined;
|
|
1478
1492
|
relatedTo?: {
|
|
1479
1493
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
@@ -1489,8 +1503,8 @@ export declare const documentsRouter: {
|
|
|
1489
1503
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
1490
1504
|
name: string;
|
|
1491
1505
|
description?: string | undefined;
|
|
1492
|
-
category?: string | undefined;
|
|
1493
1506
|
fileUrl?: string | undefined;
|
|
1507
|
+
category?: string | undefined;
|
|
1494
1508
|
fileSize?: number | undefined;
|
|
1495
1509
|
relatedTo?: {
|
|
1496
1510
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
@@ -1512,6 +1526,7 @@ export declare const documentsRouter: {
|
|
|
1512
1526
|
type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
|
|
1513
1527
|
category: z.ZodNullable<z.ZodString>;
|
|
1514
1528
|
fileUrl: z.ZodString;
|
|
1529
|
+
fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1515
1530
|
fileSize: z.ZodNullable<z.ZodNumber>;
|
|
1516
1531
|
uploadedDate: z.ZodString;
|
|
1517
1532
|
uploadedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -1537,8 +1552,8 @@ export declare const documentsRouter: {
|
|
|
1537
1552
|
name: string;
|
|
1538
1553
|
description: string | null;
|
|
1539
1554
|
farmId: string;
|
|
1540
|
-
category: string | null;
|
|
1541
1555
|
fileUrl: string;
|
|
1556
|
+
category: string | null;
|
|
1542
1557
|
fileSize: number | null;
|
|
1543
1558
|
uploadedDate: string;
|
|
1544
1559
|
uploadedBy: string | null;
|
|
@@ -1546,6 +1561,7 @@ export declare const documentsRouter: {
|
|
|
1546
1561
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1547
1562
|
id: string;
|
|
1548
1563
|
} | null;
|
|
1564
|
+
fileExtension?: string | null | undefined;
|
|
1549
1565
|
tags?: string[] | undefined;
|
|
1550
1566
|
}, {
|
|
1551
1567
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
@@ -1554,8 +1570,8 @@ export declare const documentsRouter: {
|
|
|
1554
1570
|
name: string;
|
|
1555
1571
|
description: string | null;
|
|
1556
1572
|
farmId: string;
|
|
1557
|
-
category: string | null;
|
|
1558
1573
|
fileUrl: string;
|
|
1574
|
+
category: string | null;
|
|
1559
1575
|
fileSize: number | null;
|
|
1560
1576
|
uploadedDate: string;
|
|
1561
1577
|
uploadedBy: string | null;
|
|
@@ -1563,6 +1579,7 @@ export declare const documentsRouter: {
|
|
|
1563
1579
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1564
1580
|
id: string;
|
|
1565
1581
|
} | null;
|
|
1582
|
+
fileExtension?: string | null | undefined;
|
|
1566
1583
|
tags?: string[] | undefined;
|
|
1567
1584
|
}>;
|
|
1568
1585
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1578,8 +1595,8 @@ export declare const documentsRouter: {
|
|
|
1578
1595
|
name: string;
|
|
1579
1596
|
description: string | null;
|
|
1580
1597
|
farmId: string;
|
|
1581
|
-
category: string | null;
|
|
1582
1598
|
fileUrl: string;
|
|
1599
|
+
category: string | null;
|
|
1583
1600
|
fileSize: number | null;
|
|
1584
1601
|
uploadedDate: string;
|
|
1585
1602
|
uploadedBy: string | null;
|
|
@@ -1587,6 +1604,7 @@ export declare const documentsRouter: {
|
|
|
1587
1604
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1588
1605
|
id: string;
|
|
1589
1606
|
} | null;
|
|
1607
|
+
fileExtension?: string | null | undefined;
|
|
1590
1608
|
tags?: string[] | undefined;
|
|
1591
1609
|
};
|
|
1592
1610
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1602,8 +1620,8 @@ export declare const documentsRouter: {
|
|
|
1602
1620
|
name: string;
|
|
1603
1621
|
description: string | null;
|
|
1604
1622
|
farmId: string;
|
|
1605
|
-
category: string | null;
|
|
1606
1623
|
fileUrl: string;
|
|
1624
|
+
category: string | null;
|
|
1607
1625
|
fileSize: number | null;
|
|
1608
1626
|
uploadedDate: string;
|
|
1609
1627
|
uploadedBy: string | null;
|
|
@@ -1611,6 +1629,7 @@ export declare const documentsRouter: {
|
|
|
1611
1629
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1612
1630
|
id: string;
|
|
1613
1631
|
} | null;
|
|
1632
|
+
fileExtension?: string | null | undefined;
|
|
1614
1633
|
tags?: string[] | undefined;
|
|
1615
1634
|
};
|
|
1616
1635
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1652,8 +1671,8 @@ export declare const documentsRouter: {
|
|
|
1652
1671
|
name: string;
|
|
1653
1672
|
description: string | null;
|
|
1654
1673
|
farmId: string;
|
|
1655
|
-
category: string | null;
|
|
1656
1674
|
fileUrl: string;
|
|
1675
|
+
category: string | null;
|
|
1657
1676
|
fileSize: number | null;
|
|
1658
1677
|
uploadedDate: string;
|
|
1659
1678
|
uploadedBy: string | null;
|
|
@@ -1661,6 +1680,7 @@ export declare const documentsRouter: {
|
|
|
1661
1680
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1662
1681
|
id: string;
|
|
1663
1682
|
} | null;
|
|
1683
|
+
fileExtension?: string | null | undefined;
|
|
1664
1684
|
tags?: string[] | undefined;
|
|
1665
1685
|
};
|
|
1666
1686
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1688,8 +1708,8 @@ export declare const documentsRouter: {
|
|
|
1688
1708
|
name: string;
|
|
1689
1709
|
description: string | null;
|
|
1690
1710
|
farmId: string;
|
|
1691
|
-
category: string | null;
|
|
1692
1711
|
fileUrl: string;
|
|
1712
|
+
category: string | null;
|
|
1693
1713
|
fileSize: number | null;
|
|
1694
1714
|
uploadedDate: string;
|
|
1695
1715
|
uploadedBy: string | null;
|
|
@@ -1697,6 +1717,7 @@ export declare const documentsRouter: {
|
|
|
1697
1717
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
1698
1718
|
id: string;
|
|
1699
1719
|
} | null;
|
|
1720
|
+
fileExtension?: string | null | undefined;
|
|
1700
1721
|
tags?: string[] | undefined;
|
|
1701
1722
|
};
|
|
1702
1723
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2109,6 +2130,7 @@ export declare const documentsRouter: {
|
|
|
2109
2130
|
type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
|
|
2110
2131
|
category: z.ZodNullable<z.ZodString>;
|
|
2111
2132
|
fileUrl: z.ZodString;
|
|
2133
|
+
fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2112
2134
|
fileSize: z.ZodNullable<z.ZodNumber>;
|
|
2113
2135
|
uploadedDate: z.ZodString;
|
|
2114
2136
|
uploadedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -2134,8 +2156,8 @@ export declare const documentsRouter: {
|
|
|
2134
2156
|
name: string;
|
|
2135
2157
|
description: string | null;
|
|
2136
2158
|
farmId: string;
|
|
2137
|
-
category: string | null;
|
|
2138
2159
|
fileUrl: string;
|
|
2160
|
+
category: string | null;
|
|
2139
2161
|
fileSize: number | null;
|
|
2140
2162
|
uploadedDate: string;
|
|
2141
2163
|
uploadedBy: string | null;
|
|
@@ -2143,6 +2165,7 @@ export declare const documentsRouter: {
|
|
|
2143
2165
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2144
2166
|
id: string;
|
|
2145
2167
|
} | null;
|
|
2168
|
+
fileExtension?: string | null | undefined;
|
|
2146
2169
|
tags?: string[] | undefined;
|
|
2147
2170
|
}, {
|
|
2148
2171
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
@@ -2151,8 +2174,8 @@ export declare const documentsRouter: {
|
|
|
2151
2174
|
name: string;
|
|
2152
2175
|
description: string | null;
|
|
2153
2176
|
farmId: string;
|
|
2154
|
-
category: string | null;
|
|
2155
2177
|
fileUrl: string;
|
|
2178
|
+
category: string | null;
|
|
2156
2179
|
fileSize: number | null;
|
|
2157
2180
|
uploadedDate: string;
|
|
2158
2181
|
uploadedBy: string | null;
|
|
@@ -2160,6 +2183,7 @@ export declare const documentsRouter: {
|
|
|
2160
2183
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2161
2184
|
id: string;
|
|
2162
2185
|
} | null;
|
|
2186
|
+
fileExtension?: string | null | undefined;
|
|
2163
2187
|
tags?: string[] | undefined;
|
|
2164
2188
|
}>;
|
|
2165
2189
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -2175,8 +2199,8 @@ export declare const documentsRouter: {
|
|
|
2175
2199
|
name: string;
|
|
2176
2200
|
description: string | null;
|
|
2177
2201
|
farmId: string;
|
|
2178
|
-
category: string | null;
|
|
2179
2202
|
fileUrl: string;
|
|
2203
|
+
category: string | null;
|
|
2180
2204
|
fileSize: number | null;
|
|
2181
2205
|
uploadedDate: string;
|
|
2182
2206
|
uploadedBy: string | null;
|
|
@@ -2184,6 +2208,7 @@ export declare const documentsRouter: {
|
|
|
2184
2208
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2185
2209
|
id: string;
|
|
2186
2210
|
} | null;
|
|
2211
|
+
fileExtension?: string | null | undefined;
|
|
2187
2212
|
tags?: string[] | undefined;
|
|
2188
2213
|
};
|
|
2189
2214
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2199,8 +2224,8 @@ export declare const documentsRouter: {
|
|
|
2199
2224
|
name: string;
|
|
2200
2225
|
description: string | null;
|
|
2201
2226
|
farmId: string;
|
|
2202
|
-
category: string | null;
|
|
2203
2227
|
fileUrl: string;
|
|
2228
|
+
category: string | null;
|
|
2204
2229
|
fileSize: number | null;
|
|
2205
2230
|
uploadedDate: string;
|
|
2206
2231
|
uploadedBy: string | null;
|
|
@@ -2208,6 +2233,7 @@ export declare const documentsRouter: {
|
|
|
2208
2233
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2209
2234
|
id: string;
|
|
2210
2235
|
} | null;
|
|
2236
|
+
fileExtension?: string | null | undefined;
|
|
2211
2237
|
tags?: string[] | undefined;
|
|
2212
2238
|
};
|
|
2213
2239
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2249,8 +2275,8 @@ export declare const documentsRouter: {
|
|
|
2249
2275
|
name: string;
|
|
2250
2276
|
description: string | null;
|
|
2251
2277
|
farmId: string;
|
|
2252
|
-
category: string | null;
|
|
2253
2278
|
fileUrl: string;
|
|
2279
|
+
category: string | null;
|
|
2254
2280
|
fileSize: number | null;
|
|
2255
2281
|
uploadedDate: string;
|
|
2256
2282
|
uploadedBy: string | null;
|
|
@@ -2258,6 +2284,7 @@ export declare const documentsRouter: {
|
|
|
2258
2284
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2259
2285
|
id: string;
|
|
2260
2286
|
} | null;
|
|
2287
|
+
fileExtension?: string | null | undefined;
|
|
2261
2288
|
tags?: string[] | undefined;
|
|
2262
2289
|
};
|
|
2263
2290
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2285,8 +2312,8 @@ export declare const documentsRouter: {
|
|
|
2285
2312
|
name: string;
|
|
2286
2313
|
description: string | null;
|
|
2287
2314
|
farmId: string;
|
|
2288
|
-
category: string | null;
|
|
2289
2315
|
fileUrl: string;
|
|
2316
|
+
category: string | null;
|
|
2290
2317
|
fileSize: number | null;
|
|
2291
2318
|
uploadedDate: string;
|
|
2292
2319
|
uploadedBy: string | null;
|
|
@@ -2294,6 +2321,7 @@ export declare const documentsRouter: {
|
|
|
2294
2321
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2295
2322
|
id: string;
|
|
2296
2323
|
} | null;
|
|
2324
|
+
fileExtension?: string | null | undefined;
|
|
2297
2325
|
tags?: string[] | undefined;
|
|
2298
2326
|
};
|
|
2299
2327
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2533,8 +2561,8 @@ export declare const documentsRouter: {
|
|
|
2533
2561
|
type?: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice" | undefined;
|
|
2534
2562
|
name?: string | undefined;
|
|
2535
2563
|
description?: string | null | undefined;
|
|
2536
|
-
category?: string | null | undefined;
|
|
2537
2564
|
fileUrl?: string | undefined;
|
|
2565
|
+
category?: string | null | undefined;
|
|
2538
2566
|
fileSize?: number | undefined;
|
|
2539
2567
|
relatedTo?: {
|
|
2540
2568
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
@@ -2545,8 +2573,8 @@ export declare const documentsRouter: {
|
|
|
2545
2573
|
type?: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice" | undefined;
|
|
2546
2574
|
name?: string | undefined;
|
|
2547
2575
|
description?: string | null | undefined;
|
|
2548
|
-
category?: string | null | undefined;
|
|
2549
2576
|
fileUrl?: string | undefined;
|
|
2577
|
+
category?: string | null | undefined;
|
|
2550
2578
|
fileSize?: number | undefined;
|
|
2551
2579
|
relatedTo?: {
|
|
2552
2580
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
@@ -2561,8 +2589,8 @@ export declare const documentsRouter: {
|
|
|
2561
2589
|
type?: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice" | undefined;
|
|
2562
2590
|
name?: string | undefined;
|
|
2563
2591
|
description?: string | null | undefined;
|
|
2564
|
-
category?: string | null | undefined;
|
|
2565
2592
|
fileUrl?: string | undefined;
|
|
2593
|
+
category?: string | null | undefined;
|
|
2566
2594
|
fileSize?: number | undefined;
|
|
2567
2595
|
relatedTo?: {
|
|
2568
2596
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
@@ -2577,8 +2605,8 @@ export declare const documentsRouter: {
|
|
|
2577
2605
|
type?: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice" | undefined;
|
|
2578
2606
|
name?: string | undefined;
|
|
2579
2607
|
description?: string | null | undefined;
|
|
2580
|
-
category?: string | null | undefined;
|
|
2581
2608
|
fileUrl?: string | undefined;
|
|
2609
|
+
category?: string | null | undefined;
|
|
2582
2610
|
fileSize?: number | undefined;
|
|
2583
2611
|
relatedTo?: {
|
|
2584
2612
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
@@ -2595,8 +2623,8 @@ export declare const documentsRouter: {
|
|
|
2595
2623
|
type?: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice" | undefined;
|
|
2596
2624
|
name?: string | undefined;
|
|
2597
2625
|
description?: string | null | undefined;
|
|
2598
|
-
category?: string | null | undefined;
|
|
2599
2626
|
fileUrl?: string | undefined;
|
|
2627
|
+
category?: string | null | undefined;
|
|
2600
2628
|
fileSize?: number | undefined;
|
|
2601
2629
|
relatedTo?: {
|
|
2602
2630
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
@@ -2613,8 +2641,8 @@ export declare const documentsRouter: {
|
|
|
2613
2641
|
type?: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice" | undefined;
|
|
2614
2642
|
name?: string | undefined;
|
|
2615
2643
|
description?: string | null | undefined;
|
|
2616
|
-
category?: string | null | undefined;
|
|
2617
2644
|
fileUrl?: string | undefined;
|
|
2645
|
+
category?: string | null | undefined;
|
|
2618
2646
|
fileSize?: number | undefined;
|
|
2619
2647
|
relatedTo?: {
|
|
2620
2648
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
@@ -2636,6 +2664,7 @@ export declare const documentsRouter: {
|
|
|
2636
2664
|
type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
|
|
2637
2665
|
category: z.ZodNullable<z.ZodString>;
|
|
2638
2666
|
fileUrl: z.ZodString;
|
|
2667
|
+
fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2639
2668
|
fileSize: z.ZodNullable<z.ZodNumber>;
|
|
2640
2669
|
uploadedDate: z.ZodString;
|
|
2641
2670
|
uploadedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -2661,8 +2690,8 @@ export declare const documentsRouter: {
|
|
|
2661
2690
|
name: string;
|
|
2662
2691
|
description: string | null;
|
|
2663
2692
|
farmId: string;
|
|
2664
|
-
category: string | null;
|
|
2665
2693
|
fileUrl: string;
|
|
2694
|
+
category: string | null;
|
|
2666
2695
|
fileSize: number | null;
|
|
2667
2696
|
uploadedDate: string;
|
|
2668
2697
|
uploadedBy: string | null;
|
|
@@ -2670,6 +2699,7 @@ export declare const documentsRouter: {
|
|
|
2670
2699
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2671
2700
|
id: string;
|
|
2672
2701
|
} | null;
|
|
2702
|
+
fileExtension?: string | null | undefined;
|
|
2673
2703
|
tags?: string[] | undefined;
|
|
2674
2704
|
}, {
|
|
2675
2705
|
type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
|
|
@@ -2678,8 +2708,8 @@ export declare const documentsRouter: {
|
|
|
2678
2708
|
name: string;
|
|
2679
2709
|
description: string | null;
|
|
2680
2710
|
farmId: string;
|
|
2681
|
-
category: string | null;
|
|
2682
2711
|
fileUrl: string;
|
|
2712
|
+
category: string | null;
|
|
2683
2713
|
fileSize: number | null;
|
|
2684
2714
|
uploadedDate: string;
|
|
2685
2715
|
uploadedBy: string | null;
|
|
@@ -2687,6 +2717,7 @@ export declare const documentsRouter: {
|
|
|
2687
2717
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2688
2718
|
id: string;
|
|
2689
2719
|
} | null;
|
|
2720
|
+
fileExtension?: string | null | undefined;
|
|
2690
2721
|
tags?: string[] | undefined;
|
|
2691
2722
|
}>;
|
|
2692
2723
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -2702,8 +2733,8 @@ export declare const documentsRouter: {
|
|
|
2702
2733
|
name: string;
|
|
2703
2734
|
description: string | null;
|
|
2704
2735
|
farmId: string;
|
|
2705
|
-
category: string | null;
|
|
2706
2736
|
fileUrl: string;
|
|
2737
|
+
category: string | null;
|
|
2707
2738
|
fileSize: number | null;
|
|
2708
2739
|
uploadedDate: string;
|
|
2709
2740
|
uploadedBy: string | null;
|
|
@@ -2711,6 +2742,7 @@ export declare const documentsRouter: {
|
|
|
2711
2742
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2712
2743
|
id: string;
|
|
2713
2744
|
} | null;
|
|
2745
|
+
fileExtension?: string | null | undefined;
|
|
2714
2746
|
tags?: string[] | undefined;
|
|
2715
2747
|
};
|
|
2716
2748
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2726,8 +2758,8 @@ export declare const documentsRouter: {
|
|
|
2726
2758
|
name: string;
|
|
2727
2759
|
description: string | null;
|
|
2728
2760
|
farmId: string;
|
|
2729
|
-
category: string | null;
|
|
2730
2761
|
fileUrl: string;
|
|
2762
|
+
category: string | null;
|
|
2731
2763
|
fileSize: number | null;
|
|
2732
2764
|
uploadedDate: string;
|
|
2733
2765
|
uploadedBy: string | null;
|
|
@@ -2735,6 +2767,7 @@ export declare const documentsRouter: {
|
|
|
2735
2767
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2736
2768
|
id: string;
|
|
2737
2769
|
} | null;
|
|
2770
|
+
fileExtension?: string | null | undefined;
|
|
2738
2771
|
tags?: string[] | undefined;
|
|
2739
2772
|
};
|
|
2740
2773
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2776,8 +2809,8 @@ export declare const documentsRouter: {
|
|
|
2776
2809
|
name: string;
|
|
2777
2810
|
description: string | null;
|
|
2778
2811
|
farmId: string;
|
|
2779
|
-
category: string | null;
|
|
2780
2812
|
fileUrl: string;
|
|
2813
|
+
category: string | null;
|
|
2781
2814
|
fileSize: number | null;
|
|
2782
2815
|
uploadedDate: string;
|
|
2783
2816
|
uploadedBy: string | null;
|
|
@@ -2785,6 +2818,7 @@ export declare const documentsRouter: {
|
|
|
2785
2818
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2786
2819
|
id: string;
|
|
2787
2820
|
} | null;
|
|
2821
|
+
fileExtension?: string | null | undefined;
|
|
2788
2822
|
tags?: string[] | undefined;
|
|
2789
2823
|
};
|
|
2790
2824
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2812,8 +2846,8 @@ export declare const documentsRouter: {
|
|
|
2812
2846
|
name: string;
|
|
2813
2847
|
description: string | null;
|
|
2814
2848
|
farmId: string;
|
|
2815
|
-
category: string | null;
|
|
2816
2849
|
fileUrl: string;
|
|
2850
|
+
category: string | null;
|
|
2817
2851
|
fileSize: number | null;
|
|
2818
2852
|
uploadedDate: string;
|
|
2819
2853
|
uploadedBy: string | null;
|
|
@@ -2821,6 +2855,7 @@ export declare const documentsRouter: {
|
|
|
2821
2855
|
type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
|
|
2822
2856
|
id: string;
|
|
2823
2857
|
} | null;
|
|
2858
|
+
fileExtension?: string | null | undefined;
|
|
2824
2859
|
tags?: string[] | undefined;
|
|
2825
2860
|
};
|
|
2826
2861
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -3415,5 +3450,291 @@ export declare const documentsRouter: {
|
|
|
3415
3450
|
}>;
|
|
3416
3451
|
};
|
|
3417
3452
|
};
|
|
3453
|
+
viewDocument: {
|
|
3454
|
+
pathParams: z.ZodObject<{
|
|
3455
|
+
docId: z.ZodString;
|
|
3456
|
+
}, "strip", z.ZodTypeAny, {
|
|
3457
|
+
docId: string;
|
|
3458
|
+
}, {
|
|
3459
|
+
docId: string;
|
|
3460
|
+
}>;
|
|
3461
|
+
summary: "View document file";
|
|
3462
|
+
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.";
|
|
3463
|
+
method: "GET";
|
|
3464
|
+
path: "/documents/view/:docId";
|
|
3465
|
+
responses: {
|
|
3466
|
+
200: z.ZodAny;
|
|
3467
|
+
404: z.ZodObject<{
|
|
3468
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
3469
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3470
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
3471
|
+
about: z.ZodOptional<z.ZodString>;
|
|
3472
|
+
}, "strip", z.ZodTypeAny, {
|
|
3473
|
+
about?: string | undefined;
|
|
3474
|
+
}, {
|
|
3475
|
+
about?: string | undefined;
|
|
3476
|
+
}>>;
|
|
3477
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3478
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3479
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3480
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3481
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
3482
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
3483
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
3484
|
+
}, "strip", z.ZodTypeAny, {
|
|
3485
|
+
pointer?: string | undefined;
|
|
3486
|
+
parameter?: string | undefined;
|
|
3487
|
+
}, {
|
|
3488
|
+
pointer?: string | undefined;
|
|
3489
|
+
parameter?: string | undefined;
|
|
3490
|
+
}>>;
|
|
3491
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3492
|
+
}, "strip", z.ZodTypeAny, {
|
|
3493
|
+
status?: string | undefined;
|
|
3494
|
+
code?: string | undefined;
|
|
3495
|
+
id?: string | undefined;
|
|
3496
|
+
links?: {
|
|
3497
|
+
about?: string | undefined;
|
|
3498
|
+
} | undefined;
|
|
3499
|
+
meta?: Record<string, unknown> | undefined;
|
|
3500
|
+
title?: string | undefined;
|
|
3501
|
+
detail?: string | undefined;
|
|
3502
|
+
source?: {
|
|
3503
|
+
pointer?: string | undefined;
|
|
3504
|
+
parameter?: string | undefined;
|
|
3505
|
+
} | undefined;
|
|
3506
|
+
}, {
|
|
3507
|
+
status?: string | undefined;
|
|
3508
|
+
code?: string | undefined;
|
|
3509
|
+
id?: string | undefined;
|
|
3510
|
+
links?: {
|
|
3511
|
+
about?: string | undefined;
|
|
3512
|
+
} | undefined;
|
|
3513
|
+
meta?: Record<string, unknown> | undefined;
|
|
3514
|
+
title?: string | undefined;
|
|
3515
|
+
detail?: string | undefined;
|
|
3516
|
+
source?: {
|
|
3517
|
+
pointer?: string | undefined;
|
|
3518
|
+
parameter?: string | undefined;
|
|
3519
|
+
} | undefined;
|
|
3520
|
+
}>, "many">;
|
|
3521
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3522
|
+
}, "strip", z.ZodTypeAny, {
|
|
3523
|
+
errors: {
|
|
3524
|
+
status?: string | undefined;
|
|
3525
|
+
code?: string | undefined;
|
|
3526
|
+
id?: string | undefined;
|
|
3527
|
+
links?: {
|
|
3528
|
+
about?: string | undefined;
|
|
3529
|
+
} | undefined;
|
|
3530
|
+
meta?: Record<string, unknown> | undefined;
|
|
3531
|
+
title?: string | undefined;
|
|
3532
|
+
detail?: string | undefined;
|
|
3533
|
+
source?: {
|
|
3534
|
+
pointer?: string | undefined;
|
|
3535
|
+
parameter?: string | undefined;
|
|
3536
|
+
} | undefined;
|
|
3537
|
+
}[];
|
|
3538
|
+
meta?: Record<string, unknown> | undefined;
|
|
3539
|
+
}, {
|
|
3540
|
+
errors: {
|
|
3541
|
+
status?: string | undefined;
|
|
3542
|
+
code?: string | undefined;
|
|
3543
|
+
id?: string | undefined;
|
|
3544
|
+
links?: {
|
|
3545
|
+
about?: string | undefined;
|
|
3546
|
+
} | undefined;
|
|
3547
|
+
meta?: Record<string, unknown> | undefined;
|
|
3548
|
+
title?: string | undefined;
|
|
3549
|
+
detail?: string | undefined;
|
|
3550
|
+
source?: {
|
|
3551
|
+
pointer?: string | undefined;
|
|
3552
|
+
parameter?: string | undefined;
|
|
3553
|
+
} | undefined;
|
|
3554
|
+
}[];
|
|
3555
|
+
meta?: Record<string, unknown> | undefined;
|
|
3556
|
+
}>;
|
|
3557
|
+
401: z.ZodObject<{
|
|
3558
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
3559
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3560
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
3561
|
+
about: z.ZodOptional<z.ZodString>;
|
|
3562
|
+
}, "strip", z.ZodTypeAny, {
|
|
3563
|
+
about?: string | undefined;
|
|
3564
|
+
}, {
|
|
3565
|
+
about?: string | undefined;
|
|
3566
|
+
}>>;
|
|
3567
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3568
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3569
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3570
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3571
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
3572
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
3573
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
3574
|
+
}, "strip", z.ZodTypeAny, {
|
|
3575
|
+
pointer?: string | undefined;
|
|
3576
|
+
parameter?: string | undefined;
|
|
3577
|
+
}, {
|
|
3578
|
+
pointer?: string | undefined;
|
|
3579
|
+
parameter?: string | undefined;
|
|
3580
|
+
}>>;
|
|
3581
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3582
|
+
}, "strip", z.ZodTypeAny, {
|
|
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
|
+
status?: string | undefined;
|
|
3598
|
+
code?: string | undefined;
|
|
3599
|
+
id?: string | undefined;
|
|
3600
|
+
links?: {
|
|
3601
|
+
about?: string | undefined;
|
|
3602
|
+
} | undefined;
|
|
3603
|
+
meta?: Record<string, unknown> | undefined;
|
|
3604
|
+
title?: string | undefined;
|
|
3605
|
+
detail?: string | undefined;
|
|
3606
|
+
source?: {
|
|
3607
|
+
pointer?: string | undefined;
|
|
3608
|
+
parameter?: string | undefined;
|
|
3609
|
+
} | undefined;
|
|
3610
|
+
}>, "many">;
|
|
3611
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3612
|
+
}, "strip", z.ZodTypeAny, {
|
|
3613
|
+
errors: {
|
|
3614
|
+
status?: string | undefined;
|
|
3615
|
+
code?: string | undefined;
|
|
3616
|
+
id?: string | undefined;
|
|
3617
|
+
links?: {
|
|
3618
|
+
about?: string | undefined;
|
|
3619
|
+
} | undefined;
|
|
3620
|
+
meta?: Record<string, unknown> | undefined;
|
|
3621
|
+
title?: string | undefined;
|
|
3622
|
+
detail?: string | undefined;
|
|
3623
|
+
source?: {
|
|
3624
|
+
pointer?: string | undefined;
|
|
3625
|
+
parameter?: string | undefined;
|
|
3626
|
+
} | undefined;
|
|
3627
|
+
}[];
|
|
3628
|
+
meta?: Record<string, unknown> | undefined;
|
|
3629
|
+
}, {
|
|
3630
|
+
errors: {
|
|
3631
|
+
status?: string | undefined;
|
|
3632
|
+
code?: string | undefined;
|
|
3633
|
+
id?: string | undefined;
|
|
3634
|
+
links?: {
|
|
3635
|
+
about?: string | undefined;
|
|
3636
|
+
} | undefined;
|
|
3637
|
+
meta?: Record<string, unknown> | undefined;
|
|
3638
|
+
title?: string | undefined;
|
|
3639
|
+
detail?: string | undefined;
|
|
3640
|
+
source?: {
|
|
3641
|
+
pointer?: string | undefined;
|
|
3642
|
+
parameter?: string | undefined;
|
|
3643
|
+
} | undefined;
|
|
3644
|
+
}[];
|
|
3645
|
+
meta?: Record<string, unknown> | undefined;
|
|
3646
|
+
}>;
|
|
3647
|
+
403: z.ZodObject<{
|
|
3648
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
3649
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3650
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
3651
|
+
about: z.ZodOptional<z.ZodString>;
|
|
3652
|
+
}, "strip", z.ZodTypeAny, {
|
|
3653
|
+
about?: string | undefined;
|
|
3654
|
+
}, {
|
|
3655
|
+
about?: string | undefined;
|
|
3656
|
+
}>>;
|
|
3657
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3658
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3659
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3660
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3661
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
3662
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
3663
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
3664
|
+
}, "strip", z.ZodTypeAny, {
|
|
3665
|
+
pointer?: string | undefined;
|
|
3666
|
+
parameter?: string | undefined;
|
|
3667
|
+
}, {
|
|
3668
|
+
pointer?: string | undefined;
|
|
3669
|
+
parameter?: string | undefined;
|
|
3670
|
+
}>>;
|
|
3671
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3672
|
+
}, "strip", z.ZodTypeAny, {
|
|
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
|
+
status?: string | undefined;
|
|
3688
|
+
code?: string | undefined;
|
|
3689
|
+
id?: string | undefined;
|
|
3690
|
+
links?: {
|
|
3691
|
+
about?: string | undefined;
|
|
3692
|
+
} | undefined;
|
|
3693
|
+
meta?: Record<string, unknown> | undefined;
|
|
3694
|
+
title?: string | undefined;
|
|
3695
|
+
detail?: string | undefined;
|
|
3696
|
+
source?: {
|
|
3697
|
+
pointer?: string | undefined;
|
|
3698
|
+
parameter?: string | undefined;
|
|
3699
|
+
} | undefined;
|
|
3700
|
+
}>, "many">;
|
|
3701
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3702
|
+
}, "strip", z.ZodTypeAny, {
|
|
3703
|
+
errors: {
|
|
3704
|
+
status?: string | undefined;
|
|
3705
|
+
code?: string | undefined;
|
|
3706
|
+
id?: string | undefined;
|
|
3707
|
+
links?: {
|
|
3708
|
+
about?: string | undefined;
|
|
3709
|
+
} | undefined;
|
|
3710
|
+
meta?: Record<string, unknown> | undefined;
|
|
3711
|
+
title?: string | undefined;
|
|
3712
|
+
detail?: string | undefined;
|
|
3713
|
+
source?: {
|
|
3714
|
+
pointer?: string | undefined;
|
|
3715
|
+
parameter?: string | undefined;
|
|
3716
|
+
} | undefined;
|
|
3717
|
+
}[];
|
|
3718
|
+
meta?: Record<string, unknown> | undefined;
|
|
3719
|
+
}, {
|
|
3720
|
+
errors: {
|
|
3721
|
+
status?: string | undefined;
|
|
3722
|
+
code?: string | undefined;
|
|
3723
|
+
id?: string | undefined;
|
|
3724
|
+
links?: {
|
|
3725
|
+
about?: string | undefined;
|
|
3726
|
+
} | undefined;
|
|
3727
|
+
meta?: Record<string, unknown> | undefined;
|
|
3728
|
+
title?: string | undefined;
|
|
3729
|
+
detail?: string | undefined;
|
|
3730
|
+
source?: {
|
|
3731
|
+
pointer?: string | undefined;
|
|
3732
|
+
parameter?: string | undefined;
|
|
3733
|
+
} | undefined;
|
|
3734
|
+
}[];
|
|
3735
|
+
meta?: Record<string, unknown> | undefined;
|
|
3736
|
+
}>;
|
|
3737
|
+
};
|
|
3738
|
+
};
|
|
3418
3739
|
};
|
|
3419
3740
|
//# sourceMappingURL=documents.routes.d.ts.map
|