@deepintel-ltd/farmpro-contracts 1.5.24 → 1.5.25

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.
@@ -26,7 +26,7 @@ export declare const priceHistoryEntryAttributesSchema: z.ZodObject<{
26
26
  price: number;
27
27
  }>;
28
28
  export declare const supplierAttributesSchema: z.ZodObject<{
29
- farmId: z.ZodString;
29
+ organizationId: z.ZodString;
30
30
  name: z.ZodString;
31
31
  type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
32
32
  contactPerson: z.ZodNullable<z.ZodString>;
@@ -67,8 +67,8 @@ export declare const supplierAttributesSchema: z.ZodObject<{
67
67
  updatedAt: string;
68
68
  name: string;
69
69
  phone: string | null;
70
- farmId: string;
71
70
  notes: string | null;
71
+ organizationId: string;
72
72
  contactPerson: string | null;
73
73
  address: string | null;
74
74
  rating: number | null;
@@ -87,8 +87,8 @@ export declare const supplierAttributesSchema: z.ZodObject<{
87
87
  updatedAt: string;
88
88
  name: string;
89
89
  phone: string | null;
90
- farmId: string;
91
90
  notes: string | null;
91
+ organizationId: string;
92
92
  contactPerson: string | null;
93
93
  address: string | null;
94
94
  rating: number | null;
@@ -158,7 +158,7 @@ export declare const updateSupplierAttributesSchema: z.ZodObject<{
158
158
  rating?: number | null | undefined;
159
159
  }>;
160
160
  export declare const buyerAttributesSchema: z.ZodObject<{
161
- farmId: z.ZodString;
161
+ organizationId: z.ZodString;
162
162
  name: z.ZodString;
163
163
  contactPerson: z.ZodNullable<z.ZodString>;
164
164
  email: z.ZodNullable<z.ZodString>;
@@ -198,8 +198,8 @@ export declare const buyerAttributesSchema: z.ZodObject<{
198
198
  updatedAt: string;
199
199
  name: string;
200
200
  phone: string | null;
201
- farmId: string;
202
201
  notes: string | null;
202
+ organizationId: string;
203
203
  contactPerson: string | null;
204
204
  address: string | null;
205
205
  rating: number | null;
@@ -218,8 +218,8 @@ export declare const buyerAttributesSchema: z.ZodObject<{
218
218
  updatedAt: string;
219
219
  name: string;
220
220
  phone: string | null;
221
- farmId: string;
222
221
  notes: string | null;
222
+ organizationId: string;
223
223
  contactPerson: string | null;
224
224
  address: string | null;
225
225
  rating: number | null;
@@ -519,7 +519,7 @@ export declare const supplierResourceSchema: z.ZodObject<{
519
519
  type: z.ZodLiteral<string>;
520
520
  id: z.ZodString;
521
521
  attributes: z.ZodObject<{
522
- farmId: z.ZodString;
522
+ organizationId: z.ZodString;
523
523
  name: z.ZodString;
524
524
  type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
525
525
  contactPerson: z.ZodNullable<z.ZodString>;
@@ -560,8 +560,8 @@ export declare const supplierResourceSchema: z.ZodObject<{
560
560
  updatedAt: string;
561
561
  name: string;
562
562
  phone: string | null;
563
- farmId: string;
564
563
  notes: string | null;
564
+ organizationId: string;
565
565
  contactPerson: string | null;
566
566
  address: string | null;
567
567
  rating: number | null;
@@ -580,8 +580,8 @@ export declare const supplierResourceSchema: z.ZodObject<{
580
580
  updatedAt: string;
581
581
  name: string;
582
582
  phone: string | null;
583
- farmId: string;
584
583
  notes: string | null;
584
+ organizationId: string;
585
585
  contactPerson: string | null;
586
586
  address: string | null;
587
587
  rating: number | null;
@@ -607,8 +607,8 @@ export declare const supplierResourceSchema: z.ZodObject<{
607
607
  updatedAt: string;
608
608
  name: string;
609
609
  phone: string | null;
610
- farmId: string;
611
610
  notes: string | null;
611
+ organizationId: string;
612
612
  contactPerson: string | null;
613
613
  address: string | null;
614
614
  rating: number | null;
@@ -634,8 +634,8 @@ export declare const supplierResourceSchema: z.ZodObject<{
634
634
  updatedAt: string;
635
635
  name: string;
636
636
  phone: string | null;
637
- farmId: string;
638
637
  notes: string | null;
638
+ organizationId: string;
639
639
  contactPerson: string | null;
640
640
  address: string | null;
641
641
  rating: number | null;
@@ -656,7 +656,7 @@ export declare const buyerResourceSchema: z.ZodObject<{
656
656
  type: z.ZodLiteral<string>;
657
657
  id: z.ZodString;
658
658
  attributes: z.ZodObject<{
659
- farmId: z.ZodString;
659
+ organizationId: z.ZodString;
660
660
  name: z.ZodString;
661
661
  contactPerson: z.ZodNullable<z.ZodString>;
662
662
  email: z.ZodNullable<z.ZodString>;
@@ -696,8 +696,8 @@ export declare const buyerResourceSchema: z.ZodObject<{
696
696
  updatedAt: string;
697
697
  name: string;
698
698
  phone: string | null;
699
- farmId: string;
700
699
  notes: string | null;
700
+ organizationId: string;
701
701
  contactPerson: string | null;
702
702
  address: string | null;
703
703
  rating: number | null;
@@ -716,8 +716,8 @@ export declare const buyerResourceSchema: z.ZodObject<{
716
716
  updatedAt: string;
717
717
  name: string;
718
718
  phone: string | null;
719
- farmId: string;
720
719
  notes: string | null;
720
+ organizationId: string;
721
721
  contactPerson: string | null;
722
722
  address: string | null;
723
723
  rating: number | null;
@@ -743,8 +743,8 @@ export declare const buyerResourceSchema: z.ZodObject<{
743
743
  updatedAt: string;
744
744
  name: string;
745
745
  phone: string | null;
746
- farmId: string;
747
746
  notes: string | null;
747
+ organizationId: string;
748
748
  contactPerson: string | null;
749
749
  address: string | null;
750
750
  rating: number | null;
@@ -770,8 +770,8 @@ export declare const buyerResourceSchema: z.ZodObject<{
770
770
  updatedAt: string;
771
771
  name: string;
772
772
  phone: string | null;
773
- farmId: string;
774
773
  notes: string | null;
774
+ organizationId: string;
775
775
  contactPerson: string | null;
776
776
  address: string | null;
777
777
  rating: number | null;
@@ -794,7 +794,7 @@ export declare const supplierResponseSchema: z.ZodObject<{
794
794
  type: z.ZodLiteral<string>;
795
795
  id: z.ZodString;
796
796
  attributes: z.ZodObject<{
797
- farmId: z.ZodString;
797
+ organizationId: z.ZodString;
798
798
  name: z.ZodString;
799
799
  type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
800
800
  contactPerson: z.ZodNullable<z.ZodString>;
@@ -835,8 +835,8 @@ export declare const supplierResponseSchema: z.ZodObject<{
835
835
  updatedAt: string;
836
836
  name: string;
837
837
  phone: string | null;
838
- farmId: string;
839
838
  notes: string | null;
839
+ organizationId: string;
840
840
  contactPerson: string | null;
841
841
  address: string | null;
842
842
  rating: number | null;
@@ -855,8 +855,8 @@ export declare const supplierResponseSchema: z.ZodObject<{
855
855
  updatedAt: string;
856
856
  name: string;
857
857
  phone: string | null;
858
- farmId: string;
859
858
  notes: string | null;
859
+ organizationId: string;
860
860
  contactPerson: string | null;
861
861
  address: string | null;
862
862
  rating: number | null;
@@ -882,8 +882,8 @@ export declare const supplierResponseSchema: z.ZodObject<{
882
882
  updatedAt: string;
883
883
  name: string;
884
884
  phone: string | null;
885
- farmId: string;
886
885
  notes: string | null;
886
+ organizationId: string;
887
887
  contactPerson: string | null;
888
888
  address: string | null;
889
889
  rating: number | null;
@@ -909,8 +909,8 @@ export declare const supplierResponseSchema: z.ZodObject<{
909
909
  updatedAt: string;
910
910
  name: string;
911
911
  phone: string | null;
912
- farmId: string;
913
912
  notes: string | null;
913
+ organizationId: string;
914
914
  contactPerson: string | null;
915
915
  address: string | null;
916
916
  rating: number | null;
@@ -962,8 +962,8 @@ export declare const supplierResponseSchema: z.ZodObject<{
962
962
  updatedAt: string;
963
963
  name: string;
964
964
  phone: string | null;
965
- farmId: string;
966
965
  notes: string | null;
966
+ organizationId: string;
967
967
  contactPerson: string | null;
968
968
  address: string | null;
969
969
  rating: number | null;
@@ -1001,8 +1001,8 @@ export declare const supplierResponseSchema: z.ZodObject<{
1001
1001
  updatedAt: string;
1002
1002
  name: string;
1003
1003
  phone: string | null;
1004
- farmId: string;
1005
1004
  notes: string | null;
1005
+ organizationId: string;
1006
1006
  contactPerson: string | null;
1007
1007
  address: string | null;
1008
1008
  rating: number | null;
@@ -1035,7 +1035,7 @@ export declare const supplierListResponseSchema: z.ZodObject<{
1035
1035
  type: z.ZodLiteral<string>;
1036
1036
  id: z.ZodString;
1037
1037
  attributes: z.ZodObject<{
1038
- farmId: z.ZodString;
1038
+ organizationId: z.ZodString;
1039
1039
  name: z.ZodString;
1040
1040
  type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
1041
1041
  contactPerson: z.ZodNullable<z.ZodString>;
@@ -1076,8 +1076,8 @@ export declare const supplierListResponseSchema: z.ZodObject<{
1076
1076
  updatedAt: string;
1077
1077
  name: string;
1078
1078
  phone: string | null;
1079
- farmId: string;
1080
1079
  notes: string | null;
1080
+ organizationId: string;
1081
1081
  contactPerson: string | null;
1082
1082
  address: string | null;
1083
1083
  rating: number | null;
@@ -1096,8 +1096,8 @@ export declare const supplierListResponseSchema: z.ZodObject<{
1096
1096
  updatedAt: string;
1097
1097
  name: string;
1098
1098
  phone: string | null;
1099
- farmId: string;
1100
1099
  notes: string | null;
1100
+ organizationId: string;
1101
1101
  contactPerson: string | null;
1102
1102
  address: string | null;
1103
1103
  rating: number | null;
@@ -1123,8 +1123,8 @@ export declare const supplierListResponseSchema: z.ZodObject<{
1123
1123
  updatedAt: string;
1124
1124
  name: string;
1125
1125
  phone: string | null;
1126
- farmId: string;
1127
1126
  notes: string | null;
1127
+ organizationId: string;
1128
1128
  contactPerson: string | null;
1129
1129
  address: string | null;
1130
1130
  rating: number | null;
@@ -1150,8 +1150,8 @@ export declare const supplierListResponseSchema: z.ZodObject<{
1150
1150
  updatedAt: string;
1151
1151
  name: string;
1152
1152
  phone: string | null;
1153
- farmId: string;
1154
1153
  notes: string | null;
1154
+ organizationId: string;
1155
1155
  contactPerson: string | null;
1156
1156
  address: string | null;
1157
1157
  rating: number | null;
@@ -1203,8 +1203,8 @@ export declare const supplierListResponseSchema: z.ZodObject<{
1203
1203
  updatedAt: string;
1204
1204
  name: string;
1205
1205
  phone: string | null;
1206
- farmId: string;
1207
1206
  notes: string | null;
1207
+ organizationId: string;
1208
1208
  contactPerson: string | null;
1209
1209
  address: string | null;
1210
1210
  rating: number | null;
@@ -1242,8 +1242,8 @@ export declare const supplierListResponseSchema: z.ZodObject<{
1242
1242
  updatedAt: string;
1243
1243
  name: string;
1244
1244
  phone: string | null;
1245
- farmId: string;
1246
1245
  notes: string | null;
1246
+ organizationId: string;
1247
1247
  contactPerson: string | null;
1248
1248
  address: string | null;
1249
1249
  rating: number | null;
@@ -1276,7 +1276,7 @@ export declare const buyerResponseSchema: z.ZodObject<{
1276
1276
  type: z.ZodLiteral<string>;
1277
1277
  id: z.ZodString;
1278
1278
  attributes: z.ZodObject<{
1279
- farmId: z.ZodString;
1279
+ organizationId: z.ZodString;
1280
1280
  name: z.ZodString;
1281
1281
  contactPerson: z.ZodNullable<z.ZodString>;
1282
1282
  email: z.ZodNullable<z.ZodString>;
@@ -1316,8 +1316,8 @@ export declare const buyerResponseSchema: z.ZodObject<{
1316
1316
  updatedAt: string;
1317
1317
  name: string;
1318
1318
  phone: string | null;
1319
- farmId: string;
1320
1319
  notes: string | null;
1320
+ organizationId: string;
1321
1321
  contactPerson: string | null;
1322
1322
  address: string | null;
1323
1323
  rating: number | null;
@@ -1336,8 +1336,8 @@ export declare const buyerResponseSchema: z.ZodObject<{
1336
1336
  updatedAt: string;
1337
1337
  name: string;
1338
1338
  phone: string | null;
1339
- farmId: string;
1340
1339
  notes: string | null;
1340
+ organizationId: string;
1341
1341
  contactPerson: string | null;
1342
1342
  address: string | null;
1343
1343
  rating: number | null;
@@ -1363,8 +1363,8 @@ export declare const buyerResponseSchema: z.ZodObject<{
1363
1363
  updatedAt: string;
1364
1364
  name: string;
1365
1365
  phone: string | null;
1366
- farmId: string;
1367
1366
  notes: string | null;
1367
+ organizationId: string;
1368
1368
  contactPerson: string | null;
1369
1369
  address: string | null;
1370
1370
  rating: number | null;
@@ -1390,8 +1390,8 @@ export declare const buyerResponseSchema: z.ZodObject<{
1390
1390
  updatedAt: string;
1391
1391
  name: string;
1392
1392
  phone: string | null;
1393
- farmId: string;
1394
1393
  notes: string | null;
1394
+ organizationId: string;
1395
1395
  contactPerson: string | null;
1396
1396
  address: string | null;
1397
1397
  rating: number | null;
@@ -1443,8 +1443,8 @@ export declare const buyerResponseSchema: z.ZodObject<{
1443
1443
  updatedAt: string;
1444
1444
  name: string;
1445
1445
  phone: string | null;
1446
- farmId: string;
1447
1446
  notes: string | null;
1447
+ organizationId: string;
1448
1448
  contactPerson: string | null;
1449
1449
  address: string | null;
1450
1450
  rating: number | null;
@@ -1482,8 +1482,8 @@ export declare const buyerResponseSchema: z.ZodObject<{
1482
1482
  updatedAt: string;
1483
1483
  name: string;
1484
1484
  phone: string | null;
1485
- farmId: string;
1486
1485
  notes: string | null;
1486
+ organizationId: string;
1487
1487
  contactPerson: string | null;
1488
1488
  address: string | null;
1489
1489
  rating: number | null;
@@ -1517,7 +1517,7 @@ export declare const buyerListResponseSchema: z.ZodObject<{
1517
1517
  type: z.ZodLiteral<string>;
1518
1518
  id: z.ZodString;
1519
1519
  attributes: z.ZodObject<{
1520
- farmId: z.ZodString;
1520
+ organizationId: z.ZodString;
1521
1521
  name: z.ZodString;
1522
1522
  contactPerson: z.ZodNullable<z.ZodString>;
1523
1523
  email: z.ZodNullable<z.ZodString>;
@@ -1557,8 +1557,8 @@ export declare const buyerListResponseSchema: z.ZodObject<{
1557
1557
  updatedAt: string;
1558
1558
  name: string;
1559
1559
  phone: string | null;
1560
- farmId: string;
1561
1560
  notes: string | null;
1561
+ organizationId: string;
1562
1562
  contactPerson: string | null;
1563
1563
  address: string | null;
1564
1564
  rating: number | null;
@@ -1577,8 +1577,8 @@ export declare const buyerListResponseSchema: z.ZodObject<{
1577
1577
  updatedAt: string;
1578
1578
  name: string;
1579
1579
  phone: string | null;
1580
- farmId: string;
1581
1580
  notes: string | null;
1581
+ organizationId: string;
1582
1582
  contactPerson: string | null;
1583
1583
  address: string | null;
1584
1584
  rating: number | null;
@@ -1604,8 +1604,8 @@ export declare const buyerListResponseSchema: z.ZodObject<{
1604
1604
  updatedAt: string;
1605
1605
  name: string;
1606
1606
  phone: string | null;
1607
- farmId: string;
1608
1607
  notes: string | null;
1608
+ organizationId: string;
1609
1609
  contactPerson: string | null;
1610
1610
  address: string | null;
1611
1611
  rating: number | null;
@@ -1631,8 +1631,8 @@ export declare const buyerListResponseSchema: z.ZodObject<{
1631
1631
  updatedAt: string;
1632
1632
  name: string;
1633
1633
  phone: string | null;
1634
- farmId: string;
1635
1634
  notes: string | null;
1635
+ organizationId: string;
1636
1636
  contactPerson: string | null;
1637
1637
  address: string | null;
1638
1638
  rating: number | null;
@@ -1684,8 +1684,8 @@ export declare const buyerListResponseSchema: z.ZodObject<{
1684
1684
  updatedAt: string;
1685
1685
  name: string;
1686
1686
  phone: string | null;
1687
- farmId: string;
1688
1687
  notes: string | null;
1688
+ organizationId: string;
1689
1689
  contactPerson: string | null;
1690
1690
  address: string | null;
1691
1691
  rating: number | null;
@@ -1723,8 +1723,8 @@ export declare const buyerListResponseSchema: z.ZodObject<{
1723
1723
  updatedAt: string;
1724
1724
  name: string;
1725
1725
  phone: string | null;
1726
- farmId: string;
1727
1726
  notes: string | null;
1727
+ organizationId: string;
1728
1728
  contactPerson: string | null;
1729
1729
  address: string | null;
1730
1730
  rating: number | null;
@@ -16,7 +16,7 @@ export const priceHistoryEntryAttributesSchema = z.object({
16
16
  });
17
17
  // Supplier attributes schema (for JSON:API attributes object)
18
18
  export const supplierAttributesSchema = z.object({
19
- farmId: z.string().uuid(),
19
+ organizationId: z.string().uuid(),
20
20
  name: z.string(),
21
21
  type: supplierTypeSchema,
22
22
  contactPerson: z.string().nullable(),
@@ -51,7 +51,7 @@ export const updateSupplierAttributesSchema = z.object({
51
51
  });
52
52
  // Buyer attributes schema (for JSON:API attributes object)
53
53
  export const buyerAttributesSchema = z.object({
54
- farmId: z.string().uuid(),
54
+ organizationId: z.string().uuid(),
55
55
  name: z.string(),
56
56
  contactPerson: z.string().nullable(),
57
57
  email: z.string().nullable(),