@deepintel-ltd/farmpro-contracts 1.7.8 → 1.7.9
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 +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/routes/crop-profile.routes.d.ts +556 -0
- package/dist/routes/crop-profile.routes.d.ts.map +1 -0
- package/dist/routes/crop-profile.routes.js +55 -0
- package/dist/routes/index.d.ts +6 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +4 -0
- package/dist/routes/measurements.routes.d.ts +1081 -0
- package/dist/routes/measurements.routes.d.ts.map +1 -0
- package/dist/routes/measurements.routes.js +69 -0
- package/dist/routes/monitoring-visualization.routes.d.ts +1637 -0
- package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
- package/dist/routes/monitoring-visualization.routes.js +153 -0
- package/dist/routes/prescription-maps.routes.d.ts +1611 -40
- package/dist/routes/prescription-maps.routes.d.ts.map +1 -1
- package/dist/routes/prescription-maps.routes.js +75 -1
- package/dist/schemas/crop-profile.schemas.d.ts +724 -0
- package/dist/schemas/crop-profile.schemas.d.ts.map +1 -0
- package/dist/schemas/crop-profile.schemas.js +84 -0
- package/dist/schemas/measurements.schemas.d.ts +234 -0
- package/dist/schemas/measurements.schemas.d.ts.map +1 -0
- package/dist/schemas/measurements.schemas.js +57 -0
- package/dist/schemas/monitoring-visualization.schemas.d.ts +1703 -0
- package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
- package/dist/schemas/monitoring-visualization.schemas.js +338 -0
- package/dist/schemas/prescription-maps.schemas.d.ts +400 -41
- package/dist/schemas/prescription-maps.schemas.d.ts.map +1 -1
- package/dist/schemas/prescription-maps.schemas.js +95 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module @farmpro/contracts
|
|
7
7
|
*/
|
|
8
8
|
export { apiContract } from './routes';
|
|
9
|
-
export type { ApiContractType, ApiContractDefinition, AuthEndpoints, UsersEndpoints, FarmsEndpoints, FieldsEndpoints, TasksEndpoints, InventoryEndpoints, FinanceEndpoints, HarvestEndpoints, SoilTestsEndpoints, WeatherEndpoints, TeamEndpoints, EquipmentEndpoints, DocumentsEndpoints, SuppliersEndpoints, AnalyticsEndpoints, CategoriesEndpoints, AgentsEndpoints, AgentWorkflowsEndpoints, FieldMonitoringEndpoints, FieldObservationsEndpoints, AdminEndpoints, HealthEndpoints, SeasonalPlansEndpoints, InputUsageEndpoints, PaymentsEndpoints, SubscriptionsEndpoints, OrganizationsEndpoints, WaybillsEndpoints, InvoicesEndpoints, FertigationEndpoints, CropNutrientProfilesEndpoints, FertilizerProductsEndpoints, FertigationSchedulesEndpoints, FertigationEventsEndpoints, FertigationRecommendationsEndpoints, CapitalEndpoints, WhatsAppGatewayEndpoints, MonitoringVisualizationEndpoints, LivestockEndpoints, LivestockGroupsEndpoints, } from './routes';
|
|
9
|
+
export type { ApiContractType, ApiContractDefinition, AuthEndpoints, UsersEndpoints, FarmsEndpoints, FieldsEndpoints, TasksEndpoints, InventoryEndpoints, FinanceEndpoints, HarvestEndpoints, SoilTestsEndpoints, WeatherEndpoints, TeamEndpoints, EquipmentEndpoints, DocumentsEndpoints, SuppliersEndpoints, AnalyticsEndpoints, CategoriesEndpoints, AgentsEndpoints, AgentWorkflowsEndpoints, FieldMonitoringEndpoints, FieldObservationsEndpoints, AdminEndpoints, HealthEndpoints, SeasonalPlansEndpoints, InputUsageEndpoints, PaymentsEndpoints, SubscriptionsEndpoints, OrganizationsEndpoints, WaybillsEndpoints, InvoicesEndpoints, FertigationEndpoints, CropNutrientProfilesEndpoints, FertilizerProductsEndpoints, FertigationSchedulesEndpoints, FertigationEventsEndpoints, FertigationRecommendationsEndpoints, CapitalEndpoints, WhatsAppGatewayEndpoints, MonitoringVisualizationEndpoints, LivestockEndpoints, LivestockGroupsEndpoints, GeofencesEndpoints, LivestockMapEndpoints, PrescriptionMapsEndpoints, MeasurementsEndpoints, CropProfilesEndpoints, } from './routes';
|
|
10
10
|
export { authRouter } from './routes/auth.routes';
|
|
11
11
|
export { usersRouter } from './routes/users.routes';
|
|
12
12
|
export { farmsRouter } from './routes/farms.routes';
|
|
@@ -42,6 +42,11 @@ export { whatsappGatewayRouter } from './routes/whatsapp-gateway.routes';
|
|
|
42
42
|
export { monitoringVisualizationRouter } from './routes/monitoring-visualization.routes';
|
|
43
43
|
export { livestockRouter } from './routes/livestock.routes';
|
|
44
44
|
export { livestockGroupsRouter } from './routes/livestock-groups.routes';
|
|
45
|
+
export { geofencesRouter } from './routes/geofences.routes';
|
|
46
|
+
export { livestockMapRouter } from './routes/livestock-map.routes';
|
|
47
|
+
export { prescriptionMapsRouter } from './routes/prescription-maps.routes';
|
|
48
|
+
export { measurementsRouter } from './routes/measurements.routes';
|
|
49
|
+
export { cropProfilesRouter } from './routes/crop-profile.routes';
|
|
45
50
|
export * from './schemas/common.schemas';
|
|
46
51
|
export * from './schemas/auth.schemas';
|
|
47
52
|
export * from './schemas/users.schemas';
|
|
@@ -78,4 +83,9 @@ export * from './schemas/whatsapp-gateway.schemas';
|
|
|
78
83
|
export * from './schemas/monitoring-visualization.schemas';
|
|
79
84
|
export * from './schemas/livestock.schemas';
|
|
80
85
|
export * from './schemas/livestock-groups.schemas';
|
|
86
|
+
export * from './schemas/geofences.schemas';
|
|
87
|
+
export * from './schemas/livestock-map.schemas';
|
|
88
|
+
export * from './schemas/prescription-maps.schemas';
|
|
89
|
+
export * from './schemas/measurements.schemas';
|
|
90
|
+
export * from './schemas/crop-profile.schemas';
|
|
81
91
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,6BAA6B,EAC7B,2BAA2B,EAC3B,6BAA6B,EAC7B,0BAA0B,EAC1B,mCAAmC,EACnC,gBAAgB,EAChB,wBAAwB,EACxB,gCAAgC,EAChC,kBAAkB,EAClB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,6BAA6B,EAC7B,2BAA2B,EAC3B,6BAA6B,EAC7B,0BAA0B,EAC1B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AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -47,6 +47,11 @@ export { whatsappGatewayRouter } from './routes/whatsapp-gateway.routes';
|
|
|
47
47
|
export { monitoringVisualizationRouter } from './routes/monitoring-visualization.routes';
|
|
48
48
|
export { livestockRouter } from './routes/livestock.routes';
|
|
49
49
|
export { livestockGroupsRouter } from './routes/livestock-groups.routes';
|
|
50
|
+
export { geofencesRouter } from './routes/geofences.routes';
|
|
51
|
+
export { livestockMapRouter } from './routes/livestock-map.routes';
|
|
52
|
+
export { prescriptionMapsRouter } from './routes/prescription-maps.routes';
|
|
53
|
+
export { measurementsRouter } from './routes/measurements.routes';
|
|
54
|
+
export { cropProfilesRouter } from './routes/crop-profile.routes';
|
|
50
55
|
// =============================================================================
|
|
51
56
|
// Schemas
|
|
52
57
|
// =============================================================================
|
|
@@ -86,3 +91,8 @@ export * from './schemas/whatsapp-gateway.schemas';
|
|
|
86
91
|
export * from './schemas/monitoring-visualization.schemas';
|
|
87
92
|
export * from './schemas/livestock.schemas';
|
|
88
93
|
export * from './schemas/livestock-groups.schemas';
|
|
94
|
+
export * from './schemas/geofences.schemas';
|
|
95
|
+
export * from './schemas/livestock-map.schemas';
|
|
96
|
+
export * from './schemas/prescription-maps.schemas';
|
|
97
|
+
export * from './schemas/measurements.schemas';
|
|
98
|
+
export * from './schemas/crop-profile.schemas';
|
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const cropProfilesRouter: {
|
|
3
|
+
list: {
|
|
4
|
+
summary: "List all available crop NDVI profiles";
|
|
5
|
+
method: "GET";
|
|
6
|
+
path: "/crop-profiles";
|
|
7
|
+
responses: {
|
|
8
|
+
200: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
cropType: z.ZodString;
|
|
11
|
+
cropVariety: z.ZodNullable<z.ZodString>;
|
|
12
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
13
|
+
stage: z.ZodString;
|
|
14
|
+
daysFromPlanting: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
15
|
+
healthyRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
16
|
+
warningRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
17
|
+
criticalBelow: z.ZodNumber;
|
|
18
|
+
description: z.ZodOptional<z.ZodString>;
|
|
19
|
+
recommendations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
stage: string;
|
|
22
|
+
daysFromPlanting: [number, number];
|
|
23
|
+
healthyRange: [number, number];
|
|
24
|
+
warningRange: [number, number];
|
|
25
|
+
criticalBelow: number;
|
|
26
|
+
description?: string | undefined;
|
|
27
|
+
recommendations?: string[] | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
stage: string;
|
|
30
|
+
daysFromPlanting: [number, number];
|
|
31
|
+
healthyRange: [number, number];
|
|
32
|
+
warningRange: [number, number];
|
|
33
|
+
criticalBelow: number;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
recommendations?: string[] | undefined;
|
|
36
|
+
}>, "many">;
|
|
37
|
+
alerts: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
38
|
+
condition: z.ZodString;
|
|
39
|
+
message: z.ZodString;
|
|
40
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
41
|
+
severity: z.ZodOptional<z.ZodEnum<["info", "warning", "critical"]>>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
message: string;
|
|
44
|
+
condition: string;
|
|
45
|
+
actions: string[];
|
|
46
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
message: string;
|
|
49
|
+
condition: string;
|
|
50
|
+
actions: string[];
|
|
51
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
52
|
+
}>, "many">>;
|
|
53
|
+
region: z.ZodNullable<z.ZodString>;
|
|
54
|
+
isDefault: z.ZodBoolean;
|
|
55
|
+
source: z.ZodNullable<z.ZodString>;
|
|
56
|
+
totalDays: z.ZodNumber;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
id: string;
|
|
59
|
+
source: string | null;
|
|
60
|
+
alerts: {
|
|
61
|
+
message: string;
|
|
62
|
+
condition: string;
|
|
63
|
+
actions: string[];
|
|
64
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
65
|
+
}[] | null;
|
|
66
|
+
isDefault: boolean;
|
|
67
|
+
cropVariety: string | null;
|
|
68
|
+
cropType: string;
|
|
69
|
+
stages: {
|
|
70
|
+
stage: string;
|
|
71
|
+
daysFromPlanting: [number, number];
|
|
72
|
+
healthyRange: [number, number];
|
|
73
|
+
warningRange: [number, number];
|
|
74
|
+
criticalBelow: number;
|
|
75
|
+
description?: string | undefined;
|
|
76
|
+
recommendations?: string[] | undefined;
|
|
77
|
+
}[];
|
|
78
|
+
region: string | null;
|
|
79
|
+
totalDays: number;
|
|
80
|
+
}, {
|
|
81
|
+
id: string;
|
|
82
|
+
source: string | null;
|
|
83
|
+
alerts: {
|
|
84
|
+
message: string;
|
|
85
|
+
condition: string;
|
|
86
|
+
actions: string[];
|
|
87
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
88
|
+
}[] | null;
|
|
89
|
+
isDefault: boolean;
|
|
90
|
+
cropVariety: string | null;
|
|
91
|
+
cropType: string;
|
|
92
|
+
stages: {
|
|
93
|
+
stage: string;
|
|
94
|
+
daysFromPlanting: [number, number];
|
|
95
|
+
healthyRange: [number, number];
|
|
96
|
+
warningRange: [number, number];
|
|
97
|
+
criticalBelow: number;
|
|
98
|
+
description?: string | undefined;
|
|
99
|
+
recommendations?: string[] | undefined;
|
|
100
|
+
}[];
|
|
101
|
+
region: string | null;
|
|
102
|
+
totalDays: number;
|
|
103
|
+
}>, "many">;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
getByCropType: {
|
|
107
|
+
pathParams: z.ZodObject<{
|
|
108
|
+
cropType: z.ZodString;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
cropType: string;
|
|
111
|
+
}, {
|
|
112
|
+
cropType: string;
|
|
113
|
+
}>;
|
|
114
|
+
query: z.ZodObject<{
|
|
115
|
+
variety: z.ZodOptional<z.ZodString>;
|
|
116
|
+
region: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
variety?: string | undefined;
|
|
119
|
+
region?: string | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
variety?: string | undefined;
|
|
122
|
+
region?: string | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
summary: "Get crop profile by crop type";
|
|
125
|
+
method: "GET";
|
|
126
|
+
path: "/crop-profiles/:cropType";
|
|
127
|
+
responses: {
|
|
128
|
+
200: z.ZodObject<{
|
|
129
|
+
id: z.ZodString;
|
|
130
|
+
cropType: z.ZodString;
|
|
131
|
+
cropVariety: z.ZodNullable<z.ZodString>;
|
|
132
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
133
|
+
stage: z.ZodString;
|
|
134
|
+
daysFromPlanting: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
135
|
+
healthyRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
136
|
+
warningRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
137
|
+
criticalBelow: z.ZodNumber;
|
|
138
|
+
description: z.ZodOptional<z.ZodString>;
|
|
139
|
+
recommendations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
stage: string;
|
|
142
|
+
daysFromPlanting: [number, number];
|
|
143
|
+
healthyRange: [number, number];
|
|
144
|
+
warningRange: [number, number];
|
|
145
|
+
criticalBelow: number;
|
|
146
|
+
description?: string | undefined;
|
|
147
|
+
recommendations?: string[] | undefined;
|
|
148
|
+
}, {
|
|
149
|
+
stage: string;
|
|
150
|
+
daysFromPlanting: [number, number];
|
|
151
|
+
healthyRange: [number, number];
|
|
152
|
+
warningRange: [number, number];
|
|
153
|
+
criticalBelow: number;
|
|
154
|
+
description?: string | undefined;
|
|
155
|
+
recommendations?: string[] | undefined;
|
|
156
|
+
}>, "many">;
|
|
157
|
+
alerts: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
158
|
+
condition: z.ZodString;
|
|
159
|
+
message: z.ZodString;
|
|
160
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
161
|
+
severity: z.ZodOptional<z.ZodEnum<["info", "warning", "critical"]>>;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
message: string;
|
|
164
|
+
condition: string;
|
|
165
|
+
actions: string[];
|
|
166
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
message: string;
|
|
169
|
+
condition: string;
|
|
170
|
+
actions: string[];
|
|
171
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
172
|
+
}>, "many">>;
|
|
173
|
+
region: z.ZodNullable<z.ZodString>;
|
|
174
|
+
isDefault: z.ZodBoolean;
|
|
175
|
+
source: z.ZodNullable<z.ZodString>;
|
|
176
|
+
totalDays: z.ZodNumber;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
id: string;
|
|
179
|
+
source: string | null;
|
|
180
|
+
alerts: {
|
|
181
|
+
message: string;
|
|
182
|
+
condition: string;
|
|
183
|
+
actions: string[];
|
|
184
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
185
|
+
}[] | null;
|
|
186
|
+
isDefault: boolean;
|
|
187
|
+
cropVariety: string | null;
|
|
188
|
+
cropType: string;
|
|
189
|
+
stages: {
|
|
190
|
+
stage: string;
|
|
191
|
+
daysFromPlanting: [number, number];
|
|
192
|
+
healthyRange: [number, number];
|
|
193
|
+
warningRange: [number, number];
|
|
194
|
+
criticalBelow: number;
|
|
195
|
+
description?: string | undefined;
|
|
196
|
+
recommendations?: string[] | undefined;
|
|
197
|
+
}[];
|
|
198
|
+
region: string | null;
|
|
199
|
+
totalDays: number;
|
|
200
|
+
}, {
|
|
201
|
+
id: string;
|
|
202
|
+
source: string | null;
|
|
203
|
+
alerts: {
|
|
204
|
+
message: string;
|
|
205
|
+
condition: string;
|
|
206
|
+
actions: string[];
|
|
207
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
208
|
+
}[] | null;
|
|
209
|
+
isDefault: boolean;
|
|
210
|
+
cropVariety: string | null;
|
|
211
|
+
cropType: string;
|
|
212
|
+
stages: {
|
|
213
|
+
stage: string;
|
|
214
|
+
daysFromPlanting: [number, number];
|
|
215
|
+
healthyRange: [number, number];
|
|
216
|
+
warningRange: [number, number];
|
|
217
|
+
criticalBelow: number;
|
|
218
|
+
description?: string | undefined;
|
|
219
|
+
recommendations?: string[] | undefined;
|
|
220
|
+
}[];
|
|
221
|
+
region: string | null;
|
|
222
|
+
totalDays: number;
|
|
223
|
+
}>;
|
|
224
|
+
404: z.ZodObject<{
|
|
225
|
+
message: z.ZodString;
|
|
226
|
+
code: z.ZodString;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
code: string;
|
|
229
|
+
message: string;
|
|
230
|
+
}, {
|
|
231
|
+
code: string;
|
|
232
|
+
message: string;
|
|
233
|
+
}>;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
getFieldCropProfile: {
|
|
237
|
+
pathParams: z.ZodObject<{
|
|
238
|
+
farmId: z.ZodString;
|
|
239
|
+
fieldId: z.ZodString;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
farmId: string;
|
|
242
|
+
fieldId: string;
|
|
243
|
+
}, {
|
|
244
|
+
farmId: string;
|
|
245
|
+
fieldId: string;
|
|
246
|
+
}>;
|
|
247
|
+
summary: "Get crop profile for field's current crop with stage assessment";
|
|
248
|
+
method: "GET";
|
|
249
|
+
path: "/farms/:farmId/fields/:fieldId/crop-profile";
|
|
250
|
+
responses: {
|
|
251
|
+
200: z.ZodObject<{
|
|
252
|
+
fieldId: z.ZodString;
|
|
253
|
+
cropProfile: z.ZodNullable<z.ZodObject<{
|
|
254
|
+
id: z.ZodString;
|
|
255
|
+
cropType: z.ZodString;
|
|
256
|
+
cropVariety: z.ZodNullable<z.ZodString>;
|
|
257
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
258
|
+
stage: z.ZodString;
|
|
259
|
+
daysFromPlanting: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
260
|
+
healthyRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
261
|
+
warningRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
262
|
+
criticalBelow: z.ZodNumber;
|
|
263
|
+
description: z.ZodOptional<z.ZodString>;
|
|
264
|
+
recommendations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
stage: string;
|
|
267
|
+
daysFromPlanting: [number, number];
|
|
268
|
+
healthyRange: [number, number];
|
|
269
|
+
warningRange: [number, number];
|
|
270
|
+
criticalBelow: number;
|
|
271
|
+
description?: string | undefined;
|
|
272
|
+
recommendations?: string[] | undefined;
|
|
273
|
+
}, {
|
|
274
|
+
stage: string;
|
|
275
|
+
daysFromPlanting: [number, number];
|
|
276
|
+
healthyRange: [number, number];
|
|
277
|
+
warningRange: [number, number];
|
|
278
|
+
criticalBelow: number;
|
|
279
|
+
description?: string | undefined;
|
|
280
|
+
recommendations?: string[] | undefined;
|
|
281
|
+
}>, "many">;
|
|
282
|
+
alerts: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
283
|
+
condition: z.ZodString;
|
|
284
|
+
message: z.ZodString;
|
|
285
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
286
|
+
severity: z.ZodOptional<z.ZodEnum<["info", "warning", "critical"]>>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
message: string;
|
|
289
|
+
condition: string;
|
|
290
|
+
actions: string[];
|
|
291
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
292
|
+
}, {
|
|
293
|
+
message: string;
|
|
294
|
+
condition: string;
|
|
295
|
+
actions: string[];
|
|
296
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
297
|
+
}>, "many">>;
|
|
298
|
+
region: z.ZodNullable<z.ZodString>;
|
|
299
|
+
isDefault: z.ZodBoolean;
|
|
300
|
+
source: z.ZodNullable<z.ZodString>;
|
|
301
|
+
totalDays: z.ZodNumber;
|
|
302
|
+
}, "strip", z.ZodTypeAny, {
|
|
303
|
+
id: string;
|
|
304
|
+
source: string | null;
|
|
305
|
+
alerts: {
|
|
306
|
+
message: string;
|
|
307
|
+
condition: string;
|
|
308
|
+
actions: string[];
|
|
309
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
310
|
+
}[] | null;
|
|
311
|
+
isDefault: boolean;
|
|
312
|
+
cropVariety: string | null;
|
|
313
|
+
cropType: string;
|
|
314
|
+
stages: {
|
|
315
|
+
stage: string;
|
|
316
|
+
daysFromPlanting: [number, number];
|
|
317
|
+
healthyRange: [number, number];
|
|
318
|
+
warningRange: [number, number];
|
|
319
|
+
criticalBelow: number;
|
|
320
|
+
description?: string | undefined;
|
|
321
|
+
recommendations?: string[] | undefined;
|
|
322
|
+
}[];
|
|
323
|
+
region: string | null;
|
|
324
|
+
totalDays: number;
|
|
325
|
+
}, {
|
|
326
|
+
id: string;
|
|
327
|
+
source: string | null;
|
|
328
|
+
alerts: {
|
|
329
|
+
message: string;
|
|
330
|
+
condition: string;
|
|
331
|
+
actions: string[];
|
|
332
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
333
|
+
}[] | null;
|
|
334
|
+
isDefault: boolean;
|
|
335
|
+
cropVariety: string | null;
|
|
336
|
+
cropType: string;
|
|
337
|
+
stages: {
|
|
338
|
+
stage: string;
|
|
339
|
+
daysFromPlanting: [number, number];
|
|
340
|
+
healthyRange: [number, number];
|
|
341
|
+
warningRange: [number, number];
|
|
342
|
+
criticalBelow: number;
|
|
343
|
+
description?: string | undefined;
|
|
344
|
+
recommendations?: string[] | undefined;
|
|
345
|
+
}[];
|
|
346
|
+
region: string | null;
|
|
347
|
+
totalDays: number;
|
|
348
|
+
}>>;
|
|
349
|
+
currentAssessment: z.ZodNullable<z.ZodObject<{
|
|
350
|
+
currentStage: z.ZodString;
|
|
351
|
+
daysSincePlanting: z.ZodNumber;
|
|
352
|
+
daysInStage: z.ZodNumber;
|
|
353
|
+
stageProgress: z.ZodNumber;
|
|
354
|
+
healthStatus: z.ZodEnum<["healthy", "warning", "critical", "unknown"]>;
|
|
355
|
+
currentNdvi: z.ZodNullable<z.ZodNumber>;
|
|
356
|
+
expectedNdviRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
357
|
+
ndviDeviation: z.ZodNullable<z.ZodNumber>;
|
|
358
|
+
recommendations: z.ZodArray<z.ZodString, "many">;
|
|
359
|
+
alerts: z.ZodArray<z.ZodObject<{
|
|
360
|
+
type: z.ZodEnum<["info", "warning", "critical"]>;
|
|
361
|
+
message: z.ZodString;
|
|
362
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
363
|
+
}, "strip", z.ZodTypeAny, {
|
|
364
|
+
type: "critical" | "warning" | "info";
|
|
365
|
+
message: string;
|
|
366
|
+
actions: string[];
|
|
367
|
+
}, {
|
|
368
|
+
type: "critical" | "warning" | "info";
|
|
369
|
+
message: string;
|
|
370
|
+
actions: string[];
|
|
371
|
+
}>, "many">;
|
|
372
|
+
nextStage: z.ZodNullable<z.ZodString>;
|
|
373
|
+
daysToNextStage: z.ZodNullable<z.ZodNumber>;
|
|
374
|
+
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
375
|
+
cropProfile: z.ZodObject<{
|
|
376
|
+
cropType: z.ZodString;
|
|
377
|
+
cropVariety: z.ZodNullable<z.ZodString>;
|
|
378
|
+
region: z.ZodNullable<z.ZodString>;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
cropVariety: string | null;
|
|
381
|
+
cropType: string;
|
|
382
|
+
region: string | null;
|
|
383
|
+
}, {
|
|
384
|
+
cropVariety: string | null;
|
|
385
|
+
cropType: string;
|
|
386
|
+
region: string | null;
|
|
387
|
+
}>;
|
|
388
|
+
}, "strip", z.ZodTypeAny, {
|
|
389
|
+
expectedHarvestDate: string | null;
|
|
390
|
+
recommendations: string[];
|
|
391
|
+
alerts: {
|
|
392
|
+
type: "critical" | "warning" | "info";
|
|
393
|
+
message: string;
|
|
394
|
+
actions: string[];
|
|
395
|
+
}[];
|
|
396
|
+
currentStage: string;
|
|
397
|
+
currentNdvi: number | null;
|
|
398
|
+
daysSincePlanting: number;
|
|
399
|
+
daysInStage: number;
|
|
400
|
+
stageProgress: number;
|
|
401
|
+
healthStatus: "unknown" | "critical" | "warning" | "healthy";
|
|
402
|
+
expectedNdviRange: [number, number];
|
|
403
|
+
ndviDeviation: number | null;
|
|
404
|
+
nextStage: string | null;
|
|
405
|
+
daysToNextStage: number | null;
|
|
406
|
+
cropProfile: {
|
|
407
|
+
cropVariety: string | null;
|
|
408
|
+
cropType: string;
|
|
409
|
+
region: string | null;
|
|
410
|
+
};
|
|
411
|
+
}, {
|
|
412
|
+
expectedHarvestDate: string | null;
|
|
413
|
+
recommendations: string[];
|
|
414
|
+
alerts: {
|
|
415
|
+
type: "critical" | "warning" | "info";
|
|
416
|
+
message: string;
|
|
417
|
+
actions: string[];
|
|
418
|
+
}[];
|
|
419
|
+
currentStage: string;
|
|
420
|
+
currentNdvi: number | null;
|
|
421
|
+
daysSincePlanting: number;
|
|
422
|
+
daysInStage: number;
|
|
423
|
+
stageProgress: number;
|
|
424
|
+
healthStatus: "unknown" | "critical" | "warning" | "healthy";
|
|
425
|
+
expectedNdviRange: [number, number];
|
|
426
|
+
ndviDeviation: number | null;
|
|
427
|
+
nextStage: string | null;
|
|
428
|
+
daysToNextStage: number | null;
|
|
429
|
+
cropProfile: {
|
|
430
|
+
cropVariety: string | null;
|
|
431
|
+
cropType: string;
|
|
432
|
+
region: string | null;
|
|
433
|
+
};
|
|
434
|
+
}>>;
|
|
435
|
+
hasPlantingData: z.ZodBoolean;
|
|
436
|
+
plantingDate: z.ZodNullable<z.ZodString>;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
plantingDate: string | null;
|
|
439
|
+
fieldId: string;
|
|
440
|
+
cropProfile: {
|
|
441
|
+
id: string;
|
|
442
|
+
source: string | null;
|
|
443
|
+
alerts: {
|
|
444
|
+
message: string;
|
|
445
|
+
condition: string;
|
|
446
|
+
actions: string[];
|
|
447
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
448
|
+
}[] | null;
|
|
449
|
+
isDefault: boolean;
|
|
450
|
+
cropVariety: string | null;
|
|
451
|
+
cropType: string;
|
|
452
|
+
stages: {
|
|
453
|
+
stage: string;
|
|
454
|
+
daysFromPlanting: [number, number];
|
|
455
|
+
healthyRange: [number, number];
|
|
456
|
+
warningRange: [number, number];
|
|
457
|
+
criticalBelow: number;
|
|
458
|
+
description?: string | undefined;
|
|
459
|
+
recommendations?: string[] | undefined;
|
|
460
|
+
}[];
|
|
461
|
+
region: string | null;
|
|
462
|
+
totalDays: number;
|
|
463
|
+
} | null;
|
|
464
|
+
currentAssessment: {
|
|
465
|
+
expectedHarvestDate: string | null;
|
|
466
|
+
recommendations: string[];
|
|
467
|
+
alerts: {
|
|
468
|
+
type: "critical" | "warning" | "info";
|
|
469
|
+
message: string;
|
|
470
|
+
actions: string[];
|
|
471
|
+
}[];
|
|
472
|
+
currentStage: string;
|
|
473
|
+
currentNdvi: number | null;
|
|
474
|
+
daysSincePlanting: number;
|
|
475
|
+
daysInStage: number;
|
|
476
|
+
stageProgress: number;
|
|
477
|
+
healthStatus: "unknown" | "critical" | "warning" | "healthy";
|
|
478
|
+
expectedNdviRange: [number, number];
|
|
479
|
+
ndviDeviation: number | null;
|
|
480
|
+
nextStage: string | null;
|
|
481
|
+
daysToNextStage: number | null;
|
|
482
|
+
cropProfile: {
|
|
483
|
+
cropVariety: string | null;
|
|
484
|
+
cropType: string;
|
|
485
|
+
region: string | null;
|
|
486
|
+
};
|
|
487
|
+
} | null;
|
|
488
|
+
hasPlantingData: boolean;
|
|
489
|
+
}, {
|
|
490
|
+
plantingDate: string | null;
|
|
491
|
+
fieldId: string;
|
|
492
|
+
cropProfile: {
|
|
493
|
+
id: string;
|
|
494
|
+
source: string | null;
|
|
495
|
+
alerts: {
|
|
496
|
+
message: string;
|
|
497
|
+
condition: string;
|
|
498
|
+
actions: string[];
|
|
499
|
+
severity?: "critical" | "warning" | "info" | undefined;
|
|
500
|
+
}[] | null;
|
|
501
|
+
isDefault: boolean;
|
|
502
|
+
cropVariety: string | null;
|
|
503
|
+
cropType: string;
|
|
504
|
+
stages: {
|
|
505
|
+
stage: string;
|
|
506
|
+
daysFromPlanting: [number, number];
|
|
507
|
+
healthyRange: [number, number];
|
|
508
|
+
warningRange: [number, number];
|
|
509
|
+
criticalBelow: number;
|
|
510
|
+
description?: string | undefined;
|
|
511
|
+
recommendations?: string[] | undefined;
|
|
512
|
+
}[];
|
|
513
|
+
region: string | null;
|
|
514
|
+
totalDays: number;
|
|
515
|
+
} | null;
|
|
516
|
+
currentAssessment: {
|
|
517
|
+
expectedHarvestDate: string | null;
|
|
518
|
+
recommendations: string[];
|
|
519
|
+
alerts: {
|
|
520
|
+
type: "critical" | "warning" | "info";
|
|
521
|
+
message: string;
|
|
522
|
+
actions: string[];
|
|
523
|
+
}[];
|
|
524
|
+
currentStage: string;
|
|
525
|
+
currentNdvi: number | null;
|
|
526
|
+
daysSincePlanting: number;
|
|
527
|
+
daysInStage: number;
|
|
528
|
+
stageProgress: number;
|
|
529
|
+
healthStatus: "unknown" | "critical" | "warning" | "healthy";
|
|
530
|
+
expectedNdviRange: [number, number];
|
|
531
|
+
ndviDeviation: number | null;
|
|
532
|
+
nextStage: string | null;
|
|
533
|
+
daysToNextStage: number | null;
|
|
534
|
+
cropProfile: {
|
|
535
|
+
cropVariety: string | null;
|
|
536
|
+
cropType: string;
|
|
537
|
+
region: string | null;
|
|
538
|
+
};
|
|
539
|
+
} | null;
|
|
540
|
+
hasPlantingData: boolean;
|
|
541
|
+
}>;
|
|
542
|
+
404: z.ZodObject<{
|
|
543
|
+
message: z.ZodString;
|
|
544
|
+
code: z.ZodString;
|
|
545
|
+
}, "strip", z.ZodTypeAny, {
|
|
546
|
+
code: string;
|
|
547
|
+
message: string;
|
|
548
|
+
}, {
|
|
549
|
+
code: string;
|
|
550
|
+
message: string;
|
|
551
|
+
}>;
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
export type CropProfilesRouter = typeof cropProfilesRouter;
|
|
556
|
+
//# sourceMappingURL=crop-profile.routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crop-profile.routes.d.ts","sourceRoot":"","sources":["../../src/routes/crop-profile.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoD7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC"}
|