@deepintel-ltd/farmpro-contracts 1.7.19 → 1.7.20
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 +16 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/routes/agents.routes.d.ts +6 -6
- package/dist/routes/cooperative.routes.d.ts +1327 -0
- package/dist/routes/cooperative.routes.d.ts.map +1 -0
- package/dist/routes/cooperative.routes.js +47 -0
- package/dist/routes/extension.routes.d.ts +2431 -0
- package/dist/routes/extension.routes.d.ts.map +1 -0
- package/dist/routes/extension.routes.js +75 -0
- package/dist/routes/farms.routes.d.ts +775 -0
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/farms.routes.js +15 -1
- package/dist/routes/field-monitoring.routes.d.ts +505 -0
- package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
- package/dist/routes/field-monitoring.routes.js +23 -1
- package/dist/routes/fields.routes.d.ts +156 -155
- package/dist/routes/fields.routes.d.ts.map +1 -1
- package/dist/routes/index.d.ts +15 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +10 -0
- package/dist/routes/live-monitor.routes.d.ts +513 -0
- package/dist/routes/live-monitor.routes.d.ts.map +1 -0
- package/dist/routes/live-monitor.routes.js +81 -0
- package/dist/routes/livestock-map.routes.d.ts +4 -4
- package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
- package/dist/routes/notifications.routes.d.ts +1350 -0
- package/dist/routes/notifications.routes.d.ts.map +1 -0
- package/dist/routes/notifications.routes.js +66 -0
- package/dist/routes/team-payments.routes.d.ts +9571 -0
- package/dist/routes/team-payments.routes.d.ts.map +1 -0
- package/dist/routes/team-payments.routes.js +262 -0
- package/dist/schemas/agents.schemas.d.ts +1 -0
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/cooperative.schemas.d.ts +560 -0
- package/dist/schemas/cooperative.schemas.d.ts.map +1 -0
- package/dist/schemas/cooperative.schemas.js +71 -0
- package/dist/schemas/extension.schemas.d.ts +1204 -0
- package/dist/schemas/extension.schemas.d.ts.map +1 -0
- package/dist/schemas/extension.schemas.js +68 -0
- package/dist/schemas/farms.schemas.d.ts +591 -0
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +44 -0
- package/dist/schemas/field-monitoring.schemas.d.ts +276 -0
- package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
- package/dist/schemas/field-monitoring.schemas.js +9 -0
- package/dist/schemas/field-observations.schemas.d.ts +1 -0
- package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.d.ts +188 -186
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +10 -2
- package/dist/schemas/live-monitor.schemas.d.ts +596 -0
- package/dist/schemas/live-monitor.schemas.d.ts.map +1 -0
- package/dist/schemas/live-monitor.schemas.js +107 -0
- package/dist/schemas/livestock-map.schemas.d.ts +10 -10
- package/dist/schemas/monitoring-visualization.schemas.d.ts +4 -4
- package/dist/schemas/notifications.schemas.d.ts +464 -0
- package/dist/schemas/notifications.schemas.d.ts.map +1 -0
- package/dist/schemas/notifications.schemas.js +40 -0
- package/dist/schemas/team-payments.schemas.d.ts +2604 -0
- package/dist/schemas/team-payments.schemas.d.ts.map +1 -0
- package/dist/schemas/team-payments.schemas.js +151 -0
- package/package.json +1 -1
|
@@ -2028,6 +2028,781 @@ export declare const farmsRouter: {
|
|
|
2028
2028
|
}>;
|
|
2029
2029
|
};
|
|
2030
2030
|
};
|
|
2031
|
+
completeFarmOnboarding: {
|
|
2032
|
+
summary: "Complete farm onboarding";
|
|
2033
|
+
description: "Create a farm and first field in one transaction, then mark user onboarding complete.";
|
|
2034
|
+
method: "POST";
|
|
2035
|
+
body: z.ZodObject<{
|
|
2036
|
+
data: z.ZodObject<{
|
|
2037
|
+
type: z.ZodLiteral<"farm-onboarding">;
|
|
2038
|
+
attributes: z.ZodObject<{
|
|
2039
|
+
name: z.ZodString;
|
|
2040
|
+
location: z.ZodObject<{
|
|
2041
|
+
state: z.ZodString;
|
|
2042
|
+
lga: z.ZodString;
|
|
2043
|
+
lat: z.ZodNumber;
|
|
2044
|
+
lng: z.ZodNumber;
|
|
2045
|
+
}, "strip", z.ZodTypeAny, {
|
|
2046
|
+
state: string;
|
|
2047
|
+
lga: string;
|
|
2048
|
+
lat: number;
|
|
2049
|
+
lng: number;
|
|
2050
|
+
}, {
|
|
2051
|
+
state: string;
|
|
2052
|
+
lga: string;
|
|
2053
|
+
lat: number;
|
|
2054
|
+
lng: number;
|
|
2055
|
+
}>;
|
|
2056
|
+
boundary: z.ZodObject<{
|
|
2057
|
+
type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
|
|
2058
|
+
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">]>;
|
|
2059
|
+
}, "strip", z.ZodTypeAny, {
|
|
2060
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2061
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2062
|
+
}, {
|
|
2063
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2064
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2065
|
+
}>;
|
|
2066
|
+
firstField: z.ZodObject<{
|
|
2067
|
+
name: z.ZodString;
|
|
2068
|
+
crop: z.ZodString;
|
|
2069
|
+
geometry: z.ZodObject<{
|
|
2070
|
+
type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
|
|
2071
|
+
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">]>;
|
|
2072
|
+
}, "strip", z.ZodTypeAny, {
|
|
2073
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2074
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2075
|
+
}, {
|
|
2076
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2077
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2078
|
+
}>;
|
|
2079
|
+
}, "strip", z.ZodTypeAny, {
|
|
2080
|
+
name: string;
|
|
2081
|
+
crop: string;
|
|
2082
|
+
geometry: {
|
|
2083
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2084
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2085
|
+
};
|
|
2086
|
+
}, {
|
|
2087
|
+
name: string;
|
|
2088
|
+
crop: string;
|
|
2089
|
+
geometry: {
|
|
2090
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2091
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2092
|
+
};
|
|
2093
|
+
}>;
|
|
2094
|
+
currency: z.ZodDefault<z.ZodOptional<z.ZodEnum<["NGN", "USD"]>>>;
|
|
2095
|
+
}, "strip", z.ZodTypeAny, {
|
|
2096
|
+
name: string;
|
|
2097
|
+
location: {
|
|
2098
|
+
state: string;
|
|
2099
|
+
lga: string;
|
|
2100
|
+
lat: number;
|
|
2101
|
+
lng: number;
|
|
2102
|
+
};
|
|
2103
|
+
boundary: {
|
|
2104
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2105
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2106
|
+
};
|
|
2107
|
+
currency: "NGN" | "USD";
|
|
2108
|
+
firstField: {
|
|
2109
|
+
name: string;
|
|
2110
|
+
crop: string;
|
|
2111
|
+
geometry: {
|
|
2112
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2113
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2114
|
+
};
|
|
2115
|
+
};
|
|
2116
|
+
}, {
|
|
2117
|
+
name: string;
|
|
2118
|
+
location: {
|
|
2119
|
+
state: string;
|
|
2120
|
+
lga: string;
|
|
2121
|
+
lat: number;
|
|
2122
|
+
lng: number;
|
|
2123
|
+
};
|
|
2124
|
+
boundary: {
|
|
2125
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2126
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2127
|
+
};
|
|
2128
|
+
firstField: {
|
|
2129
|
+
name: string;
|
|
2130
|
+
crop: string;
|
|
2131
|
+
geometry: {
|
|
2132
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2133
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2134
|
+
};
|
|
2135
|
+
};
|
|
2136
|
+
currency?: "NGN" | "USD" | undefined;
|
|
2137
|
+
}>;
|
|
2138
|
+
}, "strip", z.ZodTypeAny, {
|
|
2139
|
+
type: "farm-onboarding";
|
|
2140
|
+
attributes: {
|
|
2141
|
+
name: string;
|
|
2142
|
+
location: {
|
|
2143
|
+
state: string;
|
|
2144
|
+
lga: string;
|
|
2145
|
+
lat: number;
|
|
2146
|
+
lng: number;
|
|
2147
|
+
};
|
|
2148
|
+
boundary: {
|
|
2149
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2150
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2151
|
+
};
|
|
2152
|
+
currency: "NGN" | "USD";
|
|
2153
|
+
firstField: {
|
|
2154
|
+
name: string;
|
|
2155
|
+
crop: string;
|
|
2156
|
+
geometry: {
|
|
2157
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2158
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2159
|
+
};
|
|
2160
|
+
};
|
|
2161
|
+
};
|
|
2162
|
+
}, {
|
|
2163
|
+
type: "farm-onboarding";
|
|
2164
|
+
attributes: {
|
|
2165
|
+
name: string;
|
|
2166
|
+
location: {
|
|
2167
|
+
state: string;
|
|
2168
|
+
lga: string;
|
|
2169
|
+
lat: number;
|
|
2170
|
+
lng: number;
|
|
2171
|
+
};
|
|
2172
|
+
boundary: {
|
|
2173
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2174
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2175
|
+
};
|
|
2176
|
+
firstField: {
|
|
2177
|
+
name: string;
|
|
2178
|
+
crop: string;
|
|
2179
|
+
geometry: {
|
|
2180
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2181
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2182
|
+
};
|
|
2183
|
+
};
|
|
2184
|
+
currency?: "NGN" | "USD" | undefined;
|
|
2185
|
+
};
|
|
2186
|
+
}>;
|
|
2187
|
+
}, "strip", z.ZodTypeAny, {
|
|
2188
|
+
data: {
|
|
2189
|
+
type: "farm-onboarding";
|
|
2190
|
+
attributes: {
|
|
2191
|
+
name: string;
|
|
2192
|
+
location: {
|
|
2193
|
+
state: string;
|
|
2194
|
+
lga: string;
|
|
2195
|
+
lat: number;
|
|
2196
|
+
lng: number;
|
|
2197
|
+
};
|
|
2198
|
+
boundary: {
|
|
2199
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2200
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2201
|
+
};
|
|
2202
|
+
currency: "NGN" | "USD";
|
|
2203
|
+
firstField: {
|
|
2204
|
+
name: string;
|
|
2205
|
+
crop: string;
|
|
2206
|
+
geometry: {
|
|
2207
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2208
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2209
|
+
};
|
|
2210
|
+
};
|
|
2211
|
+
};
|
|
2212
|
+
};
|
|
2213
|
+
}, {
|
|
2214
|
+
data: {
|
|
2215
|
+
type: "farm-onboarding";
|
|
2216
|
+
attributes: {
|
|
2217
|
+
name: string;
|
|
2218
|
+
location: {
|
|
2219
|
+
state: string;
|
|
2220
|
+
lga: string;
|
|
2221
|
+
lat: number;
|
|
2222
|
+
lng: number;
|
|
2223
|
+
};
|
|
2224
|
+
boundary: {
|
|
2225
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2226
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2227
|
+
};
|
|
2228
|
+
firstField: {
|
|
2229
|
+
name: string;
|
|
2230
|
+
crop: string;
|
|
2231
|
+
geometry: {
|
|
2232
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2233
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2234
|
+
};
|
|
2235
|
+
};
|
|
2236
|
+
currency?: "NGN" | "USD" | undefined;
|
|
2237
|
+
};
|
|
2238
|
+
};
|
|
2239
|
+
}>;
|
|
2240
|
+
path: "/farms/onboarding";
|
|
2241
|
+
responses: {
|
|
2242
|
+
201: z.ZodObject<{
|
|
2243
|
+
data: z.ZodObject<{
|
|
2244
|
+
type: z.ZodLiteral<string>;
|
|
2245
|
+
id: z.ZodString;
|
|
2246
|
+
attributes: z.ZodObject<{
|
|
2247
|
+
name: z.ZodString;
|
|
2248
|
+
location: z.ZodString;
|
|
2249
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
2250
|
+
boundary: z.ZodNullable<z.ZodObject<{
|
|
2251
|
+
type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
|
|
2252
|
+
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">]>;
|
|
2253
|
+
}, "strip", z.ZodTypeAny, {
|
|
2254
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2255
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2256
|
+
}, {
|
|
2257
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2258
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2259
|
+
}>>;
|
|
2260
|
+
currency: z.ZodEnum<["NGN", "USD"]>;
|
|
2261
|
+
} & {
|
|
2262
|
+
createdAt: z.ZodString;
|
|
2263
|
+
updatedAt: z.ZodString;
|
|
2264
|
+
}, "strip", z.ZodTypeAny, {
|
|
2265
|
+
createdAt: string;
|
|
2266
|
+
updatedAt: string;
|
|
2267
|
+
name: string;
|
|
2268
|
+
location: string;
|
|
2269
|
+
size: number | null;
|
|
2270
|
+
boundary: {
|
|
2271
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2272
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2273
|
+
} | null;
|
|
2274
|
+
currency: "NGN" | "USD";
|
|
2275
|
+
}, {
|
|
2276
|
+
createdAt: string;
|
|
2277
|
+
updatedAt: string;
|
|
2278
|
+
name: string;
|
|
2279
|
+
location: string;
|
|
2280
|
+
size: number | null;
|
|
2281
|
+
boundary: {
|
|
2282
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2283
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2284
|
+
} | null;
|
|
2285
|
+
currency: "NGN" | "USD";
|
|
2286
|
+
}>;
|
|
2287
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2288
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2289
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2290
|
+
}, "strip", z.ZodTypeAny, {
|
|
2291
|
+
type: string;
|
|
2292
|
+
id: string;
|
|
2293
|
+
attributes: {
|
|
2294
|
+
createdAt: string;
|
|
2295
|
+
updatedAt: string;
|
|
2296
|
+
name: string;
|
|
2297
|
+
location: string;
|
|
2298
|
+
size: number | null;
|
|
2299
|
+
boundary: {
|
|
2300
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2301
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2302
|
+
} | null;
|
|
2303
|
+
currency: "NGN" | "USD";
|
|
2304
|
+
};
|
|
2305
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2306
|
+
links?: Record<string, string> | undefined;
|
|
2307
|
+
meta?: Record<string, unknown> | undefined;
|
|
2308
|
+
}, {
|
|
2309
|
+
type: string;
|
|
2310
|
+
id: string;
|
|
2311
|
+
attributes: {
|
|
2312
|
+
createdAt: string;
|
|
2313
|
+
updatedAt: string;
|
|
2314
|
+
name: string;
|
|
2315
|
+
location: string;
|
|
2316
|
+
size: number | null;
|
|
2317
|
+
boundary: {
|
|
2318
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2319
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2320
|
+
} | null;
|
|
2321
|
+
currency: "NGN" | "USD";
|
|
2322
|
+
};
|
|
2323
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2324
|
+
links?: Record<string, string> | undefined;
|
|
2325
|
+
meta?: Record<string, unknown> | undefined;
|
|
2326
|
+
}>;
|
|
2327
|
+
included: z.ZodArray<z.ZodObject<{
|
|
2328
|
+
type: z.ZodLiteral<"fields">;
|
|
2329
|
+
id: z.ZodString;
|
|
2330
|
+
attributes: z.ZodObject<{
|
|
2331
|
+
name: z.ZodString;
|
|
2332
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
2333
|
+
type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
|
|
2334
|
+
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">]>;
|
|
2335
|
+
}, "strip", z.ZodTypeAny, {
|
|
2336
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2337
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2338
|
+
}, {
|
|
2339
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2340
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2341
|
+
}>>;
|
|
2342
|
+
area: z.ZodNullable<z.ZodString>;
|
|
2343
|
+
crop: z.ZodNullable<z.ZodString>;
|
|
2344
|
+
currentCrop: z.ZodNullable<z.ZodString>;
|
|
2345
|
+
status: z.ZodEnum<["ok", "alert", "critical"]>;
|
|
2346
|
+
createdAt: z.ZodString;
|
|
2347
|
+
updatedAt: z.ZodString;
|
|
2348
|
+
}, "strip", z.ZodTypeAny, {
|
|
2349
|
+
status: "ok" | "alert" | "critical";
|
|
2350
|
+
createdAt: string;
|
|
2351
|
+
updatedAt: string;
|
|
2352
|
+
name: string;
|
|
2353
|
+
crop: string | null;
|
|
2354
|
+
geometry: {
|
|
2355
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2356
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2357
|
+
} | null;
|
|
2358
|
+
area: string | null;
|
|
2359
|
+
currentCrop: string | null;
|
|
2360
|
+
}, {
|
|
2361
|
+
status: "ok" | "alert" | "critical";
|
|
2362
|
+
createdAt: string;
|
|
2363
|
+
updatedAt: string;
|
|
2364
|
+
name: string;
|
|
2365
|
+
crop: string | null;
|
|
2366
|
+
geometry: {
|
|
2367
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2368
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2369
|
+
} | null;
|
|
2370
|
+
area: string | null;
|
|
2371
|
+
currentCrop: string | null;
|
|
2372
|
+
}>;
|
|
2373
|
+
}, "strip", z.ZodTypeAny, {
|
|
2374
|
+
type: "fields";
|
|
2375
|
+
id: string;
|
|
2376
|
+
attributes: {
|
|
2377
|
+
status: "ok" | "alert" | "critical";
|
|
2378
|
+
createdAt: string;
|
|
2379
|
+
updatedAt: string;
|
|
2380
|
+
name: string;
|
|
2381
|
+
crop: string | null;
|
|
2382
|
+
geometry: {
|
|
2383
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2384
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2385
|
+
} | null;
|
|
2386
|
+
area: string | null;
|
|
2387
|
+
currentCrop: string | null;
|
|
2388
|
+
};
|
|
2389
|
+
}, {
|
|
2390
|
+
type: "fields";
|
|
2391
|
+
id: string;
|
|
2392
|
+
attributes: {
|
|
2393
|
+
status: "ok" | "alert" | "critical";
|
|
2394
|
+
createdAt: string;
|
|
2395
|
+
updatedAt: string;
|
|
2396
|
+
name: string;
|
|
2397
|
+
crop: string | null;
|
|
2398
|
+
geometry: {
|
|
2399
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2400
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2401
|
+
} | null;
|
|
2402
|
+
area: string | null;
|
|
2403
|
+
currentCrop: string | null;
|
|
2404
|
+
};
|
|
2405
|
+
}>, "many">;
|
|
2406
|
+
meta: z.ZodObject<{
|
|
2407
|
+
onboardingCompleted: z.ZodBoolean;
|
|
2408
|
+
location: z.ZodObject<{
|
|
2409
|
+
state: z.ZodString;
|
|
2410
|
+
lga: z.ZodString;
|
|
2411
|
+
lat: z.ZodNumber;
|
|
2412
|
+
lng: z.ZodNumber;
|
|
2413
|
+
}, "strip", z.ZodTypeAny, {
|
|
2414
|
+
state: string;
|
|
2415
|
+
lga: string;
|
|
2416
|
+
lat: number;
|
|
2417
|
+
lng: number;
|
|
2418
|
+
}, {
|
|
2419
|
+
state: string;
|
|
2420
|
+
lga: string;
|
|
2421
|
+
lat: number;
|
|
2422
|
+
lng: number;
|
|
2423
|
+
}>;
|
|
2424
|
+
}, "strip", z.ZodTypeAny, {
|
|
2425
|
+
onboardingCompleted: boolean;
|
|
2426
|
+
location: {
|
|
2427
|
+
state: string;
|
|
2428
|
+
lga: string;
|
|
2429
|
+
lat: number;
|
|
2430
|
+
lng: number;
|
|
2431
|
+
};
|
|
2432
|
+
}, {
|
|
2433
|
+
onboardingCompleted: boolean;
|
|
2434
|
+
location: {
|
|
2435
|
+
state: string;
|
|
2436
|
+
lga: string;
|
|
2437
|
+
lat: number;
|
|
2438
|
+
lng: number;
|
|
2439
|
+
};
|
|
2440
|
+
}>;
|
|
2441
|
+
}, "strip", z.ZodTypeAny, {
|
|
2442
|
+
meta: {
|
|
2443
|
+
onboardingCompleted: boolean;
|
|
2444
|
+
location: {
|
|
2445
|
+
state: string;
|
|
2446
|
+
lga: string;
|
|
2447
|
+
lat: number;
|
|
2448
|
+
lng: number;
|
|
2449
|
+
};
|
|
2450
|
+
};
|
|
2451
|
+
data: {
|
|
2452
|
+
type: string;
|
|
2453
|
+
id: string;
|
|
2454
|
+
attributes: {
|
|
2455
|
+
createdAt: string;
|
|
2456
|
+
updatedAt: string;
|
|
2457
|
+
name: string;
|
|
2458
|
+
location: string;
|
|
2459
|
+
size: number | null;
|
|
2460
|
+
boundary: {
|
|
2461
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2462
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2463
|
+
} | null;
|
|
2464
|
+
currency: "NGN" | "USD";
|
|
2465
|
+
};
|
|
2466
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2467
|
+
links?: Record<string, string> | undefined;
|
|
2468
|
+
meta?: Record<string, unknown> | undefined;
|
|
2469
|
+
};
|
|
2470
|
+
included: {
|
|
2471
|
+
type: "fields";
|
|
2472
|
+
id: string;
|
|
2473
|
+
attributes: {
|
|
2474
|
+
status: "ok" | "alert" | "critical";
|
|
2475
|
+
createdAt: string;
|
|
2476
|
+
updatedAt: string;
|
|
2477
|
+
name: string;
|
|
2478
|
+
crop: string | null;
|
|
2479
|
+
geometry: {
|
|
2480
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2481
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2482
|
+
} | null;
|
|
2483
|
+
area: string | null;
|
|
2484
|
+
currentCrop: string | null;
|
|
2485
|
+
};
|
|
2486
|
+
}[];
|
|
2487
|
+
}, {
|
|
2488
|
+
meta: {
|
|
2489
|
+
onboardingCompleted: boolean;
|
|
2490
|
+
location: {
|
|
2491
|
+
state: string;
|
|
2492
|
+
lga: string;
|
|
2493
|
+
lat: number;
|
|
2494
|
+
lng: number;
|
|
2495
|
+
};
|
|
2496
|
+
};
|
|
2497
|
+
data: {
|
|
2498
|
+
type: string;
|
|
2499
|
+
id: string;
|
|
2500
|
+
attributes: {
|
|
2501
|
+
createdAt: string;
|
|
2502
|
+
updatedAt: string;
|
|
2503
|
+
name: string;
|
|
2504
|
+
location: string;
|
|
2505
|
+
size: number | null;
|
|
2506
|
+
boundary: {
|
|
2507
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2508
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2509
|
+
} | null;
|
|
2510
|
+
currency: "NGN" | "USD";
|
|
2511
|
+
};
|
|
2512
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2513
|
+
links?: Record<string, string> | undefined;
|
|
2514
|
+
meta?: Record<string, unknown> | undefined;
|
|
2515
|
+
};
|
|
2516
|
+
included: {
|
|
2517
|
+
type: "fields";
|
|
2518
|
+
id: string;
|
|
2519
|
+
attributes: {
|
|
2520
|
+
status: "ok" | "alert" | "critical";
|
|
2521
|
+
createdAt: string;
|
|
2522
|
+
updatedAt: string;
|
|
2523
|
+
name: string;
|
|
2524
|
+
crop: string | null;
|
|
2525
|
+
geometry: {
|
|
2526
|
+
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
2527
|
+
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2528
|
+
} | null;
|
|
2529
|
+
area: string | null;
|
|
2530
|
+
currentCrop: string | null;
|
|
2531
|
+
};
|
|
2532
|
+
}[];
|
|
2533
|
+
}>;
|
|
2534
|
+
400: z.ZodObject<{
|
|
2535
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2536
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2537
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2538
|
+
about: z.ZodOptional<z.ZodString>;
|
|
2539
|
+
}, "strip", z.ZodTypeAny, {
|
|
2540
|
+
about?: string | undefined;
|
|
2541
|
+
}, {
|
|
2542
|
+
about?: string | undefined;
|
|
2543
|
+
}>>;
|
|
2544
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2545
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2546
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2547
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2548
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2549
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
2550
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
2551
|
+
}, "strip", z.ZodTypeAny, {
|
|
2552
|
+
pointer?: string | undefined;
|
|
2553
|
+
parameter?: string | undefined;
|
|
2554
|
+
}, {
|
|
2555
|
+
pointer?: string | undefined;
|
|
2556
|
+
parameter?: string | undefined;
|
|
2557
|
+
}>>;
|
|
2558
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2559
|
+
}, "strip", z.ZodTypeAny, {
|
|
2560
|
+
status?: string | undefined;
|
|
2561
|
+
code?: string | undefined;
|
|
2562
|
+
id?: string | undefined;
|
|
2563
|
+
links?: {
|
|
2564
|
+
about?: string | undefined;
|
|
2565
|
+
} | undefined;
|
|
2566
|
+
meta?: Record<string, unknown> | undefined;
|
|
2567
|
+
title?: string | undefined;
|
|
2568
|
+
detail?: string | undefined;
|
|
2569
|
+
source?: {
|
|
2570
|
+
pointer?: string | undefined;
|
|
2571
|
+
parameter?: string | undefined;
|
|
2572
|
+
} | undefined;
|
|
2573
|
+
}, {
|
|
2574
|
+
status?: string | undefined;
|
|
2575
|
+
code?: string | undefined;
|
|
2576
|
+
id?: string | undefined;
|
|
2577
|
+
links?: {
|
|
2578
|
+
about?: string | undefined;
|
|
2579
|
+
} | undefined;
|
|
2580
|
+
meta?: Record<string, unknown> | undefined;
|
|
2581
|
+
title?: string | undefined;
|
|
2582
|
+
detail?: string | undefined;
|
|
2583
|
+
source?: {
|
|
2584
|
+
pointer?: string | undefined;
|
|
2585
|
+
parameter?: string | undefined;
|
|
2586
|
+
} | undefined;
|
|
2587
|
+
}>, "many">;
|
|
2588
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2589
|
+
}, "strip", z.ZodTypeAny, {
|
|
2590
|
+
errors: {
|
|
2591
|
+
status?: string | undefined;
|
|
2592
|
+
code?: string | undefined;
|
|
2593
|
+
id?: string | undefined;
|
|
2594
|
+
links?: {
|
|
2595
|
+
about?: string | undefined;
|
|
2596
|
+
} | undefined;
|
|
2597
|
+
meta?: Record<string, unknown> | undefined;
|
|
2598
|
+
title?: string | undefined;
|
|
2599
|
+
detail?: string | undefined;
|
|
2600
|
+
source?: {
|
|
2601
|
+
pointer?: string | undefined;
|
|
2602
|
+
parameter?: string | undefined;
|
|
2603
|
+
} | undefined;
|
|
2604
|
+
}[];
|
|
2605
|
+
meta?: Record<string, unknown> | undefined;
|
|
2606
|
+
}, {
|
|
2607
|
+
errors: {
|
|
2608
|
+
status?: string | undefined;
|
|
2609
|
+
code?: string | undefined;
|
|
2610
|
+
id?: string | undefined;
|
|
2611
|
+
links?: {
|
|
2612
|
+
about?: string | undefined;
|
|
2613
|
+
} | undefined;
|
|
2614
|
+
meta?: Record<string, unknown> | undefined;
|
|
2615
|
+
title?: string | undefined;
|
|
2616
|
+
detail?: string | undefined;
|
|
2617
|
+
source?: {
|
|
2618
|
+
pointer?: string | undefined;
|
|
2619
|
+
parameter?: string | undefined;
|
|
2620
|
+
} | undefined;
|
|
2621
|
+
}[];
|
|
2622
|
+
meta?: Record<string, unknown> | undefined;
|
|
2623
|
+
}>;
|
|
2624
|
+
401: z.ZodObject<{
|
|
2625
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2626
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2627
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2628
|
+
about: z.ZodOptional<z.ZodString>;
|
|
2629
|
+
}, "strip", z.ZodTypeAny, {
|
|
2630
|
+
about?: string | undefined;
|
|
2631
|
+
}, {
|
|
2632
|
+
about?: string | undefined;
|
|
2633
|
+
}>>;
|
|
2634
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2635
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2636
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2637
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2638
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2639
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
2640
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
2641
|
+
}, "strip", z.ZodTypeAny, {
|
|
2642
|
+
pointer?: string | undefined;
|
|
2643
|
+
parameter?: string | undefined;
|
|
2644
|
+
}, {
|
|
2645
|
+
pointer?: string | undefined;
|
|
2646
|
+
parameter?: string | undefined;
|
|
2647
|
+
}>>;
|
|
2648
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2649
|
+
}, "strip", z.ZodTypeAny, {
|
|
2650
|
+
status?: string | undefined;
|
|
2651
|
+
code?: string | undefined;
|
|
2652
|
+
id?: string | undefined;
|
|
2653
|
+
links?: {
|
|
2654
|
+
about?: string | undefined;
|
|
2655
|
+
} | undefined;
|
|
2656
|
+
meta?: Record<string, unknown> | undefined;
|
|
2657
|
+
title?: string | undefined;
|
|
2658
|
+
detail?: string | undefined;
|
|
2659
|
+
source?: {
|
|
2660
|
+
pointer?: string | undefined;
|
|
2661
|
+
parameter?: string | undefined;
|
|
2662
|
+
} | undefined;
|
|
2663
|
+
}, {
|
|
2664
|
+
status?: string | undefined;
|
|
2665
|
+
code?: string | undefined;
|
|
2666
|
+
id?: string | undefined;
|
|
2667
|
+
links?: {
|
|
2668
|
+
about?: string | undefined;
|
|
2669
|
+
} | undefined;
|
|
2670
|
+
meta?: Record<string, unknown> | undefined;
|
|
2671
|
+
title?: string | undefined;
|
|
2672
|
+
detail?: string | undefined;
|
|
2673
|
+
source?: {
|
|
2674
|
+
pointer?: string | undefined;
|
|
2675
|
+
parameter?: string | undefined;
|
|
2676
|
+
} | undefined;
|
|
2677
|
+
}>, "many">;
|
|
2678
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2679
|
+
}, "strip", z.ZodTypeAny, {
|
|
2680
|
+
errors: {
|
|
2681
|
+
status?: string | undefined;
|
|
2682
|
+
code?: string | undefined;
|
|
2683
|
+
id?: string | undefined;
|
|
2684
|
+
links?: {
|
|
2685
|
+
about?: string | undefined;
|
|
2686
|
+
} | undefined;
|
|
2687
|
+
meta?: Record<string, unknown> | undefined;
|
|
2688
|
+
title?: string | undefined;
|
|
2689
|
+
detail?: string | undefined;
|
|
2690
|
+
source?: {
|
|
2691
|
+
pointer?: string | undefined;
|
|
2692
|
+
parameter?: string | undefined;
|
|
2693
|
+
} | undefined;
|
|
2694
|
+
}[];
|
|
2695
|
+
meta?: Record<string, unknown> | undefined;
|
|
2696
|
+
}, {
|
|
2697
|
+
errors: {
|
|
2698
|
+
status?: string | undefined;
|
|
2699
|
+
code?: string | undefined;
|
|
2700
|
+
id?: string | undefined;
|
|
2701
|
+
links?: {
|
|
2702
|
+
about?: string | undefined;
|
|
2703
|
+
} | undefined;
|
|
2704
|
+
meta?: Record<string, unknown> | undefined;
|
|
2705
|
+
title?: string | undefined;
|
|
2706
|
+
detail?: string | undefined;
|
|
2707
|
+
source?: {
|
|
2708
|
+
pointer?: string | undefined;
|
|
2709
|
+
parameter?: string | undefined;
|
|
2710
|
+
} | undefined;
|
|
2711
|
+
}[];
|
|
2712
|
+
meta?: Record<string, unknown> | undefined;
|
|
2713
|
+
}>;
|
|
2714
|
+
422: z.ZodObject<{
|
|
2715
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2716
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2717
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2718
|
+
about: z.ZodOptional<z.ZodString>;
|
|
2719
|
+
}, "strip", z.ZodTypeAny, {
|
|
2720
|
+
about?: string | undefined;
|
|
2721
|
+
}, {
|
|
2722
|
+
about?: string | undefined;
|
|
2723
|
+
}>>;
|
|
2724
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2725
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2726
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2727
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2728
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2729
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
2730
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
2731
|
+
}, "strip", z.ZodTypeAny, {
|
|
2732
|
+
pointer?: string | undefined;
|
|
2733
|
+
parameter?: string | undefined;
|
|
2734
|
+
}, {
|
|
2735
|
+
pointer?: string | undefined;
|
|
2736
|
+
parameter?: string | undefined;
|
|
2737
|
+
}>>;
|
|
2738
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2739
|
+
}, "strip", z.ZodTypeAny, {
|
|
2740
|
+
status?: string | undefined;
|
|
2741
|
+
code?: string | undefined;
|
|
2742
|
+
id?: string | undefined;
|
|
2743
|
+
links?: {
|
|
2744
|
+
about?: string | undefined;
|
|
2745
|
+
} | undefined;
|
|
2746
|
+
meta?: Record<string, unknown> | undefined;
|
|
2747
|
+
title?: string | undefined;
|
|
2748
|
+
detail?: string | undefined;
|
|
2749
|
+
source?: {
|
|
2750
|
+
pointer?: string | undefined;
|
|
2751
|
+
parameter?: string | undefined;
|
|
2752
|
+
} | undefined;
|
|
2753
|
+
}, {
|
|
2754
|
+
status?: string | undefined;
|
|
2755
|
+
code?: string | undefined;
|
|
2756
|
+
id?: string | undefined;
|
|
2757
|
+
links?: {
|
|
2758
|
+
about?: string | undefined;
|
|
2759
|
+
} | undefined;
|
|
2760
|
+
meta?: Record<string, unknown> | undefined;
|
|
2761
|
+
title?: string | undefined;
|
|
2762
|
+
detail?: string | undefined;
|
|
2763
|
+
source?: {
|
|
2764
|
+
pointer?: string | undefined;
|
|
2765
|
+
parameter?: string | undefined;
|
|
2766
|
+
} | undefined;
|
|
2767
|
+
}>, "many">;
|
|
2768
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2769
|
+
}, "strip", z.ZodTypeAny, {
|
|
2770
|
+
errors: {
|
|
2771
|
+
status?: string | undefined;
|
|
2772
|
+
code?: string | undefined;
|
|
2773
|
+
id?: string | undefined;
|
|
2774
|
+
links?: {
|
|
2775
|
+
about?: string | undefined;
|
|
2776
|
+
} | undefined;
|
|
2777
|
+
meta?: Record<string, unknown> | undefined;
|
|
2778
|
+
title?: string | undefined;
|
|
2779
|
+
detail?: string | undefined;
|
|
2780
|
+
source?: {
|
|
2781
|
+
pointer?: string | undefined;
|
|
2782
|
+
parameter?: string | undefined;
|
|
2783
|
+
} | undefined;
|
|
2784
|
+
}[];
|
|
2785
|
+
meta?: Record<string, unknown> | undefined;
|
|
2786
|
+
}, {
|
|
2787
|
+
errors: {
|
|
2788
|
+
status?: string | undefined;
|
|
2789
|
+
code?: string | undefined;
|
|
2790
|
+
id?: string | undefined;
|
|
2791
|
+
links?: {
|
|
2792
|
+
about?: string | undefined;
|
|
2793
|
+
} | undefined;
|
|
2794
|
+
meta?: Record<string, unknown> | undefined;
|
|
2795
|
+
title?: string | undefined;
|
|
2796
|
+
detail?: string | undefined;
|
|
2797
|
+
source?: {
|
|
2798
|
+
pointer?: string | undefined;
|
|
2799
|
+
parameter?: string | undefined;
|
|
2800
|
+
} | undefined;
|
|
2801
|
+
}[];
|
|
2802
|
+
meta?: Record<string, unknown> | undefined;
|
|
2803
|
+
}>;
|
|
2804
|
+
};
|
|
2805
|
+
};
|
|
2031
2806
|
deleteFarm: {
|
|
2032
2807
|
pathParams: z.ZodObject<{
|
|
2033
2808
|
id: z.ZodString;
|