reportify-sdk 0.3.9 → 0.3.10

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 CHANGED
@@ -62,6 +62,8 @@ interface EarningsSearchOptions {
62
62
  endDatetime?: string;
63
63
  fiscalYear?: string;
64
64
  fiscalQuarter?: string;
65
+ /** Sort order: 'date_desc' (newest first, default when no query), 'relevance' (recommended when query is provided), 'date_asc' (oldest first) */
66
+ sortBy?: 'relevance' | 'date_desc' | 'date_asc';
65
67
  }
66
68
  interface CompanyOverview {
67
69
  symbol: string;
@@ -1435,21 +1437,27 @@ declare class SearchModule {
1435
1437
  */
1436
1438
  filings(query: string, symbols: string[], options?: Omit<SearchOptions, 'symbols' | 'categories' | 'industries' | 'channelIds'>): Promise<Document[]>;
1437
1439
  /**
1438
- * Search earnings call transcripts and slides
1440
+ * Search for earnings-related conference call transcripts and presentation slides.
1441
+ * Query is optional - if not provided, returns documents in reverse chronological order;
1442
+ * if provided, results are sorted by relevance by default.
1439
1443
  *
1440
- * @param query - Search query string
1441
1444
  * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1442
- * @param options - Search options including fiscal year/quarter filters
1445
+ * @param options - Search options including query, fiscal year/quarter filters, and sort order
1443
1446
  */
1444
- conferenceCalls(query: string, symbols: string[], options?: EarningsSearchOptions): Promise<Document[]>;
1447
+ conferenceCalls(symbols: string[], options?: EarningsSearchOptions & {
1448
+ query?: string;
1449
+ }): Promise<Document[]>;
1445
1450
  /**
1446
- * Search earnings financial reports
1451
+ * Search for earnings-related documents submitted to exchanges, including quarterly reports,
1452
+ * semi-annual reports, and annual reports. Query is optional - if not provided, returns
1453
+ * documents in reverse chronological order; if provided, results are sorted by relevance by default.
1447
1454
  *
1448
- * @param query - Search query string
1449
1455
  * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1450
- * @param options - Search options including fiscal year/quarter filters
1456
+ * @param options - Search options including query, fiscal year/quarter filters, and sort order
1451
1457
  */
1452
- earningsPack(query: string, symbols: string[], options?: EarningsSearchOptions): Promise<Document[]>;
1458
+ earningsPack(symbols: string[], options?: EarningsSearchOptions & {
1459
+ query?: string;
1460
+ }): Promise<Document[]>;
1453
1461
  /**
1454
1462
  * Search conference calls and IR (Investor Relations) meetings
1455
1463
  */
package/dist/index.d.ts CHANGED
@@ -62,6 +62,8 @@ interface EarningsSearchOptions {
62
62
  endDatetime?: string;
63
63
  fiscalYear?: string;
64
64
  fiscalQuarter?: string;
65
+ /** Sort order: 'date_desc' (newest first, default when no query), 'relevance' (recommended when query is provided), 'date_asc' (oldest first) */
66
+ sortBy?: 'relevance' | 'date_desc' | 'date_asc';
65
67
  }
66
68
  interface CompanyOverview {
67
69
  symbol: string;
@@ -1435,21 +1437,27 @@ declare class SearchModule {
1435
1437
  */
1436
1438
  filings(query: string, symbols: string[], options?: Omit<SearchOptions, 'symbols' | 'categories' | 'industries' | 'channelIds'>): Promise<Document[]>;
1437
1439
  /**
1438
- * Search earnings call transcripts and slides
1440
+ * Search for earnings-related conference call transcripts and presentation slides.
1441
+ * Query is optional - if not provided, returns documents in reverse chronological order;
1442
+ * if provided, results are sorted by relevance by default.
1439
1443
  *
1440
- * @param query - Search query string
1441
1444
  * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1442
- * @param options - Search options including fiscal year/quarter filters
1445
+ * @param options - Search options including query, fiscal year/quarter filters, and sort order
1443
1446
  */
1444
- conferenceCalls(query: string, symbols: string[], options?: EarningsSearchOptions): Promise<Document[]>;
1447
+ conferenceCalls(symbols: string[], options?: EarningsSearchOptions & {
1448
+ query?: string;
1449
+ }): Promise<Document[]>;
1445
1450
  /**
1446
- * Search earnings financial reports
1451
+ * Search for earnings-related documents submitted to exchanges, including quarterly reports,
1452
+ * semi-annual reports, and annual reports. Query is optional - if not provided, returns
1453
+ * documents in reverse chronological order; if provided, results are sorted by relevance by default.
1447
1454
  *
1448
- * @param query - Search query string
1449
1455
  * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1450
- * @param options - Search options including fiscal year/quarter filters
1456
+ * @param options - Search options including query, fiscal year/quarter filters, and sort order
1451
1457
  */
1452
- earningsPack(query: string, symbols: string[], options?: EarningsSearchOptions): Promise<Document[]>;
1458
+ earningsPack(symbols: string[], options?: EarningsSearchOptions & {
1459
+ query?: string;
1460
+ }): Promise<Document[]>;
1453
1461
  /**
1454
1462
  * Search conference calls and IR (Investor Relations) meetings
1455
1463
  */
package/dist/index.js CHANGED
@@ -1495,18 +1495,20 @@ var SearchModule = class {
1495
1495
  return response.docs || [];
1496
1496
  }
1497
1497
  /**
1498
- * Search earnings call transcripts and slides
1498
+ * Search for earnings-related conference call transcripts and presentation slides.
1499
+ * Query is optional - if not provided, returns documents in reverse chronological order;
1500
+ * if provided, results are sorted by relevance by default.
1499
1501
  *
1500
- * @param query - Search query string
1501
1502
  * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1502
- * @param options - Search options including fiscal year/quarter filters
1503
+ * @param options - Search options including query, fiscal year/quarter filters, and sort order
1503
1504
  */
1504
- async conferenceCalls(query, symbols, options = {}) {
1505
+ async conferenceCalls(symbols, options = {}) {
1505
1506
  const body = {
1506
- query,
1507
1507
  symbols,
1508
- num: options.num || 10
1508
+ num: options.num || 10,
1509
+ sort_by: options.sortBy || "date_desc"
1509
1510
  };
1511
+ if (options.query) body.query = options.query;
1510
1512
  if (options.startDatetime) body.start_datetime = options.startDatetime;
1511
1513
  if (options.endDatetime) body.end_datetime = options.endDatetime;
1512
1514
  if (options.fiscalYear) body.fiscal_year = options.fiscalYear;
@@ -1515,18 +1517,20 @@ var SearchModule = class {
1515
1517
  return response.docs || [];
1516
1518
  }
1517
1519
  /**
1518
- * Search earnings financial reports
1520
+ * Search for earnings-related documents submitted to exchanges, including quarterly reports,
1521
+ * semi-annual reports, and annual reports. Query is optional - if not provided, returns
1522
+ * documents in reverse chronological order; if provided, results are sorted by relevance by default.
1519
1523
  *
1520
- * @param query - Search query string
1521
1524
  * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1522
- * @param options - Search options including fiscal year/quarter filters
1525
+ * @param options - Search options including query, fiscal year/quarter filters, and sort order
1523
1526
  */
1524
- async earningsPack(query, symbols, options = {}) {
1527
+ async earningsPack(symbols, options = {}) {
1525
1528
  const body = {
1526
- query,
1527
1529
  symbols,
1528
- num: options.num || 10
1530
+ num: options.num || 10,
1531
+ sort_by: options.sortBy || "date_desc"
1529
1532
  };
1533
+ if (options.query) body.query = options.query;
1530
1534
  if (options.startDatetime) body.start_datetime = options.startDatetime;
1531
1535
  if (options.endDatetime) body.end_datetime = options.endDatetime;
1532
1536
  if (options.fiscalYear) body.fiscal_year = options.fiscalYear;
@@ -1670,7 +1674,7 @@ var Reportify = class {
1670
1674
  headers: {
1671
1675
  Authorization: `Bearer ${this.apiKey}`,
1672
1676
  "Content-Type": "application/json",
1673
- "User-Agent": "reportify-sdk-js/0.3.9"
1677
+ "User-Agent": "reportify-sdk-js/0.3.10"
1674
1678
  },
1675
1679
  body: options.body ? JSON.stringify(options.body) : void 0,
1676
1680
  signal: controller.signal
@@ -1731,7 +1735,7 @@ var Reportify = class {
1731
1735
  headers: {
1732
1736
  Authorization: `Bearer ${this.apiKey}`,
1733
1737
  "Content-Type": "application/json",
1734
- "User-Agent": "reportify-sdk-typescript/0.3.9"
1738
+ "User-Agent": "reportify-sdk-typescript/0.3.10"
1735
1739
  }
1736
1740
  });
1737
1741
  if (!response.ok) {
package/dist/index.mjs CHANGED
@@ -1453,18 +1453,20 @@ var SearchModule = class {
1453
1453
  return response.docs || [];
1454
1454
  }
1455
1455
  /**
1456
- * Search earnings call transcripts and slides
1456
+ * Search for earnings-related conference call transcripts and presentation slides.
1457
+ * Query is optional - if not provided, returns documents in reverse chronological order;
1458
+ * if provided, results are sorted by relevance by default.
1457
1459
  *
1458
- * @param query - Search query string
1459
1460
  * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1460
- * @param options - Search options including fiscal year/quarter filters
1461
+ * @param options - Search options including query, fiscal year/quarter filters, and sort order
1461
1462
  */
1462
- async conferenceCalls(query, symbols, options = {}) {
1463
+ async conferenceCalls(symbols, options = {}) {
1463
1464
  const body = {
1464
- query,
1465
1465
  symbols,
1466
- num: options.num || 10
1466
+ num: options.num || 10,
1467
+ sort_by: options.sortBy || "date_desc"
1467
1468
  };
1469
+ if (options.query) body.query = options.query;
1468
1470
  if (options.startDatetime) body.start_datetime = options.startDatetime;
1469
1471
  if (options.endDatetime) body.end_datetime = options.endDatetime;
1470
1472
  if (options.fiscalYear) body.fiscal_year = options.fiscalYear;
@@ -1473,18 +1475,20 @@ var SearchModule = class {
1473
1475
  return response.docs || [];
1474
1476
  }
1475
1477
  /**
1476
- * Search earnings financial reports
1478
+ * Search for earnings-related documents submitted to exchanges, including quarterly reports,
1479
+ * semi-annual reports, and annual reports. Query is optional - if not provided, returns
1480
+ * documents in reverse chronological order; if provided, results are sorted by relevance by default.
1477
1481
  *
1478
- * @param query - Search query string
1479
1482
  * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1480
- * @param options - Search options including fiscal year/quarter filters
1483
+ * @param options - Search options including query, fiscal year/quarter filters, and sort order
1481
1484
  */
1482
- async earningsPack(query, symbols, options = {}) {
1485
+ async earningsPack(symbols, options = {}) {
1483
1486
  const body = {
1484
- query,
1485
1487
  symbols,
1486
- num: options.num || 10
1488
+ num: options.num || 10,
1489
+ sort_by: options.sortBy || "date_desc"
1487
1490
  };
1491
+ if (options.query) body.query = options.query;
1488
1492
  if (options.startDatetime) body.start_datetime = options.startDatetime;
1489
1493
  if (options.endDatetime) body.end_datetime = options.endDatetime;
1490
1494
  if (options.fiscalYear) body.fiscal_year = options.fiscalYear;
@@ -1628,7 +1632,7 @@ var Reportify = class {
1628
1632
  headers: {
1629
1633
  Authorization: `Bearer ${this.apiKey}`,
1630
1634
  "Content-Type": "application/json",
1631
- "User-Agent": "reportify-sdk-js/0.3.9"
1635
+ "User-Agent": "reportify-sdk-js/0.3.10"
1632
1636
  },
1633
1637
  body: options.body ? JSON.stringify(options.body) : void 0,
1634
1638
  signal: controller.signal
@@ -1689,7 +1693,7 @@ var Reportify = class {
1689
1693
  headers: {
1690
1694
  Authorization: `Bearer ${this.apiKey}`,
1691
1695
  "Content-Type": "application/json",
1692
- "User-Agent": "reportify-sdk-typescript/0.3.9"
1696
+ "User-Agent": "reportify-sdk-typescript/0.3.10"
1693
1697
  }
1694
1698
  });
1695
1699
  if (!response.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reportify-sdk",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "TypeScript SDK for Reportify API - Financial data and document search",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",