@deepintel-ltd/farmpro-contracts 1.11.8 → 1.11.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -0
  4. package/dist/routes/agents.routes.d.ts +142 -0
  5. package/dist/routes/agents.routes.d.ts.map +1 -1
  6. package/dist/routes/equipment.routes.d.ts +36 -36
  7. package/dist/routes/extension.routes.d.ts +12 -12
  8. package/dist/routes/fertigation.routes.d.ts +156 -156
  9. package/dist/routes/field-activities.routes.d.ts +2397 -0
  10. package/dist/routes/field-activities.routes.d.ts.map +1 -0
  11. package/dist/routes/field-activities.routes.js +81 -0
  12. package/dist/routes/fields.routes.d.ts +860 -0
  13. package/dist/routes/fields.routes.d.ts.map +1 -1
  14. package/dist/routes/fields.routes.js +20 -1
  15. package/dist/routes/index.d.ts +3 -0
  16. package/dist/routes/index.d.ts.map +1 -1
  17. package/dist/routes/index.js +2 -0
  18. package/dist/routes/irrigation.routes.d.ts +20 -20
  19. package/dist/routes/livestock-groups.routes.d.ts +36 -36
  20. package/dist/routes/livestock.routes.d.ts +30 -30
  21. package/dist/routes/soil-tests.routes.d.ts +36 -36
  22. package/dist/routes/tasks.routes.d.ts +120 -120
  23. package/dist/schemas/agents.schemas.d.ts +163 -0
  24. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  25. package/dist/schemas/agents.schemas.js +23 -0
  26. package/dist/schemas/equipment.schemas.d.ts +30 -30
  27. package/dist/schemas/extension.schemas.d.ts +18 -18
  28. package/dist/schemas/fertigation.schemas.d.ts +42 -42
  29. package/dist/schemas/field-activities.schemas.d.ts +806 -0
  30. package/dist/schemas/field-activities.schemas.d.ts.map +1 -0
  31. package/dist/schemas/field-activities.schemas.js +68 -0
  32. package/dist/schemas/fields.schemas.d.ts +173 -0
  33. package/dist/schemas/fields.schemas.d.ts.map +1 -1
  34. package/dist/schemas/fields.schemas.js +14 -0
  35. package/dist/schemas/irrigation.schemas.d.ts +14 -14
  36. package/dist/schemas/livestock-groups.schemas.d.ts +24 -24
  37. package/dist/schemas/livestock.schemas.d.ts +24 -24
  38. package/dist/schemas/soil-tests.schemas.d.ts +34 -34
  39. package/dist/schemas/tasks.schemas.d.ts +96 -96
  40. package/package.json +1 -1
