sec-edgar-api 0.2.1 → 0.2.2

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.
Files changed (73) hide show
  1. package/README.md +3 -5
  2. package/build/services/DocumentParser/HtmlTableExtractor.d.ts +41 -0
  3. package/build/services/DocumentParser/HtmlTableExtractor.js +408 -0
  4. package/build/services/DocumentParser/XMLParser.d.ts +20 -5
  5. package/build/services/DocumentParser/XMLParser.js +122 -118
  6. package/build/services/DocumentParser/parsers/index.d.ts +5 -3
  7. package/build/services/DocumentParser/parsers/index.js +5 -3
  8. package/build/services/DocumentParser/parsers/parse-current-filings.d.ts +3 -0
  9. package/build/services/DocumentParser/parsers/parse-current-filings.js +98 -0
  10. package/build/services/DocumentParser/parsers/parse-form-13f.d.ts +6 -0
  11. package/build/services/DocumentParser/parsers/parse-form-13f.js +91 -0
  12. package/build/services/DocumentParser/parsers/parse-form-13g.js +2 -2
  13. package/build/services/DocumentParser/parsers/parse-form-4.d.ts +6 -1
  14. package/build/services/DocumentParser/parsers/parse-form-4.js +134 -204
  15. package/build/services/DocumentParser/parsers/parse-form-def14a.d.ts +1 -2
  16. package/build/services/DocumentParser/parsers/parse-form-def14a.js +157 -106
  17. package/build/services/ReportBuilder/FactFiscalCalculator.d.ts +47 -0
  18. package/build/services/ReportBuilder/FactFiscalCalculator.js +228 -0
  19. package/build/services/ReportBuilder/FactPeriodResolver.d.ts +44 -0
  20. package/build/services/ReportBuilder/FactPeriodResolver.js +185 -0
  21. package/build/services/ReportBuilder/FactRecordBuilder.d.ts +7 -0
  22. package/build/services/ReportBuilder/FactRecordBuilder.js +49 -0
  23. package/build/services/ReportBuilder/FactSplitAdjuster.d.ts +39 -0
  24. package/build/services/ReportBuilder/FactSplitAdjuster.js +192 -0
  25. package/build/services/ReportBuilder/ReportBuilder.d.ts +37 -0
  26. package/build/services/ReportBuilder/ReportBuilder.js +180 -0
  27. package/build/services/ReportBuilder/ReportRawResolvable.d.ts +17 -0
  28. package/build/services/ReportBuilder/ReportRawResolvable.js +114 -0
  29. package/build/services/ReportBuilder/index.d.ts +2 -0
  30. package/build/services/ReportBuilder/index.js +4 -0
  31. package/build/services/ReportParser/FactItem.d.ts +66 -0
  32. package/build/services/ReportParser/FactItem.js +50 -0
  33. package/build/services/ReportParser/FactItemFactory.d.ts +22 -0
  34. package/build/services/ReportParser/FactItemFactory.js +150 -0
  35. package/build/services/ReportParser/FactSplitMap.d.ts +16 -0
  36. package/build/services/ReportParser/FactSplitMap.js +101 -0
  37. package/build/services/ReportParser/PropertyResolver.d.ts +1 -0
  38. package/build/services/ReportParser/PropertyResolver.js +1 -0
  39. package/build/services/ReportParser/ReportParser.d.ts +3 -10
  40. package/build/services/ReportParser/ReportParser.js +8 -23
  41. package/build/services/ReportParser/ReportRawParser.d.ts +5 -28
  42. package/build/services/ReportParser/ReportRawParser.js +29 -141
  43. package/build/services/ReportParser/ReportWrapper.js +2 -5
  44. package/build/services/ReportParser/resolvers/index.d.ts +2 -0
  45. package/build/services/ReportParser/resolvers/index.js +2 -0
  46. package/build/services/ReportParser/resolvers/resolve-cash-flow-capex.js +4 -3
  47. package/build/services/ReportParser/resolvers/resolve-cash-flow-operating.js +1 -1
  48. package/build/services/ReportParser/resolvers/resolve-cash-flow-working-capital-non-cash.js +1 -1
  49. package/build/services/ReportParser/resolvers/resolve-expense-depreciation.js +1 -1
  50. package/build/services/ReportParser/resolvers/resolve-fiscal-year-cumulative-properties.js +28 -14
  51. package/build/services/ReportParser/resolvers/resolve-q4-fiscal-year-matching-properties.js +32 -4
  52. package/build/services/ReportParser/resolvers/resolve-split-ratio.d.ts +2 -0
  53. package/build/services/ReportParser/resolvers/resolve-split-ratio.js +37 -0
  54. package/build/services/SecEdgarApi/SecEdgarApi.d.ts +85 -47
  55. package/build/services/SecEdgarApi/SecEdgarApi.js +246 -108
  56. package/build/types/current-filings-xml.type.d.ts +74 -0
  57. package/build/types/current-filings-xml.type.js +6 -0
  58. package/build/types/current-filings.type.d.ts +44 -0
  59. package/build/types/current-filings.type.js +2 -0
  60. package/build/types/form-13f-xml.type.d.ts +105 -0
  61. package/build/types/form-13f-xml.type.js +2 -0
  62. package/build/types/form-4-xml.type.d.ts +132 -0
  63. package/build/types/form-4-xml.type.js +2 -0
  64. package/build/types/index.d.ts +2 -2
  65. package/build/types/index.js +2 -2
  66. package/build/types/parsed-filings.type.d.ts +144 -5
  67. package/build/types/report-raw.type.d.ts +4 -7
  68. package/build/types/report-translated.type.d.ts +1 -2
  69. package/build/types/submission.type.d.ts +3 -2
  70. package/build/util/calculation-map-by-ns.d.ts +6 -0
  71. package/build/util/calculation-map-by-ns.js +9 -0
  72. package/build/util/key-translations.js +1 -2
  73. package/package.json +5 -2
