@deepintel-ltd/farmpro-contracts 1.11.3 → 1.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routes/admin.routes.d.ts +2591 -59
- package/dist/routes/admin.routes.d.ts.map +1 -1
- package/dist/routes/admin.routes.js +68 -6
- package/dist/routes/agent-workflows.routes.d.ts +140 -140
- package/dist/routes/agents.routes.d.ts +6 -6
- package/dist/routes/analytics.routes.d.ts +6 -6
- package/dist/routes/auth.routes.d.ts +503 -0
- package/dist/routes/auth.routes.d.ts.map +1 -1
- package/dist/routes/auth.routes.js +15 -0
- package/dist/routes/crop-profile.routes.d.ts +18 -18
- package/dist/routes/documents.routes.d.ts +58 -58
- package/dist/routes/equipment.routes.d.ts +62 -62
- package/dist/routes/extension.routes.d.ts +6 -6
- package/dist/routes/farm-status.routes.d.ts +6 -6
- package/dist/routes/farms.routes.d.ts +35 -0
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/fertigation.routes.d.ts +76 -76
- package/dist/routes/field-monitoring.routes.d.ts +34 -34
- package/dist/routes/field-observations.routes.d.ts +170 -170
- package/dist/routes/finance.routes.d.ts +6 -6
- package/dist/routes/geofences.routes.d.ts +8 -8
- package/dist/routes/irrigation.routes.d.ts +22 -22
- package/dist/routes/live-monitor.routes.d.ts +2 -2
- package/dist/routes/livestock-groups.routes.d.ts +30 -30
- package/dist/routes/livestock.routes.d.ts +24 -24
- package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
- package/dist/routes/pest-disease-risk.routes.d.ts +48 -48
- package/dist/routes/prescription-maps.routes.d.ts +2 -2
- package/dist/routes/seasonal-plans.routes.d.ts +6 -6
- package/dist/routes/soil-tests.routes.d.ts +30 -30
- package/dist/routes/subscriptions.routes.d.ts +2 -2
- package/dist/routes/team-payments.routes.d.ts +36 -36
- package/dist/routes/team.routes.d.ts +24 -24
- package/dist/routes/users.routes.d.ts +14 -0
- package/dist/routes/users.routes.d.ts.map +1 -1
- package/dist/routes/weather.routes.d.ts +14 -14
- package/dist/routes/yield-prediction.routes.d.ts +48 -48
- package/dist/schemas/admin.schemas.d.ts +470 -84
- package/dist/schemas/admin.schemas.d.ts.map +1 -1
- package/dist/schemas/admin.schemas.js +46 -0
- package/dist/schemas/agent-workflows.schemas.d.ts +111 -111
- package/dist/schemas/agents.schemas.d.ts +6 -6
- package/dist/schemas/analytics.schemas.d.ts +12 -12
- package/dist/schemas/crop-profile.schemas.d.ts +26 -26
- package/dist/schemas/documents.schemas.d.ts +48 -48
- package/dist/schemas/equipment.schemas.d.ts +48 -48
- package/dist/schemas/extension.schemas.d.ts +12 -12
- package/dist/schemas/farm-status.schemas.d.ts +8 -8
- package/dist/schemas/farms.schemas.d.ts +48 -0
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +3 -0
- package/dist/schemas/fertigation.schemas.d.ts +20 -20
- package/dist/schemas/field-monitoring.schemas.d.ts +26 -26
- package/dist/schemas/field-observations.schemas.d.ts +126 -126
- package/dist/schemas/finance.schemas.d.ts +6 -6
- package/dist/schemas/geofences.schemas.d.ts +6 -6
- package/dist/schemas/irrigation.schemas.d.ts +12 -12
- package/dist/schemas/live-monitor.schemas.d.ts +2 -2
- package/dist/schemas/livestock-groups.schemas.d.ts +18 -18
- package/dist/schemas/livestock.schemas.d.ts +18 -18
- package/dist/schemas/monitoring-visualization.schemas.d.ts +4 -4
- package/dist/schemas/pest-disease-risk.schemas.d.ts +32 -32
- package/dist/schemas/prescription-maps.schemas.d.ts +2 -2
- package/dist/schemas/seasonal-plans.schemas.d.ts +12 -12
- package/dist/schemas/soil-tests.schemas.d.ts +28 -28
- package/dist/schemas/team-payments.schemas.d.ts +24 -24
- package/dist/schemas/team.schemas.d.ts +18 -18
- package/dist/schemas/users.schemas.d.ts +15 -0
- package/dist/schemas/users.schemas.d.ts.map +1 -1
- package/dist/schemas/users.schemas.js +1 -0
- package/dist/schemas/weather.schemas.d.ts +28 -28
- package/dist/schemas/yield-prediction.schemas.d.ts +8 -8
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export declare const userAttributesSchema: z.ZodObject<{
|
|
|
9
9
|
emailVerified: z.ZodBoolean;
|
|
10
10
|
avatar: z.ZodNullable<z.ZodString>;
|
|
11
11
|
isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
platformRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["super_admin"]>>>;
|
|
12
13
|
} & {
|
|
13
14
|
createdAt: z.ZodString;
|
|
14
15
|
updatedAt: z.ZodString;
|
|
@@ -21,6 +22,7 @@ export declare const userAttributesSchema: z.ZodObject<{
|
|
|
21
22
|
emailVerified: boolean;
|
|
22
23
|
avatar: string | null;
|
|
23
24
|
isPlatformAdmin?: boolean | undefined;
|
|
25
|
+
platformRole?: "super_admin" | null | undefined;
|
|
24
26
|
}, {
|
|
25
27
|
email: string;
|
|
26
28
|
createdAt: string;
|
|
@@ -30,6 +32,7 @@ export declare const userAttributesSchema: z.ZodObject<{
|
|
|
30
32
|
emailVerified: boolean;
|
|
31
33
|
avatar: string | null;
|
|
32
34
|
isPlatformAdmin?: boolean | undefined;
|
|
35
|
+
platformRole?: "super_admin" | null | undefined;
|
|
33
36
|
}>;
|
|
34
37
|
export declare const updateUserAttributesSchema: z.ZodObject<{
|
|
35
38
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -87,6 +90,7 @@ export declare const userResourceSchema: z.ZodObject<{
|
|
|
87
90
|
emailVerified: z.ZodBoolean;
|
|
88
91
|
avatar: z.ZodNullable<z.ZodString>;
|
|
89
92
|
isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
platformRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["super_admin"]>>>;
|
|
90
94
|
} & {
|
|
91
95
|
createdAt: z.ZodString;
|
|
92
96
|
updatedAt: z.ZodString;
|
|
@@ -99,6 +103,7 @@ export declare const userResourceSchema: z.ZodObject<{
|
|
|
99
103
|
emailVerified: boolean;
|
|
100
104
|
avatar: string | null;
|
|
101
105
|
isPlatformAdmin?: boolean | undefined;
|
|
106
|
+
platformRole?: "super_admin" | null | undefined;
|
|
102
107
|
}, {
|
|
103
108
|
email: string;
|
|
104
109
|
createdAt: string;
|
|
@@ -108,6 +113,7 @@ export declare const userResourceSchema: z.ZodObject<{
|
|
|
108
113
|
emailVerified: boolean;
|
|
109
114
|
avatar: string | null;
|
|
110
115
|
isPlatformAdmin?: boolean | undefined;
|
|
116
|
+
platformRole?: "super_admin" | null | undefined;
|
|
111
117
|
}>;
|
|
112
118
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
113
119
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -124,6 +130,7 @@ export declare const userResourceSchema: z.ZodObject<{
|
|
|
124
130
|
emailVerified: boolean;
|
|
125
131
|
avatar: string | null;
|
|
126
132
|
isPlatformAdmin?: boolean | undefined;
|
|
133
|
+
platformRole?: "super_admin" | null | undefined;
|
|
127
134
|
};
|
|
128
135
|
relationships?: Record<string, unknown> | undefined;
|
|
129
136
|
links?: Record<string, string> | undefined;
|
|
@@ -140,6 +147,7 @@ export declare const userResourceSchema: z.ZodObject<{
|
|
|
140
147
|
emailVerified: boolean;
|
|
141
148
|
avatar: string | null;
|
|
142
149
|
isPlatformAdmin?: boolean | undefined;
|
|
150
|
+
platformRole?: "super_admin" | null | undefined;
|
|
143
151
|
};
|
|
144
152
|
relationships?: Record<string, unknown> | undefined;
|
|
145
153
|
links?: Record<string, string> | undefined;
|
|
@@ -156,6 +164,7 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
156
164
|
emailVerified: z.ZodBoolean;
|
|
157
165
|
avatar: z.ZodNullable<z.ZodString>;
|
|
158
166
|
isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
platformRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["super_admin"]>>>;
|
|
159
168
|
} & {
|
|
160
169
|
createdAt: z.ZodString;
|
|
161
170
|
updatedAt: z.ZodString;
|
|
@@ -168,6 +177,7 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
168
177
|
emailVerified: boolean;
|
|
169
178
|
avatar: string | null;
|
|
170
179
|
isPlatformAdmin?: boolean | undefined;
|
|
180
|
+
platformRole?: "super_admin" | null | undefined;
|
|
171
181
|
}, {
|
|
172
182
|
email: string;
|
|
173
183
|
createdAt: string;
|
|
@@ -177,6 +187,7 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
177
187
|
emailVerified: boolean;
|
|
178
188
|
avatar: string | null;
|
|
179
189
|
isPlatformAdmin?: boolean | undefined;
|
|
190
|
+
platformRole?: "super_admin" | null | undefined;
|
|
180
191
|
}>;
|
|
181
192
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
182
193
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -193,6 +204,7 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
193
204
|
emailVerified: boolean;
|
|
194
205
|
avatar: string | null;
|
|
195
206
|
isPlatformAdmin?: boolean | undefined;
|
|
207
|
+
platformRole?: "super_admin" | null | undefined;
|
|
196
208
|
};
|
|
197
209
|
relationships?: Record<string, unknown> | undefined;
|
|
198
210
|
links?: Record<string, string> | undefined;
|
|
@@ -209,6 +221,7 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
209
221
|
emailVerified: boolean;
|
|
210
222
|
avatar: string | null;
|
|
211
223
|
isPlatformAdmin?: boolean | undefined;
|
|
224
|
+
platformRole?: "super_admin" | null | undefined;
|
|
212
225
|
};
|
|
213
226
|
relationships?: Record<string, unknown> | undefined;
|
|
214
227
|
links?: Record<string, string> | undefined;
|
|
@@ -251,6 +264,7 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
251
264
|
emailVerified: boolean;
|
|
252
265
|
avatar: string | null;
|
|
253
266
|
isPlatformAdmin?: boolean | undefined;
|
|
267
|
+
platformRole?: "super_admin" | null | undefined;
|
|
254
268
|
};
|
|
255
269
|
relationships?: Record<string, unknown> | undefined;
|
|
256
270
|
links?: Record<string, string> | undefined;
|
|
@@ -279,6 +293,7 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
279
293
|
emailVerified: boolean;
|
|
280
294
|
avatar: string | null;
|
|
281
295
|
isPlatformAdmin?: boolean | undefined;
|
|
296
|
+
platformRole?: "super_admin" | null | undefined;
|
|
282
297
|
};
|
|
283
298
|
relationships?: Record<string, unknown> | undefined;
|
|
284
299
|
links?: Record<string, string> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/users.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;GAEG;AAGH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"users.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/users.schemas.ts"],"names":[],"mappings":"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"}
|
|
@@ -11,6 +11,7 @@ export const userAttributesSchema = z.object({
|
|
|
11
11
|
emailVerified: z.boolean(),
|
|
12
12
|
avatar: z.string().url().nullable(),
|
|
13
13
|
isPlatformAdmin: z.boolean().optional(),
|
|
14
|
+
platformRole: z.enum(['super_admin']).nullable().optional(),
|
|
14
15
|
}).merge(timestampsSchema);
|
|
15
16
|
// Update user profile attributes
|
|
16
17
|
export const updateUserAttributesSchema = z.object({
|
|
@@ -135,7 +135,6 @@ export declare const weatherAlertSchema: z.ZodObject<{
|
|
|
135
135
|
date: string;
|
|
136
136
|
id: string;
|
|
137
137
|
severity: "low" | "medium" | "high";
|
|
138
|
-
fieldId?: string | null | undefined;
|
|
139
138
|
recommendations?: {
|
|
140
139
|
priority: number;
|
|
141
140
|
action: string;
|
|
@@ -158,13 +157,13 @@ export declare const weatherAlertSchema: z.ZodObject<{
|
|
|
158
157
|
estimatedTime?: string | undefined;
|
|
159
158
|
riskLevel?: string | undefined;
|
|
160
159
|
}[] | undefined;
|
|
160
|
+
fieldId?: string | null | undefined;
|
|
161
161
|
}, {
|
|
162
162
|
type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
|
|
163
163
|
message: string;
|
|
164
164
|
date: string;
|
|
165
165
|
id: string;
|
|
166
166
|
severity: "low" | "medium" | "high";
|
|
167
|
-
fieldId?: string | null | undefined;
|
|
168
167
|
recommendations?: {
|
|
169
168
|
priority: number;
|
|
170
169
|
action: string;
|
|
@@ -187,6 +186,7 @@ export declare const weatherAlertSchema: z.ZodObject<{
|
|
|
187
186
|
estimatedTime?: string | undefined;
|
|
188
187
|
riskLevel?: string | undefined;
|
|
189
188
|
}[] | undefined;
|
|
189
|
+
fieldId?: string | null | undefined;
|
|
190
190
|
}>;
|
|
191
191
|
export declare const weatherAttributesSchema: z.ZodObject<{
|
|
192
192
|
farmId: z.ZodString;
|
|
@@ -321,7 +321,6 @@ export declare const weatherAttributesSchema: z.ZodObject<{
|
|
|
321
321
|
date: string;
|
|
322
322
|
id: string;
|
|
323
323
|
severity: "low" | "medium" | "high";
|
|
324
|
-
fieldId?: string | null | undefined;
|
|
325
324
|
recommendations?: {
|
|
326
325
|
priority: number;
|
|
327
326
|
action: string;
|
|
@@ -344,13 +343,13 @@ export declare const weatherAttributesSchema: z.ZodObject<{
|
|
|
344
343
|
estimatedTime?: string | undefined;
|
|
345
344
|
riskLevel?: string | undefined;
|
|
346
345
|
}[] | undefined;
|
|
346
|
+
fieldId?: string | null | undefined;
|
|
347
347
|
}, {
|
|
348
348
|
type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
|
|
349
349
|
message: string;
|
|
350
350
|
date: string;
|
|
351
351
|
id: string;
|
|
352
352
|
severity: "low" | "medium" | "high";
|
|
353
|
-
fieldId?: string | null | undefined;
|
|
354
353
|
recommendations?: {
|
|
355
354
|
priority: number;
|
|
356
355
|
action: string;
|
|
@@ -373,6 +372,7 @@ export declare const weatherAttributesSchema: z.ZodObject<{
|
|
|
373
372
|
estimatedTime?: string | undefined;
|
|
374
373
|
riskLevel?: string | undefined;
|
|
375
374
|
}[] | undefined;
|
|
375
|
+
fieldId?: string | null | undefined;
|
|
376
376
|
}>, "many">>;
|
|
377
377
|
}, "strip", z.ZodTypeAny, {
|
|
378
378
|
farmId: string;
|
|
@@ -396,7 +396,6 @@ export declare const weatherAttributesSchema: z.ZodObject<{
|
|
|
396
396
|
date: string;
|
|
397
397
|
id: string;
|
|
398
398
|
severity: "low" | "medium" | "high";
|
|
399
|
-
fieldId?: string | null | undefined;
|
|
400
399
|
recommendations?: {
|
|
401
400
|
priority: number;
|
|
402
401
|
action: string;
|
|
@@ -419,6 +418,7 @@ export declare const weatherAttributesSchema: z.ZodObject<{
|
|
|
419
418
|
estimatedTime?: string | undefined;
|
|
420
419
|
riskLevel?: string | undefined;
|
|
421
420
|
}[] | undefined;
|
|
421
|
+
fieldId?: string | null | undefined;
|
|
422
422
|
}[] | undefined;
|
|
423
423
|
}, {
|
|
424
424
|
farmId: string;
|
|
@@ -442,7 +442,6 @@ export declare const weatherAttributesSchema: z.ZodObject<{
|
|
|
442
442
|
date: string;
|
|
443
443
|
id: string;
|
|
444
444
|
severity: "low" | "medium" | "high";
|
|
445
|
-
fieldId?: string | null | undefined;
|
|
446
445
|
recommendations?: {
|
|
447
446
|
priority: number;
|
|
448
447
|
action: string;
|
|
@@ -465,6 +464,7 @@ export declare const weatherAttributesSchema: z.ZodObject<{
|
|
|
465
464
|
estimatedTime?: string | undefined;
|
|
466
465
|
riskLevel?: string | undefined;
|
|
467
466
|
}[] | undefined;
|
|
467
|
+
fieldId?: string | null | undefined;
|
|
468
468
|
}[] | undefined;
|
|
469
469
|
}>;
|
|
470
470
|
export declare const plannerRiskLevelSchema: z.ZodEnum<["low", "medium", "high"]>;
|
|
@@ -795,6 +795,7 @@ export declare const weatherPlannerAttributesSchema: z.ZodObject<{
|
|
|
795
795
|
}[];
|
|
796
796
|
}>, "many">;
|
|
797
797
|
}, "strip", z.ZodTypeAny, {
|
|
798
|
+
farmId: string;
|
|
798
799
|
fields: {
|
|
799
800
|
cropStage: string | null;
|
|
800
801
|
fieldId: string;
|
|
@@ -817,9 +818,9 @@ export declare const weatherPlannerAttributesSchema: z.ZodObject<{
|
|
|
817
818
|
};
|
|
818
819
|
}[];
|
|
819
820
|
}[];
|
|
820
|
-
farmId: string;
|
|
821
821
|
generatedAt: string;
|
|
822
822
|
}, {
|
|
823
|
+
farmId: string;
|
|
823
824
|
fields: {
|
|
824
825
|
cropStage: string | null;
|
|
825
826
|
fieldId: string;
|
|
@@ -842,7 +843,6 @@ export declare const weatherPlannerAttributesSchema: z.ZodObject<{
|
|
|
842
843
|
};
|
|
843
844
|
}[];
|
|
844
845
|
}[];
|
|
845
|
-
farmId: string;
|
|
846
846
|
generatedAt: string;
|
|
847
847
|
}>;
|
|
848
848
|
export declare const weatherPlannerResponseSchema: z.ZodObject<{
|
|
@@ -971,6 +971,7 @@ export declare const weatherPlannerResponseSchema: z.ZodObject<{
|
|
|
971
971
|
}[];
|
|
972
972
|
}>, "many">;
|
|
973
973
|
}, "strip", z.ZodTypeAny, {
|
|
974
|
+
farmId: string;
|
|
974
975
|
fields: {
|
|
975
976
|
cropStage: string | null;
|
|
976
977
|
fieldId: string;
|
|
@@ -993,9 +994,9 @@ export declare const weatherPlannerResponseSchema: z.ZodObject<{
|
|
|
993
994
|
};
|
|
994
995
|
}[];
|
|
995
996
|
}[];
|
|
996
|
-
farmId: string;
|
|
997
997
|
generatedAt: string;
|
|
998
998
|
}, {
|
|
999
|
+
farmId: string;
|
|
999
1000
|
fields: {
|
|
1000
1001
|
cropStage: string | null;
|
|
1001
1002
|
fieldId: string;
|
|
@@ -1018,13 +1019,13 @@ export declare const weatherPlannerResponseSchema: z.ZodObject<{
|
|
|
1018
1019
|
};
|
|
1019
1020
|
}[];
|
|
1020
1021
|
}[];
|
|
1021
|
-
farmId: string;
|
|
1022
1022
|
generatedAt: string;
|
|
1023
1023
|
}>;
|
|
1024
1024
|
}, "strip", z.ZodTypeAny, {
|
|
1025
1025
|
type: "weather-planner";
|
|
1026
1026
|
id: string;
|
|
1027
1027
|
attributes: {
|
|
1028
|
+
farmId: string;
|
|
1028
1029
|
fields: {
|
|
1029
1030
|
cropStage: string | null;
|
|
1030
1031
|
fieldId: string;
|
|
@@ -1047,13 +1048,13 @@ export declare const weatherPlannerResponseSchema: z.ZodObject<{
|
|
|
1047
1048
|
};
|
|
1048
1049
|
}[];
|
|
1049
1050
|
}[];
|
|
1050
|
-
farmId: string;
|
|
1051
1051
|
generatedAt: string;
|
|
1052
1052
|
};
|
|
1053
1053
|
}, {
|
|
1054
1054
|
type: "weather-planner";
|
|
1055
1055
|
id: string;
|
|
1056
1056
|
attributes: {
|
|
1057
|
+
farmId: string;
|
|
1057
1058
|
fields: {
|
|
1058
1059
|
cropStage: string | null;
|
|
1059
1060
|
fieldId: string;
|
|
@@ -1076,7 +1077,6 @@ export declare const weatherPlannerResponseSchema: z.ZodObject<{
|
|
|
1076
1077
|
};
|
|
1077
1078
|
}[];
|
|
1078
1079
|
}[];
|
|
1079
|
-
farmId: string;
|
|
1080
1080
|
generatedAt: string;
|
|
1081
1081
|
};
|
|
1082
1082
|
}>;
|
|
@@ -1085,6 +1085,7 @@ export declare const weatherPlannerResponseSchema: z.ZodObject<{
|
|
|
1085
1085
|
type: "weather-planner";
|
|
1086
1086
|
id: string;
|
|
1087
1087
|
attributes: {
|
|
1088
|
+
farmId: string;
|
|
1088
1089
|
fields: {
|
|
1089
1090
|
cropStage: string | null;
|
|
1090
1091
|
fieldId: string;
|
|
@@ -1107,7 +1108,6 @@ export declare const weatherPlannerResponseSchema: z.ZodObject<{
|
|
|
1107
1108
|
};
|
|
1108
1109
|
}[];
|
|
1109
1110
|
}[];
|
|
1110
|
-
farmId: string;
|
|
1111
1111
|
generatedAt: string;
|
|
1112
1112
|
};
|
|
1113
1113
|
};
|
|
@@ -1116,6 +1116,7 @@ export declare const weatherPlannerResponseSchema: z.ZodObject<{
|
|
|
1116
1116
|
type: "weather-planner";
|
|
1117
1117
|
id: string;
|
|
1118
1118
|
attributes: {
|
|
1119
|
+
farmId: string;
|
|
1119
1120
|
fields: {
|
|
1120
1121
|
cropStage: string | null;
|
|
1121
1122
|
fieldId: string;
|
|
@@ -1138,7 +1139,6 @@ export declare const weatherPlannerResponseSchema: z.ZodObject<{
|
|
|
1138
1139
|
};
|
|
1139
1140
|
}[];
|
|
1140
1141
|
}[];
|
|
1141
|
-
farmId: string;
|
|
1142
1142
|
generatedAt: string;
|
|
1143
1143
|
};
|
|
1144
1144
|
};
|
|
@@ -1279,7 +1279,6 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1279
1279
|
date: string;
|
|
1280
1280
|
id: string;
|
|
1281
1281
|
severity: "low" | "medium" | "high";
|
|
1282
|
-
fieldId?: string | null | undefined;
|
|
1283
1282
|
recommendations?: {
|
|
1284
1283
|
priority: number;
|
|
1285
1284
|
action: string;
|
|
@@ -1302,13 +1301,13 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1302
1301
|
estimatedTime?: string | undefined;
|
|
1303
1302
|
riskLevel?: string | undefined;
|
|
1304
1303
|
}[] | undefined;
|
|
1304
|
+
fieldId?: string | null | undefined;
|
|
1305
1305
|
}, {
|
|
1306
1306
|
type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
|
|
1307
1307
|
message: string;
|
|
1308
1308
|
date: string;
|
|
1309
1309
|
id: string;
|
|
1310
1310
|
severity: "low" | "medium" | "high";
|
|
1311
|
-
fieldId?: string | null | undefined;
|
|
1312
1311
|
recommendations?: {
|
|
1313
1312
|
priority: number;
|
|
1314
1313
|
action: string;
|
|
@@ -1331,6 +1330,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1331
1330
|
estimatedTime?: string | undefined;
|
|
1332
1331
|
riskLevel?: string | undefined;
|
|
1333
1332
|
}[] | undefined;
|
|
1333
|
+
fieldId?: string | null | undefined;
|
|
1334
1334
|
}>, "many">>;
|
|
1335
1335
|
}, "strip", z.ZodTypeAny, {
|
|
1336
1336
|
farmId: string;
|
|
@@ -1354,7 +1354,6 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1354
1354
|
date: string;
|
|
1355
1355
|
id: string;
|
|
1356
1356
|
severity: "low" | "medium" | "high";
|
|
1357
|
-
fieldId?: string | null | undefined;
|
|
1358
1357
|
recommendations?: {
|
|
1359
1358
|
priority: number;
|
|
1360
1359
|
action: string;
|
|
@@ -1377,6 +1376,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1377
1376
|
estimatedTime?: string | undefined;
|
|
1378
1377
|
riskLevel?: string | undefined;
|
|
1379
1378
|
}[] | undefined;
|
|
1379
|
+
fieldId?: string | null | undefined;
|
|
1380
1380
|
}[] | undefined;
|
|
1381
1381
|
}, {
|
|
1382
1382
|
farmId: string;
|
|
@@ -1400,7 +1400,6 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1400
1400
|
date: string;
|
|
1401
1401
|
id: string;
|
|
1402
1402
|
severity: "low" | "medium" | "high";
|
|
1403
|
-
fieldId?: string | null | undefined;
|
|
1404
1403
|
recommendations?: {
|
|
1405
1404
|
priority: number;
|
|
1406
1405
|
action: string;
|
|
@@ -1423,6 +1422,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1423
1422
|
estimatedTime?: string | undefined;
|
|
1424
1423
|
riskLevel?: string | undefined;
|
|
1425
1424
|
}[] | undefined;
|
|
1425
|
+
fieldId?: string | null | undefined;
|
|
1426
1426
|
}[] | undefined;
|
|
1427
1427
|
}>;
|
|
1428
1428
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1453,7 +1453,6 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1453
1453
|
date: string;
|
|
1454
1454
|
id: string;
|
|
1455
1455
|
severity: "low" | "medium" | "high";
|
|
1456
|
-
fieldId?: string | null | undefined;
|
|
1457
1456
|
recommendations?: {
|
|
1458
1457
|
priority: number;
|
|
1459
1458
|
action: string;
|
|
@@ -1476,6 +1475,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1476
1475
|
estimatedTime?: string | undefined;
|
|
1477
1476
|
riskLevel?: string | undefined;
|
|
1478
1477
|
}[] | undefined;
|
|
1478
|
+
fieldId?: string | null | undefined;
|
|
1479
1479
|
}[] | undefined;
|
|
1480
1480
|
};
|
|
1481
1481
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1506,7 +1506,6 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1506
1506
|
date: string;
|
|
1507
1507
|
id: string;
|
|
1508
1508
|
severity: "low" | "medium" | "high";
|
|
1509
|
-
fieldId?: string | null | undefined;
|
|
1510
1509
|
recommendations?: {
|
|
1511
1510
|
priority: number;
|
|
1512
1511
|
action: string;
|
|
@@ -1529,6 +1528,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
|
|
|
1529
1528
|
estimatedTime?: string | undefined;
|
|
1530
1529
|
riskLevel?: string | undefined;
|
|
1531
1530
|
}[] | undefined;
|
|
1531
|
+
fieldId?: string | null | undefined;
|
|
1532
1532
|
}[] | undefined;
|
|
1533
1533
|
};
|
|
1534
1534
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1672,7 +1672,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1672
1672
|
date: string;
|
|
1673
1673
|
id: string;
|
|
1674
1674
|
severity: "low" | "medium" | "high";
|
|
1675
|
-
fieldId?: string | null | undefined;
|
|
1676
1675
|
recommendations?: {
|
|
1677
1676
|
priority: number;
|
|
1678
1677
|
action: string;
|
|
@@ -1695,13 +1694,13 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1695
1694
|
estimatedTime?: string | undefined;
|
|
1696
1695
|
riskLevel?: string | undefined;
|
|
1697
1696
|
}[] | undefined;
|
|
1697
|
+
fieldId?: string | null | undefined;
|
|
1698
1698
|
}, {
|
|
1699
1699
|
type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
|
|
1700
1700
|
message: string;
|
|
1701
1701
|
date: string;
|
|
1702
1702
|
id: string;
|
|
1703
1703
|
severity: "low" | "medium" | "high";
|
|
1704
|
-
fieldId?: string | null | undefined;
|
|
1705
1704
|
recommendations?: {
|
|
1706
1705
|
priority: number;
|
|
1707
1706
|
action: string;
|
|
@@ -1724,6 +1723,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1724
1723
|
estimatedTime?: string | undefined;
|
|
1725
1724
|
riskLevel?: string | undefined;
|
|
1726
1725
|
}[] | undefined;
|
|
1726
|
+
fieldId?: string | null | undefined;
|
|
1727
1727
|
}>, "many">>;
|
|
1728
1728
|
}, "strip", z.ZodTypeAny, {
|
|
1729
1729
|
farmId: string;
|
|
@@ -1747,7 +1747,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1747
1747
|
date: string;
|
|
1748
1748
|
id: string;
|
|
1749
1749
|
severity: "low" | "medium" | "high";
|
|
1750
|
-
fieldId?: string | null | undefined;
|
|
1751
1750
|
recommendations?: {
|
|
1752
1751
|
priority: number;
|
|
1753
1752
|
action: string;
|
|
@@ -1770,6 +1769,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1770
1769
|
estimatedTime?: string | undefined;
|
|
1771
1770
|
riskLevel?: string | undefined;
|
|
1772
1771
|
}[] | undefined;
|
|
1772
|
+
fieldId?: string | null | undefined;
|
|
1773
1773
|
}[] | undefined;
|
|
1774
1774
|
}, {
|
|
1775
1775
|
farmId: string;
|
|
@@ -1793,7 +1793,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1793
1793
|
date: string;
|
|
1794
1794
|
id: string;
|
|
1795
1795
|
severity: "low" | "medium" | "high";
|
|
1796
|
-
fieldId?: string | null | undefined;
|
|
1797
1796
|
recommendations?: {
|
|
1798
1797
|
priority: number;
|
|
1799
1798
|
action: string;
|
|
@@ -1816,6 +1815,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1816
1815
|
estimatedTime?: string | undefined;
|
|
1817
1816
|
riskLevel?: string | undefined;
|
|
1818
1817
|
}[] | undefined;
|
|
1818
|
+
fieldId?: string | null | undefined;
|
|
1819
1819
|
}[] | undefined;
|
|
1820
1820
|
}>;
|
|
1821
1821
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1846,7 +1846,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1846
1846
|
date: string;
|
|
1847
1847
|
id: string;
|
|
1848
1848
|
severity: "low" | "medium" | "high";
|
|
1849
|
-
fieldId?: string | null | undefined;
|
|
1850
1849
|
recommendations?: {
|
|
1851
1850
|
priority: number;
|
|
1852
1851
|
action: string;
|
|
@@ -1869,6 +1868,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1869
1868
|
estimatedTime?: string | undefined;
|
|
1870
1869
|
riskLevel?: string | undefined;
|
|
1871
1870
|
}[] | undefined;
|
|
1871
|
+
fieldId?: string | null | undefined;
|
|
1872
1872
|
}[] | undefined;
|
|
1873
1873
|
};
|
|
1874
1874
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1899,7 +1899,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1899
1899
|
date: string;
|
|
1900
1900
|
id: string;
|
|
1901
1901
|
severity: "low" | "medium" | "high";
|
|
1902
|
-
fieldId?: string | null | undefined;
|
|
1903
1902
|
recommendations?: {
|
|
1904
1903
|
priority: number;
|
|
1905
1904
|
action: string;
|
|
@@ -1922,6 +1921,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1922
1921
|
estimatedTime?: string | undefined;
|
|
1923
1922
|
riskLevel?: string | undefined;
|
|
1924
1923
|
}[] | undefined;
|
|
1924
|
+
fieldId?: string | null | undefined;
|
|
1925
1925
|
}[] | undefined;
|
|
1926
1926
|
};
|
|
1927
1927
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1978,7 +1978,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
1978
1978
|
date: string;
|
|
1979
1979
|
id: string;
|
|
1980
1980
|
severity: "low" | "medium" | "high";
|
|
1981
|
-
fieldId?: string | null | undefined;
|
|
1982
1981
|
recommendations?: {
|
|
1983
1982
|
priority: number;
|
|
1984
1983
|
action: string;
|
|
@@ -2001,6 +2000,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
2001
2000
|
estimatedTime?: string | undefined;
|
|
2002
2001
|
riskLevel?: string | undefined;
|
|
2003
2002
|
}[] | undefined;
|
|
2003
|
+
fieldId?: string | null | undefined;
|
|
2004
2004
|
}[] | undefined;
|
|
2005
2005
|
};
|
|
2006
2006
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -2043,7 +2043,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
2043
2043
|
date: string;
|
|
2044
2044
|
id: string;
|
|
2045
2045
|
severity: "low" | "medium" | "high";
|
|
2046
|
-
fieldId?: string | null | undefined;
|
|
2047
2046
|
recommendations?: {
|
|
2048
2047
|
priority: number;
|
|
2049
2048
|
action: string;
|
|
@@ -2066,6 +2065,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
|
|
|
2066
2065
|
estimatedTime?: string | undefined;
|
|
2067
2066
|
riskLevel?: string | undefined;
|
|
2068
2067
|
}[] | undefined;
|
|
2068
|
+
fieldId?: string | null | undefined;
|
|
2069
2069
|
}[] | undefined;
|
|
2070
2070
|
};
|
|
2071
2071
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -421,10 +421,6 @@ export declare const yieldPredictionSchema: z.ZodObject<{
|
|
|
421
421
|
}>;
|
|
422
422
|
lastUpdated: z.ZodString;
|
|
423
423
|
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
plantingDate: string;
|
|
425
|
-
expectedHarvestDate: string | null;
|
|
426
|
-
fieldId: string;
|
|
427
|
-
fieldName: string;
|
|
428
424
|
recommendations: {
|
|
429
425
|
title: string;
|
|
430
426
|
description: string;
|
|
@@ -433,6 +429,10 @@ export declare const yieldPredictionSchema: z.ZodObject<{
|
|
|
433
429
|
expectedImpact: string | null;
|
|
434
430
|
actions: string[];
|
|
435
431
|
}[];
|
|
432
|
+
plantingDate: string;
|
|
433
|
+
expectedHarvestDate: string | null;
|
|
434
|
+
fieldId: string;
|
|
435
|
+
fieldName: string;
|
|
436
436
|
dataQuality: {
|
|
437
437
|
vegetationDataPoints: number;
|
|
438
438
|
latestVegetationDate: string | null;
|
|
@@ -503,10 +503,6 @@ export declare const yieldPredictionSchema: z.ZodObject<{
|
|
|
503
503
|
contribution: number;
|
|
504
504
|
}[];
|
|
505
505
|
}, {
|
|
506
|
-
plantingDate: string;
|
|
507
|
-
expectedHarvestDate: string | null;
|
|
508
|
-
fieldId: string;
|
|
509
|
-
fieldName: string;
|
|
510
506
|
recommendations: {
|
|
511
507
|
title: string;
|
|
512
508
|
description: string;
|
|
@@ -515,6 +511,10 @@ export declare const yieldPredictionSchema: z.ZodObject<{
|
|
|
515
511
|
expectedImpact: string | null;
|
|
516
512
|
actions: string[];
|
|
517
513
|
}[];
|
|
514
|
+
plantingDate: string;
|
|
515
|
+
expectedHarvestDate: string | null;
|
|
516
|
+
fieldId: string;
|
|
517
|
+
fieldName: string;
|
|
518
518
|
dataQuality: {
|
|
519
519
|
vegetationDataPoints: number;
|
|
520
520
|
latestVegetationDate: string | null;
|