@@ -0,0 +1,806 @@
1
+ import { z } from 'zod';
2
+ export declare const fieldActivityTypeSchema: z.ZodEnum<["weeding", "fertilizer"]>;
3
+ export declare const fieldActivitySourceSchema: z.ZodEnum<["manual", "agent", "whatsapp"]>;
4
+ export declare const fieldActivityAttributesSchema: z.ZodObject<{
5
+ fieldId: z.ZodString;
6
+ fieldName: z.ZodOptional<z.ZodString>;
7
+ type: z.ZodEnum<["weeding", "fertilizer"]>;
8
+ occurredAt: z.ZodString;
9
+ method: z.ZodNullable<z.ZodString>;
10
+ productName: z.ZodNullable<z.ZodString>;
11
+ fertilizerProductId: z.ZodNullable<z.ZodString>;
12
+ inventoryItemId: z.ZodNullable<z.ZodString>;
13
+ quantity: z.ZodNullable<z.ZodNumber>;
14
+ unit: z.ZodNullable<z.ZodString>;
15
+ notes: z.ZodNullable<z.ZodString>;
16
+ createdById: z.ZodNullable<z.ZodString>;
17
+ source: z.ZodEnum<["manual", "agent", "whatsapp"]>;
18
+ } & {
19
+ createdAt: z.ZodString;
20
+ updatedAt: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ type: "fertilizer" | "weeding";
23
+ source: "manual" | "agent" | "whatsapp";
24
+ createdAt: string;
25
+ updatedAt: string;
26
+ method: string | null;
27
+ notes: string | null;
28
+ fieldId: string;
29
+ inventoryItemId: string | null;
30
+ unit: string | null;
31
+ quantity: number | null;
32
+ productName: string | null;
33
+ fertilizerProductId: string | null;
34
+ occurredAt: string;
35
+ createdById: string | null;
36
+ fieldName?: string | undefined;
37
+ }, {
38
+ type: "fertilizer" | "weeding";
39
+ source: "manual" | "agent" | "whatsapp";
40
+ createdAt: string;
41
+ updatedAt: string;
42
+ method: string | null;
43
+ notes: string | null;
44
+ fieldId: string;
45
+ inventoryItemId: string | null;
46
+ unit: string | null;
47
+ quantity: number | null;
48
+ productName: string | null;
49
+ fertilizerProductId: string | null;
50
+ occurredAt: string;
51
+ createdById: string | null;
52
+ fieldName?: string | undefined;
53
+ }>;
54
+ export declare const createFieldActivityAttributesSchema: z.ZodEffects<z.ZodObject<{
55
+ fieldId: z.ZodString;
56
+ type: z.ZodEnum<["weeding", "fertilizer"]>;
57
+ occurredAt: z.ZodString;
58
+ method: z.ZodOptional<z.ZodString>;
59
+ productName: z.ZodOptional<z.ZodString>;
60
+ fertilizerProductId: z.ZodOptional<z.ZodString>;
61
+ inventoryItemId: z.ZodOptional<z.ZodString>;
62
+ quantity: z.ZodOptional<z.ZodNumber>;
63
+ unit: z.ZodOptional<z.ZodString>;
64
+ notes: z.ZodOptional<z.ZodString>;
65
+ source: z.ZodOptional<z.ZodEnum<["manual", "agent", "whatsapp"]>>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ type: "fertilizer" | "weeding";
68
+ fieldId: string;
69
+ occurredAt: string;
70
+ source?: "manual" | "agent" | "whatsapp" | undefined;
71
+ method?: string | undefined;
72
+ notes?: string | undefined;
73
+ inventoryItemId?: string | undefined;
74
+ unit?: string | undefined;
75
+ quantity?: number | undefined;
76
+ productName?: string | undefined;
77
+ fertilizerProductId?: string | undefined;
78
+ }, {
79
+ type: "fertilizer" | "weeding";
80
+ fieldId: string;
81
+ occurredAt: string;
82
+ source?: "manual" | "agent" | "whatsapp" | undefined;
83
+ method?: string | undefined;
84
+ notes?: string | undefined;
85
+ inventoryItemId?: string | undefined;
86
+ unit?: string | undefined;
87
+ quantity?: number | undefined;
88
+ productName?: string | undefined;
89
+ fertilizerProductId?: string | undefined;
90
+ }>, {
91
+ type: "fertilizer" | "weeding";
92
+ fieldId: string;
93
+ occurredAt: string;
94
+ source?: "manual" | "agent" | "whatsapp" | undefined;
95
+ method?: string | undefined;
96
+ notes?: string | undefined;
97
+ inventoryItemId?: string | undefined;
98
+ unit?: string | undefined;
99
+ quantity?: number | undefined;
100
+ productName?: string | undefined;
101
+ fertilizerProductId?: string | undefined;
102
+ }, {
103
+ type: "fertilizer" | "weeding";
104
+ fieldId: string;
105
+ occurredAt: string;
106
+ source?: "manual" | "agent" | "whatsapp" | undefined;
107
+ method?: string | undefined;
108
+ notes?: string | undefined;
109
+ inventoryItemId?: string | undefined;
110
+ unit?: string | undefined;
111
+ quantity?: number | undefined;
112
+ productName?: string | undefined;
113
+ fertilizerProductId?: string | undefined;
114
+ }>;
115
+ export declare const updateFieldActivityAttributesSchema: z.ZodObject<{
116
+ occurredAt: z.ZodOptional<z.ZodString>;
117
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
+ productName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ fertilizerProductId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ inventoryItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
122
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ method?: string | null | undefined;
126
+ notes?: string | null | undefined;
127
+ inventoryItemId?: string | null | undefined;
128
+ unit?: string | null | undefined;
129
+ quantity?: number | null | undefined;
130
+ productName?: string | null | undefined;
131
+ fertilizerProductId?: string | null | undefined;
132
+ occurredAt?: string | undefined;
133
+ }, {
134
+ method?: string | null | undefined;
135
+ notes?: string | null | undefined;
136
+ inventoryItemId?: string | null | undefined;
137
+ unit?: string | null | undefined;
138
+ quantity?: number | null | undefined;
139
+ productName?: string | null | undefined;
140
+ fertilizerProductId?: string | null | undefined;
141
+ occurredAt?: string | undefined;
142
+ }>;
143
+ export declare const createFieldActivitySchema: z.ZodObject<{
144
+ type: z.ZodLiteral<"field-activities">;
145
+ attributes: z.ZodEffects<z.ZodObject<{
146
+ fieldId: z.ZodString;
147
+ type: z.ZodEnum<["weeding", "fertilizer"]>;
148
+ occurredAt: z.ZodString;
149
+ method: z.ZodOptional<z.ZodString>;
150
+ productName: z.ZodOptional<z.ZodString>;
151
+ fertilizerProductId: z.ZodOptional<z.ZodString>;
152
+ inventoryItemId: z.ZodOptional<z.ZodString>;
153
+ quantity: z.ZodOptional<z.ZodNumber>;
154
+ unit: z.ZodOptional<z.ZodString>;
155
+ notes: z.ZodOptional<z.ZodString>;
156
+ source: z.ZodOptional<z.ZodEnum<["manual", "agent", "whatsapp"]>>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ type: "fertilizer" | "weeding";
159
+ fieldId: string;
160
+ occurredAt: string;
161
+ source?: "manual" | "agent" | "whatsapp" | undefined;
162
+ method?: string | undefined;
163
+ notes?: string | undefined;
164
+ inventoryItemId?: string | undefined;
165
+ unit?: string | undefined;
166
+ quantity?: number | undefined;
167
+ productName?: string | undefined;
168
+ fertilizerProductId?: string | undefined;
169
+ }, {
170
+ type: "fertilizer" | "weeding";
171
+ fieldId: string;
172
+ occurredAt: string;
173
+ source?: "manual" | "agent" | "whatsapp" | undefined;
174
+ method?: string | undefined;
175
+ notes?: string | undefined;
176
+ inventoryItemId?: string | undefined;
177
+ unit?: string | undefined;
178
+ quantity?: number | undefined;
179
+ productName?: string | undefined;
180
+ fertilizerProductId?: string | undefined;
181
+ }>, {
182
+ type: "fertilizer" | "weeding";
183
+ fieldId: string;
184
+ occurredAt: string;
185
+ source?: "manual" | "agent" | "whatsapp" | undefined;
186
+ method?: string | undefined;
187
+ notes?: string | undefined;
188
+ inventoryItemId?: string | undefined;
189
+ unit?: string | undefined;
190
+ quantity?: number | undefined;
191
+ productName?: string | undefined;
192
+ fertilizerProductId?: string | undefined;
193
+ }, {
194
+ type: "fertilizer" | "weeding";
195
+ fieldId: string;
196
+ occurredAt: string;
197
+ source?: "manual" | "agent" | "whatsapp" | undefined;
198
+ method?: string | undefined;
199
+ notes?: string | undefined;
200
+ inventoryItemId?: string | undefined;
201
+ unit?: string | undefined;
202
+ quantity?: number | undefined;
203
+ productName?: string | undefined;
204
+ fertilizerProductId?: string | undefined;
205
+ }>;
206
+ }, "strip", z.ZodTypeAny, {
207
+ type: "field-activities";
208
+ attributes: {
209
+ type: "fertilizer" | "weeding";
210
+ fieldId: string;
211
+ occurredAt: string;
212
+ source?: "manual" | "agent" | "whatsapp" | undefined;
213
+ method?: string | undefined;
214
+ notes?: string | undefined;
215
+ inventoryItemId?: string | undefined;
216
+ unit?: string | undefined;
217
+ quantity?: number | undefined;
218
+ productName?: string | undefined;
219
+ fertilizerProductId?: string | undefined;
220
+ };
221
+ }, {
222
+ type: "field-activities";
223
+ attributes: {
224
+ type: "fertilizer" | "weeding";
225
+ fieldId: string;
226
+ occurredAt: string;
227
+ source?: "manual" | "agent" | "whatsapp" | undefined;
228
+ method?: string | undefined;
229
+ notes?: string | undefined;
230
+ inventoryItemId?: string | undefined;
231
+ unit?: string | undefined;
232
+ quantity?: number | undefined;
233
+ productName?: string | undefined;
234
+ fertilizerProductId?: string | undefined;
235
+ };
236
+ }>;
237
+ export declare const updateFieldActivitySchema: z.ZodObject<{
238
+ type: z.ZodLiteral<"field-activities">;
239
+ id: z.ZodString;
240
+ attributes: z.ZodObject<{
241
+ occurredAt: z.ZodOptional<z.ZodString>;
242
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
243
+ productName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ fertilizerProductId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
+ inventoryItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
247
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ method?: string | null | undefined;
251
+ notes?: string | null | undefined;
252
+ inventoryItemId?: string | null | undefined;
253
+ unit?: string | null | undefined;
254
+ quantity?: number | null | undefined;
255
+ productName?: string | null | undefined;
256
+ fertilizerProductId?: string | null | undefined;
257
+ occurredAt?: string | undefined;
258
+ }, {
259
+ method?: string | null | undefined;
260
+ notes?: string | null | undefined;
261
+ inventoryItemId?: string | null | undefined;
262
+ unit?: string | null | undefined;
263
+ quantity?: number | null | undefined;
264
+ productName?: string | null | undefined;
265
+ fertilizerProductId?: string | null | undefined;
266
+ occurredAt?: string | undefined;
267
+ }>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ type: "field-activities";
270
+ id: string;
271
+ attributes: {
272
+ method?: string | null | undefined;
273
+ notes?: string | null | undefined;
274
+ inventoryItemId?: string | null | undefined;
275
+ unit?: string | null | undefined;
276
+ quantity?: number | null | undefined;
277
+ productName?: string | null | undefined;
278
+ fertilizerProductId?: string | null | undefined;
279
+ occurredAt?: string | undefined;
280
+ };
281
+ }, {
282
+ type: "field-activities";
283
+ id: string;
284
+ attributes: {
285
+ method?: string | null | undefined;
286
+ notes?: string | null | undefined;
287
+ inventoryItemId?: string | null | undefined;
288
+ unit?: string | null | undefined;
289
+ quantity?: number | null | undefined;
290
+ productName?: string | null | undefined;
291
+ fertilizerProductId?: string | null | undefined;
292
+ occurredAt?: string | undefined;
293
+ };
294
+ }>;
295
+ export declare const fieldActivityResourceSchema: z.ZodObject<{
296
+ type: z.ZodLiteral<string>;
297
+ id: z.ZodString;
298
+ attributes: z.ZodObject<{
299
+ fieldId: z.ZodString;
300
+ fieldName: z.ZodOptional<z.ZodString>;
301
+ type: z.ZodEnum<["weeding", "fertilizer"]>;
302
+ occurredAt: z.ZodString;
303
+ method: z.ZodNullable<z.ZodString>;
304
+ productName: z.ZodNullable<z.ZodString>;
305
+ fertilizerProductId: z.ZodNullable<z.ZodString>;
306
+ inventoryItemId: z.ZodNullable<z.ZodString>;
307
+ quantity: z.ZodNullable<z.ZodNumber>;
308
+ unit: z.ZodNullable<z.ZodString>;
309
+ notes: z.ZodNullable<z.ZodString>;
310
+ createdById: z.ZodNullable<z.ZodString>;
311
+ source: z.ZodEnum<["manual", "agent", "whatsapp"]>;
312
+ } & {
313
+ createdAt: z.ZodString;
314
+ updatedAt: z.ZodString;
315
+ }, "strip", z.ZodTypeAny, {
316
+ type: "fertilizer" | "weeding";
317
+ source: "manual" | "agent" | "whatsapp";
318
+ createdAt: string;
319
+ updatedAt: string;
320
+ method: string | null;
321
+ notes: string | null;
322
+ fieldId: string;
323
+ inventoryItemId: string | null;
324
+ unit: string | null;
325
+ quantity: number | null;
326
+ productName: string | null;
327
+ fertilizerProductId: string | null;
328
+ occurredAt: string;
329
+ createdById: string | null;
330
+ fieldName?: string | undefined;
331
+ }, {
332
+ type: "fertilizer" | "weeding";
333
+ source: "manual" | "agent" | "whatsapp";
334
+ createdAt: string;
335
+ updatedAt: string;
336
+ method: string | null;
337
+ notes: string | null;
338
+ fieldId: string;
339
+ inventoryItemId: string | null;
340
+ unit: string | null;
341
+ quantity: number | null;
342
+ productName: string | null;
343
+ fertilizerProductId: string | null;
344
+ occurredAt: string;
345
+ createdById: string | null;
346
+ fieldName?: string | undefined;
347
+ }>;
348
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
349
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
350
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ type: string;
353
+ id: string;
354
+ attributes: {
355
+ type: "fertilizer" | "weeding";
356
+ source: "manual" | "agent" | "whatsapp";
357
+ createdAt: string;
358
+ updatedAt: string;
359
+ method: string | null;
360
+ notes: string | null;
361
+ fieldId: string;
362
+ inventoryItemId: string | null;
363
+ unit: string | null;
364
+ quantity: number | null;
365
+ productName: string | null;
366
+ fertilizerProductId: string | null;
367
+ occurredAt: string;
368
+ createdById: string | null;
369
+ fieldName?: string | undefined;
370
+ };
371
+ relationships?: Record<string, unknown> | undefined;
372
+ links?: Record<string, string> | undefined;
373
+ meta?: Record<string, unknown> | undefined;
374
+ }, {
375
+ type: string;
376
+ id: string;
377
+ attributes: {
378
+ type: "fertilizer" | "weeding";
379
+ source: "manual" | "agent" | "whatsapp";
380
+ createdAt: string;
381
+ updatedAt: string;
382
+ method: string | null;
383
+ notes: string | null;
384
+ fieldId: string;
385
+ inventoryItemId: string | null;
386
+ unit: string | null;
387
+ quantity: number | null;
388
+ productName: string | null;
389
+ fertilizerProductId: string | null;
390
+ occurredAt: string;
391
+ createdById: string | null;
392
+ fieldName?: string | undefined;
393
+ };
394
+ relationships?: Record<string, unknown> | undefined;
395
+ links?: Record<string, string> | undefined;
396
+ meta?: Record<string, unknown> | undefined;
397
+ }>;
398
+ export declare const fieldActivityResponseSchema: z.ZodObject<{
399
+ data: z.ZodObject<{
400
+ type: z.ZodLiteral<string>;
401
+ id: z.ZodString;
402
+ attributes: z.ZodObject<{
403
+ fieldId: z.ZodString;
404
+ fieldName: z.ZodOptional<z.ZodString>;
405
+ type: z.ZodEnum<["weeding", "fertilizer"]>;
406
+ occurredAt: z.ZodString;
407
+ method: z.ZodNullable<z.ZodString>;
408
+ productName: z.ZodNullable<z.ZodString>;
409
+ fertilizerProductId: z.ZodNullable<z.ZodString>;
410
+ inventoryItemId: z.ZodNullable<z.ZodString>;
411
+ quantity: z.ZodNullable<z.ZodNumber>;
412
+ unit: z.ZodNullable<z.ZodString>;
413
+ notes: z.ZodNullable<z.ZodString>;
414
+ createdById: z.ZodNullable<z.ZodString>;
415
+ source: z.ZodEnum<["manual", "agent", "whatsapp"]>;
416
+ } & {
417
+ createdAt: z.ZodString;
418
+ updatedAt: z.ZodString;
419
+ }, "strip", z.ZodTypeAny, {
420
+ type: "fertilizer" | "weeding";
421
+ source: "manual" | "agent" | "whatsapp";
422
+ createdAt: string;
423
+ updatedAt: string;
424
+ method: string | null;
425
+ notes: string | null;
426
+ fieldId: string;
427
+ inventoryItemId: string | null;
428
+ unit: string | null;
429
+ quantity: number | null;
430
+ productName: string | null;
431
+ fertilizerProductId: string | null;
432
+ occurredAt: string;
433
+ createdById: string | null;
434
+ fieldName?: string | undefined;
435
+ }, {
436
+ type: "fertilizer" | "weeding";
437
+ source: "manual" | "agent" | "whatsapp";
438
+ createdAt: string;
439
+ updatedAt: string;
440
+ method: string | null;
441
+ notes: string | null;
442
+ fieldId: string;
443
+ inventoryItemId: string | null;
444
+ unit: string | null;
445
+ quantity: number | null;
446
+ productName: string | null;
447
+ fertilizerProductId: string | null;
448
+ occurredAt: string;
449
+ createdById: string | null;
450
+ fieldName?: string | undefined;
451
+ }>;
452
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
453
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
454
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ type: string;
457
+ id: string;
458
+ attributes: {
459
+ type: "fertilizer" | "weeding";
460
+ source: "manual" | "agent" | "whatsapp";
461
+ createdAt: string;
462
+ updatedAt: string;
463
+ method: string | null;
464
+ notes: string | null;
465
+ fieldId: string;
466
+ inventoryItemId: string | null;
467
+ unit: string | null;
468
+ quantity: number | null;
469
+ productName: string | null;
470
+ fertilizerProductId: string | null;
471
+ occurredAt: string;
472
+ createdById: string | null;
473
+ fieldName?: string | undefined;
474
+ };
475
+ relationships?: Record<string, unknown> | undefined;
476
+ links?: Record<string, string> | undefined;
477
+ meta?: Record<string, unknown> | undefined;
478
+ }, {
479
+ type: string;
480
+ id: string;
481
+ attributes: {
482
+ type: "fertilizer" | "weeding";
483
+ source: "manual" | "agent" | "whatsapp";
484
+ createdAt: string;
485
+ updatedAt: string;
486
+ method: string | null;
487
+ notes: string | null;
488
+ fieldId: string;
489
+ inventoryItemId: string | null;
490
+ unit: string | null;
491
+ quantity: number | null;
492
+ productName: string | null;
493
+ fertilizerProductId: string | null;
494
+ occurredAt: string;
495
+ createdById: string | null;
496
+ fieldName?: string | undefined;
497
+ };
498
+ relationships?: Record<string, unknown> | undefined;
499
+ links?: Record<string, string> | undefined;
500
+ meta?: Record<string, unknown> | undefined;
501
+ }>;
502
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
503
+ type: z.ZodString;
504
+ id: z.ZodString;
505
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
506
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
507
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
508
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ type: string;
511
+ id: string;
512
+ attributes?: Record<string, unknown> | undefined;
513
+ relationships?: Record<string, unknown> | undefined;
514
+ links?: Record<string, string> | undefined;
515
+ meta?: Record<string, unknown> | undefined;
516
+ }, {
517
+ type: string;
518
+ id: string;
519
+ attributes?: Record<string, unknown> | undefined;
520
+ relationships?: Record<string, unknown> | undefined;
521
+ links?: Record<string, string> | undefined;
522
+ meta?: Record<string, unknown> | undefined;
523
+ }>, "many">>;
524
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
525
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ data: {
528
+ type: string;
529
+ id: string;
530
+ attributes: {
531
+ type: "fertilizer" | "weeding";
532
+ source: "manual" | "agent" | "whatsapp";
533
+ createdAt: string;
534
+ updatedAt: string;
535
+ method: string | null;
536
+ notes: string | null;
537
+ fieldId: string;
538
+ inventoryItemId: string | null;
539
+ unit: string | null;
540
+ quantity: number | null;
541
+ productName: string | null;
542
+ fertilizerProductId: string | null;
543
+ occurredAt: string;
544
+ createdById: string | null;
545
+ fieldName?: string | undefined;
546
+ };
547
+ relationships?: Record<string, unknown> | undefined;
548
+ links?: Record<string, string> | undefined;
549
+ meta?: Record<string, unknown> | undefined;
550
+ };
551
+ links?: Record<string, string> | undefined;
552
+ meta?: Record<string, unknown> | undefined;
553
+ included?: {
554
+ type: string;
555
+ id: string;
556
+ attributes?: Record<string, unknown> | undefined;
557
+ relationships?: Record<string, unknown> | undefined;
558
+ links?: Record<string, string> | undefined;
559
+ meta?: Record<string, unknown> | undefined;
560
+ }[] | undefined;
561
+ }, {
562
+ data: {
563
+ type: string;
564
+ id: string;
565
+ attributes: {
566
+ type: "fertilizer" | "weeding";
567
+ source: "manual" | "agent" | "whatsapp";
568
+ createdAt: string;
569
+ updatedAt: string;
570
+ method: string | null;
571
+ notes: string | null;
572
+ fieldId: string;
573
+ inventoryItemId: string | null;
574
+ unit: string | null;
575
+ quantity: number | null;
576
+ productName: string | null;
577
+ fertilizerProductId: string | null;
578
+ occurredAt: string;
579
+ createdById: string | null;
580
+ fieldName?: string | undefined;
581
+ };
582
+ relationships?: Record<string, unknown> | undefined;
583
+ links?: Record<string, string> | undefined;
584
+ meta?: Record<string, unknown> | undefined;
585
+ };
586
+ links?: Record<string, string> | undefined;
587
+ meta?: Record<string, unknown> | undefined;
588
+ included?: {
589
+ type: string;
590
+ id: string;
591
+ attributes?: Record<string, unknown> | undefined;
592
+ relationships?: Record<string, unknown> | undefined;
593
+ links?: Record<string, string> | undefined;
594
+ meta?: Record<string, unknown> | undefined;
595
+ }[] | undefined;
596
+ }>;
597
+ export declare const fieldActivityListResponseSchema: z.ZodObject<{
598
+ data: z.ZodArray<z.ZodObject<{
599
+ type: z.ZodLiteral<string>;
600
+ id: z.ZodString;
601
+ attributes: z.ZodObject<{
602
+ fieldId: z.ZodString;
603
+ fieldName: z.ZodOptional<z.ZodString>;
604
+ type: z.ZodEnum<["weeding", "fertilizer"]>;
605
+ occurredAt: z.ZodString;
606
+ method: z.ZodNullable<z.ZodString>;
607
+ productName: z.ZodNullable<z.ZodString>;
608
+ fertilizerProductId: z.ZodNullable<z.ZodString>;
609
+ inventoryItemId: z.ZodNullable<z.ZodString>;
610
+ quantity: z.ZodNullable<z.ZodNumber>;
611
+ unit: z.ZodNullable<z.ZodString>;
612
+ notes: z.ZodNullable<z.ZodString>;
613
+ createdById: z.ZodNullable<z.ZodString>;
614
+ source: z.ZodEnum<["manual", "agent", "whatsapp"]>;
615
+ } & {
616
+ createdAt: z.ZodString;
617
+ updatedAt: z.ZodString;
618
+ }, "strip", z.ZodTypeAny, {
619
+ type: "fertilizer" | "weeding";
620
+ source: "manual" | "agent" | "whatsapp";
621
+ createdAt: string;
622
+ updatedAt: string;
623
+ method: string | null;
624
+ notes: string | null;
625
+ fieldId: string;
626
+ inventoryItemId: string | null;
627
+ unit: string | null;
628
+ quantity: number | null;
629
+ productName: string | null;
630
+ fertilizerProductId: string | null;
631
+ occurredAt: string;
632
+ createdById: string | null;
633
+ fieldName?: string | undefined;
634
+ }, {
635
+ type: "fertilizer" | "weeding";
636
+ source: "manual" | "agent" | "whatsapp";
637
+ createdAt: string;
638
+ updatedAt: string;
639
+ method: string | null;
640
+ notes: string | null;
641
+ fieldId: string;
642
+ inventoryItemId: string | null;
643
+ unit: string | null;
644
+ quantity: number | null;
645
+ productName: string | null;
646
+ fertilizerProductId: string | null;
647
+ occurredAt: string;
648
+ createdById: string | null;
649
+ fieldName?: string | undefined;
650
+ }>;
651
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
652
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
653
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ type: string;
656
+ id: string;
657
+ attributes: {
658
+ type: "fertilizer" | "weeding";
659
+ source: "manual" | "agent" | "whatsapp";
660
+ createdAt: string;
661
+ updatedAt: string;
662
+ method: string | null;
663
+ notes: string | null;
664
+ fieldId: string;
665
+ inventoryItemId: string | null;
666
+ unit: string | null;
667
+ quantity: number | null;
668
+ productName: string | null;
669
+ fertilizerProductId: string | null;
670
+ occurredAt: string;
671
+ createdById: string | null;
672
+ fieldName?: string | undefined;
673
+ };
674
+ relationships?: Record<string, unknown> | undefined;
675
+ links?: Record<string, string> | undefined;
676
+ meta?: Record<string, unknown> | undefined;
677
+ }, {
678
+ type: string;
679
+ id: string;
680
+ attributes: {
681
+ type: "fertilizer" | "weeding";
682
+ source: "manual" | "agent" | "whatsapp";
683
+ createdAt: string;
684
+ updatedAt: string;
685
+ method: string | null;
686
+ notes: string | null;
687
+ fieldId: string;
688
+ inventoryItemId: string | null;
689
+ unit: string | null;
690
+ quantity: number | null;
691
+ productName: string | null;
692
+ fertilizerProductId: string | null;
693
+ occurredAt: string;
694
+ createdById: string | null;
695
+ fieldName?: string | undefined;
696
+ };
697
+ relationships?: Record<string, unknown> | undefined;
698
+ links?: Record<string, string> | undefined;
699
+ meta?: Record<string, unknown> | undefined;
700
+ }>, "many">;
701
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
702
+ type: z.ZodString;
703
+ id: z.ZodString;
704
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
705
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
706
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
707
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ type: string;
710
+ id: string;
711
+ attributes?: Record<string, unknown> | undefined;
712
+ relationships?: Record<string, unknown> | undefined;
713
+ links?: Record<string, string> | undefined;
714
+ meta?: Record<string, unknown> | undefined;
715
+ }, {
716
+ type: string;
717
+ id: string;
718
+ attributes?: Record<string, unknown> | undefined;
719
+ relationships?: Record<string, unknown> | undefined;
720
+ links?: Record<string, string> | undefined;
721
+ meta?: Record<string, unknown> | undefined;
722
+ }>, "many">>;
723
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
724
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ data: {
727
+ type: string;
728
+ id: string;
729
+ attributes: {
730
+ type: "fertilizer" | "weeding";
731
+ source: "manual" | "agent" | "whatsapp";
732
+ createdAt: string;
733
+ updatedAt: string;
734
+ method: string | null;
735
+ notes: string | null;
736
+ fieldId: string;
737
+ inventoryItemId: string | null;
738
+ unit: string | null;
739
+ quantity: number | null;
740
+ productName: string | null;
741
+ fertilizerProductId: string | null;
742
+ occurredAt: string;
743
+ createdById: string | null;
744
+ fieldName?: string | undefined;
745
+ };
746
+ relationships?: Record<string, unknown> | undefined;
747
+ links?: Record<string, string> | undefined;
748
+ meta?: Record<string, unknown> | undefined;
749
+ }[];
750
+ links?: Record<string, string> | undefined;
751
+ meta?: Record<string, unknown> | undefined;
752
+ included?: {
753
+ type: string;
754
+ id: string;
755
+ attributes?: Record<string, unknown> | undefined;
756
+ relationships?: Record<string, unknown> | undefined;
757
+ links?: Record<string, string> | undefined;
758
+ meta?: Record<string, unknown> | undefined;
759
+ }[] | undefined;
760
+ }, {
761
+ data: {
762
+ type: string;
763
+ id: string;
764
+ attributes: {
765
+ type: "fertilizer" | "weeding";
766
+ source: "manual" | "agent" | "whatsapp";
767
+ createdAt: string;
768
+ updatedAt: string;
769
+ method: string | null;
770
+ notes: string | null;
771
+ fieldId: string;
772
+ inventoryItemId: string | null;
773
+ unit: string | null;
774
+ quantity: number | null;
775
+ productName: string | null;
776
+ fertilizerProductId: string | null;
777
+ occurredAt: string;
778
+ createdById: string | null;
779
+ fieldName?: string | undefined;
780
+ };
781
+ relationships?: Record<string, unknown> | undefined;
782
+ links?: Record<string, string> | undefined;
783
+ meta?: Record<string, unknown> | undefined;
784
+ }[];
785
+ links?: Record<string, string> | undefined;
786
+ meta?: Record<string, unknown> | undefined;
787
+ included?: {
788
+ type: string;
789
+ id: string;
790
+ attributes?: Record<string, unknown> | undefined;
791
+ relationships?: Record<string, unknown> | undefined;
792
+ links?: Record<string, string> | undefined;
793
+ meta?: Record<string, unknown> | undefined;
794
+ }[] | undefined;
795
+ }>;
796
+ export type FieldActivityType = z.infer<typeof fieldActivityTypeSchema>;
797
+ export type FieldActivitySource = z.infer<typeof fieldActivitySourceSchema>;
798
+ export type CreateFieldActivityAttributes = z.infer<typeof createFieldActivityAttributesSchema>;
799
+ export type UpdateFieldActivityAttributes = z.infer<typeof updateFieldActivityAttributesSchema>;
800
+ export type CreateFieldActivityInput = z.infer<typeof createFieldActivitySchema>;
801
+ export type UpdateFieldActivityInput = z.infer<typeof updateFieldActivitySchema>;
802
+ export type FieldActivityAttributes = z.infer<typeof fieldActivityAttributesSchema>;
803
+ export type FieldActivityResource = z.infer<typeof fieldActivityResourceSchema>;
804
+ export type FieldActivityResponse = z.infer<typeof fieldActivityResponseSchema>;
805
+ export type FieldActivityListResponse = z.infer<typeof fieldActivityListResponseSchema>;
806
+ //# sourceMappingURL=field-activities.schemas.d.ts.map