@@ -0,0 +1,105 @@
1
+ export interface Form13FXML {
2
+ edgarSubmission: EdgarSubmissionXML;
3
+ informationTable: InformationTableXML;
4
+ }
5
+ export interface EdgarSubmissionXML {
6
+ headerData: HeaderDataXML;
7
+ formData: FormDataXML;
8
+ }
9
+ export interface FormDataXML {
10
+ coverPage: CoverPageXML;
11
+ signatureBlock: SignatureBlockXML;
12
+ summaryPage: SummaryPageXML;
13
+ }
14
+ export interface CoverPageXML {
15
+ reportCalendarOrQuarter: string;
16
+ filingManager: FilingManagerXML;
17
+ reportType: string;
18
+ form13FFileNumber: string;
19
+ otherManagersInfo: OtherManagersInfoXML;
20
+ provideInfoForInstruction5: string;
21
+ }
22
+ export interface FilingManagerXML {
23
+ name: string;
24
+ address: AddressXML;
25
+ }
26
+ export interface AddressXML {
27
+ 'ns1:street1': string;
28
+ 'ns1:city': string;
29
+ 'ns1:stateOrCountry': string;
30
+ 'ns1:zipCode': number;
31
+ }
32
+ export interface OtherManagersInfoXML {
33
+ otherManager: OtherManagerXML;
34
+ }
35
+ export interface OtherManagerXML {
36
+ form13FFileNumber: string;
37
+ name: string;
38
+ }
39
+ export interface SignatureBlockXML {
40
+ name: string;
41
+ title: string;
42
+ phone: string;
43
+ signature: string;
44
+ city: string;
45
+ stateOrCountry: string;
46
+ signatureDate: string;
47
+ }
48
+ export interface SummaryPageXML {
49
+ otherIncludedManagersCount: number;
50
+ tableEntryTotal: number;
51
+ tableValueTotal: number;
52
+ isConfidentialOmitted: boolean;
53
+ otherManagers2Info: OtherManagers2InfoXML;
54
+ }
55
+ export interface OtherManagers2InfoXML {
56
+ otherManager2: OtherManager2XML[];
57
+ }
58
+ export interface OtherManager2XML {
59
+ sequenceNumber: number;
60
+ otherManager: OtherManagerXML;
61
+ }
62
+ export interface HeaderDataXML {
63
+ submissionType: string;
64
+ filerInfo: FilerInfoXML;
65
+ }
66
+ export interface FilerInfoXML {
67
+ liveTestFlag: string;
68
+ flags: FlagsXML;
69
+ filer: FilerXML;
70
+ periodOfReport: string;
71
+ }
72
+ export interface FilerXML {
73
+ credentials: CredentialsXML;
74
+ }
75
+ export interface CredentialsXML {
76
+ cik: number;
77
+ ccc: string;
78
+ }
79
+ export interface FlagsXML {
80
+ confirmingCopyFlag: boolean;
81
+ returnCopyFlag: boolean;
82
+ overrideInternetFlag: boolean;
83
+ }
84
+ export interface InformationTableXML {
85
+ infoTable: InfoTableXML[];
86
+ }
87
+ export interface InfoTableXML {
88
+ nameOfIssuer: string;
89
+ titleOfClass: string;
90
+ cusip: number | string;
91
+ value: number;
92
+ shrsOrPrnAmt: ShrsOrPrnAmtXML;
93
+ investmentDiscretion: string;
94
+ otherManager: number | string;
95
+ votingAuthority: VotingAuthorityXML;
96
+ }
97
+ export interface ShrsOrPrnAmtXML {
98
+ sshPrnamt: number;
99
+ sshPrnamtType: string;
100
+ }
101
+ export interface VotingAuthorityXML {
102
+ Sole: number;
103
+ Shared: number;
104
+ None: number;
105
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,132 @@
1
+ export interface Form4XML {
2
+ schemaVersion: string;
3
+ documentType: number;
4
+ periodOfReport: string;
5
+ notSubjectToSection16: number;
6
+ issuer: IssuerXML;
7
+ reportingOwner: ReportingOwnerXML;
8
+ aff10b5One: number;
9
+ nonDerivativeTable: NonDerivativeTableXML;
10
+ derivativeTable: DerivativeTableXML;
11
+ footnotes: FootnotesXML;
12
+ remarks: string;
13
+ ownerSignature: OwnerSignatureXML;
14
+ }
15
+ export interface DerivativeTableXML {
16
+ derivativeHolding: DerivativeHoldingXML[];
17
+ derivativeTransaction: DerivativeTransactionXML[];
18
+ }
19
+ export interface DerivativeHoldingXML {
20
+ securityTitle: ValueCellXML;
21
+ conversionOrExercisePrice: ValueCellXML;
22
+ exerciseDate: ValueCellXML;
23
+ expirationDate: ValueCellXML;
24
+ underlyingSecurity: UnderlyingSecurityXML;
25
+ postTransactionAmounts: DerivativeHoldingPostTransactionAmountsXML;
26
+ ownershipNature: DerivativeHoldingOwnershipNatureXML;
27
+ }
28
+ export interface DerivativeHoldingOwnershipNatureXML {
29
+ directOrIndirectOwnership: ValueCellXML;
30
+ natureOfOwnership?: ValueCellXML;
31
+ }
32
+ export interface ValueCellXML {
33
+ value?: string | number;
34
+ footnoteId?: string;
35
+ }
36
+ export interface DerivativeHoldingPostTransactionAmountsXML {
37
+ sharesOwnedFollowingTransaction: ValueCellXML;
38
+ }
39
+ export interface UnderlyingSecurityXML {
40
+ underlyingSecurityTitle: ValueCellXML;
41
+ underlyingSecurityShares: ValueCellXML;
42
+ }
43
+ export interface DerivativeTransactionXML {
44
+ securityTitle: ValueCellXML;
45
+ conversionOrExercisePrice: ValueCellXML;
46
+ transactionDate: ValueCellXML;
47
+ deemedExecutionDate: string;
48
+ transactionCoding: TransactionCodingXML;
49
+ transactionTimeliness: ValueCellXML;
50
+ transactionAmounts: TransactionAmountsXML;
51
+ exerciseDate: ValueCellXML;
52
+ expirationDate: ValueCellXML;
53
+ underlyingSecurity: UnderlyingSecurityXML;
54
+ postTransactionAmounts: DerivativeHoldingPostTransactionAmountsXML;
55
+ ownershipNature: DerivativeTransactionOwnershipNatureXML;
56
+ }
57
+ export interface DerivativeTransactionOwnershipNatureXML {
58
+ directOrIndirectOwnership: ValueCellXML;
59
+ natureOfOwnership: ValueCellXML;
60
+ }
61
+ export interface TransactionAmountsXML {
62
+ transactionShares: ValueCellXML;
63
+ transactionPricePerShare: ValueCellXML;
64
+ transactionAcquiredDisposedCode: ValueCellXML;
65
+ }
66
+ export interface TransactionCodingXML {
67
+ transactionFormType: number;
68
+ transactionCode: string;
69
+ equitySwapInvolved: number;
70
+ footnoteId: string;
71
+ }
72
+ export interface FootnotesXML {
73
+ footnote: string[];
74
+ }
75
+ export interface IssuerXML {
76
+ issuerCik: number;
77
+ issuerName: string;
78
+ issuerTradingSymbol: string;
79
+ }
80
+ export interface NonDerivativeTableXML {
81
+ nonDerivativeHolding: NonDerivativeHoldingXML[];
82
+ nonDerivativeTransaction: NonDerivativeTransactionXML[];
83
+ }
84
+ export interface NonDerivativeHoldingXML {
85
+ securityTitle: ValueCellXML;
86
+ postTransactionAmounts: NonDerivativeHoldingPostTransactionAmountsXML;
87
+ ownershipNature: DerivativeHoldingOwnershipNatureXML;
88
+ }
89
+ export interface NonDerivativeHoldingPostTransactionAmountsXML {
90
+ sharesOwnedFollowingTransaction: PurpleValueCell;
91
+ }
92
+ export interface PurpleValueCell {
93
+ value: number;
94
+ footnoteId: string;
95
+ }
96
+ export interface NonDerivativeTransactionXML {
97
+ securityTitle: ValueCellXML;
98
+ transactionDate: ValueCellXML;
99
+ deemedExecutionDate: string;
100
+ transactionCoding: TransactionCodingXML;
101
+ transactionTimeliness: ValueCellXML;
102
+ transactionAmounts: TransactionAmountsXML;
103
+ postTransactionAmounts: DerivativeHoldingPostTransactionAmountsXML;
104
+ ownershipNature: DerivativeTransactionOwnershipNatureXML;
105
+ }
106
+ export interface OwnerSignatureXML {
107
+ signatureName: string;
108
+ signatureDate: string;
109
+ }
110
+ export interface ReportingOwnerXML {
111
+ reportingOwnerId: ReportingOwnerIDXML;
112
+ reportingOwnerAddress: ReportingOwnerAddressXML;
113
+ reportingOwnerRelationship: ReportingOwnerRelationshipXML;
114
+ }
115
+ export interface ReportingOwnerAddressXML {
116
+ rptOwnerStreet1: string;
117
+ rptOwnerStreet2: string;
118
+ rptOwnerCity: string;
119
+ rptOwnerState: string;
120
+ rptOwnerZipCode: number;
121
+ rptOwnerStateDescription: string;
122
+ }
123
+ export interface ReportingOwnerIDXML {
124
+ rptOwnerCik: number;
125
+ rptOwnerName: string;
126
+ }
127
+ export interface ReportingOwnerRelationshipXML {
128
+ isDirector: number;
129
+ isOfficer: number;
130
+ isTenPercentOwner: number;
131
+ isOther: number;
132
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
+ export * from './common.type';
1
2
  export * from './company-facts.type';
3
+ export * from './parsed-filings.type';
2
4
  export * from './report-raw.type';
3
5
  export * from './report-translated.type';
4
6
  export * from './submission.type';
5
- export * from './parsed-filings.type';
6
- export * from './common.type';
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./common.type"), exports);
17
18
  __exportStar(require("./company-facts.type"), exports);
19
+ __exportStar(require("./parsed-filings.type"), exports);
18
20
  __exportStar(require("./report-raw.type"), exports);
19
21
  __exportStar(require("./report-translated.type"), exports);
20
22
  __exportStar(require("./submission.type"), exports);
21
- __exportStar(require("./parsed-filings.type"), exports);
22
- __exportStar(require("./common.type"), exports);
@@ -67,6 +67,7 @@ export interface ExecutiveCompensation {
67
67
  name: string;
68
68
  position: string | null;
69
69
  year: number | null;
70
+ positionLevel: 'Executive' | 'Director';
70
71
  salaryDollars: number | null;
71
72
  bonusDollars: number | null;
72
73
  stockAwardDollars: number | null;
@@ -80,17 +81,155 @@ export interface Holder {
80
81
  shares: number | null;
81
82
  percentOfClass: string | null;
82
83
  }
83
- export interface Form4Data {
84
- transactions: InsiderTransaction[];
85
- }
86
84
  export interface Form10KData {
87
85
  tables: TableData[];
88
86
  }
89
87
  export interface Form13GData {
90
- holders: InstitutionalHolder[];
88
+ institutionalHolders: InstitutionalHolder[];
91
89
  }
92
90
  export interface FormDef14aData {
93
91
  executiveCompensation: ExecutiveCompensation[];
94
- holders: Holder[];
92
+ }
93
+ export interface Form4Data {
94
+ schemaVersion: string;
95
+ documentType: string;
96
+ periodOfReport: string;
97
+ issuerCik: number;
98
+ issuerName: string;
99
+ issuerTradingSymbol: string;
100
+ notSubjectToSection16: boolean;
101
+ reportingOwners: ReportingOwner[];
102
+ aff10b5One: boolean;
103
+ nonDerivativeHolding: NonDerivativeHolding[];
104
+ nonDerivativeTransaction: NonDerivativeTransaction[];
105
+ derivativeHolding: DerivativeHolding[];
106
+ derivativeTransaction: DerivativeTransaction[];
107
+ footnotes: string[];
108
+ remarks: string;
109
+ signatureName: string;
110
+ signatureDate: string;
111
+ }
112
+ export interface DerivativeHolding {
113
+ securityTitle: string;
114
+ directOrIndirectOwnership: string;
115
+ natureOfOwnership: string | null;
116
+ sharesOwnedFollowingTransaction: number;
117
+ conversionOrExercisePrice: number | null;
118
+ exerciseDate: string | null;
119
+ expirationDate: string | null;
120
+ underlyingSecurityShares: number | null;
121
+ underlyingSecurityTitle: string | null;
122
+ }
123
+ export interface DerivativeTransaction {
124
+ securityTitle: string;
125
+ directOrIndirectOwnership: string;
126
+ natureOfOwnership: string | null;
127
+ sharesOwnedFollowingTransaction: number;
128
+ deemedExecutionDate: string | null;
129
+ equitySwapInvolved: boolean;
130
+ transactionShares: number;
131
+ transactionCode: string;
132
+ transactionFormType: string;
133
+ transactionDate: string;
134
+ transactionTimeliness: string | null;
135
+ transactionPricePerShare: number | null;
136
+ transactionAcquiredDisposedCode: string;
137
+ conversionOrExercisePrice: number | null;
138
+ exerciseDate: string | null;
139
+ expirationDate: string | null;
140
+ underlyingSecurityShares: number | null;
141
+ underlyingSecurityTitle: string | null;
142
+ }
143
+ export interface NonDerivativeHolding {
144
+ securityTitle: string;
145
+ directOrIndirectOwnership: string;
146
+ natureOfOwnership: string | null;
147
+ sharesOwnedFollowingTransaction: number;
148
+ }
149
+ export interface NonDerivativeTransaction {
150
+ securityTitle: string;
151
+ directOrIndirectOwnership: string;
152
+ natureOfOwnership: string | null;
153
+ sharesOwnedFollowingTransaction: number;
154
+ deemedExecutionDate: string | null;
155
+ equitySwapInvolved: boolean;
156
+ transactionShares: number;
157
+ transactionCode: string;
158
+ transactionFormType: string;
159
+ transactionDate: string;
160
+ transactionTimeliness: string | null;
161
+ transactionPricePerShare: number | null;
162
+ transactionAcquiredDisposedCode: string;
163
+ }
164
+ export interface ReportingOwner {
165
+ rptOwnerCity: string;
166
+ rptOwnerState: string;
167
+ rptOwnerStateDescription: string;
168
+ rptOwnerStreet1: string;
169
+ rptOwnerStreet2: string;
170
+ rptOwnerZipCode: string;
171
+ rptOwnerCik: number;
172
+ rptOwnerName: string;
173
+ isDirector: boolean;
174
+ isOfficer: boolean;
175
+ isTenPercentOwner: boolean;
176
+ isOther: boolean;
177
+ }
178
+ export interface Form13FData {
179
+ submissionType: string;
180
+ periodOfReport: string;
181
+ cik: number;
182
+ ccc: string;
183
+ form13FFileNumber: string;
184
+ liveTestFlag: string;
185
+ reportCalendarOrQuarter: string;
186
+ reportType: string;
187
+ confirmingCopyFlag: boolean;
188
+ overrideInternetFlag: boolean;
189
+ returnCopyFlag: boolean;
190
+ filingManager: FilingManager;
191
+ otherManagers: Manager[];
192
+ provideInfoForInstruction5: string;
193
+ signatureBlock: SignatureBlock;
194
+ otherManagers2: Manager[];
195
+ otherIncludedManagersCount: number;
196
+ tableEntryTotal: number;
197
+ tableValueTotal: number;
198
+ isConfidentialOmitted: boolean;
199
+ infoTable: InfoTable[];
200
+ }
201
+ export interface FilingManager {
202
+ name: string;
203
+ ns1City: string;
204
+ ns1StateOrCountry: string;
205
+ ns1Street1: string;
206
+ ns1ZipCode: string;
207
+ }
208
+ export interface InfoTable {
209
+ nameOfIssuer: string;
210
+ titleOfClass: string;
211
+ cusip: string;
212
+ value: number;
213
+ sharesOrPrincipalAmount: number;
214
+ isPrincipalAmount: boolean;
215
+ investmentDiscretion: string;
216
+ votingAuthoritySole: number;
217
+ votingAuthorityShared: number;
218
+ votingAuthorityNone: number;
219
+ otherManagers: number[];
220
+ }
221
+ export interface Manager {
222
+ sequenceNumber: number | null;
223
+ name: string;
224
+ form13FFileNumber: string;
225
+ }
226
+ export interface SignatureBlock {
227
+ city: string;
228
+ name: string;
229
+ phone: string;
230
+ signature: string;
231
+ signatureDate: string;
232
+ stateOrCountry: string;
233
+ title: string;
95
234
  }
96
235
  export {};
@@ -2,16 +2,13 @@
2
2
  * Contains all keys matched from the report, along with the added keys dateEnd, dateFiled, fiscalPeriod, fiscalYear.
3
3
  */
4
4
  export type ReportRaw = {
5
- [key: string]: string | number | boolean;
5
+ [key: string]: string | number | boolean | null;
6
6
  dateReport: string;
7
7
  dateFiled: string;
8
- form: string;
9
- isTTM: boolean;
10
- frame: string;
11
- taxonomy: string;
12
- reportType: ReportType;
13
8
  fiscalPeriod: FiscalPeriod;
14
9
  fiscalYear: number;
10
+ splitRatio: number | null;
11
+ splitDate: string | null;
15
12
  };
16
13
  /**
17
14
  * QUARTERLY = 10-Q and 10-K forms for the quarter | ANNUAL = 10-K forms for the year |
@@ -19,5 +16,5 @@ export type ReportRaw = {
19
16
  *
20
17
  * for dei, see https://www.sec.gov/structureddata/announcement/osd-announcement-2212-new-2022q4-taxonomies
21
18
  */
22
- export type ReportType = 'QUARTERLY' | 'ANNUAL' | '8K' | 'DOCUMENT_ENTITY_INFO';
19
+ export type ReportType = 'QUARTERLY' | 'ANNUAL' | '8K';
23
20
  export type FiscalPeriod = 'Q1' | 'Q2' | 'Q3' | 'Q4' | 'FY';
@@ -4,8 +4,6 @@ export interface ReportTranslated {
4
4
  dateFiled: string;
5
5
  fiscalPeriod: FiscalPeriod;
6
6
  fiscalYear: number;
7
- form: string;
8
- isTTM: boolean;
9
7
  assetTotal: number | null;
10
8
  assetCurrent: number | null;
11
9
  assetCurrentCashEquivalents: number | null;
@@ -55,4 +53,5 @@ export interface ReportTranslated {
55
53
  cashFlowOperating: number | null;
56
54
  cashFlowDeferredTax: number | null;
57
55
  cashFlowWorkingCapitalNonCash: number | null;
56
+ splitRatio: number | null;
58
57
  }
@@ -53,11 +53,12 @@ export interface FilingListItemTranslated {
53
53
  primaryDocument: string;
54
54
  primaryDocDescription: string;
55
55
  url: string;
56
+ urlXml: string;
56
57
  }
57
- interface FilingList {
58
+ export interface FilingList {
58
59
  recent: FilingListDetails;
59
60
  files: FileData[];
60
- recentTranslated?: FilingListItemTranslated[];
61
+ recentTranslated: FilingListItemTranslated[];
61
62
  }
62
63
  export interface SubmissionList {
63
64
  cik: number;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * TODO: Add this.
3
+ *
4
+ * @see https://xbrl.us/xbrl-taxonomy/2024-us-gaap/
5
+ */
6
+ export declare const calculationMapByNs: Record<string, Record<string, string[]>>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.calculationMapByNs = void 0;
4
+ /**
5
+ * TODO: Add this.
6
+ *
7
+ * @see https://xbrl.us/xbrl-taxonomy/2024-us-gaap/
8
+ */
9
+ exports.calculationMapByNs = {};
@@ -10,8 +10,6 @@ var keyTranslations = {
10
10
  dateFiled: ['dateFiled'],
11
11
  fiscalPeriod: ['fiscalPeriod'],
12
12
  fiscalYear: ['fiscalYear'],
13
- form: ['form'],
14
- isTTM: ['isTTM'],
15
13
  // ------------------------------- //
16
14
  assetTotal: ['Assets'],
17
15
  assetCurrent: ['AssetsCurrent', 'CurrentAssets'],
@@ -170,5 +168,6 @@ var keyTranslations = {
170
168
  cashFlowDeferredTax: ['DeferredIncomeTaxExpenseBenefit'],
171
169
  cashFlowWorkingCapitalNonCash: [],
172
170
  expenseStockCompensation: ['AllocatedShareBasedCompensationExpense'],
171
+ splitRatio: ['StockholdersEquityNoteStockSplitConversionRatio1'],
173
172
  };
174
173
  exports.default = keyTranslations;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sec-edgar-api",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Fetch and parse SEC earnings reports and other filings. Useful for financial analysis.",
5
5
  "main": "build/index.js",
6
6
  "author": "Andrew Evers (https://github.com/andyevers)",
@@ -34,5 +34,8 @@
34
34
  },
35
35
  "files": [
36
36
  "build/**/*"
37
- ]
37
+ ],
38
+ "dependencies": {
39
+ "fast-xml-parser": "^4.5.0"
40
+ }
38
41
  }