@deepintel-ltd/farmpro-contracts 1.16.1 → 1.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routes/agents.routes.d.ts +8 -8
- package/dist/routes/documents.routes.d.ts +78 -78
- package/dist/routes/fertigation.routes.d.ts +4 -4
- package/dist/routes/field-monitoring.routes.d.ts +40 -0
- package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
- package/dist/routes/field-observations.routes.d.ts +174 -28
- package/dist/routes/field-observations.routes.d.ts.map +1 -1
- package/dist/routes/field-observations.routes.js +7 -4
- package/dist/routes/fields.routes.d.ts +923 -0
- package/dist/routes/fields.routes.d.ts.map +1 -1
- package/dist/routes/fields.routes.js +23 -1
- package/dist/routes/files.routes.d.ts +6 -6
- package/dist/routes/finance.routes.d.ts +30 -30
- package/dist/routes/inventory.routes.d.ts +6 -6
- package/dist/routes/irrigation.routes.d.ts +2 -2
- package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
- package/dist/routes/pest-disease-risk.routes.d.ts +44 -44
- package/dist/routes/prescription-maps.routes.d.ts +4 -4
- package/dist/routes/subscriptions.routes.d.ts +4 -4
- package/dist/routes/tasks.routes.d.ts +108 -108
- package/dist/routes/team-payments.routes.d.ts +36 -36
- package/dist/routes/weather.routes.d.ts +42 -42
- package/dist/schemas/agents.schemas.d.ts +8 -8
- package/dist/schemas/common.schemas.d.ts +32 -0
- package/dist/schemas/common.schemas.d.ts.map +1 -1
- package/dist/schemas/common.schemas.js +14 -0
- package/dist/schemas/documents.schemas.d.ts +48 -48
- package/dist/schemas/fertigation.schemas.d.ts +2 -2
- package/dist/schemas/field-monitoring.schemas.d.ts +20 -0
- package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
- package/dist/schemas/field-monitoring.schemas.js +4 -0
- package/dist/schemas/fields.schemas.d.ts +170 -0
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +14 -0
- package/dist/schemas/files.schemas.d.ts +12 -12
- package/dist/schemas/finance.schemas.d.ts +34 -34
- package/dist/schemas/inventory.schemas.d.ts +6 -6
- package/dist/schemas/irrigation.schemas.d.ts +2 -2
- package/dist/schemas/monitoring-visualization.schemas.d.ts +6 -6
- package/dist/schemas/pest-disease-risk.schemas.d.ts +36 -36
- package/dist/schemas/prescription-maps.schemas.d.ts +4 -4
- package/dist/schemas/subscriptions.schemas.d.ts +2 -2
- package/dist/schemas/tasks.schemas.d.ts +96 -96
- package/dist/schemas/team-payments.schemas.d.ts +24 -24
- package/dist/schemas/weather.schemas.d.ts +84 -84
- package/package.json +1 -1
|
@@ -10874,11 +10874,11 @@ export declare const fertigationEventsRouter: {
|
|
|
10874
10874
|
days: z.ZodDefault<z.ZodNumber>;
|
|
10875
10875
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
10876
10876
|
}, "strip", z.ZodTypeAny, {
|
|
10877
|
-
days: number;
|
|
10878
10877
|
limit: number;
|
|
10878
|
+
days: number;
|
|
10879
10879
|
}, {
|
|
10880
|
-
days?: number | undefined;
|
|
10881
10880
|
limit?: number | undefined;
|
|
10881
|
+
days?: number | undefined;
|
|
10882
10882
|
}>;
|
|
10883
10883
|
summary: "Get upcoming events";
|
|
10884
10884
|
description: "Get upcoming fertigation events across all schedules for dashboard";
|
|
@@ -28498,11 +28498,11 @@ export declare const fertigationRouter: {
|
|
|
28498
28498
|
days: z.ZodDefault<z.ZodNumber>;
|
|
28499
28499
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
28500
28500
|
}, "strip", z.ZodTypeAny, {
|
|
28501
|
-
days: number;
|
|
28502
28501
|
limit: number;
|
|
28502
|
+
days: number;
|
|
28503
28503
|
}, {
|
|
28504
|
-
days?: number | undefined;
|
|
28505
28504
|
limit?: number | undefined;
|
|
28505
|
+
days?: number | undefined;
|
|
28506
28506
|
}>;
|
|
28507
28507
|
summary: "Get upcoming events";
|
|
28508
28508
|
description: "Get upcoming fertigation events across all schedules for dashboard";
|
|
@@ -224,6 +224,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
224
224
|
estimatedTime?: string | undefined;
|
|
225
225
|
riskLevel?: string | undefined;
|
|
226
226
|
}>, "many">>;
|
|
227
|
+
actionRequired: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
+
suggestedAction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
227
229
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
228
230
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
229
231
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -272,6 +274,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
272
274
|
resolvedAt: string | null;
|
|
273
275
|
generatedBy: string;
|
|
274
276
|
fieldName?: string | undefined;
|
|
277
|
+
actionRequired?: boolean | undefined;
|
|
278
|
+
suggestedAction?: string | null | undefined;
|
|
275
279
|
}, {
|
|
276
280
|
type: string;
|
|
277
281
|
status: "active" | "acknowledged" | "resolved";
|
|
@@ -311,6 +315,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
311
315
|
resolvedAt: string | null;
|
|
312
316
|
generatedBy: string;
|
|
313
317
|
fieldName?: string | undefined;
|
|
318
|
+
actionRequired?: boolean | undefined;
|
|
319
|
+
suggestedAction?: string | null | undefined;
|
|
314
320
|
}>, "many">;
|
|
315
321
|
};
|
|
316
322
|
};
|
|
@@ -414,6 +420,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
414
420
|
estimatedTime?: string | undefined;
|
|
415
421
|
riskLevel?: string | undefined;
|
|
416
422
|
}>, "many">>;
|
|
423
|
+
actionRequired: z.ZodOptional<z.ZodBoolean>;
|
|
424
|
+
suggestedAction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
417
425
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
418
426
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
419
427
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -462,6 +470,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
462
470
|
resolvedAt: string | null;
|
|
463
471
|
generatedBy: string;
|
|
464
472
|
fieldName?: string | undefined;
|
|
473
|
+
actionRequired?: boolean | undefined;
|
|
474
|
+
suggestedAction?: string | null | undefined;
|
|
465
475
|
}, {
|
|
466
476
|
type: string;
|
|
467
477
|
status: "active" | "acknowledged" | "resolved";
|
|
@@ -501,6 +511,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
501
511
|
resolvedAt: string | null;
|
|
502
512
|
generatedBy: string;
|
|
503
513
|
fieldName?: string | undefined;
|
|
514
|
+
actionRequired?: boolean | undefined;
|
|
515
|
+
suggestedAction?: string | null | undefined;
|
|
504
516
|
}>, "many">;
|
|
505
517
|
};
|
|
506
518
|
};
|
|
@@ -653,6 +665,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
653
665
|
estimatedTime?: string | undefined;
|
|
654
666
|
riskLevel?: string | undefined;
|
|
655
667
|
}>, "many">>;
|
|
668
|
+
actionRequired: z.ZodOptional<z.ZodBoolean>;
|
|
669
|
+
suggestedAction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
656
670
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
657
671
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
658
672
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -701,6 +715,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
701
715
|
resolvedAt: string | null;
|
|
702
716
|
generatedBy: string;
|
|
703
717
|
fieldName?: string | undefined;
|
|
718
|
+
actionRequired?: boolean | undefined;
|
|
719
|
+
suggestedAction?: string | null | undefined;
|
|
704
720
|
}, {
|
|
705
721
|
type: string;
|
|
706
722
|
status: "active" | "acknowledged" | "resolved";
|
|
@@ -740,6 +756,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
740
756
|
resolvedAt: string | null;
|
|
741
757
|
generatedBy: string;
|
|
742
758
|
fieldName?: string | undefined;
|
|
759
|
+
actionRequired?: boolean | undefined;
|
|
760
|
+
suggestedAction?: string | null | undefined;
|
|
743
761
|
}>;
|
|
744
762
|
404: z.ZodObject<{
|
|
745
763
|
message: z.ZodString;
|
|
@@ -855,6 +873,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
855
873
|
estimatedTime?: string | undefined;
|
|
856
874
|
riskLevel?: string | undefined;
|
|
857
875
|
}>, "many">>;
|
|
876
|
+
actionRequired: z.ZodOptional<z.ZodBoolean>;
|
|
877
|
+
suggestedAction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
858
878
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
859
879
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
860
880
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -903,6 +923,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
903
923
|
resolvedAt: string | null;
|
|
904
924
|
generatedBy: string;
|
|
905
925
|
fieldName?: string | undefined;
|
|
926
|
+
actionRequired?: boolean | undefined;
|
|
927
|
+
suggestedAction?: string | null | undefined;
|
|
906
928
|
}, {
|
|
907
929
|
type: string;
|
|
908
930
|
status: "active" | "acknowledged" | "resolved";
|
|
@@ -942,6 +964,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
942
964
|
resolvedAt: string | null;
|
|
943
965
|
generatedBy: string;
|
|
944
966
|
fieldName?: string | undefined;
|
|
967
|
+
actionRequired?: boolean | undefined;
|
|
968
|
+
suggestedAction?: string | null | undefined;
|
|
945
969
|
}>, "many">;
|
|
946
970
|
}, "strip", z.ZodTypeAny, {
|
|
947
971
|
alerts: {
|
|
@@ -983,6 +1007,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
983
1007
|
resolvedAt: string | null;
|
|
984
1008
|
generatedBy: string;
|
|
985
1009
|
fieldName?: string | undefined;
|
|
1010
|
+
actionRequired?: boolean | undefined;
|
|
1011
|
+
suggestedAction?: string | null | undefined;
|
|
986
1012
|
}[];
|
|
987
1013
|
updated: number;
|
|
988
1014
|
}, {
|
|
@@ -1025,6 +1051,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
1025
1051
|
resolvedAt: string | null;
|
|
1026
1052
|
generatedBy: string;
|
|
1027
1053
|
fieldName?: string | undefined;
|
|
1054
|
+
actionRequired?: boolean | undefined;
|
|
1055
|
+
suggestedAction?: string | null | undefined;
|
|
1028
1056
|
}[];
|
|
1029
1057
|
updated: number;
|
|
1030
1058
|
}>;
|
|
@@ -1134,6 +1162,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
1134
1162
|
estimatedTime?: string | undefined;
|
|
1135
1163
|
riskLevel?: string | undefined;
|
|
1136
1164
|
}>, "many">>;
|
|
1165
|
+
actionRequired: z.ZodOptional<z.ZodBoolean>;
|
|
1166
|
+
suggestedAction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1137
1167
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
1138
1168
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
1139
1169
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -1182,6 +1212,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
1182
1212
|
resolvedAt: string | null;
|
|
1183
1213
|
generatedBy: string;
|
|
1184
1214
|
fieldName?: string | undefined;
|
|
1215
|
+
actionRequired?: boolean | undefined;
|
|
1216
|
+
suggestedAction?: string | null | undefined;
|
|
1185
1217
|
}, {
|
|
1186
1218
|
type: string;
|
|
1187
1219
|
status: "active" | "acknowledged" | "resolved";
|
|
@@ -1221,6 +1253,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
1221
1253
|
resolvedAt: string | null;
|
|
1222
1254
|
generatedBy: string;
|
|
1223
1255
|
fieldName?: string | undefined;
|
|
1256
|
+
actionRequired?: boolean | undefined;
|
|
1257
|
+
suggestedAction?: string | null | undefined;
|
|
1224
1258
|
}>;
|
|
1225
1259
|
404: z.ZodObject<{
|
|
1226
1260
|
message: z.ZodString;
|
|
@@ -1328,6 +1362,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
1328
1362
|
estimatedTime?: string | undefined;
|
|
1329
1363
|
riskLevel?: string | undefined;
|
|
1330
1364
|
}>, "many">>;
|
|
1365
|
+
actionRequired: z.ZodOptional<z.ZodBoolean>;
|
|
1366
|
+
suggestedAction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1331
1367
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
1332
1368
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
1333
1369
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -1376,6 +1412,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
1376
1412
|
resolvedAt: string | null;
|
|
1377
1413
|
generatedBy: string;
|
|
1378
1414
|
fieldName?: string | undefined;
|
|
1415
|
+
actionRequired?: boolean | undefined;
|
|
1416
|
+
suggestedAction?: string | null | undefined;
|
|
1379
1417
|
}, {
|
|
1380
1418
|
type: string;
|
|
1381
1419
|
status: "active" | "acknowledged" | "resolved";
|
|
@@ -1415,6 +1453,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
1415
1453
|
resolvedAt: string | null;
|
|
1416
1454
|
generatedBy: string;
|
|
1417
1455
|
fieldName?: string | undefined;
|
|
1456
|
+
actionRequired?: boolean | undefined;
|
|
1457
|
+
suggestedAction?: string | null | undefined;
|
|
1418
1458
|
}>;
|
|
1419
1459
|
404: z.ZodObject<{
|
|
1420
1460
|
message: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-monitoring.routes.d.ts","sourceRoot":"","sources":["../../src/routes/field-monitoring.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsBxB,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"field-monitoring.routes.d.ts","sourceRoot":"","sources":["../../src/rout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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8PhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC"}
|
|
@@ -68,23 +68,96 @@ export declare const fieldObservationsRouter: {
|
|
|
68
68
|
400: z.ZodObject<{
|
|
69
69
|
message: z.ZodString;
|
|
70
70
|
code: z.ZodString;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
72
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
76
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
77
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
79
|
+
message: z.ZodString;
|
|
80
|
+
code: z.ZodString;
|
|
81
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
82
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
86
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
87
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
89
|
+
message: z.ZodString;
|
|
90
|
+
code: z.ZodString;
|
|
91
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
92
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
96
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
97
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
99
|
+
403: z.ZodObject<{
|
|
100
|
+
message: z.ZodString;
|
|
101
|
+
code: z.ZodString;
|
|
102
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
103
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
107
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
108
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
110
|
+
message: z.ZodString;
|
|
111
|
+
code: z.ZodString;
|
|
112
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
113
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
117
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
118
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
120
|
+
message: z.ZodString;
|
|
121
|
+
code: z.ZodString;
|
|
122
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
123
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
124
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
126
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
127
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
128
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
78
130
|
404: z.ZodObject<{
|
|
79
131
|
message: z.ZodString;
|
|
80
132
|
code: z.ZodString;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
133
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
134
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
138
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
139
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
141
|
+
message: z.ZodString;
|
|
142
|
+
code: z.ZodString;
|
|
143
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
144
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
148
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
149
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
151
|
+
message: z.ZodString;
|
|
152
|
+
code: z.ZodString;
|
|
153
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
154
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
155
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
156
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
158
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
159
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
88
161
|
};
|
|
89
162
|
};
|
|
90
163
|
createObservation: {
|
|
@@ -155,23 +228,96 @@ export declare const fieldObservationsRouter: {
|
|
|
155
228
|
400: z.ZodObject<{
|
|
156
229
|
message: z.ZodString;
|
|
157
230
|
code: z.ZodString;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
231
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
232
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
236
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
237
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
238
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
239
|
+
message: z.ZodString;
|
|
240
|
+
code: z.ZodString;
|
|
241
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
242
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
243
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
246
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
247
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
249
|
+
message: z.ZodString;
|
|
250
|
+
code: z.ZodString;
|
|
251
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
252
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
256
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
257
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
259
|
+
403: z.ZodObject<{
|
|
260
|
+
message: z.ZodString;
|
|
261
|
+
code: z.ZodString;
|
|
262
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
263
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
265
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
266
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
267
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
268
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
269
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
270
|
+
message: z.ZodString;
|
|
271
|
+
code: z.ZodString;
|
|
272
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
273
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
275
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
276
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
277
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
278
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
280
|
+
message: z.ZodString;
|
|
281
|
+
code: z.ZodString;
|
|
282
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
283
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
287
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
288
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
165
290
|
404: z.ZodObject<{
|
|
166
291
|
message: z.ZodString;
|
|
167
292
|
code: z.ZodString;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
293
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
294
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
295
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
296
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
298
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
299
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
301
|
+
message: z.ZodString;
|
|
302
|
+
code: z.ZodString;
|
|
303
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
304
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
308
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
309
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
310
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
311
|
+
message: z.ZodString;
|
|
312
|
+
code: z.ZodString;
|
|
313
|
+
upgradeUrl: z.ZodOptional<z.ZodString>;
|
|
314
|
+
currentLimit: z.ZodOptional<z.ZodNumber>;
|
|
315
|
+
currentUsage: z.ZodOptional<z.ZodNumber>;
|
|
316
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
317
|
+
resetDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
318
|
+
resetTime: z.ZodOptional<z.ZodString>;
|
|
319
|
+
current: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
175
321
|
};
|
|
176
322
|
};
|
|
177
323
|
getObservation: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-observations.routes.d.ts","sourceRoot":"","sources":["../../src/routes/field-observations.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"field-observations.routes.d.ts","sourceRoot":"","sources":["../../src/routes/field-observations.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsHlC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { initContract } from '@ts-rest/core';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { uploadObservationBodySchema, observationResponseSchema, observationListResponseSchema, observationListQuerySchema, updateObservationActionInputSchema, observationStatsQuerySchema, } from '../schemas/field-observations.schemas';
|
|
4
|
+
import { simpleApiErrorSchema } from '../schemas/common.schemas';
|
|
4
5
|
const c = initContract();
|
|
5
6
|
export const fieldObservationsRouter = c.router({
|
|
6
7
|
// Upload new observation photo (farm-level)
|
|
@@ -15,8 +16,9 @@ export const fieldObservationsRouter = c.router({
|
|
|
15
16
|
observationId: z.string().uuid(),
|
|
16
17
|
status: z.literal('accepted'),
|
|
17
18
|
}),
|
|
18
|
-
400:
|
|
19
|
-
|
|
19
|
+
400: simpleApiErrorSchema,
|
|
20
|
+
403: simpleApiErrorSchema,
|
|
21
|
+
404: simpleApiErrorSchema,
|
|
20
22
|
},
|
|
21
23
|
summary: 'Upload farm observation photo for AI analysis',
|
|
22
24
|
},
|
|
@@ -32,8 +34,9 @@ export const fieldObservationsRouter = c.router({
|
|
|
32
34
|
observationId: z.string().uuid(),
|
|
33
35
|
status: z.literal('accepted'),
|
|
34
36
|
}),
|
|
35
|
-
400:
|
|
36
|
-
|
|
37
|
+
400: simpleApiErrorSchema,
|
|
38
|
+
403: simpleApiErrorSchema,
|
|
39
|
+
404: simpleApiErrorSchema,
|
|
37
40
|
},
|
|
38
41
|
summary: 'Upload field observation photo for AI analysis',
|
|
39
42
|
},
|