@deepintel-ltd/farmpro-contracts 1.11.9 → 1.11.11
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 +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/routes/agents.routes.d.ts +509 -0
- package/dist/routes/agents.routes.d.ts.map +1 -1
- package/dist/routes/agents.routes.js +19 -1
- package/dist/routes/fields.routes.d.ts +7 -0
- package/dist/routes/fields.routes.d.ts.map +1 -1
- package/dist/routes/index.d.ts +3 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +2 -0
- package/dist/routes/market-intelligence.routes.d.ts +364 -0
- package/dist/routes/market-intelligence.routes.d.ts.map +1 -0
- package/dist/routes/market-intelligence.routes.js +45 -0
- package/dist/schemas/agents.schemas.d.ts +198 -0
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.js +14 -0
- package/dist/schemas/fields.schemas.d.ts +8 -0
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +2 -0
- package/package.json +1 -1
|
@@ -972,6 +972,197 @@ export declare const conversationListResponseSchema: z.ZodObject<{
|
|
|
972
972
|
meta?: Record<string, unknown> | undefined;
|
|
973
973
|
}[] | undefined;
|
|
974
974
|
}>;
|
|
975
|
+
export declare const updateConversationTitleRequestSchema: z.ZodObject<{
|
|
976
|
+
title: z.ZodString;
|
|
977
|
+
}, "strip", z.ZodTypeAny, {
|
|
978
|
+
title: string;
|
|
979
|
+
}, {
|
|
980
|
+
title: string;
|
|
981
|
+
}>;
|
|
982
|
+
export declare const conversationResourceAttributesSchema: z.ZodObject<{
|
|
983
|
+
title: z.ZodNullable<z.ZodString>;
|
|
984
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
985
|
+
farmId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
986
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
987
|
+
}, "strip", z.ZodTypeAny, {
|
|
988
|
+
title: string | null;
|
|
989
|
+
updatedAt?: string | undefined;
|
|
990
|
+
summary?: string | null | undefined;
|
|
991
|
+
farmId?: string | null | undefined;
|
|
992
|
+
}, {
|
|
993
|
+
title: string | null;
|
|
994
|
+
updatedAt?: string | undefined;
|
|
995
|
+
summary?: string | null | undefined;
|
|
996
|
+
farmId?: string | null | undefined;
|
|
997
|
+
}>;
|
|
998
|
+
export declare const conversationResourceSchema: z.ZodObject<{
|
|
999
|
+
type: z.ZodLiteral<string>;
|
|
1000
|
+
id: z.ZodString;
|
|
1001
|
+
attributes: z.ZodObject<{
|
|
1002
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1003
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1004
|
+
farmId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1005
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1006
|
+
}, "strip", z.ZodTypeAny, {
|
|
1007
|
+
title: string | null;
|
|
1008
|
+
updatedAt?: string | undefined;
|
|
1009
|
+
summary?: string | null | undefined;
|
|
1010
|
+
farmId?: string | null | undefined;
|
|
1011
|
+
}, {
|
|
1012
|
+
title: string | null;
|
|
1013
|
+
updatedAt?: string | undefined;
|
|
1014
|
+
summary?: string | null | undefined;
|
|
1015
|
+
farmId?: string | null | undefined;
|
|
1016
|
+
}>;
|
|
1017
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1018
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1019
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1020
|
+
}, "strip", z.ZodTypeAny, {
|
|
1021
|
+
type: string;
|
|
1022
|
+
id: string;
|
|
1023
|
+
attributes: {
|
|
1024
|
+
title: string | null;
|
|
1025
|
+
updatedAt?: string | undefined;
|
|
1026
|
+
summary?: string | null | undefined;
|
|
1027
|
+
farmId?: string | null | undefined;
|
|
1028
|
+
};
|
|
1029
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1030
|
+
links?: Record<string, string> | undefined;
|
|
1031
|
+
meta?: Record<string, unknown> | undefined;
|
|
1032
|
+
}, {
|
|
1033
|
+
type: string;
|
|
1034
|
+
id: string;
|
|
1035
|
+
attributes: {
|
|
1036
|
+
title: string | null;
|
|
1037
|
+
updatedAt?: string | undefined;
|
|
1038
|
+
summary?: string | null | undefined;
|
|
1039
|
+
farmId?: string | null | undefined;
|
|
1040
|
+
};
|
|
1041
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1042
|
+
links?: Record<string, string> | undefined;
|
|
1043
|
+
meta?: Record<string, unknown> | undefined;
|
|
1044
|
+
}>;
|
|
1045
|
+
export declare const conversationResponseSchema: z.ZodObject<{
|
|
1046
|
+
data: z.ZodObject<{
|
|
1047
|
+
type: z.ZodLiteral<string>;
|
|
1048
|
+
id: z.ZodString;
|
|
1049
|
+
attributes: z.ZodObject<{
|
|
1050
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1051
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1052
|
+
farmId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1053
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1054
|
+
}, "strip", z.ZodTypeAny, {
|
|
1055
|
+
title: string | null;
|
|
1056
|
+
updatedAt?: string | undefined;
|
|
1057
|
+
summary?: string | null | undefined;
|
|
1058
|
+
farmId?: string | null | undefined;
|
|
1059
|
+
}, {
|
|
1060
|
+
title: string | null;
|
|
1061
|
+
updatedAt?: string | undefined;
|
|
1062
|
+
summary?: string | null | undefined;
|
|
1063
|
+
farmId?: string | null | undefined;
|
|
1064
|
+
}>;
|
|
1065
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1066
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1067
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1068
|
+
}, "strip", z.ZodTypeAny, {
|
|
1069
|
+
type: string;
|
|
1070
|
+
id: string;
|
|
1071
|
+
attributes: {
|
|
1072
|
+
title: string | null;
|
|
1073
|
+
updatedAt?: string | undefined;
|
|
1074
|
+
summary?: string | null | undefined;
|
|
1075
|
+
farmId?: string | null | undefined;
|
|
1076
|
+
};
|
|
1077
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1078
|
+
links?: Record<string, string> | undefined;
|
|
1079
|
+
meta?: Record<string, unknown> | undefined;
|
|
1080
|
+
}, {
|
|
1081
|
+
type: string;
|
|
1082
|
+
id: string;
|
|
1083
|
+
attributes: {
|
|
1084
|
+
title: string | null;
|
|
1085
|
+
updatedAt?: string | undefined;
|
|
1086
|
+
summary?: string | null | undefined;
|
|
1087
|
+
farmId?: string | null | undefined;
|
|
1088
|
+
};
|
|
1089
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1090
|
+
links?: Record<string, string> | undefined;
|
|
1091
|
+
meta?: Record<string, unknown> | undefined;
|
|
1092
|
+
}>;
|
|
1093
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1094
|
+
type: z.ZodString;
|
|
1095
|
+
id: z.ZodString;
|
|
1096
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1097
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1098
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1099
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1100
|
+
}, "strip", z.ZodTypeAny, {
|
|
1101
|
+
type: string;
|
|
1102
|
+
id: string;
|
|
1103
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1104
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1105
|
+
links?: Record<string, string> | undefined;
|
|
1106
|
+
meta?: Record<string, unknown> | undefined;
|
|
1107
|
+
}, {
|
|
1108
|
+
type: string;
|
|
1109
|
+
id: string;
|
|
1110
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1111
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1112
|
+
links?: Record<string, string> | undefined;
|
|
1113
|
+
meta?: Record<string, unknown> | undefined;
|
|
1114
|
+
}>, "many">>;
|
|
1115
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1116
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1117
|
+
}, "strip", z.ZodTypeAny, {
|
|
1118
|
+
data: {
|
|
1119
|
+
type: string;
|
|
1120
|
+
id: string;
|
|
1121
|
+
attributes: {
|
|
1122
|
+
title: string | null;
|
|
1123
|
+
updatedAt?: string | undefined;
|
|
1124
|
+
summary?: string | null | undefined;
|
|
1125
|
+
farmId?: string | null | undefined;
|
|
1126
|
+
};
|
|
1127
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1128
|
+
links?: Record<string, string> | undefined;
|
|
1129
|
+
meta?: Record<string, unknown> | undefined;
|
|
1130
|
+
};
|
|
1131
|
+
links?: Record<string, string> | undefined;
|
|
1132
|
+
meta?: Record<string, unknown> | undefined;
|
|
1133
|
+
included?: {
|
|
1134
|
+
type: string;
|
|
1135
|
+
id: string;
|
|
1136
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1137
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1138
|
+
links?: Record<string, string> | undefined;
|
|
1139
|
+
meta?: Record<string, unknown> | undefined;
|
|
1140
|
+
}[] | undefined;
|
|
1141
|
+
}, {
|
|
1142
|
+
data: {
|
|
1143
|
+
type: string;
|
|
1144
|
+
id: string;
|
|
1145
|
+
attributes: {
|
|
1146
|
+
title: string | null;
|
|
1147
|
+
updatedAt?: string | undefined;
|
|
1148
|
+
summary?: string | null | undefined;
|
|
1149
|
+
farmId?: string | null | undefined;
|
|
1150
|
+
};
|
|
1151
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1152
|
+
links?: Record<string, string> | undefined;
|
|
1153
|
+
meta?: Record<string, unknown> | undefined;
|
|
1154
|
+
};
|
|
1155
|
+
links?: Record<string, string> | undefined;
|
|
1156
|
+
meta?: Record<string, unknown> | undefined;
|
|
1157
|
+
included?: {
|
|
1158
|
+
type: string;
|
|
1159
|
+
id: string;
|
|
1160
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1161
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1162
|
+
links?: Record<string, string> | undefined;
|
|
1163
|
+
meta?: Record<string, unknown> | undefined;
|
|
1164
|
+
}[] | undefined;
|
|
1165
|
+
}>;
|
|
975
1166
|
export declare const geojsonCrsSchema: z.ZodObject<{
|
|
976
1167
|
type: z.ZodLiteral<"name">;
|
|
977
1168
|
properties: z.ZodObject<{
|
|
@@ -3483,13 +3674,17 @@ export declare const farmBrainProposedActionSchema: z.ZodObject<{
|
|
|
3483
3674
|
}>;
|
|
3484
3675
|
export declare const farmBrainChatRequestSchema: z.ZodObject<{
|
|
3485
3676
|
message: z.ZodString;
|
|
3677
|
+
/** Continue an existing AgentConversation when set */
|
|
3678
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3486
3679
|
/** When true (default), write actions are proposals only until Accept */
|
|
3487
3680
|
supervisedMode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3488
3681
|
}, "strip", z.ZodTypeAny, {
|
|
3489
3682
|
message: string;
|
|
3490
3683
|
supervisedMode: boolean;
|
|
3684
|
+
conversationId?: string | undefined;
|
|
3491
3685
|
}, {
|
|
3492
3686
|
message: string;
|
|
3687
|
+
conversationId?: string | undefined;
|
|
3493
3688
|
supervisedMode?: boolean | undefined;
|
|
3494
3689
|
}>;
|
|
3495
3690
|
export declare const farmBrainChatResponseSchema: z.ZodObject<{
|
|
@@ -3680,14 +3875,17 @@ export declare const dailyBriefingResponseSchema: z.ZodObject<{
|
|
|
3680
3875
|
export declare const farmBrainLocalizedRequestSchema: z.ZodObject<{
|
|
3681
3876
|
message: z.ZodString;
|
|
3682
3877
|
language: z.ZodString;
|
|
3878
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3683
3879
|
supervisedMode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3684
3880
|
}, "strip", z.ZodTypeAny, {
|
|
3685
3881
|
message: string;
|
|
3686
3882
|
language: string;
|
|
3687
3883
|
supervisedMode: boolean;
|
|
3884
|
+
conversationId?: string | undefined;
|
|
3688
3885
|
}, {
|
|
3689
3886
|
message: string;
|
|
3690
3887
|
language: string;
|
|
3888
|
+
conversationId?: string | undefined;
|
|
3691
3889
|
supervisedMode?: boolean | undefined;
|
|
3692
3890
|
}>;
|
|
3693
3891
|
export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/agents.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB,kCAAgC,CAAC;AAG/D,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQtC,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AAGH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI5C,CAAC;AAGH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -75,6 +75,17 @@ export const conversationListAttributesSchema = z.object({
|
|
|
75
75
|
export const conversationListResourceSchema = createJsonApiResourceSchema('conversation-lists', conversationListAttributesSchema);
|
|
76
76
|
// Conversation list response
|
|
77
77
|
export const conversationListResponseSchema = jsonApiSingleResponseSchema(conversationListResourceSchema);
|
|
78
|
+
export const updateConversationTitleRequestSchema = z.object({
|
|
79
|
+
title: z.string().min(1).max(200),
|
|
80
|
+
});
|
|
81
|
+
export const conversationResourceAttributesSchema = z.object({
|
|
82
|
+
title: z.string().nullable(),
|
|
83
|
+
summary: z.string().nullable().optional(),
|
|
84
|
+
farmId: z.string().uuid().nullable().optional(),
|
|
85
|
+
updatedAt: z.string().datetime().optional(),
|
|
86
|
+
});
|
|
87
|
+
export const conversationResourceSchema = createJsonApiResourceSchema('conversations', conversationResourceAttributesSchema);
|
|
88
|
+
export const conversationResponseSchema = jsonApiSingleResponseSchema(conversationResourceSchema);
|
|
78
89
|
// Survey GeoJSON schemas
|
|
79
90
|
export const geojsonCrsSchema = z.object({
|
|
80
91
|
type: z.literal('name'),
|
|
@@ -274,6 +285,8 @@ export const farmBrainProposedActionSchema = z.object({
|
|
|
274
285
|
});
|
|
275
286
|
export const farmBrainChatRequestSchema = z.object({
|
|
276
287
|
message: z.string().min(1).max(5000),
|
|
288
|
+
/** Continue an existing AgentConversation when set */
|
|
289
|
+
conversationId: z.string().uuid().optional(),
|
|
277
290
|
/** When true (default), write actions are proposals only until Accept */
|
|
278
291
|
supervisedMode: z.boolean().optional().default(true),
|
|
279
292
|
});
|
|
@@ -305,6 +318,7 @@ export const dailyBriefingResponseSchema = z.object({
|
|
|
305
318
|
export const farmBrainLocalizedRequestSchema = z.object({
|
|
306
319
|
message: z.string().min(1).max(5000),
|
|
307
320
|
language: z.string().min(2).max(20), // e.g. en, fr, sw, yo, ha, am
|
|
321
|
+
conversationId: z.string().uuid().optional(),
|
|
308
322
|
supervisedMode: z.boolean().optional().default(true),
|
|
309
323
|
});
|
|
310
324
|
export const farmBrainLocalizedResponseSchema = z.object({
|
|
@@ -228,6 +228,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
228
228
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
229
229
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
230
230
|
}>>>;
|
|
231
|
+
area: z.ZodOptional<z.ZodNumber>;
|
|
231
232
|
currentCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
233
|
plantingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
234
|
expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -264,6 +265,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
264
265
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
265
266
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
266
267
|
} | null | undefined;
|
|
268
|
+
area?: number | undefined;
|
|
267
269
|
currentCrop?: string | null | undefined;
|
|
268
270
|
plantingDate?: string | null | undefined;
|
|
269
271
|
ndvi?: number | undefined;
|
|
@@ -287,6 +289,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
287
289
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
288
290
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
289
291
|
} | null | undefined;
|
|
292
|
+
area?: number | undefined;
|
|
290
293
|
currentCrop?: string | null | undefined;
|
|
291
294
|
plantingDate?: string | null | undefined;
|
|
292
295
|
ndvi?: number | undefined;
|
|
@@ -531,6 +534,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
531
534
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
532
535
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
533
536
|
}>>>;
|
|
537
|
+
area: z.ZodOptional<z.ZodNumber>;
|
|
534
538
|
currentCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
535
539
|
plantingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
536
540
|
expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -567,6 +571,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
567
571
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
568
572
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
569
573
|
} | null | undefined;
|
|
574
|
+
area?: number | undefined;
|
|
570
575
|
currentCrop?: string | null | undefined;
|
|
571
576
|
plantingDate?: string | null | undefined;
|
|
572
577
|
ndvi?: number | undefined;
|
|
@@ -590,6 +595,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
590
595
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
591
596
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
592
597
|
} | null | undefined;
|
|
598
|
+
area?: number | undefined;
|
|
593
599
|
currentCrop?: string | null | undefined;
|
|
594
600
|
plantingDate?: string | null | undefined;
|
|
595
601
|
ndvi?: number | undefined;
|
|
@@ -617,6 +623,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
617
623
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
618
624
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
619
625
|
} | null | undefined;
|
|
626
|
+
area?: number | undefined;
|
|
620
627
|
currentCrop?: string | null | undefined;
|
|
621
628
|
plantingDate?: string | null | undefined;
|
|
622
629
|
ndvi?: number | undefined;
|
|
@@ -644,6 +651,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
644
651
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
645
652
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
646
653
|
} | null | undefined;
|
|
654
|
+
area?: number | undefined;
|
|
647
655
|
currentCrop?: string | null | undefined;
|
|
648
656
|
plantingDate?: string | null | undefined;
|
|
649
657
|
ndvi?: number | undefined;
|
|
@@ -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,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAQjC,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBR,CAAC;AAG3B,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYtC,CAAC;AAGH,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file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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;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -60,6 +60,8 @@ export const updateFieldAttributesSchema = createFieldAttributesSchema
|
|
|
60
60
|
.partial()
|
|
61
61
|
.extend({
|
|
62
62
|
geometry: geoJSONGeometrySchema.nullable().optional(),
|
|
63
|
+
/** Manual area in hectares when geometry is absent or unchanged */
|
|
64
|
+
area: z.number().positive().max(100000).optional(),
|
|
63
65
|
currentCrop: z.string().nullable().optional(),
|
|
64
66
|
plantingDate: z.string().datetime().nullable().optional(),
|
|
65
67
|
expectedHarvestDate: z.string().datetime().nullable().optional(),
|