@deepintel-ltd/farmpro-contracts 1.28.0 → 1.29.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 (47) hide show
  1. package/dist/routes/agents.routes.d.ts +2 -2
  2. package/dist/routes/documents.routes.d.ts +38 -0
  3. package/dist/routes/documents.routes.d.ts.map +1 -1
  4. package/dist/routes/documents.routes.js +3 -1
  5. package/dist/routes/farm-enterprises.routes.d.ts +0 -14
  6. package/dist/routes/farm-enterprises.routes.d.ts.map +1 -1
  7. package/dist/routes/farm-updates.routes.d.ts +17 -0
  8. package/dist/routes/farm-updates.routes.d.ts.map +1 -1
  9. package/dist/routes/farms.routes.d.ts +8 -22
  10. package/dist/routes/farms.routes.d.ts.map +1 -1
  11. package/dist/routes/finance.routes.d.ts +62 -0
  12. package/dist/routes/finance.routes.d.ts.map +1 -1
  13. package/dist/routes/finance.routes.js +4 -1
  14. package/dist/routes/market-intelligence.routes.d.ts +10 -10
  15. package/dist/routes/notifications.routes.d.ts +245 -0
  16. package/dist/routes/notifications.routes.d.ts.map +1 -1
  17. package/dist/routes/notifications.routes.js +25 -0
  18. package/dist/routes/session.routes.d.ts +4 -4
  19. package/dist/routes/tasks.routes.d.ts +45 -0
  20. package/dist/routes/tasks.routes.d.ts.map +1 -1
  21. package/dist/routes/tasks.routes.js +7 -2
  22. package/dist/routes/weather.routes.d.ts +131 -0
  23. package/dist/routes/weather.routes.d.ts.map +1 -1
  24. package/dist/schemas/agents.schemas.d.ts +2 -2
  25. package/dist/schemas/documents.schemas.d.ts +22 -0
  26. package/dist/schemas/documents.schemas.d.ts.map +1 -1
  27. package/dist/schemas/documents.schemas.js +15 -4
  28. package/dist/schemas/farm-enterprises.schemas.d.ts +0 -30
  29. package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
  30. package/dist/schemas/farm-enterprises.schemas.js +0 -1
  31. package/dist/schemas/farm-updates.schemas.d.ts +25 -0
  32. package/dist/schemas/farm-updates.schemas.d.ts.map +1 -1
  33. package/dist/schemas/farm-updates.schemas.js +7 -2
  34. package/dist/schemas/farms.schemas.d.ts +10 -26
  35. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  36. package/dist/schemas/farms.schemas.js +0 -4
  37. package/dist/schemas/finance.schemas.d.ts +68 -0
  38. package/dist/schemas/finance.schemas.d.ts.map +1 -1
  39. package/dist/schemas/finance.schemas.js +45 -27
  40. package/dist/schemas/session.schemas.d.ts +4 -4
  41. package/dist/schemas/tasks.schemas.d.ts +34 -0
  42. package/dist/schemas/tasks.schemas.d.ts.map +1 -1
  43. package/dist/schemas/tasks.schemas.js +40 -19
  44. package/dist/schemas/weather.schemas.d.ts +210 -0
  45. package/dist/schemas/weather.schemas.d.ts.map +1 -1
  46. package/dist/schemas/weather.schemas.js +13 -0
  47. package/package.json +1 -1
