reportify-sdk 0.3.10 → 0.3.11
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 +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +43 -0
- package/dist/index.mjs +43 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1392,6 +1392,35 @@ declare class UserModule {
|
|
|
1392
1392
|
* ```
|
|
1393
1393
|
*/
|
|
1394
1394
|
followedCompanies(): Promise<FollowedCompany[]>;
|
|
1395
|
+
/**
|
|
1396
|
+
* Follow a company (add to stock watchlist)
|
|
1397
|
+
*
|
|
1398
|
+
* @param symbol - Stock symbol in market:ticker format (e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
|
|
1399
|
+
* @returns The followed company information
|
|
1400
|
+
*
|
|
1401
|
+
* @example
|
|
1402
|
+
* ```typescript
|
|
1403
|
+
* const result = await client.user.followCompany('US:AAPL');
|
|
1404
|
+
* console.log(`Followed: ${result.symbol} - ${result.name}`);
|
|
1405
|
+
* ```
|
|
1406
|
+
*/
|
|
1407
|
+
followCompany(symbol: string): Promise<FollowedCompany>;
|
|
1408
|
+
/**
|
|
1409
|
+
* Unfollow a company (remove from stock watchlist)
|
|
1410
|
+
*
|
|
1411
|
+
* @param symbol - Stock symbol in market:ticker format (e.g., US:AAPL, HK:00700)
|
|
1412
|
+
* @returns Status of the unfollow operation
|
|
1413
|
+
*
|
|
1414
|
+
* @example
|
|
1415
|
+
* ```typescript
|
|
1416
|
+
* const result = await client.user.unfollowCompany('US:AAPL');
|
|
1417
|
+
* console.log(`Unfollowed: ${result.symbol}, success: ${result.success}`);
|
|
1418
|
+
* ```
|
|
1419
|
+
*/
|
|
1420
|
+
unfollowCompany(symbol: string): Promise<{
|
|
1421
|
+
symbol: string;
|
|
1422
|
+
success: boolean;
|
|
1423
|
+
}>;
|
|
1395
1424
|
}
|
|
1396
1425
|
|
|
1397
1426
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1392,6 +1392,35 @@ declare class UserModule {
|
|
|
1392
1392
|
* ```
|
|
1393
1393
|
*/
|
|
1394
1394
|
followedCompanies(): Promise<FollowedCompany[]>;
|
|
1395
|
+
/**
|
|
1396
|
+
* Follow a company (add to stock watchlist)
|
|
1397
|
+
*
|
|
1398
|
+
* @param symbol - Stock symbol in market:ticker format (e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
|
|
1399
|
+
* @returns The followed company information
|
|
1400
|
+
*
|
|
1401
|
+
* @example
|
|
1402
|
+
* ```typescript
|
|
1403
|
+
* const result = await client.user.followCompany('US:AAPL');
|
|
1404
|
+
* console.log(`Followed: ${result.symbol} - ${result.name}`);
|
|
1405
|
+
* ```
|
|
1406
|
+
*/
|
|
1407
|
+
followCompany(symbol: string): Promise<FollowedCompany>;
|
|
1408
|
+
/**
|
|
1409
|
+
* Unfollow a company (remove from stock watchlist)
|
|
1410
|
+
*
|
|
1411
|
+
* @param symbol - Stock symbol in market:ticker format (e.g., US:AAPL, HK:00700)
|
|
1412
|
+
* @returns Status of the unfollow operation
|
|
1413
|
+
*
|
|
1414
|
+
* @example
|
|
1415
|
+
* ```typescript
|
|
1416
|
+
* const result = await client.user.unfollowCompany('US:AAPL');
|
|
1417
|
+
* console.log(`Unfollowed: ${result.symbol}, success: ${result.success}`);
|
|
1418
|
+
* ```
|
|
1419
|
+
*/
|
|
1420
|
+
unfollowCompany(symbol: string): Promise<{
|
|
1421
|
+
symbol: string;
|
|
1422
|
+
success: boolean;
|
|
1423
|
+
}>;
|
|
1395
1424
|
}
|
|
1396
1425
|
|
|
1397
1426
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1417,6 +1417,49 @@ var UserModule = class {
|
|
|
1417
1417
|
followedAt: company.followed_at
|
|
1418
1418
|
}));
|
|
1419
1419
|
}
|
|
1420
|
+
/**
|
|
1421
|
+
* Follow a company (add to stock watchlist)
|
|
1422
|
+
*
|
|
1423
|
+
* @param symbol - Stock symbol in market:ticker format (e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
|
|
1424
|
+
* @returns The followed company information
|
|
1425
|
+
*
|
|
1426
|
+
* @example
|
|
1427
|
+
* ```typescript
|
|
1428
|
+
* const result = await client.user.followCompany('US:AAPL');
|
|
1429
|
+
* console.log(`Followed: ${result.symbol} - ${result.name}`);
|
|
1430
|
+
* ```
|
|
1431
|
+
*/
|
|
1432
|
+
async followCompany(symbol) {
|
|
1433
|
+
const response = await this.client.post("/v1/tools/user/follow-company", { symbol });
|
|
1434
|
+
return {
|
|
1435
|
+
symbol: response.symbol,
|
|
1436
|
+
ticker: response.ticker,
|
|
1437
|
+
market: response.market,
|
|
1438
|
+
name: response.name,
|
|
1439
|
+
chineseName: response.chinese_name,
|
|
1440
|
+
englishName: response.english_name,
|
|
1441
|
+
logo: response.logo,
|
|
1442
|
+
followedAt: response.followed_at
|
|
1443
|
+
};
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* Unfollow a company (remove from stock watchlist)
|
|
1447
|
+
*
|
|
1448
|
+
* @param symbol - Stock symbol in market:ticker format (e.g., US:AAPL, HK:00700)
|
|
1449
|
+
* @returns Status of the unfollow operation
|
|
1450
|
+
*
|
|
1451
|
+
* @example
|
|
1452
|
+
* ```typescript
|
|
1453
|
+
* const result = await client.user.unfollowCompany('US:AAPL');
|
|
1454
|
+
* console.log(`Unfollowed: ${result.symbol}, success: ${result.success}`);
|
|
1455
|
+
* ```
|
|
1456
|
+
*/
|
|
1457
|
+
async unfollowCompany(symbol) {
|
|
1458
|
+
return this.client.post(
|
|
1459
|
+
"/v1/tools/user/unfollow-company",
|
|
1460
|
+
{ symbol }
|
|
1461
|
+
);
|
|
1462
|
+
}
|
|
1420
1463
|
};
|
|
1421
1464
|
|
|
1422
1465
|
// src/search.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1375,6 +1375,49 @@ var UserModule = class {
|
|
|
1375
1375
|
followedAt: company.followed_at
|
|
1376
1376
|
}));
|
|
1377
1377
|
}
|
|
1378
|
+
/**
|
|
1379
|
+
* Follow a company (add to stock watchlist)
|
|
1380
|
+
*
|
|
1381
|
+
* @param symbol - Stock symbol in market:ticker format (e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
|
|
1382
|
+
* @returns The followed company information
|
|
1383
|
+
*
|
|
1384
|
+
* @example
|
|
1385
|
+
* ```typescript
|
|
1386
|
+
* const result = await client.user.followCompany('US:AAPL');
|
|
1387
|
+
* console.log(`Followed: ${result.symbol} - ${result.name}`);
|
|
1388
|
+
* ```
|
|
1389
|
+
*/
|
|
1390
|
+
async followCompany(symbol) {
|
|
1391
|
+
const response = await this.client.post("/v1/tools/user/follow-company", { symbol });
|
|
1392
|
+
return {
|
|
1393
|
+
symbol: response.symbol,
|
|
1394
|
+
ticker: response.ticker,
|
|
1395
|
+
market: response.market,
|
|
1396
|
+
name: response.name,
|
|
1397
|
+
chineseName: response.chinese_name,
|
|
1398
|
+
englishName: response.english_name,
|
|
1399
|
+
logo: response.logo,
|
|
1400
|
+
followedAt: response.followed_at
|
|
1401
|
+
};
|
|
1402
|
+
}
|
|
1403
|
+
/**
|
|
1404
|
+
* Unfollow a company (remove from stock watchlist)
|
|
1405
|
+
*
|
|
1406
|
+
* @param symbol - Stock symbol in market:ticker format (e.g., US:AAPL, HK:00700)
|
|
1407
|
+
* @returns Status of the unfollow operation
|
|
1408
|
+
*
|
|
1409
|
+
* @example
|
|
1410
|
+
* ```typescript
|
|
1411
|
+
* const result = await client.user.unfollowCompany('US:AAPL');
|
|
1412
|
+
* console.log(`Unfollowed: ${result.symbol}, success: ${result.success}`);
|
|
1413
|
+
* ```
|
|
1414
|
+
*/
|
|
1415
|
+
async unfollowCompany(symbol) {
|
|
1416
|
+
return this.client.post(
|
|
1417
|
+
"/v1/tools/user/unfollow-company",
|
|
1418
|
+
{ symbol }
|
|
1419
|
+
);
|
|
1420
|
+
}
|
|
1378
1421
|
};
|
|
1379
1422
|
|
|
1380
1423
|
// src/search.ts
|