@deepintel-ltd/farmpro-contracts 1.16.14 → 1.17.0
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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/routes/farms.routes.d.ts +523 -70
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/field-activities.routes.d.ts +32 -32
- package/dist/routes/monitoring-visualization.routes.d.ts +151 -8
- package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
- package/dist/routes/monitoring-visualization.routes.js +15 -1
- package/dist/routes/payments.routes.d.ts +22 -22
- package/dist/routes/subscriptions.routes.d.ts +52 -16
- package/dist/routes/subscriptions.routes.d.ts.map +1 -1
- package/dist/routes/subscriptions.routes.js +2 -1
- package/dist/schemas/farms.schemas.d.ts +610 -84
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +25 -4
- package/dist/schemas/field-activities.schemas.d.ts +28 -28
- package/dist/schemas/locale.schemas.d.ts +95 -0
- package/dist/schemas/locale.schemas.d.ts.map +1 -0
- package/dist/schemas/locale.schemas.js +54 -0
- package/dist/schemas/monitoring-visualization.schemas.d.ts +138 -11
- package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
- package/dist/schemas/monitoring-visualization.schemas.js +33 -2
- package/dist/schemas/payments.schemas.d.ts +22 -22
- package/dist/schemas/subscriptions.schemas.d.ts +77 -13
- package/dist/schemas/subscriptions.schemas.d.ts.map +1 -1
- package/dist/schemas/subscriptions.schemas.js +11 -10
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
/**
|
|
3
3
|
* Farm schemas - JSON:API compliant
|
|
4
4
|
*/
|
|
5
|
-
export declare const currencySchema: z.ZodEnum<["NGN", "USD"]>;
|
|
5
|
+
export declare const currencySchema: z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>;
|
|
6
6
|
export declare const farmAttributesSchema: z.ZodObject<{
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
location: z.ZodString;
|
|
@@ -17,7 +17,16 @@ export declare const farmAttributesSchema: z.ZodObject<{
|
|
|
17
17
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
18
18
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
19
19
|
}>>;
|
|
20
|
-
currency: z.ZodEnum<["NGN", "USD"]>;
|
|
20
|
+
currency: z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>;
|
|
21
|
+
countryCode: z.ZodString;
|
|
22
|
+
regionCode: z.ZodNullable<z.ZodString>;
|
|
23
|
+
subRegionCode: z.ZodNullable<z.ZodString>;
|
|
24
|
+
timezone: z.ZodString;
|
|
25
|
+
locale: z.ZodString;
|
|
26
|
+
unitSystem: z.ZodEnum<["metric", "imperial", "mixed"]>;
|
|
27
|
+
areaUnit: z.ZodEnum<["hectares", "acres"]>;
|
|
28
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
21
30
|
/** Current user's team role on this farm, when known. */
|
|
22
31
|
myTeamRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>>>;
|
|
23
32
|
} & {
|
|
@@ -27,25 +36,43 @@ export declare const farmAttributesSchema: z.ZodObject<{
|
|
|
27
36
|
createdAt: string;
|
|
28
37
|
updatedAt: string;
|
|
29
38
|
name: string;
|
|
39
|
+
countryCode: string;
|
|
40
|
+
regionCode: string | null;
|
|
41
|
+
subRegionCode: string | null;
|
|
42
|
+
timezone: string;
|
|
43
|
+
locale: string;
|
|
44
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
45
|
+
areaUnit: "hectares" | "acres";
|
|
46
|
+
lat: number | null;
|
|
47
|
+
lng: number | null;
|
|
30
48
|
location: string;
|
|
31
49
|
size: number | null;
|
|
32
50
|
boundary: {
|
|
33
51
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
34
52
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
35
53
|
} | null;
|
|
36
|
-
currency: "NGN" | "USD";
|
|
54
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
37
55
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
38
56
|
}, {
|
|
39
57
|
createdAt: string;
|
|
40
58
|
updatedAt: string;
|
|
41
59
|
name: string;
|
|
60
|
+
countryCode: string;
|
|
61
|
+
regionCode: string | null;
|
|
62
|
+
subRegionCode: string | null;
|
|
63
|
+
timezone: string;
|
|
64
|
+
locale: string;
|
|
65
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
66
|
+
areaUnit: "hectares" | "acres";
|
|
67
|
+
lat: number | null;
|
|
68
|
+
lng: number | null;
|
|
42
69
|
location: string;
|
|
43
70
|
size: number | null;
|
|
44
71
|
boundary: {
|
|
45
72
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
46
73
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
47
74
|
} | null;
|
|
48
|
-
currency: "NGN" | "USD";
|
|
75
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
49
76
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
50
77
|
}>;
|
|
51
78
|
export declare const createFarmAttributesSchema: z.ZodObject<{
|
|
@@ -62,25 +89,52 @@ export declare const createFarmAttributesSchema: z.ZodObject<{
|
|
|
62
89
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
63
90
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
64
91
|
}>>;
|
|
65
|
-
currency: z.
|
|
92
|
+
currency: z.ZodOptional<z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>>;
|
|
93
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
94
|
+
regionCode: z.ZodOptional<z.ZodString>;
|
|
95
|
+
subRegionCode: z.ZodOptional<z.ZodString>;
|
|
96
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
97
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
98
|
+
unitSystem: z.ZodOptional<z.ZodEnum<["metric", "imperial", "mixed"]>>;
|
|
99
|
+
areaUnit: z.ZodOptional<z.ZodEnum<["hectares", "acres"]>>;
|
|
100
|
+
lat: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
lng: z.ZodOptional<z.ZodNumber>;
|
|
66
102
|
}, "strip", z.ZodTypeAny, {
|
|
67
103
|
name: string;
|
|
68
104
|
location: string;
|
|
69
|
-
|
|
105
|
+
countryCode?: string | undefined;
|
|
106
|
+
regionCode?: string | undefined;
|
|
107
|
+
subRegionCode?: string | undefined;
|
|
108
|
+
timezone?: string | undefined;
|
|
109
|
+
locale?: string | undefined;
|
|
110
|
+
unitSystem?: "metric" | "imperial" | "mixed" | undefined;
|
|
111
|
+
areaUnit?: "hectares" | "acres" | undefined;
|
|
112
|
+
lat?: number | undefined;
|
|
113
|
+
lng?: number | undefined;
|
|
70
114
|
size?: number | undefined;
|
|
71
115
|
boundary?: {
|
|
72
116
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
73
117
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
74
118
|
} | undefined;
|
|
119
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
75
120
|
}, {
|
|
76
121
|
name: string;
|
|
77
122
|
location: string;
|
|
123
|
+
countryCode?: string | undefined;
|
|
124
|
+
regionCode?: string | undefined;
|
|
125
|
+
subRegionCode?: string | undefined;
|
|
126
|
+
timezone?: string | undefined;
|
|
127
|
+
locale?: string | undefined;
|
|
128
|
+
unitSystem?: "metric" | "imperial" | "mixed" | undefined;
|
|
129
|
+
areaUnit?: "hectares" | "acres" | undefined;
|
|
130
|
+
lat?: number | undefined;
|
|
131
|
+
lng?: number | undefined;
|
|
78
132
|
size?: number | undefined;
|
|
79
133
|
boundary?: {
|
|
80
134
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
81
135
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
82
136
|
} | undefined;
|
|
83
|
-
currency?: "NGN" | "USD" | undefined;
|
|
137
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
84
138
|
}>;
|
|
85
139
|
export declare const updateFarmAttributesSchema: z.ZodObject<{
|
|
86
140
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -96,25 +150,52 @@ export declare const updateFarmAttributesSchema: z.ZodObject<{
|
|
|
96
150
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
97
151
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
98
152
|
}>>>;
|
|
99
|
-
currency: z.ZodOptional<z.
|
|
153
|
+
currency: z.ZodOptional<z.ZodOptional<z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>>>;
|
|
154
|
+
countryCode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
155
|
+
regionCode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
156
|
+
subRegionCode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
157
|
+
timezone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
158
|
+
locale: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
159
|
+
unitSystem: z.ZodOptional<z.ZodOptional<z.ZodEnum<["metric", "imperial", "mixed"]>>>;
|
|
160
|
+
areaUnit: z.ZodOptional<z.ZodOptional<z.ZodEnum<["hectares", "acres"]>>>;
|
|
161
|
+
lat: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
162
|
+
lng: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
100
163
|
}, "strip", z.ZodTypeAny, {
|
|
101
164
|
name?: string | undefined;
|
|
165
|
+
countryCode?: string | undefined;
|
|
166
|
+
regionCode?: string | undefined;
|
|
167
|
+
subRegionCode?: string | undefined;
|
|
168
|
+
timezone?: string | undefined;
|
|
169
|
+
locale?: string | undefined;
|
|
170
|
+
unitSystem?: "metric" | "imperial" | "mixed" | undefined;
|
|
171
|
+
areaUnit?: "hectares" | "acres" | undefined;
|
|
172
|
+
lat?: number | undefined;
|
|
173
|
+
lng?: number | undefined;
|
|
102
174
|
location?: string | undefined;
|
|
103
175
|
size?: number | undefined;
|
|
104
176
|
boundary?: {
|
|
105
177
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
106
178
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
107
179
|
} | undefined;
|
|
108
|
-
currency?: "NGN" | "USD" | undefined;
|
|
180
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
109
181
|
}, {
|
|
110
182
|
name?: string | undefined;
|
|
183
|
+
countryCode?: string | undefined;
|
|
184
|
+
regionCode?: string | undefined;
|
|
185
|
+
subRegionCode?: string | undefined;
|
|
186
|
+
timezone?: string | undefined;
|
|
187
|
+
locale?: string | undefined;
|
|
188
|
+
unitSystem?: "metric" | "imperial" | "mixed" | undefined;
|
|
189
|
+
areaUnit?: "hectares" | "acres" | undefined;
|
|
190
|
+
lat?: number | undefined;
|
|
191
|
+
lng?: number | undefined;
|
|
111
192
|
location?: string | undefined;
|
|
112
193
|
size?: number | undefined;
|
|
113
194
|
boundary?: {
|
|
114
195
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
115
196
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
116
197
|
} | undefined;
|
|
117
|
-
currency?: "NGN" | "USD" | undefined;
|
|
198
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
118
199
|
}>;
|
|
119
200
|
export declare const createFarmSchema: z.ZodObject<{
|
|
120
201
|
type: z.ZodLiteral<"farms">;
|
|
@@ -132,49 +213,94 @@ export declare const createFarmSchema: z.ZodObject<{
|
|
|
132
213
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
133
214
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
134
215
|
}>>;
|
|
135
|
-
currency: z.
|
|
216
|
+
currency: z.ZodOptional<z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>>;
|
|
217
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
218
|
+
regionCode: z.ZodOptional<z.ZodString>;
|
|
219
|
+
subRegionCode: z.ZodOptional<z.ZodString>;
|
|
220
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
221
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
222
|
+
unitSystem: z.ZodOptional<z.ZodEnum<["metric", "imperial", "mixed"]>>;
|
|
223
|
+
areaUnit: z.ZodOptional<z.ZodEnum<["hectares", "acres"]>>;
|
|
224
|
+
lat: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
lng: z.ZodOptional<z.ZodNumber>;
|
|
136
226
|
}, "strip", z.ZodTypeAny, {
|
|
137
227
|
name: string;
|
|
138
228
|
location: string;
|
|
139
|
-
|
|
229
|
+
countryCode?: string | undefined;
|
|
230
|
+
regionCode?: string | undefined;
|
|
231
|
+
subRegionCode?: string | undefined;
|
|
232
|
+
timezone?: string | undefined;
|
|
233
|
+
locale?: string | undefined;
|
|
234
|
+
unitSystem?: "metric" | "imperial" | "mixed" | undefined;
|
|
235
|
+
areaUnit?: "hectares" | "acres" | undefined;
|
|
236
|
+
lat?: number | undefined;
|
|
237
|
+
lng?: number | undefined;
|
|
140
238
|
size?: number | undefined;
|
|
141
239
|
boundary?: {
|
|
142
240
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
143
241
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
144
242
|
} | undefined;
|
|
243
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
145
244
|
}, {
|
|
146
245
|
name: string;
|
|
147
246
|
location: string;
|
|
247
|
+
countryCode?: string | undefined;
|
|
248
|
+
regionCode?: string | undefined;
|
|
249
|
+
subRegionCode?: string | undefined;
|
|
250
|
+
timezone?: string | undefined;
|
|
251
|
+
locale?: string | undefined;
|
|
252
|
+
unitSystem?: "metric" | "imperial" | "mixed" | undefined;
|
|
253
|
+
areaUnit?: "hectares" | "acres" | undefined;
|
|
254
|
+
lat?: number | undefined;
|
|
255
|
+
lng?: number | undefined;
|
|
148
256
|
size?: number | undefined;
|
|
149
257
|
boundary?: {
|
|
150
258
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
151
259
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
152
260
|
} | undefined;
|
|
153
|
-
currency?: "NGN" | "USD" | undefined;
|
|
261
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
154
262
|
}>;
|
|
155
263
|
}, "strip", z.ZodTypeAny, {
|
|
156
264
|
type: "farms";
|
|
157
265
|
attributes: {
|
|
158
266
|
name: string;
|
|
159
267
|
location: string;
|
|
160
|
-
|
|
268
|
+
countryCode?: string | undefined;
|
|
269
|
+
regionCode?: string | undefined;
|
|
270
|
+
subRegionCode?: string | undefined;
|
|
271
|
+
timezone?: string | undefined;
|
|
272
|
+
locale?: string | undefined;
|
|
273
|
+
unitSystem?: "metric" | "imperial" | "mixed" | undefined;
|
|
274
|
+
areaUnit?: "hectares" | "acres" | undefined;
|
|
275
|
+
lat?: number | undefined;
|
|
276
|
+
lng?: number | undefined;
|
|
161
277
|
size?: number | undefined;
|
|
162
278
|
boundary?: {
|
|
163
279
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
164
280
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
165
281
|
} | undefined;
|
|
282
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
166
283
|
};
|
|
167
284
|
}, {
|
|
168
285
|
type: "farms";
|
|
169
286
|
attributes: {
|
|
170
287
|
name: string;
|
|
171
288
|
location: string;
|
|
289
|
+
countryCode?: string | undefined;
|
|
290
|
+
regionCode?: string | undefined;
|
|
291
|
+
subRegionCode?: string | undefined;
|
|
292
|
+
timezone?: string | undefined;
|
|
293
|
+
locale?: string | undefined;
|
|
294
|
+
unitSystem?: "metric" | "imperial" | "mixed" | undefined;
|
|
295
|
+
areaUnit?: "hectares" | "acres" | undefined;
|
|
296
|
+
lat?: number | undefined;
|
|
297
|
+
lng?: number | undefined;
|
|
172
298
|
size?: number | undefined;
|
|
173
299
|
boundary?: {
|
|
174
300
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
175
301
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
176
302
|
} | undefined;
|
|
177
|
-
currency?: "NGN" | "USD" | undefined;
|
|
303
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
178
304
|
};
|
|
179
305
|
}>;
|
|
180
306
|
export declare const updateFarmSchema: z.ZodObject<{
|
|
@@ -194,51 +320,96 @@ export declare const updateFarmSchema: z.ZodObject<{
|
|
|
194
320
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
195
321
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
196
322
|
}>>>;
|
|
197
|
-
currency: z.ZodOptional<z.
|
|
323
|
+
currency: z.ZodOptional<z.ZodOptional<z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>>>;
|
|
324
|
+
countryCode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
325
|
+
regionCode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
326
|
+
subRegionCode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
327
|
+
timezone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
328
|
+
locale: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
329
|
+
unitSystem: z.ZodOptional<z.ZodOptional<z.ZodEnum<["metric", "imperial", "mixed"]>>>;
|
|
330
|
+
areaUnit: z.ZodOptional<z.ZodOptional<z.ZodEnum<["hectares", "acres"]>>>;
|
|
331
|
+
lat: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
332
|
+
lng: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
198
333
|
}, "strip", z.ZodTypeAny, {
|
|
199
334
|
name?: string | undefined;
|
|
335
|
+
countryCode?: string | undefined;
|
|
336
|
+
regionCode?: string | undefined;
|
|
337
|
+
subRegionCode?: string | undefined;
|
|
338
|
+
timezone?: string | undefined;
|
|
339
|
+
locale?: string | undefined;
|
|
340
|
+
unitSystem?: "metric" | "imperial" | "mixed" | undefined;
|
|
341
|
+
areaUnit?: "hectares" | "acres" | undefined;
|
|
342
|
+
lat?: number | undefined;
|
|
343
|
+
lng?: number | undefined;
|
|
200
344
|
location?: string | undefined;
|
|
201
345
|
size?: number | undefined;
|
|
202
346
|
boundary?: {
|
|
203
347
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
204
348
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
205
349
|
} | undefined;
|
|
206
|
-
currency?: "NGN" | "USD" | undefined;
|
|
350
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
207
351
|
}, {
|
|
208
352
|
name?: string | undefined;
|
|
353
|
+
countryCode?: string | undefined;
|
|
354
|
+
regionCode?: string | undefined;
|
|
355
|
+
subRegionCode?: string | undefined;
|
|
356
|
+
timezone?: string | undefined;
|
|
357
|
+
locale?: string | undefined;
|
|
358
|
+
unitSystem?: "metric" | "imperial" | "mixed" | undefined;
|
|
359
|
+
areaUnit?: "hectares" | "acres" | undefined;
|
|
360
|
+
lat?: number | undefined;
|
|
361
|
+
lng?: number | undefined;
|
|
209
362
|
location?: string | undefined;
|
|
210
363
|
size?: number | undefined;
|
|
211
364
|
boundary?: {
|
|
212
365
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
213
366
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
214
367
|
} | undefined;
|
|
215
|
-
currency?: "NGN" | "USD" | undefined;
|
|
368
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
216
369
|
}>;
|
|
217
370
|
}, "strip", z.ZodTypeAny, {
|
|
218
371
|
type: "farms";
|
|
219
372
|
id: string;
|
|
220
373
|
attributes: {
|
|
221
374
|
name?: string | undefined;
|
|
375
|
+
countryCode?: string | undefined;
|
|
376
|
+
regionCode?: string | undefined;
|
|
377
|
+
subRegionCode?: string | undefined;
|
|
378
|
+
timezone?: string | undefined;
|
|
379
|
+
locale?: string | undefined;
|
|
380
|
+
unitSystem?: "metric" | "imperial" | "mixed" | undefined;
|
|
381
|
+
areaUnit?: "hectares" | "acres" | undefined;
|
|
382
|
+
lat?: number | undefined;
|
|
383
|
+
lng?: number | undefined;
|
|
222
384
|
location?: string | undefined;
|
|
223
385
|
size?: number | undefined;
|
|
224
386
|
boundary?: {
|
|
225
387
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
226
388
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
227
389
|
} | undefined;
|
|
228
|
-
currency?: "NGN" | "USD" | undefined;
|
|
390
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
229
391
|
};
|
|
230
392
|
}, {
|
|
231
393
|
type: "farms";
|
|
232
394
|
id: string;
|
|
233
395
|
attributes: {
|
|
234
396
|
name?: string | undefined;
|
|
397
|
+
countryCode?: string | undefined;
|
|
398
|
+
regionCode?: string | undefined;
|
|
399
|
+
subRegionCode?: string | undefined;
|
|
400
|
+
timezone?: string | undefined;
|
|
401
|
+
locale?: string | undefined;
|
|
402
|
+
unitSystem?: "metric" | "imperial" | "mixed" | undefined;
|
|
403
|
+
areaUnit?: "hectares" | "acres" | undefined;
|
|
404
|
+
lat?: number | undefined;
|
|
405
|
+
lng?: number | undefined;
|
|
235
406
|
location?: string | undefined;
|
|
236
407
|
size?: number | undefined;
|
|
237
408
|
boundary?: {
|
|
238
409
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
239
410
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
240
411
|
} | undefined;
|
|
241
|
-
currency?: "NGN" | "USD" | undefined;
|
|
412
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
242
413
|
};
|
|
243
414
|
}>;
|
|
244
415
|
export declare const farmResourceSchema: z.ZodObject<{
|
|
@@ -258,7 +429,16 @@ export declare const farmResourceSchema: z.ZodObject<{
|
|
|
258
429
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
259
430
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
260
431
|
}>>;
|
|
261
|
-
currency: z.ZodEnum<["NGN", "USD"]>;
|
|
432
|
+
currency: z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>;
|
|
433
|
+
countryCode: z.ZodString;
|
|
434
|
+
regionCode: z.ZodNullable<z.ZodString>;
|
|
435
|
+
subRegionCode: z.ZodNullable<z.ZodString>;
|
|
436
|
+
timezone: z.ZodString;
|
|
437
|
+
locale: z.ZodString;
|
|
438
|
+
unitSystem: z.ZodEnum<["metric", "imperial", "mixed"]>;
|
|
439
|
+
areaUnit: z.ZodEnum<["hectares", "acres"]>;
|
|
440
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
441
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
262
442
|
/** Current user's team role on this farm, when known. */
|
|
263
443
|
myTeamRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>>>;
|
|
264
444
|
} & {
|
|
@@ -268,25 +448,43 @@ export declare const farmResourceSchema: z.ZodObject<{
|
|
|
268
448
|
createdAt: string;
|
|
269
449
|
updatedAt: string;
|
|
270
450
|
name: string;
|
|
451
|
+
countryCode: string;
|
|
452
|
+
regionCode: string | null;
|
|
453
|
+
subRegionCode: string | null;
|
|
454
|
+
timezone: string;
|
|
455
|
+
locale: string;
|
|
456
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
457
|
+
areaUnit: "hectares" | "acres";
|
|
458
|
+
lat: number | null;
|
|
459
|
+
lng: number | null;
|
|
271
460
|
location: string;
|
|
272
461
|
size: number | null;
|
|
273
462
|
boundary: {
|
|
274
463
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
275
464
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
276
465
|
} | null;
|
|
277
|
-
currency: "NGN" | "USD";
|
|
466
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
278
467
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
279
468
|
}, {
|
|
280
469
|
createdAt: string;
|
|
281
470
|
updatedAt: string;
|
|
282
471
|
name: string;
|
|
472
|
+
countryCode: string;
|
|
473
|
+
regionCode: string | null;
|
|
474
|
+
subRegionCode: string | null;
|
|
475
|
+
timezone: string;
|
|
476
|
+
locale: string;
|
|
477
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
478
|
+
areaUnit: "hectares" | "acres";
|
|
479
|
+
lat: number | null;
|
|
480
|
+
lng: number | null;
|
|
283
481
|
location: string;
|
|
284
482
|
size: number | null;
|
|
285
483
|
boundary: {
|
|
286
484
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
287
485
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
288
486
|
} | null;
|
|
289
|
-
currency: "NGN" | "USD";
|
|
487
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
290
488
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
291
489
|
}>;
|
|
292
490
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -299,13 +497,22 @@ export declare const farmResourceSchema: z.ZodObject<{
|
|
|
299
497
|
createdAt: string;
|
|
300
498
|
updatedAt: string;
|
|
301
499
|
name: string;
|
|
500
|
+
countryCode: string;
|
|
501
|
+
regionCode: string | null;
|
|
502
|
+
subRegionCode: string | null;
|
|
503
|
+
timezone: string;
|
|
504
|
+
locale: string;
|
|
505
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
506
|
+
areaUnit: "hectares" | "acres";
|
|
507
|
+
lat: number | null;
|
|
508
|
+
lng: number | null;
|
|
302
509
|
location: string;
|
|
303
510
|
size: number | null;
|
|
304
511
|
boundary: {
|
|
305
512
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
306
513
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
307
514
|
} | null;
|
|
308
|
-
currency: "NGN" | "USD";
|
|
515
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
309
516
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
310
517
|
};
|
|
311
518
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -318,13 +525,22 @@ export declare const farmResourceSchema: z.ZodObject<{
|
|
|
318
525
|
createdAt: string;
|
|
319
526
|
updatedAt: string;
|
|
320
527
|
name: string;
|
|
528
|
+
countryCode: string;
|
|
529
|
+
regionCode: string | null;
|
|
530
|
+
subRegionCode: string | null;
|
|
531
|
+
timezone: string;
|
|
532
|
+
locale: string;
|
|
533
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
534
|
+
areaUnit: "hectares" | "acres";
|
|
535
|
+
lat: number | null;
|
|
536
|
+
lng: number | null;
|
|
321
537
|
location: string;
|
|
322
538
|
size: number | null;
|
|
323
539
|
boundary: {
|
|
324
540
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
325
541
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
326
542
|
} | null;
|
|
327
|
-
currency: "NGN" | "USD";
|
|
543
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
328
544
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
329
545
|
};
|
|
330
546
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -348,7 +564,16 @@ export declare const farmDetailResourceSchema: z.ZodObject<{
|
|
|
348
564
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
349
565
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
350
566
|
}>>;
|
|
351
|
-
currency: z.ZodEnum<["NGN", "USD"]>;
|
|
567
|
+
currency: z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>;
|
|
568
|
+
countryCode: z.ZodString;
|
|
569
|
+
regionCode: z.ZodNullable<z.ZodString>;
|
|
570
|
+
subRegionCode: z.ZodNullable<z.ZodString>;
|
|
571
|
+
timezone: z.ZodString;
|
|
572
|
+
locale: z.ZodString;
|
|
573
|
+
unitSystem: z.ZodEnum<["metric", "imperial", "mixed"]>;
|
|
574
|
+
areaUnit: z.ZodEnum<["hectares", "acres"]>;
|
|
575
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
576
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
352
577
|
/** Current user's team role on this farm, when known. */
|
|
353
578
|
myTeamRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>>>;
|
|
354
579
|
} & {
|
|
@@ -358,25 +583,43 @@ export declare const farmDetailResourceSchema: z.ZodObject<{
|
|
|
358
583
|
createdAt: string;
|
|
359
584
|
updatedAt: string;
|
|
360
585
|
name: string;
|
|
586
|
+
countryCode: string;
|
|
587
|
+
regionCode: string | null;
|
|
588
|
+
subRegionCode: string | null;
|
|
589
|
+
timezone: string;
|
|
590
|
+
locale: string;
|
|
591
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
592
|
+
areaUnit: "hectares" | "acres";
|
|
593
|
+
lat: number | null;
|
|
594
|
+
lng: number | null;
|
|
361
595
|
location: string;
|
|
362
596
|
size: number | null;
|
|
363
597
|
boundary: {
|
|
364
598
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
365
599
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
366
600
|
} | null;
|
|
367
|
-
currency: "NGN" | "USD";
|
|
601
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
368
602
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
369
603
|
}, {
|
|
370
604
|
createdAt: string;
|
|
371
605
|
updatedAt: string;
|
|
372
606
|
name: string;
|
|
607
|
+
countryCode: string;
|
|
608
|
+
regionCode: string | null;
|
|
609
|
+
subRegionCode: string | null;
|
|
610
|
+
timezone: string;
|
|
611
|
+
locale: string;
|
|
612
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
613
|
+
areaUnit: "hectares" | "acres";
|
|
614
|
+
lat: number | null;
|
|
615
|
+
lng: number | null;
|
|
373
616
|
location: string;
|
|
374
617
|
size: number | null;
|
|
375
618
|
boundary: {
|
|
376
619
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
377
620
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
378
621
|
} | null;
|
|
379
|
-
currency: "NGN" | "USD";
|
|
622
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
380
623
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
381
624
|
}>;
|
|
382
625
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -485,13 +728,22 @@ export declare const farmDetailResourceSchema: z.ZodObject<{
|
|
|
485
728
|
createdAt: string;
|
|
486
729
|
updatedAt: string;
|
|
487
730
|
name: string;
|
|
731
|
+
countryCode: string;
|
|
732
|
+
regionCode: string | null;
|
|
733
|
+
subRegionCode: string | null;
|
|
734
|
+
timezone: string;
|
|
735
|
+
locale: string;
|
|
736
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
737
|
+
areaUnit: "hectares" | "acres";
|
|
738
|
+
lat: number | null;
|
|
739
|
+
lng: number | null;
|
|
488
740
|
location: string;
|
|
489
741
|
size: number | null;
|
|
490
742
|
boundary: {
|
|
491
743
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
492
744
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
493
745
|
} | null;
|
|
494
|
-
currency: "NGN" | "USD";
|
|
746
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
495
747
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
496
748
|
};
|
|
497
749
|
relationships?: {
|
|
@@ -521,13 +773,22 @@ export declare const farmDetailResourceSchema: z.ZodObject<{
|
|
|
521
773
|
createdAt: string;
|
|
522
774
|
updatedAt: string;
|
|
523
775
|
name: string;
|
|
776
|
+
countryCode: string;
|
|
777
|
+
regionCode: string | null;
|
|
778
|
+
subRegionCode: string | null;
|
|
779
|
+
timezone: string;
|
|
780
|
+
locale: string;
|
|
781
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
782
|
+
areaUnit: "hectares" | "acres";
|
|
783
|
+
lat: number | null;
|
|
784
|
+
lng: number | null;
|
|
524
785
|
location: string;
|
|
525
786
|
size: number | null;
|
|
526
787
|
boundary: {
|
|
527
788
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
528
789
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
529
790
|
} | null;
|
|
530
|
-
currency: "NGN" | "USD";
|
|
791
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
531
792
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
532
793
|
};
|
|
533
794
|
relationships?: {
|
|
@@ -569,7 +830,16 @@ export declare const farmResponseSchema: z.ZodObject<{
|
|
|
569
830
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
570
831
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
571
832
|
}>>;
|
|
572
|
-
currency: z.ZodEnum<["NGN", "USD"]>;
|
|
833
|
+
currency: z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>;
|
|
834
|
+
countryCode: z.ZodString;
|
|
835
|
+
regionCode: z.ZodNullable<z.ZodString>;
|
|
836
|
+
subRegionCode: z.ZodNullable<z.ZodString>;
|
|
837
|
+
timezone: z.ZodString;
|
|
838
|
+
locale: z.ZodString;
|
|
839
|
+
unitSystem: z.ZodEnum<["metric", "imperial", "mixed"]>;
|
|
840
|
+
areaUnit: z.ZodEnum<["hectares", "acres"]>;
|
|
841
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
842
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
573
843
|
/** Current user's team role on this farm, when known. */
|
|
574
844
|
myTeamRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>>>;
|
|
575
845
|
} & {
|
|
@@ -579,25 +849,43 @@ export declare const farmResponseSchema: z.ZodObject<{
|
|
|
579
849
|
createdAt: string;
|
|
580
850
|
updatedAt: string;
|
|
581
851
|
name: string;
|
|
852
|
+
countryCode: string;
|
|
853
|
+
regionCode: string | null;
|
|
854
|
+
subRegionCode: string | null;
|
|
855
|
+
timezone: string;
|
|
856
|
+
locale: string;
|
|
857
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
858
|
+
areaUnit: "hectares" | "acres";
|
|
859
|
+
lat: number | null;
|
|
860
|
+
lng: number | null;
|
|
582
861
|
location: string;
|
|
583
862
|
size: number | null;
|
|
584
863
|
boundary: {
|
|
585
864
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
586
865
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
587
866
|
} | null;
|
|
588
|
-
currency: "NGN" | "USD";
|
|
867
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
589
868
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
590
869
|
}, {
|
|
591
870
|
createdAt: string;
|
|
592
871
|
updatedAt: string;
|
|
593
872
|
name: string;
|
|
873
|
+
countryCode: string;
|
|
874
|
+
regionCode: string | null;
|
|
875
|
+
subRegionCode: string | null;
|
|
876
|
+
timezone: string;
|
|
877
|
+
locale: string;
|
|
878
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
879
|
+
areaUnit: "hectares" | "acres";
|
|
880
|
+
lat: number | null;
|
|
881
|
+
lng: number | null;
|
|
594
882
|
location: string;
|
|
595
883
|
size: number | null;
|
|
596
884
|
boundary: {
|
|
597
885
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
598
886
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
599
887
|
} | null;
|
|
600
|
-
currency: "NGN" | "USD";
|
|
888
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
601
889
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
602
890
|
}>;
|
|
603
891
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -610,13 +898,22 @@ export declare const farmResponseSchema: z.ZodObject<{
|
|
|
610
898
|
createdAt: string;
|
|
611
899
|
updatedAt: string;
|
|
612
900
|
name: string;
|
|
901
|
+
countryCode: string;
|
|
902
|
+
regionCode: string | null;
|
|
903
|
+
subRegionCode: string | null;
|
|
904
|
+
timezone: string;
|
|
905
|
+
locale: string;
|
|
906
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
907
|
+
areaUnit: "hectares" | "acres";
|
|
908
|
+
lat: number | null;
|
|
909
|
+
lng: number | null;
|
|
613
910
|
location: string;
|
|
614
911
|
size: number | null;
|
|
615
912
|
boundary: {
|
|
616
913
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
617
914
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
618
915
|
} | null;
|
|
619
|
-
currency: "NGN" | "USD";
|
|
916
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
620
917
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
621
918
|
};
|
|
622
919
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -629,13 +926,22 @@ export declare const farmResponseSchema: z.ZodObject<{
|
|
|
629
926
|
createdAt: string;
|
|
630
927
|
updatedAt: string;
|
|
631
928
|
name: string;
|
|
929
|
+
countryCode: string;
|
|
930
|
+
regionCode: string | null;
|
|
931
|
+
subRegionCode: string | null;
|
|
932
|
+
timezone: string;
|
|
933
|
+
locale: string;
|
|
934
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
935
|
+
areaUnit: "hectares" | "acres";
|
|
936
|
+
lat: number | null;
|
|
937
|
+
lng: number | null;
|
|
632
938
|
location: string;
|
|
633
939
|
size: number | null;
|
|
634
940
|
boundary: {
|
|
635
941
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
636
942
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
637
943
|
} | null;
|
|
638
|
-
currency: "NGN" | "USD";
|
|
944
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
639
945
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
640
946
|
};
|
|
641
947
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -674,13 +980,22 @@ export declare const farmResponseSchema: z.ZodObject<{
|
|
|
674
980
|
createdAt: string;
|
|
675
981
|
updatedAt: string;
|
|
676
982
|
name: string;
|
|
983
|
+
countryCode: string;
|
|
984
|
+
regionCode: string | null;
|
|
985
|
+
subRegionCode: string | null;
|
|
986
|
+
timezone: string;
|
|
987
|
+
locale: string;
|
|
988
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
989
|
+
areaUnit: "hectares" | "acres";
|
|
990
|
+
lat: number | null;
|
|
991
|
+
lng: number | null;
|
|
677
992
|
location: string;
|
|
678
993
|
size: number | null;
|
|
679
994
|
boundary: {
|
|
680
995
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
681
996
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
682
997
|
} | null;
|
|
683
|
-
currency: "NGN" | "USD";
|
|
998
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
684
999
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
685
1000
|
};
|
|
686
1001
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -705,13 +1020,22 @@ export declare const farmResponseSchema: z.ZodObject<{
|
|
|
705
1020
|
createdAt: string;
|
|
706
1021
|
updatedAt: string;
|
|
707
1022
|
name: string;
|
|
1023
|
+
countryCode: string;
|
|
1024
|
+
regionCode: string | null;
|
|
1025
|
+
subRegionCode: string | null;
|
|
1026
|
+
timezone: string;
|
|
1027
|
+
locale: string;
|
|
1028
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1029
|
+
areaUnit: "hectares" | "acres";
|
|
1030
|
+
lat: number | null;
|
|
1031
|
+
lng: number | null;
|
|
708
1032
|
location: string;
|
|
709
1033
|
size: number | null;
|
|
710
1034
|
boundary: {
|
|
711
1035
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
712
1036
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
713
1037
|
} | null;
|
|
714
|
-
currency: "NGN" | "USD";
|
|
1038
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
715
1039
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
716
1040
|
};
|
|
717
1041
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -747,7 +1071,16 @@ export declare const farmDetailResponseSchema: z.ZodObject<{
|
|
|
747
1071
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
748
1072
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
749
1073
|
}>>;
|
|
750
|
-
currency: z.ZodEnum<["NGN", "USD"]>;
|
|
1074
|
+
currency: z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>;
|
|
1075
|
+
countryCode: z.ZodString;
|
|
1076
|
+
regionCode: z.ZodNullable<z.ZodString>;
|
|
1077
|
+
subRegionCode: z.ZodNullable<z.ZodString>;
|
|
1078
|
+
timezone: z.ZodString;
|
|
1079
|
+
locale: z.ZodString;
|
|
1080
|
+
unitSystem: z.ZodEnum<["metric", "imperial", "mixed"]>;
|
|
1081
|
+
areaUnit: z.ZodEnum<["hectares", "acres"]>;
|
|
1082
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
1083
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
751
1084
|
/** Current user's team role on this farm, when known. */
|
|
752
1085
|
myTeamRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>>>;
|
|
753
1086
|
} & {
|
|
@@ -757,25 +1090,43 @@ export declare const farmDetailResponseSchema: z.ZodObject<{
|
|
|
757
1090
|
createdAt: string;
|
|
758
1091
|
updatedAt: string;
|
|
759
1092
|
name: string;
|
|
1093
|
+
countryCode: string;
|
|
1094
|
+
regionCode: string | null;
|
|
1095
|
+
subRegionCode: string | null;
|
|
1096
|
+
timezone: string;
|
|
1097
|
+
locale: string;
|
|
1098
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1099
|
+
areaUnit: "hectares" | "acres";
|
|
1100
|
+
lat: number | null;
|
|
1101
|
+
lng: number | null;
|
|
760
1102
|
location: string;
|
|
761
1103
|
size: number | null;
|
|
762
1104
|
boundary: {
|
|
763
1105
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
764
1106
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
765
1107
|
} | null;
|
|
766
|
-
currency: "NGN" | "USD";
|
|
1108
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
767
1109
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
768
1110
|
}, {
|
|
769
1111
|
createdAt: string;
|
|
770
1112
|
updatedAt: string;
|
|
771
1113
|
name: string;
|
|
1114
|
+
countryCode: string;
|
|
1115
|
+
regionCode: string | null;
|
|
1116
|
+
subRegionCode: string | null;
|
|
1117
|
+
timezone: string;
|
|
1118
|
+
locale: string;
|
|
1119
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1120
|
+
areaUnit: "hectares" | "acres";
|
|
1121
|
+
lat: number | null;
|
|
1122
|
+
lng: number | null;
|
|
772
1123
|
location: string;
|
|
773
1124
|
size: number | null;
|
|
774
1125
|
boundary: {
|
|
775
1126
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
776
1127
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
777
1128
|
} | null;
|
|
778
|
-
currency: "NGN" | "USD";
|
|
1129
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
779
1130
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
780
1131
|
}>;
|
|
781
1132
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -884,13 +1235,22 @@ export declare const farmDetailResponseSchema: z.ZodObject<{
|
|
|
884
1235
|
createdAt: string;
|
|
885
1236
|
updatedAt: string;
|
|
886
1237
|
name: string;
|
|
1238
|
+
countryCode: string;
|
|
1239
|
+
regionCode: string | null;
|
|
1240
|
+
subRegionCode: string | null;
|
|
1241
|
+
timezone: string;
|
|
1242
|
+
locale: string;
|
|
1243
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1244
|
+
areaUnit: "hectares" | "acres";
|
|
1245
|
+
lat: number | null;
|
|
1246
|
+
lng: number | null;
|
|
887
1247
|
location: string;
|
|
888
1248
|
size: number | null;
|
|
889
1249
|
boundary: {
|
|
890
1250
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
891
1251
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
892
1252
|
} | null;
|
|
893
|
-
currency: "NGN" | "USD";
|
|
1253
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
894
1254
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
895
1255
|
};
|
|
896
1256
|
relationships?: {
|
|
@@ -920,13 +1280,22 @@ export declare const farmDetailResponseSchema: z.ZodObject<{
|
|
|
920
1280
|
createdAt: string;
|
|
921
1281
|
updatedAt: string;
|
|
922
1282
|
name: string;
|
|
1283
|
+
countryCode: string;
|
|
1284
|
+
regionCode: string | null;
|
|
1285
|
+
subRegionCode: string | null;
|
|
1286
|
+
timezone: string;
|
|
1287
|
+
locale: string;
|
|
1288
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1289
|
+
areaUnit: "hectares" | "acres";
|
|
1290
|
+
lat: number | null;
|
|
1291
|
+
lng: number | null;
|
|
923
1292
|
location: string;
|
|
924
1293
|
size: number | null;
|
|
925
1294
|
boundary: {
|
|
926
1295
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
927
1296
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
928
1297
|
} | null;
|
|
929
|
-
currency: "NGN" | "USD";
|
|
1298
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
930
1299
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
931
1300
|
};
|
|
932
1301
|
relationships?: {
|
|
@@ -982,13 +1351,22 @@ export declare const farmDetailResponseSchema: z.ZodObject<{
|
|
|
982
1351
|
createdAt: string;
|
|
983
1352
|
updatedAt: string;
|
|
984
1353
|
name: string;
|
|
1354
|
+
countryCode: string;
|
|
1355
|
+
regionCode: string | null;
|
|
1356
|
+
subRegionCode: string | null;
|
|
1357
|
+
timezone: string;
|
|
1358
|
+
locale: string;
|
|
1359
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1360
|
+
areaUnit: "hectares" | "acres";
|
|
1361
|
+
lat: number | null;
|
|
1362
|
+
lng: number | null;
|
|
985
1363
|
location: string;
|
|
986
1364
|
size: number | null;
|
|
987
1365
|
boundary: {
|
|
988
1366
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
989
1367
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
990
1368
|
} | null;
|
|
991
|
-
currency: "NGN" | "USD";
|
|
1369
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
992
1370
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
993
1371
|
};
|
|
994
1372
|
relationships?: {
|
|
@@ -1030,13 +1408,22 @@ export declare const farmDetailResponseSchema: z.ZodObject<{
|
|
|
1030
1408
|
createdAt: string;
|
|
1031
1409
|
updatedAt: string;
|
|
1032
1410
|
name: string;
|
|
1411
|
+
countryCode: string;
|
|
1412
|
+
regionCode: string | null;
|
|
1413
|
+
subRegionCode: string | null;
|
|
1414
|
+
timezone: string;
|
|
1415
|
+
locale: string;
|
|
1416
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1417
|
+
areaUnit: "hectares" | "acres";
|
|
1418
|
+
lat: number | null;
|
|
1419
|
+
lng: number | null;
|
|
1033
1420
|
location: string;
|
|
1034
1421
|
size: number | null;
|
|
1035
1422
|
boundary: {
|
|
1036
1423
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1037
1424
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1038
1425
|
} | null;
|
|
1039
|
-
currency: "NGN" | "USD";
|
|
1426
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1040
1427
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1041
1428
|
};
|
|
1042
1429
|
relationships?: {
|
|
@@ -1089,7 +1476,16 @@ export declare const farmListResponseSchema: z.ZodObject<{
|
|
|
1089
1476
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1090
1477
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1091
1478
|
}>>;
|
|
1092
|
-
currency: z.ZodEnum<["NGN", "USD"]>;
|
|
1479
|
+
currency: z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>;
|
|
1480
|
+
countryCode: z.ZodString;
|
|
1481
|
+
regionCode: z.ZodNullable<z.ZodString>;
|
|
1482
|
+
subRegionCode: z.ZodNullable<z.ZodString>;
|
|
1483
|
+
timezone: z.ZodString;
|
|
1484
|
+
locale: z.ZodString;
|
|
1485
|
+
unitSystem: z.ZodEnum<["metric", "imperial", "mixed"]>;
|
|
1486
|
+
areaUnit: z.ZodEnum<["hectares", "acres"]>;
|
|
1487
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
1488
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
1093
1489
|
/** Current user's team role on this farm, when known. */
|
|
1094
1490
|
myTeamRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>>>;
|
|
1095
1491
|
} & {
|
|
@@ -1099,25 +1495,43 @@ export declare const farmListResponseSchema: z.ZodObject<{
|
|
|
1099
1495
|
createdAt: string;
|
|
1100
1496
|
updatedAt: string;
|
|
1101
1497
|
name: string;
|
|
1498
|
+
countryCode: string;
|
|
1499
|
+
regionCode: string | null;
|
|
1500
|
+
subRegionCode: string | null;
|
|
1501
|
+
timezone: string;
|
|
1502
|
+
locale: string;
|
|
1503
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1504
|
+
areaUnit: "hectares" | "acres";
|
|
1505
|
+
lat: number | null;
|
|
1506
|
+
lng: number | null;
|
|
1102
1507
|
location: string;
|
|
1103
1508
|
size: number | null;
|
|
1104
1509
|
boundary: {
|
|
1105
1510
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1106
1511
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1107
1512
|
} | null;
|
|
1108
|
-
currency: "NGN" | "USD";
|
|
1513
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1109
1514
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1110
1515
|
}, {
|
|
1111
1516
|
createdAt: string;
|
|
1112
1517
|
updatedAt: string;
|
|
1113
1518
|
name: string;
|
|
1519
|
+
countryCode: string;
|
|
1520
|
+
regionCode: string | null;
|
|
1521
|
+
subRegionCode: string | null;
|
|
1522
|
+
timezone: string;
|
|
1523
|
+
locale: string;
|
|
1524
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1525
|
+
areaUnit: "hectares" | "acres";
|
|
1526
|
+
lat: number | null;
|
|
1527
|
+
lng: number | null;
|
|
1114
1528
|
location: string;
|
|
1115
1529
|
size: number | null;
|
|
1116
1530
|
boundary: {
|
|
1117
1531
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1118
1532
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1119
1533
|
} | null;
|
|
1120
|
-
currency: "NGN" | "USD";
|
|
1534
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1121
1535
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1122
1536
|
}>;
|
|
1123
1537
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1130,13 +1544,22 @@ export declare const farmListResponseSchema: z.ZodObject<{
|
|
|
1130
1544
|
createdAt: string;
|
|
1131
1545
|
updatedAt: string;
|
|
1132
1546
|
name: string;
|
|
1547
|
+
countryCode: string;
|
|
1548
|
+
regionCode: string | null;
|
|
1549
|
+
subRegionCode: string | null;
|
|
1550
|
+
timezone: string;
|
|
1551
|
+
locale: string;
|
|
1552
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1553
|
+
areaUnit: "hectares" | "acres";
|
|
1554
|
+
lat: number | null;
|
|
1555
|
+
lng: number | null;
|
|
1133
1556
|
location: string;
|
|
1134
1557
|
size: number | null;
|
|
1135
1558
|
boundary: {
|
|
1136
1559
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1137
1560
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1138
1561
|
} | null;
|
|
1139
|
-
currency: "NGN" | "USD";
|
|
1562
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1140
1563
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1141
1564
|
};
|
|
1142
1565
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1149,13 +1572,22 @@ export declare const farmListResponseSchema: z.ZodObject<{
|
|
|
1149
1572
|
createdAt: string;
|
|
1150
1573
|
updatedAt: string;
|
|
1151
1574
|
name: string;
|
|
1575
|
+
countryCode: string;
|
|
1576
|
+
regionCode: string | null;
|
|
1577
|
+
subRegionCode: string | null;
|
|
1578
|
+
timezone: string;
|
|
1579
|
+
locale: string;
|
|
1580
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1581
|
+
areaUnit: "hectares" | "acres";
|
|
1582
|
+
lat: number | null;
|
|
1583
|
+
lng: number | null;
|
|
1152
1584
|
location: string;
|
|
1153
1585
|
size: number | null;
|
|
1154
1586
|
boundary: {
|
|
1155
1587
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1156
1588
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1157
1589
|
} | null;
|
|
1158
|
-
currency: "NGN" | "USD";
|
|
1590
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1159
1591
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1160
1592
|
};
|
|
1161
1593
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1194,13 +1626,22 @@ export declare const farmListResponseSchema: z.ZodObject<{
|
|
|
1194
1626
|
createdAt: string;
|
|
1195
1627
|
updatedAt: string;
|
|
1196
1628
|
name: string;
|
|
1629
|
+
countryCode: string;
|
|
1630
|
+
regionCode: string | null;
|
|
1631
|
+
subRegionCode: string | null;
|
|
1632
|
+
timezone: string;
|
|
1633
|
+
locale: string;
|
|
1634
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1635
|
+
areaUnit: "hectares" | "acres";
|
|
1636
|
+
lat: number | null;
|
|
1637
|
+
lng: number | null;
|
|
1197
1638
|
location: string;
|
|
1198
1639
|
size: number | null;
|
|
1199
1640
|
boundary: {
|
|
1200
1641
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1201
1642
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1202
1643
|
} | null;
|
|
1203
|
-
currency: "NGN" | "USD";
|
|
1644
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1204
1645
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1205
1646
|
};
|
|
1206
1647
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1225,13 +1666,22 @@ export declare const farmListResponseSchema: z.ZodObject<{
|
|
|
1225
1666
|
createdAt: string;
|
|
1226
1667
|
updatedAt: string;
|
|
1227
1668
|
name: string;
|
|
1669
|
+
countryCode: string;
|
|
1670
|
+
regionCode: string | null;
|
|
1671
|
+
subRegionCode: string | null;
|
|
1672
|
+
timezone: string;
|
|
1673
|
+
locale: string;
|
|
1674
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
1675
|
+
areaUnit: "hectares" | "acres";
|
|
1676
|
+
lat: number | null;
|
|
1677
|
+
lng: number | null;
|
|
1228
1678
|
location: string;
|
|
1229
1679
|
size: number | null;
|
|
1230
1680
|
boundary: {
|
|
1231
1681
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1232
1682
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1233
1683
|
} | null;
|
|
1234
|
-
currency: "NGN" | "USD";
|
|
1684
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1235
1685
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1236
1686
|
};
|
|
1237
1687
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1266,14 +1716,14 @@ export declare const farmLocationSchema: z.ZodObject<{
|
|
|
1266
1716
|
lng: z.ZodNumber;
|
|
1267
1717
|
}, "strip", z.ZodTypeAny, {
|
|
1268
1718
|
state: string;
|
|
1269
|
-
lga: string;
|
|
1270
1719
|
lat: number;
|
|
1271
1720
|
lng: number;
|
|
1721
|
+
lga: string;
|
|
1272
1722
|
}, {
|
|
1273
1723
|
state: string;
|
|
1274
|
-
lga: string;
|
|
1275
1724
|
lat: number;
|
|
1276
1725
|
lng: number;
|
|
1726
|
+
lga: string;
|
|
1277
1727
|
}>;
|
|
1278
1728
|
export declare const onboardingFirstFieldSchema: z.ZodObject<{
|
|
1279
1729
|
name: z.ZodString;
|
|
@@ -1305,6 +1755,7 @@ export declare const onboardingFirstFieldSchema: z.ZodObject<{
|
|
|
1305
1755
|
}>;
|
|
1306
1756
|
export declare const farmOnboardingAttributesSchema: z.ZodObject<{
|
|
1307
1757
|
name: z.ZodString;
|
|
1758
|
+
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1308
1759
|
location: z.ZodObject<{
|
|
1309
1760
|
state: z.ZodString;
|
|
1310
1761
|
lga: z.ZodString;
|
|
@@ -1312,14 +1763,14 @@ export declare const farmOnboardingAttributesSchema: z.ZodObject<{
|
|
|
1312
1763
|
lng: z.ZodNumber;
|
|
1313
1764
|
}, "strip", z.ZodTypeAny, {
|
|
1314
1765
|
state: string;
|
|
1315
|
-
lga: string;
|
|
1316
1766
|
lat: number;
|
|
1317
1767
|
lng: number;
|
|
1768
|
+
lga: string;
|
|
1318
1769
|
}, {
|
|
1319
1770
|
state: string;
|
|
1320
|
-
lga: string;
|
|
1321
1771
|
lat: number;
|
|
1322
1772
|
lng: number;
|
|
1773
|
+
lga: string;
|
|
1323
1774
|
}>;
|
|
1324
1775
|
boundary: z.ZodObject<{
|
|
1325
1776
|
type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
|
|
@@ -1359,20 +1810,20 @@ export declare const farmOnboardingAttributesSchema: z.ZodObject<{
|
|
|
1359
1810
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1360
1811
|
};
|
|
1361
1812
|
}>;
|
|
1362
|
-
currency: z.
|
|
1813
|
+
currency: z.ZodOptional<z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>>;
|
|
1363
1814
|
}, "strip", z.ZodTypeAny, {
|
|
1364
1815
|
name: string;
|
|
1816
|
+
countryCode: string;
|
|
1365
1817
|
location: {
|
|
1366
1818
|
state: string;
|
|
1367
|
-
lga: string;
|
|
1368
1819
|
lat: number;
|
|
1369
1820
|
lng: number;
|
|
1821
|
+
lga: string;
|
|
1370
1822
|
};
|
|
1371
1823
|
boundary: {
|
|
1372
1824
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1373
1825
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1374
1826
|
};
|
|
1375
|
-
currency: "NGN" | "USD";
|
|
1376
1827
|
firstField: {
|
|
1377
1828
|
name: string;
|
|
1378
1829
|
crop: string;
|
|
@@ -1381,13 +1832,14 @@ export declare const farmOnboardingAttributesSchema: z.ZodObject<{
|
|
|
1381
1832
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1382
1833
|
};
|
|
1383
1834
|
};
|
|
1835
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
1384
1836
|
}, {
|
|
1385
1837
|
name: string;
|
|
1386
1838
|
location: {
|
|
1387
1839
|
state: string;
|
|
1388
|
-
lga: string;
|
|
1389
1840
|
lat: number;
|
|
1390
1841
|
lng: number;
|
|
1842
|
+
lga: string;
|
|
1391
1843
|
};
|
|
1392
1844
|
boundary: {
|
|
1393
1845
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
@@ -1401,12 +1853,14 @@ export declare const farmOnboardingAttributesSchema: z.ZodObject<{
|
|
|
1401
1853
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1402
1854
|
};
|
|
1403
1855
|
};
|
|
1404
|
-
|
|
1856
|
+
countryCode?: string | undefined;
|
|
1857
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
1405
1858
|
}>;
|
|
1406
1859
|
export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
1407
1860
|
type: z.ZodLiteral<"farm-onboarding">;
|
|
1408
1861
|
attributes: z.ZodObject<{
|
|
1409
1862
|
name: z.ZodString;
|
|
1863
|
+
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1410
1864
|
location: z.ZodObject<{
|
|
1411
1865
|
state: z.ZodString;
|
|
1412
1866
|
lga: z.ZodString;
|
|
@@ -1414,14 +1868,14 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
1414
1868
|
lng: z.ZodNumber;
|
|
1415
1869
|
}, "strip", z.ZodTypeAny, {
|
|
1416
1870
|
state: string;
|
|
1417
|
-
lga: string;
|
|
1418
1871
|
lat: number;
|
|
1419
1872
|
lng: number;
|
|
1873
|
+
lga: string;
|
|
1420
1874
|
}, {
|
|
1421
1875
|
state: string;
|
|
1422
|
-
lga: string;
|
|
1423
1876
|
lat: number;
|
|
1424
1877
|
lng: number;
|
|
1878
|
+
lga: string;
|
|
1425
1879
|
}>;
|
|
1426
1880
|
boundary: z.ZodObject<{
|
|
1427
1881
|
type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
|
|
@@ -1461,20 +1915,20 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
1461
1915
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1462
1916
|
};
|
|
1463
1917
|
}>;
|
|
1464
|
-
currency: z.
|
|
1918
|
+
currency: z.ZodOptional<z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>>;
|
|
1465
1919
|
}, "strip", z.ZodTypeAny, {
|
|
1466
1920
|
name: string;
|
|
1921
|
+
countryCode: string;
|
|
1467
1922
|
location: {
|
|
1468
1923
|
state: string;
|
|
1469
|
-
lga: string;
|
|
1470
1924
|
lat: number;
|
|
1471
1925
|
lng: number;
|
|
1926
|
+
lga: string;
|
|
1472
1927
|
};
|
|
1473
1928
|
boundary: {
|
|
1474
1929
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1475
1930
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1476
1931
|
};
|
|
1477
|
-
currency: "NGN" | "USD";
|
|
1478
1932
|
firstField: {
|
|
1479
1933
|
name: string;
|
|
1480
1934
|
crop: string;
|
|
@@ -1483,13 +1937,14 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
1483
1937
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1484
1938
|
};
|
|
1485
1939
|
};
|
|
1940
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
1486
1941
|
}, {
|
|
1487
1942
|
name: string;
|
|
1488
1943
|
location: {
|
|
1489
1944
|
state: string;
|
|
1490
|
-
lga: string;
|
|
1491
1945
|
lat: number;
|
|
1492
1946
|
lng: number;
|
|
1947
|
+
lga: string;
|
|
1493
1948
|
};
|
|
1494
1949
|
boundary: {
|
|
1495
1950
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
@@ -1503,23 +1958,24 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
1503
1958
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1504
1959
|
};
|
|
1505
1960
|
};
|
|
1506
|
-
|
|
1961
|
+
countryCode?: string | undefined;
|
|
1962
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
1507
1963
|
}>;
|
|
1508
1964
|
}, "strip", z.ZodTypeAny, {
|
|
1509
1965
|
type: "farm-onboarding";
|
|
1510
1966
|
attributes: {
|
|
1511
1967
|
name: string;
|
|
1968
|
+
countryCode: string;
|
|
1512
1969
|
location: {
|
|
1513
1970
|
state: string;
|
|
1514
|
-
lga: string;
|
|
1515
1971
|
lat: number;
|
|
1516
1972
|
lng: number;
|
|
1973
|
+
lga: string;
|
|
1517
1974
|
};
|
|
1518
1975
|
boundary: {
|
|
1519
1976
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1520
1977
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1521
1978
|
};
|
|
1522
|
-
currency: "NGN" | "USD";
|
|
1523
1979
|
firstField: {
|
|
1524
1980
|
name: string;
|
|
1525
1981
|
crop: string;
|
|
@@ -1528,6 +1984,7 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
1528
1984
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1529
1985
|
};
|
|
1530
1986
|
};
|
|
1987
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
1531
1988
|
};
|
|
1532
1989
|
}, {
|
|
1533
1990
|
type: "farm-onboarding";
|
|
@@ -1535,9 +1992,9 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
1535
1992
|
name: string;
|
|
1536
1993
|
location: {
|
|
1537
1994
|
state: string;
|
|
1538
|
-
lga: string;
|
|
1539
1995
|
lat: number;
|
|
1540
1996
|
lng: number;
|
|
1997
|
+
lga: string;
|
|
1541
1998
|
};
|
|
1542
1999
|
boundary: {
|
|
1543
2000
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
@@ -1551,7 +2008,8 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
1551
2008
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1552
2009
|
};
|
|
1553
2010
|
};
|
|
1554
|
-
|
|
2011
|
+
countryCode?: string | undefined;
|
|
2012
|
+
currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
|
|
1555
2013
|
};
|
|
1556
2014
|
}>;
|
|
1557
2015
|
export declare const farmOnboardingResponseSchema: z.ZodObject<{
|
|
@@ -1572,7 +2030,16 @@ export declare const farmOnboardingResponseSchema: z.ZodObject<{
|
|
|
1572
2030
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1573
2031
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1574
2032
|
}>>;
|
|
1575
|
-
currency: z.ZodEnum<["NGN", "USD"]>;
|
|
2033
|
+
currency: z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>;
|
|
2034
|
+
countryCode: z.ZodString;
|
|
2035
|
+
regionCode: z.ZodNullable<z.ZodString>;
|
|
2036
|
+
subRegionCode: z.ZodNullable<z.ZodString>;
|
|
2037
|
+
timezone: z.ZodString;
|
|
2038
|
+
locale: z.ZodString;
|
|
2039
|
+
unitSystem: z.ZodEnum<["metric", "imperial", "mixed"]>;
|
|
2040
|
+
areaUnit: z.ZodEnum<["hectares", "acres"]>;
|
|
2041
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
2042
|
+
lng: z.ZodNullable<z.ZodNumber>;
|
|
1576
2043
|
/** Current user's team role on this farm, when known. */
|
|
1577
2044
|
myTeamRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>>>;
|
|
1578
2045
|
} & {
|
|
@@ -1582,25 +2049,43 @@ export declare const farmOnboardingResponseSchema: z.ZodObject<{
|
|
|
1582
2049
|
createdAt: string;
|
|
1583
2050
|
updatedAt: string;
|
|
1584
2051
|
name: string;
|
|
2052
|
+
countryCode: string;
|
|
2053
|
+
regionCode: string | null;
|
|
2054
|
+
subRegionCode: string | null;
|
|
2055
|
+
timezone: string;
|
|
2056
|
+
locale: string;
|
|
2057
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
2058
|
+
areaUnit: "hectares" | "acres";
|
|
2059
|
+
lat: number | null;
|
|
2060
|
+
lng: number | null;
|
|
1585
2061
|
location: string;
|
|
1586
2062
|
size: number | null;
|
|
1587
2063
|
boundary: {
|
|
1588
2064
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1589
2065
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1590
2066
|
} | null;
|
|
1591
|
-
currency: "NGN" | "USD";
|
|
2067
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1592
2068
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1593
2069
|
}, {
|
|
1594
2070
|
createdAt: string;
|
|
1595
2071
|
updatedAt: string;
|
|
1596
2072
|
name: string;
|
|
2073
|
+
countryCode: string;
|
|
2074
|
+
regionCode: string | null;
|
|
2075
|
+
subRegionCode: string | null;
|
|
2076
|
+
timezone: string;
|
|
2077
|
+
locale: string;
|
|
2078
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
2079
|
+
areaUnit: "hectares" | "acres";
|
|
2080
|
+
lat: number | null;
|
|
2081
|
+
lng: number | null;
|
|
1597
2082
|
location: string;
|
|
1598
2083
|
size: number | null;
|
|
1599
2084
|
boundary: {
|
|
1600
2085
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1601
2086
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1602
2087
|
} | null;
|
|
1603
|
-
currency: "NGN" | "USD";
|
|
2088
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1604
2089
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1605
2090
|
}>;
|
|
1606
2091
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1613,13 +2098,22 @@ export declare const farmOnboardingResponseSchema: z.ZodObject<{
|
|
|
1613
2098
|
createdAt: string;
|
|
1614
2099
|
updatedAt: string;
|
|
1615
2100
|
name: string;
|
|
2101
|
+
countryCode: string;
|
|
2102
|
+
regionCode: string | null;
|
|
2103
|
+
subRegionCode: string | null;
|
|
2104
|
+
timezone: string;
|
|
2105
|
+
locale: string;
|
|
2106
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
2107
|
+
areaUnit: "hectares" | "acres";
|
|
2108
|
+
lat: number | null;
|
|
2109
|
+
lng: number | null;
|
|
1616
2110
|
location: string;
|
|
1617
2111
|
size: number | null;
|
|
1618
2112
|
boundary: {
|
|
1619
2113
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1620
2114
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1621
2115
|
} | null;
|
|
1622
|
-
currency: "NGN" | "USD";
|
|
2116
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1623
2117
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1624
2118
|
};
|
|
1625
2119
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1632,13 +2126,22 @@ export declare const farmOnboardingResponseSchema: z.ZodObject<{
|
|
|
1632
2126
|
createdAt: string;
|
|
1633
2127
|
updatedAt: string;
|
|
1634
2128
|
name: string;
|
|
2129
|
+
countryCode: string;
|
|
2130
|
+
regionCode: string | null;
|
|
2131
|
+
subRegionCode: string | null;
|
|
2132
|
+
timezone: string;
|
|
2133
|
+
locale: string;
|
|
2134
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
2135
|
+
areaUnit: "hectares" | "acres";
|
|
2136
|
+
lat: number | null;
|
|
2137
|
+
lng: number | null;
|
|
1635
2138
|
location: string;
|
|
1636
2139
|
size: number | null;
|
|
1637
2140
|
boundary: {
|
|
1638
2141
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1639
2142
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1640
2143
|
} | null;
|
|
1641
|
-
currency: "NGN" | "USD";
|
|
2144
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1642
2145
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1643
2146
|
};
|
|
1644
2147
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1733,41 +2236,45 @@ export declare const farmOnboardingResponseSchema: z.ZodObject<{
|
|
|
1733
2236
|
lng: z.ZodNumber;
|
|
1734
2237
|
}, "strip", z.ZodTypeAny, {
|
|
1735
2238
|
state: string;
|
|
1736
|
-
lga: string;
|
|
1737
2239
|
lat: number;
|
|
1738
2240
|
lng: number;
|
|
2241
|
+
lga: string;
|
|
1739
2242
|
}, {
|
|
1740
2243
|
state: string;
|
|
1741
|
-
lga: string;
|
|
1742
2244
|
lat: number;
|
|
1743
2245
|
lng: number;
|
|
2246
|
+
lga: string;
|
|
1744
2247
|
}>;
|
|
2248
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
1745
2249
|
}, "strip", z.ZodTypeAny, {
|
|
1746
2250
|
onboardingCompleted: boolean;
|
|
1747
2251
|
location: {
|
|
1748
2252
|
state: string;
|
|
1749
|
-
lga: string;
|
|
1750
2253
|
lat: number;
|
|
1751
2254
|
lng: number;
|
|
2255
|
+
lga: string;
|
|
1752
2256
|
};
|
|
2257
|
+
countryCode?: string | undefined;
|
|
1753
2258
|
}, {
|
|
1754
2259
|
onboardingCompleted: boolean;
|
|
1755
2260
|
location: {
|
|
1756
2261
|
state: string;
|
|
1757
|
-
lga: string;
|
|
1758
2262
|
lat: number;
|
|
1759
2263
|
lng: number;
|
|
2264
|
+
lga: string;
|
|
1760
2265
|
};
|
|
2266
|
+
countryCode?: string | undefined;
|
|
1761
2267
|
}>;
|
|
1762
2268
|
}, "strip", z.ZodTypeAny, {
|
|
1763
2269
|
meta: {
|
|
1764
2270
|
onboardingCompleted: boolean;
|
|
1765
2271
|
location: {
|
|
1766
2272
|
state: string;
|
|
1767
|
-
lga: string;
|
|
1768
2273
|
lat: number;
|
|
1769
2274
|
lng: number;
|
|
2275
|
+
lga: string;
|
|
1770
2276
|
};
|
|
2277
|
+
countryCode?: string | undefined;
|
|
1771
2278
|
};
|
|
1772
2279
|
data: {
|
|
1773
2280
|
type: string;
|
|
@@ -1776,13 +2283,22 @@ export declare const farmOnboardingResponseSchema: z.ZodObject<{
|
|
|
1776
2283
|
createdAt: string;
|
|
1777
2284
|
updatedAt: string;
|
|
1778
2285
|
name: string;
|
|
2286
|
+
countryCode: string;
|
|
2287
|
+
regionCode: string | null;
|
|
2288
|
+
subRegionCode: string | null;
|
|
2289
|
+
timezone: string;
|
|
2290
|
+
locale: string;
|
|
2291
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
2292
|
+
areaUnit: "hectares" | "acres";
|
|
2293
|
+
lat: number | null;
|
|
2294
|
+
lng: number | null;
|
|
1779
2295
|
location: string;
|
|
1780
2296
|
size: number | null;
|
|
1781
2297
|
boundary: {
|
|
1782
2298
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1783
2299
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1784
2300
|
} | null;
|
|
1785
|
-
currency: "NGN" | "USD";
|
|
2301
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1786
2302
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1787
2303
|
};
|
|
1788
2304
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1811,10 +2327,11 @@ export declare const farmOnboardingResponseSchema: z.ZodObject<{
|
|
|
1811
2327
|
onboardingCompleted: boolean;
|
|
1812
2328
|
location: {
|
|
1813
2329
|
state: string;
|
|
1814
|
-
lga: string;
|
|
1815
2330
|
lat: number;
|
|
1816
2331
|
lng: number;
|
|
2332
|
+
lga: string;
|
|
1817
2333
|
};
|
|
2334
|
+
countryCode?: string | undefined;
|
|
1818
2335
|
};
|
|
1819
2336
|
data: {
|
|
1820
2337
|
type: string;
|
|
@@ -1823,13 +2340,22 @@ export declare const farmOnboardingResponseSchema: z.ZodObject<{
|
|
|
1823
2340
|
createdAt: string;
|
|
1824
2341
|
updatedAt: string;
|
|
1825
2342
|
name: string;
|
|
2343
|
+
countryCode: string;
|
|
2344
|
+
regionCode: string | null;
|
|
2345
|
+
subRegionCode: string | null;
|
|
2346
|
+
timezone: string;
|
|
2347
|
+
locale: string;
|
|
2348
|
+
unitSystem: "metric" | "imperial" | "mixed";
|
|
2349
|
+
areaUnit: "hectares" | "acres";
|
|
2350
|
+
lat: number | null;
|
|
2351
|
+
lng: number | null;
|
|
1826
2352
|
location: string;
|
|
1827
2353
|
size: number | null;
|
|
1828
2354
|
boundary: {
|
|
1829
2355
|
type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
|
|
1830
2356
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1831
2357
|
} | null;
|
|
1832
|
-
currency: "NGN" | "USD";
|
|
2358
|
+
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1833
2359
|
myTeamRole?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | null | undefined;
|
|
1834
2360
|
};
|
|
1835
2361
|
relationships?: Record<string, unknown> | undefined;
|