@deepintel-ltd/farmpro-contracts 1.7.19 → 1.7.20
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/index.d.ts +16 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/routes/agents.routes.d.ts +6 -6
- package/dist/routes/cooperative.routes.d.ts +1327 -0
- package/dist/routes/cooperative.routes.d.ts.map +1 -0
- package/dist/routes/cooperative.routes.js +47 -0
- package/dist/routes/extension.routes.d.ts +2431 -0
- package/dist/routes/extension.routes.d.ts.map +1 -0
- package/dist/routes/extension.routes.js +75 -0
- package/dist/routes/farms.routes.d.ts +775 -0
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/farms.routes.js +15 -1
- package/dist/routes/field-monitoring.routes.d.ts +505 -0
- package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
- package/dist/routes/field-monitoring.routes.js +23 -1
- package/dist/routes/fields.routes.d.ts +156 -155
- package/dist/routes/fields.routes.d.ts.map +1 -1
- package/dist/routes/index.d.ts +15 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +10 -0
- package/dist/routes/live-monitor.routes.d.ts +513 -0
- package/dist/routes/live-monitor.routes.d.ts.map +1 -0
- package/dist/routes/live-monitor.routes.js +81 -0
- package/dist/routes/livestock-map.routes.d.ts +4 -4
- package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
- package/dist/routes/notifications.routes.d.ts +1350 -0
- package/dist/routes/notifications.routes.d.ts.map +1 -0
- package/dist/routes/notifications.routes.js +66 -0
- package/dist/routes/team-payments.routes.d.ts +9571 -0
- package/dist/routes/team-payments.routes.d.ts.map +1 -0
- package/dist/routes/team-payments.routes.js +262 -0
- package/dist/schemas/agents.schemas.d.ts +1 -0
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/cooperative.schemas.d.ts +560 -0
- package/dist/schemas/cooperative.schemas.d.ts.map +1 -0
- package/dist/schemas/cooperative.schemas.js +71 -0
- package/dist/schemas/extension.schemas.d.ts +1204 -0
- package/dist/schemas/extension.schemas.d.ts.map +1 -0
- package/dist/schemas/extension.schemas.js +68 -0
- package/dist/schemas/farms.schemas.d.ts +591 -0
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +44 -0
- package/dist/schemas/field-monitoring.schemas.d.ts +276 -0
- package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
- package/dist/schemas/field-monitoring.schemas.js +9 -0
- package/dist/schemas/field-observations.schemas.d.ts +1 -0
- package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.d.ts +188 -186
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +10 -2
- package/dist/schemas/live-monitor.schemas.d.ts +596 -0
- package/dist/schemas/live-monitor.schemas.d.ts.map +1 -0
- package/dist/schemas/live-monitor.schemas.js +107 -0
- package/dist/schemas/livestock-map.schemas.d.ts +10 -10
- package/dist/schemas/monitoring-visualization.schemas.d.ts +4 -4
- package/dist/schemas/notifications.schemas.d.ts +464 -0
- package/dist/schemas/notifications.schemas.d.ts.map +1 -0
- package/dist/schemas/notifications.schemas.js +40 -0
- package/dist/schemas/team-payments.schemas.d.ts +2604 -0
- package/dist/schemas/team-payments.schemas.d.ts.map +1 -0
- package/dist/schemas/team-payments.schemas.js +151 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/fields.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB,wCAAsC,CAAC;AAGrE,eAAO,MAAM,eAAe,uEAAqE,CAAC;AAGlG,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,sB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CAAC,CAAC;AAC5E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -55,8 +55,16 @@ export const createFieldAttributesSchema = z.object({
|
|
|
55
55
|
expectedHarvestDate: z.string().datetime().optional(),
|
|
56
56
|
cropStage: cropStageSchema.optional(),
|
|
57
57
|
});
|
|
58
|
-
// Field attributes for update (input)
|
|
59
|
-
export const updateFieldAttributesSchema = createFieldAttributesSchema
|
|
58
|
+
// Field attributes for update (input) — nullable crop lifecycle fields allow clearing values
|
|
59
|
+
export const updateFieldAttributesSchema = createFieldAttributesSchema
|
|
60
|
+
.partial()
|
|
61
|
+
.extend({
|
|
62
|
+
geometry: geoJSONGeometrySchema.nullable().optional(),
|
|
63
|
+
currentCrop: z.string().nullable().optional(),
|
|
64
|
+
plantingDate: z.string().datetime().nullable().optional(),
|
|
65
|
+
expectedHarvestDate: z.string().datetime().nullable().optional(),
|
|
66
|
+
cropStage: cropStageSchema.nullable().optional(),
|
|
67
|
+
});
|
|
60
68
|
// Create field input (JSON:API format)
|
|
61
69
|
export const createFieldSchema = z.object({
|
|
62
70
|
type: z.literal('fields'),
|
|
@@ -0,0 +1,596 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const liveMonitorErrorSchema: z.ZodObject<{
|
|
3
|
+
message: z.ZodString;
|
|
4
|
+
code: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
code: string;
|
|
7
|
+
message: string;
|
|
8
|
+
}, {
|
|
9
|
+
code: string;
|
|
10
|
+
message: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const liveMonitorSummarySchema: z.ZodObject<{
|
|
13
|
+
farmId: z.ZodString;
|
|
14
|
+
farmName: z.ZodString;
|
|
15
|
+
camerasOnline: z.ZodNumber;
|
|
16
|
+
camerasOffline: z.ZodNumber;
|
|
17
|
+
camerasTotal: z.ZodNumber;
|
|
18
|
+
sensorsActive: z.ZodNumber;
|
|
19
|
+
sensorsInactive: z.ZodNumber;
|
|
20
|
+
sensorsTotal: z.ZodNumber;
|
|
21
|
+
activeAlerts: z.ZodNumber;
|
|
22
|
+
unreadAlerts: z.ZodNumber;
|
|
23
|
+
fieldsWithMonitoring: z.ZodNumber;
|
|
24
|
+
lastUpdatedAt: z.ZodString;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
farmId: string;
|
|
27
|
+
farmName: string;
|
|
28
|
+
camerasOnline: number;
|
|
29
|
+
camerasOffline: number;
|
|
30
|
+
camerasTotal: number;
|
|
31
|
+
sensorsActive: number;
|
|
32
|
+
sensorsInactive: number;
|
|
33
|
+
sensorsTotal: number;
|
|
34
|
+
activeAlerts: number;
|
|
35
|
+
unreadAlerts: number;
|
|
36
|
+
fieldsWithMonitoring: number;
|
|
37
|
+
lastUpdatedAt: string;
|
|
38
|
+
}, {
|
|
39
|
+
farmId: string;
|
|
40
|
+
farmName: string;
|
|
41
|
+
camerasOnline: number;
|
|
42
|
+
camerasOffline: number;
|
|
43
|
+
camerasTotal: number;
|
|
44
|
+
sensorsActive: number;
|
|
45
|
+
sensorsInactive: number;
|
|
46
|
+
sensorsTotal: number;
|
|
47
|
+
activeAlerts: number;
|
|
48
|
+
unreadAlerts: number;
|
|
49
|
+
fieldsWithMonitoring: number;
|
|
50
|
+
lastUpdatedAt: string;
|
|
51
|
+
}>;
|
|
52
|
+
export declare const liveMonitorCameraSchema: z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE"]>;
|
|
56
|
+
location: z.ZodObject<{
|
|
57
|
+
lat: z.ZodNumber;
|
|
58
|
+
lng: z.ZodNumber;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
lat: number;
|
|
61
|
+
lng: number;
|
|
62
|
+
}, {
|
|
63
|
+
lat: number;
|
|
64
|
+
lng: number;
|
|
65
|
+
}>;
|
|
66
|
+
status: z.ZodEnum<["ONLINE", "OFFLINE", "ERROR", "MAINTENANCE", "RECORDING"]>;
|
|
67
|
+
lastFrameUrl: z.ZodNullable<z.ZodString>;
|
|
68
|
+
lastFrameAt: z.ZodNullable<z.ZodString>;
|
|
69
|
+
direction: z.ZodNullable<z.ZodNumber>;
|
|
70
|
+
fieldOfView: z.ZodNullable<z.ZodNumber>;
|
|
71
|
+
streamEnabled: z.ZodBoolean;
|
|
72
|
+
} & {
|
|
73
|
+
fieldId: z.ZodString;
|
|
74
|
+
fieldName: z.ZodString;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
77
|
+
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
location: {
|
|
81
|
+
lat: number;
|
|
82
|
+
lng: number;
|
|
83
|
+
};
|
|
84
|
+
fieldId: string;
|
|
85
|
+
fieldName: string;
|
|
86
|
+
direction: number | null;
|
|
87
|
+
lastFrameUrl: string | null;
|
|
88
|
+
lastFrameAt: string | null;
|
|
89
|
+
fieldOfView: number | null;
|
|
90
|
+
streamEnabled: boolean;
|
|
91
|
+
}, {
|
|
92
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
93
|
+
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
94
|
+
id: string;
|
|
95
|
+
name: string;
|
|
96
|
+
location: {
|
|
97
|
+
lat: number;
|
|
98
|
+
lng: number;
|
|
99
|
+
};
|
|
100
|
+
fieldId: string;
|
|
101
|
+
fieldName: string;
|
|
102
|
+
direction: number | null;
|
|
103
|
+
lastFrameUrl: string | null;
|
|
104
|
+
lastFrameAt: string | null;
|
|
105
|
+
fieldOfView: number | null;
|
|
106
|
+
streamEnabled: boolean;
|
|
107
|
+
}>;
|
|
108
|
+
export declare const liveMonitorCamerasResponseSchema: z.ZodObject<{
|
|
109
|
+
farmId: z.ZodString;
|
|
110
|
+
cameras: z.ZodArray<z.ZodObject<{
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE"]>;
|
|
114
|
+
location: z.ZodObject<{
|
|
115
|
+
lat: z.ZodNumber;
|
|
116
|
+
lng: z.ZodNumber;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
lat: number;
|
|
119
|
+
lng: number;
|
|
120
|
+
}, {
|
|
121
|
+
lat: number;
|
|
122
|
+
lng: number;
|
|
123
|
+
}>;
|
|
124
|
+
status: z.ZodEnum<["ONLINE", "OFFLINE", "ERROR", "MAINTENANCE", "RECORDING"]>;
|
|
125
|
+
lastFrameUrl: z.ZodNullable<z.ZodString>;
|
|
126
|
+
lastFrameAt: z.ZodNullable<z.ZodString>;
|
|
127
|
+
direction: z.ZodNullable<z.ZodNumber>;
|
|
128
|
+
fieldOfView: z.ZodNullable<z.ZodNumber>;
|
|
129
|
+
streamEnabled: z.ZodBoolean;
|
|
130
|
+
} & {
|
|
131
|
+
fieldId: z.ZodString;
|
|
132
|
+
fieldName: z.ZodString;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
135
|
+
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
136
|
+
id: string;
|
|
137
|
+
name: string;
|
|
138
|
+
location: {
|
|
139
|
+
lat: number;
|
|
140
|
+
lng: number;
|
|
141
|
+
};
|
|
142
|
+
fieldId: string;
|
|
143
|
+
fieldName: string;
|
|
144
|
+
direction: number | null;
|
|
145
|
+
lastFrameUrl: string | null;
|
|
146
|
+
lastFrameAt: string | null;
|
|
147
|
+
fieldOfView: number | null;
|
|
148
|
+
streamEnabled: boolean;
|
|
149
|
+
}, {
|
|
150
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
151
|
+
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
152
|
+
id: string;
|
|
153
|
+
name: string;
|
|
154
|
+
location: {
|
|
155
|
+
lat: number;
|
|
156
|
+
lng: number;
|
|
157
|
+
};
|
|
158
|
+
fieldId: string;
|
|
159
|
+
fieldName: string;
|
|
160
|
+
direction: number | null;
|
|
161
|
+
lastFrameUrl: string | null;
|
|
162
|
+
lastFrameAt: string | null;
|
|
163
|
+
fieldOfView: number | null;
|
|
164
|
+
streamEnabled: boolean;
|
|
165
|
+
}>, "many">;
|
|
166
|
+
totalCameras: z.ZodNumber;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
farmId: string;
|
|
169
|
+
cameras: {
|
|
170
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
171
|
+
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
172
|
+
id: string;
|
|
173
|
+
name: string;
|
|
174
|
+
location: {
|
|
175
|
+
lat: number;
|
|
176
|
+
lng: number;
|
|
177
|
+
};
|
|
178
|
+
fieldId: string;
|
|
179
|
+
fieldName: string;
|
|
180
|
+
direction: number | null;
|
|
181
|
+
lastFrameUrl: string | null;
|
|
182
|
+
lastFrameAt: string | null;
|
|
183
|
+
fieldOfView: number | null;
|
|
184
|
+
streamEnabled: boolean;
|
|
185
|
+
}[];
|
|
186
|
+
totalCameras: number;
|
|
187
|
+
}, {
|
|
188
|
+
farmId: string;
|
|
189
|
+
cameras: {
|
|
190
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
191
|
+
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
location: {
|
|
195
|
+
lat: number;
|
|
196
|
+
lng: number;
|
|
197
|
+
};
|
|
198
|
+
fieldId: string;
|
|
199
|
+
fieldName: string;
|
|
200
|
+
direction: number | null;
|
|
201
|
+
lastFrameUrl: string | null;
|
|
202
|
+
lastFrameAt: string | null;
|
|
203
|
+
fieldOfView: number | null;
|
|
204
|
+
streamEnabled: boolean;
|
|
205
|
+
}[];
|
|
206
|
+
totalCameras: number;
|
|
207
|
+
}>;
|
|
208
|
+
export declare const liveMonitorSensorSchema: z.ZodObject<{
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
name: z.ZodString;
|
|
211
|
+
type: z.ZodEnum<["SOIL_MOISTURE", "TEMPERATURE", "HUMIDITY", "SOIL_TEMPERATURE", "RAIN_GAUGE", "WIND", "LIGHT", "PH", "EC", "MULTI"]>;
|
|
212
|
+
location: z.ZodObject<{
|
|
213
|
+
lat: z.ZodNumber;
|
|
214
|
+
lng: z.ZodNumber;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
lat: number;
|
|
217
|
+
lng: number;
|
|
218
|
+
}, {
|
|
219
|
+
lat: number;
|
|
220
|
+
lng: number;
|
|
221
|
+
}>;
|
|
222
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE", "ERROR", "MAINTENANCE", "LOW_BATTERY"]>;
|
|
223
|
+
currentReading: z.ZodNullable<z.ZodObject<{
|
|
224
|
+
value: z.ZodNumber;
|
|
225
|
+
unit: z.ZodString;
|
|
226
|
+
timestamp: z.ZodString;
|
|
227
|
+
statusColor: z.ZodEnum<["green", "yellow", "red"]>;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
value: number;
|
|
230
|
+
timestamp: string;
|
|
231
|
+
unit: string;
|
|
232
|
+
statusColor: "green" | "yellow" | "red";
|
|
233
|
+
}, {
|
|
234
|
+
value: number;
|
|
235
|
+
timestamp: string;
|
|
236
|
+
unit: string;
|
|
237
|
+
statusColor: "green" | "yellow" | "red";
|
|
238
|
+
}>>;
|
|
239
|
+
batteryLevel: z.ZodNullable<z.ZodNumber>;
|
|
240
|
+
lastSyncAt: z.ZodNullable<z.ZodString>;
|
|
241
|
+
} & {
|
|
242
|
+
fieldId: z.ZodString;
|
|
243
|
+
fieldName: z.ZodString;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
type: "SOIL_MOISTURE" | "TEMPERATURE" | "HUMIDITY" | "SOIL_TEMPERATURE" | "RAIN_GAUGE" | "WIND" | "LIGHT" | "PH" | "EC" | "MULTI";
|
|
246
|
+
status: "ACTIVE" | "INACTIVE" | "ERROR" | "MAINTENANCE" | "LOW_BATTERY";
|
|
247
|
+
id: string;
|
|
248
|
+
name: string;
|
|
249
|
+
location: {
|
|
250
|
+
lat: number;
|
|
251
|
+
lng: number;
|
|
252
|
+
};
|
|
253
|
+
fieldId: string;
|
|
254
|
+
fieldName: string;
|
|
255
|
+
currentReading: {
|
|
256
|
+
value: number;
|
|
257
|
+
timestamp: string;
|
|
258
|
+
unit: string;
|
|
259
|
+
statusColor: "green" | "yellow" | "red";
|
|
260
|
+
} | null;
|
|
261
|
+
batteryLevel: number | null;
|
|
262
|
+
lastSyncAt: string | null;
|
|
263
|
+
}, {
|
|
264
|
+
type: "SOIL_MOISTURE" | "TEMPERATURE" | "HUMIDITY" | "SOIL_TEMPERATURE" | "RAIN_GAUGE" | "WIND" | "LIGHT" | "PH" | "EC" | "MULTI";
|
|
265
|
+
status: "ACTIVE" | "INACTIVE" | "ERROR" | "MAINTENANCE" | "LOW_BATTERY";
|
|
266
|
+
id: string;
|
|
267
|
+
name: string;
|
|
268
|
+
location: {
|
|
269
|
+
lat: number;
|
|
270
|
+
lng: number;
|
|
271
|
+
};
|
|
272
|
+
fieldId: string;
|
|
273
|
+
fieldName: string;
|
|
274
|
+
currentReading: {
|
|
275
|
+
value: number;
|
|
276
|
+
timestamp: string;
|
|
277
|
+
unit: string;
|
|
278
|
+
statusColor: "green" | "yellow" | "red";
|
|
279
|
+
} | null;
|
|
280
|
+
batteryLevel: number | null;
|
|
281
|
+
lastSyncAt: string | null;
|
|
282
|
+
}>;
|
|
283
|
+
export declare const liveMonitorSensorsResponseSchema: z.ZodObject<{
|
|
284
|
+
farmId: z.ZodString;
|
|
285
|
+
sensors: z.ZodArray<z.ZodObject<{
|
|
286
|
+
id: z.ZodString;
|
|
287
|
+
name: z.ZodString;
|
|
288
|
+
type: z.ZodEnum<["SOIL_MOISTURE", "TEMPERATURE", "HUMIDITY", "SOIL_TEMPERATURE", "RAIN_GAUGE", "WIND", "LIGHT", "PH", "EC", "MULTI"]>;
|
|
289
|
+
location: z.ZodObject<{
|
|
290
|
+
lat: z.ZodNumber;
|
|
291
|
+
lng: z.ZodNumber;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
lat: number;
|
|
294
|
+
lng: number;
|
|
295
|
+
}, {
|
|
296
|
+
lat: number;
|
|
297
|
+
lng: number;
|
|
298
|
+
}>;
|
|
299
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE", "ERROR", "MAINTENANCE", "LOW_BATTERY"]>;
|
|
300
|
+
currentReading: z.ZodNullable<z.ZodObject<{
|
|
301
|
+
value: z.ZodNumber;
|
|
302
|
+
unit: z.ZodString;
|
|
303
|
+
timestamp: z.ZodString;
|
|
304
|
+
statusColor: z.ZodEnum<["green", "yellow", "red"]>;
|
|
305
|
+
}, "strip", z.ZodTypeAny, {
|
|
306
|
+
value: number;
|
|
307
|
+
timestamp: string;
|
|
308
|
+
unit: string;
|
|
309
|
+
statusColor: "green" | "yellow" | "red";
|
|
310
|
+
}, {
|
|
311
|
+
value: number;
|
|
312
|
+
timestamp: string;
|
|
313
|
+
unit: string;
|
|
314
|
+
statusColor: "green" | "yellow" | "red";
|
|
315
|
+
}>>;
|
|
316
|
+
batteryLevel: z.ZodNullable<z.ZodNumber>;
|
|
317
|
+
lastSyncAt: z.ZodNullable<z.ZodString>;
|
|
318
|
+
} & {
|
|
319
|
+
fieldId: z.ZodString;
|
|
320
|
+
fieldName: z.ZodString;
|
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
type: "SOIL_MOISTURE" | "TEMPERATURE" | "HUMIDITY" | "SOIL_TEMPERATURE" | "RAIN_GAUGE" | "WIND" | "LIGHT" | "PH" | "EC" | "MULTI";
|
|
323
|
+
status: "ACTIVE" | "INACTIVE" | "ERROR" | "MAINTENANCE" | "LOW_BATTERY";
|
|
324
|
+
id: string;
|
|
325
|
+
name: string;
|
|
326
|
+
location: {
|
|
327
|
+
lat: number;
|
|
328
|
+
lng: number;
|
|
329
|
+
};
|
|
330
|
+
fieldId: string;
|
|
331
|
+
fieldName: string;
|
|
332
|
+
currentReading: {
|
|
333
|
+
value: number;
|
|
334
|
+
timestamp: string;
|
|
335
|
+
unit: string;
|
|
336
|
+
statusColor: "green" | "yellow" | "red";
|
|
337
|
+
} | null;
|
|
338
|
+
batteryLevel: number | null;
|
|
339
|
+
lastSyncAt: string | null;
|
|
340
|
+
}, {
|
|
341
|
+
type: "SOIL_MOISTURE" | "TEMPERATURE" | "HUMIDITY" | "SOIL_TEMPERATURE" | "RAIN_GAUGE" | "WIND" | "LIGHT" | "PH" | "EC" | "MULTI";
|
|
342
|
+
status: "ACTIVE" | "INACTIVE" | "ERROR" | "MAINTENANCE" | "LOW_BATTERY";
|
|
343
|
+
id: string;
|
|
344
|
+
name: string;
|
|
345
|
+
location: {
|
|
346
|
+
lat: number;
|
|
347
|
+
lng: number;
|
|
348
|
+
};
|
|
349
|
+
fieldId: string;
|
|
350
|
+
fieldName: string;
|
|
351
|
+
currentReading: {
|
|
352
|
+
value: number;
|
|
353
|
+
timestamp: string;
|
|
354
|
+
unit: string;
|
|
355
|
+
statusColor: "green" | "yellow" | "red";
|
|
356
|
+
} | null;
|
|
357
|
+
batteryLevel: number | null;
|
|
358
|
+
lastSyncAt: string | null;
|
|
359
|
+
}>, "many">;
|
|
360
|
+
totalSensors: z.ZodNumber;
|
|
361
|
+
}, "strip", z.ZodTypeAny, {
|
|
362
|
+
farmId: string;
|
|
363
|
+
sensors: {
|
|
364
|
+
type: "SOIL_MOISTURE" | "TEMPERATURE" | "HUMIDITY" | "SOIL_TEMPERATURE" | "RAIN_GAUGE" | "WIND" | "LIGHT" | "PH" | "EC" | "MULTI";
|
|
365
|
+
status: "ACTIVE" | "INACTIVE" | "ERROR" | "MAINTENANCE" | "LOW_BATTERY";
|
|
366
|
+
id: string;
|
|
367
|
+
name: string;
|
|
368
|
+
location: {
|
|
369
|
+
lat: number;
|
|
370
|
+
lng: number;
|
|
371
|
+
};
|
|
372
|
+
fieldId: string;
|
|
373
|
+
fieldName: string;
|
|
374
|
+
currentReading: {
|
|
375
|
+
value: number;
|
|
376
|
+
timestamp: string;
|
|
377
|
+
unit: string;
|
|
378
|
+
statusColor: "green" | "yellow" | "red";
|
|
379
|
+
} | null;
|
|
380
|
+
batteryLevel: number | null;
|
|
381
|
+
lastSyncAt: string | null;
|
|
382
|
+
}[];
|
|
383
|
+
totalSensors: number;
|
|
384
|
+
}, {
|
|
385
|
+
farmId: string;
|
|
386
|
+
sensors: {
|
|
387
|
+
type: "SOIL_MOISTURE" | "TEMPERATURE" | "HUMIDITY" | "SOIL_TEMPERATURE" | "RAIN_GAUGE" | "WIND" | "LIGHT" | "PH" | "EC" | "MULTI";
|
|
388
|
+
status: "ACTIVE" | "INACTIVE" | "ERROR" | "MAINTENANCE" | "LOW_BATTERY";
|
|
389
|
+
id: string;
|
|
390
|
+
name: string;
|
|
391
|
+
location: {
|
|
392
|
+
lat: number;
|
|
393
|
+
lng: number;
|
|
394
|
+
};
|
|
395
|
+
fieldId: string;
|
|
396
|
+
fieldName: string;
|
|
397
|
+
currentReading: {
|
|
398
|
+
value: number;
|
|
399
|
+
timestamp: string;
|
|
400
|
+
unit: string;
|
|
401
|
+
statusColor: "green" | "yellow" | "red";
|
|
402
|
+
} | null;
|
|
403
|
+
batteryLevel: number | null;
|
|
404
|
+
lastSyncAt: string | null;
|
|
405
|
+
}[];
|
|
406
|
+
totalSensors: number;
|
|
407
|
+
}>;
|
|
408
|
+
export declare const liveMonitorEventTypeSchema: z.ZodEnum<["alert", "camera_motion", "camera_snapshot", "camera_status", "sensor_threshold", "weather", "ndvi_change"]>;
|
|
409
|
+
export declare const liveMonitorEventSeveritySchema: z.ZodEnum<["info", "low", "medium", "high", "critical"]>;
|
|
410
|
+
export declare const liveMonitorEventSchema: z.ZodObject<{
|
|
411
|
+
id: z.ZodString;
|
|
412
|
+
type: z.ZodEnum<["alert", "camera_motion", "camera_snapshot", "camera_status", "sensor_threshold", "weather", "ndvi_change"]>;
|
|
413
|
+
severity: z.ZodOptional<z.ZodEnum<["info", "low", "medium", "high", "critical"]>>;
|
|
414
|
+
title: z.ZodString;
|
|
415
|
+
message: z.ZodString;
|
|
416
|
+
timestamp: z.ZodString;
|
|
417
|
+
fieldId: z.ZodOptional<z.ZodString>;
|
|
418
|
+
fieldName: z.ZodOptional<z.ZodString>;
|
|
419
|
+
cameraId: z.ZodOptional<z.ZodString>;
|
|
420
|
+
sensorId: z.ZodOptional<z.ZodString>;
|
|
421
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
422
|
+
}, "strip", z.ZodTypeAny, {
|
|
423
|
+
type: "alert" | "weather" | "camera_motion" | "camera_snapshot" | "camera_status" | "sensor_threshold" | "ndvi_change";
|
|
424
|
+
message: string;
|
|
425
|
+
id: string;
|
|
426
|
+
title: string;
|
|
427
|
+
timestamp: string;
|
|
428
|
+
fieldId?: string | undefined;
|
|
429
|
+
fieldName?: string | undefined;
|
|
430
|
+
severity?: "critical" | "low" | "medium" | "high" | "info" | undefined;
|
|
431
|
+
icon?: string | undefined;
|
|
432
|
+
sensorId?: string | undefined;
|
|
433
|
+
cameraId?: string | undefined;
|
|
434
|
+
}, {
|
|
435
|
+
type: "alert" | "weather" | "camera_motion" | "camera_snapshot" | "camera_status" | "sensor_threshold" | "ndvi_change";
|
|
436
|
+
message: string;
|
|
437
|
+
id: string;
|
|
438
|
+
title: string;
|
|
439
|
+
timestamp: string;
|
|
440
|
+
fieldId?: string | undefined;
|
|
441
|
+
fieldName?: string | undefined;
|
|
442
|
+
severity?: "critical" | "low" | "medium" | "high" | "info" | undefined;
|
|
443
|
+
icon?: string | undefined;
|
|
444
|
+
sensorId?: string | undefined;
|
|
445
|
+
cameraId?: string | undefined;
|
|
446
|
+
}>;
|
|
447
|
+
export declare const liveMonitorEventsQuerySchema: z.ZodObject<{
|
|
448
|
+
limit: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
449
|
+
since: z.ZodOptional<z.ZodString>;
|
|
450
|
+
}, "strip", z.ZodTypeAny, {
|
|
451
|
+
limit: number;
|
|
452
|
+
since?: string | undefined;
|
|
453
|
+
}, {
|
|
454
|
+
limit?: string | undefined;
|
|
455
|
+
since?: string | undefined;
|
|
456
|
+
}>;
|
|
457
|
+
export declare const liveMonitorEventsResponseSchema: z.ZodObject<{
|
|
458
|
+
farmId: z.ZodString;
|
|
459
|
+
events: z.ZodArray<z.ZodObject<{
|
|
460
|
+
id: z.ZodString;
|
|
461
|
+
type: z.ZodEnum<["alert", "camera_motion", "camera_snapshot", "camera_status", "sensor_threshold", "weather", "ndvi_change"]>;
|
|
462
|
+
severity: z.ZodOptional<z.ZodEnum<["info", "low", "medium", "high", "critical"]>>;
|
|
463
|
+
title: z.ZodString;
|
|
464
|
+
message: z.ZodString;
|
|
465
|
+
timestamp: z.ZodString;
|
|
466
|
+
fieldId: z.ZodOptional<z.ZodString>;
|
|
467
|
+
fieldName: z.ZodOptional<z.ZodString>;
|
|
468
|
+
cameraId: z.ZodOptional<z.ZodString>;
|
|
469
|
+
sensorId: z.ZodOptional<z.ZodString>;
|
|
470
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
471
|
+
}, "strip", z.ZodTypeAny, {
|
|
472
|
+
type: "alert" | "weather" | "camera_motion" | "camera_snapshot" | "camera_status" | "sensor_threshold" | "ndvi_change";
|
|
473
|
+
message: string;
|
|
474
|
+
id: string;
|
|
475
|
+
title: string;
|
|
476
|
+
timestamp: string;
|
|
477
|
+
fieldId?: string | undefined;
|
|
478
|
+
fieldName?: string | undefined;
|
|
479
|
+
severity?: "critical" | "low" | "medium" | "high" | "info" | undefined;
|
|
480
|
+
icon?: string | undefined;
|
|
481
|
+
sensorId?: string | undefined;
|
|
482
|
+
cameraId?: string | undefined;
|
|
483
|
+
}, {
|
|
484
|
+
type: "alert" | "weather" | "camera_motion" | "camera_snapshot" | "camera_status" | "sensor_threshold" | "ndvi_change";
|
|
485
|
+
message: string;
|
|
486
|
+
id: string;
|
|
487
|
+
title: string;
|
|
488
|
+
timestamp: string;
|
|
489
|
+
fieldId?: string | undefined;
|
|
490
|
+
fieldName?: string | undefined;
|
|
491
|
+
severity?: "critical" | "low" | "medium" | "high" | "info" | undefined;
|
|
492
|
+
icon?: string | undefined;
|
|
493
|
+
sensorId?: string | undefined;
|
|
494
|
+
cameraId?: string | undefined;
|
|
495
|
+
}>, "many">;
|
|
496
|
+
totalEvents: z.ZodNumber;
|
|
497
|
+
}, "strip", z.ZodTypeAny, {
|
|
498
|
+
farmId: string;
|
|
499
|
+
events: {
|
|
500
|
+
type: "alert" | "weather" | "camera_motion" | "camera_snapshot" | "camera_status" | "sensor_threshold" | "ndvi_change";
|
|
501
|
+
message: string;
|
|
502
|
+
id: string;
|
|
503
|
+
title: string;
|
|
504
|
+
timestamp: string;
|
|
505
|
+
fieldId?: string | undefined;
|
|
506
|
+
fieldName?: string | undefined;
|
|
507
|
+
severity?: "critical" | "low" | "medium" | "high" | "info" | undefined;
|
|
508
|
+
icon?: string | undefined;
|
|
509
|
+
sensorId?: string | undefined;
|
|
510
|
+
cameraId?: string | undefined;
|
|
511
|
+
}[];
|
|
512
|
+
totalEvents: number;
|
|
513
|
+
}, {
|
|
514
|
+
farmId: string;
|
|
515
|
+
events: {
|
|
516
|
+
type: "alert" | "weather" | "camera_motion" | "camera_snapshot" | "camera_status" | "sensor_threshold" | "ndvi_change";
|
|
517
|
+
message: string;
|
|
518
|
+
id: string;
|
|
519
|
+
title: string;
|
|
520
|
+
timestamp: string;
|
|
521
|
+
fieldId?: string | undefined;
|
|
522
|
+
fieldName?: string | undefined;
|
|
523
|
+
severity?: "critical" | "low" | "medium" | "high" | "info" | undefined;
|
|
524
|
+
icon?: string | undefined;
|
|
525
|
+
sensorId?: string | undefined;
|
|
526
|
+
cameraId?: string | undefined;
|
|
527
|
+
}[];
|
|
528
|
+
totalEvents: number;
|
|
529
|
+
}>;
|
|
530
|
+
export declare const cameraStreamTokenResponseSchema: z.ZodObject<{
|
|
531
|
+
cameraId: z.ZodString;
|
|
532
|
+
farmId: z.ZodString;
|
|
533
|
+
token: z.ZodString;
|
|
534
|
+
expiresAt: z.ZodString;
|
|
535
|
+
streamUrl: z.ZodNullable<z.ZodString>;
|
|
536
|
+
quality: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
537
|
+
}, "strip", z.ZodTypeAny, {
|
|
538
|
+
token: string;
|
|
539
|
+
farmId: string;
|
|
540
|
+
quality: "low" | "medium" | "high";
|
|
541
|
+
streamUrl: string | null;
|
|
542
|
+
expiresAt: string;
|
|
543
|
+
cameraId: string;
|
|
544
|
+
}, {
|
|
545
|
+
token: string;
|
|
546
|
+
farmId: string;
|
|
547
|
+
streamUrl: string | null;
|
|
548
|
+
expiresAt: string;
|
|
549
|
+
cameraId: string;
|
|
550
|
+
quality?: "low" | "medium" | "high" | undefined;
|
|
551
|
+
}>;
|
|
552
|
+
export declare const captureSnapshotQuerySchema: z.ZodObject<{
|
|
553
|
+
dataSaver: z.ZodEffects<z.ZodOptional<z.ZodString>, boolean, string | undefined>;
|
|
554
|
+
}, "strip", z.ZodTypeAny, {
|
|
555
|
+
dataSaver: boolean;
|
|
556
|
+
}, {
|
|
557
|
+
dataSaver?: string | undefined;
|
|
558
|
+
}>;
|
|
559
|
+
export declare const captureSnapshotResponseSchema: z.ZodObject<{
|
|
560
|
+
snapshotId: z.ZodString;
|
|
561
|
+
cameraId: z.ZodString;
|
|
562
|
+
farmId: z.ZodString;
|
|
563
|
+
imageUrl: z.ZodString;
|
|
564
|
+
capturedAt: z.ZodString;
|
|
565
|
+
triggerType: z.ZodEnum<["manual", "scheduled", "motion"]>;
|
|
566
|
+
dataSaver: z.ZodBoolean;
|
|
567
|
+
resolution: z.ZodNullable<z.ZodString>;
|
|
568
|
+
}, "strip", z.ZodTypeAny, {
|
|
569
|
+
farmId: string;
|
|
570
|
+
capturedAt: string;
|
|
571
|
+
resolution: string | null;
|
|
572
|
+
imageUrl: string;
|
|
573
|
+
cameraId: string;
|
|
574
|
+
dataSaver: boolean;
|
|
575
|
+
snapshotId: string;
|
|
576
|
+
triggerType: "manual" | "scheduled" | "motion";
|
|
577
|
+
}, {
|
|
578
|
+
farmId: string;
|
|
579
|
+
capturedAt: string;
|
|
580
|
+
resolution: string | null;
|
|
581
|
+
imageUrl: string;
|
|
582
|
+
cameraId: string;
|
|
583
|
+
dataSaver: boolean;
|
|
584
|
+
snapshotId: string;
|
|
585
|
+
triggerType: "manual" | "scheduled" | "motion";
|
|
586
|
+
}>;
|
|
587
|
+
export type LiveMonitorSummary = z.infer<typeof liveMonitorSummarySchema>;
|
|
588
|
+
export type LiveMonitorCamera = z.infer<typeof liveMonitorCameraSchema>;
|
|
589
|
+
export type LiveMonitorCamerasResponse = z.infer<typeof liveMonitorCamerasResponseSchema>;
|
|
590
|
+
export type LiveMonitorSensor = z.infer<typeof liveMonitorSensorSchema>;
|
|
591
|
+
export type LiveMonitorSensorsResponse = z.infer<typeof liveMonitorSensorsResponseSchema>;
|
|
592
|
+
export type LiveMonitorEvent = z.infer<typeof liveMonitorEventSchema>;
|
|
593
|
+
export type LiveMonitorEventsResponse = z.infer<typeof liveMonitorEventsResponseSchema>;
|
|
594
|
+
export type CameraStreamTokenResponse = z.infer<typeof cameraStreamTokenResponseSchema>;
|
|
595
|
+
export type CaptureSnapshotResponse = z.infer<typeof captureSnapshotResponseSchema>;
|
|
596
|
+
//# sourceMappingURL=live-monitor.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-monitor.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/live-monitor.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAanC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI3C,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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