@deepintel-ltd/farmpro-contracts 1.11.11 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staff.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/staff.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAEH,eAAO,MAAM,kBAAkB,0CAAwC,CAAC;AACxE,eAAO,MAAM,mBAAmB,2BAAyB,CAAC;AAE1D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWd,CAAC;AAE3B,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS5C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS5C,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyD,CAAC;AAChG,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C;AAClF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -0,0 +1,96 @@
1
+ import { z } from 'zod';
2
+ import { timestampsSchema, createJsonApiResourceSchema, jsonApiSingleResponseSchema, jsonApiCollectionResponseSchema, } from './common.schemas';
3
+ /**
4
+ * Staff payroll schemas — roster + payments that post to the Expense ledger.
5
+ */
6
+ export const staffPayTypeSchema = z.enum(['monthly', 'daily', 'piece']);
7
+ export const staffCurrencySchema = z.enum(['NGN', 'USD']);
8
+ export const staffMemberAttributesSchema = z
9
+ .object({
10
+ name: z.string().min(1).max(200),
11
+ title: z.string().max(100).nullable(),
12
+ payType: staffPayTypeSchema,
13
+ defaultAmount: z.number().nonnegative().nullable(),
14
+ currency: staffCurrencySchema,
15
+ isActive: z.boolean(),
16
+ teamMemberId: z.string().uuid().nullable(),
17
+ notes: z.string().nullable(),
18
+ })
19
+ .merge(timestampsSchema);
20
+ export const createStaffMemberAttributesSchema = z.object({
21
+ name: z.string().min(1).max(200),
22
+ title: z.string().max(100).optional(),
23
+ payType: staffPayTypeSchema.default('monthly'),
24
+ defaultAmount: z.number().nonnegative().optional(),
25
+ currency: staffCurrencySchema.default('NGN'),
26
+ isActive: z.boolean().default(true),
27
+ teamMemberId: z.string().uuid().optional(),
28
+ notes: z.string().max(2000).optional(),
29
+ });
30
+ export const updateStaffMemberAttributesSchema = z.object({
31
+ name: z.string().min(1).max(200).optional(),
32
+ title: z.string().max(100).nullable().optional(),
33
+ payType: staffPayTypeSchema.optional(),
34
+ defaultAmount: z.number().nonnegative().nullable().optional(),
35
+ currency: staffCurrencySchema.optional(),
36
+ isActive: z.boolean().optional(),
37
+ teamMemberId: z.string().uuid().nullable().optional(),
38
+ notes: z.string().max(2000).nullable().optional(),
39
+ });
40
+ export const createStaffMemberSchema = z.object({
41
+ type: z.literal('staff-members'),
42
+ attributes: createStaffMemberAttributesSchema,
43
+ });
44
+ export const updateStaffMemberSchema = z.object({
45
+ type: z.literal('staff-members'),
46
+ id: z.string().uuid(),
47
+ attributes: updateStaffMemberAttributesSchema,
48
+ });
49
+ export const staffMemberResourceSchema = createJsonApiResourceSchema('staff-members', staffMemberAttributesSchema);
50
+ export const staffMemberResponseSchema = jsonApiSingleResponseSchema(staffMemberResourceSchema);
51
+ export const staffMemberListResponseSchema = jsonApiCollectionResponseSchema(staffMemberResourceSchema);
52
+ export const staffPaymentAttributesSchema = z
53
+ .object({
54
+ staffMemberId: z.string().uuid(),
55
+ staffMemberName: z.string().optional(),
56
+ amount: z.number().positive(),
57
+ currency: staffCurrencySchema,
58
+ paymentDate: z.string().datetime(),
59
+ periodStart: z.string().datetime().nullable(),
60
+ periodEnd: z.string().datetime().nullable(),
61
+ description: z.string().nullable(),
62
+ expenseId: z.string().uuid(),
63
+ })
64
+ .merge(timestampsSchema);
65
+ export const createStaffPaymentAttributesSchema = z.object({
66
+ staffMemberId: z.string().uuid(),
67
+ amount: z.number().positive().optional(),
68
+ currency: staffCurrencySchema.default('NGN'),
69
+ paymentDate: z.string().datetime(),
70
+ periodStart: z.string().datetime().optional(),
71
+ periodEnd: z.string().datetime().optional(),
72
+ description: z.string().max(500).optional(),
73
+ });
74
+ export const createStaffPaymentSchema = z.object({
75
+ type: z.literal('staff-payments'),
76
+ attributes: createStaffPaymentAttributesSchema,
77
+ });
78
+ export const bulkStaffPaymentItemSchema = z.object({
79
+ staffMemberId: z.string().uuid(),
80
+ amount: z.number().positive().optional(),
81
+ description: z.string().max(500).optional(),
82
+ });
83
+ export const createBulkStaffPaymentsAttributesSchema = z.object({
84
+ paymentDate: z.string().datetime(),
85
+ periodStart: z.string().datetime().optional(),
86
+ periodEnd: z.string().datetime().optional(),
87
+ currency: staffCurrencySchema.default('NGN'),
88
+ payments: z.array(bulkStaffPaymentItemSchema).min(1).max(100),
89
+ });
90
+ export const createBulkStaffPaymentsSchema = z.object({
91
+ type: z.literal('staff-payment-bulk'),
92
+ attributes: createBulkStaffPaymentsAttributesSchema,
93
+ });
94
+ export const staffPaymentResourceSchema = createJsonApiResourceSchema('staff-payments', staffPaymentAttributesSchema);
95
+ export const staffPaymentResponseSchema = jsonApiSingleResponseSchema(staffPaymentResourceSchema);
96
+ export const staffPaymentListResponseSchema = jsonApiCollectionResponseSchema(staffPaymentResourceSchema);
@@ -28,8 +28,8 @@ export declare const companyPaymentAccountAttributesSchema: z.ZodObject<{
28
28
  bankName: string;
29
29
  accountNumber: string;
30
30
  accountName: string;
31
- label: string;
32
31
  isActive: boolean;
32
+ label: string;
33
33
  providerAccountId: string | null;
34
34
  dailyLimit: number | null;
35
35
  monthlyLimit: number | null;
@@ -44,8 +44,8 @@ export declare const companyPaymentAccountAttributesSchema: z.ZodObject<{
44
44
  bankName: string;
45
45
  accountNumber: string;
46
46
  accountName: string;
47
- label: string;
48
47
  isActive: boolean;
48
+ label: string;
49
49
  providerAccountId: string | null;
50
50
  dailyLimit: number | null;
51
51
  monthlyLimit: number | null;
@@ -70,8 +70,8 @@ export declare const createCompanyPaymentAccountAttributesSchema: z.ZodObject<{
70
70
  bankName: string;
71
71
  accountNumber: string;
72
72
  accountName: string;
73
- label: string;
74
73
  isActive: boolean;
74
+ label: string;
75
75
  providerAccountId?: string | undefined;
76
76
  dailyLimit?: number | undefined;
77
77
  monthlyLimit?: number | undefined;
@@ -107,8 +107,8 @@ export declare const updateCompanyPaymentAccountAttributesSchema: z.ZodObject<{
107
107
  bankName?: string | undefined;
108
108
  accountNumber?: string | undefined;
109
109
  accountName?: string | undefined;
110
- label?: string | undefined;
111
110
  isActive?: boolean | undefined;
111
+ label?: string | undefined;
112
112
  providerAccountId?: string | undefined;
113
113
  dailyLimit?: number | undefined;
114
114
  monthlyLimit?: number | undefined;
@@ -119,8 +119,8 @@ export declare const updateCompanyPaymentAccountAttributesSchema: z.ZodObject<{
119
119
  bankName?: string | undefined;
120
120
  accountNumber?: string | undefined;
121
121
  accountName?: string | undefined;
122
- label?: string | undefined;
123
122
  isActive?: boolean | undefined;
123
+ label?: string | undefined;
124
124
  providerAccountId?: string | undefined;
125
125
  dailyLimit?: number | undefined;
126
126
  monthlyLimit?: number | undefined;
@@ -146,8 +146,8 @@ export declare const createCompanyPaymentAccountSchema: z.ZodObject<{
146
146
  bankName: string;
147
147
  accountNumber: string;
148
148
  accountName: string;
149
- label: string;
150
149
  isActive: boolean;
150
+ label: string;
151
151
  providerAccountId?: string | undefined;
152
152
  dailyLimit?: number | undefined;
153
153
  monthlyLimit?: number | undefined;
@@ -173,8 +173,8 @@ export declare const createCompanyPaymentAccountSchema: z.ZodObject<{
173
173
  bankName: string;
174
174
  accountNumber: string;
175
175
  accountName: string;
176
- label: string;
177
176
  isActive: boolean;
177
+ label: string;
178
178
  providerAccountId?: string | undefined;
179
179
  dailyLimit?: number | undefined;
180
180
  monthlyLimit?: number | undefined;
@@ -217,8 +217,8 @@ export declare const updateCompanyPaymentAccountSchema: z.ZodObject<{
217
217
  bankName?: string | undefined;
218
218
  accountNumber?: string | undefined;
219
219
  accountName?: string | undefined;
220
- label?: string | undefined;
221
220
  isActive?: boolean | undefined;
221
+ label?: string | undefined;
222
222
  providerAccountId?: string | undefined;
223
223
  dailyLimit?: number | undefined;
224
224
  monthlyLimit?: number | undefined;
@@ -229,8 +229,8 @@ export declare const updateCompanyPaymentAccountSchema: z.ZodObject<{
229
229
  bankName?: string | undefined;
230
230
  accountNumber?: string | undefined;
231
231
  accountName?: string | undefined;
232
- label?: string | undefined;
233
232
  isActive?: boolean | undefined;
233
+ label?: string | undefined;
234
234
  providerAccountId?: string | undefined;
235
235
  dailyLimit?: number | undefined;
236
236
  monthlyLimit?: number | undefined;
@@ -245,8 +245,8 @@ export declare const updateCompanyPaymentAccountSchema: z.ZodObject<{
245
245
  bankName?: string | undefined;
246
246
  accountNumber?: string | undefined;
247
247
  accountName?: string | undefined;
248
- label?: string | undefined;
249
248
  isActive?: boolean | undefined;
249
+ label?: string | undefined;
250
250
  providerAccountId?: string | undefined;
251
251
  dailyLimit?: number | undefined;
252
252
  monthlyLimit?: number | undefined;
@@ -261,8 +261,8 @@ export declare const updateCompanyPaymentAccountSchema: z.ZodObject<{
261
261
  bankName?: string | undefined;
262
262
  accountNumber?: string | undefined;
263
263
  accountName?: string | undefined;
264
- label?: string | undefined;
265
264
  isActive?: boolean | undefined;
265
+ label?: string | undefined;
266
266
  providerAccountId?: string | undefined;
267
267
  dailyLimit?: number | undefined;
268
268
  monthlyLimit?: number | undefined;
@@ -298,8 +298,8 @@ export declare const companyPaymentAccountResourceSchema: z.ZodObject<{
298
298
  bankName: string;
299
299
  accountNumber: string;
300
300
  accountName: string;
301
- label: string;
302
301
  isActive: boolean;
302
+ label: string;
303
303
  providerAccountId: string | null;
304
304
  dailyLimit: number | null;
305
305
  monthlyLimit: number | null;
@@ -314,8 +314,8 @@ export declare const companyPaymentAccountResourceSchema: z.ZodObject<{
314
314
  bankName: string;
315
315
  accountNumber: string;
316
316
  accountName: string;
317
- label: string;
318
317
  isActive: boolean;
318
+ label: string;
319
319
  providerAccountId: string | null;
320
320
  dailyLimit: number | null;
321
321
  monthlyLimit: number | null;
@@ -337,8 +337,8 @@ export declare const companyPaymentAccountResourceSchema: z.ZodObject<{
337
337
  bankName: string;
338
338
  accountNumber: string;
339
339
  accountName: string;
340
- label: string;
341
340
  isActive: boolean;
341
+ label: string;
342
342
  providerAccountId: string | null;
343
343
  dailyLimit: number | null;
344
344
  monthlyLimit: number | null;
@@ -360,8 +360,8 @@ export declare const companyPaymentAccountResourceSchema: z.ZodObject<{
360
360
  bankName: string;
361
361
  accountNumber: string;
362
362
  accountName: string;
363
- label: string;
364
363
  isActive: boolean;
364
+ label: string;
365
365
  providerAccountId: string | null;
366
366
  dailyLimit: number | null;
367
367
  monthlyLimit: number | null;
@@ -402,8 +402,8 @@ export declare const companyPaymentAccountResponseSchema: z.ZodObject<{
402
402
  bankName: string;
403
403
  accountNumber: string;
404
404
  accountName: string;
405
- label: string;
406
405
  isActive: boolean;
406
+ label: string;
407
407
  providerAccountId: string | null;
408
408
  dailyLimit: number | null;
409
409
  monthlyLimit: number | null;
@@ -418,8 +418,8 @@ export declare const companyPaymentAccountResponseSchema: z.ZodObject<{
418
418
  bankName: string;
419
419
  accountNumber: string;
420
420
  accountName: string;
421
- label: string;
422
421
  isActive: boolean;
422
+ label: string;
423
423
  providerAccountId: string | null;
424
424
  dailyLimit: number | null;
425
425
  monthlyLimit: number | null;
@@ -441,8 +441,8 @@ export declare const companyPaymentAccountResponseSchema: z.ZodObject<{
441
441
  bankName: string;
442
442
  accountNumber: string;
443
443
  accountName: string;
444
- label: string;
445
444
  isActive: boolean;
445
+ label: string;
446
446
  providerAccountId: string | null;
447
447
  dailyLimit: number | null;
448
448
  monthlyLimit: number | null;
@@ -464,8 +464,8 @@ export declare const companyPaymentAccountResponseSchema: z.ZodObject<{
464
464
  bankName: string;
465
465
  accountNumber: string;
466
466
  accountName: string;
467
- label: string;
468
467
  isActive: boolean;
468
+ label: string;
469
469
  providerAccountId: string | null;
470
470
  dailyLimit: number | null;
471
471
  monthlyLimit: number | null;
@@ -513,8 +513,8 @@ export declare const companyPaymentAccountResponseSchema: z.ZodObject<{
513
513
  bankName: string;
514
514
  accountNumber: string;
515
515
  accountName: string;
516
- label: string;
517
516
  isActive: boolean;
517
+ label: string;
518
518
  providerAccountId: string | null;
519
519
  dailyLimit: number | null;
520
520
  monthlyLimit: number | null;
@@ -548,8 +548,8 @@ export declare const companyPaymentAccountResponseSchema: z.ZodObject<{
548
548
  bankName: string;
549
549
  accountNumber: string;
550
550
  accountName: string;
551
- label: string;
552
551
  isActive: boolean;
552
+ label: string;
553
553
  providerAccountId: string | null;
554
554
  dailyLimit: number | null;
555
555
  monthlyLimit: number | null;
@@ -601,8 +601,8 @@ export declare const companyPaymentAccountListResponseSchema: z.ZodObject<{
601
601
  bankName: string;
602
602
  accountNumber: string;
603
603
  accountName: string;
604
- label: string;
605
604
  isActive: boolean;
605
+ label: string;
606
606
  providerAccountId: string | null;
607
607
  dailyLimit: number | null;
608
608
  monthlyLimit: number | null;
@@ -617,8 +617,8 @@ export declare const companyPaymentAccountListResponseSchema: z.ZodObject<{
617
617
  bankName: string;
618
618
  accountNumber: string;
619
619
  accountName: string;
620
- label: string;
621
620
  isActive: boolean;
621
+ label: string;
622
622
  providerAccountId: string | null;
623
623
  dailyLimit: number | null;
624
624
  monthlyLimit: number | null;
@@ -640,8 +640,8 @@ export declare const companyPaymentAccountListResponseSchema: z.ZodObject<{
640
640
  bankName: string;
641
641
  accountNumber: string;
642
642
  accountName: string;
643
- label: string;
644
643
  isActive: boolean;
644
+ label: string;
645
645
  providerAccountId: string | null;
646
646
  dailyLimit: number | null;
647
647
  monthlyLimit: number | null;
@@ -663,8 +663,8 @@ export declare const companyPaymentAccountListResponseSchema: z.ZodObject<{
663
663
  bankName: string;
664
664
  accountNumber: string;
665
665
  accountName: string;
666
- label: string;
667
666
  isActive: boolean;
667
+ label: string;
668
668
  providerAccountId: string | null;
669
669
  dailyLimit: number | null;
670
670
  monthlyLimit: number | null;
@@ -712,8 +712,8 @@ export declare const companyPaymentAccountListResponseSchema: z.ZodObject<{
712
712
  bankName: string;
713
713
  accountNumber: string;
714
714
  accountName: string;
715
- label: string;
716
715
  isActive: boolean;
716
+ label: string;
717
717
  providerAccountId: string | null;
718
718
  dailyLimit: number | null;
719
719
  monthlyLimit: number | null;
@@ -747,8 +747,8 @@ export declare const companyPaymentAccountListResponseSchema: z.ZodObject<{
747
747
  bankName: string;
748
748
  accountNumber: string;
749
749
  accountName: string;
750
- label: string;
751
750
  isActive: boolean;
751
+ label: string;
752
752
  providerAccountId: string | null;
753
753
  dailyLimit: number | null;
754
754
  monthlyLimit: number | null;
@@ -43,12 +43,14 @@ export declare const weatherForecastSchema: z.ZodObject<{
43
43
  rain?: number | undefined;
44
44
  }>;
45
45
  export declare const weatherAlertSchema: z.ZodObject<{
46
+ /** Stable id: weather_alert:{farmId}:{type}:{YYYY-MM-DD}[:disambiguator] */
46
47
  id: z.ZodString;
47
48
  type: z.ZodEnum<["drought", "heavy-rain", "frost", "optimal", "wind"]>;
48
49
  severity: z.ZodEnum<["high", "medium", "low"]>;
49
50
  message: z.ZodString;
50
51
  fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
52
  date: z.ZodString;
53
+ recommendation: z.ZodOptional<z.ZodString>;
52
54
  recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
55
  priority: z.ZodNumber;
54
56
  action: z.ZodString;
@@ -158,6 +160,7 @@ export declare const weatherAlertSchema: z.ZodObject<{
158
160
  riskLevel?: string | undefined;
159
161
  }[] | undefined;
160
162
  fieldId?: string | null | undefined;
163
+ recommendation?: string | undefined;
161
164
  }, {
162
165
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
163
166
  message: string;
@@ -187,6 +190,7 @@ export declare const weatherAlertSchema: z.ZodObject<{
187
190
  riskLevel?: string | undefined;
188
191
  }[] | undefined;
189
192
  fieldId?: string | null | undefined;
193
+ recommendation?: string | undefined;
190
194
  }>;
191
195
  export declare const weatherAttributesSchema: z.ZodObject<{
192
196
  farmId: z.ZodString;
@@ -229,12 +233,14 @@ export declare const weatherAttributesSchema: z.ZodObject<{
229
233
  rain?: number | undefined;
230
234
  }>, "many">;
231
235
  alerts: z.ZodOptional<z.ZodArray<z.ZodObject<{
236
+ /** Stable id: weather_alert:{farmId}:{type}:{YYYY-MM-DD}[:disambiguator] */
232
237
  id: z.ZodString;
233
238
  type: z.ZodEnum<["drought", "heavy-rain", "frost", "optimal", "wind"]>;
234
239
  severity: z.ZodEnum<["high", "medium", "low"]>;
235
240
  message: z.ZodString;
236
241
  fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
237
242
  date: z.ZodString;
243
+ recommendation: z.ZodOptional<z.ZodString>;
238
244
  recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
239
245
  priority: z.ZodNumber;
240
246
  action: z.ZodString;
@@ -344,6 +350,7 @@ export declare const weatherAttributesSchema: z.ZodObject<{
344
350
  riskLevel?: string | undefined;
345
351
  }[] | undefined;
346
352
  fieldId?: string | null | undefined;
353
+ recommendation?: string | undefined;
347
354
  }, {
348
355
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
349
356
  message: string;
@@ -373,6 +380,7 @@ export declare const weatherAttributesSchema: z.ZodObject<{
373
380
  riskLevel?: string | undefined;
374
381
  }[] | undefined;
375
382
  fieldId?: string | null | undefined;
383
+ recommendation?: string | undefined;
376
384
  }>, "many">>;
377
385
  }, "strip", z.ZodTypeAny, {
378
386
  farmId: string;
@@ -419,6 +427,7 @@ export declare const weatherAttributesSchema: z.ZodObject<{
419
427
  riskLevel?: string | undefined;
420
428
  }[] | undefined;
421
429
  fieldId?: string | null | undefined;
430
+ recommendation?: string | undefined;
422
431
  }[] | undefined;
423
432
  }, {
424
433
  farmId: string;
@@ -465,6 +474,7 @@ export declare const weatherAttributesSchema: z.ZodObject<{
465
474
  riskLevel?: string | undefined;
466
475
  }[] | undefined;
467
476
  fieldId?: string | null | undefined;
477
+ recommendation?: string | undefined;
468
478
  }[] | undefined;
469
479
  }>;
470
480
  export declare const plannerRiskLevelSchema: z.ZodEnum<["low", "medium", "high"]>;
@@ -1187,12 +1197,14 @@ export declare const weatherResourceSchema: z.ZodObject<{
1187
1197
  rain?: number | undefined;
1188
1198
  }>, "many">;
1189
1199
  alerts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1200
+ /** Stable id: weather_alert:{farmId}:{type}:{YYYY-MM-DD}[:disambiguator] */
1190
1201
  id: z.ZodString;
1191
1202
  type: z.ZodEnum<["drought", "heavy-rain", "frost", "optimal", "wind"]>;
1192
1203
  severity: z.ZodEnum<["high", "medium", "low"]>;
1193
1204
  message: z.ZodString;
1194
1205
  fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1195
1206
  date: z.ZodString;
1207
+ recommendation: z.ZodOptional<z.ZodString>;
1196
1208
  recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1197
1209
  priority: z.ZodNumber;
1198
1210
  action: z.ZodString;
@@ -1302,6 +1314,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
1302
1314
  riskLevel?: string | undefined;
1303
1315
  }[] | undefined;
1304
1316
  fieldId?: string | null | undefined;
1317
+ recommendation?: string | undefined;
1305
1318
  }, {
1306
1319
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
1307
1320
  message: string;
@@ -1331,6 +1344,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
1331
1344
  riskLevel?: string | undefined;
1332
1345
  }[] | undefined;
1333
1346
  fieldId?: string | null | undefined;
1347
+ recommendation?: string | undefined;
1334
1348
  }>, "many">>;
1335
1349
  }, "strip", z.ZodTypeAny, {
1336
1350
  farmId: string;
@@ -1377,6 +1391,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
1377
1391
  riskLevel?: string | undefined;
1378
1392
  }[] | undefined;
1379
1393
  fieldId?: string | null | undefined;
1394
+ recommendation?: string | undefined;
1380
1395
  }[] | undefined;
1381
1396
  }, {
1382
1397
  farmId: string;
@@ -1423,6 +1438,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
1423
1438
  riskLevel?: string | undefined;
1424
1439
  }[] | undefined;
1425
1440
  fieldId?: string | null | undefined;
1441
+ recommendation?: string | undefined;
1426
1442
  }[] | undefined;
1427
1443
  }>;
1428
1444
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1476,6 +1492,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
1476
1492
  riskLevel?: string | undefined;
1477
1493
  }[] | undefined;
1478
1494
  fieldId?: string | null | undefined;
1495
+ recommendation?: string | undefined;
1479
1496
  }[] | undefined;
1480
1497
  };
1481
1498
  relationships?: Record<string, unknown> | undefined;
@@ -1529,6 +1546,7 @@ export declare const weatherResourceSchema: z.ZodObject<{
1529
1546
  riskLevel?: string | undefined;
1530
1547
  }[] | undefined;
1531
1548
  fieldId?: string | null | undefined;
1549
+ recommendation?: string | undefined;
1532
1550
  }[] | undefined;
1533
1551
  };
1534
1552
  relationships?: Record<string, unknown> | undefined;
@@ -1580,12 +1598,14 @@ export declare const weatherResponseSchema: z.ZodObject<{
1580
1598
  rain?: number | undefined;
1581
1599
  }>, "many">;
1582
1600
  alerts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1601
+ /** Stable id: weather_alert:{farmId}:{type}:{YYYY-MM-DD}[:disambiguator] */
1583
1602
  id: z.ZodString;
1584
1603
  type: z.ZodEnum<["drought", "heavy-rain", "frost", "optimal", "wind"]>;
1585
1604
  severity: z.ZodEnum<["high", "medium", "low"]>;
1586
1605
  message: z.ZodString;
1587
1606
  fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1588
1607
  date: z.ZodString;
1608
+ recommendation: z.ZodOptional<z.ZodString>;
1589
1609
  recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1590
1610
  priority: z.ZodNumber;
1591
1611
  action: z.ZodString;
@@ -1695,6 +1715,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
1695
1715
  riskLevel?: string | undefined;
1696
1716
  }[] | undefined;
1697
1717
  fieldId?: string | null | undefined;
1718
+ recommendation?: string | undefined;
1698
1719
  }, {
1699
1720
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
1700
1721
  message: string;
@@ -1724,6 +1745,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
1724
1745
  riskLevel?: string | undefined;
1725
1746
  }[] | undefined;
1726
1747
  fieldId?: string | null | undefined;
1748
+ recommendation?: string | undefined;
1727
1749
  }>, "many">>;
1728
1750
  }, "strip", z.ZodTypeAny, {
1729
1751
  farmId: string;
@@ -1770,6 +1792,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
1770
1792
  riskLevel?: string | undefined;
1771
1793
  }[] | undefined;
1772
1794
  fieldId?: string | null | undefined;
1795
+ recommendation?: string | undefined;
1773
1796
  }[] | undefined;
1774
1797
  }, {
1775
1798
  farmId: string;
@@ -1816,6 +1839,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
1816
1839
  riskLevel?: string | undefined;
1817
1840
  }[] | undefined;
1818
1841
  fieldId?: string | null | undefined;
1842
+ recommendation?: string | undefined;
1819
1843
  }[] | undefined;
1820
1844
  }>;
1821
1845
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1869,6 +1893,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
1869
1893
  riskLevel?: string | undefined;
1870
1894
  }[] | undefined;
1871
1895
  fieldId?: string | null | undefined;
1896
+ recommendation?: string | undefined;
1872
1897
  }[] | undefined;
1873
1898
  };
1874
1899
  relationships?: Record<string, unknown> | undefined;
@@ -1922,6 +1947,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
1922
1947
  riskLevel?: string | undefined;
1923
1948
  }[] | undefined;
