@deepintel-ltd/farmpro-contracts 1.23.0 → 1.23.2

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 (53) hide show
  1. package/dist/routes/categories.routes.d.ts +26 -26
  2. package/dist/routes/commodity-deals.routes.d.ts +42 -42
  3. package/dist/routes/crop-profile.routes.d.ts +8 -8
  4. package/dist/routes/farm-enterprises.routes.d.ts +395 -0
  5. package/dist/routes/farm-enterprises.routes.d.ts.map +1 -1
  6. package/dist/routes/farm-enterprises.routes.js +14 -1
  7. package/dist/routes/farms.routes.d.ts +73 -20
  8. package/dist/routes/farms.routes.d.ts.map +1 -1
  9. package/dist/routes/fertigation.routes.d.ts +96 -96
  10. package/dist/routes/field-monitoring.routes.d.ts +2 -2
  11. package/dist/routes/finance.routes.d.ts +8 -8
  12. package/dist/routes/invoices.routes.d.ts +63 -60
  13. package/dist/routes/invoices.routes.d.ts.map +1 -1
  14. package/dist/routes/invoices.routes.js +4 -1
  15. package/dist/routes/monitoring-visualization.routes.d.ts +2 -2
  16. package/dist/routes/notifications.routes.d.ts +12 -12
  17. package/dist/routes/organizations.routes.d.ts +90 -47
  18. package/dist/routes/organizations.routes.d.ts.map +1 -1
  19. package/dist/routes/purchase-orders.routes.d.ts +9 -9
  20. package/dist/routes/suppliers.routes.d.ts +96 -96
  21. package/dist/routes/team-payments.routes.d.ts +105 -105
  22. package/dist/routes/team.routes.d.ts +125 -25
  23. package/dist/routes/team.routes.d.ts.map +1 -1
  24. package/dist/routes/trade-cash-events.routes.d.ts +46 -46
  25. package/dist/routes/waybills.routes.d.ts +61 -57
  26. package/dist/routes/waybills.routes.d.ts.map +1 -1
  27. package/dist/routes/waybills.routes.js +4 -1
  28. package/dist/schemas/categories.schemas.d.ts +21 -21
  29. package/dist/schemas/commodity-deals.schemas.d.ts +18 -18
  30. package/dist/schemas/crop-profile.schemas.d.ts +12 -12
  31. package/dist/schemas/farm-enterprises.schemas.d.ts +185 -0
  32. package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
  33. package/dist/schemas/farm-enterprises.schemas.js +21 -0
  34. package/dist/schemas/farms.schemas.d.ts +121 -19
  35. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  36. package/dist/schemas/farms.schemas.js +15 -1
  37. package/dist/schemas/fertigation.schemas.d.ts +36 -36
  38. package/dist/schemas/field-monitoring.schemas.d.ts +2 -2
  39. package/dist/schemas/finance.schemas.d.ts +8 -8
  40. package/dist/schemas/invoices.schemas.d.ts +39 -39
  41. package/dist/schemas/notifications.schemas.d.ts +18 -18
  42. package/dist/schemas/organizations.schemas.d.ts +105 -46
  43. package/dist/schemas/organizations.schemas.d.ts.map +1 -1
  44. package/dist/schemas/organizations.schemas.js +8 -1
  45. package/dist/schemas/purchase-orders.schemas.d.ts +9 -9
  46. package/dist/schemas/suppliers.schemas.d.ts +96 -96
  47. package/dist/schemas/team-payments.schemas.d.ts +87 -87
  48. package/dist/schemas/team.schemas.d.ts +137 -20
  49. package/dist/schemas/team.schemas.d.ts.map +1 -1
  50. package/dist/schemas/team.schemas.js +29 -1
  51. package/dist/schemas/trade-cash-events.schemas.d.ts +60 -60
  52. package/dist/schemas/waybills.schemas.d.ts +39 -39
  53. package/package.json +1 -1
