fmp-node-types 0.1.4 → 0.2.0-beta.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.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 FMP Node Wrapper
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2024 FMP Node Wrapper
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,86 +1,89 @@
1
- # fmp-node-types
2
-
3
- **Internal package** - Shared TypeScript types for the FMP Node Wrapper ecosystem.
4
-
5
- ## Overview
6
-
7
- This is an **internal package** used within the FMP Node Wrapper monorepo. It contains all TypeScript type definitions used across the FMP Node Wrapper packages.
8
-
9
- ## ⚠️ Important Note
10
-
11
- **This package is NOT published to npm and should NOT be installed directly by users.**
12
-
13
- All types are available through the main `fmp-node-api` package:
14
-
15
- ```bash
16
- npm install fmp-node-api
17
- # or
18
- yarn add fmp-node-api
19
- # or
20
- pnpm add fmp-node-api
21
- ```
22
-
23
- ## Usage (for end users)
24
-
25
- ```typescript
26
- import type { Quote, CompanyProfile, FinancialStatement } from 'fmp-node-api';
27
-
28
- // Use types in your code
29
- const quote: Quote = {
30
- symbol: 'AAPL',
31
- name: 'Apple Inc.',
32
- price: 150.0,
33
- // ... other properties
34
- };
35
- ```
36
-
37
- ## Available Types
38
-
39
- ### Common Types
40
-
41
- - `APIResponse<T>` - Base API response wrapper
42
- - `FMPConfig` - Configuration interface
43
- - `SymbolParams` - Symbol-based parameters
44
- - `DateRangeParams` - Date range parameters
45
- - `PaginationParams` - Pagination parameters
46
- - `PeriodParams` - Period parameters (annual/quarter)
47
-
48
- ### Quote Types
49
-
50
- - `Quote` - Unified quote data structure
51
- - `HistoricalPriceData` - Historical price data
52
- - `HistoricalPriceResponse` - Historical price response
53
-
54
- ### Financial Types
55
-
56
- - `IncomeStatement` - Income statement data
57
- - `BalanceSheet` - Balance sheet data
58
- - `CashFlowStatement` - Cash flow statement data
59
- - `FinancialRatio` - Financial ratios
60
- - `Earnings` - Earnings data
61
-
62
- ### Company Types
63
-
64
- - `CompanyProfile` - Company information
65
- - `Executive` - Executive data
66
- - `Employee` - Employee information
67
-
68
- ### Market Types
69
-
70
- - `MarketIndex` - Market index data
71
- - `SectorPerformance` - Sector performance data
72
-
73
- ### And many more...
74
-
75
- ## Development
76
-
77
- This package is part of the FMP Node Wrapper monorepo. To contribute:
78
-
79
- 1. Clone the repository
80
- 2. Install dependencies: `pnpm install`
81
- 3. Build the package: `pnpm build`
82
- 4. Run tests: `pnpm test`
83
-
84
- ## License
85
-
86
- MIT
1
+ # fmp-node-types
2
+
3
+ **Internal package** - Shared TypeScript types for the FMP Node Wrapper ecosystem.
4
+
5
+ ## Overview
6
+
7
+ This is an **internal package** used within the FMP Node Wrapper monorepo. It contains all TypeScript type definitions used across the FMP Node Wrapper packages.
8
+
9
+ ## ⚠️ Important Note
10
+
11
+ **This package is NOT published to npm and should NOT be installed directly by users.**
12
+
13
+ All types are available through the main `fmp-node-api` package:
14
+
15
+ ```bash
16
+ npm install fmp-node-api
17
+ # or
18
+ yarn add fmp-node-api
19
+ # or
20
+ pnpm add fmp-node-api
21
+ ```
22
+
23
+ ## Usage (for end users)
24
+
25
+ ```typescript
26
+ import type { Quote, CompanyProfile, IncomeStatement } from 'fmp-node-api';
27
+
28
+ // Use types in your code
29
+ const quote: Quote = {
30
+ symbol: 'AAPL',
31
+ name: 'Apple Inc.',
32
+ price: 150.0,
33
+ // ... other properties
34
+ };
35
+ ```
36
+
37
+ ## Available Types
38
+
39
+ ### Common Types
40
+
41
+ - `APIResponse<T>` - Base API response wrapper
42
+ - `FMPConfig` - Configuration interface
43
+ - `SymbolParams` - Symbol-based parameters
44
+ - `DateRangeParams` - Date range parameters
45
+ - `PaginationParams` - Pagination parameters
46
+ - `PeriodParams` - Period parameters (annual/quarter)
47
+
48
+ ### Quote Types
49
+
50
+ - `Quote` - Unified quote data structure
51
+ - `HistoricalPriceData` - Historical price data
52
+ - `HistoricalPriceResponse` - Historical price response
53
+
54
+ ### Financial Types
55
+
56
+ - `IncomeStatement` - Income statement data
57
+ - `BalanceSheet` - Balance sheet data
58
+ - `CashFlowStatement` - Cash flow statement data
59
+ - `FinancialRatios` - Financial ratios
60
+ - `KeyMetrics` - Key financial metrics
61
+
62
+ ### Company Types
63
+
64
+ - `CompanyProfile` - Company information
65
+ - `ExecutiveCompensation` - Executive compensation data
66
+ - `SharesFloat` - Shares float and outstanding data
67
+ - `HistoricalEmployeeCount` - Historical employee counts
68
+
69
+ ### Market Types
70
+
71
+ - `MarketIndex` - Market index data
72
+ - `MarketPerformance` - Market performance data
73
+ - `MarketSectorPerformance` - Sector performance data
74
+ - `MarketHours` - Market trading hours
75
+
76
+ ### And many more...
77
+
78
+ ## Development
79
+
80
+ This package is part of the FMP Node Wrapper monorepo. To contribute:
81
+
82
+ 1. Clone the repository
83
+ 2. Install dependencies: `pnpm install`
84
+ 3. Build the package: `pnpm build`
85
+ 4. Type-check: `pnpm type-check`
86
+
87
+ ## License
88
+
89
+ MIT