@deepintel-ltd/farmpro-contracts 1.10.0 → 1.10.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.
|
@@ -1498,5 +1498,353 @@ export declare const adminRouter: {
|
|
|
1498
1498
|
}>;
|
|
1499
1499
|
};
|
|
1500
1500
|
};
|
|
1501
|
+
sendPlatformDigest: {
|
|
1502
|
+
summary: "Send platform digest now";
|
|
1503
|
+
description: "Send the previous-month platform digest email. Restricted to ADMIN_EMAILS.";
|
|
1504
|
+
method: "POST";
|
|
1505
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1506
|
+
path: "/admin/platform-digest/send";
|
|
1507
|
+
responses: {
|
|
1508
|
+
200: z.ZodObject<{
|
|
1509
|
+
data: z.ZodObject<{
|
|
1510
|
+
type: z.ZodLiteral<"platform-digest">;
|
|
1511
|
+
id: z.ZodString;
|
|
1512
|
+
attributes: z.ZodObject<{
|
|
1513
|
+
periodLabel: z.ZodString;
|
|
1514
|
+
recipients: z.ZodArray<z.ZodString, "many">;
|
|
1515
|
+
totalUsers: z.ZodNumber;
|
|
1516
|
+
activeUsers: z.ZodNumber;
|
|
1517
|
+
totalTransactionCount: z.ZodNumber;
|
|
1518
|
+
}, "strip", z.ZodTypeAny, {
|
|
1519
|
+
periodLabel: string;
|
|
1520
|
+
recipients: string[];
|
|
1521
|
+
totalUsers: number;
|
|
1522
|
+
activeUsers: number;
|
|
1523
|
+
totalTransactionCount: number;
|
|
1524
|
+
}, {
|
|
1525
|
+
periodLabel: string;
|
|
1526
|
+
recipients: string[];
|
|
1527
|
+
totalUsers: number;
|
|
1528
|
+
activeUsers: number;
|
|
1529
|
+
totalTransactionCount: number;
|
|
1530
|
+
}>;
|
|
1531
|
+
}, "strip", z.ZodTypeAny, {
|
|
1532
|
+
type: "platform-digest";
|
|
1533
|
+
id: string;
|
|
1534
|
+
attributes: {
|
|
1535
|
+
periodLabel: string;
|
|
1536
|
+
recipients: string[];
|
|
1537
|
+
totalUsers: number;
|
|
1538
|
+
activeUsers: number;
|
|
1539
|
+
totalTransactionCount: number;
|
|
1540
|
+
};
|
|
1541
|
+
}, {
|
|
1542
|
+
type: "platform-digest";
|
|
1543
|
+
id: string;
|
|
1544
|
+
attributes: {
|
|
1545
|
+
periodLabel: string;
|
|
1546
|
+
recipients: string[];
|
|
1547
|
+
totalUsers: number;
|
|
1548
|
+
activeUsers: number;
|
|
1549
|
+
totalTransactionCount: number;
|
|
1550
|
+
};
|
|
1551
|
+
}>;
|
|
1552
|
+
}, "strip", z.ZodTypeAny, {
|
|
1553
|
+
data: {
|
|
1554
|
+
type: "platform-digest";
|
|
1555
|
+
id: string;
|
|
1556
|
+
attributes: {
|
|
1557
|
+
periodLabel: string;
|
|
1558
|
+
recipients: string[];
|
|
1559
|
+
totalUsers: number;
|
|
1560
|
+
activeUsers: number;
|
|
1561
|
+
totalTransactionCount: number;
|
|
1562
|
+
};
|
|
1563
|
+
};
|
|
1564
|
+
}, {
|
|
1565
|
+
data: {
|
|
1566
|
+
type: "platform-digest";
|
|
1567
|
+
id: string;
|
|
1568
|
+
attributes: {
|
|
1569
|
+
periodLabel: string;
|
|
1570
|
+
recipients: string[];
|
|
1571
|
+
totalUsers: number;
|
|
1572
|
+
activeUsers: number;
|
|
1573
|
+
totalTransactionCount: number;
|
|
1574
|
+
};
|
|
1575
|
+
};
|
|
1576
|
+
}>;
|
|
1577
|
+
401: z.ZodObject<{
|
|
1578
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1579
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1580
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1581
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1582
|
+
}, "strip", z.ZodTypeAny, {
|
|
1583
|
+
about?: string | undefined;
|
|
1584
|
+
}, {
|
|
1585
|
+
about?: string | undefined;
|
|
1586
|
+
}>>;
|
|
1587
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1588
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1589
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1590
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1592
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1593
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1594
|
+
}, "strip", z.ZodTypeAny, {
|
|
1595
|
+
pointer?: string | undefined;
|
|
1596
|
+
parameter?: string | undefined;
|
|
1597
|
+
}, {
|
|
1598
|
+
pointer?: string | undefined;
|
|
1599
|
+
parameter?: string | undefined;
|
|
1600
|
+
}>>;
|
|
1601
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1602
|
+
}, "strip", z.ZodTypeAny, {
|
|
1603
|
+
status?: string | undefined;
|
|
1604
|
+
code?: string | undefined;
|
|
1605
|
+
id?: string | undefined;
|
|
1606
|
+
links?: {
|
|
1607
|
+
about?: string | undefined;
|
|
1608
|
+
} | undefined;
|
|
1609
|
+
meta?: Record<string, unknown> | undefined;
|
|
1610
|
+
title?: string | undefined;
|
|
1611
|
+
detail?: string | undefined;
|
|
1612
|
+
source?: {
|
|
1613
|
+
pointer?: string | undefined;
|
|
1614
|
+
parameter?: string | undefined;
|
|
1615
|
+
} | undefined;
|
|
1616
|
+
}, {
|
|
1617
|
+
status?: string | undefined;
|
|
1618
|
+
code?: string | undefined;
|
|
1619
|
+
id?: string | undefined;
|
|
1620
|
+
links?: {
|
|
1621
|
+
about?: string | undefined;
|
|
1622
|
+
} | undefined;
|
|
1623
|
+
meta?: Record<string, unknown> | undefined;
|
|
1624
|
+
title?: string | undefined;
|
|
1625
|
+
detail?: string | undefined;
|
|
1626
|
+
source?: {
|
|
1627
|
+
pointer?: string | undefined;
|
|
1628
|
+
parameter?: string | undefined;
|
|
1629
|
+
} | undefined;
|
|
1630
|
+
}>, "many">;
|
|
1631
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1632
|
+
}, "strip", z.ZodTypeAny, {
|
|
1633
|
+
errors: {
|
|
1634
|
+
status?: string | undefined;
|
|
1635
|
+
code?: string | undefined;
|
|
1636
|
+
id?: string | undefined;
|
|
1637
|
+
links?: {
|
|
1638
|
+
about?: string | undefined;
|
|
1639
|
+
} | undefined;
|
|
1640
|
+
meta?: Record<string, unknown> | undefined;
|
|
1641
|
+
title?: string | undefined;
|
|
1642
|
+
detail?: string | undefined;
|
|
1643
|
+
source?: {
|
|
1644
|
+
pointer?: string | undefined;
|
|
1645
|
+
parameter?: string | undefined;
|
|
1646
|
+
} | undefined;
|
|
1647
|
+
}[];
|
|
1648
|
+
meta?: Record<string, unknown> | undefined;
|
|
1649
|
+
}, {
|
|
1650
|
+
errors: {
|
|
1651
|
+
status?: string | undefined;
|
|
1652
|
+
code?: string | undefined;
|
|
1653
|
+
id?: string | undefined;
|
|
1654
|
+
links?: {
|
|
1655
|
+
about?: string | undefined;
|
|
1656
|
+
} | undefined;
|
|
1657
|
+
meta?: Record<string, unknown> | undefined;
|
|
1658
|
+
title?: string | undefined;
|
|
1659
|
+
detail?: string | undefined;
|
|
1660
|
+
source?: {
|
|
1661
|
+
pointer?: string | undefined;
|
|
1662
|
+
parameter?: string | undefined;
|
|
1663
|
+
} | undefined;
|
|
1664
|
+
}[];
|
|
1665
|
+
meta?: Record<string, unknown> | undefined;
|
|
1666
|
+
}>;
|
|
1667
|
+
403: z.ZodObject<{
|
|
1668
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1669
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1670
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1671
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1672
|
+
}, "strip", z.ZodTypeAny, {
|
|
1673
|
+
about?: string | undefined;
|
|
1674
|
+
}, {
|
|
1675
|
+
about?: string | undefined;
|
|
1676
|
+
}>>;
|
|
1677
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1681
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1682
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1683
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1684
|
+
}, "strip", z.ZodTypeAny, {
|
|
1685
|
+
pointer?: string | undefined;
|
|
1686
|
+
parameter?: string | undefined;
|
|
1687
|
+
}, {
|
|
1688
|
+
pointer?: string | undefined;
|
|
1689
|
+
parameter?: string | undefined;
|
|
1690
|
+
}>>;
|
|
1691
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1692
|
+
}, "strip", z.ZodTypeAny, {
|
|
1693
|
+
status?: string | undefined;
|
|
1694
|
+
code?: string | undefined;
|
|
1695
|
+
id?: string | undefined;
|
|
1696
|
+
links?: {
|
|
1697
|
+
about?: string | undefined;
|
|
1698
|
+
} | undefined;
|
|
1699
|
+
meta?: Record<string, unknown> | undefined;
|
|
1700
|
+
title?: string | undefined;
|
|
1701
|
+
detail?: string | undefined;
|
|
1702
|
+
source?: {
|
|
1703
|
+
pointer?: string | undefined;
|
|
1704
|
+
parameter?: string | undefined;
|
|
1705
|
+
} | undefined;
|
|
1706
|
+
}, {
|
|
1707
|
+
status?: string | undefined;
|
|
1708
|
+
code?: string | undefined;
|
|
1709
|
+
id?: string | undefined;
|
|
1710
|
+
links?: {
|
|
1711
|
+
about?: string | undefined;
|
|
1712
|
+
} | undefined;
|
|
1713
|
+
meta?: Record<string, unknown> | undefined;
|
|
1714
|
+
title?: string | undefined;
|
|
1715
|
+
detail?: string | undefined;
|
|
1716
|
+
source?: {
|
|
1717
|
+
pointer?: string | undefined;
|
|
1718
|
+
parameter?: string | undefined;
|
|
1719
|
+
} | undefined;
|
|
1720
|
+
}>, "many">;
|
|
1721
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1722
|
+
}, "strip", z.ZodTypeAny, {
|
|
1723
|
+
errors: {
|
|
1724
|
+
status?: string | undefined;
|
|
1725
|
+
code?: string | undefined;
|
|
1726
|
+
id?: string | undefined;
|
|
1727
|
+
links?: {
|
|
1728
|
+
about?: string | undefined;
|
|
1729
|
+
} | undefined;
|
|
1730
|
+
meta?: Record<string, unknown> | undefined;
|
|
1731
|
+
title?: string | undefined;
|
|
1732
|
+
detail?: string | undefined;
|
|
1733
|
+
source?: {
|
|
1734
|
+
pointer?: string | undefined;
|
|
1735
|
+
parameter?: string | undefined;
|
|
1736
|
+
} | undefined;
|
|
1737
|
+
}[];
|
|
1738
|
+
meta?: Record<string, unknown> | undefined;
|
|
1739
|
+
}, {
|
|
1740
|
+
errors: {
|
|
1741
|
+
status?: string | undefined;
|
|
1742
|
+
code?: string | undefined;
|
|
1743
|
+
id?: string | undefined;
|
|
1744
|
+
links?: {
|
|
1745
|
+
about?: string | undefined;
|
|
1746
|
+
} | undefined;
|
|
1747
|
+
meta?: Record<string, unknown> | undefined;
|
|
1748
|
+
title?: string | undefined;
|
|
1749
|
+
detail?: string | undefined;
|
|
1750
|
+
source?: {
|
|
1751
|
+
pointer?: string | undefined;
|
|
1752
|
+
parameter?: string | undefined;
|
|
1753
|
+
} | undefined;
|
|
1754
|
+
}[];
|
|
1755
|
+
meta?: Record<string, unknown> | undefined;
|
|
1756
|
+
}>;
|
|
1757
|
+
500: z.ZodObject<{
|
|
1758
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1759
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1760
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1761
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1762
|
+
}, "strip", z.ZodTypeAny, {
|
|
1763
|
+
about?: string | undefined;
|
|
1764
|
+
}, {
|
|
1765
|
+
about?: string | undefined;
|
|
1766
|
+
}>>;
|
|
1767
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1768
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1769
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1770
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1771
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1772
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1773
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1774
|
+
}, "strip", z.ZodTypeAny, {
|
|
1775
|
+
pointer?: string | undefined;
|
|
1776
|
+
parameter?: string | undefined;
|
|
1777
|
+
}, {
|
|
1778
|
+
pointer?: string | undefined;
|
|
1779
|
+
parameter?: string | undefined;
|
|
1780
|
+
}>>;
|
|
1781
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1782
|
+
}, "strip", z.ZodTypeAny, {
|
|
1783
|
+
status?: string | undefined;
|
|
1784
|
+
code?: string | undefined;
|
|
1785
|
+
id?: string | undefined;
|
|
1786
|
+
links?: {
|
|
1787
|
+
about?: string | undefined;
|
|
1788
|
+
} | undefined;
|
|
1789
|
+
meta?: Record<string, unknown> | undefined;
|
|
1790
|
+
title?: string | undefined;
|
|
1791
|
+
detail?: string | undefined;
|
|
1792
|
+
source?: {
|
|
1793
|
+
pointer?: string | undefined;
|
|
1794
|
+
parameter?: string | undefined;
|
|
1795
|
+
} | undefined;
|
|
1796
|
+
}, {
|
|
1797
|
+
status?: string | undefined;
|
|
1798
|
+
code?: string | undefined;
|
|
1799
|
+
id?: string | undefined;
|
|
1800
|
+
links?: {
|
|
1801
|
+
about?: string | undefined;
|
|
1802
|
+
} | undefined;
|
|
1803
|
+
meta?: Record<string, unknown> | undefined;
|
|
1804
|
+
title?: string | undefined;
|
|
1805
|
+
detail?: string | undefined;
|
|
1806
|
+
source?: {
|
|
1807
|
+
pointer?: string | undefined;
|
|
1808
|
+
parameter?: string | undefined;
|
|
1809
|
+
} | undefined;
|
|
1810
|
+
}>, "many">;
|
|
1811
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1812
|
+
}, "strip", z.ZodTypeAny, {
|
|
1813
|
+
errors: {
|
|
1814
|
+
status?: string | undefined;
|
|
1815
|
+
code?: string | undefined;
|
|
1816
|
+
id?: string | undefined;
|
|
1817
|
+
links?: {
|
|
1818
|
+
about?: string | undefined;
|
|
1819
|
+
} | undefined;
|
|
1820
|
+
meta?: Record<string, unknown> | undefined;
|
|
1821
|
+
title?: string | undefined;
|
|
1822
|
+
detail?: string | undefined;
|
|
1823
|
+
source?: {
|
|
1824
|
+
pointer?: string | undefined;
|
|
1825
|
+
parameter?: string | undefined;
|
|
1826
|
+
} | undefined;
|
|
1827
|
+
}[];
|
|
1828
|
+
meta?: Record<string, unknown> | undefined;
|
|
1829
|
+
}, {
|
|
1830
|
+
errors: {
|
|
1831
|
+
status?: string | undefined;
|
|
1832
|
+
code?: string | undefined;
|
|
1833
|
+
id?: string | undefined;
|
|
1834
|
+
links?: {
|
|
1835
|
+
about?: string | undefined;
|
|
1836
|
+
} | undefined;
|
|
1837
|
+
meta?: Record<string, unknown> | undefined;
|
|
1838
|
+
title?: string | undefined;
|
|
1839
|
+
detail?: string | undefined;
|
|
1840
|
+
source?: {
|
|
1841
|
+
pointer?: string | undefined;
|
|
1842
|
+
parameter?: string | undefined;
|
|
1843
|
+
} | undefined;
|
|
1844
|
+
}[];
|
|
1845
|
+
meta?: Record<string, unknown> | undefined;
|
|
1846
|
+
}>;
|
|
1847
|
+
};
|
|
1848
|
+
};
|
|
1501
1849
|
};
|
|
1502
1850
|
//# sourceMappingURL=admin.routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.routes.d.ts","sourceRoot":"","sources":["../../src/routes/admin.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3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description: 'Provision a platform user with email and password. Restricted to ADMIN_EMAILS.',
|
|
39
39
|
},
|
|
40
|
+
sendPlatformDigest: {
|
|
41
|
+
method: 'POST',
|
|
42
|
+
path: '/admin/platform-digest/send',
|
|
43
|
+
body: z.object({}),
|
|
44
|
+
responses: {
|
|
45
|
+
200: z.object({
|
|
46
|
+
data: z.object({
|
|
47
|
+
type: z.literal('platform-digest'),
|
|
48
|
+
id: z.string(),
|
|
49
|
+
attributes: z.object({
|
|
50
|
+
periodLabel: z.string(),
|
|
51
|
+
recipients: z.array(z.string().email()),
|
|
52
|
+
totalUsers: z.number(),
|
|
53
|
+
activeUsers: z.number(),
|
|
54
|
+
totalTransactionCount: z.number(),
|
|
55
|
+
}),
|
|
56
|
+
}),
|
|
57
|
+
}),
|
|
58
|
+
401: jsonApiErrorResponseSchema,
|
|
59
|
+
403: jsonApiErrorResponseSchema,
|
|
60
|
+
500: jsonApiErrorResponseSchema,
|
|
61
|
+
},
|
|
62
|
+
summary: 'Send platform digest now',
|
|
63
|
+
description: 'Send the previous-month platform digest email. Restricted to ADMIN_EMAILS.',
|
|
64
|
+
},
|
|
40
65
|
});
|