@deepintel-ltd/farmpro-contracts 1.27.0 → 1.27.1
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/routes/agents.routes.d.ts +681 -12
- package/dist/routes/agents.routes.d.ts.map +1 -1
- package/dist/routes/agents.routes.js +21 -1
- package/dist/routes/commodity-deals.routes.d.ts +27 -27
- package/dist/routes/farms.routes.d.ts +46 -46
- package/dist/routes/field-observations.routes.d.ts +34 -34
- package/dist/routes/invoices.routes.d.ts +39 -39
- package/dist/routes/livestock-groups.routes.d.ts +27 -27
- package/dist/routes/livestock.routes.d.ts +21 -21
- package/dist/routes/market-intelligence.routes.d.ts +8 -8
- package/dist/routes/organizations.routes.d.ts +49 -0
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/poultry.routes.d.ts +22 -22
- package/dist/routes/purchase-orders.routes.d.ts +9 -9
- package/dist/routes/subscriptions.routes.d.ts +8 -8
- package/dist/routes/team-payments.routes.d.ts +36 -36
- package/dist/routes/trade-cash-events.routes.d.ts +39 -39
- package/dist/routes/waybills.routes.d.ts +39 -39
- package/dist/schemas/agents.schemas.d.ts +718 -12
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.js +41 -0
- package/dist/schemas/commodity-deals.schemas.d.ts +18 -18
- package/dist/schemas/farms.schemas.d.ts +51 -51
- package/dist/schemas/field-observations.schemas.d.ts +24 -24
- package/dist/schemas/invoices.schemas.d.ts +27 -27
- package/dist/schemas/livestock-groups.schemas.d.ts +20 -20
- package/dist/schemas/livestock.schemas.d.ts +18 -18
- package/dist/schemas/organizations.schemas.d.ts +42 -0
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +3 -0
- package/dist/schemas/purchase-orders.schemas.d.ts +9 -9
- package/dist/schemas/subscriptions.schemas.d.ts +6 -6
- package/dist/schemas/team-payments.schemas.d.ts +24 -24
- package/dist/schemas/trade-cash-events.schemas.d.ts +27 -27
- package/dist/schemas/waybills.schemas.d.ts +27 -27
- package/package.json +1 -1
|
@@ -359,7 +359,7 @@ export declare const observationAttributesSchema: z.ZodObject<{
|
|
|
359
359
|
} | null;
|
|
360
360
|
urgencyScore: number | null;
|
|
361
361
|
similarCasesCount: number | null;
|
|
362
|
-
actionStatus: "pending" | "completed" | "
|
|
362
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
363
363
|
actionTakenAt: Date | null;
|
|
364
364
|
actionNotes: string | null;
|
|
365
365
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -455,7 +455,7 @@ export declare const observationAttributesSchema: z.ZodObject<{
|
|
|
455
455
|
} | null;
|
|
456
456
|
urgencyScore: number | null;
|
|
457
457
|
similarCasesCount: number | null;
|
|
458
|
-
actionStatus: "pending" | "completed" | "
|
|
458
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
459
459
|
actionTakenAt: Date | null;
|
|
460
460
|
actionNotes: string | null;
|
|
461
461
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -528,11 +528,11 @@ export declare const updateObservationActionAttributesSchema: z.ZodObject<{
|
|
|
528
528
|
actionNotes: z.ZodOptional<z.ZodString>;
|
|
529
529
|
relatedTaskId: z.ZodOptional<z.ZodString>;
|
|
530
530
|
}, "strip", z.ZodTypeAny, {
|
|
531
|
-
actionStatus: "completed" | "
|
|
531
|
+
actionStatus: "completed" | "dismissed" | "in_progress";
|
|
532
532
|
actionNotes?: string | undefined;
|
|
533
533
|
relatedTaskId?: string | undefined;
|
|
534
534
|
}, {
|
|
535
|
-
actionStatus: "completed" | "
|
|
535
|
+
actionStatus: "completed" | "dismissed" | "in_progress";
|
|
536
536
|
actionNotes?: string | undefined;
|
|
537
537
|
relatedTaskId?: string | undefined;
|
|
538
538
|
}>;
|
|
@@ -912,7 +912,7 @@ export declare const observationResourceSchema: z.ZodObject<{
|
|
|
912
912
|
} | null;
|
|
913
913
|
urgencyScore: number | null;
|
|
914
914
|
similarCasesCount: number | null;
|
|
915
|
-
actionStatus: "pending" | "completed" | "
|
|
915
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
916
916
|
actionTakenAt: Date | null;
|
|
917
917
|
actionNotes: string | null;
|
|
918
918
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -1008,7 +1008,7 @@ export declare const observationResourceSchema: z.ZodObject<{
|
|
|
1008
1008
|
} | null;
|
|
1009
1009
|
urgencyScore: number | null;
|
|
1010
1010
|
similarCasesCount: number | null;
|
|
1011
|
-
actionStatus: "pending" | "completed" | "
|
|
1011
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
1012
1012
|
actionTakenAt: Date | null;
|
|
1013
1013
|
actionNotes: string | null;
|
|
1014
1014
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -1111,7 +1111,7 @@ export declare const observationResourceSchema: z.ZodObject<{
|
|
|
1111
1111
|
} | null;
|
|
1112
1112
|
urgencyScore: number | null;
|
|
1113
1113
|
similarCasesCount: number | null;
|
|
1114
|
-
actionStatus: "pending" | "completed" | "
|
|
1114
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
1115
1115
|
actionTakenAt: Date | null;
|
|
1116
1116
|
actionNotes: string | null;
|
|
1117
1117
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -1214,7 +1214,7 @@ export declare const observationResourceSchema: z.ZodObject<{
|
|
|
1214
1214
|
} | null;
|
|
1215
1215
|
urgencyScore: number | null;
|
|
1216
1216
|
similarCasesCount: number | null;
|
|
1217
|
-
actionStatus: "pending" | "completed" | "
|
|
1217
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
1218
1218
|
actionTakenAt: Date | null;
|
|
1219
1219
|
actionNotes: string | null;
|
|
1220
1220
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -1383,11 +1383,11 @@ export declare const updateObservationActionInputSchema: z.ZodObject<{
|
|
|
1383
1383
|
actionNotes: z.ZodOptional<z.ZodString>;
|
|
1384
1384
|
relatedTaskId: z.ZodOptional<z.ZodString>;
|
|
1385
1385
|
}, "strip", z.ZodTypeAny, {
|
|
1386
|
-
actionStatus: "completed" | "
|
|
1386
|
+
actionStatus: "completed" | "dismissed" | "in_progress";
|
|
1387
1387
|
actionNotes?: string | undefined;
|
|
1388
1388
|
relatedTaskId?: string | undefined;
|
|
1389
1389
|
}, {
|
|
1390
|
-
actionStatus: "completed" | "
|
|
1390
|
+
actionStatus: "completed" | "dismissed" | "in_progress";
|
|
1391
1391
|
actionNotes?: string | undefined;
|
|
1392
1392
|
relatedTaskId?: string | undefined;
|
|
1393
1393
|
}>;
|
|
@@ -1398,7 +1398,7 @@ export declare const updateObservationActionInputSchema: z.ZodObject<{
|
|
|
1398
1398
|
type: string;
|
|
1399
1399
|
id: string;
|
|
1400
1400
|
attributes: {
|
|
1401
|
-
actionStatus: "completed" | "
|
|
1401
|
+
actionStatus: "completed" | "dismissed" | "in_progress";
|
|
1402
1402
|
actionNotes?: string | undefined;
|
|
1403
1403
|
relatedTaskId?: string | undefined;
|
|
1404
1404
|
};
|
|
@@ -1409,7 +1409,7 @@ export declare const updateObservationActionInputSchema: z.ZodObject<{
|
|
|
1409
1409
|
type: string;
|
|
1410
1410
|
id: string;
|
|
1411
1411
|
attributes: {
|
|
1412
|
-
actionStatus: "completed" | "
|
|
1412
|
+
actionStatus: "completed" | "dismissed" | "in_progress";
|
|
1413
1413
|
actionNotes?: string | undefined;
|
|
1414
1414
|
relatedTaskId?: string | undefined;
|
|
1415
1415
|
};
|
|
@@ -1821,7 +1821,7 @@ export declare const observationResponseSchema: z.ZodObject<{
|
|
|
1821
1821
|
} | null;
|
|
1822
1822
|
urgencyScore: number | null;
|
|
1823
1823
|
similarCasesCount: number | null;
|
|
1824
|
-
actionStatus: "pending" | "completed" | "
|
|
1824
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
1825
1825
|
actionTakenAt: Date | null;
|
|
1826
1826
|
actionNotes: string | null;
|
|
1827
1827
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -1917,7 +1917,7 @@ export declare const observationResponseSchema: z.ZodObject<{
|
|
|
1917
1917
|
} | null;
|
|
1918
1918
|
urgencyScore: number | null;
|
|
1919
1919
|
similarCasesCount: number | null;
|
|
1920
|
-
actionStatus: "pending" | "completed" | "
|
|
1920
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
1921
1921
|
actionTakenAt: Date | null;
|
|
1922
1922
|
actionNotes: string | null;
|
|
1923
1923
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -2020,7 +2020,7 @@ export declare const observationResponseSchema: z.ZodObject<{
|
|
|
2020
2020
|
} | null;
|
|
2021
2021
|
urgencyScore: number | null;
|
|
2022
2022
|
similarCasesCount: number | null;
|
|
2023
|
-
actionStatus: "pending" | "completed" | "
|
|
2023
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
2024
2024
|
actionTakenAt: Date | null;
|
|
2025
2025
|
actionNotes: string | null;
|
|
2026
2026
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -2123,7 +2123,7 @@ export declare const observationResponseSchema: z.ZodObject<{
|
|
|
2123
2123
|
} | null;
|
|
2124
2124
|
urgencyScore: number | null;
|
|
2125
2125
|
similarCasesCount: number | null;
|
|
2126
|
-
actionStatus: "pending" | "completed" | "
|
|
2126
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
2127
2127
|
actionTakenAt: Date | null;
|
|
2128
2128
|
actionNotes: string | null;
|
|
2129
2129
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -2252,7 +2252,7 @@ export declare const observationResponseSchema: z.ZodObject<{
|
|
|
2252
2252
|
} | null;
|
|
2253
2253
|
urgencyScore: number | null;
|
|
2254
2254
|
similarCasesCount: number | null;
|
|
2255
|
-
actionStatus: "pending" | "completed" | "
|
|
2255
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
2256
2256
|
actionTakenAt: Date | null;
|
|
2257
2257
|
actionNotes: string | null;
|
|
2258
2258
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -2367,7 +2367,7 @@ export declare const observationResponseSchema: z.ZodObject<{
|
|
|
2367
2367
|
} | null;
|
|
2368
2368
|
urgencyScore: number | null;
|
|
2369
2369
|
similarCasesCount: number | null;
|
|
2370
|
-
actionStatus: "pending" | "completed" | "
|
|
2370
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
2371
2371
|
actionTakenAt: Date | null;
|
|
2372
2372
|
actionNotes: string | null;
|
|
2373
2373
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -2756,7 +2756,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
|
|
|
2756
2756
|
} | null;
|
|
2757
2757
|
urgencyScore: number | null;
|
|
2758
2758
|
similarCasesCount: number | null;
|
|
2759
|
-
actionStatus: "pending" | "completed" | "
|
|
2759
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
2760
2760
|
actionTakenAt: Date | null;
|
|
2761
2761
|
actionNotes: string | null;
|
|
2762
2762
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -2852,7 +2852,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
|
|
|
2852
2852
|
} | null;
|
|
2853
2853
|
urgencyScore: number | null;
|
|
2854
2854
|
similarCasesCount: number | null;
|
|
2855
|
-
actionStatus: "pending" | "completed" | "
|
|
2855
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
2856
2856
|
actionTakenAt: Date | null;
|
|
2857
2857
|
actionNotes: string | null;
|
|
2858
2858
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -2955,7 +2955,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
|
|
|
2955
2955
|
} | null;
|
|
2956
2956
|
urgencyScore: number | null;
|
|
2957
2957
|
similarCasesCount: number | null;
|
|
2958
|
-
actionStatus: "pending" | "completed" | "
|
|
2958
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
2959
2959
|
actionTakenAt: Date | null;
|
|
2960
2960
|
actionNotes: string | null;
|
|
2961
2961
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -3058,7 +3058,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
|
|
|
3058
3058
|
} | null;
|
|
3059
3059
|
urgencyScore: number | null;
|
|
3060
3060
|
similarCasesCount: number | null;
|
|
3061
|
-
actionStatus: "pending" | "completed" | "
|
|
3061
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
3062
3062
|
actionTakenAt: Date | null;
|
|
3063
3063
|
actionNotes: string | null;
|
|
3064
3064
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -3187,7 +3187,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
|
|
|
3187
3187
|
} | null;
|
|
3188
3188
|
urgencyScore: number | null;
|
|
3189
3189
|
similarCasesCount: number | null;
|
|
3190
|
-
actionStatus: "pending" | "completed" | "
|
|
3190
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
3191
3191
|
actionTakenAt: Date | null;
|
|
3192
3192
|
actionNotes: string | null;
|
|
3193
3193
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -3302,7 +3302,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
|
|
|
3302
3302
|
} | null;
|
|
3303
3303
|
urgencyScore: number | null;
|
|
3304
3304
|
similarCasesCount: number | null;
|
|
3305
|
-
actionStatus: "pending" | "completed" | "
|
|
3305
|
+
actionStatus: "pending" | "completed" | "dismissed" | "in_progress";
|
|
3306
3306
|
actionTakenAt: Date | null;
|
|
3307
3307
|
actionNotes: string | null;
|
|
3308
3308
|
diagnosisFeedback: "confirmed" | "incorrect" | null;
|
|
@@ -97,8 +97,8 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
|
|
|
97
97
|
}, "strip", z.ZodTypeAny, {
|
|
98
98
|
createdAt: string;
|
|
99
99
|
updatedAt: string;
|
|
100
|
-
organizationId: string;
|
|
101
100
|
currency: string;
|
|
101
|
+
organizationId: string;
|
|
102
102
|
total: number;
|
|
103
103
|
items: {
|
|
104
104
|
description: string;
|
|
@@ -159,8 +159,8 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
|
|
|
159
159
|
billFromName: string;
|
|
160
160
|
billToName: string;
|
|
161
161
|
subtotal: number;
|
|
162
|
-
farmId?: string | null | undefined;
|
|
163
162
|
currency?: string | undefined;
|
|
163
|
+
farmId?: string | null | undefined;
|
|
164
164
|
notes?: string | null | undefined;
|
|
165
165
|
paidAt?: string | null | undefined;
|
|
166
166
|
waybillNumber?: string | null | undefined;
|
|
@@ -278,8 +278,8 @@ export declare const createInvoiceAttributesSchema: z.ZodObject<{
|
|
|
278
278
|
}[];
|
|
279
279
|
buyerId: string;
|
|
280
280
|
billFromName: string;
|
|
281
|
-
farmId?: string | undefined;
|
|
282
281
|
currency?: string | undefined;
|
|
282
|
+
farmId?: string | undefined;
|
|
283
283
|
notes?: string | undefined;
|
|
284
284
|
waybillNumber?: string | undefined;
|
|
285
285
|
issueDate?: string | undefined;
|
|
@@ -349,8 +349,8 @@ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
|
|
|
349
349
|
} & {
|
|
350
350
|
paymentStatus: z.ZodOptional<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
|
|
351
351
|
}, "strip", z.ZodTypeAny, {
|
|
352
|
-
farmId?: string | undefined;
|
|
353
352
|
currency?: string | undefined;
|
|
353
|
+
farmId?: string | undefined;
|
|
354
354
|
notes?: string | undefined;
|
|
355
355
|
items?: {
|
|
356
356
|
description: string;
|
|
@@ -381,8 +381,8 @@ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
|
|
|
381
381
|
totalInWords?: string | undefined;
|
|
382
382
|
invoiceKind?: "provisional" | "final" | undefined;
|
|
383
383
|
}, {
|
|
384
|
-
farmId?: string | undefined;
|
|
385
384
|
currency?: string | undefined;
|
|
385
|
+
farmId?: string | undefined;
|
|
386
386
|
notes?: string | undefined;
|
|
387
387
|
items?: {
|
|
388
388
|
description: string;
|
|
@@ -508,8 +508,8 @@ export declare const createInvoiceSchema: z.ZodObject<{
|
|
|
508
508
|
}[];
|
|
509
509
|
buyerId: string;
|
|
510
510
|
billFromName: string;
|
|
511
|
-
farmId?: string | undefined;
|
|
512
511
|
currency?: string | undefined;
|
|
512
|
+
farmId?: string | undefined;
|
|
513
513
|
notes?: string | undefined;
|
|
514
514
|
waybillNumber?: string | undefined;
|
|
515
515
|
issueDate?: string | undefined;
|
|
@@ -576,8 +576,8 @@ export declare const createInvoiceSchema: z.ZodObject<{
|
|
|
576
576
|
}[];
|
|
577
577
|
buyerId: string;
|
|
578
578
|
billFromName: string;
|
|
579
|
-
farmId?: string | undefined;
|
|
580
579
|
currency?: string | undefined;
|
|
580
|
+
farmId?: string | undefined;
|
|
581
581
|
notes?: string | undefined;
|
|
582
582
|
waybillNumber?: string | undefined;
|
|
583
583
|
issueDate?: string | undefined;
|
|
@@ -651,8 +651,8 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
651
651
|
} & {
|
|
652
652
|
paymentStatus: z.ZodOptional<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
|
|
653
653
|
}, "strip", z.ZodTypeAny, {
|
|
654
|
-
farmId?: string | undefined;
|
|
655
654
|
currency?: string | undefined;
|
|
655
|
+
farmId?: string | undefined;
|
|
656
656
|
notes?: string | undefined;
|
|
657
657
|
items?: {
|
|
658
658
|
description: string;
|
|
@@ -683,8 +683,8 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
683
683
|
totalInWords?: string | undefined;
|
|
684
684
|
invoiceKind?: "provisional" | "final" | undefined;
|
|
685
685
|
}, {
|
|
686
|
-
farmId?: string | undefined;
|
|
687
686
|
currency?: string | undefined;
|
|
687
|
+
farmId?: string | undefined;
|
|
688
688
|
notes?: string | undefined;
|
|
689
689
|
items?: {
|
|
690
690
|
description: string;
|
|
@@ -719,8 +719,8 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
719
719
|
type: "invoices";
|
|
720
720
|
id: string;
|
|
721
721
|
attributes: {
|
|
722
|
-
farmId?: string | undefined;
|
|
723
722
|
currency?: string | undefined;
|
|
723
|
+
farmId?: string | undefined;
|
|
724
724
|
notes?: string | undefined;
|
|
725
725
|
items?: {
|
|
726
726
|
description: string;
|
|
@@ -755,8 +755,8 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
755
755
|
type: "invoices";
|
|
756
756
|
id: string;
|
|
757
757
|
attributes: {
|
|
758
|
-
farmId?: string | undefined;
|
|
759
758
|
currency?: string | undefined;
|
|
759
|
+
farmId?: string | undefined;
|
|
760
760
|
notes?: string | undefined;
|
|
761
761
|
items?: {
|
|
762
762
|
description: string;
|
|
@@ -858,8 +858,8 @@ export declare const invoiceResourceSchema: z.ZodObject<{
|
|
|
858
858
|
}, "strip", z.ZodTypeAny, {
|
|
859
859
|
createdAt: string;
|
|
860
860
|
updatedAt: string;
|
|
861
|
-
organizationId: string;
|
|
862
861
|
currency: string;
|
|
862
|
+
organizationId: string;
|
|
863
863
|
total: number;
|
|
864
864
|
items: {
|
|
865
865
|
description: string;
|
|
@@ -920,8 +920,8 @@ export declare const invoiceResourceSchema: z.ZodObject<{
|
|
|
920
920
|
billFromName: string;
|
|
921
921
|
billToName: string;
|
|
922
922
|
subtotal: number;
|
|
923
|
-
farmId?: string | null | undefined;
|
|
924
923
|
currency?: string | undefined;
|
|
924
|
+
farmId?: string | null | undefined;
|
|
925
925
|
notes?: string | null | undefined;
|
|
926
926
|
paidAt?: string | null | undefined;
|
|
927
927
|
waybillNumber?: string | null | undefined;
|
|
@@ -955,8 +955,8 @@ export declare const invoiceResourceSchema: z.ZodObject<{
|
|
|
955
955
|
attributes: {
|
|
956
956
|
createdAt: string;
|
|
957
957
|
updatedAt: string;
|
|
958
|
-
organizationId: string;
|
|
959
958
|
currency: string;
|
|
959
|
+
organizationId: string;
|
|
960
960
|
total: number;
|
|
961
961
|
items: {
|
|
962
962
|
description: string;
|
|
@@ -1024,8 +1024,8 @@ export declare const invoiceResourceSchema: z.ZodObject<{
|
|
|
1024
1024
|
billFromName: string;
|
|
1025
1025
|
billToName: string;
|
|
1026
1026
|
subtotal: number;
|
|
1027
|
-
farmId?: string | null | undefined;
|
|
1028
1027
|
currency?: string | undefined;
|
|
1028
|
+
farmId?: string | null | undefined;
|
|
1029
1029
|
notes?: string | null | undefined;
|
|
1030
1030
|
paidAt?: string | null | undefined;
|
|
1031
1031
|
waybillNumber?: string | null | undefined;
|
|
@@ -1125,8 +1125,8 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1125
1125
|
}, "strip", z.ZodTypeAny, {
|
|
1126
1126
|
createdAt: string;
|
|
1127
1127
|
updatedAt: string;
|
|
1128
|
-
organizationId: string;
|
|
1129
1128
|
currency: string;
|
|
1129
|
+
organizationId: string;
|
|
1130
1130
|
total: number;
|
|
1131
1131
|
items: {
|
|
1132
1132
|
description: string;
|
|
@@ -1187,8 +1187,8 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1187
1187
|
billFromName: string;
|
|
1188
1188
|
billToName: string;
|
|
1189
1189
|
subtotal: number;
|
|
1190
|
-
farmId?: string | null | undefined;
|
|
1191
1190
|
currency?: string | undefined;
|
|
1191
|
+
farmId?: string | null | undefined;
|
|
1192
1192
|
notes?: string | null | undefined;
|
|
1193
1193
|
paidAt?: string | null | undefined;
|
|
1194
1194
|
waybillNumber?: string | null | undefined;
|
|
@@ -1222,8 +1222,8 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1222
1222
|
attributes: {
|
|
1223
1223
|
createdAt: string;
|
|
1224
1224
|
updatedAt: string;
|
|
1225
|
-
organizationId: string;
|
|
1226
1225
|
currency: string;
|
|
1226
|
+
organizationId: string;
|
|
1227
1227
|
total: number;
|
|
1228
1228
|
items: {
|
|
1229
1229
|
description: string;
|
|
@@ -1291,8 +1291,8 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1291
1291
|
billFromName: string;
|
|
1292
1292
|
billToName: string;
|
|
1293
1293
|
subtotal: number;
|
|
1294
|
-
farmId?: string | null | undefined;
|
|
1295
1294
|
currency?: string | undefined;
|
|
1295
|
+
farmId?: string | null | undefined;
|
|
1296
1296
|
notes?: string | null | undefined;
|
|
1297
1297
|
paidAt?: string | null | undefined;
|
|
1298
1298
|
waybillNumber?: string | null | undefined;
|
|
@@ -1352,8 +1352,8 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1352
1352
|
attributes: {
|
|
1353
1353
|
createdAt: string;
|
|
1354
1354
|
updatedAt: string;
|
|
1355
|
-
organizationId: string;
|
|
1356
1355
|
currency: string;
|
|
1356
|
+
organizationId: string;
|
|
1357
1357
|
total: number;
|
|
1358
1358
|
items: {
|
|
1359
1359
|
description: string;
|
|
@@ -1433,8 +1433,8 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1433
1433
|
billFromName: string;
|
|
1434
1434
|
billToName: string;
|
|
1435
1435
|
subtotal: number;
|
|
1436
|
-
farmId?: string | null | undefined;
|
|
1437
1436
|
currency?: string | undefined;
|
|
1437
|
+
farmId?: string | null | undefined;
|
|
1438
1438
|
notes?: string | null | undefined;
|
|
1439
1439
|
paidAt?: string | null | undefined;
|
|
1440
1440
|
waybillNumber?: string | null | undefined;
|
|
@@ -1545,8 +1545,8 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1545
1545
|
}, "strip", z.ZodTypeAny, {
|
|
1546
1546
|
createdAt: string;
|
|
1547
1547
|
updatedAt: string;
|
|
1548
|
-
organizationId: string;
|
|
1549
1548
|
currency: string;
|
|
1549
|
+
organizationId: string;
|
|
1550
1550
|
total: number;
|
|
1551
1551
|
items: {
|
|
1552
1552
|
description: string;
|
|
@@ -1607,8 +1607,8 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1607
1607
|
billFromName: string;
|
|
1608
1608
|
billToName: string;
|
|
1609
1609
|
subtotal: number;
|
|
1610
|
-
farmId?: string | null | undefined;
|
|
1611
1610
|
currency?: string | undefined;
|
|
1611
|
+
farmId?: string | null | undefined;
|
|
1612
1612
|
notes?: string | null | undefined;
|
|
1613
1613
|
paidAt?: string | null | undefined;
|
|
1614
1614
|
waybillNumber?: string | null | undefined;
|
|
@@ -1642,8 +1642,8 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1642
1642
|
attributes: {
|
|
1643
1643
|
createdAt: string;
|
|
1644
1644
|
updatedAt: string;
|
|
1645
|
-
organizationId: string;
|
|
1646
1645
|
currency: string;
|
|
1646
|
+
organizationId: string;
|
|
1647
1647
|
total: number;
|
|
1648
1648
|
items: {
|
|
1649
1649
|
description: string;
|
|
@@ -1711,8 +1711,8 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1711
1711
|
billFromName: string;
|
|
1712
1712
|
billToName: string;
|
|
1713
1713
|
subtotal: number;
|
|
1714
|
-
farmId?: string | null | undefined;
|
|
1715
1714
|
currency?: string | undefined;
|
|
1715
|
+
farmId?: string | null | undefined;
|
|
1716
1716
|
notes?: string | null | undefined;
|
|
1717
1717
|
paidAt?: string | null | undefined;
|
|
1718
1718
|
waybillNumber?: string | null | undefined;
|
|
@@ -1772,8 +1772,8 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1772
1772
|
attributes: {
|
|
1773
1773
|
createdAt: string;
|
|
1774
1774
|
updatedAt: string;
|
|
1775
|
-
organizationId: string;
|
|
1776
1775
|
currency: string;
|
|
1776
|
+
organizationId: string;
|
|
1777
1777
|
total: number;
|
|
1778
1778
|
items: {
|
|
1779
1779
|
description: string;
|
|
@@ -1853,8 +1853,8 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1853
1853
|
billFromName: string;
|
|
1854
1854
|
billToName: string;
|
|
1855
1855
|
subtotal: number;
|
|
1856
|
-
farmId?: string | null | undefined;
|
|
1857
1856
|
currency?: string | undefined;
|
|
1857
|
+
farmId?: string | null | undefined;
|
|
1858
1858
|
notes?: string | null | undefined;
|
|
1859
1859
|
paidAt?: string | null | undefined;
|
|
1860
1860
|
waybillNumber?: string | null | undefined;
|
|
@@ -53,9 +53,9 @@ export declare const livestockGroupAttributesSchema: z.ZodObject<{
|
|
|
53
53
|
updatedAt: string;
|
|
54
54
|
name: string;
|
|
55
55
|
description: string | null;
|
|
56
|
+
currency: string;
|
|
56
57
|
farmId: string;
|
|
57
58
|
location: string | null;
|
|
58
|
-
currency: string;
|
|
59
59
|
notes: string | null;
|
|
60
60
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
61
61
|
purchasePrice: number | null;
|
|
@@ -184,8 +184,8 @@ export declare const createLivestockGroupAttributesSchema: z.ZodObject<{
|
|
|
184
184
|
groupType: "BREEDING_HERD" | "FINISHING_HERD" | "LAYER_FLOCK" | "BROILER_BATCH" | "POND" | "CAGE" | "PEN" | "PASTURE" | "CUSTOM";
|
|
185
185
|
status?: "ACTIVE" | "SOLD" | "TRANSFERRED" | "DEPLETED" | "ARCHIVED" | undefined;
|
|
186
186
|
description?: string | undefined;
|
|
187
|
-
location?: string | undefined;
|
|
188
187
|
currency?: string | undefined;
|
|
188
|
+
location?: string | undefined;
|
|
189
189
|
notes?: string | undefined;
|
|
190
190
|
purchasePrice?: number | undefined;
|
|
191
191
|
currentValue?: number | undefined;
|
|
@@ -243,8 +243,8 @@ export declare const updateLivestockGroupAttributesSchema: z.ZodObject<{
|
|
|
243
243
|
status?: "ACTIVE" | "SOLD" | "TRANSFERRED" | "DEPLETED" | "ARCHIVED" | undefined;
|
|
244
244
|
name?: string | undefined;
|
|
245
245
|
description?: string | null | undefined;
|
|
246
|
-
location?: string | null | undefined;
|
|
247
246
|
currency?: string | undefined;
|
|
247
|
+
location?: string | null | undefined;
|
|
248
248
|
notes?: string | null | undefined;
|
|
249
249
|
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
250
250
|
purchasePrice?: number | null | undefined;
|
|
@@ -273,8 +273,8 @@ export declare const updateLivestockGroupAttributesSchema: z.ZodObject<{
|
|
|
273
273
|
status?: "ACTIVE" | "SOLD" | "TRANSFERRED" | "DEPLETED" | "ARCHIVED" | undefined;
|
|
274
274
|
name?: string | undefined;
|
|
275
275
|
description?: string | null | undefined;
|
|
276
|
-
location?: string | null | undefined;
|
|
277
276
|
currency?: string | undefined;
|
|
277
|
+
location?: string | null | undefined;
|
|
278
278
|
notes?: string | null | undefined;
|
|
279
279
|
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
280
280
|
purchasePrice?: number | null | undefined;
|
|
@@ -539,8 +539,8 @@ export declare const createLivestockGroupSchema: z.ZodObject<{
|
|
|
539
539
|
groupType: "BREEDING_HERD" | "FINISHING_HERD" | "LAYER_FLOCK" | "BROILER_BATCH" | "POND" | "CAGE" | "PEN" | "PASTURE" | "CUSTOM";
|
|
540
540
|
status?: "ACTIVE" | "SOLD" | "TRANSFERRED" | "DEPLETED" | "ARCHIVED" | undefined;
|
|
541
541
|
description?: string | undefined;
|
|
542
|
-
location?: string | undefined;
|
|
543
542
|
currency?: string | undefined;
|
|
543
|
+
location?: string | undefined;
|
|
544
544
|
notes?: string | undefined;
|
|
545
545
|
purchasePrice?: number | undefined;
|
|
546
546
|
currentValue?: number | undefined;
|
|
@@ -605,8 +605,8 @@ export declare const createLivestockGroupSchema: z.ZodObject<{
|
|
|
605
605
|
groupType: "BREEDING_HERD" | "FINISHING_HERD" | "LAYER_FLOCK" | "BROILER_BATCH" | "POND" | "CAGE" | "PEN" | "PASTURE" | "CUSTOM";
|
|
606
606
|
status?: "ACTIVE" | "SOLD" | "TRANSFERRED" | "DEPLETED" | "ARCHIVED" | undefined;
|
|
607
607
|
description?: string | undefined;
|
|
608
|
-
location?: string | undefined;
|
|
609
608
|
currency?: string | undefined;
|
|
609
|
+
location?: string | undefined;
|
|
610
610
|
notes?: string | undefined;
|
|
611
611
|
purchasePrice?: number | undefined;
|
|
612
612
|
currentValue?: number | undefined;
|
|
@@ -668,8 +668,8 @@ export declare const updateLivestockGroupSchema: z.ZodObject<{
|
|
|
668
668
|
status?: "ACTIVE" | "SOLD" | "TRANSFERRED" | "DEPLETED" | "ARCHIVED" | undefined;
|
|
669
669
|
name?: string | undefined;
|
|
670
670
|
description?: string | null | undefined;
|
|
671
|
-
location?: string | null | undefined;
|
|
672
671
|
currency?: string | undefined;
|
|
672
|
+
location?: string | null | undefined;
|
|
673
673
|
notes?: string | null | undefined;
|
|
674
674
|
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
675
675
|
purchasePrice?: number | null | undefined;
|
|
@@ -698,8 +698,8 @@ export declare const updateLivestockGroupSchema: z.ZodObject<{
|
|
|
698
698
|
status?: "ACTIVE" | "SOLD" | "TRANSFERRED" | "DEPLETED" | "ARCHIVED" | undefined;
|
|
699
699
|
name?: string | undefined;
|
|
700
700
|
description?: string | null | undefined;
|
|
701
|
-
location?: string | null | undefined;
|
|
702
701
|
currency?: string | undefined;
|
|
702
|
+
location?: string | null | undefined;
|
|
703
703
|
notes?: string | null | undefined;
|
|
704
704
|
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
705
705
|
purchasePrice?: number | null | undefined;
|
|
@@ -732,8 +732,8 @@ export declare const updateLivestockGroupSchema: z.ZodObject<{
|
|
|
732
732
|
status?: "ACTIVE" | "SOLD" | "TRANSFERRED" | "DEPLETED" | "ARCHIVED" | undefined;
|
|
733
733
|
name?: string | undefined;
|
|
734
734
|
description?: string | null | undefined;
|
|
735
|
-
location?: string | null | undefined;
|
|
736
735
|
currency?: string | undefined;
|
|
736
|
+
location?: string | null | undefined;
|
|
737
737
|
notes?: string | null | undefined;
|
|
738
738
|
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
739
739
|
purchasePrice?: number | null | undefined;
|
|
@@ -766,8 +766,8 @@ export declare const updateLivestockGroupSchema: z.ZodObject<{
|
|
|
766
766
|
status?: "ACTIVE" | "SOLD" | "TRANSFERRED" | "DEPLETED" | "ARCHIVED" | undefined;
|
|
767
767
|
name?: string | undefined;
|
|
768
768
|
description?: string | null | undefined;
|
|
769
|
-
location?: string | null | undefined;
|
|
770
769
|
currency?: string | undefined;
|
|
770
|
+
location?: string | null | undefined;
|
|
771
771
|
notes?: string | null | undefined;
|
|
772
772
|
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
773
773
|
purchasePrice?: number | null | undefined;
|
|
@@ -979,9 +979,9 @@ export declare const livestockGroupResourceSchema: z.ZodObject<{
|
|
|
979
979
|
updatedAt: string;
|
|
980
980
|
name: string;
|
|
981
981
|
description: string | null;
|
|
982
|
+
currency: string;
|
|
982
983
|
farmId: string;
|
|
983
984
|
location: string | null;
|
|
984
|
-
currency: string;
|
|
985
985
|
notes: string | null;
|
|
986
986
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
987
987
|
purchasePrice: number | null;
|
|
@@ -1056,9 +1056,9 @@ export declare const livestockGroupResourceSchema: z.ZodObject<{
|
|
|
1056
1056
|
updatedAt: string;
|
|
1057
1057
|
name: string;
|
|
1058
1058
|
description: string | null;
|
|
1059
|
+
currency: string;
|
|
1059
1060
|
farmId: string;
|
|
1060
1061
|
location: string | null;
|
|
1061
|
-
currency: string;
|
|
1062
1062
|
notes: string | null;
|
|
1063
1063
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1064
1064
|
purchasePrice: number | null;
|
|
@@ -1351,9 +1351,9 @@ export declare const livestockGroupResponseSchema: z.ZodObject<{
|
|
|
1351
1351
|
updatedAt: string;
|
|
1352
1352
|
name: string;
|
|
1353
1353
|
description: string | null;
|
|
1354
|
+
currency: string;
|
|
1354
1355
|
farmId: string;
|
|
1355
1356
|
location: string | null;
|
|
1356
|
-
currency: string;
|
|
1357
1357
|
notes: string | null;
|
|
1358
1358
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1359
1359
|
purchasePrice: number | null;
|
|
@@ -1428,9 +1428,9 @@ export declare const livestockGroupResponseSchema: z.ZodObject<{
|
|
|
1428
1428
|
updatedAt: string;
|
|
1429
1429
|
name: string;
|
|
1430
1430
|
description: string | null;
|
|
1431
|
+
currency: string;
|
|
1431
1432
|
farmId: string;
|
|
1432
1433
|
location: string | null;
|
|
1433
|
-
currency: string;
|
|
1434
1434
|
notes: string | null;
|
|
1435
1435
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1436
1436
|
purchasePrice: number | null;
|
|
@@ -1538,9 +1538,9 @@ export declare const livestockGroupResponseSchema: z.ZodObject<{
|
|
|
1538
1538
|
updatedAt: string;
|
|
1539
1539
|
name: string;
|
|
1540
1540
|
description: string | null;
|
|
1541
|
+
currency: string;
|
|
1541
1542
|
farmId: string;
|
|
1542
1543
|
location: string | null;
|
|
1543
|
-
currency: string;
|
|
1544
1544
|
notes: string | null;
|
|
1545
1545
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1546
1546
|
purchasePrice: number | null;
|
|
@@ -1683,9 +1683,9 @@ export declare const livestockGroupListResponseSchema: z.ZodObject<{
|
|
|
1683
1683
|
updatedAt: string;
|
|
1684
1684
|
name: string;
|
|
1685
1685
|
description: string | null;
|
|
1686
|
+
currency: string;
|
|
1686
1687
|
farmId: string;
|
|
1687
1688
|
location: string | null;
|
|
1688
|
-
currency: string;
|
|
1689
1689
|
notes: string | null;
|
|
1690
1690
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1691
1691
|
purchasePrice: number | null;
|
|
@@ -1760,9 +1760,9 @@ export declare const livestockGroupListResponseSchema: z.ZodObject<{
|
|
|
1760
1760
|
updatedAt: string;
|
|
1761
1761
|
name: string;
|
|
1762
1762
|
description: string | null;
|
|
1763
|
+
currency: string;
|
|
1763
1764
|
farmId: string;
|
|
1764
1765
|
location: string | null;
|
|
1765
|
-
currency: string;
|
|
1766
1766
|
notes: string | null;
|
|
1767
1767
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1768
1768
|
purchasePrice: number | null;
|
|
@@ -1870,9 +1870,9 @@ export declare const livestockGroupListResponseSchema: z.ZodObject<{
|
|
|
1870
1870
|
updatedAt: string;
|
|
1871
1871
|
name: string;
|
|
1872
1872
|
description: string | null;
|
|
1873
|
+
currency: string;
|
|
1873
1874
|
farmId: string;
|
|
1874
1875
|
location: string | null;
|
|
1875
|
-
currency: string;
|
|
1876
1876
|
notes: string | null;
|
|
1877
1877
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1878
1878
|
purchasePrice: number | null;
|
|
@@ -2745,8 +2745,8 @@ export declare const bulkCreateLivestockSchema: z.ZodObject<{
|
|
|
2745
2745
|
sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
|
|
2746
2746
|
dateOfBirth?: string | undefined;
|
|
2747
2747
|
}[] | undefined;
|
|
2748
|
-
location?: string | undefined;
|
|
2749
2748
|
currency?: string | undefined;
|
|
2749
|
+
location?: string | undefined;
|
|
2750
2750
|
count?: number | undefined;
|
|
2751
2751
|
groupId?: string | undefined;
|
|
2752
2752
|
purchasePrice?: number | undefined;
|
|
@@ -2789,8 +2789,8 @@ export declare const bulkCreateLivestockSchema: z.ZodObject<{
|
|
|
2789
2789
|
sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
|
|
2790
2790
|
dateOfBirth?: string | undefined;
|
|
2791
2791
|
}[] | undefined;
|
|
2792
|
-
location?: string | undefined;
|
|
2793
2792
|
currency?: string | undefined;
|
|
2793
|
+
location?: string | undefined;
|
|
2794
2794
|
count?: number | undefined;
|
|
2795
2795
|
groupId?: string | undefined;
|
|
2796
2796
|
purchasePrice?: number | undefined;
|