@deepintel-ltd/farmpro-contracts 1.25.1 → 1.25.2
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/commodity-deals.routes.d.ts +10 -0
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/routes/commodity-deals.routes.js +1 -0
- package/dist/routes/organizations.routes.d.ts +10 -0
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.js +1 -0
- package/dist/routes/prescription-maps.routes.d.ts +279 -136
- package/dist/routes/prescription-maps.routes.d.ts.map +1 -1
- package/dist/routes/prescription-maps.routes.js +2 -1
- package/dist/schemas/prescription-maps.schemas.d.ts +267 -134
- package/dist/schemas/prescription-maps.schemas.d.ts.map +1 -1
- package/dist/schemas/prescription-maps.schemas.js +6 -2
- package/package.json +1 -1
|
@@ -8112,6 +8112,16 @@ export declare const commodityDealsRouter: {
|
|
|
8112
8112
|
id: string;
|
|
8113
8113
|
organizationId: string;
|
|
8114
8114
|
}>;
|
|
8115
|
+
query: z.ZodObject<{
|
|
8116
|
+
'page[number]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8117
|
+
'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8118
|
+
}, "strip", z.ZodTypeAny, {
|
|
8119
|
+
'page[number]'?: number | undefined;
|
|
8120
|
+
'page[size]'?: number | undefined;
|
|
8121
|
+
}, {
|
|
8122
|
+
'page[number]'?: number | undefined;
|
|
8123
|
+
'page[size]'?: number | undefined;
|
|
8124
|
+
}>;
|
|
8115
8125
|
summary: "List landed-cost line items for a deal (audit detail; does not alter margin math)";
|
|
8116
8126
|
method: "GET";
|
|
8117
8127
|
path: "/organizations/:organizationId/commodity-deals/:id/cost-lines";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commodity-deals.routes.d.ts","sourceRoot":"","sources":["../../src/routes/commodity-deals.routes.ts"],"names":[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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwOnF,CAAC"}
|
|
@@ -189,6 +189,7 @@ export const commodityDealsRouter = c.router({
|
|
|
189
189
|
organizationId: z.string().uuid(),
|
|
190
190
|
id: z.string().uuid(),
|
|
191
191
|
}),
|
|
192
|
+
query: jsonApiPaginationQuerySchema,
|
|
192
193
|
responses: {
|
|
193
194
|
200: tradeCostLineListResponseSchema,
|
|
194
195
|
401: jsonApiErrorResponseSchema,
|
|
@@ -2633,6 +2633,16 @@ export declare const organizationsRouter: {
|
|
|
2633
2633
|
}, {
|
|
2634
2634
|
id: string;
|
|
2635
2635
|
}>;
|
|
2636
|
+
query: z.ZodObject<{
|
|
2637
|
+
'page[number]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
2638
|
+
'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
2639
|
+
}, "strip", z.ZodTypeAny, {
|
|
2640
|
+
'page[number]'?: number | undefined;
|
|
2641
|
+
'page[size]'?: number | undefined;
|
|
2642
|
+
}, {
|
|
2643
|
+
'page[number]'?: number | undefined;
|
|
2644
|
+
'page[size]'?: number | undefined;
|
|
2645
|
+
}>;
|
|
2636
2646
|
summary: "List organization contacts";
|
|
2637
2647
|
description: "List contact persons for an organization, including investor/admin role";
|
|
2638
2648
|
method: "GET";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.routes.d.ts","sourceRoot":"","sources":["../../src/routes/organizations.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"organizations.routes.d.ts","sourceRoot":"","sources":["../../src/routes/organizations.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6O9B,CAAC"}
|
|
@@ -99,6 +99,7 @@ export const organizationsRouter = c.router({
|
|
|
99
99
|
method: 'GET',
|
|
100
100
|
path: '/organizations/:id/contacts',
|
|
101
101
|
pathParams: idParamSchema,
|
|
102
|
+
query: jsonApiPaginationQuerySchema,
|
|
102
103
|
responses: {
|
|
103
104
|
200: organizationContactListResponseSchema,
|
|
104
105
|
401: jsonApiErrorResponseSchema,
|
|
@@ -11,158 +11,301 @@ export declare const prescriptionMapsRouter: {
|
|
|
11
11
|
farmId: string;
|
|
12
12
|
fieldId: string;
|
|
13
13
|
}>;
|
|
14
|
+
query: z.ZodObject<{
|
|
15
|
+
'page[number]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
16
|
+
'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
'page[number]'?: number | undefined;
|
|
19
|
+
'page[size]'?: number | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
'page[number]'?: number | undefined;
|
|
22
|
+
'page[size]'?: number | undefined;
|
|
23
|
+
}>;
|
|
14
24
|
summary: "List prescription maps for a field";
|
|
15
25
|
method: "GET";
|
|
16
26
|
path: "/farms/:farmId/fields/:fieldId/prescription-maps";
|
|
17
27
|
responses: {
|
|
18
|
-
200: z.
|
|
19
|
-
|
|
20
|
-
fieldId: z.ZodString;
|
|
21
|
-
name: z.ZodString;
|
|
22
|
-
createdAt: z.ZodString;
|
|
23
|
-
sourceDataType: z.ZodEnum<["ndvi", "soil_moisture", "manual", "multi_layer"]>;
|
|
24
|
-
sourceDate: z.ZodString;
|
|
25
|
-
zones: z.ZodArray<z.ZodObject<{
|
|
28
|
+
200: z.ZodObject<{
|
|
29
|
+
data: z.ZodArray<z.ZodObject<{
|
|
26
30
|
id: z.ZodString;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
fieldId: z.ZodString;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
createdAt: z.ZodString;
|
|
34
|
+
sourceDataType: z.ZodEnum<["ndvi", "soil_moisture", "manual", "multi_layer"]>;
|
|
35
|
+
sourceDate: z.ZodString;
|
|
36
|
+
zones: z.ZodArray<z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
geometry: z.ZodObject<{
|
|
39
|
+
type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
|
|
40
|
+
coordinates: z.ZodUnion<[z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">, z.ZodArray<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">]>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
43
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
44
|
+
}, {
|
|
45
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
46
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
47
|
+
}>;
|
|
48
|
+
zoneType: z.ZodEnum<["high", "medium", "low", "skip"]>;
|
|
49
|
+
ndviRange: z.ZodObject<{
|
|
50
|
+
min: z.ZodNumber;
|
|
51
|
+
max: z.ZodNumber;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
min: number;
|
|
54
|
+
max: number;
|
|
55
|
+
}, {
|
|
56
|
+
min: number;
|
|
57
|
+
max: number;
|
|
58
|
+
}>;
|
|
59
|
+
areaHectares: z.ZodNumber;
|
|
60
|
+
recommendedRate: z.ZodNumber;
|
|
61
|
+
rateUnit: z.ZodString;
|
|
62
|
+
inputType: z.ZodEnum<["fertilizer", "pesticide", "seed", "water"]>;
|
|
63
|
+
inputProduct: z.ZodOptional<z.ZodString>;
|
|
64
|
+
costPerHectare: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
30
66
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
|
|
32
|
-
|
|
67
|
+
id: string;
|
|
68
|
+
geometry: {
|
|
69
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
70
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
71
|
+
};
|
|
72
|
+
areaHectares: number;
|
|
73
|
+
zoneType: "low" | "medium" | "high" | "skip";
|
|
74
|
+
ndviRange: {
|
|
75
|
+
min: number;
|
|
76
|
+
max: number;
|
|
77
|
+
};
|
|
78
|
+
recommendedRate: number;
|
|
79
|
+
rateUnit: string;
|
|
80
|
+
inputType: "fertilizer" | "seed" | "pesticide" | "water";
|
|
81
|
+
totalCost?: number | undefined;
|
|
82
|
+
costPerHectare?: number | undefined;
|
|
83
|
+
inputProduct?: string | undefined;
|
|
33
84
|
}, {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
85
|
+
id: string;
|
|
86
|
+
geometry: {
|
|
87
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
88
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
89
|
+
};
|
|
90
|
+
areaHectares: number;
|
|
91
|
+
zoneType: "low" | "medium" | "high" | "skip";
|
|
92
|
+
ndviRange: {
|
|
93
|
+
min: number;
|
|
94
|
+
max: number;
|
|
95
|
+
};
|
|
96
|
+
recommendedRate: number;
|
|
97
|
+
rateUnit: string;
|
|
98
|
+
inputType: "fertilizer" | "seed" | "pesticide" | "water";
|
|
99
|
+
totalCost?: number | undefined;
|
|
100
|
+
costPerHectare?: number | undefined;
|
|
101
|
+
inputProduct?: string | undefined;
|
|
102
|
+
}>, "many">;
|
|
103
|
+
totalArea: z.ZodNumber;
|
|
104
|
+
totalCost: z.ZodNumber;
|
|
105
|
+
exportFormats: z.ZodArray<z.ZodEnum<["shapefile", "geojson", "iso-xml", "isoxml", "kml", "csv"]>, "many">;
|
|
106
|
+
status: z.ZodEnum<["draft", "approved", "exported", "applied"]>;
|
|
107
|
+
interpolationMethod: z.ZodOptional<z.ZodEnum<["equal_interval", "quantiles", "natural_breaks", "kmeans"]>>;
|
|
108
|
+
zoneCount: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
layerWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
55
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
status: "draft" | "applied" | "approved" | "exported";
|
|
56
112
|
id: string;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
113
|
+
createdAt: string;
|
|
114
|
+
name: string;
|
|
115
|
+
fieldId: string;
|
|
116
|
+
totalCost: number;
|
|
117
|
+
zones: {
|
|
118
|
+
id: string;
|
|
119
|
+
geometry: {
|
|
120
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
121
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
122
|
+
};
|
|
123
|
+
areaHectares: number;
|
|
124
|
+
zoneType: "low" | "medium" | "high" | "skip";
|
|
125
|
+
ndviRange: {
|
|
126
|
+
min: number;
|
|
127
|
+
max: number;
|
|
128
|
+
};
|
|
129
|
+
recommendedRate: number;
|
|
130
|
+
rateUnit: string;
|
|
131
|
+
inputType: "fertilizer" | "seed" | "pesticide" | "water";
|
|
132
|
+
totalCost?: number | undefined;
|
|
133
|
+
costPerHectare?: number | undefined;
|
|
134
|
+
inputProduct?: string | undefined;
|
|
135
|
+
}[];
|
|
136
|
+
totalArea: number;
|
|
137
|
+
sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
|
|
138
|
+
sourceDate: string;
|
|
139
|
+
exportFormats: ("geojson" | "shapefile" | "iso-xml" | "isoxml" | "kml" | "csv")[];
|
|
140
|
+
zoneCount?: number | undefined;
|
|
141
|
+
interpolationMethod?: "equal_interval" | "quantiles" | "natural_breaks" | "kmeans" | undefined;
|
|
142
|
+
layerWeights?: Record<string, number> | undefined;
|
|
73
143
|
}, {
|
|
144
|
+
status: "draft" | "applied" | "approved" | "exported";
|
|
74
145
|
id: string;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
146
|
+
createdAt: string;
|
|
147
|
+
name: string;
|
|
148
|
+
fieldId: string;
|
|
149
|
+
totalCost: number;
|
|
150
|
+
zones: {
|
|
151
|
+
id: string;
|
|
152
|
+
geometry: {
|
|
153
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
154
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
155
|
+
};
|
|
156
|
+
areaHectares: number;
|
|
157
|
+
zoneType: "low" | "medium" | "high" | "skip";
|
|
158
|
+
ndviRange: {
|
|
159
|
+
min: number;
|
|
160
|
+
max: number;
|
|
161
|
+
};
|
|
162
|
+
recommendedRate: number;
|
|
163
|
+
rateUnit: string;
|
|
164
|
+
inputType: "fertilizer" | "seed" | "pesticide" | "water";
|
|
165
|
+
totalCost?: number | undefined;
|
|
166
|
+
costPerHectare?: number | undefined;
|
|
167
|
+
inputProduct?: string | undefined;
|
|
168
|
+
}[];
|
|
169
|
+
totalArea: number;
|
|
170
|
+
sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
|
|
171
|
+
sourceDate: string;
|
|
172
|
+
exportFormats: ("geojson" | "shapefile" | "iso-xml" | "isoxml" | "kml" | "csv")[];
|
|
173
|
+
zoneCount?: number | undefined;
|
|
174
|
+
interpolationMethod?: "equal_interval" | "quantiles" | "natural_breaks" | "kmeans" | undefined;
|
|
175
|
+
layerWeights?: Record<string, number> | undefined;
|
|
91
176
|
}>, "many">;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
177
|
+
meta: z.ZodObject<{
|
|
178
|
+
totalRecords: z.ZodNumber;
|
|
179
|
+
totalPages: z.ZodNumber;
|
|
180
|
+
currentPage: z.ZodNumber;
|
|
181
|
+
pageSize: z.ZodNumber;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
totalRecords: number;
|
|
184
|
+
totalPages: number;
|
|
185
|
+
currentPage: number;
|
|
186
|
+
pageSize: number;
|
|
187
|
+
}, {
|
|
188
|
+
totalRecords: number;
|
|
189
|
+
totalPages: number;
|
|
190
|
+
currentPage: number;
|
|
191
|
+
pageSize: number;
|
|
192
|
+
}>;
|
|
193
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
194
|
+
first: z.ZodOptional<z.ZodString>;
|
|
195
|
+
last: z.ZodOptional<z.ZodString>;
|
|
196
|
+
prev: z.ZodOptional<z.ZodString>;
|
|
197
|
+
next: z.ZodOptional<z.ZodString>;
|
|
198
|
+
self: z.ZodString;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
self: string;
|
|
201
|
+
first?: string | undefined;
|
|
202
|
+
last?: string | undefined;
|
|
203
|
+
prev?: string | undefined;
|
|
204
|
+
next?: string | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
self: string;
|
|
207
|
+
first?: string | undefined;
|
|
208
|
+
last?: string | undefined;
|
|
209
|
+
prev?: string | undefined;
|
|
210
|
+
next?: string | undefined;
|
|
211
|
+
}>>;
|
|
99
212
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
213
|
+
meta: {
|
|
214
|
+
totalRecords: number;
|
|
215
|
+
totalPages: number;
|
|
216
|
+
currentPage: number;
|
|
217
|
+
pageSize: number;
|
|
218
|
+
};
|
|
219
|
+
data: {
|
|
220
|
+
status: "draft" | "applied" | "approved" | "exported";
|
|
107
221
|
id: string;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
222
|
+
createdAt: string;
|
|
223
|
+
name: string;
|
|
224
|
+
fieldId: string;
|
|
225
|
+
totalCost: number;
|
|
226
|
+
zones: {
|
|
227
|
+
id: string;
|
|
228
|
+
geometry: {
|
|
229
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
230
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
231
|
+
};
|
|
232
|
+
areaHectares: number;
|
|
233
|
+
zoneType: "low" | "medium" | "high" | "skip";
|
|
234
|
+
ndviRange: {
|
|
235
|
+
min: number;
|
|
236
|
+
max: number;
|
|
237
|
+
};
|
|
238
|
+
recommendedRate: number;
|
|
239
|
+
rateUnit: string;
|
|
240
|
+
inputType: "fertilizer" | "seed" | "pesticide" | "water";
|
|
241
|
+
totalCost?: number | undefined;
|
|
242
|
+
costPerHectare?: number | undefined;
|
|
243
|
+
inputProduct?: string | undefined;
|
|
244
|
+
}[];
|
|
245
|
+
totalArea: number;
|
|
246
|
+
sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
|
|
247
|
+
sourceDate: string;
|
|
248
|
+
exportFormats: ("geojson" | "shapefile" | "iso-xml" | "isoxml" | "kml" | "csv")[];
|
|
249
|
+
zoneCount?: number | undefined;
|
|
250
|
+
interpolationMethod?: "equal_interval" | "quantiles" | "natural_breaks" | "kmeans" | undefined;
|
|
251
|
+
layerWeights?: Record<string, number> | undefined;
|
|
252
|
+
}[];
|
|
253
|
+
links?: {
|
|
254
|
+
self: string;
|
|
255
|
+
first?: string | undefined;
|
|
256
|
+
last?: string | undefined;
|
|
257
|
+
prev?: string | undefined;
|
|
258
|
+
next?: string | undefined;
|
|
259
|
+
} | undefined;
|
|
132
260
|
}, {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
261
|
+
meta: {
|
|
262
|
+
totalRecords: number;
|
|
263
|
+
totalPages: number;
|
|
264
|
+
currentPage: number;
|
|
265
|
+
pageSize: number;
|
|
266
|
+
};
|
|
267
|
+
data: {
|
|
268
|
+
status: "draft" | "applied" | "approved" | "exported";
|
|
140
269
|
id: string;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
270
|
+
createdAt: string;
|
|
271
|
+
name: string;
|
|
272
|
+
fieldId: string;
|
|
273
|
+
totalCost: number;
|
|
274
|
+
zones: {
|
|
275
|
+
id: string;
|
|
276
|
+
geometry: {
|
|
277
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
278
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
279
|
+
};
|
|
280
|
+
areaHectares: number;
|
|
281
|
+
zoneType: "low" | "medium" | "high" | "skip";
|
|
282
|
+
ndviRange: {
|
|
283
|
+
min: number;
|
|
284
|
+
max: number;
|
|
285
|
+
};
|
|
286
|
+
recommendedRate: number;
|
|
287
|
+
rateUnit: string;
|
|
288
|
+
inputType: "fertilizer" | "seed" | "pesticide" | "water";
|
|
289
|
+
totalCost?: number | undefined;
|
|
290
|
+
costPerHectare?: number | undefined;
|
|
291
|
+
inputProduct?: string | undefined;
|
|
292
|
+
}[];
|
|
293
|
+
totalArea: number;
|
|
294
|
+
sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
|
|
295
|
+
sourceDate: string;
|
|
296
|
+
exportFormats: ("geojson" | "shapefile" | "iso-xml" | "isoxml" | "kml" | "csv")[];
|
|
297
|
+
zoneCount?: number | undefined;
|
|
298
|
+
interpolationMethod?: "equal_interval" | "quantiles" | "natural_breaks" | "kmeans" | undefined;
|
|
299
|
+
layerWeights?: Record<string, number> | undefined;
|
|
300
|
+
}[];
|
|
301
|
+
links?: {
|
|
302
|
+
self: string;
|
|
303
|
+
first?: string | undefined;
|
|
304
|
+
last?: string | undefined;
|
|
305
|
+
prev?: string | undefined;
|
|
306
|
+
next?: string | undefined;
|
|
307
|
+
} | undefined;
|
|
308
|
+
}>;
|
|
166
309
|
403: z.ZodObject<{
|
|
167
310
|
errors: z.ZodArray<z.ZodObject<{
|
|
168
311
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prescription-maps.routes.d.ts","sourceRoot":"","sources":["../../src/routes/prescription-maps.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"prescription-maps.routes.d.ts","sourceRoot":"","sources":["../../src/routes/prescription-maps.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6JjC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { initContract } from '@ts-rest/core';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { prescriptionMapListResponseSchema, prescriptionMapSingleResponseSchema, createPrescriptionMapBodySchema, updatePrescriptionStatusBodySchema, generateZonesRequestSchema, aiGeneratePrescriptionRequestSchema, zoneStatsResponseSchema, exportRequestSchema, exportResponseSchema, exportListResponseSchema, } from '../schemas/prescription-maps.schemas';
|
|
4
|
-
import { jsonApiErrorResponseSchema } from '../schemas/common.schemas';
|
|
4
|
+
import { jsonApiErrorResponseSchema, jsonApiPaginationQuerySchema, } from '../schemas/common.schemas';
|
|
5
5
|
const c = initContract();
|
|
6
6
|
export const prescriptionMapsRouter = c.router({
|
|
7
7
|
// ==========================================================================
|
|
@@ -14,6 +14,7 @@ export const prescriptionMapsRouter = c.router({
|
|
|
14
14
|
farmId: z.string().uuid(),
|
|
15
15
|
fieldId: z.string().uuid(),
|
|
16
16
|
}),
|
|
17
|
+
query: jsonApiPaginationQuerySchema,
|
|
17
18
|
responses: {
|
|
18
19
|
200: prescriptionMapListResponseSchema,
|
|
19
20
|
403: jsonApiErrorResponseSchema,
|
|
@@ -339,154 +339,287 @@ export declare const updatePrescriptionStatusBodySchema: z.ZodObject<{
|
|
|
339
339
|
}, {
|
|
340
340
|
status: "draft" | "applied" | "approved" | "exported";
|
|
341
341
|
}>;
|
|
342
|
-
export declare const prescriptionMapListResponseSchema: z.
|
|
343
|
-
|
|
344
|
-
fieldId: z.ZodString;
|
|
345
|
-
name: z.ZodString;
|
|
346
|
-
createdAt: z.ZodString;
|
|
347
|
-
sourceDataType: z.ZodEnum<["ndvi", "soil_moisture", "manual", "multi_layer"]>;
|
|
348
|
-
sourceDate: z.ZodString;
|
|
349
|
-
zones: z.ZodArray<z.ZodObject<{
|
|
342
|
+
export declare const prescriptionMapListResponseSchema: z.ZodObject<{
|
|
343
|
+
data: z.ZodArray<z.ZodObject<{
|
|
350
344
|
id: z.ZodString;
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
345
|
+
fieldId: z.ZodString;
|
|
346
|
+
name: z.ZodString;
|
|
347
|
+
createdAt: z.ZodString;
|
|
348
|
+
sourceDataType: z.ZodEnum<["ndvi", "soil_moisture", "manual", "multi_layer"]>;
|
|
349
|
+
sourceDate: z.ZodString;
|
|
350
|
+
zones: z.ZodArray<z.ZodObject<{
|
|
351
|
+
id: z.ZodString;
|
|
352
|
+
geometry: z.ZodObject<{
|
|
353
|
+
type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
|
|
354
|
+
coordinates: z.ZodUnion<[z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">, z.ZodArray<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">]>;
|
|
355
|
+
}, "strip", z.ZodTypeAny, {
|
|
356
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
357
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
358
|
+
}, {
|
|
359
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
360
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
361
|
+
}>;
|
|
362
|
+
zoneType: z.ZodEnum<["high", "medium", "low", "skip"]>;
|
|
363
|
+
ndviRange: z.ZodObject<{
|
|
364
|
+
min: z.ZodNumber;
|
|
365
|
+
max: z.ZodNumber;
|
|
366
|
+
}, "strip", z.ZodTypeAny, {
|
|
367
|
+
min: number;
|
|
368
|
+
max: number;
|
|
369
|
+
}, {
|
|
370
|
+
min: number;
|
|
371
|
+
max: number;
|
|
372
|
+
}>;
|
|
373
|
+
areaHectares: z.ZodNumber;
|
|
374
|
+
recommendedRate: z.ZodNumber;
|
|
375
|
+
rateUnit: z.ZodString;
|
|
376
|
+
inputType: z.ZodEnum<["fertilizer", "pesticide", "seed", "water"]>;
|
|
377
|
+
inputProduct: z.ZodOptional<z.ZodString>;
|
|
378
|
+
costPerHectare: z.ZodOptional<z.ZodNumber>;
|
|
379
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
365
380
|
}, "strip", z.ZodTypeAny, {
|
|
366
|
-
|
|
367
|
-
|
|
381
|
+
id: string;
|
|
382
|
+
geometry: {
|
|
383
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
384
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
385
|
+
};
|
|
386
|
+
areaHectares: number;
|
|
387
|
+
zoneType: "low" | "medium" | "high" | "skip";
|
|
388
|
+
ndviRange: {
|
|
389
|
+
min: number;
|
|
390
|
+
max: number;
|
|
391
|
+
};
|
|
392
|
+
recommendedRate: number;
|
|
393
|
+
rateUnit: string;
|
|
394
|
+
inputType: "fertilizer" | "seed" | "pesticide" | "water";
|
|
395
|
+
totalCost?: number | undefined;
|
|
396
|
+
costPerHectare?: number | undefined;
|
|
397
|
+
inputProduct?: string | undefined;
|
|
368
398
|
}, {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
399
|
+
id: string;
|
|
400
|
+
geometry: {
|
|
401
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
402
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
403
|
+
};
|
|
404
|
+
areaHectares: number;
|
|
405
|
+
zoneType: "low" | "medium" | "high" | "skip";
|
|
406
|
+
ndviRange: {
|
|
407
|
+
min: number;
|
|
408
|
+
max: number;
|
|
409
|
+
};
|
|
410
|
+
recommendedRate: number;
|
|
411
|
+
rateUnit: string;
|
|
412
|
+
inputType: "fertilizer" | "seed" | "pesticide" | "water";
|
|
413
|
+
totalCost?: number | undefined;
|
|
414
|
+
costPerHectare?: number | undefined;
|
|
415
|
+
inputProduct?: string | undefined;
|
|
416
|
+
}>, "many">;
|
|
417
|
+
totalArea: z.ZodNumber;
|
|
418
|
+
totalCost: z.ZodNumber;
|
|
419
|
+
exportFormats: z.ZodArray<z.ZodEnum<["shapefile", "geojson", "iso-xml", "isoxml", "kml", "csv"]>, "many">;
|
|
420
|
+
status: z.ZodEnum<["draft", "approved", "exported", "applied"]>;
|
|
421
|
+
interpolationMethod: z.ZodOptional<z.ZodEnum<["equal_interval", "quantiles", "natural_breaks", "kmeans"]>>;
|
|
422
|
+
zoneCount: z.ZodOptional<z.ZodNumber>;
|
|
423
|
+
layerWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
379
424
|
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
status: "draft" | "applied" | "approved" | "exported";
|
|
380
426
|
id: string;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
427
|
+
createdAt: string;
|
|
428
|
+
name: string;
|
|
429
|
+
fieldId: string;
|
|
430
|
+
totalCost: number;
|
|
431
|
+
zones: {
|
|
432
|
+
id: string;
|
|
433
|
+
geometry: {
|
|
434
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
435
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
436
|
+
};
|
|
437
|
+
areaHectares: number;
|
|
438
|
+
zoneType: "low" | "medium" | "high" | "skip";
|
|
439
|
+
ndviRange: {
|
|
440
|
+
min: number;
|
|
441
|
+
max: number;
|
|
442
|
+
};
|
|
443
|
+
recommendedRate: number;
|
|
444
|
+
rateUnit: string;
|
|
445
|
+
inputType: "fertilizer" | "seed" | "pesticide" | "water";
|
|
446
|
+
totalCost?: number | undefined;
|
|
447
|
+
costPerHectare?: number | undefined;
|
|
448
|
+
inputProduct?: string | undefined;
|
|
449
|
+
}[];
|
|
450
|
+
totalArea: number;
|
|
451
|
+
sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
|
|
452
|
+
sourceDate: string;
|
|
453
|
+
exportFormats: ("geojson" | "shapefile" | "iso-xml" | "isoxml" | "kml" | "csv")[];
|
|
454
|
+
zoneCount?: number | undefined;
|
|
455
|
+
interpolationMethod?: "equal_interval" | "quantiles" | "natural_breaks" | "kmeans" | undefined;
|
|
456
|
+
layerWeights?: Record<string, number> | undefined;
|
|
397
457
|
}, {
|
|
458
|
+
status: "draft" | "applied" | "approved" | "exported";
|
|
398
459
|
id: string;
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
460
|
+
createdAt: string;
|
|
461
|
+
name: string;
|
|
462
|
+
fieldId: string;
|
|
463
|
+
totalCost: number;
|
|
464
|
+
zones: {
|
|
465
|
+
id: string;
|
|
466
|
+
geometry: {
|
|
467
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
468
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
469
|
+
};
|
|
470
|
+
areaHectares: number;
|
|
471
|
+
zoneType: "low" | "medium" | "high" | "skip";
|
|
472
|
+
ndviRange: {
|
|
473
|
+
min: number;
|
|
474
|
+
max: number;
|
|
475
|
+
};
|
|
476
|
+
recommendedRate: number;
|
|
477
|
+
rateUnit: string;
|
|
478
|
+
inputType: "fertilizer" | "seed" | "pesticide" | "water";
|
|
479
|
+
totalCost?: number | undefined;
|
|
480
|
+
costPerHectare?: number | undefined;
|
|
481
|
+
inputProduct?: string | undefined;
|
|
482
|
+
}[];
|
|
483
|
+
totalArea: number;
|
|
484
|
+
sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
|
|
485
|
+
sourceDate: string;
|
|
486
|
+
exportFormats: ("geojson" | "shapefile" | "iso-xml" | "isoxml" | "kml" | "csv")[];
|
|
487
|
+
zoneCount?: number | undefined;
|
|
488
|
+
interpolationMethod?: "equal_interval" | "quantiles" | "natural_breaks" | "kmeans" | undefined;
|
|
489
|
+
layerWeights?: Record<string, number> | undefined;
|
|
415
490
|
}>, "many">;
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
491
|
+
meta: z.ZodObject<{
|
|
492
|
+
totalRecords: z.ZodNumber;
|
|
493
|
+
totalPages: z.ZodNumber;
|
|
494
|
+
currentPage: z.ZodNumber;
|
|
495
|
+
pageSize: z.ZodNumber;
|
|
496
|
+
}, "strip", z.ZodTypeAny, {
|
|
497
|
+
totalRecords: number;
|
|
498
|
+
totalPages: number;
|
|
499
|
+
currentPage: number;
|
|
500
|
+
pageSize: number;
|
|
501
|
+
}, {
|
|
502
|
+
totalRecords: number;
|
|
503
|
+
totalPages: number;
|
|
504
|
+
currentPage: number;
|
|
505
|
+
pageSize: number;
|
|
506
|
+
}>;
|
|
507
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
508
|
+
first: z.ZodOptional<z.ZodString>;
|
|
509
|
+
last: z.ZodOptional<z.ZodString>;
|
|
510
|
+
prev: z.ZodOptional<z.ZodString>;
|
|
511
|
+
next: z.ZodOptional<z.ZodString>;
|
|
512
|
+
self: z.ZodString;
|
|
513
|
+
}, "strip", z.ZodTypeAny, {
|
|
514
|
+
self: string;
|
|
515
|
+
first?: string | undefined;
|
|
516
|
+
last?: string | undefined;
|
|
517
|
+
prev?: string | undefined;
|
|
518
|
+
next?: string | undefined;
|
|
519
|
+
}, {
|
|
520
|
+
self: string;
|
|
521
|
+
first?: string | undefined;
|
|
522
|
+
last?: string | undefined;
|
|
523
|
+
prev?: string | undefined;
|
|
524
|
+
next?: string | undefined;
|
|
525
|
+
}>>;
|
|
423
526
|
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
527
|
+
meta: {
|
|
528
|
+
totalRecords: number;
|
|
529
|
+
totalPages: number;
|
|
530
|
+
currentPage: number;
|
|
531
|
+
pageSize: number;
|
|
532
|
+
};
|
|
533
|
+
data: {
|
|
534
|
+
status: "draft" | "applied" | "approved" | "exported";
|
|
431
535
|
id: string;
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
536
|
+
createdAt: string;
|
|
537
|
+
name: string;
|
|
538
|
+
fieldId: string;
|
|
539
|
+
totalCost: number;
|
|
540
|
+
zones: {
|
|
541
|
+
id: string;
|
|
542
|
+
geometry: {
|
|
543
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
544
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
545
|
+
};
|
|
546
|
+
areaHectares: number;
|
|
547
|
+
zoneType: "low" | "medium" | "high" | "skip";
|
|
548
|
+
ndviRange: {
|
|
549
|
+
min: number;
|
|
550
|
+
max: number;
|
|
551
|
+
};
|
|
552
|
+
recommendedRate: number;
|
|
553
|
+
rateUnit: string;
|
|
554
|
+
inputType: "fertilizer" | "seed" | "pesticide" | "water";
|
|
555
|
+
totalCost?: number | undefined;
|
|
556
|
+
costPerHectare?: number | undefined;
|
|
557
|
+
inputProduct?: string | undefined;
|
|
558
|
+
}[];
|
|
559
|
+
totalArea: number;
|
|
560
|
+
sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
|
|
561
|
+
sourceDate: string;
|
|
562
|
+
exportFormats: ("geojson" | "shapefile" | "iso-xml" | "isoxml" | "kml" | "csv")[];
|
|
563
|
+
zoneCount?: number | undefined;
|
|
564
|
+
interpolationMethod?: "equal_interval" | "quantiles" | "natural_breaks" | "kmeans" | undefined;
|
|
565
|
+
layerWeights?: Record<string, number> | undefined;
|
|
448
566
|
}[];
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
567
|
+
links?: {
|
|
568
|
+
self: string;
|
|
569
|
+
first?: string | undefined;
|
|
570
|
+
last?: string | undefined;
|
|
571
|
+
prev?: string | undefined;
|
|
572
|
+
next?: string | undefined;
|
|
573
|
+
} | undefined;
|
|
456
574
|
}, {
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
575
|
+
meta: {
|
|
576
|
+
totalRecords: number;
|
|
577
|
+
totalPages: number;
|
|
578
|
+
currentPage: number;
|
|
579
|
+
pageSize: number;
|
|
580
|
+
};
|
|
581
|
+
data: {
|
|
582
|
+
status: "draft" | "applied" | "approved" | "exported";
|
|
464
583
|
id: string;
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
584
|
+
createdAt: string;
|
|
585
|
+
name: string;
|
|
586
|
+
fieldId: string;
|
|
587
|
+
totalCost: number;
|
|
588
|
+
zones: {
|
|
589
|
+
id: string;
|
|
590
|
+
geometry: {
|
|
591
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
592
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
593
|
+
};
|
|
594
|
+
areaHectares: number;
|
|
595
|
+
zoneType: "low" | "medium" | "high" | "skip";
|
|
596
|
+
ndviRange: {
|
|
597
|
+
min: number;
|
|
598
|
+
max: number;
|
|
599
|
+
};
|
|
600
|
+
recommendedRate: number;
|
|
601
|
+
rateUnit: string;
|
|
602
|
+
inputType: "fertilizer" | "seed" | "pesticide" | "water";
|
|
603
|
+
totalCost?: number | undefined;
|
|
604
|
+
costPerHectare?: number | undefined;
|
|
605
|
+
inputProduct?: string | undefined;
|
|
606
|
+
}[];
|
|
607
|
+
totalArea: number;
|
|
608
|
+
sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
|
|
609
|
+
sourceDate: string;
|
|
610
|
+
exportFormats: ("geojson" | "shapefile" | "iso-xml" | "isoxml" | "kml" | "csv")[];
|
|
611
|
+
zoneCount?: number | undefined;
|
|
612
|
+
interpolationMethod?: "equal_interval" | "quantiles" | "natural_breaks" | "kmeans" | undefined;
|
|
613
|
+
layerWeights?: Record<string, number> | undefined;
|
|
481
614
|
}[];
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}
|
|
615
|
+
links?: {
|
|
616
|
+
self: string;
|
|
617
|
+
first?: string | undefined;
|
|
618
|
+
last?: string | undefined;
|
|
619
|
+
prev?: string | undefined;
|
|
620
|
+
next?: string | undefined;
|
|
621
|
+
} | undefined;
|
|
622
|
+
}>;
|
|
490
623
|
export declare const prescriptionMapSingleResponseSchema: z.ZodObject<{
|
|
491
624
|
id: z.ZodString;
|
|
492
625
|
fieldId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prescription-maps.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/prescription-maps.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"prescription-maps.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/prescription-maps.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYjC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBhC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;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AiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { geoJSONGeometrySchema } from './common.schemas';
|
|
2
|
+
import { geoJSONGeometrySchema, jsonApiPaginationLinksSchema, jsonApiPaginationMetaSchema, } from './common.schemas';
|
|
3
3
|
// =============================================================================
|
|
4
4
|
// Existing Schemas
|
|
5
5
|
// =============================================================================
|
|
@@ -42,7 +42,11 @@ export const createPrescriptionMapBodySchema = z.object({
|
|
|
42
42
|
export const updatePrescriptionStatusBodySchema = z.object({
|
|
43
43
|
status: z.enum(['draft', 'approved', 'exported', 'applied']),
|
|
44
44
|
});
|
|
45
|
-
export const prescriptionMapListResponseSchema = z.
|
|
45
|
+
export const prescriptionMapListResponseSchema = z.object({
|
|
46
|
+
data: z.array(prescriptionMapSchema),
|
|
47
|
+
meta: jsonApiPaginationMetaSchema,
|
|
48
|
+
links: jsonApiPaginationLinksSchema.optional(),
|
|
49
|
+
});
|
|
46
50
|
export const prescriptionMapSingleResponseSchema = prescriptionMapSchema;
|
|
47
51
|
// =============================================================================
|
|
48
52
|
// Zone Generation Schemas
|