1924
1949
  fieldId?: string | null | undefined;
1950
+ recommendation?: string | undefined;
1925
1951
  }[] | undefined;
1926
1952
  };
1927
1953
  relationships?: Record<string, unknown> | undefined;
@@ -2001,6 +2027,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
2001
2027
  riskLevel?: string | undefined;
2002
2028
  }[] | undefined;
2003
2029
  fieldId?: string | null | undefined;
2030
+ recommendation?: string | undefined;
2004
2031
  }[] | undefined;
2005
2032
  };
2006
2033
  relationships?: Record<string, unknown> | undefined;
@@ -2066,6 +2093,7 @@ export declare const weatherResponseSchema: z.ZodObject<{
2066
2093
  riskLevel?: string | undefined;
2067
2094
  }[] | undefined;
2068
2095
  fieldId?: string | null | undefined;
2096
+ recommendation?: string | undefined;
2069
2097
  }[] | undefined;
2070
2098
  };
2071
2099
  relationships?: Record<string, unknown> | undefined;
@@ -1 +1 @@
1
- {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AG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,YAAY,GAAG,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;AACpE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -26,12 +26,14 @@ export const weatherForecastSchema = z.object({
26
26
  });
27
27
  // Weather alert
28
28
  export const weatherAlertSchema = z.object({
29
- id: z.string().uuid(),
29
+ /** Stable id: weather_alert:{farmId}:{type}:{YYYY-MM-DD}[:disambiguator] */
30
+ id: z.string().min(1),
30
31
  type: weatherAlertTypeSchema,
31
32
  severity: weatherAlertSeveritySchema,
32
33
  message: z.string(),
33
34
  fieldId: z.string().uuid().nullable().optional(), // Field-specific alerts
34
35
  date: z.string().datetime(),
36
+ recommendation: z.string().optional(),
35
37
  recommendations: z.array(recommendationSchema).optional(),
36
38
  });
37
39
  // Weather attributes schema (for JSON:API attributes object)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.11.11",
3
+ "version": "1.12.0",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",