@deepintel-ltd/farmpro-contracts 1.17.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/routes/accounting.routes.d.ts +13861 -0
- package/dist/routes/accounting.routes.d.ts.map +1 -0
- package/dist/routes/accounting.routes.js +448 -0
- package/dist/routes/commodity-deals.routes.d.ts +48 -48
- package/dist/routes/finance.routes.d.ts +235 -38
- package/dist/routes/finance.routes.d.ts.map +1 -1
- package/dist/routes/index.d.ts +3 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +2 -0
- package/dist/routes/live-monitor.routes.d.ts +4 -4
- package/dist/routes/monitoring-visualization.routes.d.ts +16 -10
- package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
- package/dist/routes/staff.routes.d.ts +36 -36
- package/dist/schemas/accounting.schemas.d.ts +6002 -0
- package/dist/schemas/accounting.schemas.d.ts.map +1 -0
- package/dist/schemas/accounting.schemas.js +341 -0
- package/dist/schemas/commodity-deals.schemas.d.ts +24 -24
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/finance.schemas.d.ts +304 -46
- package/dist/schemas/finance.schemas.d.ts.map +1 -1
- package/dist/schemas/finance.schemas.js +23 -9
- package/dist/schemas/live-monitor.schemas.d.ts +6 -6
- package/dist/schemas/locale.schemas.d.ts +3 -0
- package/dist/schemas/locale.schemas.d.ts.map +1 -1
- package/dist/schemas/locale.schemas.js +1 -0
- package/dist/schemas/monitoring-visualization.schemas.d.ts +43 -12
- package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
- package/dist/schemas/monitoring-visualization.schemas.js +5 -1
- package/dist/schemas/staff.schemas.d.ts +30 -30
- package/package.json +1 -1
|
@@ -23,9 +23,9 @@ export declare const staffMemberAttributesSchema: z.ZodObject<{
|
|
|
23
23
|
name: string;
|
|
24
24
|
currency: "NGN" | "USD";
|
|
25
25
|
notes: string | null;
|
|
26
|
+
isActive: boolean;
|
|
26
27
|
payType: "monthly" | "daily" | "piece";
|
|
27
28
|
defaultAmount: number | null;
|
|
28
|
-
isActive: boolean;
|
|
29
29
|
teamMemberId: string | null;
|
|
30
30
|
}, {
|
|
31
31
|
title: string | null;
|
|
@@ -34,9 +34,9 @@ export declare const staffMemberAttributesSchema: z.ZodObject<{
|
|
|
34
34
|
name: string;
|
|
35
35
|
currency: "NGN" | "USD";
|
|
36
36
|
notes: string | null;
|
|
37
|
+
isActive: boolean;
|
|
37
38
|
payType: "monthly" | "daily" | "piece";
|
|
38
39
|
defaultAmount: number | null;
|
|
39
|
-
isActive: boolean;
|
|
40
40
|
teamMemberId: string | null;
|
|
41
41
|
}>;
|
|
42
42
|
export declare const createStaffMemberAttributesSchema: z.ZodObject<{
|
|
@@ -51,8 +51,8 @@ export declare const createStaffMemberAttributesSchema: z.ZodObject<{
|
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
name: string;
|
|
53
53
|
currency: "NGN" | "USD";
|
|
54
|
-
payType: "monthly" | "daily" | "piece";
|
|
55
54
|
isActive: boolean;
|
|
55
|
+
payType: "monthly" | "daily" | "piece";
|
|
56
56
|
title?: string | undefined;
|
|
57
57
|
notes?: string | undefined;
|
|
58
58
|
defaultAmount?: number | undefined;
|
|
@@ -62,9 +62,9 @@ export declare const createStaffMemberAttributesSchema: z.ZodObject<{
|
|
|
62
62
|
title?: string | undefined;
|
|
63
63
|
currency?: "NGN" | "USD" | undefined;
|
|
64
64
|
notes?: string | undefined;
|
|
65
|
+
isActive?: boolean | undefined;
|
|
65
66
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
66
67
|
defaultAmount?: number | undefined;
|
|
67
|
-
isActive?: boolean | undefined;
|
|
68
68
|
teamMemberId?: string | undefined;
|
|
69
69
|
}>;
|
|
70
70
|
export declare const updateStaffMemberAttributesSchema: z.ZodObject<{
|
|
@@ -81,18 +81,18 @@ export declare const updateStaffMemberAttributesSchema: z.ZodObject<{
|
|
|
81
81
|
name?: string | undefined;
|
|
82
82
|
currency?: "NGN" | "USD" | undefined;
|
|
83
83
|
notes?: string | null | undefined;
|
|
84
|
+
isActive?: boolean | undefined;
|
|
84
85
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
85
86
|
defaultAmount?: number | null | undefined;
|
|
86
|
-
isActive?: boolean | undefined;
|
|
87
87
|
teamMemberId?: string | null | undefined;
|
|
88
88
|
}, {
|
|
89
89
|
title?: string | null | undefined;
|
|
90
90
|
name?: string | undefined;
|
|
91
91
|
currency?: "NGN" | "USD" | undefined;
|
|
92
92
|
notes?: string | null | undefined;
|
|
93
|
+
isActive?: boolean | undefined;
|
|
93
94
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
94
95
|
defaultAmount?: number | null | undefined;
|
|
95
|
-
isActive?: boolean | undefined;
|
|
96
96
|
teamMemberId?: string | null | undefined;
|
|
97
97
|
}>;
|
|
98
98
|
export declare const createStaffMemberSchema: z.ZodObject<{
|
|
@@ -109,8 +109,8 @@ export declare const createStaffMemberSchema: z.ZodObject<{
|
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
110
|
name: string;
|
|
111
111
|
currency: "NGN" | "USD";
|
|
112
|
-
payType: "monthly" | "daily" | "piece";
|
|
113
112
|
isActive: boolean;
|
|
113
|
+
payType: "monthly" | "daily" | "piece";
|
|
114
114
|
title?: string | undefined;
|
|
115
115
|
notes?: string | undefined;
|
|
116
116
|
defaultAmount?: number | undefined;
|
|
@@ -120,9 +120,9 @@ export declare const createStaffMemberSchema: z.ZodObject<{
|
|
|
120
120
|
title?: string | undefined;
|
|
121
121
|
currency?: "NGN" | "USD" | undefined;
|
|
122
122
|
notes?: string | undefined;
|
|
123
|
+
isActive?: boolean | undefined;
|
|
123
124
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
124
125
|
defaultAmount?: number | undefined;
|
|
125
|
-
isActive?: boolean | undefined;
|
|
126
126
|
teamMemberId?: string | undefined;
|
|
127
127
|
}>;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -130,8 +130,8 @@ export declare const createStaffMemberSchema: z.ZodObject<{
|
|
|
130
130
|
attributes: {
|
|
131
131
|
name: string;
|
|
132
132
|
currency: "NGN" | "USD";
|
|
133
|
-
payType: "monthly" | "daily" | "piece";
|
|
134
133
|
isActive: boolean;
|
|
134
|
+
payType: "monthly" | "daily" | "piece";
|
|
135
135
|
title?: string | undefined;
|
|
136
136
|
notes?: string | undefined;
|
|
137
137
|
defaultAmount?: number | undefined;
|
|
@@ -144,9 +144,9 @@ export declare const createStaffMemberSchema: z.ZodObject<{
|
|
|
144
144
|
title?: string | undefined;
|
|
145
145
|
currency?: "NGN" | "USD" | undefined;
|
|
146
146
|
notes?: string | undefined;
|
|
147
|
+
isActive?: boolean | undefined;
|
|
147
148
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
148
149
|
defaultAmount?: number | undefined;
|
|
149
|
-
isActive?: boolean | undefined;
|
|
150
150
|
teamMemberId?: string | undefined;
|
|
151
151
|
};
|
|
152
152
|
}>;
|
|
@@ -167,18 +167,18 @@ export declare const updateStaffMemberSchema: z.ZodObject<{
|
|
|
167
167
|
name?: string | undefined;
|
|
168
168
|
currency?: "NGN" | "USD" | undefined;
|
|
169
169
|
notes?: string | null | undefined;
|
|
170
|
+
isActive?: boolean | undefined;
|
|
170
171
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
171
172
|
defaultAmount?: number | null | undefined;
|
|
172
|
-
isActive?: boolean | undefined;
|
|
173
173
|
teamMemberId?: string | null | undefined;
|
|
174
174
|
}, {
|
|
175
175
|
title?: string | null | undefined;
|
|
176
176
|
name?: string | undefined;
|
|
177
177
|
currency?: "NGN" | "USD" | undefined;
|
|
178
178
|
notes?: string | null | undefined;
|
|
179
|
+
isActive?: boolean | undefined;
|
|
179
180
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
180
181
|
defaultAmount?: number | null | undefined;
|
|
181
|
-
isActive?: boolean | undefined;
|
|
182
182
|
teamMemberId?: string | null | undefined;
|
|
183
183
|
}>;
|
|
184
184
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -189,9 +189,9 @@ export declare const updateStaffMemberSchema: z.ZodObject<{
|
|
|
189
189
|
name?: string | undefined;
|
|
190
190
|
currency?: "NGN" | "USD" | undefined;
|
|
191
191
|
notes?: string | null | undefined;
|
|
192
|
+
isActive?: boolean | undefined;
|
|
192
193
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
193
194
|
defaultAmount?: number | null | undefined;
|
|
194
|
-
isActive?: boolean | undefined;
|
|
195
195
|
teamMemberId?: string | null | undefined;
|
|
196
196
|
};
|
|
197
197
|
}, {
|
|
@@ -202,9 +202,9 @@ export declare const updateStaffMemberSchema: z.ZodObject<{
|
|
|
202
202
|
name?: string | undefined;
|
|
203
203
|
currency?: "NGN" | "USD" | undefined;
|
|
204
204
|
notes?: string | null | undefined;
|
|
205
|
+
isActive?: boolean | undefined;
|
|
205
206
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
206
207
|
defaultAmount?: number | null | undefined;
|
|
207
|
-
isActive?: boolean | undefined;
|
|
208
208
|
teamMemberId?: string | null | undefined;
|
|
209
209
|
};
|
|
210
210
|
}>;
|
|
@@ -230,9 +230,9 @@ export declare const staffMemberResourceSchema: z.ZodObject<{
|
|
|
230
230
|
name: string;
|
|
231
231
|
currency: "NGN" | "USD";
|
|
232
232
|
notes: string | null;
|
|
233
|
+
isActive: boolean;
|
|
233
234
|
payType: "monthly" | "daily" | "piece";
|
|
234
235
|
defaultAmount: number | null;
|
|
235
|
-
isActive: boolean;
|
|
236
236
|
teamMemberId: string | null;
|
|
237
237
|
}, {
|
|
238
238
|
title: string | null;
|
|
@@ -241,9 +241,9 @@ export declare const staffMemberResourceSchema: z.ZodObject<{
|
|
|
241
241
|
name: string;
|
|
242
242
|
currency: "NGN" | "USD";
|
|
243
243
|
notes: string | null;
|
|
244
|
+
isActive: boolean;
|
|
244
245
|
payType: "monthly" | "daily" | "piece";
|
|
245
246
|
defaultAmount: number | null;
|
|
246
|
-
isActive: boolean;
|
|
247
247
|
teamMemberId: string | null;
|
|
248
248
|
}>;
|
|
249
249
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -259,9 +259,9 @@ export declare const staffMemberResourceSchema: z.ZodObject<{
|
|
|
259
259
|
name: string;
|
|
260
260
|
currency: "NGN" | "USD";
|
|
261
261
|
notes: string | null;
|
|
262
|
+
isActive: boolean;
|
|
262
263
|
payType: "monthly" | "daily" | "piece";
|
|
263
264
|
defaultAmount: number | null;
|
|
264
|
-
isActive: boolean;
|
|
265
265
|
teamMemberId: string | null;
|
|
266
266
|
};
|
|
267
267
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -277,9 +277,9 @@ export declare const staffMemberResourceSchema: z.ZodObject<{
|
|
|
277
277
|
name: string;
|
|
278
278
|
currency: "NGN" | "USD";
|
|
279
279
|
notes: string | null;
|
|
280
|
+
isActive: boolean;
|
|
280
281
|
payType: "monthly" | "daily" | "piece";
|
|
281
282
|
defaultAmount: number | null;
|
|
282
|
-
isActive: boolean;
|
|
283
283
|
teamMemberId: string | null;
|
|
284
284
|
};
|
|
285
285
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -309,9 +309,9 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
309
309
|
name: string;
|
|
310
310
|
currency: "NGN" | "USD";
|
|
311
311
|
notes: string | null;
|
|
312
|
+
isActive: boolean;
|
|
312
313
|
payType: "monthly" | "daily" | "piece";
|
|
313
314
|
defaultAmount: number | null;
|
|
314
|
-
isActive: boolean;
|
|
315
315
|
teamMemberId: string | null;
|
|
316
316
|
}, {
|
|
317
317
|
title: string | null;
|
|
@@ -320,9 +320,9 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
320
320
|
name: string;
|
|
321
321
|
currency: "NGN" | "USD";
|
|
322
322
|
notes: string | null;
|
|
323
|
+
isActive: boolean;
|
|
323
324
|
payType: "monthly" | "daily" | "piece";
|
|
324
325
|
defaultAmount: number | null;
|
|
325
|
-
isActive: boolean;
|
|
326
326
|
teamMemberId: string | null;
|
|
327
327
|
}>;
|
|
328
328
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -338,9 +338,9 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
338
338
|
name: string;
|
|
339
339
|
currency: "NGN" | "USD";
|
|
340
340
|
notes: string | null;
|
|
341
|
+
isActive: boolean;
|
|
341
342
|
payType: "monthly" | "daily" | "piece";
|
|
342
343
|
defaultAmount: number | null;
|
|
343
|
-
isActive: boolean;
|
|
344
344
|
teamMemberId: string | null;
|
|
345
345
|
};
|
|
346
346
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -356,9 +356,9 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
356
356
|
name: string;
|
|
357
357
|
currency: "NGN" | "USD";
|
|
358
358
|
notes: string | null;
|
|
359
|
+
isActive: boolean;
|
|
359
360
|
payType: "monthly" | "daily" | "piece";
|
|
360
361
|
defaultAmount: number | null;
|
|
361
|
-
isActive: boolean;
|
|
362
362
|
teamMemberId: string | null;
|
|
363
363
|
};
|
|
364
364
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -400,9 +400,9 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
400
400
|
name: string;
|
|
401
401
|
currency: "NGN" | "USD";
|
|
402
402
|
notes: string | null;
|
|
403
|
+
isActive: boolean;
|
|
403
404
|
payType: "monthly" | "daily" | "piece";
|
|
404
405
|
defaultAmount: number | null;
|
|
405
|
-
isActive: boolean;
|
|
406
406
|
teamMemberId: string | null;
|
|
407
407
|
};
|
|
408
408
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -430,9 +430,9 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
430
430
|
name: string;
|
|
431
431
|
currency: "NGN" | "USD";
|
|
432
432
|
notes: string | null;
|
|
433
|
+
isActive: boolean;
|
|
433
434
|
payType: "monthly" | "daily" | "piece";
|
|
434
435
|
defaultAmount: number | null;
|
|
435
|
-
isActive: boolean;
|
|
436
436
|
teamMemberId: string | null;
|
|
437
437
|
};
|
|
438
438
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -473,9 +473,9 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
473
473
|
name: string;
|
|
474
474
|
currency: "NGN" | "USD";
|
|
475
475
|
notes: string | null;
|
|
476
|
+
isActive: boolean;
|
|
476
477
|
payType: "monthly" | "daily" | "piece";
|
|
477
478
|
defaultAmount: number | null;
|
|
478
|
-
isActive: boolean;
|
|
479
479
|
teamMemberId: string | null;
|
|
480
480
|
}, {
|
|
481
481
|
title: string | null;
|
|
@@ -484,9 +484,9 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
484
484
|
name: string;
|
|
485
485
|
currency: "NGN" | "USD";
|
|
486
486
|
notes: string | null;
|
|
487
|
+
isActive: boolean;
|
|
487
488
|
payType: "monthly" | "daily" | "piece";
|
|
488
489
|
defaultAmount: number | null;
|
|
489
|
-
isActive: boolean;
|
|
490
490
|
teamMemberId: string | null;
|
|
491
491
|
}>;
|
|
492
492
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -502,9 +502,9 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
502
502
|
name: string;
|
|
503
503
|
currency: "NGN" | "USD";
|
|
504
504
|
notes: string | null;
|
|
505
|
+
isActive: boolean;
|
|
505
506
|
payType: "monthly" | "daily" | "piece";
|
|
506
507
|
defaultAmount: number | null;
|
|
507
|
-
isActive: boolean;
|
|
508
508
|
teamMemberId: string | null;
|
|
509
509
|
};
|
|
510
510
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -520,9 +520,9 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
520
520
|
name: string;
|
|
521
521
|
currency: "NGN" | "USD";
|
|
522
522
|
notes: string | null;
|
|
523
|
+
isActive: boolean;
|
|
523
524
|
payType: "monthly" | "daily" | "piece";
|
|
524
525
|
defaultAmount: number | null;
|
|
525
|
-
isActive: boolean;
|
|
526
526
|
teamMemberId: string | null;
|
|
527
527
|
};
|
|
528
528
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -564,9 +564,9 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
564
564
|
name: string;
|
|
565
565
|
currency: "NGN" | "USD";
|
|
566
566
|
notes: string | null;
|
|
567
|
+
isActive: boolean;
|
|
567
568
|
payType: "monthly" | "daily" | "piece";
|
|
568
569
|
defaultAmount: number | null;
|
|
569
|
-
isActive: boolean;
|
|
570
570
|
teamMemberId: string | null;
|
|
571
571
|
};
|
|
572
572
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -594,9 +594,9 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
594
594
|
name: string;
|
|
595
595
|
currency: "NGN" | "USD";
|
|
596
596
|
notes: string | null;
|
|
597
|
+
isActive: boolean;
|
|
597
598
|
payType: "monthly" | "daily" | "piece";
|
|
598
599
|
defaultAmount: number | null;
|
|
599
|
-
isActive: boolean;
|
|
600
600
|
teamMemberId: string | null;
|
|
601
601
|
};
|
|
602
602
|
relationships?: Record<string, unknown> | undefined;
|