@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.
Files changed (36) hide show
  1. package/dist/routes/agents.routes.d.ts +681 -12
  2. package/dist/routes/agents.routes.d.ts.map +1 -1
  3. package/dist/routes/agents.routes.js +21 -1
  4. package/dist/routes/commodity-deals.routes.d.ts +27 -27
  5. package/dist/routes/farms.routes.d.ts +46 -46
  6. package/dist/routes/field-observations.routes.d.ts +34 -34
  7. package/dist/routes/invoices.routes.d.ts +39 -39
  8. package/dist/routes/livestock-groups.routes.d.ts +27 -27
  9. package/dist/routes/livestock.routes.d.ts +21 -21
  10. package/dist/routes/market-intelligence.routes.d.ts +8 -8
  11. package/dist/routes/organizations.routes.d.ts +49 -0
  12. package/dist/routes/organizations.routes.d.ts.map +1 -1
  13. package/dist/routes/poultry.routes.d.ts +22 -22
  14. package/dist/routes/purchase-orders.routes.d.ts +9 -9
  15. package/dist/routes/subscriptions.routes.d.ts +8 -8
  16. package/dist/routes/team-payments.routes.d.ts +36 -36
  17. package/dist/routes/trade-cash-events.routes.d.ts +39 -39
  18. package/dist/routes/waybills.routes.d.ts +39 -39
  19. package/dist/schemas/agents.schemas.d.ts +718 -12
  20. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  21. package/dist/schemas/agents.schemas.js +41 -0
  22. package/dist/schemas/commodity-deals.schemas.d.ts +18 -18
  23. package/dist/schemas/farms.schemas.d.ts +51 -51
  24. package/dist/schemas/field-observations.schemas.d.ts +24 -24
  25. package/dist/schemas/invoices.schemas.d.ts +27 -27
  26. package/dist/schemas/livestock-groups.schemas.d.ts +20 -20
  27. package/dist/schemas/livestock.schemas.d.ts +18 -18
  28. package/dist/schemas/organizations.schemas.d.ts +42 -0
  29. package/dist/schemas/organizations.schemas.d.ts.map +1 -1
  30. package/dist/schemas/organizations.schemas.js +3 -0
  31. package/dist/schemas/purchase-orders.schemas.d.ts +9 -9
  32. package/dist/schemas/subscriptions.schemas.d.ts +6 -6
  33. package/dist/schemas/team-payments.schemas.d.ts +24 -24
  34. package/dist/schemas/trade-cash-events.schemas.d.ts +27 -27
  35. package/dist/schemas/waybills.schemas.d.ts +27 -27
  36. package/package.json +1 -1
