@deepintel-ltd/farmpro-contracts 1.0.1 → 1.0.3

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 (100) hide show
  1. package/dist/index.d.ts +41 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +81 -0
  4. package/dist/routes/analytics.routes.d.ts +754 -0
  5. package/dist/routes/analytics.routes.d.ts.map +1 -0
  6. package/dist/routes/analytics.routes.js +24 -0
  7. package/dist/routes/auth.routes.d.ts +3836 -0
  8. package/dist/routes/auth.routes.d.ts.map +1 -0
  9. package/dist/routes/auth.routes.js +158 -0
  10. package/dist/routes/documents.routes.d.ts +2476 -0
  11. package/dist/routes/documents.routes.d.ts.map +1 -0
  12. package/dist/routes/documents.routes.js +100 -0
  13. package/dist/routes/equipment.routes.d.ts +3617 -0
  14. package/dist/routes/equipment.routes.d.ts.map +1 -0
  15. package/dist/routes/equipment.routes.js +118 -0
  16. package/dist/routes/farms.routes.d.ts +2202 -0
  17. package/dist/routes/farms.routes.d.ts.map +1 -0
  18. package/dist/routes/farms.routes.js +111 -0
  19. package/dist/routes/fields.routes.d.ts +3389 -0
  20. package/dist/routes/fields.routes.d.ts.map +1 -0
  21. package/dist/routes/fields.routes.js +95 -0
  22. package/dist/routes/finance.routes.d.ts +6855 -0
  23. package/dist/routes/finance.routes.d.ts.map +1 -0
  24. package/dist/routes/finance.routes.js +259 -0
  25. package/dist/routes/harvest.routes.d.ts +2337 -0
  26. package/dist/routes/harvest.routes.d.ts.map +1 -0
  27. package/dist/routes/harvest.routes.js +99 -0
  28. package/dist/routes/index.d.ts +68 -0
  29. package/dist/routes/index.d.ts.map +1 -0
  30. package/dist/routes/index.js +43 -0
  31. package/dist/routes/inventory.routes.d.ts +2853 -0
  32. package/dist/routes/inventory.routes.d.ts.map +1 -0
  33. package/dist/routes/inventory.routes.js +121 -0
  34. package/dist/routes/soil-tests.routes.d.ts +3005 -0
  35. package/dist/routes/soil-tests.routes.d.ts.map +1 -0
  36. package/dist/routes/soil-tests.routes.js +98 -0
  37. package/dist/routes/suppliers.routes.d.ts +4190 -0
  38. package/dist/routes/suppliers.routes.d.ts.map +1 -0
  39. package/dist/routes/suppliers.routes.js +146 -0
  40. package/dist/routes/tasks.routes.d.ts +4192 -0
  41. package/dist/routes/tasks.routes.d.ts.map +1 -0
  42. package/dist/routes/tasks.routes.js +138 -0
  43. package/dist/routes/team.routes.d.ts +2210 -0
  44. package/dist/routes/team.routes.d.ts.map +1 -0
  45. package/dist/routes/team.routes.js +98 -0
  46. package/dist/routes/users.routes.d.ts +721 -0
  47. package/dist/routes/users.routes.d.ts.map +1 -0
  48. package/dist/routes/users.routes.js +35 -0
  49. package/dist/routes/weather.routes.d.ts +500 -0
  50. package/dist/routes/weather.routes.d.ts.map +1 -0
  51. package/dist/routes/weather.routes.js +23 -0
  52. package/dist/schemas/analytics.schemas.d.ts +1344 -0
  53. package/dist/schemas/analytics.schemas.d.ts.map +1 -0
  54. package/dist/schemas/analytics.schemas.js +73 -0
  55. package/dist/schemas/auth.schemas.d.ts +1093 -0
  56. package/dist/schemas/auth.schemas.d.ts.map +1 -0
  57. package/dist/schemas/auth.schemas.js +159 -0
  58. package/dist/schemas/common.schemas.d.ts +562 -0
  59. package/dist/schemas/common.schemas.d.ts.map +1 -0
  60. package/dist/schemas/common.schemas.js +122 -0
  61. package/dist/schemas/documents.schemas.d.ts +850 -0
  62. package/dist/schemas/documents.schemas.d.ts.map +1 -0
  63. package/dist/schemas/documents.schemas.js +75 -0
  64. package/dist/schemas/equipment.schemas.d.ts +1618 -0
  65. package/dist/schemas/equipment.schemas.d.ts.map +1 -0
  66. package/dist/schemas/equipment.schemas.js +125 -0
  67. package/dist/schemas/farms.schemas.d.ts +1171 -0
  68. package/dist/schemas/farms.schemas.d.ts.map +1 -0
  69. package/dist/schemas/farms.schemas.js +62 -0
  70. package/dist/schemas/fields.schemas.d.ts +2508 -0
  71. package/dist/schemas/fields.schemas.d.ts.map +1 -0
  72. package/dist/schemas/fields.schemas.js +125 -0
  73. package/dist/schemas/finance.schemas.d.ts +2869 -0
  74. package/dist/schemas/finance.schemas.d.ts.map +1 -0
  75. package/dist/schemas/finance.schemas.js +196 -0
  76. package/dist/schemas/harvest.schemas.d.ts +1051 -0
  77. package/dist/schemas/harvest.schemas.d.ts.map +1 -0
  78. package/dist/schemas/harvest.schemas.js +71 -0
  79. package/dist/schemas/inventory.schemas.d.ts +1138 -0
  80. package/dist/schemas/inventory.schemas.d.ts.map +1 -0
  81. package/dist/schemas/inventory.schemas.js +89 -0
  82. package/dist/schemas/soil-tests.schemas.d.ts +1885 -0
  83. package/dist/schemas/soil-tests.schemas.d.ts.map +1 -0
  84. package/dist/schemas/soil-tests.schemas.js +102 -0
  85. package/dist/schemas/suppliers.schemas.d.ts +1774 -0
  86. package/dist/schemas/suppliers.schemas.d.ts.map +1 -0
  87. package/dist/schemas/suppliers.schemas.js +121 -0
  88. package/dist/schemas/tasks.schemas.d.ts +1761 -0
  89. package/dist/schemas/tasks.schemas.d.ts.map +1 -0
  90. package/dist/schemas/tasks.schemas.js +121 -0
  91. package/dist/schemas/team.schemas.d.ts +583 -0
  92. package/dist/schemas/team.schemas.d.ts.map +1 -0
  93. package/dist/schemas/team.schemas.js +60 -0
  94. package/dist/schemas/users.schemas.d.ts +288 -0
  95. package/dist/schemas/users.schemas.d.ts.map +1 -0
  96. package/dist/schemas/users.schemas.js +32 -0
  97. package/dist/schemas/weather.schemas.d.ts +682 -0
  98. package/dist/schemas/weather.schemas.d.ts.map +1 -0
  99. package/dist/schemas/weather.schemas.js +49 -0
  100. package/package.json +1 -1
