@deepintel-ltd/farmpro-contracts 1.0.3 → 1.0.4

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.
@@ -31,6 +31,7 @@ export declare const taskAttributesSchema: z.ZodObject<{
31
31
  fieldName: z.ZodOptional<z.ZodString>;
32
32
  date: z.ZodString;
33
33
  status: z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>;
34
+ category: z.ZodString;
34
35
  inventoryItemId: z.ZodNullable<z.ZodString>;
35
36
  inventoryItemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
37
  plannedQuantity: z.ZodNullable<z.ZodNumber>;
@@ -71,6 +72,7 @@ export declare const taskAttributesSchema: z.ZodObject<{
71
72
  createdAt: string;
72
73
  updatedAt: string;
73
74
  fieldId: string;
75
+ category: string;
74
76
  inventoryItemId: string | null;
75
77
  plannedQuantity: number | null;
76
78
  actualQuantity: number | null;
@@ -95,6 +97,7 @@ export declare const taskAttributesSchema: z.ZodObject<{
95
97
  createdAt: string;
96
98
  updatedAt: string;
97
99
  fieldId: string;
100
+ category: string;
98
101
  inventoryItemId: string | null;
99
102
  plannedQuantity: number | null;
100
103
  actualQuantity: number | null;
@@ -118,6 +121,7 @@ export declare const createTaskAttributesSchema: z.ZodObject<{
118
121
  fieldId: z.ZodString;
119
122
  date: z.ZodString;
120
123
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>>>;
124
+ category: z.ZodOptional<z.ZodString>;
121
125
  inventoryItemId: z.ZodOptional<z.ZodString>;
122
126
  plannedQuantity: z.ZodOptional<z.ZodNumber>;
123
127
  assignedTo: z.ZodOptional<z.ZodString>;
@@ -127,6 +131,7 @@ export declare const createTaskAttributesSchema: z.ZodObject<{
127
131
  title: string;
128
132
  fieldId: string;
129
133
  status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
134
+ category?: string | undefined;
130
135
  inventoryItemId?: string | undefined;
131
136
  plannedQuantity?: number | undefined;
132
137
  assignedTo?: string | undefined;
@@ -136,6 +141,7 @@ export declare const createTaskAttributesSchema: z.ZodObject<{
136
141
  title: string;
137
142
  fieldId: string;
138
143
  status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
144
+ category?: string | undefined;
139
145
  inventoryItemId?: string | undefined;
140
146
  plannedQuantity?: number | undefined;
141
147
  assignedTo?: string | undefined;
@@ -146,6 +152,7 @@ export declare const updateTaskAttributesSchema: z.ZodObject<{
146
152
  fieldId: z.ZodOptional<z.ZodString>;
147
153
  date: z.ZodOptional<z.ZodString>;
148
154
  status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>>;
155
+ category: z.ZodOptional<z.ZodString>;
149
156
  inventoryItemId: z.ZodOptional<z.ZodString>;
150
157
  plannedQuantity: z.ZodOptional<z.ZodNumber>;
151
158
  actualQuantity: z.ZodOptional<z.ZodNumber>;
@@ -155,6 +162,7 @@ export declare const updateTaskAttributesSchema: z.ZodObject<{
155
162
  date?: string | undefined;
156
163
  title?: string | undefined;
157
164
  fieldId?: string | undefined;
165
+ category?: string | undefined;
158
166
  inventoryItemId?: string | undefined;
159
167
  plannedQuantity?: number | undefined;
160
168
  actualQuantity?: number | undefined;
@@ -164,6 +172,7 @@ export declare const updateTaskAttributesSchema: z.ZodObject<{
164
172
  date?: string | undefined;
165
173
  title?: string | undefined;
166
174
  fieldId?: string | undefined;
175
+ category?: string | undefined;
167
176
  inventoryItemId?: string | undefined;
168
177
  plannedQuantity?: number | undefined;
169
178
  actualQuantity?: number | undefined;
@@ -196,6 +205,7 @@ export declare const createTaskSchema: z.ZodObject<{
196
205
  fieldId: z.ZodString;
197
206
  date: z.ZodString;
198
207
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>>>;
208
+ category: z.ZodOptional<z.ZodString>;
199
209
  inventoryItemId: z.ZodOptional<z.ZodString>;
200
210
  plannedQuantity: z.ZodOptional<z.ZodNumber>;
201
211
  assignedTo: z.ZodOptional<z.ZodString>;
@@ -205,6 +215,7 @@ export declare const createTaskSchema: z.ZodObject<{
205
215
  title: string;
206
216
  fieldId: string;
207
217
  status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
218
+ category?: string | undefined;
208
219
  inventoryItemId?: string | undefined;
209
220
  plannedQuantity?: number | undefined;
210
221
  assignedTo?: string | undefined;
@@ -214,6 +225,7 @@ export declare const createTaskSchema: z.ZodObject<{
214
225
  title: string;
215
226
  fieldId: string;
216
227
  status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
228
+ category?: string | undefined;
217
229
  inventoryItemId?: string | undefined;
218
230
  plannedQuantity?: number | undefined;
219
231
  assignedTo?: string | undefined;
@@ -226,6 +238,7 @@ export declare const createTaskSchema: z.ZodObject<{
226
238
  title: string;
227
239
  fieldId: string;
228
240
  status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
241
+ category?: string | undefined;
229
242
  inventoryItemId?: string | undefined;
230
243
  plannedQuantity?: number | undefined;
231
244
  assignedTo?: string | undefined;
@@ -238,6 +251,7 @@ export declare const createTaskSchema: z.ZodObject<{
238
251
  title: string;
239
252
  fieldId: string;
240
253
  status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
254
+ category?: string | undefined;
241
255
  inventoryItemId?: string | undefined;
242
256
  plannedQuantity?: number | undefined;
243
257
  assignedTo?: string | undefined;
@@ -252,6 +266,7 @@ export declare const updateTaskSchema: z.ZodObject<{
252
266
  fieldId: z.ZodOptional<z.ZodString>;
253
267
  date: z.ZodOptional<z.ZodString>;
254
268
  status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>>;
269
+ category: z.ZodOptional<z.ZodString>;
255
270
  inventoryItemId: z.ZodOptional<z.ZodString>;
256
271
  plannedQuantity: z.ZodOptional<z.ZodNumber>;
257
272
  actualQuantity: z.ZodOptional<z.ZodNumber>;
@@ -261,6 +276,7 @@ export declare const updateTaskSchema: z.ZodObject<{
261
276
  date?: string | undefined;
262
277
  title?: string | undefined;
263
278
  fieldId?: string | undefined;
279
+ category?: string | undefined;
264
280
  inventoryItemId?: string | undefined;
265
281
  plannedQuantity?: number | undefined;
266
282
  actualQuantity?: number | undefined;
@@ -270,6 +286,7 @@ export declare const updateTaskSchema: z.ZodObject<{
270
286
  date?: string | undefined;
271
287
  title?: string | undefined;
272
288
  fieldId?: string | undefined;
289
+ category?: string | undefined;
273
290
  inventoryItemId?: string | undefined;
274
291
  plannedQuantity?: number | undefined;
275
292
  actualQuantity?: number | undefined;
@@ -283,6 +300,7 @@ export declare const updateTaskSchema: z.ZodObject<{
283
300
  date?: string | undefined;
284
301
  title?: string | undefined;
285
302
  fieldId?: string | undefined;
303
+ category?: string | undefined;
286
304
  inventoryItemId?: string | undefined;
287
305
  plannedQuantity?: number | undefined;
288
306
  actualQuantity?: number | undefined;
@@ -296,6 +314,7 @@ export declare const updateTaskSchema: z.ZodObject<{
296
314
  date?: string | undefined;
297
315
  title?: string | undefined;
298
316
  fieldId?: string | undefined;
317
+ category?: string | undefined;
299
318
  inventoryItemId?: string | undefined;
300
319
  plannedQuantity?: number | undefined;
301
320
  actualQuantity?: number | undefined;
@@ -364,6 +383,7 @@ export declare const taskResourceSchema: z.ZodObject<{
364
383
  fieldName: z.ZodOptional<z.ZodString>;
365
384
  date: z.ZodString;
366
385
  status: z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>;
386
+ category: z.ZodString;
367
387
  inventoryItemId: z.ZodNullable<z.ZodString>;
368
388
  inventoryItemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
369
389
  plannedQuantity: z.ZodNullable<z.ZodNumber>;
@@ -404,6 +424,7 @@ export declare const taskResourceSchema: z.ZodObject<{
404
424
  createdAt: string;
405
425
  updatedAt: string;
406
426
  fieldId: string;
427
+ category: string;
407
428
  inventoryItemId: string | null;
408
429
  plannedQuantity: number | null;
409
430
  actualQuantity: number | null;
@@ -428,6 +449,7 @@ export declare const taskResourceSchema: z.ZodObject<{
428
449
  createdAt: string;
429
450
  updatedAt: string;
430
451
  fieldId: string;
452
+ category: string;
431
453
  inventoryItemId: string | null;
432
454
  plannedQuantity: number | null;
433
455
  actualQuantity: number | null;
@@ -459,6 +481,7 @@ export declare const taskResourceSchema: z.ZodObject<{
459
481
  createdAt: string;
460
482
  updatedAt: string;
461
483
  fieldId: string;
484
+ category: string;
462
485
  inventoryItemId: string | null;
463
486
  plannedQuantity: number | null;
464
487
  actualQuantity: number | null;
@@ -490,6 +513,7 @@ export declare const taskResourceSchema: z.ZodObject<{
490
513
  createdAt: string;
491
514
  updatedAt: string;
492
515
  fieldId: string;
516
+ category: string;
493
517
  inventoryItemId: string | null;
494
518
  plannedQuantity: number | null;
495
519
  actualQuantity: number | null;
@@ -521,6 +545,7 @@ export declare const taskDetailResourceSchema: z.ZodObject<{
521
545
  fieldName: z.ZodOptional<z.ZodString>;
522
546
  date: z.ZodString;
523
547
  status: z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>;
548
+ category: z.ZodString;
524
549
  inventoryItemId: z.ZodNullable<z.ZodString>;
525
550
  inventoryItemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
526
551
  plannedQuantity: z.ZodNullable<z.ZodNumber>;
@@ -561,6 +586,7 @@ export declare const taskDetailResourceSchema: z.ZodObject<{
561
586
  createdAt: string;
562
587
  updatedAt: string;
563
588
  fieldId: string;
589
+ category: string;
564
590
  inventoryItemId: string | null;
565
591
  plannedQuantity: number | null;
566
592
  actualQuantity: number | null;
@@ -585,6 +611,7 @@ export declare const taskDetailResourceSchema: z.ZodObject<{
585
611
  createdAt: string;
586
612
  updatedAt: string;
587
613
  fieldId: string;
614
+ category: string;
588
615
  inventoryItemId: string | null;
589
616
  plannedQuantity: number | null;
590
617
  actualQuantity: number | null;
@@ -701,6 +728,7 @@ export declare const taskDetailResourceSchema: z.ZodObject<{
701
728
  createdAt: string;
702
729
  updatedAt: string;
703
730
  fieldId: string;
731
+ category: string;
704
732
  inventoryItemId: string | null;
705
733
  plannedQuantity: number | null;
706
734
  actualQuantity: number | null;
@@ -748,6 +776,7 @@ export declare const taskDetailResourceSchema: z.ZodObject<{
748
776
  createdAt: string;
749
777
  updatedAt: string;
750
778
  fieldId: string;
779
+ category: string;
751
780
  inventoryItemId: string | null;
752
781
  plannedQuantity: number | null;
753
782
  actualQuantity: number | null;
@@ -796,6 +825,7 @@ export declare const taskResponseSchema: z.ZodObject<{
796
825
  fieldName: z.ZodOptional<z.ZodString>;
797
826
  date: z.ZodString;
798
827
  status: z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>;
828
+ category: z.ZodString;
799
829
  inventoryItemId: z.ZodNullable<z.ZodString>;
800
830
  inventoryItemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
801
831
  plannedQuantity: z.ZodNullable<z.ZodNumber>;
@@ -836,6 +866,7 @@ export declare const taskResponseSchema: z.ZodObject<{
836
866
  createdAt: string;
837
867
  updatedAt: string;
838
868
  fieldId: string;
869
+ category: string;
839
870
  inventoryItemId: string | null;
840
871
  plannedQuantity: number | null;
841
872
  actualQuantity: number | null;
@@ -860,6 +891,7 @@ export declare const taskResponseSchema: z.ZodObject<{
860
891
  createdAt: string;
861
892
  updatedAt: string;
862
893
  fieldId: string;
894
+ category: string;
863
895
  inventoryItemId: string | null;
864
896
  plannedQuantity: number | null;
865
897
  actualQuantity: number | null;
@@ -891,6 +923,7 @@ export declare const taskResponseSchema: z.ZodObject<{
891
923
  createdAt: string;
892
924
  updatedAt: string;
893
925
  fieldId: string;
926
+ category: string;
894
927
  inventoryItemId: string | null;
895
928
  plannedQuantity: number | null;
896
929
  actualQuantity: number | null;
@@ -922,6 +955,7 @@ export declare const taskResponseSchema: z.ZodObject<{
922
955
  createdAt: string;
923
956
  updatedAt: string;
924
957
  fieldId: string;
958
+ category: string;
925
959
  inventoryItemId: string | null;
926
960
  plannedQuantity: number | null;
927
961
  actualQuantity: number | null;
@@ -979,6 +1013,7 @@ export declare const taskResponseSchema: z.ZodObject<{
979
1013
  createdAt: string;
980
1014
  updatedAt: string;
981
1015
  fieldId: string;
1016
+ category: string;
982
1017
  inventoryItemId: string | null;
983
1018
  plannedQuantity: number | null;
984
1019
  actualQuantity: number | null;
@@ -1022,6 +1057,7 @@ export declare const taskResponseSchema: z.ZodObject<{
1022
1057
  createdAt: string;
1023
1058
  updatedAt: string;
1024
1059
  fieldId: string;
1060
+ category: string;
1025
1061
  inventoryItemId: string | null;
1026
1062
  plannedQuantity: number | null;
1027
1063
  actualQuantity: number | null;
@@ -1065,6 +1101,7 @@ export declare const taskDetailResponseSchema: z.ZodObject<{
1065
1101
  fieldName: z.ZodOptional<z.ZodString>;
1066
1102
  date: z.ZodString;
1067
1103
  status: z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>;
1104
+ category: z.ZodString;
1068
1105
  inventoryItemId: z.ZodNullable<z.ZodString>;
1069
1106
  inventoryItemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1070
1107
  plannedQuantity: z.ZodNullable<z.ZodNumber>;
@@ -1105,6 +1142,7 @@ export declare const taskDetailResponseSchema: z.ZodObject<{
1105
1142
  createdAt: string;
1106
1143
  updatedAt: string;
1107
1144
  fieldId: string;
1145
+ category: string;
1108
1146
  inventoryItemId: string | null;
1109
1147
  plannedQuantity: number | null;
1110
1148
  actualQuantity: number | null;
@@ -1129,6 +1167,7 @@ export declare const taskDetailResponseSchema: z.ZodObject<{
1129
1167
  createdAt: string;
1130
1168
  updatedAt: string;
1131
1169
  fieldId: string;
1170
+ category: string;
1132
1171
  inventoryItemId: string | null;
1133
1172
  plannedQuantity: number | null;
1134
1173
  actualQuantity: number | null;
@@ -1245,6 +1284,7 @@ export declare const taskDetailResponseSchema: z.ZodObject<{
1245
1284
  createdAt: string;
1246
1285
  updatedAt: string;
1247
1286
  fieldId: string;
1287
+ category: string;
1248
1288
  inventoryItemId: string | null;
1249
1289
  plannedQuantity: number | null;
1250
1290
  actualQuantity: number | null;
@@ -1292,6 +1332,7 @@ export declare const taskDetailResponseSchema: z.ZodObject<{
1292
1332
  createdAt: string;
1293
1333
  updatedAt: string;
1294
1334
  fieldId: string;
1335
+ category: string;
1295
1336
  inventoryItemId: string | null;
1296
1337
  plannedQuantity: number | null;
1297
1338
  actualQuantity: number | null;
@@ -1365,6 +1406,7 @@ export declare const taskDetailResponseSchema: z.ZodObject<{
1365
1406
  createdAt: string;
1366
1407
  updatedAt: string;
1367
1408
  fieldId: string;
1409
+ category: string;
1368
1410
  inventoryItemId: string | null;
1369
1411
  plannedQuantity: number | null;
1370
1412
  actualQuantity: number | null;
@@ -1424,6 +1466,7 @@ export declare const taskDetailResponseSchema: z.ZodObject<{
1424
1466
  createdAt: string;
1425
1467
  updatedAt: string;
1426
1468
  fieldId: string;
1469
+ category: string;
1427
1470
  inventoryItemId: string | null;
1428
1471
  plannedQuantity: number | null;
1429
1472
  actualQuantity: number | null;
@@ -1483,6 +1526,7 @@ export declare const taskListResponseSchema: z.ZodObject<{
1483
1526
  fieldName: z.ZodOptional<z.ZodString>;
1484
1527
  date: z.ZodString;
1485
1528
  status: z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>;
1529
+ category: z.ZodString;
1486
1530
  inventoryItemId: z.ZodNullable<z.ZodString>;
1487
1531
  inventoryItemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1488
1532
  plannedQuantity: z.ZodNullable<z.ZodNumber>;
@@ -1523,6 +1567,7 @@ export declare const taskListResponseSchema: z.ZodObject<{
1523
1567
  createdAt: string;
1524
1568
  updatedAt: string;
1525
1569
  fieldId: string;
1570
+ category: string;
1526
1571
  inventoryItemId: string | null;
1527
1572
  plannedQuantity: number | null;
1528
1573
  actualQuantity: number | null;
@@ -1547,6 +1592,7 @@ export declare const taskListResponseSchema: z.ZodObject<{
1547
1592
  createdAt: string;
1548
1593
  updatedAt: string;
1549
1594
  fieldId: string;
1595
+ category: string;
1550
1596
  inventoryItemId: string | null;
1551
1597
  plannedQuantity: number | null;
1552
1598
  actualQuantity: number | null;
@@ -1578,6 +1624,7 @@ export declare const taskListResponseSchema: z.ZodObject<{
1578
1624
  createdAt: string;
1579
1625
  updatedAt: string;
1580
1626
  fieldId: string;
1627
+ category: string;
1581
1628
  inventoryItemId: string | null;
1582
1629
  plannedQuantity: number | null;
1583
1630
  actualQuantity: number | null;
@@ -1609,6 +1656,7 @@ export declare const taskListResponseSchema: z.ZodObject<{
1609
1656
  createdAt: string;
1610
1657
  updatedAt: string;
1611
1658
  fieldId: string;
1659
+ category: string;
1612
1660
  inventoryItemId: string | null;
1613
1661
  plannedQuantity: number | null;
1614
1662
  actualQuantity: number | null;
@@ -1666,6 +1714,7 @@ export declare const taskListResponseSchema: z.ZodObject<{
1666
1714
  createdAt: string;
1667
1715
  updatedAt: string;
1668
1716
  fieldId: string;
1717
+ category: string;
1669
1718
  inventoryItemId: string | null;
1670
1719
  plannedQuantity: number | null;
1671
1720
  actualQuantity: number | null;
@@ -1709,6 +1758,7 @@ export declare const taskListResponseSchema: z.ZodObject<{
1709
1758
  createdAt: string;
1710
1759
  updatedAt: string;
1711
1760
  fieldId: string;
1761
+ category: string;
1712
1762
  inventoryItemId: string | null;
1713
1763
  plannedQuantity: number | null;
1714
1764
  actualQuantity: number | null;
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/tasks.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,gBAAgB,iEAA+D,CAAC;AAG7F,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;EAOzB,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBP,CAAC;AAG3B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;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AgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -24,6 +24,7 @@ exports.taskAttributesSchema = zod_1.z.object({
24
24
  fieldName: zod_1.z.string().optional(), // Included for convenience
25
25
  date: zod_1.z.string().datetime(),
26
26
  status: exports.taskStatusSchema,
27
+ category: zod_1.z.string(), // Task category
27
28
  // Inventory linking
28
29
  inventoryItemId: zod_1.z.string().uuid().nullable(),
29
30
  inventoryItemName: zod_1.z.string().nullable().optional(),
@@ -43,6 +44,7 @@ exports.createTaskAttributesSchema = zod_1.z.object({
43
44
  fieldId: zod_1.z.string().uuid(),
44
45
  date: zod_1.z.string().datetime(),
45
46
  status: exports.taskStatusSchema.default('pending').optional(),
47
+ category: zod_1.z.string().min(1).max(100).optional(), // Optional - will use default if not provided
46
48
  // Inventory linking
47
49
  inventoryItemId: zod_1.z.string().uuid().optional(),
48
50
  plannedQuantity: zod_1.z.number().positive().optional(),
@@ -56,6 +58,7 @@ exports.updateTaskAttributesSchema = zod_1.z.object({
56
58
  fieldId: zod_1.z.string().uuid().optional(),
57
59
  date: zod_1.z.string().datetime().optional(),
58
60
  status: exports.taskStatusSchema.optional(),
61
+ category: zod_1.z.string().min(1).max(100).optional(),
59
62
  inventoryItemId: zod_1.z.string().uuid().optional(),
60
63
  plannedQuantity: zod_1.z.number().positive().optional(),
61
64
  actualQuantity: zod_1.z.number().positive().optional(), // Set when completing task
@@ -1 +1 @@
1
- {"version":3,"file":"weather.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/weather.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;GAEG;AAGH,eAAO,MAAM,sBAAsB,kEAAgE,CAAC;AAGpG,eAAO,MAAM,0BAA0B,sCAAoC,CAAC;AAG5E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;EAMhC,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlC,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkE,CAAC;AAGrG,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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G,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",