reportify-sdk 0.3.19 → 0.3.20
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.
- package/dist/index.d.mts +132 -120
- package/dist/index.d.ts +132 -120
- package/dist/index.js +191 -180
- package/dist/index.mjs +190 -180
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1522,6 +1522,122 @@ declare class UserModule {
|
|
|
1522
1522
|
symbol: string;
|
|
1523
1523
|
success: boolean;
|
|
1524
1524
|
}>;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
* Search Module
|
|
1529
|
+
*
|
|
1530
|
+
* Provides document search functionality across various categories.
|
|
1531
|
+
*/
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* Search module for document search functionality.
|
|
1535
|
+
*
|
|
1536
|
+
* @example
|
|
1537
|
+
* ```typescript
|
|
1538
|
+
* const results = await client.search.all('Tesla earnings');
|
|
1539
|
+
* const news = await client.search.news('Apple iPhone');
|
|
1540
|
+
* ```
|
|
1541
|
+
*/
|
|
1542
|
+
declare class SearchModule {
|
|
1543
|
+
private client;
|
|
1544
|
+
constructor(client: Reportify);
|
|
1545
|
+
/**
|
|
1546
|
+
* Search documents across all categories
|
|
1547
|
+
*
|
|
1548
|
+
* @param query - Search query string
|
|
1549
|
+
* @param options - Search options
|
|
1550
|
+
* @returns List of matching documents
|
|
1551
|
+
*/
|
|
1552
|
+
all(query: string, options?: SearchOptions): Promise<Document[]>;
|
|
1553
|
+
/**
|
|
1554
|
+
* Search news articles
|
|
1555
|
+
*/
|
|
1556
|
+
news(query: string, options?: SearchOptions): Promise<Document[]>;
|
|
1557
|
+
/**
|
|
1558
|
+
* Search research reports
|
|
1559
|
+
*/
|
|
1560
|
+
reports(query: string, options?: SearchOptions): Promise<Document[]>;
|
|
1561
|
+
/**
|
|
1562
|
+
* Search company filings
|
|
1563
|
+
*
|
|
1564
|
+
* @param query - Search query string
|
|
1565
|
+
* @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
|
|
1566
|
+
* @param options - Search options
|
|
1567
|
+
*/
|
|
1568
|
+
filings(query: string, symbols: string[], options?: Omit<SearchOptions, 'symbols' | 'categories' | 'industries' | 'channelIds'>): Promise<Document[]>;
|
|
1569
|
+
/**
|
|
1570
|
+
* Search for earnings-related conference call transcripts and presentation slides.
|
|
1571
|
+
* Query is optional - if not provided, returns documents in reverse chronological order;
|
|
1572
|
+
* if provided, results are sorted by relevance by default.
|
|
1573
|
+
*
|
|
1574
|
+
* @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
|
|
1575
|
+
* @param options - Search options including query, fiscal year/quarter filters, and sort order
|
|
1576
|
+
*/
|
|
1577
|
+
conferenceCalls(symbols: string[], options?: EarningsSearchOptions & {
|
|
1578
|
+
query?: string;
|
|
1579
|
+
}): Promise<Document[]>;
|
|
1580
|
+
/**
|
|
1581
|
+
* Search for earnings-related documents submitted to exchanges, including quarterly reports,
|
|
1582
|
+
* semi-annual reports, and annual reports. Query is optional - if not provided, returns
|
|
1583
|
+
* documents in reverse chronological order; if provided, results are sorted by relevance by default.
|
|
1584
|
+
*
|
|
1585
|
+
* @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
|
|
1586
|
+
* @param options - Search options including query, fiscal year/quarter filters, and sort order
|
|
1587
|
+
*/
|
|
1588
|
+
earningsPack(symbols: string[], options?: EarningsSearchOptions & {
|
|
1589
|
+
query?: string;
|
|
1590
|
+
}): Promise<Document[]>;
|
|
1591
|
+
/**
|
|
1592
|
+
* Search conference calls and IR (Investor Relations) meetings
|
|
1593
|
+
*/
|
|
1594
|
+
minutes(query: string, options?: SearchOptions): Promise<Document[]>;
|
|
1595
|
+
/**
|
|
1596
|
+
* Search social media content
|
|
1597
|
+
*/
|
|
1598
|
+
socials(query: string, options?: SearchOptions): Promise<Document[]>;
|
|
1599
|
+
/**
|
|
1600
|
+
* Search webpage content
|
|
1601
|
+
*/
|
|
1602
|
+
webpages(query: string, options?: Omit<SearchOptions, 'symbols' | 'categories' | 'industries' | 'channelIds'>): Promise<Document[]>;
|
|
1603
|
+
/**
|
|
1604
|
+
* Crawl web content from given URLs.
|
|
1605
|
+
*
|
|
1606
|
+
* @param urls Array of URLs to get contents for
|
|
1607
|
+
* @param options Options for text, highlights, summary, subpages, etc.
|
|
1608
|
+
* @returns CrawlResponse Promise with extracted results and statuses
|
|
1609
|
+
*/
|
|
1610
|
+
crawl(urls: string[], options?: {
|
|
1611
|
+
text?: boolean | {
|
|
1612
|
+
max_characters?: number;
|
|
1613
|
+
include_html_tags?: boolean;
|
|
1614
|
+
verbosity?: 'compact' | 'full';
|
|
1615
|
+
};
|
|
1616
|
+
highlights?: {
|
|
1617
|
+
query?: string;
|
|
1618
|
+
max_characters?: number;
|
|
1619
|
+
num_sentences?: number;
|
|
1620
|
+
highlights_per_url?: number;
|
|
1621
|
+
};
|
|
1622
|
+
summary?: {
|
|
1623
|
+
query?: string;
|
|
1624
|
+
};
|
|
1625
|
+
subpages?: number;
|
|
1626
|
+
subpage_target?: string[];
|
|
1627
|
+
max_age_hours?: number;
|
|
1628
|
+
livecrawl_timeout?: number;
|
|
1629
|
+
}): Promise<any>;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* Following Module
|
|
1634
|
+
*
|
|
1635
|
+
* Provides access to follow group management functionality.
|
|
1636
|
+
*/
|
|
1637
|
+
|
|
1638
|
+
declare class FollowingModule {
|
|
1639
|
+
private client;
|
|
1640
|
+
constructor(client: Reportify);
|
|
1525
1641
|
/**
|
|
1526
1642
|
* Create a new follow group
|
|
1527
1643
|
*
|
|
@@ -1532,7 +1648,7 @@ declare class UserModule {
|
|
|
1532
1648
|
*
|
|
1533
1649
|
* @example
|
|
1534
1650
|
* ```typescript
|
|
1535
|
-
* const result = await client.
|
|
1651
|
+
* const result = await client.following.createFollowGroup('My Stocks', [
|
|
1536
1652
|
* { follow_type: 1, follow_value: 'US:AAPL' },
|
|
1537
1653
|
* { follow_type: 1, follow_value: 'HK:00700' }
|
|
1538
1654
|
* ]);
|
|
@@ -1554,7 +1670,7 @@ declare class UserModule {
|
|
|
1554
1670
|
*
|
|
1555
1671
|
* @example
|
|
1556
1672
|
* ```typescript
|
|
1557
|
-
* const groups = await client.
|
|
1673
|
+
* const groups = await client.following.getFollowGroups();
|
|
1558
1674
|
* groups.forEach(group => {
|
|
1559
1675
|
* console.log(`${group.name}: ${group.count} items`);
|
|
1560
1676
|
* });
|
|
@@ -1573,7 +1689,7 @@ declare class UserModule {
|
|
|
1573
1689
|
*
|
|
1574
1690
|
* @example
|
|
1575
1691
|
* ```typescript
|
|
1576
|
-
* const group = await client.
|
|
1692
|
+
* const group = await client.following.getFollowGroup('group_123');
|
|
1577
1693
|
* console.log(`${group.name}: ${group.count} items`);
|
|
1578
1694
|
* ```
|
|
1579
1695
|
*/
|
|
@@ -1595,7 +1711,7 @@ declare class UserModule {
|
|
|
1595
1711
|
*
|
|
1596
1712
|
* @example
|
|
1597
1713
|
* ```typescript
|
|
1598
|
-
* const result = await client.
|
|
1714
|
+
* const result = await client.following.updateFollowGroup('group_123', 'New Name');
|
|
1599
1715
|
* console.log(`Updated: ${result.name}`);
|
|
1600
1716
|
* ```
|
|
1601
1717
|
*/
|
|
@@ -1612,7 +1728,7 @@ declare class UserModule {
|
|
|
1612
1728
|
*
|
|
1613
1729
|
* @example
|
|
1614
1730
|
* ```typescript
|
|
1615
|
-
* await client.
|
|
1731
|
+
* await client.following.deleteFollowGroup('group_123');
|
|
1616
1732
|
* ```
|
|
1617
1733
|
*/
|
|
1618
1734
|
deleteFollowGroup(groupId: string): Promise<void>;
|
|
@@ -1626,7 +1742,7 @@ declare class UserModule {
|
|
|
1626
1742
|
*
|
|
1627
1743
|
* @example
|
|
1628
1744
|
* ```typescript
|
|
1629
|
-
* await client.
|
|
1745
|
+
* await client.following.addFollowsToGroup('group_123', [
|
|
1630
1746
|
* { follow_type: 1, follow_value: 'US:TSLA' }
|
|
1631
1747
|
* ]);
|
|
1632
1748
|
* ```
|
|
@@ -1644,7 +1760,7 @@ declare class UserModule {
|
|
|
1644
1760
|
*
|
|
1645
1761
|
* @example
|
|
1646
1762
|
* ```typescript
|
|
1647
|
-
* await client.
|
|
1763
|
+
* await client.following.removeFollowsFromGroup('group_123', ['AAPL', 'MSFT']);
|
|
1648
1764
|
* ```
|
|
1649
1765
|
*/
|
|
1650
1766
|
removeFollowsFromGroup(groupId: string, followValues: string[]): Promise<void>;
|
|
@@ -1658,7 +1774,7 @@ declare class UserModule {
|
|
|
1658
1774
|
*
|
|
1659
1775
|
* @example
|
|
1660
1776
|
* ```typescript
|
|
1661
|
-
* await client.
|
|
1777
|
+
* await client.following.setGroupFollows('group_123', [
|
|
1662
1778
|
* { follow_type: 1, follow_value: 'US:AAPL' },
|
|
1663
1779
|
* { follow_type: 1, follow_value: 'HK:00700' }
|
|
1664
1780
|
* ]);
|
|
@@ -1669,23 +1785,23 @@ declare class UserModule {
|
|
|
1669
1785
|
follow_value: string;
|
|
1670
1786
|
}>): Promise<void>;
|
|
1671
1787
|
/**
|
|
1672
|
-
* Get
|
|
1788
|
+
* Get docs for a follow group
|
|
1673
1789
|
*
|
|
1674
1790
|
* @param groupId - Group ID
|
|
1675
1791
|
* @param pageNum - Page number (default: 1)
|
|
1676
1792
|
* @param pageSize - Page size (default: 10, max: 100)
|
|
1677
|
-
* @returns
|
|
1793
|
+
* @returns docs data including items list, total_count, page_num, and page_size
|
|
1678
1794
|
*
|
|
1679
1795
|
* @example
|
|
1680
1796
|
* ```typescript
|
|
1681
|
-
* const result = await client.
|
|
1797
|
+
* const result = await client.following.getFollowGroupDocs('group_123', 1, 20);
|
|
1682
1798
|
* console.log(`Total: ${result.total_count}`);
|
|
1683
|
-
* result.items.forEach(
|
|
1684
|
-
* console.log(
|
|
1799
|
+
* result.items.forEach(doc => {
|
|
1800
|
+
* console.log(doc.title || 'Untitled');
|
|
1685
1801
|
* });
|
|
1686
1802
|
* ```
|
|
1687
1803
|
*/
|
|
1688
|
-
|
|
1804
|
+
getFollowGroupDocs(groupId: string, pageNum?: number, pageSize?: number): Promise<{
|
|
1689
1805
|
items: any[];
|
|
1690
1806
|
total_count: number;
|
|
1691
1807
|
page_num: number;
|
|
@@ -1693,111 +1809,6 @@ declare class UserModule {
|
|
|
1693
1809
|
}>;
|
|
1694
1810
|
}
|
|
1695
1811
|
|
|
1696
|
-
/**
|
|
1697
|
-
* Search Module
|
|
1698
|
-
*
|
|
1699
|
-
* Provides document search functionality across various categories.
|
|
1700
|
-
*/
|
|
1701
|
-
|
|
1702
|
-
/**
|
|
1703
|
-
* Search module for document search functionality.
|
|
1704
|
-
*
|
|
1705
|
-
* @example
|
|
1706
|
-
* ```typescript
|
|
1707
|
-
* const results = await client.search.all('Tesla earnings');
|
|
1708
|
-
* const news = await client.search.news('Apple iPhone');
|
|
1709
|
-
* ```
|
|
1710
|
-
*/
|
|
1711
|
-
declare class SearchModule {
|
|
1712
|
-
private client;
|
|
1713
|
-
constructor(client: Reportify);
|
|
1714
|
-
/**
|
|
1715
|
-
* Search documents across all categories
|
|
1716
|
-
*
|
|
1717
|
-
* @param query - Search query string
|
|
1718
|
-
* @param options - Search options
|
|
1719
|
-
* @returns List of matching documents
|
|
1720
|
-
*/
|
|
1721
|
-
all(query: string, options?: SearchOptions): Promise<Document[]>;
|
|
1722
|
-
/**
|
|
1723
|
-
* Search news articles
|
|
1724
|
-
*/
|
|
1725
|
-
news(query: string, options?: SearchOptions): Promise<Document[]>;
|
|
1726
|
-
/**
|
|
1727
|
-
* Search research reports
|
|
1728
|
-
*/
|
|
1729
|
-
reports(query: string, options?: SearchOptions): Promise<Document[]>;
|
|
1730
|
-
/**
|
|
1731
|
-
* Search company filings
|
|
1732
|
-
*
|
|
1733
|
-
* @param query - Search query string
|
|
1734
|
-
* @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
|
|
1735
|
-
* @param options - Search options
|
|
1736
|
-
*/
|
|
1737
|
-
filings(query: string, symbols: string[], options?: Omit<SearchOptions, 'symbols' | 'categories' | 'industries' | 'channelIds'>): Promise<Document[]>;
|
|
1738
|
-
/**
|
|
1739
|
-
* Search for earnings-related conference call transcripts and presentation slides.
|
|
1740
|
-
* Query is optional - if not provided, returns documents in reverse chronological order;
|
|
1741
|
-
* if provided, results are sorted by relevance by default.
|
|
1742
|
-
*
|
|
1743
|
-
* @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
|
|
1744
|
-
* @param options - Search options including query, fiscal year/quarter filters, and sort order
|
|
1745
|
-
*/
|
|
1746
|
-
conferenceCalls(symbols: string[], options?: EarningsSearchOptions & {
|
|
1747
|
-
query?: string;
|
|
1748
|
-
}): Promise<Document[]>;
|
|
1749
|
-
/**
|
|
1750
|
-
* Search for earnings-related documents submitted to exchanges, including quarterly reports,
|
|
1751
|
-
* semi-annual reports, and annual reports. Query is optional - if not provided, returns
|
|
1752
|
-
* documents in reverse chronological order; if provided, results are sorted by relevance by default.
|
|
1753
|
-
*
|
|
1754
|
-
* @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
|
|
1755
|
-
* @param options - Search options including query, fiscal year/quarter filters, and sort order
|
|
1756
|
-
*/
|
|
1757
|
-
earningsPack(symbols: string[], options?: EarningsSearchOptions & {
|
|
1758
|
-
query?: string;
|
|
1759
|
-
}): Promise<Document[]>;
|
|
1760
|
-
/**
|
|
1761
|
-
* Search conference calls and IR (Investor Relations) meetings
|
|
1762
|
-
*/
|
|
1763
|
-
minutes(query: string, options?: SearchOptions): Promise<Document[]>;
|
|
1764
|
-
/**
|
|
1765
|
-
* Search social media content
|
|
1766
|
-
*/
|
|
1767
|
-
socials(query: string, options?: SearchOptions): Promise<Document[]>;
|
|
1768
|
-
/**
|
|
1769
|
-
* Search webpage content
|
|
1770
|
-
*/
|
|
1771
|
-
webpages(query: string, options?: Omit<SearchOptions, 'symbols' | 'categories' | 'industries' | 'channelIds'>): Promise<Document[]>;
|
|
1772
|
-
/**
|
|
1773
|
-
* Crawl web content from given URLs.
|
|
1774
|
-
*
|
|
1775
|
-
* @param urls Array of URLs to get contents for
|
|
1776
|
-
* @param options Options for text, highlights, summary, subpages, etc.
|
|
1777
|
-
* @returns CrawlResponse Promise with extracted results and statuses
|
|
1778
|
-
*/
|
|
1779
|
-
crawl(urls: string[], options?: {
|
|
1780
|
-
text?: boolean | {
|
|
1781
|
-
max_characters?: number;
|
|
1782
|
-
include_html_tags?: boolean;
|
|
1783
|
-
verbosity?: 'compact' | 'full';
|
|
1784
|
-
};
|
|
1785
|
-
highlights?: {
|
|
1786
|
-
query?: string;
|
|
1787
|
-
max_characters?: number;
|
|
1788
|
-
num_sentences?: number;
|
|
1789
|
-
highlights_per_url?: number;
|
|
1790
|
-
};
|
|
1791
|
-
summary?: {
|
|
1792
|
-
query?: string;
|
|
1793
|
-
};
|
|
1794
|
-
subpages?: number;
|
|
1795
|
-
subpage_target?: string[];
|
|
1796
|
-
max_age_hours?: number;
|
|
1797
|
-
livecrawl_timeout?: number;
|
|
1798
|
-
}): Promise<any>;
|
|
1799
|
-
}
|
|
1800
|
-
|
|
1801
1812
|
/**
|
|
1802
1813
|
* Reportify Client
|
|
1803
1814
|
*
|
|
@@ -1833,6 +1844,7 @@ declare class Reportify {
|
|
|
1833
1844
|
readonly kb: KBModule;
|
|
1834
1845
|
readonly timeline: TimelineModule;
|
|
1835
1846
|
readonly user: UserModule;
|
|
1847
|
+
readonly following: FollowingModule;
|
|
1836
1848
|
constructor(config: ReportifyConfig);
|
|
1837
1849
|
/**
|
|
1838
1850
|
* Make an HTTP request to the API
|
|
@@ -1863,4 +1875,4 @@ declare class Reportify {
|
|
|
1863
1875
|
getBytes(path: string): Promise<ArrayBuffer>;
|
|
1864
1876
|
}
|
|
1865
1877
|
|
|
1866
|
-
export { APIError, type AgentConversation, type AgentMessage, AgentModule, AuthenticationError, type BacktestParams, type BacktestResult, type BatchKline1mParams, type BatchMinuteParams, type BatchOHLCVParams, type Calendar, type Channel, ChannelsModule, type ChatCompletionOptions, type ChatCompletionResponse, type ChatMode, ChatModule, type Chunk, type ChunkSearchOptions, type CompanyInfo, type CompanyOverview, type Concept, type ConceptDoc, type ConceptEvent, type ConceptFeed, type ConceptStock, ConceptsModule, type DocsListOptions, DocsModule, type Document, type DocumentInput, type EarningsEvent, type EarningsSearchOptions, type FactorComputeParams, type FactorMeta, type FinancialStatement, type FollowedCompany, type IPOEvent, type IPOStatus, type IndexConstituent, type IndexFund, type IndicatorComputeParams, type IndicatorData, type IndicatorMeta, type IndustryConstituent, KBModule, type KBSearchOptions, type Kline1mParams, type Market, type MinuteParams, NotFoundError, type OHLCVData, type OHLCVParams, type PaginatedResponse, type Period, type PriceData, QuantModule, type Quote, RateLimitError, Reportify, type ReportifyConfig, ReportifyError, type ScreenParams, type ScreenedStock, SearchModule, type SearchOptions, type Shareholder, type ShareholderType, type StockInfo, type StockMarket, StockModule, TimelineModule, type TimelineOptions, type UploadDocRequest, UserModule };
|
|
1878
|
+
export { APIError, type AgentConversation, type AgentMessage, AgentModule, AuthenticationError, type BacktestParams, type BacktestResult, type BatchKline1mParams, type BatchMinuteParams, type BatchOHLCVParams, type Calendar, type Channel, ChannelsModule, type ChatCompletionOptions, type ChatCompletionResponse, type ChatMode, ChatModule, type Chunk, type ChunkSearchOptions, type CompanyInfo, type CompanyOverview, type Concept, type ConceptDoc, type ConceptEvent, type ConceptFeed, type ConceptStock, ConceptsModule, type DocsListOptions, DocsModule, type Document, type DocumentInput, type EarningsEvent, type EarningsSearchOptions, type FactorComputeParams, type FactorMeta, type FinancialStatement, type FollowedCompany, FollowingModule, type IPOEvent, type IPOStatus, type IndexConstituent, type IndexFund, type IndicatorComputeParams, type IndicatorData, type IndicatorMeta, type IndustryConstituent, KBModule, type KBSearchOptions, type Kline1mParams, type Market, type MinuteParams, NotFoundError, type OHLCVData, type OHLCVParams, type PaginatedResponse, type Period, type PriceData, QuantModule, type Quote, RateLimitError, Reportify, type ReportifyConfig, ReportifyError, type ScreenParams, type ScreenedStock, SearchModule, type SearchOptions, type Shareholder, type ShareholderType, type StockInfo, type StockMarket, StockModule, TimelineModule, type TimelineOptions, type UploadDocRequest, UserModule };
|