@deepintel-ltd/farmpro-contracts 1.30.1 → 1.33.0

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 (54) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -0
  4. package/dist/routes/auth.routes.d.ts +753 -0
  5. package/dist/routes/auth.routes.d.ts.map +1 -1
  6. package/dist/routes/auth.routes.js +25 -1
  7. package/dist/routes/field-monitoring.routes.d.ts +3 -0
  8. package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
  9. package/dist/routes/finance.routes.d.ts +4 -0
  10. package/dist/routes/finance.routes.d.ts.map +1 -1
  11. package/dist/routes/finance.routes.js +5 -0
  12. package/dist/routes/index.d.ts +3 -0
  13. package/dist/routes/index.d.ts.map +1 -1
  14. package/dist/routes/index.js +2 -0
  15. package/dist/routes/integrations.routes.d.ts +4500 -0
  16. package/dist/routes/integrations.routes.d.ts.map +1 -0
  17. package/dist/routes/integrations.routes.js +189 -0
  18. package/dist/routes/invoices.routes.d.ts +210 -0
  19. package/dist/routes/invoices.routes.d.ts.map +1 -1
  20. package/dist/routes/market-intelligence.routes.d.ts +670 -0
  21. package/dist/routes/market-intelligence.routes.d.ts.map +1 -1
  22. package/dist/routes/market-intelligence.routes.js +52 -0
  23. package/dist/routes/poultry.routes.d.ts +14 -14
  24. package/dist/routes/subscriptions.routes.d.ts +369 -0
  25. package/dist/routes/subscriptions.routes.d.ts.map +1 -1
  26. package/dist/routes/subscriptions.routes.js +22 -1
  27. package/dist/routes/trade-cash-events.routes.d.ts +121 -31
  28. package/dist/routes/trade-cash-events.routes.d.ts.map +1 -1
  29. package/dist/routes/users.routes.d.ts +280 -0
  30. package/dist/routes/users.routes.d.ts.map +1 -1
  31. package/dist/routes/users.routes.js +14 -0
  32. package/dist/schemas/auth.schemas.d.ts +75 -0
  33. package/dist/schemas/auth.schemas.d.ts.map +1 -1
  34. package/dist/schemas/auth.schemas.js +21 -0
  35. package/dist/schemas/farm-enterprises.schemas.d.ts +1 -1
  36. package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
  37. package/dist/schemas/farm-enterprises.schemas.js +1 -1
  38. package/dist/schemas/field-monitoring.schemas.d.ts +4 -0
  39. package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
  40. package/dist/schemas/field-monitoring.schemas.js +2 -0
  41. package/dist/schemas/integrations.schemas.d.ts +717 -0
  42. package/dist/schemas/integrations.schemas.d.ts.map +1 -0
  43. package/dist/schemas/integrations.schemas.js +149 -0
  44. package/dist/schemas/invoices.schemas.d.ts +132 -0
  45. package/dist/schemas/invoices.schemas.d.ts.map +1 -1
  46. package/dist/schemas/invoices.schemas.js +6 -0
  47. package/dist/schemas/locale.schemas.d.ts +2 -2
  48. package/dist/schemas/subscriptions.schemas.d.ts +56 -0
  49. package/dist/schemas/subscriptions.schemas.d.ts.map +1 -1
  50. package/dist/schemas/subscriptions.schemas.js +12 -0
  51. package/dist/schemas/trade-cash-events.schemas.d.ts +101 -31
  52. package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -1
  53. package/dist/schemas/trade-cash-events.schemas.js +13 -0
  54. package/package.json +1 -1
