@cyanheads/secedgar-mcp-server 0.20.0 → 0.21.0
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/AGENTS.md +41 -33
- package/CLAUDE.md +41 -33
- package/README.md +37 -16
- package/changelog/0.20.x/0.20.1.md +39 -0
- package/changelog/0.21.x/0.21.0.md +35 -0
- package/changelog/template.md +10 -8
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/prompts/definitions/company-analysis.prompt.js +3 -3
- package/dist/mcp-server/prompts/definitions/company-analysis.prompt.js.map +1 -1
- package/dist/mcp-server/tools/annual-report-reads.d.ts +50 -0
- package/dist/mcp-server/tools/annual-report-reads.d.ts.map +1 -0
- package/dist/mcp-server/tools/annual-report-reads.js +141 -0
- package/dist/mcp-server/tools/annual-report-reads.js.map +1 -0
- package/dist/mcp-server/tools/calendar-quarter.d.ts +22 -0
- package/dist/mcp-server/tools/calendar-quarter.d.ts.map +1 -0
- package/dist/mcp-server/tools/calendar-quarter.js +34 -0
- package/dist/mcp-server/tools/calendar-quarter.js.map +1 -0
- package/dist/mcp-server/tools/definitions/company-search.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/company-search.tool.js +11 -22
- package/dist/mcp-server/tools/definitions/company-search.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/compare-companies.tool.d.ts +12 -2
- package/dist/mcp-server/tools/definitions/compare-companies.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/compare-companies.tool.js +153 -48
- package/dist/mcp-server/tools/definitions/compare-companies.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/dataframe-query.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/dataframe-query.tool.js +28 -5
- package/dist/mcp-server/tools/definitions/dataframe-query.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/fetch-frames.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/fetch-frames.tool.js +4 -2
- package/dist/mcp-server/tools/definitions/fetch-frames.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/find-holders.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/find-holders.tool.js +12 -19
- package/dist/mcp-server/tools/definitions/find-holders.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.d.ts +24 -9
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.js +126 -47
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-filing.tool.d.ts +24 -2
- package/dist/mcp-server/tools/definitions/get-filing.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-filing.tool.js +370 -92
- package/dist/mcp-server/tools/definitions/get-filing.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-financials.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-financials.tool.js +127 -44
- package/dist/mcp-server/tools/definitions/get-financials.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-fund-holdings.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-fund-holdings.tool.js +5 -6
- package/dist/mcp-server/tools/definitions/get-fund-holdings.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.d.ts +42 -2
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.js +525 -134
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-institutional-holdings.tool.d.ts +12 -0
- package/dist/mcp-server/tools/definitions/get-institutional-holdings.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-institutional-holdings.tool.js +21 -36
- package/dist/mcp-server/tools/definitions/get-institutional-holdings.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-material-events.tool.d.ts +15 -0
- package/dist/mcp-server/tools/definitions/get-material-events.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-material-events.tool.js +108 -55
- package/dist/mcp-server/tools/definitions/get-material-events.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-snapshot.tool.d.ts +5 -0
- package/dist/mcp-server/tools/definitions/get-snapshot.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-snapshot.tool.js +70 -37
- package/dist/mcp-server/tools/definitions/get-snapshot.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +282 -219
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-concepts.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-concepts.tool.js +16 -11
- package/dist/mcp-server/tools/definitions/search-concepts.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-filings.tool.d.ts +18 -0
- package/dist/mcp-server/tools/definitions/search-filings.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-filings.tool.js +130 -68
- package/dist/mcp-server/tools/definitions/search-filings.tool.js.map +1 -1
- package/dist/mcp-server/tools/filing-dates.d.ts +46 -0
- package/dist/mcp-server/tools/filing-dates.d.ts.map +1 -0
- package/dist/mcp-server/tools/filing-dates.js +93 -0
- package/dist/mcp-server/tools/filing-dates.js.map +1 -0
- package/dist/mcp-server/tools/limit-clamp.d.ts.map +1 -1
- package/dist/mcp-server/tools/limit-clamp.js +6 -2
- package/dist/mcp-server/tools/limit-clamp.js.map +1 -1
- package/dist/services/edgar/body-text-decoder.d.ts +33 -0
- package/dist/services/edgar/body-text-decoder.d.ts.map +1 -0
- package/dist/services/edgar/body-text-decoder.js +103 -0
- package/dist/services/edgar/body-text-decoder.js.map +1 -0
- package/dist/services/edgar/call-scope.d.ts +13 -1
- package/dist/services/edgar/call-scope.d.ts.map +1 -1
- package/dist/services/edgar/call-scope.js +4 -1
- package/dist/services/edgar/call-scope.js.map +1 -1
- package/dist/services/edgar/concept-map.d.ts.map +1 -1
- package/dist/services/edgar/concept-map.js +88 -14
- package/dist/services/edgar/concept-map.js.map +1 -1
- package/dist/services/edgar/concept-series.d.ts +111 -1
- package/dist/services/edgar/concept-series.d.ts.map +1 -1
- package/dist/services/edgar/concept-series.js +196 -1
- package/dist/services/edgar/concept-series.js.map +1 -1
- package/dist/services/edgar/edgar-api-service.d.ts +2 -12
- package/dist/services/edgar/edgar-api-service.d.ts.map +1 -1
- package/dist/services/edgar/edgar-api-service.js +30 -39
- package/dist/services/edgar/edgar-api-service.js.map +1 -1
- package/dist/services/edgar/eight-k-items.d.ts +19 -1
- package/dist/services/edgar/eight-k-items.d.ts.map +1 -1
- package/dist/services/edgar/eight-k-items.js +24 -1
- package/dist/services/edgar/eight-k-items.js.map +1 -1
- package/dist/services/edgar/filing-to-text.d.ts +29 -10
- package/dist/services/edgar/filing-to-text.d.ts.map +1 -1
- package/dist/services/edgar/filing-to-text.js +605 -53
- package/dist/services/edgar/filing-to-text.js.map +1 -1
- package/dist/services/edgar/fiscal-periods.d.ts +2 -0
- package/dist/services/edgar/fiscal-periods.d.ts.map +1 -1
- package/dist/services/edgar/fiscal-periods.js +1 -1
- package/dist/services/edgar/fiscal-periods.js.map +1 -1
- package/dist/services/edgar/form4-amendments.d.ts +63 -0
- package/dist/services/edgar/form4-amendments.d.ts.map +1 -0
- package/dist/services/edgar/form4-amendments.js +99 -0
- package/dist/services/edgar/form4-amendments.js.map +1 -0
- package/dist/services/edgar/mirror/companyfacts-sync.d.ts +6 -1
- package/dist/services/edgar/mirror/companyfacts-sync.d.ts.map +1 -1
- package/dist/services/edgar/mirror/companyfacts-sync.js +29 -6
- package/dist/services/edgar/mirror/companyfacts-sync.js.map +1 -1
- package/dist/services/edgar/ownership-parser.d.ts +5 -0
- package/dist/services/edgar/ownership-parser.d.ts.map +1 -1
- package/dist/services/edgar/ownership-parser.js +3 -0
- package/dist/services/edgar/ownership-parser.js.map +1 -1
- package/dist/services/edgar/types.d.ts +12 -7
- package/dist/services/edgar/types.d.ts.map +1 -1
- package/package.json +8 -8
- package/server.json +3 -3
- package/skills/secedgar-guide/SKILL.md +22 -5
|
@@ -19,7 +19,7 @@ import { trigramScorer } from './trigram-similarity.js';
|
|
|
19
19
|
* `aliases` are taken from the label, never invented: the label keyed like a
|
|
20
20
|
* name (`&` as `and`), or that minus its sign qualifier (`(Benefit)`, `(Loss)`).
|
|
21
21
|
* A spelling with a second reading stays out — `eps` (basic or diluted), `total_debt` (`debt` is
|
|
22
|
-
* long-term only), `cost_of_revenue` (a `cogs` fallback tag that totals
|
|
22
|
+
* noncurrent long-term debt only), `cost_of_revenue` (a `cogs` fallback tag that totals
|
|
23
23
|
* differently for service filers), `ppe` (gross or net) (#240).
|
|
24
24
|
*/
|
|
25
25
|
const CONCEPT_MAP = {
|
|
@@ -64,8 +64,24 @@ const CONCEPT_MAP = {
|
|
|
64
64
|
net_income: {
|
|
65
65
|
group: 'income_statement',
|
|
66
66
|
tags: ['NetIncomeLoss'],
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
/**
|
|
68
|
+
* `ProfitLoss` adds the noncontrolling interests' share, so it stays out of
|
|
69
|
+
* `tags` (#36), but some filers tag only it (Illinois Tool Works, PNC, Truist)
|
|
70
|
+
* and others moved their net income to it (Broadcom, Ford) (#258).
|
|
71
|
+
*/
|
|
72
|
+
relatedTags: [
|
|
73
|
+
{
|
|
74
|
+
tag: 'ProfitLoss',
|
|
75
|
+
note: 'Net income including the portion attributable to noncontrolling interests; the primary line for filers that tag only the consolidated total.',
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
/**
|
|
79
|
+
* Mirrors equity's IFRS split: `ProfitLossAttributableToOwnersOfParent` is the
|
|
80
|
+
* counterpart of `NetIncomeLoss` (parent-attributable) and leads, with
|
|
81
|
+
* `ProfitLoss`, which includes noncontrolling interests, as the fallback for
|
|
82
|
+
* filers that tag only the total. Both verified in BHP's and Spotify's 20-F facts.
|
|
83
|
+
*/
|
|
84
|
+
ifrsTags: ['ProfitLossAttributableToOwnersOfParent', 'ProfitLoss'],
|
|
69
85
|
taxonomy: 'us-gaap',
|
|
70
86
|
unit: 'USD',
|
|
71
87
|
label: 'Net Income (Loss)',
|
|
@@ -116,6 +132,44 @@ const CONCEPT_MAP = {
|
|
|
116
132
|
label: 'Weighted-Average Diluted Shares',
|
|
117
133
|
aliases: ['weighted_average_diluted_shares'],
|
|
118
134
|
},
|
|
135
|
+
dividends_per_share: {
|
|
136
|
+
group: 'per_share',
|
|
137
|
+
/**
|
|
138
|
+
* A ladder, declared first. Filers split between the two tags and some switch
|
|
139
|
+
* (P&G framed CashPaid through fiscal 2024 and Declared from fiscal 2023), and
|
|
140
|
+
* where both are reported they agree: of 1,589 CY2019–CY2025 annual filer-years,
|
|
141
|
+
* 1,220 to the half cent and 142 more within 5%, a dividend declared in one year
|
|
142
|
+
* and paid the next. So the ladder reads a switcher as one series, where
|
|
143
|
+
* `coverage` would keep only the tag with more periods and cut P&G at fiscal
|
|
144
|
+
* 2024. Declared leads on breadth (1,246 CY2024 filers against 575), and its
|
|
145
|
+
* frame is the one secedgar_fetch_frames reads (#278).
|
|
146
|
+
*
|
|
147
|
+
* A fill is the filer's own figure under the other tag, so a filer that tags one
|
|
148
|
+
* of the two at another scale carries that into the series (Permian Resources'
|
|
149
|
+
* CY2022 CashPaid is a dollar total), and so does a mis-scaled leader (LTC
|
|
150
|
+
* Properties' Declared is its monthly dividend, its CashPaid the year's). Of 494
|
|
151
|
+
* CY2019–CY2025 fills, 21 sit ten times or more from the filer's nearest Declared
|
|
152
|
+
* year, with the wrong side as often the leader as the fill, or neither (NVIDIA's
|
|
153
|
+
* split restatement). The payload shows two tags disagreeing, not which is right,
|
|
154
|
+
* so no fill is dropped; each value names its source tag.
|
|
155
|
+
*/
|
|
156
|
+
tags: ['CommonStockDividendsPerShareDeclared', 'CommonStockDividendsPerShareCashPaid'],
|
|
157
|
+
/**
|
|
158
|
+
* The recognised distribution leads as Declared's counterpart (SAP, British
|
|
159
|
+
* American Tobacco, BHP, AstraZeneca), and the paid one answers the filers that
|
|
160
|
+
* tag only it (HSBC, Sanofi, GSK, Shell, BP, Novo Nordisk). Of twelve 20-F filers
|
|
161
|
+
* tagging either, one series takes a mis-scaled fill: British American Tobacco's
|
|
162
|
+
* CY2015–CY2017, paid figures tagged in pence as GBP. The element for a dividend
|
|
163
|
+
* proposed after the period is next year's final dividend, so it stays out.
|
|
164
|
+
*/
|
|
165
|
+
ifrsTags: [
|
|
166
|
+
'DividendsRecognisedAsDistributionsToOwnersPerShare',
|
|
167
|
+
'DividendsPaidOrdinarySharesPerShare',
|
|
168
|
+
],
|
|
169
|
+
taxonomy: 'us-gaap',
|
|
170
|
+
unit: 'USD/shares',
|
|
171
|
+
label: 'Dividends Per Share',
|
|
172
|
+
},
|
|
119
173
|
assets: {
|
|
120
174
|
group: 'balance_sheet',
|
|
121
175
|
tags: ['Assets'],
|
|
@@ -173,16 +227,35 @@ const CONCEPT_MAP = {
|
|
|
173
227
|
},
|
|
174
228
|
debt: {
|
|
175
229
|
group: 'balance_sheet',
|
|
176
|
-
tags: ['LongTermDebt', 'LongTermDebtNoncurrent'],
|
|
177
230
|
/**
|
|
178
|
-
* `
|
|
179
|
-
*
|
|
180
|
-
*
|
|
231
|
+
* `LongTermDebt` includes current maturities and `LongTermDebtNoncurrent` does
|
|
232
|
+
* not; of the 1,215 CY2024Q4I filers framing both, 935 frame different values.
|
|
233
|
+
* A ladder of the two answered one quantity for one filer and the other for the
|
|
234
|
+
* next, and spliced a filer's series (Pfizer's lone 2020 `LongTermDebt` fact,
|
|
235
|
+
* 4.0B, took the year from its 37.1B noncurrent figure), so the total is a
|
|
236
|
+
* related tag (#36, #270). Filers that tag only it (banks, whose balance sheets
|
|
237
|
+
* are unclassified, AbbVie, Boeing) get the related-tag pointer rather than a
|
|
238
|
+
* value; AT&T and Home Depot, whose noncurrent figures stop in 2012 and 2010, a
|
|
239
|
+
* series ending there with the pointer. `long_term_debt` stays an alias: it
|
|
240
|
+
* resolved here.
|
|
241
|
+
*/
|
|
242
|
+
tags: ['LongTermDebtNoncurrent'],
|
|
243
|
+
relatedTags: [
|
|
244
|
+
{
|
|
245
|
+
tag: 'LongTermDebt',
|
|
246
|
+
note: 'Long-term debt including current maturities; the primary line for filers with an unclassified balance sheet (banks) and others that tag only the total.',
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
/**
|
|
250
|
+
* 20-F filers tag `LongtermBorrowings` as the noncurrent caption: for SAP, Shell,
|
|
251
|
+
* BP, British American Tobacco, Rio Tinto, and Novo Nordisk, CY2025Q4I
|
|
252
|
+
* `LongtermBorrowings` plus current borrowings equals `Borrowings` exactly.
|
|
253
|
+
* `Borrowings` includes the current portion, so it is no fallback.
|
|
181
254
|
*/
|
|
182
255
|
ifrsTags: ['LongtermBorrowings'],
|
|
183
256
|
taxonomy: 'us-gaap',
|
|
184
257
|
unit: 'USD',
|
|
185
|
-
label: 'Long-Term Debt',
|
|
258
|
+
label: 'Long-Term Debt (Excluding Current Maturities)',
|
|
186
259
|
aliases: ['long_term_debt'],
|
|
187
260
|
},
|
|
188
261
|
shares_outstanding: {
|
|
@@ -245,9 +318,9 @@ const CONCEPT_MAP = {
|
|
|
245
318
|
label: 'Depreciation & Amortization',
|
|
246
319
|
aliases: ['depreciation_and_amortization'],
|
|
247
320
|
},
|
|
248
|
-
// Distinct from `debt
|
|
249
|
-
// the notes-specific tags and only falls back to LongTermDebt
|
|
250
|
-
// there exclusively.
|
|
321
|
+
// Distinct from `debt`, which reads the noncurrent line alone. `notes_payable` prefers
|
|
322
|
+
// the notes-specific tags and only falls back to LongTermDebt (current maturities
|
|
323
|
+
// included) for filers that report it there exclusively.
|
|
251
324
|
//
|
|
252
325
|
// No `ifrsTags`: IFRS presents borrowings as one caption and has no balance-sheet
|
|
253
326
|
// element for the notes/debt split this concept expresses. Left unmapped rather than
|
|
@@ -629,9 +702,10 @@ const XBRL_TAG_SHAPE = /^[A-Z][A-Za-z0-9]*$/;
|
|
|
629
702
|
* answered with its formula rather than near-name suggestions, which for these
|
|
630
703
|
* names are noise (`free_cash_flow` scores highest against the other two
|
|
631
704
|
* cash-flow totals) or empty (`ebitda`). `total_debt` is deliberately absent:
|
|
632
|
-
* `debt`
|
|
633
|
-
* so any formula would understate it. A catalog
|
|
634
|
-
* table is read, so a future catalog entry of the
|
|
705
|
+
* `debt` excludes current maturities and the catalog has no current-portion or
|
|
706
|
+
* short-term borrowings concept, so any formula would understate it. A catalog
|
|
707
|
+
* name is resolved before this table is read, so a future catalog entry of the
|
|
708
|
+
* same name wins.
|
|
635
709
|
*/
|
|
636
710
|
const DERIVATIONS = new Map([
|
|
637
711
|
['free_cash_flow', 'operating_cash_flow − capex'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concept-map.js","sourceRoot":"","sources":["../../../src/services/edgar/concept-map.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,GAAmC;IAClD,OAAO,EAAE;QACP,KAAK,EAAE,kBAAkB;QACzB;;;;;;;;;;;;;;;WAeG;QACH,IAAI,EAAE;YACJ,qDAAqD;YACrD,UAAU;YACV,qDAAqD;YACrD,iBAAiB;YACjB,sBAAsB;SACvB;QACD;;;;;;;WAOG;QACH,QAAQ,EAAE,CAAC,SAAS,EAAE,mCAAmC,CAAC;QAC1D,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,SAAS;KACjB;IACD,UAAU,EAAE;QACV,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,CAAC,eAAe,CAAC;QACvB,6DAA6D;QAC7D,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,QAAQ,EAAE,SAAS;QACnB,IA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KAAK,CAAC;YAC/B,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC;YACrC,GAAG,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC;YACjD,GAAG,CAAC,KAAK,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;SACnE,CAAC;QACF,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* identical to it rather than re-implementing the rules.
|
|
12
12
|
* @module services/edgar/concept-series
|
|
13
13
|
*/
|
|
14
|
-
import type { CompanyConceptUnit, CompanyFactsResponse, ConceptTaxonomy, TagSelection } from './types.js';
|
|
14
|
+
import type { CompanyConceptUnit, CompanyFactsConcept, CompanyFactsResponse, ConceptTaxonomy, FilingsRecent, RelatedTag, TagSelection } from './types.js';
|
|
15
15
|
/** A reported value carrying where it was read from. */
|
|
16
16
|
export interface SourcedUnit extends CompanyConceptUnit {
|
|
17
17
|
/** XBRL tag the value was reported under. */
|
|
@@ -211,6 +211,77 @@ export interface StalenessReference {
|
|
|
211
211
|
* the only `dei` concept, and an `ifrs-full` request never resolved it there.
|
|
212
212
|
*/
|
|
213
213
|
export declare function newestReportedPeriod(facts: CompanyFactsResponse, taxonomy: ConceptTaxonomy): string;
|
|
214
|
+
/** Whether a companyfacts concept carries any frame-aligned value (#141: non-array units skipped). */
|
|
215
|
+
export declare function hasFramedValue(concept: CompanyFactsConcept | undefined): boolean;
|
|
216
|
+
/** Where a concept the requested taxonomy cannot answer resolves instead (#164, #271). */
|
|
217
|
+
export interface TaxonomyRetry<Input extends ConceptTaxonomy = ConceptTaxonomy> {
|
|
218
|
+
/** The value to pass as the tool's `taxonomy` input. */
|
|
219
|
+
input: Input;
|
|
220
|
+
/** The tag carrying framed values there. */
|
|
221
|
+
tag: string;
|
|
222
|
+
/** The namespace the concept resolves to under that input — `dei` for `shares_outstanding` under `us-gaap`. */
|
|
223
|
+
taxonomy: ConceptTaxonomy;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* The retry that answers a concept with no framed value under the requested
|
|
227
|
+
* taxonomy, read from the filer's companyfacts namespaces (#164): the first
|
|
228
|
+
* other input in `accepted` — the tool's own `taxonomy` values, in order — under
|
|
229
|
+
* which a friendly name resolves to a namespace other than the one tried and a
|
|
230
|
+
* tag there carries framed values, or where a raw tag itself does. `undefined`
|
|
231
|
+
* when the requested taxonomy already holds a framed value (the concept is
|
|
232
|
+
* there, so another taxonomy is the wrong fix) or when no input answers.
|
|
233
|
+
*/
|
|
234
|
+
export declare function taxonomyRetry<Input extends ConceptTaxonomy>(concept: string, requested: ConceptTaxonomy, namespaces: CompanyFactsResponse['facts'], accepted: readonly Input[]): TaxonomyRetry<Input> | undefined;
|
|
235
|
+
/** Another taxonomy a filer reports under through a later period than the one requested (#271). */
|
|
236
|
+
export interface NewerTaxonomy<Input extends ConceptTaxonomy = ConceptTaxonomy> {
|
|
237
|
+
/** The value to pass as the tool's `taxonomy` input. */
|
|
238
|
+
input: Input;
|
|
239
|
+
/** The newest period end under it ({@link newestReportedPeriod}). */
|
|
240
|
+
newest: string;
|
|
241
|
+
/** The newest period end under the requested taxonomy; empty when it holds none. */
|
|
242
|
+
requestedNewest: string;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* The other input in `accepted` whose newest reported period
|
|
246
|
+
* ({@link newestReportedPeriod}) is later than the requested taxonomy's, the
|
|
247
|
+
* latest such when several are. It catches what a per-gap retry cannot: Toyota
|
|
248
|
+
* read under `us-gaap` resolves 32 of 36 concepts from fiscal 2020, and none of
|
|
249
|
+
* its gaps resolves under `ifrs-full`, where its statements run five years
|
|
250
|
+
* further. `dei` is never compared, so a filer's cover-page facts never point an
|
|
251
|
+
* IFRS profile at `us-gaap` (#271).
|
|
252
|
+
*/
|
|
253
|
+
export declare function newerTaxonomy<Input extends ConceptTaxonomy>(facts: CompanyFactsResponse, requested: ConceptTaxonomy, accepted: readonly Input[]): NewerTaxonomy<Input> | undefined;
|
|
254
|
+
/** An annual report as a filer's submissions feed lists it. */
|
|
255
|
+
export interface AnnualReport {
|
|
256
|
+
accessionNumber: string;
|
|
257
|
+
/** YYYY-MM-DD. */
|
|
258
|
+
filingDate: string;
|
|
259
|
+
form: string;
|
|
260
|
+
/** Period end, YYYY-MM-DD. */
|
|
261
|
+
reportDate: string;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* The newest original annual report (10-K, 10-KT, 20-F, 40-F) a submissions
|
|
265
|
+
* feed's `recent` window lists with `isXBRL` 1 and a period, by filing date, or
|
|
266
|
+
* `undefined`. A 6-K is never one: its flag does not show it tags statements
|
|
267
|
+
* (#269).
|
|
268
|
+
*/
|
|
269
|
+
export declare function newestXbrlAnnualReport(recent: FilingsRecent): AnnualReport | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* The caveat for an annual report SEC's XBRL data holds none of the statement facts
|
|
272
|
+
* of (#269), or `undefined`: the report's period ends after `reference`, the newest
|
|
273
|
+
* period the payload holds ({@link newestReportedPeriod}), and no `ifrs-full` or
|
|
274
|
+
* `us-gaap` fact carries its accession. A filer that dropped a line from its latest
|
|
275
|
+
* report still has the report's other facts, so this is a statement about the
|
|
276
|
+
* filing, never a line; checking both namespaces keeps a filer that moved from IFRS
|
|
277
|
+
* to us-gaap from tripping it under an `ifrs-full` reference, and `dei` is left out
|
|
278
|
+
* because SEC keeps a report's cover facts when it drops its statements (TSMC's 2026
|
|
279
|
+
* 20-F). SEC's companyfacts and companyconcept stopped carrying IFRS filings'
|
|
280
|
+
* `ifrs-full` facts from late March 2026, though the filings are flagged `isXBRL`,
|
|
281
|
+
* and the year that goes missing sits under the staleness floor, so nothing else
|
|
282
|
+
* names it.
|
|
283
|
+
*/
|
|
284
|
+
export declare function annualReportGapCaveat(facts: CompanyFactsResponse, report: AnnualReport, reference: string): string | undefined;
|
|
214
285
|
/**
|
|
215
286
|
* Caveat for a resolved series whose newest value is far enough behind the
|
|
216
287
|
* reference that the caller should not read it as current.
|
|
@@ -231,6 +302,45 @@ export declare function newestReportedPeriod(facts: CompanyFactsResponse, taxono
|
|
|
231
302
|
* which is the common case.
|
|
232
303
|
*/
|
|
233
304
|
export declare function seriesStalenessCaveats(tag: string, label: string, newest: FramedUnit | undefined, reference: StalenessReference): string[];
|
|
305
|
+
/**
|
|
306
|
+
* The related tags (#36) a concept may point to under the taxonomy it resolves to:
|
|
307
|
+
* the catalog's `relatedTags` when that is us-gaap, else none. They are us-gaap
|
|
308
|
+
* elements, so an ifrs-full or dei read never reads or names one, and a raw tag has
|
|
309
|
+
* none (#258).
|
|
310
|
+
*/
|
|
311
|
+
export declare function relatedTagsFor(concept: string, taxonomy: ConceptTaxonomy): readonly RelatedTag[];
|
|
312
|
+
/** A related tag with the newest standard-period value this filer reports under it. */
|
|
313
|
+
export interface RelatedTagReading extends RelatedTag {
|
|
314
|
+
newest: FramedUnit;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Each related tag's newest standard-period value in a payload already in hand — a
|
|
318
|
+
* companyfacts read, or companyconcept reads gathered under `facts['us-gaap']` —
|
|
319
|
+
* resolved by the rules every series follows ({@link seriesFromCompanyFacts}), so a
|
|
320
|
+
* proxy-held or trailing-twelve-month frame never stands in for the filer's own
|
|
321
|
+
* period. A tag the filer does not report, or reports with no framed value, is left
|
|
322
|
+
* out.
|
|
323
|
+
*/
|
|
324
|
+
export declare function relatedTagReadings(facts: CompanyFactsResponse, related: readonly RelatedTag[]): RelatedTagReading[];
|
|
325
|
+
/**
|
|
326
|
+
* The related tag a filer reports past a concept's own series (#258), or `undefined`:
|
|
327
|
+
* the one reaching furthest, when the concept's own tags hold no standard-period value
|
|
328
|
+
* (`newest` undefined) or their newest value ends before it — a filer that moved its
|
|
329
|
+
* figure to the related tag (Broadcom's and Ford's net income to `ProfitLoss`) or tags
|
|
330
|
+
* only it (Illinois Tool Works).
|
|
331
|
+
*/
|
|
332
|
+
export declare function relatedTagAhead(newest: FramedUnit | undefined, related: readonly RelatedTagReading[]): RelatedTagReading | undefined;
|
|
333
|
+
/**
|
|
334
|
+
* The caveat a concept line keeps about where its series stands (#258): the
|
|
335
|
+
* related-tag pointer ({@link relatedTagCaveat}) when it fires, in place of the
|
|
336
|
+
* `staleness` caveats the caller computed ({@link seriesStalenessCaveats}) — both
|
|
337
|
+
* explain a series that stops short, and the pointer names where the filer's figure
|
|
338
|
+
* is — else those caveats unchanged. `newest` is the concept's own newest value,
|
|
339
|
+
* undefined when its tags hold none; `related` comes from {@link relatedTagReadings}.
|
|
340
|
+
* A filer whose own tags reach every related tag's newest period reads exactly as
|
|
341
|
+
* without it.
|
|
342
|
+
*/
|
|
343
|
+
export declare function conceptLineCaveats(newest: FramedUnit | undefined, related: readonly RelatedTagReading[], staleness?: readonly string[]): string[];
|
|
234
344
|
/**
|
|
235
345
|
* Whether a frame belongs to the requested period type. `fp` reflects the source
|
|
236
346
|
* filing rather than the data point, so the frame label is the only reliable
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concept-series.d.ts","sourceRoot":"","sources":["../../../src/services/edgar/concept-series.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"concept-series.d.ts","sourceRoot":"","sources":["../../../src/services/edgar/concept-series.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,UAAU,EACV,YAAY,EACb,MAAM,YAAY,CAAC;AAEpB,wDAAwD;AACxD,MAAM,W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IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,SAAS,UAAU,EAAE,EAC7B,KAAK,EAAE,SAAS,kBAAkB,EAAE,EACpC,SAAS,EAAE,YAAY,GACtB,MAAM,GAAG,SAAS,CAQpB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,oBAAoB,EAC3B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,SAAS,GAAE,YAAyB,GACnC,aAAa,GAAG,SAAS,CA8C3B"}
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
* identical to it rather than re-implementing the rules.
|
|
12
12
|
* @module services/edgar/concept-series
|
|
13
13
|
*/
|
|
14
|
-
import { listConcepts, resolveConceptTarget } from './concept-map.js';
|
|
14
|
+
import { listConcepts, resolveConcept, resolveConceptTarget } from './concept-map.js';
|
|
15
|
+
import { DURATION_QUARTER_FRAME } from './fiscal-periods.js';
|
|
15
16
|
/**
|
|
16
17
|
* Schedule 14A and 14C forms — proxy and information statements in every
|
|
17
18
|
* variant EDGAR names (`DEF 14A`, `PRE 14A`, `DEFA14A`, `DEFM14A`, `PRER14A`,
|
|
@@ -455,6 +456,123 @@ export function newestReportedPeriod(facts, taxonomy) {
|
|
|
455
456
|
}
|
|
456
457
|
return newest;
|
|
457
458
|
}
|
|
459
|
+
/** Whether a companyfacts concept carries any frame-aligned value (#141: non-array units skipped). */
|
|
460
|
+
export function hasFramedValue(concept) {
|
|
461
|
+
return Object.values(concept?.units ?? {}).some((values) => Array.isArray(values) && values.some((value) => value.frame));
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* The retry that answers a concept with no framed value under the requested
|
|
465
|
+
* taxonomy, read from the filer's companyfacts namespaces (#164): the first
|
|
466
|
+
* other input in `accepted` — the tool's own `taxonomy` values, in order — under
|
|
467
|
+
* which a friendly name resolves to a namespace other than the one tried and a
|
|
468
|
+
* tag there carries framed values, or where a raw tag itself does. `undefined`
|
|
469
|
+
* when the requested taxonomy already holds a framed value (the concept is
|
|
470
|
+
* there, so another taxonomy is the wrong fix) or when no input answers.
|
|
471
|
+
*/
|
|
472
|
+
export function taxonomyRetry(concept, requested, namespaces, accepted) {
|
|
473
|
+
const name = concept.trim();
|
|
474
|
+
const tried = resolveConceptTarget(name, requested);
|
|
475
|
+
if (tried.tags.some((tag) => hasFramedValue(namespaces[tried.taxonomy]?.[tag])))
|
|
476
|
+
return;
|
|
477
|
+
if (!resolveConcept(name)) {
|
|
478
|
+
const input = accepted.find((taxonomy) => taxonomy !== tried.taxonomy && hasFramedValue(namespaces[taxonomy]?.[name]));
|
|
479
|
+
return input && { input, taxonomy: input, tag: name };
|
|
480
|
+
}
|
|
481
|
+
for (const input of accepted) {
|
|
482
|
+
const target = resolveConceptTarget(name, input);
|
|
483
|
+
if (target.taxonomy === tried.taxonomy)
|
|
484
|
+
continue;
|
|
485
|
+
const tag = target.tags.find((t) => hasFramedValue(namespaces[target.taxonomy]?.[t]));
|
|
486
|
+
if (tag)
|
|
487
|
+
return { input, taxonomy: target.taxonomy, tag };
|
|
488
|
+
}
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* The other input in `accepted` whose newest reported period
|
|
493
|
+
* ({@link newestReportedPeriod}) is later than the requested taxonomy's, the
|
|
494
|
+
* latest such when several are. It catches what a per-gap retry cannot: Toyota
|
|
495
|
+
* read under `us-gaap` resolves 32 of 36 concepts from fiscal 2020, and none of
|
|
496
|
+
* its gaps resolves under `ifrs-full`, where its statements run five years
|
|
497
|
+
* further. `dei` is never compared, so a filer's cover-page facts never point an
|
|
498
|
+
* IFRS profile at `us-gaap` (#271).
|
|
499
|
+
*/
|
|
500
|
+
export function newerTaxonomy(facts, requested, accepted) {
|
|
501
|
+
const requestedNewest = newestReportedPeriod(facts, requested);
|
|
502
|
+
let newer;
|
|
503
|
+
for (const input of accepted) {
|
|
504
|
+
if (input === requested)
|
|
505
|
+
continue;
|
|
506
|
+
const newest = newestReportedPeriod(facts, input);
|
|
507
|
+
if (newest > requestedNewest && (!newer || newest > newer.newest)) {
|
|
508
|
+
newer = { input, newest, requestedNewest };
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
return newer;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Original annual reports — the forms a filer's statements for a fiscal year are
|
|
515
|
+
* filed on. Amendments stay out: an `isXBRL` `/A` often tags only its cover page
|
|
516
|
+
* (NVS's 2022 and DRDGOLD's 2023 20-F/As carry one `dei` fact each), so its absence
|
|
517
|
+
* from SEC's XBRL data says nothing (#269).
|
|
518
|
+
*/
|
|
519
|
+
const ORIGINAL_ANNUAL_REPORT_FORM = /^(10-KT?|20-F|40-F)$/;
|
|
520
|
+
/**
|
|
521
|
+
* The newest original annual report (10-K, 10-KT, 20-F, 40-F) a submissions
|
|
522
|
+
* feed's `recent` window lists with `isXBRL` 1 and a period, by filing date, or
|
|
523
|
+
* `undefined`. A 6-K is never one: its flag does not show it tags statements
|
|
524
|
+
* (#269).
|
|
525
|
+
*/
|
|
526
|
+
export function newestXbrlAnnualReport(recent) {
|
|
527
|
+
let newest;
|
|
528
|
+
for (const [index, form] of recent.form.entries()) {
|
|
529
|
+
if (!ORIGINAL_ANNUAL_REPORT_FORM.test(form) || recent.isXBRL?.[index] !== 1)
|
|
530
|
+
continue;
|
|
531
|
+
const accessionNumber = recent.accessionNumber[index];
|
|
532
|
+
const filingDate = recent.filingDate[index];
|
|
533
|
+
const reportDate = recent.reportDate[index];
|
|
534
|
+
if (!accessionNumber || !filingDate || !reportDate)
|
|
535
|
+
continue;
|
|
536
|
+
if (!newest || filingDate > newest.filingDate) {
|
|
537
|
+
newest = { accessionNumber, filingDate, form, reportDate };
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
return newest;
|
|
541
|
+
}
|
|
542
|
+
/** Whether any fact in one namespace carries an accession. */
|
|
543
|
+
function namespaceCarries(namespace, accession) {
|
|
544
|
+
for (const concept of Object.values(namespace ?? {})) {
|
|
545
|
+
for (const values of Object.values(concept.units)) {
|
|
546
|
+
if (Array.isArray(values) && values.some((value) => value.accn === accession))
|
|
547
|
+
return true;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
return false;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* The caveat for an annual report SEC's XBRL data holds none of the statement facts
|
|
554
|
+
* of (#269), or `undefined`: the report's period ends after `reference`, the newest
|
|
555
|
+
* period the payload holds ({@link newestReportedPeriod}), and no `ifrs-full` or
|
|
556
|
+
* `us-gaap` fact carries its accession. A filer that dropped a line from its latest
|
|
557
|
+
* report still has the report's other facts, so this is a statement about the
|
|
558
|
+
* filing, never a line; checking both namespaces keeps a filer that moved from IFRS
|
|
559
|
+
* to us-gaap from tripping it under an `ifrs-full` reference, and `dei` is left out
|
|
560
|
+
* because SEC keeps a report's cover facts when it drops its statements (TSMC's 2026
|
|
561
|
+
* 20-F). SEC's companyfacts and companyconcept stopped carrying IFRS filings'
|
|
562
|
+
* `ifrs-full` facts from late March 2026, though the filings are flagged `isXBRL`,
|
|
563
|
+
* and the year that goes missing sits under the staleness floor, so nothing else
|
|
564
|
+
* names it.
|
|
565
|
+
*/
|
|
566
|
+
export function annualReportGapCaveat(facts, report, reference) {
|
|
567
|
+
if (!(report.reportDate > reference))
|
|
568
|
+
return;
|
|
569
|
+
if (namespaceCarries(facts.facts['ifrs-full'], report.accessionNumber) ||
|
|
570
|
+
namespaceCarries(facts.facts['us-gaap'], report.accessionNumber)) {
|
|
571
|
+
return;
|
|
572
|
+
}
|
|
573
|
+
const { accessionNumber, filingDate, form, reportDate } = report;
|
|
574
|
+
return `SEC's XBRL data holds none of the statement facts of this filer's newest annual report, the ${form} for the period ending ${reportDate}, filed ${filingDate} (accession ${accessionNumber}), so the newest values here come from earlier filings. Read that ${form}'s statements with secedgar_get_filing.`;
|
|
575
|
+
}
|
|
458
576
|
/**
|
|
459
577
|
* Caveat for a resolved series whose newest value is far enough behind the
|
|
460
578
|
* reference that the caller should not read it as current.
|
|
@@ -502,6 +620,83 @@ export function seriesStalenessCaveats(tag, label, newest, reference) {
|
|
|
502
620
|
`This series ends at ${newest.frame}, period ending ${newest.end} — ${(gapDays / 365.25).toFixed(1)} years before ${behind}. ${tag} is a current tag, so nothing in the payload marks the gap: a filer that migrates to a different XBRL element, or stops disclosing the line, leaves a series that looks complete and simply stops. ${next}`,
|
|
503
621
|
];
|
|
504
622
|
}
|
|
623
|
+
/**
|
|
624
|
+
* The related tags (#36) a concept may point to under the taxonomy it resolves to:
|
|
625
|
+
* the catalog's `relatedTags` when that is us-gaap, else none. They are us-gaap
|
|
626
|
+
* elements, so an ifrs-full or dei read never reads or names one, and a raw tag has
|
|
627
|
+
* none (#258).
|
|
628
|
+
*/
|
|
629
|
+
export function relatedTagsFor(concept, taxonomy) {
|
|
630
|
+
if (resolveConceptTarget(concept, taxonomy).taxonomy !== 'us-gaap')
|
|
631
|
+
return [];
|
|
632
|
+
return resolveConcept(concept)?.relatedTags ?? [];
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Each related tag's newest standard-period value in a payload already in hand — a
|
|
636
|
+
* companyfacts read, or companyconcept reads gathered under `facts['us-gaap']` —
|
|
637
|
+
* resolved by the rules every series follows ({@link seriesFromCompanyFacts}), so a
|
|
638
|
+
* proxy-held or trailing-twelve-month frame never stands in for the filer's own
|
|
639
|
+
* period. A tag the filer does not report, or reports with no framed value, is left
|
|
640
|
+
* out.
|
|
641
|
+
*/
|
|
642
|
+
export function relatedTagReadings(facts, related) {
|
|
643
|
+
return related.flatMap((relatedTag) => {
|
|
644
|
+
const newest = seriesFromCompanyFacts(facts, 'us-gaap', [relatedTag.tag])?.series[0];
|
|
645
|
+
return newest ? [{ ...relatedTag, newest }] : [];
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* The related tag a filer reports past a concept's own series (#258), or `undefined`:
|
|
650
|
+
* the one reaching furthest, when the concept's own tags hold no standard-period value
|
|
651
|
+
* (`newest` undefined) or their newest value ends before it — a filer that moved its
|
|
652
|
+
* figure to the related tag (Broadcom's and Ford's net income to `ProfitLoss`) or tags
|
|
653
|
+
* only it (Illinois Tool Works).
|
|
654
|
+
*/
|
|
655
|
+
export function relatedTagAhead(newest, related) {
|
|
656
|
+
let ahead;
|
|
657
|
+
for (const reading of related) {
|
|
658
|
+
if (newest && reading.newest.end <= newest.end)
|
|
659
|
+
continue;
|
|
660
|
+
if (!ahead || reading.newest.end > ahead.newest.end)
|
|
661
|
+
ahead = reading;
|
|
662
|
+
}
|
|
663
|
+
return ahead;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* Pointer to the related tag {@link relatedTagAhead} picks, or `undefined`. It names
|
|
667
|
+
* the tag, its note, its newest period, and the call that reads it. That call's
|
|
668
|
+
* `period_type` defaults to annual whatever the concept's own series ends on, so a
|
|
669
|
+
* newest period that is a duration quarter is named with the period type that reaches
|
|
670
|
+
* it (Ford's `NetIncomeLoss` ends at a quarter too).
|
|
671
|
+
*/
|
|
672
|
+
function relatedTagCaveat(newest, related) {
|
|
673
|
+
const ahead = relatedTagAhead(newest, related);
|
|
674
|
+
if (!ahead)
|
|
675
|
+
return;
|
|
676
|
+
const { tag, note } = ahead;
|
|
677
|
+
const reach = `${ahead.newest.frame} (period ending ${ahead.newest.end})`;
|
|
678
|
+
const lead = newest
|
|
679
|
+
? `This series ends at ${newest.frame} (period ending ${newest.end}), but this filer reports ${tag} through ${reach}.`
|
|
680
|
+
: `None of this concept’s tags carries a standard-period value for this filer, but it reports ${tag} through ${reach}.`;
|
|
681
|
+
const quarterly = DURATION_QUARTER_FRAME.test(ahead.newest.frame)
|
|
682
|
+
? ` (period_type "quarterly" reaches ${ahead.newest.frame})`
|
|
683
|
+
: '';
|
|
684
|
+
return `${lead} ${tag} has a different definition and is never substituted for this concept: ${note} Pass "${tag}" as concept to secedgar_get_financials, or in concepts to secedgar_compare_companies, to read it${quarterly}.`;
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* The caveat a concept line keeps about where its series stands (#258): the
|
|
688
|
+
* related-tag pointer ({@link relatedTagCaveat}) when it fires, in place of the
|
|
689
|
+
* `staleness` caveats the caller computed ({@link seriesStalenessCaveats}) — both
|
|
690
|
+
* explain a series that stops short, and the pointer names where the filer's figure
|
|
691
|
+
* is — else those caveats unchanged. `newest` is the concept's own newest value,
|
|
692
|
+
* undefined when its tags hold none; `related` comes from {@link relatedTagReadings}.
|
|
693
|
+
* A filer whose own tags reach every related tag's newest period reads exactly as
|
|
694
|
+
* without it.
|
|
695
|
+
*/
|
|
696
|
+
export function conceptLineCaveats(newest, related, staleness = []) {
|
|
697
|
+
const pointer = relatedTagCaveat(newest, related);
|
|
698
|
+
return pointer ? [pointer] : [...staleness];
|
|
699
|
+
}
|
|
505
700
|
/**
|
|
506
701
|
* Whether a frame belongs to the requested period type. `fp` reflects the source
|
|
507
702
|
* filing rather than the data point, so the frame label is the only reliable
|