@deepintel-ltd/farmpro-contracts 1.22.4 → 1.23.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 (80) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +6 -0
  4. package/dist/routes/categories.routes.d.ts +26 -26
  5. package/dist/routes/commodity-deals.routes.d.ts +217 -42
  6. package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
  7. package/dist/routes/crop-profile.routes.d.ts +8 -8
  8. package/dist/routes/farm-enterprises.routes.d.ts +395 -0
  9. package/dist/routes/farm-enterprises.routes.d.ts.map +1 -1
  10. package/dist/routes/farm-enterprises.routes.js +14 -1
  11. package/dist/routes/farms.routes.d.ts +73 -20
  12. package/dist/routes/farms.routes.d.ts.map +1 -1
  13. package/dist/routes/fertigation.routes.d.ts +96 -96
  14. package/dist/routes/field-monitoring.routes.d.ts +2 -2
  15. package/dist/routes/finance.routes.d.ts +8 -8
  16. package/dist/routes/index.d.ts +9 -0
  17. package/dist/routes/index.d.ts.map +1 -1
  18. package/dist/routes/index.js +6 -0
  19. package/dist/routes/invoices.routes.d.ts +210 -60
  20. package/dist/routes/invoices.routes.d.ts.map +1 -1
  21. package/dist/routes/invoices.routes.js +4 -1
  22. package/dist/routes/monitoring-visualization.routes.d.ts +2 -2
  23. package/dist/routes/notifications.routes.d.ts +12 -12
  24. package/dist/routes/organization-capabilities.routes.d.ts +1671 -0
  25. package/dist/routes/organization-capabilities.routes.d.ts.map +1 -0
  26. package/dist/routes/organization-capabilities.routes.js +74 -0
  27. package/dist/routes/organizations.routes.d.ts +90 -47
  28. package/dist/routes/organizations.routes.d.ts.map +1 -1
  29. package/dist/routes/purchase-orders.routes.d.ts +2061 -0
  30. package/dist/routes/purchase-orders.routes.d.ts.map +1 -0
  31. package/dist/routes/purchase-orders.routes.js +55 -0
  32. package/dist/routes/suppliers.routes.d.ts +96 -96
  33. package/dist/routes/team-payments.routes.d.ts +105 -105
  34. package/dist/routes/team.routes.d.ts +125 -25
  35. package/dist/routes/team.routes.d.ts.map +1 -1
  36. package/dist/routes/trade-cash-events.routes.d.ts +3837 -0
  37. package/dist/routes/trade-cash-events.routes.d.ts.map +1 -0
  38. package/dist/routes/trade-cash-events.routes.js +126 -0
  39. package/dist/routes/waybills.routes.d.ts +229 -15
  40. package/dist/routes/waybills.routes.d.ts.map +1 -1
  41. package/dist/routes/waybills.routes.js +4 -1
  42. package/dist/schemas/categories.schemas.d.ts +21 -21
  43. package/dist/schemas/commodity-deals.schemas.d.ts +116 -18
  44. package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
  45. package/dist/schemas/commodity-deals.schemas.js +7 -0
  46. package/dist/schemas/crop-profile.schemas.d.ts +12 -12
  47. package/dist/schemas/farm-enterprises.schemas.d.ts +185 -0
  48. package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
  49. package/dist/schemas/farm-enterprises.schemas.js +21 -0
  50. package/dist/schemas/farms.schemas.d.ts +121 -19
  51. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  52. package/dist/schemas/farms.schemas.js +15 -1
  53. package/dist/schemas/fertigation.schemas.d.ts +36 -36
  54. package/dist/schemas/field-monitoring.schemas.d.ts +2 -2
  55. package/dist/schemas/finance.schemas.d.ts +8 -8
  56. package/dist/schemas/invoices.schemas.d.ts +153 -39
  57. package/dist/schemas/invoices.schemas.d.ts.map +1 -1
  58. package/dist/schemas/invoices.schemas.js +8 -2
  59. package/dist/schemas/notifications.schemas.d.ts +18 -18
  60. package/dist/schemas/organization-capabilities.schemas.d.ts +355 -0
  61. package/dist/schemas/organization-capabilities.schemas.d.ts.map +1 -0
  62. package/dist/schemas/organization-capabilities.schemas.js +19 -0
  63. package/dist/schemas/organizations.schemas.d.ts +105 -46
  64. package/dist/schemas/organizations.schemas.d.ts.map +1 -1
  65. package/dist/schemas/organizations.schemas.js +8 -1
  66. package/dist/schemas/purchase-orders.schemas.d.ts +1031 -0
  67. package/dist/schemas/purchase-orders.schemas.d.ts.map +1 -0
  68. package/dist/schemas/purchase-orders.schemas.js +49 -0
  69. package/dist/schemas/suppliers.schemas.d.ts +96 -96
  70. package/dist/schemas/team-payments.schemas.d.ts +87 -87
  71. package/dist/schemas/team.schemas.d.ts +137 -20
  72. package/dist/schemas/team.schemas.d.ts.map +1 -1
  73. package/dist/schemas/team.schemas.js +29 -1
  74. package/dist/schemas/trade-cash-events.schemas.d.ts +1524 -0
  75. package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -0
  76. package/dist/schemas/trade-cash-events.schemas.js +131 -0
  77. package/dist/schemas/waybills.schemas.d.ts +177 -9
  78. package/dist/schemas/waybills.schemas.d.ts.map +1 -1
  79. package/dist/schemas/waybills.schemas.js +9 -0
  80. package/package.json +1 -1
