@deepintel-ltd/farmpro-contracts 1.25.0 → 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/admin.routes.d.ts +7 -0
- package/dist/routes/admin.routes.d.ts.map +1 -1
- package/dist/routes/commodity-deals.routes.d.ts +157 -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/routes/purchase-orders.routes.d.ts +3 -0
- package/dist/routes/purchase-orders.routes.d.ts.map +1 -1
- package/dist/routes/purchase-orders.routes.js +1 -0
- package/dist/schemas/admin.schemas.d.ts +15 -0
- package/dist/schemas/admin.schemas.d.ts.map +1 -1
- package/dist/schemas/admin.schemas.js +1 -0
- package/dist/schemas/commodity-deals.schemas.d.ts +78 -0
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +6 -0
- 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
|
@@ -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,
|
|
@@ -10,15 +10,18 @@ export declare const purchaseOrdersRouter: {
|
|
|
10
10
|
}>;
|
|
11
11
|
query: z.ZodObject<{
|
|
12
12
|
status: z.ZodOptional<z.ZodEnum<["draft", "ordered", "received", "cancelled"]>>;
|
|
13
|
+
dealId: z.ZodOptional<z.ZodString>;
|
|
13
14
|
page: z.ZodOptional<z.ZodNumber>;
|
|
14
15
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
15
16
|
}, "strip", z.ZodTypeAny, {
|
|
16
17
|
status?: "received" | "cancelled" | "draft" | "ordered" | undefined;
|
|
17
18
|
pageSize?: number | undefined;
|
|
19
|
+
dealId?: string | undefined;
|
|
18
20
|
page?: number | undefined;
|
|
19
21
|
}, {
|
|
20
22
|
status?: "received" | "cancelled" | "draft" | "ordered" | undefined;
|
|
21
23
|
pageSize?: number | undefined;
|
|
24
|
+
dealId?: string | undefined;
|
|
22
25
|
page?: number | undefined;
|
|
23
26
|
}>;
|
|
24
27
|
summary: "List purchase orders (requires COMMODITY_TRADE)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase-orders.routes.d.ts","sourceRoot":"","sources":["../../src/routes/purchase-orders.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"purchase-orders.routes.d.ts","sourceRoot":"","sources":["../../src/routes/purchase-orders.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,oB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;;;;;;;;;;;;;;;;;CA+C/B,CAAC"}
|
|
@@ -13,6 +13,7 @@ export const purchaseOrdersRouter = c.router({
|
|
|
13
13
|
pathParams: organizationIdParamSchema,
|
|
14
14
|
query: z.object({
|
|
15
15
|
status: z.enum(['draft', 'ordered', 'received', 'cancelled']).optional(),
|
|
16
|
+
dealId: z.string().uuid().optional(),
|
|
16
17
|
page: z.coerce.number().int().positive().optional(),
|
|
17
18
|
pageSize: z.coerce.number().int().positive().max(100).optional(),
|
|
18
19
|
}),
|