gloomberb 0.19.6 → 0.20.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/LICENSE +0 -4
- package/package.json +6 -5
- package/patches/electrobun-devkit@2.0.5.patch +148 -0
- package/src/api-client/bond-trades.ts +59 -0
- package/src/api-client/data.ts +21 -0
- package/src/api-client/index.ts +2 -0
- package/src/api-client/types/account.ts +86 -0
- package/src/api-client/types/assist.ts +32 -0
- package/src/api-client/types/auth.ts +63 -0
- package/src/api-client/types/billing.ts +54 -0
- package/src/api-client/types/chat.ts +180 -0
- package/src/api-client/types/congress.ts +107 -0
- package/src/api-client/types/credit.ts +110 -0
- package/src/api-client/types/econ.ts +158 -0
- package/src/api-client/types/equity-diagnostic.ts +73 -0
- package/src/api-client/types/filings-and-calls.ts +350 -0
- package/src/api-client/types/index.ts +25 -0
- package/src/api-client/types/jobs.ts +147 -0
- package/src/api-client/types/market.ts +122 -0
- package/src/api-client/types/news.ts +91 -0
- package/src/api-client/types/notes-and-theses.ts +172 -0
- package/src/api-client/types/quotes.ts +28 -0
- package/src/api-client/types/scanners.ts +125 -0
- package/src/api-client/types/screener.ts +65 -0
- package/src/api-client/types/search.ts +107 -0
- package/src/api-client/types/sync.ts +14 -0
- package/src/api-client/types/team-collections.ts +43 -0
- package/src/api-client/types/team-views.ts +32 -0
- package/src/api-client/types/teams.ts +135 -0
- package/src/api-client/types/ticker-data.ts +57 -0
- package/src/api-client/types/tweets.ts +59 -0
- package/src/api-client/types/world-venues.ts +23 -0
- package/src/app/runtime/desktop-deeplink.ts +41 -6
- package/src/app/star-prompt/status-line.tsx +1 -1
- package/src/app.tsx +1 -7
- package/src/architecture/ui-tokens-allowlist.json +0 -8
- package/src/cli/commands/ticker.ts +17 -4
- package/src/cli/desktop-pane-shot-browser.ts +69 -3
- package/src/cli/pane-functions/catalog.ts +3 -1
- package/src/components/chart/composite/use-composite-chart-keyboard.ts +11 -2
- package/src/components/data-table/export.ts +4 -1
- package/src/components/layout/detached-pane-shell.tsx +10 -37
- package/src/components/layout/double-escape-close.ts +90 -0
- package/src/components/layout/header.tsx +3 -2
- package/src/components/layout/market-summary.ts +6 -3
- package/src/components/layout/pane/footer/index.tsx +2 -6
- package/src/components/layout/pane/footer/model.ts +6 -12
- package/src/components/layout/shell/active-drag.ts +53 -11
- package/src/components/layout/shell/drag/magnets.ts +128 -19
- package/src/components/layout/shell/pane/actions.ts +6 -2
- package/src/components/layout/shell/pane/management-shortcuts.ts +13 -51
- package/src/components/layout/status-bar.tsx +4 -78
- package/src/components/layout/status-widget-space.ts +5 -5
- package/src/components/onboarding/portfolio-step/positions-panel.tsx +1 -1
- package/src/components/ui/data-table/index.tsx +5 -1
- package/src/components/ui/data-table/render-cell.ts +19 -0
- package/src/components/ui/delayed-mark.tsx +59 -7
- package/src/components/ui/icon.tsx +1 -8
- package/src/components/ui/menu.tsx +6 -1
- package/src/i18n/es.ts +3 -3
- package/src/i18n/ja.ts +3 -3
- package/src/i18n/ko.ts +3 -3
- package/src/i18n/zh-cn.ts +3 -3
- package/src/i18n/zh-tw.ts +3 -3
- package/src/plugins/builtin/chat/content/composer.tsx +21 -27
- package/src/plugins/builtin/chat/content/index.tsx +31 -3
- package/src/plugins/builtin/chat/content/shortcuts.ts +4 -2
- package/src/plugins/builtin/chat/content/snapshot.ts +0 -3
- package/src/plugins/builtin/cloud/auth-actions.tsx +51 -23
- package/src/plugins/builtin/cloud/trial-offer-status-widget.tsx +3 -3
- package/src/plugins/builtin/cloud/upgrade-status-widget.tsx +32 -25
- package/src/plugins/builtin/congress-trades/model.ts +2 -1
- package/src/plugins/builtin/congress-trades/pane.tsx +3 -0
- package/src/plugins/builtin/custom-view/index.tsx +1 -1
- package/src/plugins/builtin/custom-view/loader.ts +85 -8
- package/src/plugins/builtin/custom-view/view-spec.ts +28 -0
- package/src/plugins/builtin/equity-screener/criterion-editor.tsx +13 -4
- package/src/plugins/builtin/equity-screener/headless.ts +33 -1
- package/src/plugins/builtin/equity-screener/model.ts +58 -15
- package/src/plugins/builtin/equity-screener/pane.tsx +36 -6
- package/src/plugins/builtin/executives/format.ts +5 -4
- package/src/plugins/builtin/executives/pane.tsx +1 -1
- package/src/plugins/builtin/help/index.tsx +55 -1
- package/src/plugins/builtin/insider/model.ts +30 -2
- package/src/plugins/builtin/jobs/model.ts +2 -2
- package/src/plugins/builtin/mna/model.ts +2 -2
- package/src/plugins/builtin/notes/files.ts +2 -0
- package/src/plugins/builtin/notes/owner.tsx +20 -1
- package/src/plugins/builtin/notes/quick-notes-pane.tsx +22 -4
- package/src/plugins/builtin/notes/store.ts +6 -1
- package/src/plugins/builtin/portfolio-list/header.tsx +1 -1
- package/src/plugins/builtin/research/corporate-actions-pane.tsx +29 -25
- package/src/plugins/builtin/series-inventory.ts +1 -0
- package/src/plugins/builtin/shared/earnings-report.ts +7 -2
- package/src/plugins/builtin/shared/use-quote-board.ts +85 -46
- package/src/plugins/builtin/short-interest/headless.ts +1 -1
- package/src/plugins/builtin/short-interest/model.ts +15 -6
- package/src/plugins/builtin/short-interest/types.ts +2 -0
- package/src/plugins/builtin/thirteenf/overlap-pane.tsx +3 -0
- package/src/plugins/builtin/thirteenf/pane.tsx +3 -0
- package/src/plugins/builtin/ticker-detail/overview/model.ts +5 -3
- package/src/plugins/builtin/ticker-detail/overview-tab.tsx +4 -4
- package/src/plugins/builtin/trace-bonds/detail.tsx +198 -0
- package/src/plugins/builtin/trace-bonds/headless.ts +62 -4
- package/src/plugins/builtin/trace-bonds/history.ts +155 -0
- package/src/plugins/builtin/trace-bonds/pane.tsx +64 -5
- package/src/plugins/installer.ts +16 -3
- package/src/plugins/plugin-names.ts +11 -2
- package/src/remote/controller.ts +9 -2
- package/src/remote/schema.ts +2 -1
- package/src/renderers/cloudflare/http-proxy.ts +67 -8
- package/src/renderers/cloudflare/proxy-session.ts +1 -1
- package/src/renderers/cloudflare/worker.ts +29 -2
- package/src/renderers/dom/desktop/icons.tsx +0 -2
- package/src/renderers/dom/styles.css +0 -3
- package/src/renderers/electrobun/bun/desktop/install-records.ts +59 -0
- package/src/renderers/electrobun/bun/desktop/installer-folder.ts +208 -592
- package/src/renderers/electrobun/bun/desktop/macos-objc.ts +14 -0
- package/src/renderers/electrobun/bun/desktop/update.ts +1 -1
- package/src/renderers/electrobun/bun/index.ts +19 -13
- package/src/renderers/electrobun/bun/window/create.ts +23 -3
- package/src/renderers/electrobun/bun/window/electrobun-window-host.ts +4 -4
- package/src/renderers/electrobun/bun/window/events.ts +4 -4
- package/src/renderers/electrobun/bun/window/frame.ts +2 -1
- package/src/renderers/electrobun/bun/window/native-min-size.ts +322 -0
- package/src/renderers/electrobun/view/backend-rpc.ts +1 -1
- package/src/sources/gloomberb-cloud/index.ts +5 -7
- package/src/sources/provider-router/batches.ts +18 -3
- package/src/sources/provider-router/financials.ts +18 -4
- package/src/types/data-provider.ts +14 -0
- package/src/types/financials.ts +15 -3
- package/src/types/headless.ts +2 -0
- package/src/utils/double-escape-close.ts +38 -16
- package/src/utils/format.ts +23 -3
- package/src/utils/price-earnings.ts +18 -0
- package/patches/electrobun@1.18.1.patch +0 -633
- package/src/api-client/types.ts +0 -2441
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import type { CompanyFrom } from "../../types/company-from";
|
|
2
|
+
|
|
3
|
+
export interface CloudEarningsCallPayload {
|
|
4
|
+
id: string;
|
|
5
|
+
ticker: string;
|
|
6
|
+
companyName: string | null;
|
|
7
|
+
fiscalYear: number | null;
|
|
8
|
+
fiscalQuarter: number | null;
|
|
9
|
+
callAt: string | null;
|
|
10
|
+
status: string;
|
|
11
|
+
durationSeconds: number | null;
|
|
12
|
+
wordCount: number | null;
|
|
13
|
+
hasTranscript: boolean;
|
|
14
|
+
sentiment: number | null;
|
|
15
|
+
/** The replay or event page the transcript came from. */
|
|
16
|
+
webcastUrl?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Whether `callAt` is the call's start or its day alone (00:00 UTC of that
|
|
19
|
+
* New York day). Absent from a server that predates it.
|
|
20
|
+
*/
|
|
21
|
+
callTimeKnown?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* "other" for an event that is not an earnings call (a deal call, a
|
|
24
|
+
* conference, an investor day), named by eventLabel and with no fiscal
|
|
25
|
+
* period; null when unclear. Older servers omit both.
|
|
26
|
+
*/
|
|
27
|
+
eventKind?: "earnings" | "other" | null;
|
|
28
|
+
eventLabel?: string | null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface CloudEarningsCallListPayload {
|
|
32
|
+
calls: CloudEarningsCallPayload[];
|
|
33
|
+
/** Set when asking about a company started a search that is still running. */
|
|
34
|
+
pending?: boolean;
|
|
35
|
+
/** Set when the requested symbol is not one the SEC knows. */
|
|
36
|
+
unknownTicker?: boolean;
|
|
37
|
+
/** The company's home line the calls are read from, when not the listing asked (a receipt, a foreign line). */
|
|
38
|
+
companyFrom?: CompanyFrom;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** One row of a proxy statement's Summary Compensation Table, in dollars. */
|
|
42
|
+
export interface CloudExecutiveRowPayload {
|
|
43
|
+
name: string;
|
|
44
|
+
title: string;
|
|
45
|
+
salary: number | null;
|
|
46
|
+
bonus: number | null;
|
|
47
|
+
stockAwards: number | null;
|
|
48
|
+
optionAwards: number | null;
|
|
49
|
+
nonEquityIncentive: number | null;
|
|
50
|
+
pensionAndDeferred: number | null;
|
|
51
|
+
allOther: number | null;
|
|
52
|
+
total: number | null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface CloudProxyStatementSummaryPayload {
|
|
56
|
+
id: string;
|
|
57
|
+
ticker: string;
|
|
58
|
+
company: {
|
|
59
|
+
ticker: string;
|
|
60
|
+
cik: string | null;
|
|
61
|
+
name: string;
|
|
62
|
+
shortName: string;
|
|
63
|
+
};
|
|
64
|
+
/** Year of the filing date: what people call "the 2026 proxy". */
|
|
65
|
+
proxyYear: number;
|
|
66
|
+
fiscalYear: number | null;
|
|
67
|
+
fiscalYearLabel: string | null;
|
|
68
|
+
filedAt: string;
|
|
69
|
+
meetingDate: string | null;
|
|
70
|
+
updatedAt: string;
|
|
71
|
+
ceoName: string | null;
|
|
72
|
+
ceoTitle: string | null;
|
|
73
|
+
ceoTotal: number | null;
|
|
74
|
+
ceoPriorYearTotal: number | null;
|
|
75
|
+
payRatio: number | null;
|
|
76
|
+
medianEmployeePay: number | null;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface CloudProxyStatementPayload extends CloudProxyStatementSummaryPayload {
|
|
80
|
+
/**
|
|
81
|
+
* `preview` for an account without Pro: each executive's total pay from
|
|
82
|
+
* the latest proxy, with the breakdown, the year before, the pay ratio,
|
|
83
|
+
* say-on-pay, highlights, key figures and other years null or empty.
|
|
84
|
+
* Absent on Pro's full statement.
|
|
85
|
+
*/
|
|
86
|
+
access?: "preview";
|
|
87
|
+
docUrl: string;
|
|
88
|
+
ceo: (CloudExecutiveRowPayload & { priorYearTotal: number | null }) | null;
|
|
89
|
+
namedExecutives: CloudExecutiveRowPayload[];
|
|
90
|
+
sayOnPayPriorSupport: number | null;
|
|
91
|
+
highlights: string | null;
|
|
92
|
+
keyFigures: CloudTranscriptKeyFigurePayload[];
|
|
93
|
+
otherYears: CloudProxyStatementSummaryPayload[];
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface CloudRiskFactorPayload {
|
|
97
|
+
heading: string;
|
|
98
|
+
group: string | null;
|
|
99
|
+
excerpt: string;
|
|
100
|
+
words: number;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface CloudRiskNotePayload {
|
|
104
|
+
/** Position of the risk in `risks` (or in the prior year's list, for removed). */
|
|
105
|
+
index: number;
|
|
106
|
+
text: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface CloudRiskReportSummaryPayload {
|
|
110
|
+
id: string;
|
|
111
|
+
ticker: string;
|
|
112
|
+
company: {
|
|
113
|
+
ticker: string;
|
|
114
|
+
cik: string | null;
|
|
115
|
+
name: string;
|
|
116
|
+
shortName: string;
|
|
117
|
+
};
|
|
118
|
+
/** Year of the filing date: "the 2026 10-K". */
|
|
119
|
+
reportYear: number;
|
|
120
|
+
filedAt: string;
|
|
121
|
+
updatedAt: string;
|
|
122
|
+
riskCount: number;
|
|
123
|
+
groupCount: number;
|
|
124
|
+
wordCount: number;
|
|
125
|
+
addedCount: number | null;
|
|
126
|
+
removedCount: number | null;
|
|
127
|
+
rewordedCount: number | null;
|
|
128
|
+
overview: string | null;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface CloudRiskReportPayload extends CloudRiskReportSummaryPayload {
|
|
132
|
+
docUrl: string;
|
|
133
|
+
groups: string[];
|
|
134
|
+
risks: CloudRiskFactorPayload[];
|
|
135
|
+
diff: {
|
|
136
|
+
added: number[];
|
|
137
|
+
removed: Array<{ heading: string; group: string | null; excerpt: string }>;
|
|
138
|
+
reworded: Array<{
|
|
139
|
+
index: number;
|
|
140
|
+
similarity: number;
|
|
141
|
+
headingChanged: boolean;
|
|
142
|
+
priorHeading: string | null;
|
|
143
|
+
}>;
|
|
144
|
+
matched: number;
|
|
145
|
+
priorRiskCount: number;
|
|
146
|
+
} | null;
|
|
147
|
+
notes: {
|
|
148
|
+
added: CloudRiskNotePayload[];
|
|
149
|
+
removed: CloudRiskNotePayload[];
|
|
150
|
+
reworded: CloudRiskNotePayload[];
|
|
151
|
+
top: CloudRiskNotePayload[];
|
|
152
|
+
};
|
|
153
|
+
otherYears: CloudRiskReportSummaryPayload[];
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface CloudRiskReportListPayload {
|
|
157
|
+
company: {
|
|
158
|
+
ticker: string;
|
|
159
|
+
cik: string | null;
|
|
160
|
+
name: string;
|
|
161
|
+
shortName: string;
|
|
162
|
+
} | null;
|
|
163
|
+
reports: CloudRiskReportSummaryPayload[];
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
interface CloudFilingPersonPayload {
|
|
167
|
+
name: string;
|
|
168
|
+
role: string;
|
|
169
|
+
action: string;
|
|
170
|
+
effective: string | null;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** An 8-K, classified by its items and, when it carried news, read. */
|
|
174
|
+
export interface CloudFilingEventPayload {
|
|
175
|
+
id: string;
|
|
176
|
+
ticker: string;
|
|
177
|
+
company: {
|
|
178
|
+
ticker: string;
|
|
179
|
+
cik: string | null;
|
|
180
|
+
name: string;
|
|
181
|
+
shortName: string;
|
|
182
|
+
};
|
|
183
|
+
filedAt: string;
|
|
184
|
+
/** Verified SEC filing calendar date; filedAt may instead be an acceptance instant. */
|
|
185
|
+
filingDate?: string | null;
|
|
186
|
+
/** "8-K", or "8-K/A" for an amendment. Older servers omit it. */
|
|
187
|
+
form?: string;
|
|
188
|
+
docUrl: string;
|
|
189
|
+
items: string[];
|
|
190
|
+
labels: string[];
|
|
191
|
+
kinds: string[];
|
|
192
|
+
material: boolean;
|
|
193
|
+
headline: string | null;
|
|
194
|
+
summary: string | null;
|
|
195
|
+
people: CloudFilingPersonPayload[];
|
|
196
|
+
/** True when the headline and points are the model's reading rather than the item labels. */
|
|
197
|
+
read: boolean;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface CloudProxyStatementListPayload {
|
|
201
|
+
company: {
|
|
202
|
+
ticker: string;
|
|
203
|
+
cik: string | null;
|
|
204
|
+
name: string;
|
|
205
|
+
shortName: string;
|
|
206
|
+
};
|
|
207
|
+
proxies: CloudProxyStatementSummaryPayload[];
|
|
208
|
+
/** `preview` for an account without Pro: the latest proxy alone, without the year before or the pay ratio. */
|
|
209
|
+
access?: "preview";
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export interface CloudTranscriptTurnPayload {
|
|
213
|
+
speaker: string;
|
|
214
|
+
role?: string;
|
|
215
|
+
company?: string;
|
|
216
|
+
text: string;
|
|
217
|
+
/** `text` cut where the speaker paused or changed topic; absent on older transcripts. */
|
|
218
|
+
paragraphs?: string[];
|
|
219
|
+
isQa: boolean;
|
|
220
|
+
/** Offset into the recording; null when the company published the transcript as a document. */
|
|
221
|
+
startSeconds: number | null;
|
|
222
|
+
/** Where each of `paragraphs` starts in the recording, in seconds; absent without timings or on older servers. */
|
|
223
|
+
paragraphStarts?: number[];
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
interface CloudTranscriptKeyFigurePayload {
|
|
227
|
+
/** What the number is, e.g. "Q3 revenue guidance". */
|
|
228
|
+
label: string;
|
|
229
|
+
/** As management said it, e.g. "$108B ± 2%". */
|
|
230
|
+
value: string;
|
|
231
|
+
/** Comparison or qualifier, e.g. "vs $96B in Q2". */
|
|
232
|
+
note?: string;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
interface CloudTranscriptParticipantPayload {
|
|
236
|
+
name: string;
|
|
237
|
+
role?: string;
|
|
238
|
+
company?: string;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export interface CloudEarningsTranscriptPayload {
|
|
242
|
+
id: string;
|
|
243
|
+
ticker: string;
|
|
244
|
+
companyName: string | null;
|
|
245
|
+
fiscalYear: number | null;
|
|
246
|
+
fiscalQuarter: number | null;
|
|
247
|
+
/**
|
|
248
|
+
* "other" for an event that is not an earnings call (a deal call, a
|
|
249
|
+
* conference, an investor day), named by eventLabel and with no fiscal
|
|
250
|
+
* period; null when unclear. Older servers omit both.
|
|
251
|
+
*/
|
|
252
|
+
eventKind?: "earnings" | "other" | null;
|
|
253
|
+
eventLabel?: string | null;
|
|
254
|
+
callAt: string | null;
|
|
255
|
+
timing: string | null;
|
|
256
|
+
webcastUrl: string | null;
|
|
257
|
+
durationSeconds: number | null;
|
|
258
|
+
status: string;
|
|
259
|
+
fullText: string;
|
|
260
|
+
turns: CloudTranscriptTurnPayload[];
|
|
261
|
+
participants: CloudTranscriptParticipantPayload[];
|
|
262
|
+
/** The numbers management gave, picked for a card; empty on older transcripts. */
|
|
263
|
+
keyFigures?: CloudTranscriptKeyFigurePayload[];
|
|
264
|
+
summary: string | null;
|
|
265
|
+
guidance: string | null;
|
|
266
|
+
riskFactors: string | null;
|
|
267
|
+
analystFocus: string | null;
|
|
268
|
+
notable: string | null;
|
|
269
|
+
sentiment: number | null;
|
|
270
|
+
sentimentRationale: string | null;
|
|
271
|
+
qaStartTurn: number | null;
|
|
272
|
+
wordCount: number | null;
|
|
273
|
+
asrModel: string | null;
|
|
274
|
+
updatedAt: string | null;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* A call's audio to play beside its transcript. `kind` names what it is; a
|
|
279
|
+
* stored recording is the only kind so far.
|
|
280
|
+
*/
|
|
281
|
+
export interface CloudEarningsCallAudioPayload {
|
|
282
|
+
kind: "recording";
|
|
283
|
+
/** A signed address that plays until `expiresAt`, seeking included. */
|
|
284
|
+
url: string;
|
|
285
|
+
expiresAt: string;
|
|
286
|
+
durationSeconds: number | null;
|
|
287
|
+
bytes?: number;
|
|
288
|
+
contentType?: string;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
interface CloudSecFilingPayload {
|
|
292
|
+
accessionNumber: string;
|
|
293
|
+
form: string;
|
|
294
|
+
filingDate: string;
|
|
295
|
+
acceptedAt?: string;
|
|
296
|
+
/** Unmodified SEC acceptanceDateTime; a missing timezone is not inferred. */
|
|
297
|
+
acceptedAtRaw?: string;
|
|
298
|
+
primaryDocument?: string;
|
|
299
|
+
primaryDocDescription?: string;
|
|
300
|
+
items?: string;
|
|
301
|
+
/** SEC's period of report, YYYY-MM-DD: a 10-Q's or 10-K's balance-sheet date. Absent from older servers. */
|
|
302
|
+
reportDate?: string;
|
|
303
|
+
cik: string;
|
|
304
|
+
companyName?: string;
|
|
305
|
+
filingUrl: string;
|
|
306
|
+
primaryDocumentUrl?: string;
|
|
307
|
+
/** The filing's SEC file number for this company, empty when it has none. Absent from older servers. */
|
|
308
|
+
fileNumber?: string;
|
|
309
|
+
/** In a fund's list from a trust that runs several funds: filed for the fund's own series. Absent from older servers. */
|
|
310
|
+
fundSeries?: boolean;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
interface CloudSecDocumentPayload {
|
|
314
|
+
sequence?: string;
|
|
315
|
+
type: string;
|
|
316
|
+
description?: string;
|
|
317
|
+
document: string;
|
|
318
|
+
url: string;
|
|
319
|
+
size?: string;
|
|
320
|
+
isPrimary: boolean;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export interface CloudSecFilingsResponse {
|
|
324
|
+
filings: CloudSecFilingPayload[];
|
|
325
|
+
hasMore: boolean;
|
|
326
|
+
nextOffset: number;
|
|
327
|
+
/** The company's home line the filings are read from, when not the listing asked (a foreign line). */
|
|
328
|
+
companyFrom?: CompanyFrom;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export interface CloudSecDocumentsResponse {
|
|
332
|
+
documents: CloudSecDocumentPayload[];
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
interface CloudSecForm4Payload {
|
|
336
|
+
filingDate: string;
|
|
337
|
+
reportedName: string;
|
|
338
|
+
title: string;
|
|
339
|
+
transactionType: "P" | "S" | "A" | "D" | "";
|
|
340
|
+
shares: number;
|
|
341
|
+
pricePerShare: number | null;
|
|
342
|
+
totalValue: number | null;
|
|
343
|
+
sharesOwned: number | null;
|
|
344
|
+
form: string;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export interface CloudSecContentResponse {
|
|
348
|
+
content: string | null;
|
|
349
|
+
form4: CloudSecForm4Payload | null;
|
|
350
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type * from "./account";
|
|
2
|
+
export type * from "./assist";
|
|
3
|
+
export type * from "./auth";
|
|
4
|
+
export type * from "./billing";
|
|
5
|
+
export type * from "./chat";
|
|
6
|
+
export type * from "./congress";
|
|
7
|
+
export type * from "./credit";
|
|
8
|
+
export type * from "./econ";
|
|
9
|
+
export type * from "./equity-diagnostic";
|
|
10
|
+
export type * from "./filings-and-calls";
|
|
11
|
+
export type * from "./jobs";
|
|
12
|
+
export type * from "./market";
|
|
13
|
+
export type * from "./news";
|
|
14
|
+
export type * from "./notes-and-theses";
|
|
15
|
+
export type * from "./quotes";
|
|
16
|
+
export type * from "./scanners";
|
|
17
|
+
export type * from "./screener";
|
|
18
|
+
export type * from "./search";
|
|
19
|
+
export type * from "./sync";
|
|
20
|
+
export type * from "./team-collections";
|
|
21
|
+
export type * from "./team-views";
|
|
22
|
+
export type * from "./teams";
|
|
23
|
+
export type * from "./ticker-data";
|
|
24
|
+
export type * from "./tweets";
|
|
25
|
+
export type * from "./world-venues";
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
interface CloudJobsSeriesPoint {
|
|
2
|
+
day: string;
|
|
3
|
+
open: number;
|
|
4
|
+
/** Null on the first observed day, when the whole board is seen for the first time. */
|
|
5
|
+
new: number | null;
|
|
6
|
+
closed: number;
|
|
7
|
+
/** Open standing roles the company hires for continuously. */
|
|
8
|
+
evergreen?: number;
|
|
9
|
+
/** Open contract and temporary roles. */
|
|
10
|
+
contract?: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface CloudJobsBucket {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
count: number;
|
|
17
|
+
share: number;
|
|
18
|
+
/** Count 30 days ago from the daily roll-up, when the history reaches back. */
|
|
19
|
+
previous: number | null;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface CloudJobsPosting {
|
|
23
|
+
id: number;
|
|
24
|
+
title: string;
|
|
25
|
+
function: string | null;
|
|
26
|
+
seniority: string | null;
|
|
27
|
+
location: string | null;
|
|
28
|
+
country: string | null;
|
|
29
|
+
remote: boolean | null;
|
|
30
|
+
employmentKind?: string | null;
|
|
31
|
+
/** A standing posting for a continuous-hiring role; null when unjudged. */
|
|
32
|
+
evergreen?: boolean | null;
|
|
33
|
+
postedAt: string | null;
|
|
34
|
+
postedPrecision: "exact" | "approximate" | "floor" | null;
|
|
35
|
+
firstSeenAt: string;
|
|
36
|
+
url: string | null;
|
|
37
|
+
salaryMin: number | null;
|
|
38
|
+
salaryMax: number | null;
|
|
39
|
+
salaryCurrency: string | null;
|
|
40
|
+
salaryPeriod: string | null;
|
|
41
|
+
tags: string[];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** One posting as its detail view reads it. */
|
|
45
|
+
export interface CloudJobsPostingDetail extends CloudJobsPosting {
|
|
46
|
+
/** The careers system's own id. */
|
|
47
|
+
externalId: string;
|
|
48
|
+
/** As the careers system writes it ("Full time", "FULL_TIME", "CDI"). */
|
|
49
|
+
employmentType: string | null;
|
|
50
|
+
/** The start of the role's description, as read from its page. */
|
|
51
|
+
description: string | null;
|
|
52
|
+
closedAt: string | null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface CloudJobsChange {
|
|
56
|
+
count: number;
|
|
57
|
+
percent: number | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface CloudJobsSummaryPayload {
|
|
61
|
+
status: "ok";
|
|
62
|
+
ticker: string;
|
|
63
|
+
companyName: string | null;
|
|
64
|
+
coverage: {
|
|
65
|
+
status: string;
|
|
66
|
+
vendor: string | null;
|
|
67
|
+
careersUrl: string | null;
|
|
68
|
+
lastCollectedAt: string | null;
|
|
69
|
+
firstObservedAt: string | null;
|
|
70
|
+
daysObserved: number;
|
|
71
|
+
employeeCount: number | null;
|
|
72
|
+
};
|
|
73
|
+
openCount: number;
|
|
74
|
+
openPerThousandEmployees: number | null;
|
|
75
|
+
new7d: number;
|
|
76
|
+
new30d: number;
|
|
77
|
+
closed30d: number;
|
|
78
|
+
change30d: CloudJobsChange | null;
|
|
79
|
+
change90d: CloudJobsChange | null;
|
|
80
|
+
/** False when the careers system re-dates every role on refresh, so dates are withheld. */
|
|
81
|
+
datesReliable?: boolean;
|
|
82
|
+
/** Open postings the system dates within the last 30 days. */
|
|
83
|
+
posted30d?: number | null;
|
|
84
|
+
remoteShare: number | null;
|
|
85
|
+
/**
|
|
86
|
+
* Open roles that are standing postings for continuous-hiring positions
|
|
87
|
+
* (baristas, servers, store associates, nurses). One more of those says
|
|
88
|
+
* nothing about the company's plans; open minus evergreen is the count of
|
|
89
|
+
* specific roles.
|
|
90
|
+
*/
|
|
91
|
+
evergreenCount?: number;
|
|
92
|
+
evergreenShare?: number | null;
|
|
93
|
+
/** Share of open roles that are contract or temporary, among those known. */
|
|
94
|
+
contractShare?: number | null;
|
|
95
|
+
medianAgeDays: number | null;
|
|
96
|
+
series: CloudJobsSeriesPoint[];
|
|
97
|
+
/** The current backlog by how long each role has been posted. */
|
|
98
|
+
ageBuckets?: Array<{ id: string; label: string; count: number }>;
|
|
99
|
+
functions: CloudJobsBucket[];
|
|
100
|
+
countries: CloudJobsBucket[];
|
|
101
|
+
seniority: CloudJobsBucket[];
|
|
102
|
+
tags: CloudJobsBucket[];
|
|
103
|
+
salary: {
|
|
104
|
+
count: number;
|
|
105
|
+
currency: string;
|
|
106
|
+
period: string;
|
|
107
|
+
medianMin: number;
|
|
108
|
+
medianMax: number;
|
|
109
|
+
byFunction: Array<{ id: string; label: string; count: number; medianMin: number; medianMax: number }>;
|
|
110
|
+
} | null;
|
|
111
|
+
recent: CloudJobsPosting[];
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface CloudJobsPendingPayload {
|
|
115
|
+
status: "pending";
|
|
116
|
+
ticker: string;
|
|
117
|
+
queued: boolean;
|
|
118
|
+
message: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type CloudJobsResponse = CloudJobsSummaryPayload | CloudJobsPendingPayload;
|
|
122
|
+
|
|
123
|
+
export interface CloudJobsPostingsPayload {
|
|
124
|
+
postings: CloudJobsPosting[];
|
|
125
|
+
total: number;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface CloudJobsMoverPayload {
|
|
129
|
+
ticker: string;
|
|
130
|
+
companyName: string | null;
|
|
131
|
+
openCount: number;
|
|
132
|
+
employeeCount: number | null;
|
|
133
|
+
change30d: CloudJobsChange | null;
|
|
134
|
+
/** Open roles the system dates within the last 30 days, null when its dates cannot be read. */
|
|
135
|
+
posted30d?: number | null;
|
|
136
|
+
new7d: number;
|
|
137
|
+
topFunction: string | null;
|
|
138
|
+
topCountry?: { code: string; share: number } | null;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface CloudJobsMoversPayload {
|
|
142
|
+
asOf: string;
|
|
143
|
+
covered: number;
|
|
144
|
+
/** Companies in the ranking; `movers` is one page of them. */
|
|
145
|
+
total?: number;
|
|
146
|
+
movers: CloudJobsMoverPayload[];
|
|
147
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type { PriceHistorySource } from "../../types/financials";
|
|
2
|
+
|
|
3
|
+
export interface CloudPricePointPayload {
|
|
4
|
+
/** @deprecated No longer read; a history's boundary is its response `coverage`. */
|
|
5
|
+
historySource?: PriceHistorySource;
|
|
6
|
+
date: string;
|
|
7
|
+
open?: number;
|
|
8
|
+
high?: number;
|
|
9
|
+
low?: number;
|
|
10
|
+
close: number;
|
|
11
|
+
volume?: number;
|
|
12
|
+
/**
|
|
13
|
+
* One venue's count for a bar whose market volume is unavailable (a US session still trading, counted on IEX
|
|
14
|
+
* alone), served in place of `volume`.
|
|
15
|
+
*/
|
|
16
|
+
venueVolume?: { venue: string; volume: number };
|
|
17
|
+
/** What a coin bar's volume counts: `aggregate` across venues, or `3 spot venues` summed. */
|
|
18
|
+
volumeBasis?: string;
|
|
19
|
+
/** A daily bar still forming when served: a coin's UTC day, or the trade date a future is trading. */
|
|
20
|
+
partial?: boolean;
|
|
21
|
+
/** A coin's daily bar whose prices were rebuilt from hourly bars; a day the source left empty has no volume. */
|
|
22
|
+
filled?: boolean;
|
|
23
|
+
/** A future's closed session whose settlement is not confirmed yet: it closes on the last trade. */
|
|
24
|
+
unsettled?: boolean;
|
|
25
|
+
/** A continuous future's calendar bar: the contract it closes on (NGZ26), where the server knows it. */
|
|
26
|
+
contract?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type CloudMarketStatus =
|
|
30
|
+
| "success"
|
|
31
|
+
| "partial"
|
|
32
|
+
| "empty"
|
|
33
|
+
| "unsupported"
|
|
34
|
+
| "retryable_error"
|
|
35
|
+
| "fatal_error";
|
|
36
|
+
|
|
37
|
+
/** The dates a history source vouches for. Which boundary fields appear depends on the reason. */
|
|
38
|
+
export interface CloudHistoryCoverage {
|
|
39
|
+
source: string;
|
|
40
|
+
reasonCode?: string;
|
|
41
|
+
/** First date (YYYY-MM-DD) whose share lineage the source verified. */
|
|
42
|
+
verifiedLineageStart?: string;
|
|
43
|
+
/** First bar date (YYYY-MM-DD) the source serves, such as a fund's inception. */
|
|
44
|
+
firstAllowedBarDate?: string;
|
|
45
|
+
inceptionDate?: string;
|
|
46
|
+
/** Why nothing earlier is served, such as "old-shekel quotes before 1992 are not served". */
|
|
47
|
+
note?: string;
|
|
48
|
+
sourceUrl?: string;
|
|
49
|
+
firstBarDate: string | null;
|
|
50
|
+
lastBarDate: string | null;
|
|
51
|
+
barCount: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface CloudMarketResponse<T> {
|
|
55
|
+
status: CloudMarketStatus;
|
|
56
|
+
data: T | null;
|
|
57
|
+
reasonCode?: string;
|
|
58
|
+
/** Untrusted, human-readable reason the answer is empty. Cleaned before it is shown. */
|
|
59
|
+
message?: string;
|
|
60
|
+
asOf?: string;
|
|
61
|
+
staleAt?: string;
|
|
62
|
+
stale?: boolean;
|
|
63
|
+
currency?: string;
|
|
64
|
+
/** Untrusted history-only failure evidence, validated by the history adapter. */
|
|
65
|
+
historyRetention?: unknown;
|
|
66
|
+
/** Source-declared history semantics; validated separately from quote metadata. */
|
|
67
|
+
historySession?: unknown;
|
|
68
|
+
/** "extended" when the history includes the pre-market and after-hours bars asked for. */
|
|
69
|
+
session?: unknown;
|
|
70
|
+
/** "1day" when daily bars answer an intraday range: the listing has no intraday bars. */
|
|
71
|
+
servedResolution?: unknown;
|
|
72
|
+
/**
|
|
73
|
+
* Untrusted: daily sessions the bars leave out and why, as
|
|
74
|
+
* `[{ date: "2020-04-20", reason: "non-positive-close" }]`. Validated by the history adapter.
|
|
75
|
+
*/
|
|
76
|
+
omittedSessions?: unknown;
|
|
77
|
+
/** Untrusted until the history adapter validates its boundary dates. */
|
|
78
|
+
coverage?: CloudHistoryCoverage;
|
|
79
|
+
/**
|
|
80
|
+
* Untrusted: a US listing that no longer trades, `{ status, lastTradeDate,
|
|
81
|
+
* historyStart }`. Its history ends on `lastTradeDate`. Read by parseListingDelisting.
|
|
82
|
+
*/
|
|
83
|
+
delisting?: unknown;
|
|
84
|
+
providerMeta?: {
|
|
85
|
+
provider?: string;
|
|
86
|
+
upstream?: string;
|
|
87
|
+
status?: CloudMarketStatus;
|
|
88
|
+
reasonCode?: string;
|
|
89
|
+
normalizedSymbol?: string;
|
|
90
|
+
normalizedExchange?: string;
|
|
91
|
+
stale?: boolean;
|
|
92
|
+
fallbackReason?: string;
|
|
93
|
+
requestedResolution?: string;
|
|
94
|
+
servedResolution?: string;
|
|
95
|
+
latencyMs?: number;
|
|
96
|
+
range?: string;
|
|
97
|
+
granularity?: string;
|
|
98
|
+
timezone?: string;
|
|
99
|
+
currency?: string;
|
|
100
|
+
barCount?: number;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface CloudMarketBatchTarget {
|
|
105
|
+
symbol: string;
|
|
106
|
+
exchange?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface CloudMarketBatchItem<T> {
|
|
110
|
+
symbol: string;
|
|
111
|
+
exchange: string;
|
|
112
|
+
status: CloudMarketStatus;
|
|
113
|
+
data: T | null;
|
|
114
|
+
reasonCode?: string;
|
|
115
|
+
/** Untrusted, human-readable reason this item is empty. Cleaned before it is shown. */
|
|
116
|
+
message?: string;
|
|
117
|
+
stale?: boolean;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface CloudMarketBatchPayload<T> {
|
|
121
|
+
items: Array<CloudMarketBatchItem<T>>;
|
|
122
|
+
}
|