@@ -59,11 +59,11 @@ export declare const tradeCashEventsRouter: {
59
59
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
+ organizationId: string;
62
63
  currency: string;
63
64
  occurredAt: string;
64
65
  amount: number;
65
- organizationId: string;
66
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
66
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
67
67
  partyId: string;
68
68
  method?: string | null | undefined;
69
69
  notes?: string | null | undefined;
@@ -75,10 +75,10 @@ export declare const tradeCashEventsRouter: {
75
75
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
76
76
  createdAt: string;
77
77
  updatedAt: string;
78
+ organizationId: string;
78
79
  occurredAt: string;
79
80
  amount: number;
80
- organizationId: string;
81
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
81
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
82
82
  partyId: string;
83
83
  method?: string | null | undefined;
84
84
  currency?: string | undefined;
@@ -98,11 +98,11 @@ export declare const tradeCashEventsRouter: {
98
98
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
99
99
  createdAt: string;
100
100
  updatedAt: string;
101
+ organizationId: string;
101
102
  currency: string;
102
103
  occurredAt: string;
103
104
  amount: number;
104
- organizationId: string;
105
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
105
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
106
106
  partyId: string;
107
107
  method?: string | null | undefined;
108
108
  notes?: string | null | undefined;
@@ -121,10 +121,10 @@ export declare const tradeCashEventsRouter: {
121
121
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
122
122
  createdAt: string;
123
123
  updatedAt: string;
124
+ organizationId: string;
124
125
  occurredAt: string;
125
126
  amount: number;
126
- organizationId: string;
127
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
127
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
128
128
  partyId: string;
129
129
  method?: string | null | undefined;
130
130
  currency?: string | undefined;
@@ -170,11 +170,11 @@ export declare const tradeCashEventsRouter: {
170
170
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
171
171
  createdAt: string;
172
172
  updatedAt: string;
173
+ organizationId: string;
173
174
  currency: string;
174
175
  occurredAt: string;
175
176
  amount: number;
176
- organizationId: string;
177
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
177
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
178
178
  partyId: string;
179
179
  method?: string | null | undefined;
180
180
  notes?: string | null | undefined;
@@ -205,10 +205,10 @@ export declare const tradeCashEventsRouter: {
205
205
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
206
206
  createdAt: string;
207
207
  updatedAt: string;
208
+ organizationId: string;
208
209
  occurredAt: string;
209
210
  amount: number;
210
- organizationId: string;
211
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
211
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
212
212
  partyId: string;
213
213
  method?: string | null | undefined;
214
214
  currency?: string | undefined;
@@ -536,7 +536,7 @@ export declare const tradeCashEventsRouter: {
536
536
  currency: string;
537
537
  occurredAt: string;
538
538
  amount: number;
539
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
539
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
540
540
  partyId: string;
541
541
  method?: string | null | undefined;
542
542
  notes?: string | null | undefined;
@@ -548,7 +548,7 @@ export declare const tradeCashEventsRouter: {
548
548
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
549
549
  occurredAt: string;
550
550
  amount: number;
551
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
551
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
552
552
  partyId: string;
553
553
  method?: string | null | undefined;
554
554
  currency?: string | undefined;
@@ -565,7 +565,7 @@ export declare const tradeCashEventsRouter: {
565
565
  currency: string;
566
566
  occurredAt: string;
567
567
  amount: number;
568
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
568
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
569
569
  partyId: string;
570
570
  method?: string | null | undefined;
571
571
  notes?: string | null | undefined;
@@ -580,7 +580,7 @@ export declare const tradeCashEventsRouter: {
580
580
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
581
581
  occurredAt: string;
582
582
  amount: number;
583
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
583
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
584
584
  partyId: string;
585
585
  method?: string | null | undefined;
586
586
  currency?: string | undefined;
@@ -599,7 +599,7 @@ export declare const tradeCashEventsRouter: {
599
599
  currency: string;
600
600
  occurredAt: string;
601
601
  amount: number;
602
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
602
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
603
603
  partyId: string;
604
604
  method?: string | null | undefined;
605
605
  notes?: string | null | undefined;
@@ -616,7 +616,7 @@ export declare const tradeCashEventsRouter: {
616
616
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
617
617
  occurredAt: string;
618
618
  amount: number;
619
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
619
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
620
620
  partyId: string;
621
621
  method?: string | null | undefined;
622
622
  currency?: string | undefined;
@@ -655,11 +655,11 @@ export declare const tradeCashEventsRouter: {
655
655
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
656
656
  createdAt: string;
657
657
  updatedAt: string;
658
+ organizationId: string;
658
659
  currency: string;
659
660
  occurredAt: string;
660
661
  amount: number;
661
- organizationId: string;
662
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
662
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
663
663
  partyId: string;
664
664
  method?: string | null | undefined;
665
665
  notes?: string | null | undefined;
@@ -671,10 +671,10 @@ export declare const tradeCashEventsRouter: {
671
671
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
672
672
  createdAt: string;
673
673
  updatedAt: string;
674
+ organizationId: string;
674
675
  occurredAt: string;
675
676
  amount: number;
676
- organizationId: string;
677
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
677
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
678
678
  partyId: string;
679
679
  method?: string | null | undefined;
680
680
  currency?: string | undefined;
@@ -694,11 +694,11 @@ export declare const tradeCashEventsRouter: {
694
694
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
695
695
  createdAt: string;
696
696
  updatedAt: string;
697
+ organizationId: string;
697
698
  currency: string;
698
699
  occurredAt: string;
699
700
  amount: number;
700
- organizationId: string;
701
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
701
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
702
702
  partyId: string;
703
703
  method?: string | null | undefined;
704
704
  notes?: string | null | undefined;
@@ -717,10 +717,10 @@ export declare const tradeCashEventsRouter: {
717
717
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
718
718
  createdAt: string;
719
719
  updatedAt: string;
720
+ organizationId: string;
720
721
  occurredAt: string;
721
722
  amount: number;
722
- organizationId: string;
723
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
723
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
724
724
  partyId: string;
725
725
  method?: string | null | undefined;
726
726
  currency?: string | undefined;
@@ -766,11 +766,11 @@ export declare const tradeCashEventsRouter: {
766
766
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
767
767
  createdAt: string;
768
768
  updatedAt: string;
769
+ organizationId: string;
769
770
  currency: string;
770
771
  occurredAt: string;
771
772
  amount: number;
772
- organizationId: string;
773
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
773
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
774
774
  partyId: string;
775
775
  method?: string | null | undefined;
776
776
  notes?: string | null | undefined;
@@ -801,10 +801,10 @@ export declare const tradeCashEventsRouter: {
801
801
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
802
802
  createdAt: string;
803
803
  updatedAt: string;
804
+ organizationId: string;
804
805
  occurredAt: string;
805
806
  amount: number;
806
- organizationId: string;
807
- partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
807
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
808
808
  partyId: string;
809
809
  method?: string | null | undefined;
810
810
  currency?: string | undefined;
@@ -2774,11 +2774,11 @@ export declare const tradeCashEventsRouter: {
2774
2774
  } & {
2775
2775
  invoiceId: z.ZodString;
2776
2776
  }, "strip", z.ZodTypeAny, {
2777
- invoiceId: string;
2778
2777
  organizationId: string;
2779
- }, {
2780
2778
  invoiceId: string;
2779
+ }, {
2781
2780
  organizationId: string;
2781
+ invoiceId: string;
2782
2782
  }>;
2783
2783
  summary: "List payments on an invoice";
2784
2784
  method: "GET";
@@ -2803,21 +2803,21 @@ export declare const tradeCashEventsRouter: {
2803
2803
  }, "strip", z.ZodTypeAny, {
2804
2804
  createdAt: string;
2805
2805
  updatedAt: string;
2806
+ organizationId: string;
2806
2807
  currency: string;
2807
2808
  occurredAt: string;
2808
2809
  amount: number;
2809
2810
  invoiceId: string;
2810
- organizationId: string;
2811
2811
  method?: string | null | undefined;
2812
2812
  notes?: string | null | undefined;
2813
2813
  reference?: string | null | undefined;
2814
2814
  }, {
2815
2815
  createdAt: string;
2816
2816
  updatedAt: string;
2817
+ organizationId: string;
2817
2818
  occurredAt: string;
2818
2819
  amount: number;
2819
2820
  invoiceId: string;
2820
- organizationId: string;
2821
2821
  method?: string | null | undefined;
2822
2822
  currency?: string | undefined;
2823
2823
  notes?: string | null | undefined;
@@ -2832,11 +2832,11 @@ export declare const tradeCashEventsRouter: {
2832
2832
  attributes: {
2833
2833
  createdAt: string;
2834
2834
  updatedAt: string;
2835
+ organizationId: string;
2835
2836
  currency: string;
2836
2837
  occurredAt: string;
2837
2838
  amount: number;
2838
2839
  invoiceId: string;
2839
- organizationId: string;
2840
2840
  method?: string | null | undefined;
2841
2841
  notes?: string | null | undefined;
2842
2842
  reference?: string | null | undefined;
@@ -2850,10 +2850,10 @@ export declare const tradeCashEventsRouter: {
2850
2850
  attributes: {
2851
2851
  createdAt: string;
2852
2852
  updatedAt: string;
2853
+ organizationId: string;
2853
2854
  occurredAt: string;
2854
2855
  amount: number;
2855
2856
  invoiceId: string;
2856
- organizationId: string;
2857
2857
  method?: string | null | undefined;
2858
2858
  currency?: string | undefined;
2859
2859
  notes?: string | null | undefined;
@@ -2894,11 +2894,11 @@ export declare const tradeCashEventsRouter: {
2894
2894
  attributes: {
2895
2895
  createdAt: string;
2896
2896
  updatedAt: string;
2897
+ organizationId: string;
2897
2898
  currency: string;
2898
2899
  occurredAt: string;
2899
2900
  amount: number;
2900
2901
  invoiceId: string;
2901
- organizationId: string;
2902
2902
  method?: string | null | undefined;
2903
2903
  notes?: string | null | undefined;
2904
2904
  reference?: string | null | undefined;
@@ -2924,10 +2924,10 @@ export declare const tradeCashEventsRouter: {
2924
2924
  attributes: {
2925
2925
  createdAt: string;
2926
2926
  updatedAt: string;
2927
+ organizationId: string;
2927
2928
  occurredAt: string;
2928
2929
  amount: number;
2929
2930
  invoiceId: string;
2930
- organizationId: string;
2931
2931
  method?: string | null | undefined;
2932
2932
  currency?: string | undefined;
2933
2933
  notes?: string | null | undefined;
@@ -3226,11 +3226,11 @@ export declare const tradeCashEventsRouter: {
3226
3226
  } & {
3227
3227
  invoiceId: z.ZodString;
3228
3228
  }, "strip", z.ZodTypeAny, {
3229
- invoiceId: string;
3230
3229
  organizationId: string;
3231
- }, {
3232
3230
  invoiceId: string;
3231
+ }, {
3233
3232
  organizationId: string;
3233
+ invoiceId: string;
3234
3234
  }>;
3235
3235
  summary: "Record a (partial) buyer payment on an invoice";
3236
3236
  method: "POST";
@@ -3326,21 +3326,21 @@ export declare const tradeCashEventsRouter: {
3326
3326
  }, "strip", z.ZodTypeAny, {
3327
3327
  createdAt: string;
3328
3328
  updatedAt: string;
3329
+ organizationId: string;
3329
3330
  currency: string;
3330
3331
  occurredAt: string;
3331
3332
  amount: number;
3332
3333
  invoiceId: string;
3333
- organizationId: string;
3334
3334
  method?: string | null | undefined;
3335
3335
  notes?: string | null | undefined;
3336
3336
  reference?: string | null | undefined;
3337
3337
  }, {
3338
3338
  createdAt: string;
3339
3339
  updatedAt: string;
3340
+ organizationId: string;
3340
3341
  occurredAt: string;
3341
3342
  amount: number;
3342
3343
  invoiceId: string;
3343
- organizationId: string;
3344
3344
  method?: string | null | undefined;
3345
3345
  currency?: string | undefined;
3346
3346
  notes?: string | null | undefined;
@@ -3355,11 +3355,11 @@ export declare const tradeCashEventsRouter: {
3355
3355
  attributes: {
3356
3356
  createdAt: string;
3357
3357
  updatedAt: string;
3358
+ organizationId: string;
3358
3359
  currency: string;
3359
3360
  occurredAt: string;
3360
3361
  amount: number;
3361
3362
  invoiceId: string;
3362
- organizationId: string;
3363
3363
  method?: string | null | undefined;
3364
3364
  notes?: string | null | undefined;
3365
3365
  reference?: string | null | undefined;
@@ -3373,10 +3373,10 @@ export declare const tradeCashEventsRouter: {
3373
3373
  attributes: {
3374
3374
  createdAt: string;
3375
3375
  updatedAt: string;
3376
+ organizationId: string;
3376
3377
  occurredAt: string;
3377
3378
  amount: number;
3378
3379
  invoiceId: string;
3379
- organizationId: string;
3380
3380
  method?: string | null | undefined;
3381
3381
  currency?: string | undefined;
3382
3382
  notes?: string | null | undefined;
@@ -3417,11 +3417,11 @@ export declare const tradeCashEventsRouter: {
3417
3417
  attributes: {
3418
3418
  createdAt: string;
3419
3419
  updatedAt: string;
3420
+ organizationId: string;
3420
3421
  currency: string;
3421
3422
  occurredAt: string;
3422
3423
  amount: number;
3423
3424
  invoiceId: string;
3424
- organizationId: string;
3425
3425
  method?: string | null | undefined;
3426
3426
  notes?: string | null | undefined;
3427
3427
  reference?: string | null | undefined;
@@ -3447,10 +3447,10 @@ export declare const tradeCashEventsRouter: {
3447
3447
  attributes: {
3448
3448
  createdAt: string;
3449
3449
  updatedAt: string;
3450
+ organizationId: string;
3450
3451
  occurredAt: string;
3451
3452
  amount: number;
3452
3453
  invoiceId: string;
3453
- organizationId: string;
3454
3454
  method?: string | null | undefined;
3455
3455
  currency?: string | undefined;
3456
3456
  notes?: string | null | undefined;