@@ -80,8 +80,8 @@ export declare const waybillAttributesSchema: z.ZodObject<{
80
80
  }, "strip", z.ZodTypeAny, {
81
81
  createdAt: string;
82
82
  updatedAt: string;
83
- organizationId: string;
84
83
  currency: string;
84
+ organizationId: string;
85
85
  items: {
86
86
  description: string;
87
87
  quantity: number;
@@ -131,8 +131,8 @@ export declare const waybillAttributesSchema: z.ZodObject<{
131
131
  issueDate: string;
132
132
  senderName: string;
133
133
  recipientName: string;
134
- farmId?: string | null | undefined;
135
134
  currency?: string | undefined;
135
+ farmId?: string | null | undefined;
136
136
  notes?: string | null | undefined;
137
137
  totalValue?: number | null | undefined;
138
138
  senderAddress?: string | null | undefined;
@@ -249,8 +249,8 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
249
249
  }[];
250
250
  senderName: string;
251
251
  buyerId: string;
252
- farmId?: string | undefined;
253
252
  currency?: string | undefined;
253
+ farmId?: string | undefined;
254
254
  notes?: string | undefined;
255
255
  totalValue?: number | undefined;
256
256
  transportCost?: number | undefined;
@@ -324,8 +324,8 @@ export declare const updateWaybillAttributesSchema: z.ZodObject<{
324
324
  miscellaneousCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
325
325
  supplierId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
326
326
  }, "strip", z.ZodTypeAny, {
327
- farmId?: string | undefined;
328
327
  currency?: string | undefined;
328
+ farmId?: string | undefined;
329
329
  notes?: string | undefined;
330
330
  totalValue?: number | undefined;
331
331
  transportCost?: number | undefined;
@@ -359,8 +359,8 @@ export declare const updateWaybillAttributesSchema: z.ZodObject<{
359
359
  miscellaneousCost?: number | undefined;
360
360
  supplierId?: string | null | undefined;
361
361
  }, {
362
- farmId?: string | undefined;
363
362
  currency?: string | undefined;
363
+ farmId?: string | undefined;
364
364
  notes?: string | undefined;
365
365
  totalValue?: number | undefined;
366
366
  transportCost?: number | undefined;
@@ -491,8 +491,8 @@ export declare const createWaybillSchema: z.ZodObject<{
491
491
  }[];
492
492
  senderName: string;
493
493
  buyerId: string;
494
- farmId?: string | undefined;
495
494
  currency?: string | undefined;
495
+ farmId?: string | undefined;
496
496
  notes?: string | undefined;
497
497
  totalValue?: number | undefined;
498
498
  transportCost?: number | undefined;
@@ -567,8 +567,8 @@ export declare const createWaybillSchema: z.ZodObject<{
567
567
  }[];
568
568
  senderName: string;
569
569
  buyerId: string;
570
- farmId?: string | undefined;
571
570
  currency?: string | undefined;
571
+ farmId?: string | undefined;
572
572
  notes?: string | undefined;
573
573
  totalValue?: number | undefined;
574
574
  transportCost?: number | undefined;
@@ -646,8 +646,8 @@ export declare const updateWaybillSchema: z.ZodObject<{
646
646
  miscellaneousCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
647
647
  supplierId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
648
648
  }, "strip", z.ZodTypeAny, {
649
- farmId?: string | undefined;
650
649
  currency?: string | undefined;
650
+ farmId?: string | undefined;
651
651
  notes?: string | undefined;
652
652
  totalValue?: number | undefined;
653
653
  transportCost?: number | undefined;
@@ -681,8 +681,8 @@ export declare const updateWaybillSchema: z.ZodObject<{
681
681
  miscellaneousCost?: number | undefined;
682
682
  supplierId?: string | null | undefined;
683
683
  }, {
684
- farmId?: string | undefined;
685
684
  currency?: string | undefined;
685
+ farmId?: string | undefined;
686
686
  notes?: string | undefined;
687
687
  totalValue?: number | undefined;
688
688
  transportCost?: number | undefined;
@@ -720,8 +720,8 @@ export declare const updateWaybillSchema: z.ZodObject<{
720
720
  type: "waybills";
721
721
  id: string;
722
722
  attributes: {
723
- farmId?: string | undefined;
724
723
  currency?: string | undefined;
724
+ farmId?: string | undefined;
725
725
  notes?: string | undefined;
726
726
  totalValue?: number | undefined;
727
727
  transportCost?: number | undefined;
@@ -759,8 +759,8 @@ export declare const updateWaybillSchema: z.ZodObject<{
759
759
  type: "waybills";
760
760
  id: string;
761
761
  attributes: {
762
- farmId?: string | undefined;
763
762
  currency?: string | undefined;
763
+ farmId?: string | undefined;
764
764
  notes?: string | undefined;
765
765
  totalValue?: number | undefined;
766
766
  transportCost?: number | undefined;
@@ -854,8 +854,8 @@ export declare const waybillResourceSchema: z.ZodObject<{
854
854
  }, "strip", z.ZodTypeAny, {
855
855
  createdAt: string;
856
856
  updatedAt: string;
857
- organizationId: string;
858
857
  currency: string;
858
+ organizationId: string;
859
859
  items: {
860
860
  description: string;
861
861
  quantity: number;
@@ -905,8 +905,8 @@ export declare const waybillResourceSchema: z.ZodObject<{
905
905
  issueDate: string;
906
906
  senderName: string;
907
907
  recipientName: string;
908
- farmId?: string | null | undefined;
909
908
  currency?: string | undefined;
909
+ farmId?: string | null | undefined;
910
910
  notes?: string | null | undefined;
911
911
  totalValue?: number | null | undefined;
912
912
  senderAddress?: string | null | undefined;
@@ -937,8 +937,8 @@ export declare const waybillResourceSchema: z.ZodObject<{
937
937
  attributes: {
938
938
  createdAt: string;
939
939
  updatedAt: string;
940
- organizationId: string;
941
940
  currency: string;
941
+ organizationId: string;
942
942
  items: {
943
943
  description: string;
944
944
  quantity: number;
@@ -995,8 +995,8 @@ export declare const waybillResourceSchema: z.ZodObject<{
995
995
  issueDate: string;
996
996
  senderName: string;
997
997
  recipientName: string;
998
- farmId?: string | null | undefined;
999
998
  currency?: string | undefined;
999
+ farmId?: string | null | undefined;
1000
1000
  notes?: string | null | undefined;
1001
1001
  totalValue?: number | null | undefined;
1002
1002
  senderAddress?: string | null | undefined;
@@ -1082,8 +1082,8 @@ export declare const waybillResponseSchema: z.ZodObject<{
1082
1082
  }, "strip", z.ZodTypeAny, {
1083
1083
  createdAt: string;
1084
1084
  updatedAt: string;
1085
- organizationId: string;
1086
1085
  currency: string;
1086
+ organizationId: string;
1087
1087
  items: {
1088
1088
  description: string;
1089
1089
  quantity: number;
@@ -1133,8 +1133,8 @@ export declare const waybillResponseSchema: z.ZodObject<{
1133
1133
  issueDate: string;
1134
1134
  senderName: string;
1135
1135
  recipientName: string;
1136
- farmId?: string | null | undefined;
1137
1136
  currency?: string | undefined;
1137
+ farmId?: string | null | undefined;
1138
1138
  notes?: string | null | undefined;
1139
1139
  totalValue?: number | null | undefined;
1140
1140
  senderAddress?: string | null | undefined;
@@ -1165,8 +1165,8 @@ export declare const waybillResponseSchema: z.ZodObject<{
1165
1165
  attributes: {
1166
1166
  createdAt: string;
1167
1167
  updatedAt: string;
1168
- organizationId: string;
1169
1168
  currency: string;
1169
+ organizationId: string;
1170
1170
  items: {
1171
1171
  description: string;
1172
1172
  quantity: number;
@@ -1223,8 +1223,8 @@ export declare const waybillResponseSchema: z.ZodObject<{
1223
1223
  issueDate: string;
1224
1224
  senderName: string;
1225
1225
  recipientName: string;
1226
- farmId?: string | null | undefined;
1227
1226
  currency?: string | undefined;
1227
+ farmId?: string | null | undefined;
1228
1228
  notes?: string | null | undefined;
1229
1229
  totalValue?: number | null | undefined;
1230
1230
  senderAddress?: string | null | undefined;
@@ -1281,8 +1281,8 @@ export declare const waybillResponseSchema: z.ZodObject<{
1281
1281
  attributes: {
1282
1282
  createdAt: string;
1283
1283
  updatedAt: string;
1284
- organizationId: string;
1285
1284
  currency: string;
1285
+ organizationId: string;
1286
1286
  items: {
1287
1287
  description: string;
1288
1288
  quantity: number;
@@ -1351,8 +1351,8 @@ export declare const waybillResponseSchema: z.ZodObject<{
1351
1351
  issueDate: string;
1352
1352
  senderName: string;
1353
1353
  recipientName: string;
1354
- farmId?: string | null | undefined;
1355
1354
  currency?: string | undefined;
1355
+ farmId?: string | null | undefined;
1356
1356
  notes?: string | null | undefined;
1357
1357
  totalValue?: number | null | undefined;
1358
1358
  senderAddress?: string | null | undefined;
@@ -1449,8 +1449,8 @@ export declare const waybillListResponseSchema: z.ZodObject<{
1449
1449
  }, "strip", z.ZodTypeAny, {
1450
1450
  createdAt: string;
1451
1451
  updatedAt: string;
1452
- organizationId: string;
1453
1452
  currency: string;
1453
+ organizationId: string;
1454
1454
  items: {
1455
1455
  description: string;
1456
1456
  quantity: number;
@@ -1500,8 +1500,8 @@ export declare const waybillListResponseSchema: z.ZodObject<{
1500
1500
  issueDate: string;
1501
1501
  senderName: string;
1502
1502
  recipientName: string;
1503
- farmId?: string | null | undefined;
1504
1503
  currency?: string | undefined;
1504
+ farmId?: string | null | undefined;
1505
1505
  notes?: string | null | undefined;
1506
1506
  totalValue?: number | null | undefined;
1507
1507
  senderAddress?: string | null | undefined;
@@ -1532,8 +1532,8 @@ export declare const waybillListResponseSchema: z.ZodObject<{
1532
1532
  attributes: {
1533
1533
  createdAt: string;
1534
1534
  updatedAt: string;
1535
- organizationId: string;
1536
1535
  currency: string;
1536
+ organizationId: string;
1537
1537
  items: {
1538
1538
  description: string;
1539
1539
  quantity: number;
@@ -1590,8 +1590,8 @@ export declare const waybillListResponseSchema: z.ZodObject<{
1590
1590
  issueDate: string;
1591
1591
  senderName: string;
1592
1592
  recipientName: string;
1593
- farmId?: string | null | undefined;
1594
1593
  currency?: string | undefined;
1594
+ farmId?: string | null | undefined;
1595
1595
  notes?: string | null | undefined;
1596
1596
  totalValue?: number | null | undefined;
1597
1597
  senderAddress?: string | null | undefined;
@@ -1648,8 +1648,8 @@ export declare const waybillListResponseSchema: z.ZodObject<{
1648
1648
  attributes: {
1649
1649
  createdAt: string;
1650
1650
  updatedAt: string;
1651
- organizationId: string;
1652
1651
  currency: string;
1652
+ organizationId: string;
1653
1653
  items: {
1654
1654
  description: string;
1655
1655
  quantity: number;
@@ -1718,8 +1718,8 @@ export declare const waybillListResponseSchema: z.ZodObject<{
1718
1718
  issueDate: string;
1719
1719
  senderName: string;
1720
1720
  recipientName: string;
1721
- farmId?: string | null | undefined;
1722
1721
  currency?: string | undefined;
1722
+ farmId?: string | null | undefined;
1723
1723
  notes?: string | null | undefined;
1724
1724
  totalValue?: number | null | undefined;
1725
1725
  senderAddress?: string | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.27.0",
3
+ "version": "1.27.1",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",