@@ -0,0 +1,2210 @@
1
+ import { z } from 'zod';
2
+ export declare const teamRouter: {
3
+ listTeamMembers: {
4
+ pathParams: z.ZodObject<{
5
+ farmId: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ farmId: string;
8
+ }, {
9
+ farmId: string;
10
+ }>;
11
+ query: z.ZodObject<{
12
+ 'page[number]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
13
+ 'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
14
+ } & {
15
+ sort: z.ZodOptional<z.ZodString>;
16
+ } & {
17
+ include: z.ZodOptional<z.ZodString>;
18
+ } & {
19
+ 'filter[startDate]': z.ZodOptional<z.ZodString>;
20
+ 'filter[endDate]': z.ZodOptional<z.ZodString>;
21
+ 'filter[status]': z.ZodOptional<z.ZodString>;
22
+ 'filter[crop]': z.ZodOptional<z.ZodString>;
23
+ } & {
24
+ 'filter[role]': z.ZodOptional<z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ sort?: string | undefined;
27
+ 'page[number]'?: number | undefined;
28
+ 'page[size]'?: number | undefined;
29
+ 'filter[startDate]'?: string | undefined;
30
+ 'filter[endDate]'?: string | undefined;
31
+ 'filter[status]'?: string | undefined;
32
+ 'filter[crop]'?: string | undefined;
33
+ include?: string | undefined;
34
+ 'filter[role]'?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | undefined;
35
+ }, {
36
+ sort?: string | undefined;
37
+ 'page[number]'?: number | undefined;
38
+ 'page[size]'?: number | undefined;
39
+ 'filter[startDate]'?: string | undefined;
40
+ 'filter[endDate]'?: string | undefined;
41
+ 'filter[status]'?: string | undefined;
42
+ 'filter[crop]'?: string | undefined;
43
+ include?: string | undefined;
44
+ 'filter[role]'?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | undefined;
45
+ }>;
46
+ summary: "List team members";
47
+ description: "Get all team members for a farm with optional filtering";
48
+ method: "GET";
49
+ path: "/farms/:farmId/team";
50
+ responses: {
51
+ 200: z.ZodObject<{
52
+ data: z.ZodArray<z.ZodObject<{
53
+ type: z.ZodLiteral<string>;
54
+ id: z.ZodString;
55
+ attributes: z.ZodObject<{
56
+ farmId: z.ZodString;
57
+ userId: z.ZodNullable<z.ZodString>;
58
+ name: z.ZodString;
59
+ email: z.ZodString;
60
+ role: z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>;
61
+ phone: z.ZodNullable<z.ZodString>;
62
+ tasksAssigned: z.ZodOptional<z.ZodNumber>;
63
+ tasksCompleted: z.ZodOptional<z.ZodNumber>;
64
+ tasksPending: z.ZodOptional<z.ZodNumber>;
65
+ } & {
66
+ createdAt: z.ZodString;
67
+ updatedAt: z.ZodString;
68
+ }, "strip", z.ZodTypeAny, {
69
+ email: string;
70
+ createdAt: string;
71
+ updatedAt: string;
72
+ name: string;
73
+ phone: string | null;
74
+ farmId: string;
75
+ userId: string | null;
76
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
77
+ tasksAssigned?: number | undefined;
78
+ tasksCompleted?: number | undefined;
79
+ tasksPending?: number | undefined;
80
+ }, {
81
+ email: string;
82
+ createdAt: string;
83
+ updatedAt: string;
84
+ name: string;
85
+ phone: string | null;
86
+ farmId: string;
87
+ userId: string | null;
88
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
89
+ tasksAssigned?: number | undefined;
90
+ tasksCompleted?: number | undefined;
91
+ tasksPending?: number | undefined;
92
+ }>;
93
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
94
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
95
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ type: string;
98
+ id: string;
99
+ attributes: {
100
+ email: string;
101
+ createdAt: string;
102
+ updatedAt: string;
103
+ name: string;
104
+ phone: string | null;
105
+ farmId: string;
106
+ userId: string | null;
107
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
108
+ tasksAssigned?: number | undefined;
109
+ tasksCompleted?: number | undefined;
110
+ tasksPending?: number | undefined;
111
+ };
112
+ relationships?: Record<string, unknown> | undefined;
113
+ links?: Record<string, string> | undefined;
114
+ meta?: Record<string, unknown> | undefined;
115
+ }, {
116
+ type: string;
117
+ id: string;
118
+ attributes: {
119
+ email: string;
120
+ createdAt: string;
121
+ updatedAt: string;
122
+ name: string;
123
+ phone: string | null;
124
+ farmId: string;
125
+ userId: string | null;
126
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
127
+ tasksAssigned?: number | undefined;
128
+ tasksCompleted?: number | undefined;
129
+ tasksPending?: number | undefined;
130
+ };
131
+ relationships?: Record<string, unknown> | undefined;
132
+ links?: Record<string, string> | undefined;
133
+ meta?: Record<string, unknown> | undefined;
134
+ }>, "many">;
135
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
136
+ type: z.ZodString;
137
+ id: z.ZodString;
138
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
139
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
140
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
141
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ type: string;
144
+ id: string;
145
+ attributes?: Record<string, unknown> | undefined;
146
+ relationships?: Record<string, unknown> | undefined;
147
+ links?: Record<string, string> | undefined;
148
+ meta?: Record<string, unknown> | undefined;
149
+ }, {
150
+ type: string;
151
+ id: string;
152
+ attributes?: Record<string, unknown> | undefined;
153
+ relationships?: Record<string, unknown> | undefined;
154
+ links?: Record<string, string> | undefined;
155
+ meta?: Record<string, unknown> | undefined;
156
+ }>, "many">>;
157
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
158
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ data: {
161
+ type: string;
162
+ id: string;
163
+ attributes: {
164
+ email: string;
165
+ createdAt: string;
166
+ updatedAt: string;
167
+ name: string;
168
+ phone: string | null;
169
+ farmId: string;
170
+ userId: string | null;
171
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
172
+ tasksAssigned?: number | undefined;
173
+ tasksCompleted?: number | undefined;
174
+ tasksPending?: number | undefined;
175
+ };
176
+ relationships?: Record<string, unknown> | undefined;
177
+ links?: Record<string, string> | undefined;
178
+ meta?: Record<string, unknown> | undefined;
179
+ }[];
180
+ links?: Record<string, string> | undefined;
181
+ meta?: Record<string, unknown> | undefined;
182
+ included?: {
183
+ type: string;
184
+ id: string;
185
+ attributes?: Record<string, unknown> | undefined;
186
+ relationships?: Record<string, unknown> | undefined;
187
+ links?: Record<string, string> | undefined;
188
+ meta?: Record<string, unknown> | undefined;
189
+ }[] | undefined;
190
+ }, {
191
+ data: {
192
+ type: string;
193
+ id: string;
194
+ attributes: {
195
+ email: string;
196
+ createdAt: string;
197
+ updatedAt: string;
198
+ name: string;
199
+ phone: string | null;
200
+ farmId: string;
201
+ userId: string | null;
202
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
203
+ tasksAssigned?: number | undefined;
204
+ tasksCompleted?: number | undefined;
205
+ tasksPending?: number | undefined;
206
+ };
207
+ relationships?: Record<string, unknown> | undefined;
208
+ links?: Record<string, string> | undefined;
209
+ meta?: Record<string, unknown> | undefined;
210
+ }[];
211
+ links?: Record<string, string> | undefined;
212
+ meta?: Record<string, unknown> | undefined;
213
+ included?: {
214
+ type: string;
215
+ id: string;
216
+ attributes?: Record<string, unknown> | undefined;
217
+ relationships?: Record<string, unknown> | undefined;
218
+ links?: Record<string, string> | undefined;
219
+ meta?: Record<string, unknown> | undefined;
220
+ }[] | undefined;
221
+ }>;
222
+ 404: z.ZodObject<{
223
+ errors: z.ZodArray<z.ZodObject<{
224
+ id: z.ZodOptional<z.ZodString>;
225
+ links: z.ZodOptional<z.ZodObject<{
226
+ about: z.ZodOptional<z.ZodString>;
227
+ }, "strip", z.ZodTypeAny, {
228
+ about?: string | undefined;
229
+ }, {
230
+ about?: string | undefined;
231
+ }>>;
232
+ status: z.ZodOptional<z.ZodString>;
233
+ code: z.ZodOptional<z.ZodString>;
234
+ title: z.ZodOptional<z.ZodString>;
235
+ detail: z.ZodOptional<z.ZodString>;
236
+ source: z.ZodOptional<z.ZodObject<{
237
+ pointer: z.ZodOptional<z.ZodString>;
238
+ parameter: z.ZodOptional<z.ZodString>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ pointer?: string | undefined;
241
+ parameter?: string | undefined;
242
+ }, {
243
+ pointer?: string | undefined;
244
+ parameter?: string | undefined;
245
+ }>>;
246
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ status?: string | undefined;
249
+ code?: string | undefined;
250
+ id?: string | undefined;
251
+ links?: {
252
+ about?: string | undefined;
253
+ } | undefined;
254
+ meta?: Record<string, unknown> | undefined;
255
+ title?: string | undefined;
256
+ detail?: string | undefined;
257
+ source?: {
258
+ pointer?: string | undefined;
259
+ parameter?: string | undefined;
260
+ } | undefined;
261
+ }, {
262
+ status?: string | undefined;
263
+ code?: string | undefined;
264
+ id?: string | undefined;
265
+ links?: {
266
+ about?: string | undefined;
267
+ } | undefined;
268
+ meta?: Record<string, unknown> | undefined;
269
+ title?: string | undefined;
270
+ detail?: string | undefined;
271
+ source?: {
272
+ pointer?: string | undefined;
273
+ parameter?: string | undefined;
274
+ } | undefined;
275
+ }>, "many">;
276
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ errors: {
279
+ status?: string | undefined;
280
+ code?: string | undefined;
281
+ id?: string | undefined;
282
+ links?: {
283
+ about?: string | undefined;
284
+ } | undefined;
285
+ meta?: Record<string, unknown> | undefined;
286
+ title?: string | undefined;
287
+ detail?: string | undefined;
288
+ source?: {
289
+ pointer?: string | undefined;
290
+ parameter?: string | undefined;
291
+ } | undefined;
292
+ }[];
293
+ meta?: Record<string, unknown> | undefined;
294
+ }, {
295
+ errors: {
296
+ status?: string | undefined;
297
+ code?: string | undefined;
298
+ id?: string | undefined;
299
+ links?: {
300
+ about?: string | undefined;
301
+ } | undefined;
302
+ meta?: Record<string, unknown> | undefined;
303
+ title?: string | undefined;
304
+ detail?: string | undefined;
305
+ source?: {
306
+ pointer?: string | undefined;
307
+ parameter?: string | undefined;
308
+ } | undefined;
309
+ }[];
310
+ meta?: Record<string, unknown> | undefined;
311
+ }>;
312
+ 401: z.ZodObject<{
313
+ errors: z.ZodArray<z.ZodObject<{
314
+ id: z.ZodOptional<z.ZodString>;
315
+ links: z.ZodOptional<z.ZodObject<{
316
+ about: z.ZodOptional<z.ZodString>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ about?: string | undefined;
319
+ }, {
320
+ about?: string | undefined;
321
+ }>>;
322
+ status: z.ZodOptional<z.ZodString>;
323
+ code: z.ZodOptional<z.ZodString>;
324
+ title: z.ZodOptional<z.ZodString>;
325
+ detail: z.ZodOptional<z.ZodString>;
326
+ source: z.ZodOptional<z.ZodObject<{
327
+ pointer: z.ZodOptional<z.ZodString>;
328
+ parameter: z.ZodOptional<z.ZodString>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ pointer?: string | undefined;
331
+ parameter?: string | undefined;
332
+ }, {
333
+ pointer?: string | undefined;
334
+ parameter?: string | undefined;
335
+ }>>;
336
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ status?: string | undefined;
339
+ code?: string | undefined;
340
+ id?: string | undefined;
341
+ links?: {
342
+ about?: string | undefined;
343
+ } | undefined;
344
+ meta?: Record<string, unknown> | undefined;
345
+ title?: string | undefined;
346
+ detail?: string | undefined;
347
+ source?: {
348
+ pointer?: string | undefined;
349
+ parameter?: string | undefined;
350
+ } | undefined;
351
+ }, {
352
+ status?: string | undefined;
353
+ code?: string | undefined;
354
+ id?: string | undefined;
355
+ links?: {
356
+ about?: string | undefined;
357
+ } | undefined;
358
+ meta?: Record<string, unknown> | undefined;
359
+ title?: string | undefined;
360
+ detail?: string | undefined;
361
+ source?: {
362
+ pointer?: string | undefined;
363
+ parameter?: string | undefined;
364
+ } | undefined;
365
+ }>, "many">;
366
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ errors: {
369
+ status?: string | undefined;
370
+ code?: string | undefined;
371
+ id?: string | undefined;
372
+ links?: {
373
+ about?: string | undefined;
374
+ } | undefined;
375
+ meta?: Record<string, unknown> | undefined;
376
+ title?: string | undefined;
377
+ detail?: string | undefined;
378
+ source?: {
379
+ pointer?: string | undefined;
380
+ parameter?: string | undefined;
381
+ } | undefined;
382
+ }[];
383
+ meta?: Record<string, unknown> | undefined;
384
+ }, {
385
+ errors: {
386
+ status?: string | undefined;
387
+ code?: string | undefined;
388
+ id?: string | undefined;
389
+ links?: {
390
+ about?: string | undefined;
391
+ } | undefined;
392
+ meta?: Record<string, unknown> | undefined;
393
+ title?: string | undefined;
394
+ detail?: string | undefined;
395
+ source?: {
396
+ pointer?: string | undefined;
397
+ parameter?: string | undefined;
398
+ } | undefined;
399
+ }[];
400
+ meta?: Record<string, unknown> | undefined;
401
+ }>;
402
+ };
403
+ };
404
+ createTeamMember: {
405
+ pathParams: z.ZodObject<{
406
+ farmId: z.ZodString;
407
+ }, "strip", z.ZodTypeAny, {
408
+ farmId: string;
409
+ }, {
410
+ farmId: string;
411
+ }>;
412
+ summary: "Create team member";
413
+ description: "Add a new team member to the farm";
414
+ method: "POST";
415
+ body: z.ZodObject<{
416
+ data: z.ZodObject<{
417
+ type: z.ZodLiteral<"team-members">;
418
+ attributes: z.ZodObject<{
419
+ name: z.ZodString;
420
+ email: z.ZodString;
421
+ role: z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>;
422
+ phone: z.ZodOptional<z.ZodString>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ email: string;
425
+ name: string;
426
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
427
+ phone?: string | undefined;
428
+ }, {
429
+ email: string;
430
+ name: string;
431
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
432
+ phone?: string | undefined;
433
+ }>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ type: "team-members";
436
+ attributes: {
437
+ email: string;
438
+ name: string;
439
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
440
+ phone?: string | undefined;
441
+ };
442
+ }, {
443
+ type: "team-members";
444
+ attributes: {
445
+ email: string;
446
+ name: string;
447
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
448
+ phone?: string | undefined;
449
+ };
450
+ }>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ data: {
453
+ type: "team-members";
454
+ attributes: {
455
+ email: string;
456
+ name: string;
457
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
458
+ phone?: string | undefined;
459
+ };
460
+ };
461
+ }, {
462
+ data: {
463
+ type: "team-members";
464
+ attributes: {
465
+ email: string;
466
+ name: string;
467
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
468
+ phone?: string | undefined;
469
+ };
470
+ };
471
+ }>;
472
+ path: "/farms/:farmId/team";
473
+ responses: {
474
+ 201: z.ZodObject<{
475
+ data: z.ZodObject<{
476
+ type: z.ZodLiteral<string>;
477
+ id: z.ZodString;
478
+ attributes: z.ZodObject<{
479
+ farmId: z.ZodString;
480
+ userId: z.ZodNullable<z.ZodString>;
481
+ name: z.ZodString;
482
+ email: z.ZodString;
483
+ role: z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>;
484
+ phone: z.ZodNullable<z.ZodString>;
485
+ tasksAssigned: z.ZodOptional<z.ZodNumber>;
486
+ tasksCompleted: z.ZodOptional<z.ZodNumber>;
487
+ tasksPending: z.ZodOptional<z.ZodNumber>;
488
+ } & {
489
+ createdAt: z.ZodString;
490
+ updatedAt: z.ZodString;
491
+ }, "strip", z.ZodTypeAny, {
492
+ email: string;
493
+ createdAt: string;
494
+ updatedAt: string;
495
+ name: string;
496
+ phone: string | null;
497
+ farmId: string;
498
+ userId: string | null;
499
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
500
+ tasksAssigned?: number | undefined;
501
+ tasksCompleted?: number | undefined;
502
+ tasksPending?: number | undefined;
503
+ }, {
504
+ email: string;
505
+ createdAt: string;
506
+ updatedAt: string;
507
+ name: string;
508
+ phone: string | null;
509
+ farmId: string;
510
+ userId: string | null;
511
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
512
+ tasksAssigned?: number | undefined;
513
+ tasksCompleted?: number | undefined;
514
+ tasksPending?: number | undefined;
515
+ }>;
516
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
517
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
518
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
519
+ }, "strip", z.ZodTypeAny, {
520
+ type: string;
521
+ id: string;
522
+ attributes: {
523
+ email: string;
524
+ createdAt: string;
525
+ updatedAt: string;
526
+ name: string;
527
+ phone: string | null;
528
+ farmId: string;
529
+ userId: string | null;
530
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
531
+ tasksAssigned?: number | undefined;
532
+ tasksCompleted?: number | undefined;
533
+ tasksPending?: number | undefined;
534
+ };
535
+ relationships?: Record<string, unknown> | undefined;
536
+ links?: Record<string, string> | undefined;
537
+ meta?: Record<string, unknown> | undefined;
538
+ }, {
539
+ type: string;
540
+ id: string;
541
+ attributes: {
542
+ email: string;
543
+ createdAt: string;
544
+ updatedAt: string;
545
+ name: string;
546
+ phone: string | null;
547
+ farmId: string;
548
+ userId: string | null;
549
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
550
+ tasksAssigned?: number | undefined;
551
+ tasksCompleted?: number | undefined;
552
+ tasksPending?: number | undefined;
553
+ };
554
+ relationships?: Record<string, unknown> | undefined;
555
+ links?: Record<string, string> | undefined;
556
+ meta?: Record<string, unknown> | undefined;
557
+ }>;
558
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
559
+ type: z.ZodString;
560
+ id: z.ZodString;
561
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
562
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
563
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
564
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
565
+ }, "strip", z.ZodTypeAny, {
566
+ type: string;
567
+ id: string;
568
+ attributes?: Record<string, unknown> | undefined;
569
+ relationships?: Record<string, unknown> | undefined;
570
+ links?: Record<string, string> | undefined;
571
+ meta?: Record<string, unknown> | undefined;
572
+ }, {
573
+ type: string;
574
+ id: string;
575
+ attributes?: Record<string, unknown> | undefined;
576
+ relationships?: Record<string, unknown> | undefined;
577
+ links?: Record<string, string> | undefined;
578
+ meta?: Record<string, unknown> | undefined;
579
+ }>, "many">>;
580
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
581
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
582
+ }, "strip", z.ZodTypeAny, {
583
+ data: {
584
+ type: string;
585
+ id: string;
586
+ attributes: {
587
+ email: string;
588
+ createdAt: string;
589
+ updatedAt: string;
590
+ name: string;
591
+ phone: string | null;
592
+ farmId: string;
593
+ userId: string | null;
594
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
595
+ tasksAssigned?: number | undefined;
596
+ tasksCompleted?: number | undefined;
597
+ tasksPending?: number | undefined;
598
+ };
599
+ relationships?: Record<string, unknown> | undefined;
600
+ links?: Record<string, string> | undefined;
601
+ meta?: Record<string, unknown> | undefined;
602
+ };
603
+ links?: Record<string, string> | undefined;
604
+ meta?: Record<string, unknown> | undefined;
605
+ included?: {
606
+ type: string;
607
+ id: string;
608
+ attributes?: Record<string, unknown> | undefined;
609
+ relationships?: Record<string, unknown> | undefined;
610
+ links?: Record<string, string> | undefined;
611
+ meta?: Record<string, unknown> | undefined;
612
+ }[] | undefined;
613
+ }, {
614
+ data: {
615
+ type: string;
616
+ id: string;
617
+ attributes: {
618
+ email: string;
619
+ createdAt: string;
620
+ updatedAt: string;
621
+ name: string;
622
+ phone: string | null;
623
+ farmId: string;
624
+ userId: string | null;
625
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
626
+ tasksAssigned?: number | undefined;
627
+ tasksCompleted?: number | undefined;
628
+ tasksPending?: number | undefined;
629
+ };
630
+ relationships?: Record<string, unknown> | undefined;
631
+ links?: Record<string, string> | undefined;
632
+ meta?: Record<string, unknown> | undefined;
633
+ };
634
+ links?: Record<string, string> | undefined;
635
+ meta?: Record<string, unknown> | undefined;
636
+ included?: {
637
+ type: string;
638
+ id: string;
639
+ attributes?: Record<string, unknown> | undefined;
640
+ relationships?: Record<string, unknown> | undefined;
641
+ links?: Record<string, string> | undefined;
642
+ meta?: Record<string, unknown> | undefined;
643
+ }[] | undefined;
644
+ }>;
645
+ 400: z.ZodObject<{
646
+ errors: z.ZodArray<z.ZodObject<{
647
+ id: z.ZodOptional<z.ZodString>;
648
+ links: z.ZodOptional<z.ZodObject<{
649
+ about: z.ZodOptional<z.ZodString>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ about?: string | undefined;
652
+ }, {
653
+ about?: string | undefined;
654
+ }>>;
655
+ status: z.ZodOptional<z.ZodString>;
656
+ code: z.ZodOptional<z.ZodString>;
657
+ title: z.ZodOptional<z.ZodString>;
658
+ detail: z.ZodOptional<z.ZodString>;
659
+ source: z.ZodOptional<z.ZodObject<{
660
+ pointer: z.ZodOptional<z.ZodString>;
661
+ parameter: z.ZodOptional<z.ZodString>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ pointer?: string | undefined;
664
+ parameter?: string | undefined;
665
+ }, {
666
+ pointer?: string | undefined;
667
+ parameter?: string | undefined;
668
+ }>>;
669
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ status?: string | undefined;
672
+ code?: string | undefined;
673
+ id?: string | undefined;
674
+ links?: {
675
+ about?: string | undefined;
676
+ } | undefined;
677
+ meta?: Record<string, unknown> | undefined;
678
+ title?: string | undefined;
679
+ detail?: string | undefined;
680
+ source?: {
681
+ pointer?: string | undefined;
682
+ parameter?: string | undefined;
683
+ } | undefined;
684
+ }, {
685
+ status?: string | undefined;
686
+ code?: string | undefined;
687
+ id?: string | undefined;
688
+ links?: {
689
+ about?: string | undefined;
690
+ } | undefined;
691
+ meta?: Record<string, unknown> | undefined;
692
+ title?: string | undefined;
693
+ detail?: string | undefined;
694
+ source?: {
695
+ pointer?: string | undefined;
696
+ parameter?: string | undefined;
697
+ } | undefined;
698
+ }>, "many">;
699
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
700
+ }, "strip", z.ZodTypeAny, {
701
+ errors: {
702
+ status?: string | undefined;
703
+ code?: string | undefined;
704
+ id?: string | undefined;
705
+ links?: {
706
+ about?: string | undefined;
707
+ } | undefined;
708
+ meta?: Record<string, unknown> | undefined;
709
+ title?: string | undefined;
710
+ detail?: string | undefined;
711
+ source?: {
712
+ pointer?: string | undefined;
713
+ parameter?: string | undefined;
714
+ } | undefined;
715
+ }[];
716
+ meta?: Record<string, unknown> | undefined;
717
+ }, {
718
+ errors: {
719
+ status?: string | undefined;
720
+ code?: string | undefined;
721
+ id?: string | undefined;
722
+ links?: {
723
+ about?: string | undefined;
724
+ } | undefined;
725
+ meta?: Record<string, unknown> | undefined;
726
+ title?: string | undefined;
727
+ detail?: string | undefined;
728
+ source?: {
729
+ pointer?: string | undefined;
730
+ parameter?: string | undefined;
731
+ } | undefined;
732
+ }[];
733
+ meta?: Record<string, unknown> | undefined;
734
+ }>;
735
+ 404: z.ZodObject<{
736
+ errors: z.ZodArray<z.ZodObject<{
737
+ id: z.ZodOptional<z.ZodString>;
738
+ links: z.ZodOptional<z.ZodObject<{
739
+ about: z.ZodOptional<z.ZodString>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ about?: string | undefined;
742
+ }, {
743
+ about?: string | undefined;
744
+ }>>;
745
+ status: z.ZodOptional<z.ZodString>;
746
+ code: z.ZodOptional<z.ZodString>;
747
+ title: z.ZodOptional<z.ZodString>;
748
+ detail: z.ZodOptional<z.ZodString>;
749
+ source: z.ZodOptional<z.ZodObject<{
750
+ pointer: z.ZodOptional<z.ZodString>;
751
+ parameter: z.ZodOptional<z.ZodString>;
752
+ }, "strip", z.ZodTypeAny, {
753
+ pointer?: string | undefined;
754
+ parameter?: string | undefined;
755
+ }, {
756
+ pointer?: string | undefined;
757
+ parameter?: string | undefined;
758
+ }>>;
759
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ status?: string | undefined;
762
+ code?: string | undefined;
763
+ id?: string | undefined;
764
+ links?: {
765
+ about?: string | undefined;
766
+ } | undefined;
767
+ meta?: Record<string, unknown> | undefined;
768
+ title?: string | undefined;
769
+ detail?: string | undefined;
770
+ source?: {
771
+ pointer?: string | undefined;
772
+ parameter?: string | undefined;
773
+ } | undefined;
774
+ }, {
775
+ status?: string | undefined;
776
+ code?: string | undefined;
777
+ id?: string | undefined;
778
+ links?: {
779
+ about?: string | undefined;
780
+ } | undefined;
781
+ meta?: Record<string, unknown> | undefined;
782
+ title?: string | undefined;
783
+ detail?: string | undefined;
784
+ source?: {
785
+ pointer?: string | undefined;
786
+ parameter?: string | undefined;
787
+ } | undefined;
788
+ }>, "many">;
789
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
790
+ }, "strip", z.ZodTypeAny, {
791
+ errors: {
792
+ status?: string | undefined;
793
+ code?: string | undefined;
794
+ id?: string | undefined;
795
+ links?: {
796
+ about?: string | undefined;
797
+ } | undefined;
798
+ meta?: Record<string, unknown> | undefined;
799
+ title?: string | undefined;
800
+ detail?: string | undefined;
801
+ source?: {
802
+ pointer?: string | undefined;
803
+ parameter?: string | undefined;
804
+ } | undefined;
805
+ }[];
806
+ meta?: Record<string, unknown> | undefined;
807
+ }, {
808
+ errors: {
809
+ status?: string | undefined;
810
+ code?: string | undefined;
811
+ id?: string | undefined;
812
+ links?: {
813
+ about?: string | undefined;
814
+ } | undefined;
815
+ meta?: Record<string, unknown> | undefined;
816
+ title?: string | undefined;
817
+ detail?: string | undefined;
818
+ source?: {
819
+ pointer?: string | undefined;
820
+ parameter?: string | undefined;
821
+ } | undefined;
822
+ }[];
823
+ meta?: Record<string, unknown> | undefined;
824
+ }>;
825
+ 401: z.ZodObject<{
826
+ errors: z.ZodArray<z.ZodObject<{
827
+ id: z.ZodOptional<z.ZodString>;
828
+ links: z.ZodOptional<z.ZodObject<{
829
+ about: z.ZodOptional<z.ZodString>;
830
+ }, "strip", z.ZodTypeAny, {
831
+ about?: string | undefined;
832
+ }, {
833
+ about?: string | undefined;
834
+ }>>;
835
+ status: z.ZodOptional<z.ZodString>;
836
+ code: z.ZodOptional<z.ZodString>;
837
+ title: z.ZodOptional<z.ZodString>;
838
+ detail: z.ZodOptional<z.ZodString>;
839
+ source: z.ZodOptional<z.ZodObject<{
840
+ pointer: z.ZodOptional<z.ZodString>;
841
+ parameter: z.ZodOptional<z.ZodString>;
842
+ }, "strip", z.ZodTypeAny, {
843
+ pointer?: string | undefined;
844
+ parameter?: string | undefined;
845
+ }, {
846
+ pointer?: string | undefined;
847
+ parameter?: string | undefined;
848
+ }>>;
849
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
850
+ }, "strip", z.ZodTypeAny, {
851
+ status?: string | undefined;
852
+ code?: string | undefined;
853
+ id?: string | undefined;
854
+ links?: {
855
+ about?: string | undefined;
856
+ } | undefined;
857
+ meta?: Record<string, unknown> | undefined;
858
+ title?: string | undefined;
859
+ detail?: string | undefined;
860
+ source?: {
861
+ pointer?: string | undefined;
862
+ parameter?: string | undefined;
863
+ } | undefined;
864
+ }, {
865
+ status?: string | undefined;
866
+ code?: string | undefined;
867
+ id?: string | undefined;
868
+ links?: {
869
+ about?: string | undefined;
870
+ } | undefined;
871
+ meta?: Record<string, unknown> | undefined;
872
+ title?: string | undefined;
873
+ detail?: string | undefined;
874
+ source?: {
875
+ pointer?: string | undefined;
876
+ parameter?: string | undefined;
877
+ } | undefined;
878
+ }>, "many">;
879
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
880
+ }, "strip", z.ZodTypeAny, {
881
+ errors: {
882
+ status?: string | undefined;
883
+ code?: string | undefined;
884
+ id?: string | undefined;
885
+ links?: {
886
+ about?: string | undefined;
887
+ } | undefined;
888
+ meta?: Record<string, unknown> | undefined;
889
+ title?: string | undefined;
890
+ detail?: string | undefined;
891
+ source?: {
892
+ pointer?: string | undefined;
893
+ parameter?: string | undefined;
894
+ } | undefined;
895
+ }[];
896
+ meta?: Record<string, unknown> | undefined;
897
+ }, {
898
+ errors: {
899
+ status?: string | undefined;
900
+ code?: string | undefined;
901
+ id?: string | undefined;
902
+ links?: {
903
+ about?: string | undefined;
904
+ } | undefined;
905
+ meta?: Record<string, unknown> | undefined;
906
+ title?: string | undefined;
907
+ detail?: string | undefined;
908
+ source?: {
909
+ pointer?: string | undefined;
910
+ parameter?: string | undefined;
911
+ } | undefined;
912
+ }[];
913
+ meta?: Record<string, unknown> | undefined;
914
+ }>;
915
+ 422: z.ZodObject<{
916
+ errors: z.ZodArray<z.ZodObject<{
917
+ id: z.ZodOptional<z.ZodString>;
918
+ links: z.ZodOptional<z.ZodObject<{
919
+ about: z.ZodOptional<z.ZodString>;
920
+ }, "strip", z.ZodTypeAny, {
921
+ about?: string | undefined;
922
+ }, {
923
+ about?: string | undefined;
924
+ }>>;
925
+ status: z.ZodOptional<z.ZodString>;
926
+ code: z.ZodOptional<z.ZodString>;
927
+ title: z.ZodOptional<z.ZodString>;
928
+ detail: z.ZodOptional<z.ZodString>;
929
+ source: z.ZodOptional<z.ZodObject<{
930
+ pointer: z.ZodOptional<z.ZodString>;
931
+ parameter: z.ZodOptional<z.ZodString>;
932
+ }, "strip", z.ZodTypeAny, {
933
+ pointer?: string | undefined;
934
+ parameter?: string | undefined;
935
+ }, {
936
+ pointer?: string | undefined;
937
+ parameter?: string | undefined;
938
+ }>>;
939
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ status?: string | undefined;
942
+ code?: string | undefined;
943
+ id?: string | undefined;
944
+ links?: {
945
+ about?: string | undefined;
946
+ } | undefined;
947
+ meta?: Record<string, unknown> | undefined;
948
+ title?: string | undefined;
949
+ detail?: string | undefined;
950
+ source?: {
951
+ pointer?: string | undefined;
952
+ parameter?: string | undefined;
953
+ } | undefined;
954
+ }, {
955
+ status?: string | undefined;
956
+ code?: string | undefined;
957
+ id?: string | undefined;
958
+ links?: {
959
+ about?: string | undefined;
960
+ } | undefined;
961
+ meta?: Record<string, unknown> | undefined;
962
+ title?: string | undefined;
963
+ detail?: string | undefined;
964
+ source?: {
965
+ pointer?: string | undefined;
966
+ parameter?: string | undefined;
967
+ } | undefined;
968
+ }>, "many">;
969
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
970
+ }, "strip", z.ZodTypeAny, {
971
+ errors: {
972
+ status?: string | undefined;
973
+ code?: string | undefined;
974
+ id?: string | undefined;
975
+ links?: {
976
+ about?: string | undefined;
977
+ } | undefined;
978
+ meta?: Record<string, unknown> | undefined;
979
+ title?: string | undefined;
980
+ detail?: string | undefined;
981
+ source?: {
982
+ pointer?: string | undefined;
983
+ parameter?: string | undefined;
984
+ } | undefined;
985
+ }[];
986
+ meta?: Record<string, unknown> | undefined;
987
+ }, {
988
+ errors: {
989
+ status?: string | undefined;
990
+ code?: string | undefined;
991
+ id?: string | undefined;
992
+ links?: {
993
+ about?: string | undefined;
994
+ } | undefined;
995
+ meta?: Record<string, unknown> | undefined;
996
+ title?: string | undefined;
997
+ detail?: string | undefined;
998
+ source?: {
999
+ pointer?: string | undefined;
1000
+ parameter?: string | undefined;
1001
+ } | undefined;
1002
+ }[];
1003
+ meta?: Record<string, unknown> | undefined;
1004
+ }>;
1005
+ };
1006
+ };
1007
+ getTeamMember: {
1008
+ pathParams: z.ZodObject<{
1009
+ farmId: z.ZodString;
1010
+ id: z.ZodString;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ id: string;
1013
+ farmId: string;
1014
+ }, {
1015
+ id: string;
1016
+ farmId: string;
1017
+ }>;
1018
+ query: z.ZodObject<{
1019
+ include: z.ZodOptional<z.ZodString>;
1020
+ }, "strip", z.ZodTypeAny, {
1021
+ include?: string | undefined;
1022
+ }, {
1023
+ include?: string | undefined;
1024
+ }>;
1025
+ summary: "Get team member by ID";
1026
+ description: "Get detailed information about a team member";
1027
+ method: "GET";
1028
+ path: "/farms/:farmId/team/:id";
1029
+ responses: {
1030
+ 200: z.ZodObject<{
1031
+ data: z.ZodObject<{
1032
+ type: z.ZodLiteral<string>;
1033
+ id: z.ZodString;
1034
+ attributes: z.ZodObject<{
1035
+ farmId: z.ZodString;
1036
+ userId: z.ZodNullable<z.ZodString>;
1037
+ name: z.ZodString;
1038
+ email: z.ZodString;
1039
+ role: z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>;
1040
+ phone: z.ZodNullable<z.ZodString>;
1041
+ tasksAssigned: z.ZodOptional<z.ZodNumber>;
1042
+ tasksCompleted: z.ZodOptional<z.ZodNumber>;
1043
+ tasksPending: z.ZodOptional<z.ZodNumber>;
1044
+ } & {
1045
+ createdAt: z.ZodString;
1046
+ updatedAt: z.ZodString;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ email: string;
1049
+ createdAt: string;
1050
+ updatedAt: string;
1051
+ name: string;
1052
+ phone: string | null;
1053
+ farmId: string;
1054
+ userId: string | null;
1055
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
1056
+ tasksAssigned?: number | undefined;
1057
+ tasksCompleted?: number | undefined;
1058
+ tasksPending?: number | undefined;
1059
+ }, {
1060
+ email: string;
1061
+ createdAt: string;
1062
+ updatedAt: string;
1063
+ name: string;
1064
+ phone: string | null;
1065
+ farmId: string;
1066
+ userId: string | null;
1067
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
1068
+ tasksAssigned?: number | undefined;
1069
+ tasksCompleted?: number | undefined;
1070
+ tasksPending?: number | undefined;
1071
+ }>;
1072
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1073
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1074
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ type: string;
1077
+ id: string;
1078
+ attributes: {
1079
+ email: string;
1080
+ createdAt: string;
1081
+ updatedAt: string;
1082
+ name: string;
1083
+ phone: string | null;
1084
+ farmId: string;
1085
+ userId: string | null;
1086
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
1087
+ tasksAssigned?: number | undefined;
1088
+ tasksCompleted?: number | undefined;
1089
+ tasksPending?: number | undefined;
1090
+ };
1091
+ relationships?: Record<string, unknown> | undefined;
1092
+ links?: Record<string, string> | undefined;
1093
+ meta?: Record<string, unknown> | undefined;
1094
+ }, {
1095
+ type: string;
1096
+ id: string;
1097
+ attributes: {
1098
+ email: string;
1099
+ createdAt: string;
1100
+ updatedAt: string;
1101
+ name: string;
1102
+ phone: string | null;
1103
+ farmId: string;
1104
+ userId: string | null;
1105
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
1106
+ tasksAssigned?: number | undefined;
1107
+ tasksCompleted?: number | undefined;
1108
+ tasksPending?: number | undefined;
1109
+ };
1110
+ relationships?: Record<string, unknown> | undefined;
1111
+ links?: Record<string, string> | undefined;
1112
+ meta?: Record<string, unknown> | undefined;
1113
+ }>;
1114
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1115
+ type: z.ZodString;
1116
+ id: z.ZodString;
1117
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1118
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1119
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1120
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ type: string;
1123
+ id: string;
1124
+ attributes?: Record<string, unknown> | undefined;
1125
+ relationships?: Record<string, unknown> | undefined;
1126
+ links?: Record<string, string> | undefined;
1127
+ meta?: Record<string, unknown> | undefined;
1128
+ }, {
1129
+ type: string;
1130
+ id: string;
1131
+ attributes?: Record<string, unknown> | undefined;
1132
+ relationships?: Record<string, unknown> | undefined;
1133
+ links?: Record<string, string> | undefined;
1134
+ meta?: Record<string, unknown> | undefined;
1135
+ }>, "many">>;
1136
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1137
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1138
+ }, "strip", z.ZodTypeAny, {
1139
+ data: {
1140
+ type: string;
1141
+ id: string;
1142
+ attributes: {
1143
+ email: string;
1144
+ createdAt: string;
1145
+ updatedAt: string;
1146
+ name: string;
1147
+ phone: string | null;
1148
+ farmId: string;
1149
+ userId: string | null;
1150
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
1151
+ tasksAssigned?: number | undefined;
1152
+ tasksCompleted?: number | undefined;
1153
+ tasksPending?: number | undefined;
1154
+ };
1155
+ relationships?: Record<string, unknown> | undefined;
1156
+ links?: Record<string, string> | undefined;
1157
+ meta?: Record<string, unknown> | undefined;
1158
+ };
1159
+ links?: Record<string, string> | undefined;
1160
+ meta?: Record<string, unknown> | undefined;
1161
+ included?: {
1162
+ type: string;
1163
+ id: string;
1164
+ attributes?: Record<string, unknown> | undefined;
1165
+ relationships?: Record<string, unknown> | undefined;
1166
+ links?: Record<string, string> | undefined;
1167
+ meta?: Record<string, unknown> | undefined;
1168
+ }[] | undefined;
1169
+ }, {
1170
+ data: {
1171
+ type: string;
1172
+ id: string;
1173
+ attributes: {
1174
+ email: string;
1175
+ createdAt: string;
1176
+ updatedAt: string;
1177
+ name: string;
1178
+ phone: string | null;
1179
+ farmId: string;
1180
+ userId: string | null;
1181
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
1182
+ tasksAssigned?: number | undefined;
1183
+ tasksCompleted?: number | undefined;
1184
+ tasksPending?: number | undefined;
1185
+ };
1186
+ relationships?: Record<string, unknown> | undefined;
1187
+ links?: Record<string, string> | undefined;
1188
+ meta?: Record<string, unknown> | undefined;
1189
+ };
1190
+ links?: Record<string, string> | undefined;
1191
+ meta?: Record<string, unknown> | undefined;
1192
+ included?: {
1193
+ type: string;
1194
+ id: string;
1195
+ attributes?: Record<string, unknown> | undefined;
1196
+ relationships?: Record<string, unknown> | undefined;
1197
+ links?: Record<string, string> | undefined;
1198
+ meta?: Record<string, unknown> | undefined;
1199
+ }[] | undefined;
1200
+ }>;
1201
+ 404: z.ZodObject<{
1202
+ errors: z.ZodArray<z.ZodObject<{
1203
+ id: z.ZodOptional<z.ZodString>;
1204
+ links: z.ZodOptional<z.ZodObject<{
1205
+ about: z.ZodOptional<z.ZodString>;
1206
+ }, "strip", z.ZodTypeAny, {
1207
+ about?: string | undefined;
1208
+ }, {
1209
+ about?: string | undefined;
1210
+ }>>;
1211
+ status: z.ZodOptional<z.ZodString>;
1212
+ code: z.ZodOptional<z.ZodString>;
1213
+ title: z.ZodOptional<z.ZodString>;
1214
+ detail: z.ZodOptional<z.ZodString>;
1215
+ source: z.ZodOptional<z.ZodObject<{
1216
+ pointer: z.ZodOptional<z.ZodString>;
1217
+ parameter: z.ZodOptional<z.ZodString>;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ pointer?: string | undefined;
1220
+ parameter?: string | undefined;
1221
+ }, {
1222
+ pointer?: string | undefined;
1223
+ parameter?: string | undefined;
1224
+ }>>;
1225
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1226
+ }, "strip", z.ZodTypeAny, {
1227
+ status?: string | undefined;
1228
+ code?: string | undefined;
1229
+ id?: string | undefined;
1230
+ links?: {
1231
+ about?: string | undefined;
1232
+ } | undefined;
1233
+ meta?: Record<string, unknown> | undefined;
1234
+ title?: string | undefined;
1235
+ detail?: string | undefined;
1236
+ source?: {
1237
+ pointer?: string | undefined;
1238
+ parameter?: string | undefined;
1239
+ } | undefined;
1240
+ }, {
1241
+ status?: string | undefined;
1242
+ code?: string | undefined;
1243
+ id?: string | undefined;
1244
+ links?: {
1245
+ about?: string | undefined;
1246
+ } | undefined;
1247
+ meta?: Record<string, unknown> | undefined;
1248
+ title?: string | undefined;
1249
+ detail?: string | undefined;
1250
+ source?: {
1251
+ pointer?: string | undefined;
1252
+ parameter?: string | undefined;
1253
+ } | undefined;
1254
+ }>, "many">;
1255
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1256
+ }, "strip", z.ZodTypeAny, {
1257
+ errors: {
1258
+ status?: string | undefined;
1259
+ code?: string | undefined;
1260
+ id?: string | undefined;
1261
+ links?: {
1262
+ about?: string | undefined;
1263
+ } | undefined;
1264
+ meta?: Record<string, unknown> | undefined;
1265
+ title?: string | undefined;
1266
+ detail?: string | undefined;
1267
+ source?: {
1268
+ pointer?: string | undefined;
1269
+ parameter?: string | undefined;
1270
+ } | undefined;
1271
+ }[];
1272
+ meta?: Record<string, unknown> | undefined;
1273
+ }, {
1274
+ errors: {
1275
+ status?: string | undefined;
1276
+ code?: string | undefined;
1277
+ id?: string | undefined;
1278
+ links?: {
1279
+ about?: string | undefined;
1280
+ } | undefined;
1281
+ meta?: Record<string, unknown> | undefined;
1282
+ title?: string | undefined;
1283
+ detail?: string | undefined;
1284
+ source?: {
1285
+ pointer?: string | undefined;
1286
+ parameter?: string | undefined;
1287
+ } | undefined;
1288
+ }[];
1289
+ meta?: Record<string, unknown> | undefined;
1290
+ }>;
1291
+ 401: z.ZodObject<{
1292
+ errors: z.ZodArray<z.ZodObject<{
1293
+ id: z.ZodOptional<z.ZodString>;
1294
+ links: z.ZodOptional<z.ZodObject<{
1295
+ about: z.ZodOptional<z.ZodString>;
1296
+ }, "strip", z.ZodTypeAny, {
1297
+ about?: string | undefined;
1298
+ }, {
1299
+ about?: string | undefined;
1300
+ }>>;
1301
+ status: z.ZodOptional<z.ZodString>;
1302
+ code: z.ZodOptional<z.ZodString>;
1303
+ title: z.ZodOptional<z.ZodString>;
1304
+ detail: z.ZodOptional<z.ZodString>;
1305
+ source: z.ZodOptional<z.ZodObject<{
1306
+ pointer: z.ZodOptional<z.ZodString>;
1307
+ parameter: z.ZodOptional<z.ZodString>;
1308
+ }, "strip", z.ZodTypeAny, {
1309
+ pointer?: string | undefined;
1310
+ parameter?: string | undefined;
1311
+ }, {
1312
+ pointer?: string | undefined;
1313
+ parameter?: string | undefined;
1314
+ }>>;
1315
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ status?: string | undefined;
1318
+ code?: string | undefined;
1319
+ id?: string | undefined;
1320
+ links?: {
1321
+ about?: string | undefined;
1322
+ } | undefined;
1323
+ meta?: Record<string, unknown> | undefined;
1324
+ title?: string | undefined;
1325
+ detail?: string | undefined;
1326
+ source?: {
1327
+ pointer?: string | undefined;
1328
+ parameter?: string | undefined;
1329
+ } | undefined;
1330
+ }, {
1331
+ status?: string | undefined;
1332
+ code?: string | undefined;
1333
+ id?: string | undefined;
1334
+ links?: {
1335
+ about?: string | undefined;
1336
+ } | undefined;
1337
+ meta?: Record<string, unknown> | undefined;
1338
+ title?: string | undefined;
1339
+ detail?: string | undefined;
1340
+ source?: {
1341
+ pointer?: string | undefined;
1342
+ parameter?: string | undefined;
1343
+ } | undefined;
1344
+ }>, "many">;
1345
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1346
+ }, "strip", z.ZodTypeAny, {
1347
+ errors: {
1348
+ status?: string | undefined;
1349
+ code?: string | undefined;
1350
+ id?: string | undefined;
1351
+ links?: {
1352
+ about?: string | undefined;
1353
+ } | undefined;
1354
+ meta?: Record<string, unknown> | undefined;
1355
+ title?: string | undefined;
1356
+ detail?: string | undefined;
1357
+ source?: {
1358
+ pointer?: string | undefined;
1359
+ parameter?: string | undefined;
1360
+ } | undefined;
1361
+ }[];
1362
+ meta?: Record<string, unknown> | undefined;
1363
+ }, {
1364
+ errors: {
1365
+ status?: string | undefined;
1366
+ code?: string | undefined;
1367
+ id?: string | undefined;
1368
+ links?: {
1369
+ about?: string | undefined;
1370
+ } | undefined;
1371
+ meta?: Record<string, unknown> | undefined;
1372
+ title?: string | undefined;
1373
+ detail?: string | undefined;
1374
+ source?: {
1375
+ pointer?: string | undefined;
1376
+ parameter?: string | undefined;
1377
+ } | undefined;
1378
+ }[];
1379
+ meta?: Record<string, unknown> | undefined;
1380
+ }>;
1381
+ };
1382
+ };
1383
+ updateTeamMember: {
1384
+ pathParams: z.ZodObject<{
1385
+ farmId: z.ZodString;
1386
+ id: z.ZodString;
1387
+ }, "strip", z.ZodTypeAny, {
1388
+ id: string;
1389
+ farmId: string;
1390
+ }, {
1391
+ id: string;
1392
+ farmId: string;
1393
+ }>;
1394
+ summary: "Update team member";
1395
+ description: "Update team member information";
1396
+ method: "PATCH";
1397
+ body: z.ZodObject<{
1398
+ data: z.ZodObject<{
1399
+ type: z.ZodLiteral<"team-members">;
1400
+ id: z.ZodString;
1401
+ attributes: z.ZodObject<{
1402
+ name: z.ZodOptional<z.ZodString>;
1403
+ email: z.ZodOptional<z.ZodString>;
1404
+ role: z.ZodOptional<z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>>;
1405
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1406
+ }, "strip", z.ZodTypeAny, {
1407
+ email?: string | undefined;
1408
+ name?: string | undefined;
1409
+ phone?: string | null | undefined;
1410
+ role?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | undefined;
1411
+ }, {
1412
+ email?: string | undefined;
1413
+ name?: string | undefined;
1414
+ phone?: string | null | undefined;
1415
+ role?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | undefined;
1416
+ }>;
1417
+ }, "strip", z.ZodTypeAny, {
1418
+ type: "team-members";
1419
+ id: string;
1420
+ attributes: {
1421
+ email?: string | undefined;
1422
+ name?: string | undefined;
1423
+ phone?: string | null | undefined;
1424
+ role?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | undefined;
1425
+ };
1426
+ }, {
1427
+ type: "team-members";
1428
+ id: string;
1429
+ attributes: {
1430
+ email?: string | undefined;
1431
+ name?: string | undefined;
1432
+ phone?: string | null | undefined;
1433
+ role?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | undefined;
1434
+ };
1435
+ }>;
1436
+ }, "strip", z.ZodTypeAny, {
1437
+ data: {
1438
+ type: "team-members";
1439
+ id: string;
1440
+ attributes: {
1441
+ email?: string | undefined;
1442
+ name?: string | undefined;
1443
+ phone?: string | null | undefined;
1444
+ role?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | undefined;
1445
+ };
1446
+ };
1447
+ }, {
1448
+ data: {
1449
+ type: "team-members";
1450
+ id: string;
1451
+ attributes: {
1452
+ email?: string | undefined;
1453
+ name?: string | undefined;
1454
+ phone?: string | null | undefined;
1455
+ role?: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other" | undefined;
1456
+ };
1457
+ };
1458
+ }>;
1459
+ path: "/farms/:farmId/team/:id";
1460
+ responses: {
1461
+ 200: z.ZodObject<{
1462
+ data: z.ZodObject<{
1463
+ type: z.ZodLiteral<string>;
1464
+ id: z.ZodString;
1465
+ attributes: z.ZodObject<{
1466
+ farmId: z.ZodString;
1467
+ userId: z.ZodNullable<z.ZodString>;
1468
+ name: z.ZodString;
1469
+ email: z.ZodString;
1470
+ role: z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>;
1471
+ phone: z.ZodNullable<z.ZodString>;
1472
+ tasksAssigned: z.ZodOptional<z.ZodNumber>;
1473
+ tasksCompleted: z.ZodOptional<z.ZodNumber>;
1474
+ tasksPending: z.ZodOptional<z.ZodNumber>;
1475
+ } & {
1476
+ createdAt: z.ZodString;
1477
+ updatedAt: z.ZodString;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ email: string;
1480
+ createdAt: string;
1481
+ updatedAt: string;
1482
+ name: string;
1483
+ phone: string | null;
1484
+ farmId: string;
1485
+ userId: string | null;
1486
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
1487
+ tasksAssigned?: number | undefined;
1488
+ tasksCompleted?: number | undefined;
1489
+ tasksPending?: number | undefined;
1490
+ }, {
1491
+ email: string;
1492
+ createdAt: string;
1493
+ updatedAt: string;
1494
+ name: string;
1495
+ phone: string | null;
1496
+ farmId: string;
1497
+ userId: string | null;
1498
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
1499
+ tasksAssigned?: number | undefined;
1500
+ tasksCompleted?: number | undefined;
1501
+ tasksPending?: number | undefined;
1502
+ }>;
1503
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1504
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1505
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1506
+ }, "strip", z.ZodTypeAny, {
1507
+ type: string;
1508
+ id: string;
1509
+ attributes: {
1510
+ email: string;
1511
+ createdAt: string;
1512
+ updatedAt: string;
1513
+ name: string;
1514
+ phone: string | null;
1515
+ farmId: string;
1516
+ userId: string | null;
1517
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
1518
+ tasksAssigned?: number | undefined;
1519
+ tasksCompleted?: number | undefined;
1520
+ tasksPending?: number | undefined;
1521
+ };
1522
+ relationships?: Record<string, unknown> | undefined;
1523
+ links?: Record<string, string> | undefined;
1524
+ meta?: Record<string, unknown> | undefined;
1525
+ }, {
1526
+ type: string;
1527
+ id: string;
1528
+ attributes: {
1529
+ email: string;
1530
+ createdAt: string;
1531
+ updatedAt: string;
1532
+ name: string;
1533
+ phone: string | null;
1534
+ farmId: string;
1535
+ userId: string | null;
1536
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
1537
+ tasksAssigned?: number | undefined;
1538
+ tasksCompleted?: number | undefined;
1539
+ tasksPending?: number | undefined;
1540
+ };
1541
+ relationships?: Record<string, unknown> | undefined;
1542
+ links?: Record<string, string> | undefined;
1543
+ meta?: Record<string, unknown> | undefined;
1544
+ }>;
1545
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1546
+ type: z.ZodString;
1547
+ id: z.ZodString;
1548
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1549
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1550
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1551
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1552
+ }, "strip", z.ZodTypeAny, {
1553
+ type: string;
1554
+ id: string;
1555
+ attributes?: Record<string, unknown> | undefined;
1556
+ relationships?: Record<string, unknown> | undefined;
1557
+ links?: Record<string, string> | undefined;
1558
+ meta?: Record<string, unknown> | undefined;
1559
+ }, {
1560
+ type: string;
1561
+ id: string;
1562
+ attributes?: Record<string, unknown> | undefined;
1563
+ relationships?: Record<string, unknown> | undefined;
1564
+ links?: Record<string, string> | undefined;
1565
+ meta?: Record<string, unknown> | undefined;
1566
+ }>, "many">>;
1567
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1568
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1569
+ }, "strip", z.ZodTypeAny, {
1570
+ data: {
1571
+ type: string;
1572
+ id: string;
1573
+ attributes: {
1574
+ email: string;
1575
+ createdAt: string;
1576
+ updatedAt: string;
1577
+ name: string;
1578
+ phone: string | null;
1579
+ farmId: string;
1580
+ userId: string | null;
1581
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
1582
+ tasksAssigned?: number | undefined;
1583
+ tasksCompleted?: number | undefined;
1584
+ tasksPending?: number | undefined;
1585
+ };
1586
+ relationships?: Record<string, unknown> | undefined;
1587
+ links?: Record<string, string> | undefined;
1588
+ meta?: Record<string, unknown> | undefined;
1589
+ };
1590
+ links?: Record<string, string> | undefined;
1591
+ meta?: Record<string, unknown> | undefined;
1592
+ included?: {
1593
+ type: string;
1594
+ id: string;
1595
+ attributes?: Record<string, unknown> | undefined;
1596
+ relationships?: Record<string, unknown> | undefined;
1597
+ links?: Record<string, string> | undefined;
1598
+ meta?: Record<string, unknown> | undefined;
1599
+ }[] | undefined;
1600
+ }, {
1601
+ data: {
1602
+ type: string;
1603
+ id: string;
1604
+ attributes: {
1605
+ email: string;
1606
+ createdAt: string;
1607
+ updatedAt: string;
1608
+ name: string;
1609
+ phone: string | null;
1610
+ farmId: string;
1611
+ userId: string | null;
1612
+ role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
1613
+ tasksAssigned?: number | undefined;
1614
+ tasksCompleted?: number | undefined;
1615
+ tasksPending?: number | undefined;
1616
+ };
1617
+ relationships?: Record<string, unknown> | undefined;
1618
+ links?: Record<string, string> | undefined;
1619
+ meta?: Record<string, unknown> | undefined;
1620
+ };
1621
+ links?: Record<string, string> | undefined;
1622
+ meta?: Record<string, unknown> | undefined;
1623
+ included?: {
1624
+ type: string;
1625
+ id: string;
1626
+ attributes?: Record<string, unknown> | undefined;
1627
+ relationships?: Record<string, unknown> | undefined;
1628
+ links?: Record<string, string> | undefined;
1629
+ meta?: Record<string, unknown> | undefined;
1630
+ }[] | undefined;
1631
+ }>;
1632
+ 400: z.ZodObject<{
1633
+ errors: z.ZodArray<z.ZodObject<{
1634
+ id: z.ZodOptional<z.ZodString>;
1635
+ links: z.ZodOptional<z.ZodObject<{
1636
+ about: z.ZodOptional<z.ZodString>;
1637
+ }, "strip", z.ZodTypeAny, {
1638
+ about?: string | undefined;
1639
+ }, {
1640
+ about?: string | undefined;
1641
+ }>>;
1642
+ status: z.ZodOptional<z.ZodString>;
1643
+ code: z.ZodOptional<z.ZodString>;
1644
+ title: z.ZodOptional<z.ZodString>;
1645
+ detail: z.ZodOptional<z.ZodString>;
1646
+ source: z.ZodOptional<z.ZodObject<{
1647
+ pointer: z.ZodOptional<z.ZodString>;
1648
+ parameter: z.ZodOptional<z.ZodString>;
1649
+ }, "strip", z.ZodTypeAny, {
1650
+ pointer?: string | undefined;
1651
+ parameter?: string | undefined;
1652
+ }, {
1653
+ pointer?: string | undefined;
1654
+ parameter?: string | undefined;
1655
+ }>>;
1656
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ status?: string | undefined;
1659
+ code?: string | undefined;
1660
+ id?: string | undefined;
1661
+ links?: {
1662
+ about?: string | undefined;
1663
+ } | undefined;
1664
+ meta?: Record<string, unknown> | undefined;
1665
+ title?: string | undefined;
1666
+ detail?: string | undefined;
1667
+ source?: {
1668
+ pointer?: string | undefined;
1669
+ parameter?: string | undefined;
1670
+ } | undefined;
1671
+ }, {
1672
+ status?: string | undefined;
1673
+ code?: string | undefined;
1674
+ id?: string | undefined;
1675
+ links?: {
1676
+ about?: string | undefined;
1677
+ } | undefined;
1678
+ meta?: Record<string, unknown> | undefined;
1679
+ title?: string | undefined;
1680
+ detail?: string | undefined;
1681
+ source?: {
1682
+ pointer?: string | undefined;
1683
+ parameter?: string | undefined;
1684
+ } | undefined;
1685
+ }>, "many">;
1686
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1687
+ }, "strip", z.ZodTypeAny, {
1688
+ errors: {
1689
+ status?: string | undefined;
1690
+ code?: string | undefined;
1691
+ id?: string | undefined;
1692
+ links?: {
1693
+ about?: string | undefined;
1694
+ } | undefined;
1695
+ meta?: Record<string, unknown> | undefined;
1696
+ title?: string | undefined;
1697
+ detail?: string | undefined;
1698
+ source?: {
1699
+ pointer?: string | undefined;
1700
+ parameter?: string | undefined;
1701
+ } | undefined;
1702
+ }[];
1703
+ meta?: Record<string, unknown> | undefined;
1704
+ }, {
1705
+ errors: {
1706
+ status?: string | undefined;
1707
+ code?: string | undefined;
1708
+ id?: string | undefined;
1709
+ links?: {
1710
+ about?: string | undefined;
1711
+ } | undefined;
1712
+ meta?: Record<string, unknown> | undefined;
1713
+ title?: string | undefined;
1714
+ detail?: string | undefined;
1715
+ source?: {
1716
+ pointer?: string | undefined;
1717
+ parameter?: string | undefined;
1718
+ } | undefined;
1719
+ }[];
1720
+ meta?: Record<string, unknown> | undefined;
1721
+ }>;
1722
+ 404: z.ZodObject<{
1723
+ errors: z.ZodArray<z.ZodObject<{
1724
+ id: z.ZodOptional<z.ZodString>;
1725
+ links: z.ZodOptional<z.ZodObject<{
1726
+ about: z.ZodOptional<z.ZodString>;
1727
+ }, "strip", z.ZodTypeAny, {
1728
+ about?: string | undefined;
1729
+ }, {
1730
+ about?: string | undefined;
1731
+ }>>;
1732
+ status: z.ZodOptional<z.ZodString>;
1733
+ code: z.ZodOptional<z.ZodString>;
1734
+ title: z.ZodOptional<z.ZodString>;
1735
+ detail: z.ZodOptional<z.ZodString>;
1736
+ source: z.ZodOptional<z.ZodObject<{
1737
+ pointer: z.ZodOptional<z.ZodString>;
1738
+ parameter: z.ZodOptional<z.ZodString>;
1739
+ }, "strip", z.ZodTypeAny, {
1740
+ pointer?: string | undefined;
1741
+ parameter?: string | undefined;
1742
+ }, {
1743
+ pointer?: string | undefined;
1744
+ parameter?: string | undefined;
1745
+ }>>;
1746
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1747
+ }, "strip", z.ZodTypeAny, {
1748
+ status?: string | undefined;
1749
+ code?: string | undefined;
1750
+ id?: string | undefined;
1751
+ links?: {
1752
+ about?: string | undefined;
1753
+ } | undefined;
1754
+ meta?: Record<string, unknown> | undefined;
1755
+ title?: string | undefined;
1756
+ detail?: string | undefined;
1757
+ source?: {
1758
+ pointer?: string | undefined;
1759
+ parameter?: string | undefined;
1760
+ } | undefined;
1761
+ }, {
1762
+ status?: string | undefined;
1763
+ code?: string | undefined;
1764
+ id?: string | undefined;
1765
+ links?: {
1766
+ about?: string | undefined;
1767
+ } | undefined;
1768
+ meta?: Record<string, unknown> | undefined;
1769
+ title?: string | undefined;
1770
+ detail?: string | undefined;
1771
+ source?: {
1772
+ pointer?: string | undefined;
1773
+ parameter?: string | undefined;
1774
+ } | undefined;
1775
+ }>, "many">;
1776
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1777
+ }, "strip", z.ZodTypeAny, {
1778
+ errors: {
1779
+ status?: string | undefined;
1780
+ code?: string | undefined;
1781
+ id?: string | undefined;
1782
+ links?: {
1783
+ about?: string | undefined;
1784
+ } | undefined;
1785
+ meta?: Record<string, unknown> | undefined;
1786
+ title?: string | undefined;
1787
+ detail?: string | undefined;
1788
+ source?: {
1789
+ pointer?: string | undefined;
1790
+ parameter?: string | undefined;
1791
+ } | undefined;
1792
+ }[];
1793
+ meta?: Record<string, unknown> | undefined;
1794
+ }, {
1795
+ errors: {
1796
+ status?: string | undefined;
1797
+ code?: string | undefined;
1798
+ id?: string | undefined;
1799
+ links?: {
1800
+ about?: string | undefined;
1801
+ } | undefined;
1802
+ meta?: Record<string, unknown> | undefined;
1803
+ title?: string | undefined;
1804
+ detail?: string | undefined;
1805
+ source?: {
1806
+ pointer?: string | undefined;
1807
+ parameter?: string | undefined;
1808
+ } | undefined;
1809
+ }[];
1810
+ meta?: Record<string, unknown> | undefined;
1811
+ }>;
1812
+ 401: z.ZodObject<{
1813
+ errors: z.ZodArray<z.ZodObject<{
1814
+ id: z.ZodOptional<z.ZodString>;
1815
+ links: z.ZodOptional<z.ZodObject<{
1816
+ about: z.ZodOptional<z.ZodString>;
1817
+ }, "strip", z.ZodTypeAny, {
1818
+ about?: string | undefined;
1819
+ }, {
1820
+ about?: string | undefined;
1821
+ }>>;
1822
+ status: z.ZodOptional<z.ZodString>;
1823
+ code: z.ZodOptional<z.ZodString>;
1824
+ title: z.ZodOptional<z.ZodString>;
1825
+ detail: z.ZodOptional<z.ZodString>;
1826
+ source: z.ZodOptional<z.ZodObject<{
1827
+ pointer: z.ZodOptional<z.ZodString>;
1828
+ parameter: z.ZodOptional<z.ZodString>;
1829
+ }, "strip", z.ZodTypeAny, {
1830
+ pointer?: string | undefined;
1831
+ parameter?: string | undefined;
1832
+ }, {
1833
+ pointer?: string | undefined;
1834
+ parameter?: string | undefined;
1835
+ }>>;
1836
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1837
+ }, "strip", z.ZodTypeAny, {
1838
+ status?: string | undefined;
1839
+ code?: string | undefined;
1840
+ id?: string | undefined;
1841
+ links?: {
1842
+ about?: string | undefined;
1843
+ } | undefined;
1844
+ meta?: Record<string, unknown> | undefined;
1845
+ title?: string | undefined;
1846
+ detail?: string | undefined;
1847
+ source?: {
1848
+ pointer?: string | undefined;
1849
+ parameter?: string | undefined;
1850
+ } | undefined;
1851
+ }, {
1852
+ status?: string | undefined;
1853
+ code?: string | undefined;
1854
+ id?: string | undefined;
1855
+ links?: {
1856
+ about?: string | undefined;
1857
+ } | undefined;
1858
+ meta?: Record<string, unknown> | undefined;
1859
+ title?: string | undefined;
1860
+ detail?: string | undefined;
1861
+ source?: {
1862
+ pointer?: string | undefined;
1863
+ parameter?: string | undefined;
1864
+ } | undefined;
1865
+ }>, "many">;
1866
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1867
+ }, "strip", z.ZodTypeAny, {
1868
+ errors: {
1869
+ status?: string | undefined;
1870
+ code?: string | undefined;
1871
+ id?: string | undefined;
1872
+ links?: {
1873
+ about?: string | undefined;
1874
+ } | undefined;
1875
+ meta?: Record<string, unknown> | undefined;
1876
+ title?: string | undefined;
1877
+ detail?: string | undefined;
1878
+ source?: {
1879
+ pointer?: string | undefined;
1880
+ parameter?: string | undefined;
1881
+ } | undefined;
1882
+ }[];
1883
+ meta?: Record<string, unknown> | undefined;
1884
+ }, {
1885
+ errors: {
1886
+ status?: string | undefined;
1887
+ code?: string | undefined;
1888
+ id?: string | undefined;
1889
+ links?: {
1890
+ about?: string | undefined;
1891
+ } | undefined;
1892
+ meta?: Record<string, unknown> | undefined;
1893
+ title?: string | undefined;
1894
+ detail?: string | undefined;
1895
+ source?: {
1896
+ pointer?: string | undefined;
1897
+ parameter?: string | undefined;
1898
+ } | undefined;
1899
+ }[];
1900
+ meta?: Record<string, unknown> | undefined;
1901
+ }>;
1902
+ 422: z.ZodObject<{
1903
+ errors: z.ZodArray<z.ZodObject<{
1904
+ id: z.ZodOptional<z.ZodString>;
1905
+ links: z.ZodOptional<z.ZodObject<{
1906
+ about: z.ZodOptional<z.ZodString>;
1907
+ }, "strip", z.ZodTypeAny, {
1908
+ about?: string | undefined;
1909
+ }, {
1910
+ about?: string | undefined;
1911
+ }>>;
1912
+ status: z.ZodOptional<z.ZodString>;
1913
+ code: z.ZodOptional<z.ZodString>;
1914
+ title: z.ZodOptional<z.ZodString>;
1915
+ detail: z.ZodOptional<z.ZodString>;
1916
+ source: z.ZodOptional<z.ZodObject<{
1917
+ pointer: z.ZodOptional<z.ZodString>;
1918
+ parameter: z.ZodOptional<z.ZodString>;
1919
+ }, "strip", z.ZodTypeAny, {
1920
+ pointer?: string | undefined;
1921
+ parameter?: string | undefined;
1922
+ }, {
1923
+ pointer?: string | undefined;
1924
+ parameter?: string | undefined;
1925
+ }>>;
1926
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1927
+ }, "strip", z.ZodTypeAny, {
1928
+ status?: string | undefined;
1929
+ code?: string | undefined;
1930
+ id?: string | undefined;
1931
+ links?: {
1932
+ about?: string | undefined;
1933
+ } | undefined;
1934
+ meta?: Record<string, unknown> | undefined;
1935
+ title?: string | undefined;
1936
+ detail?: string | undefined;
1937
+ source?: {
1938
+ pointer?: string | undefined;
1939
+ parameter?: string | undefined;
1940
+ } | undefined;
1941
+ }, {
1942
+ status?: string | undefined;
1943
+ code?: string | undefined;
1944
+ id?: string | undefined;
1945
+ links?: {
1946
+ about?: string | undefined;
1947
+ } | undefined;
1948
+ meta?: Record<string, unknown> | undefined;
1949
+ title?: string | undefined;
1950
+ detail?: string | undefined;
1951
+ source?: {
1952
+ pointer?: string | undefined;
1953
+ parameter?: string | undefined;
1954
+ } | undefined;
1955
+ }>, "many">;
1956
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1957
+ }, "strip", z.ZodTypeAny, {
1958
+ errors: {
1959
+ status?: string | undefined;
1960
+ code?: string | undefined;
1961
+ id?: string | undefined;
1962
+ links?: {
1963
+ about?: string | undefined;
1964
+ } | undefined;
1965
+ meta?: Record<string, unknown> | undefined;
1966
+ title?: string | undefined;
1967
+ detail?: string | undefined;
1968
+ source?: {
1969
+ pointer?: string | undefined;
1970
+ parameter?: string | undefined;
1971
+ } | undefined;
1972
+ }[];
1973
+ meta?: Record<string, unknown> | undefined;
1974
+ }, {
1975
+ errors: {
1976
+ status?: string | undefined;
1977
+ code?: string | undefined;
1978
+ id?: string | undefined;
1979
+ links?: {
1980
+ about?: string | undefined;
1981
+ } | undefined;
1982
+ meta?: Record<string, unknown> | undefined;
1983
+ title?: string | undefined;
1984
+ detail?: string | undefined;
1985
+ source?: {
1986
+ pointer?: string | undefined;
1987
+ parameter?: string | undefined;
1988
+ } | undefined;
1989
+ }[];
1990
+ meta?: Record<string, unknown> | undefined;
1991
+ }>;
1992
+ };
1993
+ };
1994
+ deleteTeamMember: {
1995
+ pathParams: z.ZodObject<{
1996
+ farmId: z.ZodString;
1997
+ id: z.ZodString;
1998
+ }, "strip", z.ZodTypeAny, {
1999
+ id: string;
2000
+ farmId: string;
2001
+ }, {
2002
+ id: string;
2003
+ farmId: string;
2004
+ }>;
2005
+ summary: "Delete team member";
2006
+ description: "Remove a team member from the farm";
2007
+ method: "DELETE";
2008
+ path: "/farms/:farmId/team/:id";
2009
+ responses: {
2010
+ 204: z.ZodObject<{
2011
+ meta: z.ZodObject<{
2012
+ message: z.ZodString;
2013
+ }, "strip", z.ZodTypeAny, {
2014
+ message: string;
2015
+ }, {
2016
+ message: string;
2017
+ }>;
2018
+ }, "strip", z.ZodTypeAny, {
2019
+ meta: {
2020
+ message: string;
2021
+ };
2022
+ }, {
2023
+ meta: {
2024
+ message: string;
2025
+ };
2026
+ }>;
2027
+ 404: z.ZodObject<{
2028
+ errors: z.ZodArray<z.ZodObject<{
2029
+ id: z.ZodOptional<z.ZodString>;
2030
+ links: z.ZodOptional<z.ZodObject<{
2031
+ about: z.ZodOptional<z.ZodString>;
2032
+ }, "strip", z.ZodTypeAny, {
2033
+ about?: string | undefined;
2034
+ }, {
2035
+ about?: string | undefined;
2036
+ }>>;
2037
+ status: z.ZodOptional<z.ZodString>;
2038
+ code: z.ZodOptional<z.ZodString>;
2039
+ title: z.ZodOptional<z.ZodString>;
2040
+ detail: z.ZodOptional<z.ZodString>;
2041
+ source: z.ZodOptional<z.ZodObject<{
2042
+ pointer: z.ZodOptional<z.ZodString>;
2043
+ parameter: z.ZodOptional<z.ZodString>;
2044
+ }, "strip", z.ZodTypeAny, {
2045
+ pointer?: string | undefined;
2046
+ parameter?: string | undefined;
2047
+ }, {
2048
+ pointer?: string | undefined;
2049
+ parameter?: string | undefined;
2050
+ }>>;
2051
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2052
+ }, "strip", z.ZodTypeAny, {
2053
+ status?: string | undefined;
2054
+ code?: string | undefined;
2055
+ id?: string | undefined;
2056
+ links?: {
2057
+ about?: string | undefined;
2058
+ } | undefined;
2059
+ meta?: Record<string, unknown> | undefined;
2060
+ title?: string | undefined;
2061
+ detail?: string | undefined;
2062
+ source?: {
2063
+ pointer?: string | undefined;
2064
+ parameter?: string | undefined;
2065
+ } | undefined;
2066
+ }, {
2067
+ status?: string | undefined;
2068
+ code?: string | undefined;
2069
+ id?: string | undefined;
2070
+ links?: {
2071
+ about?: string | undefined;
2072
+ } | undefined;
2073
+ meta?: Record<string, unknown> | undefined;
2074
+ title?: string | undefined;
2075
+ detail?: string | undefined;
2076
+ source?: {
2077
+ pointer?: string | undefined;
2078
+ parameter?: string | undefined;
2079
+ } | undefined;
2080
+ }>, "many">;
2081
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2082
+ }, "strip", z.ZodTypeAny, {
2083
+ errors: {
2084
+ status?: string | undefined;
2085
+ code?: string | undefined;
2086
+ id?: string | undefined;
2087
+ links?: {
2088
+ about?: string | undefined;
2089
+ } | undefined;
2090
+ meta?: Record<string, unknown> | undefined;
2091
+ title?: string | undefined;
2092
+ detail?: string | undefined;
2093
+ source?: {
2094
+ pointer?: string | undefined;
2095
+ parameter?: string | undefined;
2096
+ } | undefined;
2097
+ }[];
2098
+ meta?: Record<string, unknown> | undefined;
2099
+ }, {
2100
+ errors: {
2101
+ status?: string | undefined;
2102
+ code?: string | undefined;
2103
+ id?: string | undefined;
2104
+ links?: {
2105
+ about?: string | undefined;
2106
+ } | undefined;
2107
+ meta?: Record<string, unknown> | undefined;
2108
+ title?: string | undefined;
2109
+ detail?: string | undefined;
2110
+ source?: {
2111
+ pointer?: string | undefined;
2112
+ parameter?: string | undefined;
2113
+ } | undefined;
2114
+ }[];
2115
+ meta?: Record<string, unknown> | undefined;
2116
+ }>;
2117
+ 401: z.ZodObject<{
2118
+ errors: z.ZodArray<z.ZodObject<{
2119
+ id: z.ZodOptional<z.ZodString>;
2120
+ links: z.ZodOptional<z.ZodObject<{
2121
+ about: z.ZodOptional<z.ZodString>;
2122
+ }, "strip", z.ZodTypeAny, {
2123
+ about?: string | undefined;
2124
+ }, {
2125
+ about?: string | undefined;
2126
+ }>>;
2127
+ status: z.ZodOptional<z.ZodString>;
2128
+ code: z.ZodOptional<z.ZodString>;
2129
+ title: z.ZodOptional<z.ZodString>;
2130
+ detail: z.ZodOptional<z.ZodString>;
2131
+ source: z.ZodOptional<z.ZodObject<{
2132
+ pointer: z.ZodOptional<z.ZodString>;
2133
+ parameter: z.ZodOptional<z.ZodString>;
2134
+ }, "strip", z.ZodTypeAny, {
2135
+ pointer?: string | undefined;
2136
+ parameter?: string | undefined;
2137
+ }, {
2138
+ pointer?: string | undefined;
2139
+ parameter?: string | undefined;
2140
+ }>>;
2141
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2142
+ }, "strip", z.ZodTypeAny, {
2143
+ status?: string | undefined;
2144
+ code?: string | undefined;
2145
+ id?: string | undefined;
2146
+ links?: {
2147
+ about?: string | undefined;
2148
+ } | undefined;
2149
+ meta?: Record<string, unknown> | undefined;
2150
+ title?: string | undefined;
2151
+ detail?: string | undefined;
2152
+ source?: {
2153
+ pointer?: string | undefined;
2154
+ parameter?: string | undefined;
2155
+ } | undefined;
2156
+ }, {
2157
+ status?: string | undefined;
2158
+ code?: string | undefined;
2159
+ id?: string | undefined;
2160
+ links?: {
2161
+ about?: string | undefined;
2162
+ } | undefined;
2163
+ meta?: Record<string, unknown> | undefined;
2164
+ title?: string | undefined;
2165
+ detail?: string | undefined;
2166
+ source?: {
2167
+ pointer?: string | undefined;
2168
+ parameter?: string | undefined;
2169
+ } | undefined;
2170
+ }>, "many">;
2171
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2172
+ }, "strip", z.ZodTypeAny, {
2173
+ errors: {
2174
+ status?: string | undefined;
2175
+ code?: string | undefined;
2176
+ id?: string | undefined;
2177
+ links?: {
2178
+ about?: string | undefined;
2179
+ } | undefined;
2180
+ meta?: Record<string, unknown> | undefined;
2181
+ title?: string | undefined;
2182
+ detail?: string | undefined;
2183
+ source?: {
2184
+ pointer?: string | undefined;
2185
+ parameter?: string | undefined;
2186
+ } | undefined;
2187
+ }[];
2188
+ meta?: Record<string, unknown> | undefined;
2189
+ }, {
2190
+ errors: {
2191
+ status?: string | undefined;
2192
+ code?: string | undefined;
2193
+ id?: string | undefined;
2194
+ links?: {
2195
+ about?: string | undefined;
2196
+ } | undefined;
2197
+ meta?: Record<string, unknown> | undefined;
2198
+ title?: string | undefined;
2199
+ detail?: string | undefined;
2200
+ source?: {
2201
+ pointer?: string | undefined;
2202
+ parameter?: string | undefined;
2203
+ } | undefined;
2204
+ }[];
2205
+ meta?: Record<string, unknown> | undefined;
2206
+ }>;
2207
+ };
2208
+ };
2209
+ };
2210
+ //# sourceMappingURL=team.routes.d.ts.map