@@ -19,6 +19,29 @@ declare const cropPriceProjectionSchema: z.ZodObject<{
19
19
  vsPlatformPercent: z.ZodNullable<z.ZodNumber>;
20
20
  /** Sum of field area (ha) for this crop on the farm; null if unknown / sales-only */
21
21
  areaHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ /** Live public price (World Bank RTFP / WFP) for the nearest market, when available. */
23
+ publicReference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ price: z.ZodNumber;
25
+ unit: z.ZodString;
26
+ source: z.ZodString;
27
+ market: z.ZodNullable<z.ZodString>;
28
+ observedAt: z.ZodString;
29
+ distanceKm: z.ZodNullable<z.ZodNumber>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ source: string;
32
+ unit: string;
33
+ price: number;
34
+ market: string | null;
35
+ observedAt: string;
36
+ distanceKm: number | null;
37
+ }, {
38
+ source: string;
39
+ unit: string;
40
+ price: number;
41
+ market: string | null;
42
+ observedAt: string;
43
+ distanceKm: number | null;
44
+ }>>>;
22
45
  }, "strip", z.ZodTypeAny, {
23
46
  source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
24
47
  currency: string;
@@ -33,6 +56,14 @@ declare const cropPriceProjectionSchema: z.ZodObject<{
33
56
  projectedPrice: number | null;
34
57
  vsPlatformPercent: number | null;
35
58
  areaHa?: number | null | undefined;
59
+ publicReference?: {
60
+ source: string;
61
+ unit: string;
62
+ price: number;
63
+ market: string | null;
64
+ observedAt: string;
65
+ distanceKm: number | null;
66
+ } | null | undefined;
36
67
  }, {
37
68
  source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
38
69
  currency: string;
@@ -47,6 +78,14 @@ declare const cropPriceProjectionSchema: z.ZodObject<{
47
78
  projectedPrice: number | null;
48
79
  vsPlatformPercent: number | null;
49
80
  areaHa?: number | null | undefined;
81
+ publicReference?: {
82
+ source: string;
83
+ unit: string;
84
+ price: number;
85
+ market: string | null;
86
+ observedAt: string;
87
+ distanceKm: number | null;
88
+ } | null | undefined;
50
89
  }>;
51
90
  export declare const marketIntelligenceOverviewSchema: z.ZodObject<{
52
91
  farmId: z.ZodString;
@@ -109,6 +148,29 @@ export declare const marketIntelligenceOverviewSchema: z.ZodObject<{
109
148
  vsPlatformPercent: z.ZodNullable<z.ZodNumber>;
110
149
  /** Sum of field area (ha) for this crop on the farm; null if unknown / sales-only */
111
150
  areaHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
151
+ /** Live public price (World Bank RTFP / WFP) for the nearest market, when available. */
152
+ publicReference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
153
+ price: z.ZodNumber;
154
+ unit: z.ZodString;
155
+ source: z.ZodString;
156
+ market: z.ZodNullable<z.ZodString>;
157
+ observedAt: z.ZodString;
158
+ distanceKm: z.ZodNullable<z.ZodNumber>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ source: string;
161
+ unit: string;
162
+ price: number;
163
+ market: string | null;
164
+ observedAt: string;
165
+ distanceKm: number | null;
166
+ }, {
167
+ source: string;
168
+ unit: string;
169
+ price: number;
170
+ market: string | null;
171
+ observedAt: string;
172
+ distanceKm: number | null;
173
+ }>>>;
112
174
  }, "strip", z.ZodTypeAny, {
113
175
  source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
114
176
  currency: string;
@@ -123,6 +185,14 @@ export declare const marketIntelligenceOverviewSchema: z.ZodObject<{
123
185
  projectedPrice: number | null;
124
186
  vsPlatformPercent: number | null;
125
187
  areaHa?: number | null | undefined;
188
+ publicReference?: {
189
+ source: string;
190
+ unit: string;
191
+ price: number;
192
+ market: string | null;
193
+ observedAt: string;
194
+ distanceKm: number | null;
195
+ } | null | undefined;
126
196
  }, {
127
197
  source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
128
198
  currency: string;
@@ -137,6 +207,14 @@ export declare const marketIntelligenceOverviewSchema: z.ZodObject<{
137
207
  projectedPrice: number | null;
138
208
  vsPlatformPercent: number | null;
139
209
  areaHa?: number | null | undefined;
210
+ publicReference?: {
211
+ source: string;
212
+ unit: string;
213
+ price: number;
214
+ market: string | null;
215
+ observedAt: string;
216
+ distanceKm: number | null;
217
+ } | null | undefined;
140
218
  }>, "many">;
141
219
  eudrAlertTitle: z.ZodNullable<z.ZodString>;
142
220
  updatedAt: z.ZodString;
@@ -172,6 +250,14 @@ export declare const marketIntelligenceOverviewSchema: z.ZodObject<{
172
250
  projectedPrice: number | null;
173
251
  vsPlatformPercent: number | null;
174
252
  areaHa?: number | null | undefined;
253
+ publicReference?: {
254
+ source: string;
255
+ unit: string;
256
+ price: number;
257
+ market: string | null;
258
+ observedAt: string;
259
+ distanceKm: number | null;
260
+ } | null | undefined;
175
261
  }[];
176
262
  eudrAlertTitle: string | null;
177
263
  }, {
@@ -206,6 +292,14 @@ export declare const marketIntelligenceOverviewSchema: z.ZodObject<{
206
292
  projectedPrice: number | null;
207
293
  vsPlatformPercent: number | null;
208
294
  areaHa?: number | null | undefined;
295
+ publicReference?: {
296
+ source: string;
297
+ unit: string;
298
+ price: number;
299
+ market: string | null;
300
+ observedAt: string;
301
+ distanceKm: number | null;
302
+ } | null | undefined;
209
303
  }[];
210
304
  eudrAlertTitle: string | null;
211
305
  }>;
@@ -265,6 +359,165 @@ export declare const marketPriceReportSchema: z.ZodObject<{
265
359
  marketLabel: string | null;
266
360
  cropKey: string;
267
361
  }>;
362
+ export declare const marketPriceTrendSchema: z.ZodObject<{
363
+ data: z.ZodNullable<z.ZodObject<{
364
+ commodityKey: z.ZodString;
365
+ label: z.ZodString;
366
+ market: z.ZodString;
367
+ scope: z.ZodEnum<["market", "zone", "national"]>;
368
+ distanceKm: z.ZodNullable<z.ZodNumber>;
369
+ unit: z.ZodString;
370
+ currency: z.ZodString;
371
+ latest: z.ZodObject<{
372
+ month: z.ZodString;
373
+ price: z.ZodNumber;
374
+ observed: z.ZodBoolean;
375
+ }, "strip", z.ZodTypeAny, {
376
+ month: string;
377
+ price: number;
378
+ observed: boolean;
379
+ }, {
380
+ month: string;
381
+ price: number;
382
+ observed: boolean;
383
+ }>;
384
+ previousMonthPrice: z.ZodNullable<z.ZodNumber>;
385
+ yearAgoPrice: z.ZodNullable<z.ZodNumber>;
386
+ sameMonth3yAverage: z.ZodNullable<z.ZodNumber>;
387
+ vsSameMonth3yPercent: z.ZodNullable<z.ZodNumber>;
388
+ changeYoYPercent: z.ZodNullable<z.ZodNumber>;
389
+ series: z.ZodArray<z.ZodObject<{
390
+ month: z.ZodString;
391
+ price: z.ZodNumber;
392
+ }, "strip", z.ZodTypeAny, {
393
+ month: string;
394
+ price: number;
395
+ }, {
396
+ month: string;
397
+ price: number;
398
+ }>, "many">;
399
+ }, "strip", z.ZodTypeAny, {
400
+ currency: string;
401
+ unit: string;
402
+ label: string;
403
+ market: string;
404
+ distanceKm: number | null;
405
+ commodityKey: string;
406
+ scope: "zone" | "market" | "national";
407
+ latest: {
408
+ month: string;
409
+ price: number;
410
+ observed: boolean;
411
+ };
412
+ previousMonthPrice: number | null;
413
+ yearAgoPrice: number | null;
414
+ sameMonth3yAverage: number | null;
415
+ vsSameMonth3yPercent: number | null;
416
+ changeYoYPercent: number | null;
417
+ series: {
418
+ month: string;
419
+ price: number;
420
+ }[];
421
+ }, {
422
+ currency: string;
423
+ unit: string;
424
+ label: string;
425
+ market: string;
426
+ distanceKm: number | null;
427
+ commodityKey: string;
428
+ scope: "zone" | "market" | "national";
429
+ latest: {
430
+ month: string;
431
+ price: number;
432
+ observed: boolean;
433
+ };
434
+ previousMonthPrice: number | null;
435
+ yearAgoPrice: number | null;
436
+ sameMonth3yAverage: number | null;
437
+ vsSameMonth3yPercent: number | null;
438
+ changeYoYPercent: number | null;
439
+ series: {
440
+ month: string;
441
+ price: number;
442
+ }[];
443
+ }>>;
444
+ provenance: z.ZodNullable<z.ZodObject<{
445
+ provider: z.ZodString;
446
+ retrievedAt: z.ZodString;
447
+ licence: z.ZodString;
448
+ confidence: z.ZodNumber;
449
+ }, "strip", z.ZodTypeAny, {
450
+ confidence: number;
451
+ provider: string;
452
+ retrievedAt: string;
453
+ licence: string;
454
+ }, {
455
+ confidence: number;
456
+ provider: string;
457
+ retrievedAt: string;
458
+ licence: string;
459
+ }>>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ data: {
462
+ currency: string;
463
+ unit: string;
464
+ label: string;
465
+ market: string;
466
+ distanceKm: number | null;
467
+ commodityKey: string;
468
+ scope: "zone" | "market" | "national";
469
+ latest: {
470
+ month: string;
471
+ price: number;
472
+ observed: boolean;
473
+ };
474
+ previousMonthPrice: number | null;
475
+ yearAgoPrice: number | null;
476
+ sameMonth3yAverage: number | null;
477
+ vsSameMonth3yPercent: number | null;
478
+ changeYoYPercent: number | null;
479
+ series: {
480
+ month: string;
481
+ price: number;
482
+ }[];
483
+ } | null;
484
+ provenance: {
485
+ confidence: number;
486
+ provider: string;
487
+ retrievedAt: string;
488
+ licence: string;
489
+ } | null;
490
+ }, {
491
+ data: {
492
+ currency: string;
493
+ unit: string;
494
+ label: string;
495
+ market: string;
496
+ distanceKm: number | null;
497
+ commodityKey: string;
498
+ scope: "zone" | "market" | "national";
499
+ latest: {
500
+ month: string;
501
+ price: number;
502
+ observed: boolean;
503
+ };
504
+ previousMonthPrice: number | null;
505
+ yearAgoPrice: number | null;
506
+ sameMonth3yAverage: number | null;
507
+ vsSameMonth3yPercent: number | null;
508
+ changeYoYPercent: number | null;
509
+ series: {
510
+ month: string;
511
+ price: number;
512
+ }[];
513
+ } | null;
514
+ provenance: {
515
+ confidence: number;
516
+ provider: string;
517
+ retrievedAt: string;
518
+ licence: string;
519
+ } | null;
520
+ }>;
268
521
  export declare const marketIntelligenceRouter: {
269
522
  getOverview: {
270
523
  pathParams: z.ZodObject<{
@@ -340,6 +593,29 @@ export declare const marketIntelligenceRouter: {
340
593
  vsPlatformPercent: z.ZodNullable<z.ZodNumber>;
341
594
  /** Sum of field area (ha) for this crop on the farm; null if unknown / sales-only */
342
595
  areaHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
596
+ /** Live public price (World Bank RTFP / WFP) for the nearest market, when available. */
597
+ publicReference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
598
+ price: z.ZodNumber;
599
+ unit: z.ZodString;
600
+ source: z.ZodString;
601
+ market: z.ZodNullable<z.ZodString>;
602
+ observedAt: z.ZodString;
603
+ distanceKm: z.ZodNullable<z.ZodNumber>;
604
+ }, "strip", z.ZodTypeAny, {
605
+ source: string;
606
+ unit: string;
607
+ price: number;
608
+ market: string | null;
609
+ observedAt: string;
610
+ distanceKm: number | null;
611
+ }, {
612
+ source: string;
613
+ unit: string;
614
+ price: number;
615
+ market: string | null;
616
+ observedAt: string;
617
+ distanceKm: number | null;
618
+ }>>>;
343
619
  }, "strip", z.ZodTypeAny, {
344
620
  source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
345
621
  currency: string;
@@ -354,6 +630,14 @@ export declare const marketIntelligenceRouter: {
354
630
  projectedPrice: number | null;
355
631
  vsPlatformPercent: number | null;
356
632
  areaHa?: number | null | undefined;
633
+ publicReference?: {
634
+ source: string;
635
+ unit: string;
636
+ price: number;
637
+ market: string | null;
638
+ observedAt: string;
639
+ distanceKm: number | null;
640
+ } | null | undefined;
357
641
  }, {
358
642
  source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
359
643
  currency: string;
@@ -368,6 +652,14 @@ export declare const marketIntelligenceRouter: {
368
652
  projectedPrice: number | null;
369
653
  vsPlatformPercent: number | null;
370
654
  areaHa?: number | null | undefined;
655
+ publicReference?: {
656
+ source: string;
657
+ unit: string;
658
+ price: number;
659
+ market: string | null;
660
+ observedAt: string;
661
+ distanceKm: number | null;
662
+ } | null | undefined;
371
663
  }>, "many">;
372
664
  eudrAlertTitle: z.ZodNullable<z.ZodString>;
373
665
  updatedAt: z.ZodString;
@@ -403,6 +695,14 @@ export declare const marketIntelligenceRouter: {
403
695
  projectedPrice: number | null;
404
696
  vsPlatformPercent: number | null;
405
697
  areaHa?: number | null | undefined;
698
+ publicReference?: {
699
+ source: string;
700
+ unit: string;
701
+ price: number;
702
+ market: string | null;
703
+ observedAt: string;
704
+ distanceKm: number | null;
705
+ } | null | undefined;
406
706
  }[];
407
707
  eudrAlertTitle: string | null;
408
708
  }, {
@@ -437,6 +737,14 @@ export declare const marketIntelligenceRouter: {
437
737
  projectedPrice: number | null;
438
738
  vsPlatformPercent: number | null;
439
739
  areaHa?: number | null | undefined;
740
+ publicReference?: {
741
+ source: string;
742
+ unit: string;
743
+ price: number;
744
+ market: string | null;
745
+ observedAt: string;
746
+ distanceKm: number | null;
747
+ } | null | undefined;
440
748
  }[];
441
749
  eudrAlertTitle: string | null;
442
750
  }>;
@@ -1406,10 +1714,372 @@ export declare const marketIntelligenceRouter: {
1406
1714
  }>;
1407
1715
  };
1408
1716
  };
1717
+ getPriceTrend: {
1718
+ pathParams: z.ZodObject<{
1719
+ farmId: z.ZodString;
1720
+ }, "strip", z.ZodTypeAny, {
1721
+ farmId: string;
1722
+ }, {
1723
+ farmId: string;
1724
+ }>;
1725
+ query: z.ZodObject<{
1726
+ crop: z.ZodString;
1727
+ }, "strip", z.ZodTypeAny, {
1728
+ crop: string;
1729
+ }, {
1730
+ crop: string;
1731
+ }>;
1732
+ summary: "Public market price trend for a crop near the farm";
1733
+ description: "Nearest World Bank RTFP / WFP market series: latest month, vs last year, vs the 3-year same-month average. data is null when no feed covers the crop.";
1734
+ method: "GET";
1735
+ path: "/farms/:farmId/market-intelligence/price-trend";
1736
+ responses: {
1737
+ 200: z.ZodObject<{
1738
+ data: z.ZodNullable<z.ZodObject<{
1739
+ commodityKey: z.ZodString;
1740
+ label: z.ZodString;
1741
+ market: z.ZodString;
1742
+ scope: z.ZodEnum<["market", "zone", "national"]>;
1743
+ distanceKm: z.ZodNullable<z.ZodNumber>;
1744
+ unit: z.ZodString;
1745
+ currency: z.ZodString;
1746
+ latest: z.ZodObject<{
1747
+ month: z.ZodString;
1748
+ price: z.ZodNumber;
1749
+ observed: z.ZodBoolean;
1750
+ }, "strip", z.ZodTypeAny, {
1751
+ month: string;
1752
+ price: number;
1753
+ observed: boolean;
1754
+ }, {
1755
+ month: string;
1756
+ price: number;
1757
+ observed: boolean;
1758
+ }>;
1759
+ previousMonthPrice: z.ZodNullable<z.ZodNumber>;
1760
+ yearAgoPrice: z.ZodNullable<z.ZodNumber>;
1761
+ sameMonth3yAverage: z.ZodNullable<z.ZodNumber>;
1762
+ vsSameMonth3yPercent: z.ZodNullable<z.ZodNumber>;
1763
+ changeYoYPercent: z.ZodNullable<z.ZodNumber>;
1764
+ series: z.ZodArray<z.ZodObject<{
1765
+ month: z.ZodString;
1766
+ price: z.ZodNumber;
1767
+ }, "strip", z.ZodTypeAny, {
1768
+ month: string;
1769
+ price: number;
1770
+ }, {
1771
+ month: string;
1772
+ price: number;
1773
+ }>, "many">;
1774
+ }, "strip", z.ZodTypeAny, {
1775
+ currency: string;
1776
+ unit: string;
1777
+ label: string;
1778
+ market: string;
1779
+ distanceKm: number | null;
1780
+ commodityKey: string;
1781
+ scope: "zone" | "market" | "national";
1782
+ latest: {
1783
+ month: string;
1784
+ price: number;
1785
+ observed: boolean;
1786
+ };
1787
+ previousMonthPrice: number | null;
1788
+ yearAgoPrice: number | null;
1789
+ sameMonth3yAverage: number | null;
1790
+ vsSameMonth3yPercent: number | null;
1791
+ changeYoYPercent: number | null;
1792
+ series: {
1793
+ month: string;
1794
+ price: number;
1795
+ }[];
1796
+ }, {
1797
+ currency: string;
1798
+ unit: string;
1799
+ label: string;
1800
+ market: string;
1801
+ distanceKm: number | null;
1802
+ commodityKey: string;
1803
+ scope: "zone" | "market" | "national";
1804
+ latest: {
1805
+ month: string;
1806
+ price: number;
1807
+ observed: boolean;
1808
+ };
1809
+ previousMonthPrice: number | null;
1810
+ yearAgoPrice: number | null;
1811
+ sameMonth3yAverage: number | null;
1812
+ vsSameMonth3yPercent: number | null;
1813
+ changeYoYPercent: number | null;
1814
+ series: {
1815
+ month: string;
1816
+ price: number;
1817
+ }[];
1818
+ }>>;
1819
+ provenance: z.ZodNullable<z.ZodObject<{
1820
+ provider: z.ZodString;
1821
+ retrievedAt: z.ZodString;
1822
+ licence: z.ZodString;
1823
+ confidence: z.ZodNumber;
1824
+ }, "strip", z.ZodTypeAny, {
1825
+ confidence: number;
1826
+ provider: string;
1827
+ retrievedAt: string;
1828
+ licence: string;
1829
+ }, {
1830
+ confidence: number;
1831
+ provider: string;
1832
+ retrievedAt: string;
1833
+ licence: string;
1834
+ }>>;
1835
+ }, "strip", z.ZodTypeAny, {
1836
+ data: {
1837
+ currency: string;
1838
+ unit: string;
1839
+ label: string;
1840
+ market: string;
1841
+ distanceKm: number | null;
1842
+ commodityKey: string;
1843
+ scope: "zone" | "market" | "national";
1844
+ latest: {
1845
+ month: string;
1846
+ price: number;
1847
+ observed: boolean;
1848
+ };
1849
+ previousMonthPrice: number | null;
1850
+ yearAgoPrice: number | null;
1851
+ sameMonth3yAverage: number | null;
1852
+ vsSameMonth3yPercent: number | null;
1853
+ changeYoYPercent: number | null;
1854
+ series: {
1855
+ month: string;
1856
+ price: number;
1857
+ }[];
1858
+ } | null;
1859
+ provenance: {
1860
+ confidence: number;
1861
+ provider: string;
1862
+ retrievedAt: string;
1863
+ licence: string;
1864
+ } | null;
1865
+ }, {
1866
+ data: {
1867
+ currency: string;
1868
+ unit: string;
1869
+ label: string;
1870
+ market: string;
1871
+ distanceKm: number | null;
1872
+ commodityKey: string;
1873
+ scope: "zone" | "market" | "national";
1874
+ latest: {
1875
+ month: string;
1876
+ price: number;
1877
+ observed: boolean;
1878
+ };
1879
+ previousMonthPrice: number | null;
1880
+ yearAgoPrice: number | null;
1881
+ sameMonth3yAverage: number | null;
1882
+ vsSameMonth3yPercent: number | null;
1883
+ changeYoYPercent: number | null;
1884
+ series: {
1885
+ month: string;
1886
+ price: number;
1887
+ }[];
1888
+ } | null;
1889
+ provenance: {
1890
+ confidence: number;
1891
+ provider: string;
1892
+ retrievedAt: string;
1893
+ licence: string;
1894
+ } | null;
1895
+ }>;
1896
+ 401: z.ZodObject<{
1897
+ errors: z.ZodArray<z.ZodObject<{
1898
+ id: z.ZodOptional<z.ZodString>;
1899
+ links: z.ZodOptional<z.ZodObject<{
1900
+ about: z.ZodOptional<z.ZodString>;
1901
+ }, "strip", z.ZodTypeAny, {
1902
+ about?: string | undefined;
1903
+ }, {
1904
+ about?: string | undefined;
1905
+ }>>;
1906
+ status: z.ZodOptional<z.ZodString>;
1907
+ code: z.ZodOptional<z.ZodString>;
1908
+ title: z.ZodOptional<z.ZodString>;
1909
+ detail: z.ZodOptional<z.ZodString>;
1910
+ source: z.ZodOptional<z.ZodObject<{
1911
+ pointer: z.ZodOptional<z.ZodString>;
1912
+ parameter: z.ZodOptional<z.ZodString>;
1913
+ }, "strip", z.ZodTypeAny, {
1914
+ pointer?: string | undefined;
1915
+ parameter?: string | undefined;
1916
+ }, {
1917
+ pointer?: string | undefined;
1918
+ parameter?: string | undefined;
1919
+ }>>;
1920
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1921
+ }, "strip", z.ZodTypeAny, {
1922
+ status?: string | undefined;
1923
+ code?: string | undefined;
1924
+ id?: string | undefined;
1925
+ links?: {
1926
+ about?: string | undefined;
1927
+ } | undefined;
1928
+ meta?: Record<string, unknown> | undefined;
1929
+ title?: string | undefined;
1930
+ detail?: string | undefined;
1931
+ source?: {
1932
+ pointer?: string | undefined;
1933
+ parameter?: string | undefined;
1934
+ } | undefined;
1935
+ }, {
1936
+ status?: string | undefined;
1937
+ code?: string | undefined;
1938
+ id?: string | undefined;
1939
+ links?: {
1940
+ about?: string | undefined;
1941
+ } | undefined;
1942
+ meta?: Record<string, unknown> | undefined;
1943
+ title?: string | undefined;
1944
+ detail?: string | undefined;
1945
+ source?: {
1946
+ pointer?: string | undefined;
1947
+ parameter?: string | undefined;
1948
+ } | undefined;
1949
+ }>, "many">;
1950
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1951
+ }, "strip", z.ZodTypeAny, {
1952
+ errors: {
1953
+ status?: string | undefined;
1954
+ code?: string | undefined;
1955
+ id?: string | undefined;
1956
+ links?: {
1957
+ about?: string | undefined;
1958
+ } | undefined;
1959
+ meta?: Record<string, unknown> | undefined;
1960
+ title?: string | undefined;
1961
+ detail?: string | undefined;
1962
+ source?: {
1963
+ pointer?: string | undefined;
1964
+ parameter?: string | undefined;
1965
+ } | undefined;
1966
+ }[];
1967
+ meta?: Record<string, unknown> | undefined;
1968
+ }, {
1969
+ errors: {
1970
+ status?: string | undefined;
1971
+ code?: string | undefined;
1972
+ id?: string | undefined;
1973
+ links?: {
1974
+ about?: string | undefined;
1975
+ } | undefined;
1976
+ meta?: Record<string, unknown> | undefined;
1977
+ title?: string | undefined;
1978
+ detail?: string | undefined;
1979
+ source?: {
1980
+ pointer?: string | undefined;
1981
+ parameter?: string | undefined;
1982
+ } | undefined;
1983
+ }[];
1984
+ meta?: Record<string, unknown> | undefined;
1985
+ }>;
1986
+ 404: z.ZodObject<{
1987
+ errors: z.ZodArray<z.ZodObject<{
1988
+ id: z.ZodOptional<z.ZodString>;
1989
+ links: z.ZodOptional<z.ZodObject<{
1990
+ about: z.ZodOptional<z.ZodString>;
1991
+ }, "strip", z.ZodTypeAny, {
1992
+ about?: string | undefined;
1993
+ }, {
1994
+ about?: string | undefined;
1995
+ }>>;
1996
+ status: z.ZodOptional<z.ZodString>;
1997
+ code: z.ZodOptional<z.ZodString>;
1998
+ title: z.ZodOptional<z.ZodString>;
1999
+ detail: z.ZodOptional<z.ZodString>;
2000
+ source: z.ZodOptional<z.ZodObject<{
2001
+ pointer: z.ZodOptional<z.ZodString>;
2002
+ parameter: z.ZodOptional<z.ZodString>;
2003
+ }, "strip", z.ZodTypeAny, {
2004
+ pointer?: string | undefined;
2005
+ parameter?: string | undefined;
2006
+ }, {
2007
+ pointer?: string | undefined;
2008
+ parameter?: string | undefined;
2009
+ }>>;
2010
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2011
+ }, "strip", z.ZodTypeAny, {
2012
+ status?: string | undefined;
2013
+ code?: string | undefined;
2014
+ id?: string | undefined;
2015
+ links?: {
2016
+ about?: string | undefined;
2017
+ } | undefined;
2018
+ meta?: Record<string, unknown> | undefined;
2019
+ title?: string | undefined;
2020
+ detail?: string | undefined;
2021
+ source?: {
2022
+ pointer?: string | undefined;
2023
+ parameter?: string | undefined;
2024
+ } | undefined;
2025
+ }, {
2026
+ status?: string | undefined;
2027
+ code?: string | undefined;
2028
+ id?: string | undefined;
2029
+ links?: {
2030
+ about?: string | undefined;
2031
+ } | undefined;
2032
+ meta?: Record<string, unknown> | undefined;
2033
+ title?: string | undefined;
2034
+ detail?: string | undefined;
2035
+ source?: {
2036
+ pointer?: string | undefined;
2037
+ parameter?: string | undefined;
2038
+ } | undefined;
2039
+ }>, "many">;
2040
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2041
+ }, "strip", z.ZodTypeAny, {
2042
+ errors: {
2043
+ status?: string | undefined;
2044
+ code?: string | undefined;
2045
+ id?: string | undefined;
2046
+ links?: {
2047
+ about?: string | undefined;
2048
+ } | undefined;
2049
+ meta?: Record<string, unknown> | undefined;
2050
+ title?: string | undefined;
2051
+ detail?: string | undefined;
2052
+ source?: {
2053
+ pointer?: string | undefined;
2054
+ parameter?: string | undefined;
2055
+ } | undefined;
2056
+ }[];
2057
+ meta?: Record<string, unknown> | undefined;
2058
+ }, {
2059
+ errors: {
2060
+ status?: string | undefined;
2061
+ code?: string | undefined;
2062
+ id?: string | undefined;
2063
+ links?: {
2064
+ about?: string | undefined;
2065
+ } | undefined;
2066
+ meta?: Record<string, unknown> | undefined;
2067
+ title?: string | undefined;
2068
+ detail?: string | undefined;
2069
+ source?: {
2070
+ pointer?: string | undefined;
2071
+ parameter?: string | undefined;
2072
+ } | undefined;
2073
+ }[];
2074
+ meta?: Record<string, unknown> | undefined;
2075
+ }>;
2076
+ };
2077
+ };
1409
2078
  };
1410
2079
  export type MarketIntelligenceRouter = typeof marketIntelligenceRouter;
1411
2080
  export type CropPriceProjection = z.infer<typeof cropPriceProjectionSchema>;
1412
2081
  export type CreateMarketPriceReport = z.infer<typeof createMarketPriceReportSchema>;
1413
2082
  export type MarketPriceReportDto = z.infer<typeof marketPriceReportSchema>;
2083
+ export type MarketPriceTrendResponse = z.infer<typeof marketPriceTrendSchema>;
1414
2084
  export {};
1415
2085
  //# sourceMappingURL=market-intelligence.routes.d.ts.map