@@ -20,7 +20,7 @@ declare const cropPriceProjectionSchema: z.ZodObject<{
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
22
  }, "strip", z.ZodTypeAny, {
23
- source: "farm" | "none" | "farm_recent" | "farm_report" | "platform" | "public";
23
+ source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
24
24
  currency: string;
25
25
  crop: string;
26
26
  unit: string;
@@ -34,7 +34,7 @@ declare const cropPriceProjectionSchema: z.ZodObject<{
34
34
  vsPlatformPercent: number | null;
35
35
  areaHa?: number | null | undefined;
36
36
  }, {
37
- source: "farm" | "none" | "farm_recent" | "farm_report" | "platform" | "public";
37
+ source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
38
38
  currency: string;
39
39
  crop: string;
40
40
  unit: string;
@@ -110,7 +110,7 @@ export declare const marketIntelligenceOverviewSchema: z.ZodObject<{
110
110
  /** Sum of field area (ha) for this crop on the farm; null if unknown / sales-only */
111
111
  areaHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
112
112
  }, "strip", z.ZodTypeAny, {
113
- source: "farm" | "none" | "farm_recent" | "farm_report" | "platform" | "public";
113
+ source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
114
114
  currency: string;
115
115
  crop: string;
116
116
  unit: string;
@@ -124,7 +124,7 @@ export declare const marketIntelligenceOverviewSchema: z.ZodObject<{
124
124
  vsPlatformPercent: number | null;
125
125
  areaHa?: number | null | undefined;
126
126
  }, {
127
- source: "farm" | "none" | "farm_recent" | "farm_report" | "platform" | "public";
127
+ source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
128
128
  currency: string;
129
129
  crop: string;
130
130
  unit: string;
@@ -159,7 +159,7 @@ export declare const marketIntelligenceOverviewSchema: z.ZodObject<{
159
159
  keyTakeaway: string;
160
160
  } | null;
161
161
  priceProjections: {
162
- source: "farm" | "none" | "farm_recent" | "farm_report" | "platform" | "public";
162
+ source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
163
163
  currency: string;
164
164
  crop: string;
165
165
  unit: string;
@@ -193,7 +193,7 @@ export declare const marketIntelligenceOverviewSchema: z.ZodObject<{
193
193
  keyTakeaway: string;
194
194
  } | null;
195
195
  priceProjections: {
196
- source: "farm" | "none" | "farm_recent" | "farm_report" | "platform" | "public";
196
+ source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
197
197
  currency: string;
198
198
  crop: string;
199
199
  unit: string;
@@ -341,7 +341,7 @@ export declare const marketIntelligenceRouter: {
341
341
  /** Sum of field area (ha) for this crop on the farm; null if unknown / sales-only */
342
342
  areaHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
343
343
  }, "strip", z.ZodTypeAny, {
344
- source: "farm" | "none" | "farm_recent" | "farm_report" | "platform" | "public";
344
+ source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
345
345
  currency: string;
346
346
  crop: string;
347
347
  unit: string;
@@ -355,7 +355,7 @@ export declare const marketIntelligenceRouter: {
355
355
  vsPlatformPercent: number | null;
356
356
  areaHa?: number | null | undefined;
357
357
  }, {
358
- source: "farm" | "none" | "farm_recent" | "farm_report" | "platform" | "public";
358
+ source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
359
359
  currency: string;
360
360
  crop: string;
361
361
  unit: string;
@@ -390,7 +390,7 @@ export declare const marketIntelligenceRouter: {
390
390
  keyTakeaway: string;
391
391
  } | null;
392
392
  priceProjections: {
393
- source: "farm" | "none" | "farm_recent" | "farm_report" | "platform" | "public";
393
+ source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
394
394
  currency: string;
395
395
  crop: string;
396
396
  unit: string;
@@ -424,7 +424,7 @@ export declare const marketIntelligenceRouter: {
424
424
  keyTakeaway: string;
425
425
  } | null;
426
426
  priceProjections: {
427
- source: "farm" | "none" | "farm_recent" | "farm_report" | "platform" | "public";
427
+ source: "farm" | "none" | "platform" | "farm_recent" | "farm_report" | "public";
428
428
  currency: string;
429
429
  crop: string;
430
430
  unit: string;
@@ -1346,5 +1346,250 @@ export declare const notificationsRouter: {
1346
1346
  }>;
1347
1347
  };
1348
1348
  };
1349
+ registerDeviceToken: {
1350
+ summary: "Register a mobile push token";
1351
+ method: "POST";
1352
+ body: z.ZodObject<{
1353
+ token: z.ZodString;
1354
+ platform: z.ZodEnum<["ios", "android", "web"]>;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ token: string;
1357
+ platform: "web" | "ios" | "android";
1358
+ }, {
1359
+ token: string;
1360
+ platform: "web" | "ios" | "android";
1361
+ }>;
1362
+ path: "/user/device-tokens";
1363
+ responses: {
1364
+ 200: z.ZodObject<{
1365
+ meta: z.ZodObject<{
1366
+ message: z.ZodString;
1367
+ }, "strip", z.ZodTypeAny, {
1368
+ message: string;
1369
+ }, {
1370
+ message: string;
1371
+ }>;
1372
+ }, "strip", z.ZodTypeAny, {
1373
+ meta: {
1374
+ message: string;
1375
+ };
1376
+ }, {
1377
+ meta: {
1378
+ message: string;
1379
+ };
1380
+ }>;
1381
+ 401: z.ZodObject<{
1382
+ errors: z.ZodArray<z.ZodObject<{
1383
+ id: z.ZodOptional<z.ZodString>;
1384
+ links: z.ZodOptional<z.ZodObject<{
1385
+ about: z.ZodOptional<z.ZodString>;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ about?: string | undefined;
1388
+ }, {
1389
+ about?: string | undefined;
1390
+ }>>;
1391
+ status: z.ZodOptional<z.ZodString>;
1392
+ code: z.ZodOptional<z.ZodString>;
1393
+ title: z.ZodOptional<z.ZodString>;
1394
+ detail: z.ZodOptional<z.ZodString>;
1395
+ source: z.ZodOptional<z.ZodObject<{
1396
+ pointer: z.ZodOptional<z.ZodString>;
1397
+ parameter: z.ZodOptional<z.ZodString>;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ pointer?: string | undefined;
1400
+ parameter?: string | undefined;
1401
+ }, {
1402
+ pointer?: string | undefined;
1403
+ parameter?: string | undefined;
1404
+ }>>;
1405
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1406
+ }, "strip", z.ZodTypeAny, {
1407
+ status?: string | undefined;
1408
+ code?: string | undefined;
1409
+ id?: string | undefined;
1410
+ links?: {
1411
+ about?: string | undefined;
1412
+ } | undefined;
1413
+ meta?: Record<string, unknown> | undefined;
1414
+ title?: string | undefined;
1415
+ detail?: string | undefined;
1416
+ source?: {
1417
+ pointer?: string | undefined;
1418
+ parameter?: string | undefined;
1419
+ } | undefined;
1420
+ }, {
1421
+ status?: string | undefined;
1422
+ code?: string | undefined;
1423
+ id?: string | undefined;
1424
+ links?: {
1425
+ about?: string | undefined;
1426
+ } | undefined;
1427
+ meta?: Record<string, unknown> | undefined;
1428
+ title?: string | undefined;
1429
+ detail?: string | undefined;
1430
+ source?: {
1431
+ pointer?: string | undefined;
1432
+ parameter?: string | undefined;
1433
+ } | undefined;
1434
+ }>, "many">;
1435
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1436
+ }, "strip", z.ZodTypeAny, {
1437
+ errors: {
1438
+ status?: string | undefined;
1439
+ code?: string | undefined;
1440
+ id?: string | undefined;
1441
+ links?: {
1442
+ about?: string | undefined;
1443
+ } | undefined;
1444
+ meta?: Record<string, unknown> | undefined;
1445
+ title?: string | undefined;
1446
+ detail?: string | undefined;
1447
+ source?: {
1448
+ pointer?: string | undefined;
1449
+ parameter?: string | undefined;
1450
+ } | undefined;
1451
+ }[];
1452
+ meta?: Record<string, unknown> | undefined;
1453
+ }, {
1454
+ errors: {
1455
+ status?: string | undefined;
1456
+ code?: string | undefined;
1457
+ id?: string | undefined;
1458
+ links?: {
1459
+ about?: string | undefined;
1460
+ } | undefined;
1461
+ meta?: Record<string, unknown> | undefined;
1462
+ title?: string | undefined;
1463
+ detail?: string | undefined;
1464
+ source?: {
1465
+ pointer?: string | undefined;
1466
+ parameter?: string | undefined;
1467
+ } | undefined;
1468
+ }[];
1469
+ meta?: Record<string, unknown> | undefined;
1470
+ }>;
1471
+ };
1472
+ };
1473
+ deleteDeviceToken: {
1474
+ summary: "Remove a mobile push token";
1475
+ method: "DELETE";
1476
+ body: z.ZodObject<{
1477
+ token: z.ZodString;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ token: string;
1480
+ }, {
1481
+ token: string;
1482
+ }>;
1483
+ path: "/user/device-tokens";
1484
+ responses: {
1485
+ 200: z.ZodObject<{
1486
+ meta: z.ZodObject<{
1487
+ message: z.ZodString;
1488
+ }, "strip", z.ZodTypeAny, {
1489
+ message: string;
1490
+ }, {
1491
+ message: string;
1492
+ }>;
1493
+ }, "strip", z.ZodTypeAny, {
1494
+ meta: {
1495
+ message: string;
1496
+ };
1497
+ }, {
1498
+ meta: {
1499
+ message: string;
1500
+ };
1501
+ }>;
1502
+ 401: z.ZodObject<{
1503
+ errors: z.ZodArray<z.ZodObject<{
1504
+ id: z.ZodOptional<z.ZodString>;
1505
+ links: z.ZodOptional<z.ZodObject<{
1506
+ about: z.ZodOptional<z.ZodString>;
1507
+ }, "strip", z.ZodTypeAny, {
1508
+ about?: string | undefined;
1509
+ }, {
1510
+ about?: string | undefined;
1511
+ }>>;
1512
+ status: z.ZodOptional<z.ZodString>;
1513
+ code: z.ZodOptional<z.ZodString>;
1514
+ title: z.ZodOptional<z.ZodString>;
1515
+ detail: z.ZodOptional<z.ZodString>;
1516
+ source: z.ZodOptional<z.ZodObject<{
1517
+ pointer: z.ZodOptional<z.ZodString>;
1518
+ parameter: z.ZodOptional<z.ZodString>;
1519
+ }, "strip", z.ZodTypeAny, {
1520
+ pointer?: string | undefined;
1521
+ parameter?: string | undefined;
1522
+ }, {
1523
+ pointer?: string | undefined;
1524
+ parameter?: string | undefined;
1525
+ }>>;
1526
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1527
+ }, "strip", z.ZodTypeAny, {
1528
+ status?: string | undefined;
1529
+ code?: string | undefined;
1530
+ id?: string | undefined;
1531
+ links?: {
1532
+ about?: string | undefined;
1533
+ } | undefined;
1534
+ meta?: Record<string, unknown> | undefined;
1535
+ title?: string | undefined;
1536
+ detail?: string | undefined;
1537
+ source?: {
1538
+ pointer?: string | undefined;
1539
+ parameter?: string | undefined;
1540
+ } | undefined;
1541
+ }, {
1542
+ status?: string | undefined;
1543
+ code?: string | undefined;
1544
+ id?: string | undefined;
1545
+ links?: {
1546
+ about?: string | undefined;
1547
+ } | undefined;
1548
+ meta?: Record<string, unknown> | undefined;
1549
+ title?: string | undefined;
1550
+ detail?: string | undefined;
1551
+ source?: {
1552
+ pointer?: string | undefined;
1553
+ parameter?: string | undefined;
1554
+ } | undefined;
1555
+ }>, "many">;
1556
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1557
+ }, "strip", z.ZodTypeAny, {
1558
+ errors: {
1559
+ status?: string | undefined;
1560
+ code?: string | undefined;
1561
+ id?: string | undefined;
1562
+ links?: {
1563
+ about?: string | undefined;
1564
+ } | undefined;
1565
+ meta?: Record<string, unknown> | undefined;
1566
+ title?: string | undefined;
1567
+ detail?: string | undefined;
1568
+ source?: {
1569
+ pointer?: string | undefined;
1570
+ parameter?: string | undefined;
1571
+ } | undefined;
1572
+ }[];
1573
+ meta?: Record<string, unknown> | undefined;
1574
+ }, {
1575
+ errors: {
1576
+ status?: string | undefined;
1577
+ code?: string | undefined;
1578
+ id?: string | undefined;
1579
+ links?: {
1580
+ about?: string | undefined;
1581
+ } | undefined;
1582
+ meta?: Record<string, unknown> | undefined;
1583
+ title?: string | undefined;
1584
+ detail?: string | undefined;
1585
+ source?: {
1586
+ pointer?: string | undefined;
1587
+ parameter?: string | undefined;
1588
+ } | undefined;
1589
+ }[];
1590
+ meta?: Record<string, unknown> | undefined;
1591
+ }>;
1592
+ };
1593
+ };
1349
1594
  };
1350
1595
  //# sourceMappingURL=notifications.routes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.routes.d.ts","sourceRoot":"","sources":["../../src/routes/notifications.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6F9B,CAAC"}
@@ -63,4 +63,29 @@ export const notificationsRouter = c.router({
63
63
  summary: 'Get unread notification count',
64
64
  description: 'Total unread notifications across all farms the user can access, including aggregated sources',
65
65
  },
66
+ registerDeviceToken: {
67
+ method: 'POST',
68
+ path: '/user/device-tokens',
69
+ body: z.object({
70
+ token: z.string().min(8).max(512),
71
+ platform: z.enum(['ios', 'android', 'web']),
72
+ }),
73
+ responses: {
74
+ 200: jsonApiSuccessResponseSchema,
75
+ 401: jsonApiErrorResponseSchema,
76
+ },
77
+ summary: 'Register a mobile push token',
78
+ },
79
+ deleteDeviceToken: {
80
+ method: 'DELETE',
81
+ path: '/user/device-tokens',
82
+ body: z.object({
83
+ token: z.string().min(8).max(512),
84
+ }),
85
+ responses: {
86
+ 200: jsonApiSuccessResponseSchema,
87
+ 401: jsonApiErrorResponseSchema,
88
+ },
89
+ summary: 'Remove a mobile push token',
90
+ },
66
91
  });
@@ -124,12 +124,12 @@ export declare const sessionRouter: {
124
124
  data?: unknown;
125
125
  error?: string | undefined;
126
126
  };
127
- enterprises: {
127
+ farms: {
128
128
  ok: boolean;
129
129
  data?: unknown;
130
130
  error?: string | undefined;
131
131
  };
132
- farms: {
132
+ enterprises: {
133
133
  ok: boolean;
134
134
  data?: unknown;
135
135
  error?: string | undefined;
@@ -165,12 +165,12 @@ export declare const sessionRouter: {
165
165
  data?: unknown;
166
166
  error?: string | undefined;
167
167
  };
168
- enterprises: {
168
+ farms: {
169
169
  ok: boolean;
170
170
  data?: unknown;
171
171
  error?: string | undefined;
172
172
  };
173
- farms: {
173
+ enterprises: {
174
174
  ok: boolean;
175
175
  data?: unknown;
176
176
  error?: string | undefined;