@@ -1026,15 +1026,15 @@ export declare const monitoringCacheBuildingResponseSchema: z.ZodObject<{
1026
1026
  farmId: z.ZodOptional<z.ZodString>;
1027
1027
  }, "strip", z.ZodTypeAny, {
1028
1028
  status: "building";
1029
- fieldId: string;
1030
1029
  kind: "terrain" | "soil";
1030
+ fieldId: string;
1031
1031
  jobId: string;
1032
1032
  cacheKey: string;
1033
1033
  farmId?: string | undefined;
1034
1034
  }, {
1035
1035
  status: "building";
1036
- fieldId: string;
1037
1036
  kind: "terrain" | "soil";
1037
+ fieldId: string;
1038
1038
  jobId: string;
1039
1039
  cacheKey: string;
1040
1040
  farmId?: string | undefined;
@@ -3747,14 +3747,14 @@ export declare const cashFlowForecastResponseSchema: z.ZodObject<{
3747
3747
  amount: z.ZodNumber;
3748
3748
  note: z.ZodString;
3749
3749
  }, "strip", z.ZodTypeAny, {
3750
- amount: number;
3751
3750
  kind: "harvest" | "opex" | "capex_excluded" | "not_bearing" | "labor" | "scheduled_inputs";
3751
+ amount: number;
3752
3752
  note: string;
3753
3753
  fieldName?: string | undefined;
3754
3754
  month?: string | undefined;
3755
3755
  }, {
3756
- amount: number;
3757
3756
  kind: "harvest" | "opex" | "capex_excluded" | "not_bearing" | "labor" | "scheduled_inputs";
3757
+ amount: number;
3758
3758
  note: string;
3759
3759
  fieldName?: string | undefined;
3760
3760
  month?: string | undefined;
@@ -3796,8 +3796,8 @@ export declare const cashFlowForecastResponseSchema: z.ZodObject<{
3796
3796
  };
3797
3797
  excludedCapexTotal: number;
3798
3798
  drivers: {
3799
- amount: number;
3800
3799
  kind: "harvest" | "opex" | "capex_excluded" | "not_bearing" | "labor" | "scheduled_inputs";
3800
+ amount: number;
3801
3801
  note: string;
3802
3802
  fieldName?: string | undefined;
3803
3803
  month?: string | undefined;
@@ -3833,8 +3833,8 @@ export declare const cashFlowForecastResponseSchema: z.ZodObject<{
3833
3833
  method?: "field_grounded" | "seasonal_fallback" | undefined;
3834
3834
  excludedCapexTotal?: number | undefined;
3835
3835
  drivers?: {
3836
- amount: number;
3837
3836
  kind: "harvest" | "opex" | "capex_excluded" | "not_bearing" | "labor" | "scheduled_inputs";
3837
+ amount: number;
3838
3838
  note: string;
3839
3839
  fieldName?: string | undefined;
3840
3840
  month?: string | undefined;
@@ -3870,8 +3870,8 @@ export declare const cashFlowForecastResponseSchema: z.ZodObject<{
3870
3870
  };
3871
3871
  excludedCapexTotal: number;
3872
3872
  drivers: {
3873
- amount: number;
3874
3873
  kind: "harvest" | "opex" | "capex_excluded" | "not_bearing" | "labor" | "scheduled_inputs";
3874
+ amount: number;
3875
3875
  note: string;
3876
3876
  fieldName?: string | undefined;
3877
3877
  month?: string | undefined;
@@ -3911,8 +3911,8 @@ export declare const cashFlowForecastResponseSchema: z.ZodObject<{
3911
3911
  method?: "field_grounded" | "seasonal_fallback" | undefined;
3912
3912
  excludedCapexTotal?: number | undefined;
3913
3913
  drivers?: {
3914
- amount: number;
3915
3914
  kind: "harvest" | "opex" | "capex_excluded" | "not_bearing" | "labor" | "scheduled_inputs";
3915
+ amount: number;
3916
3916
  note: string;
3917
3917
  fieldName?: string | undefined;
3918
3918
  month?: string | undefined;
@@ -3950,8 +3950,8 @@ export declare const cashFlowForecastResponseSchema: z.ZodObject<{
3950
3950
  };
3951
3951
  excludedCapexTotal: number;
3952
3952
  drivers: {
3953
- amount: number;
3954
3953
  kind: "harvest" | "opex" | "capex_excluded" | "not_bearing" | "labor" | "scheduled_inputs";
3954
+ amount: number;
3955
3955
  note: string;
3956
3956
  fieldName?: string | undefined;
3957
3957
  month?: string | undefined;
@@ -3993,8 +3993,8 @@ export declare const cashFlowForecastResponseSchema: z.ZodObject<{
3993
3993
  method?: "field_grounded" | "seasonal_fallback" | undefined;
3994
3994
  excludedCapexTotal?: number | undefined;
3995
3995
  drivers?: {
3996
- amount: number;
3997
3996
  kind: "harvest" | "opex" | "capex_excluded" | "not_bearing" | "labor" | "scheduled_inputs";
3997
+ amount: number;
3998
3998
  note: string;
3999
3999
  fieldName?: string | undefined;
4000
4000
  month?: string | undefined;