@chadwin/sdk 0.8.0 → 0.9.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/README.md +5 -0
- package/dist/index.cjs +3 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +136 -484
- package/dist/index.d.ts +136 -484
- package/dist/index.js +3 -31
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1872,482 +1872,6 @@ interface operations {
|
|
|
1872
1872
|
};
|
|
1873
1873
|
};
|
|
1874
1874
|
};
|
|
1875
|
-
getCompanyReport: {
|
|
1876
|
-
parameters: {
|
|
1877
|
-
query?: never;
|
|
1878
|
-
header?: never;
|
|
1879
|
-
path: {
|
|
1880
|
-
ticker: string;
|
|
1881
|
-
fiscal_year: string;
|
|
1882
|
-
};
|
|
1883
|
-
cookie?: never;
|
|
1884
|
-
};
|
|
1885
|
-
requestBody?: never;
|
|
1886
|
-
responses: {
|
|
1887
|
-
/** @description Annual report filing family */
|
|
1888
|
-
200: {
|
|
1889
|
-
headers: {
|
|
1890
|
-
"Cache-Control"?: string;
|
|
1891
|
-
ETag?: string;
|
|
1892
|
-
"X-Billing-Period-Quota-Limit"?: string;
|
|
1893
|
-
"X-Billing-Period-Quota-Remaining"?: string;
|
|
1894
|
-
"X-Billing-Period-Quota-Reset"?: string;
|
|
1895
|
-
[name: string]: unknown;
|
|
1896
|
-
};
|
|
1897
|
-
content: {
|
|
1898
|
-
/**
|
|
1899
|
-
* @example {
|
|
1900
|
-
* "filings": [
|
|
1901
|
-
* {
|
|
1902
|
-
* "accepted_at": "2024-11-01T10:00:00.000Z",
|
|
1903
|
-
* "accession_number": "0000320193-24-000123",
|
|
1904
|
-
* "content_url": "/v1/sec/company-reports/0000320193-24-000123/content.html",
|
|
1905
|
-
* "form": "10-K",
|
|
1906
|
-
* "period_end_date": "2024-09-28",
|
|
1907
|
-
* "sec_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/0000320193-24-000123-index.htm"
|
|
1908
|
-
* }
|
|
1909
|
-
* ],
|
|
1910
|
-
* "fiscal_period": "FY",
|
|
1911
|
-
* "fiscal_year": 2024,
|
|
1912
|
-
* "issuer": {
|
|
1913
|
-
* "cik": "0000320193",
|
|
1914
|
-
* "name": "Apple Inc.",
|
|
1915
|
-
* "ticker": "AAPL"
|
|
1916
|
-
* }
|
|
1917
|
-
* }
|
|
1918
|
-
*/
|
|
1919
|
-
"application/json": components["schemas"]["CompanyReportFamilyResponse"];
|
|
1920
|
-
};
|
|
1921
|
-
};
|
|
1922
|
-
/** @description The ticker or fiscal year is invalid */
|
|
1923
|
-
400: {
|
|
1924
|
-
headers: {
|
|
1925
|
-
[name: string]: unknown;
|
|
1926
|
-
};
|
|
1927
|
-
content: {
|
|
1928
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
1929
|
-
};
|
|
1930
|
-
};
|
|
1931
|
-
/** @description The request is missing a valid Chadwin API key. */
|
|
1932
|
-
401: {
|
|
1933
|
-
headers: {
|
|
1934
|
-
[name: string]: unknown;
|
|
1935
|
-
};
|
|
1936
|
-
content: {
|
|
1937
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
1938
|
-
};
|
|
1939
|
-
};
|
|
1940
|
-
/** @description The subscription does not include this dataset. */
|
|
1941
|
-
403: {
|
|
1942
|
-
headers: {
|
|
1943
|
-
[name: string]: unknown;
|
|
1944
|
-
};
|
|
1945
|
-
content: {
|
|
1946
|
-
"application/json": components["schemas"]["DatasetNotEntitledErrorResponse"];
|
|
1947
|
-
};
|
|
1948
|
-
};
|
|
1949
|
-
/** @description The company or eligible annual report was not found */
|
|
1950
|
-
404: {
|
|
1951
|
-
headers: {
|
|
1952
|
-
[name: string]: unknown;
|
|
1953
|
-
};
|
|
1954
|
-
content: {
|
|
1955
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
1956
|
-
};
|
|
1957
|
-
};
|
|
1958
|
-
/** @description More than one original annual report matches the fiscal year */
|
|
1959
|
-
409: {
|
|
1960
|
-
headers: {
|
|
1961
|
-
[name: string]: unknown;
|
|
1962
|
-
};
|
|
1963
|
-
content: {
|
|
1964
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
1965
|
-
};
|
|
1966
|
-
};
|
|
1967
|
-
/** @description The request exceeded a rate limit. */
|
|
1968
|
-
429: {
|
|
1969
|
-
headers: {
|
|
1970
|
-
"RateLimit-Limit"?: string;
|
|
1971
|
-
"RateLimit-Reset"?: string;
|
|
1972
|
-
"Retry-After"?: string;
|
|
1973
|
-
"X-Billing-Period-Quota-Limit"?: string;
|
|
1974
|
-
"X-Billing-Period-Quota-Remaining"?: string;
|
|
1975
|
-
"X-Billing-Period-Quota-Reset"?: string;
|
|
1976
|
-
[name: string]: unknown;
|
|
1977
|
-
};
|
|
1978
|
-
content: {
|
|
1979
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
1980
|
-
};
|
|
1981
|
-
};
|
|
1982
|
-
/** @description The filing catalog is unavailable */
|
|
1983
|
-
503: {
|
|
1984
|
-
headers: {
|
|
1985
|
-
[name: string]: unknown;
|
|
1986
|
-
};
|
|
1987
|
-
content: {
|
|
1988
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
1989
|
-
};
|
|
1990
|
-
};
|
|
1991
|
-
};
|
|
1992
|
-
};
|
|
1993
|
-
getCompanyReportForFiscalPeriod: {
|
|
1994
|
-
parameters: {
|
|
1995
|
-
query?: never;
|
|
1996
|
-
header?: never;
|
|
1997
|
-
path: {
|
|
1998
|
-
ticker: string;
|
|
1999
|
-
fiscal_year: string;
|
|
2000
|
-
fiscal_period: "Q1" | "Q2" | "Q3";
|
|
2001
|
-
};
|
|
2002
|
-
cookie?: never;
|
|
2003
|
-
};
|
|
2004
|
-
requestBody?: never;
|
|
2005
|
-
responses: {
|
|
2006
|
-
/** @description Quarterly report filing family */
|
|
2007
|
-
200: {
|
|
2008
|
-
headers: {
|
|
2009
|
-
"Cache-Control"?: string;
|
|
2010
|
-
ETag?: string;
|
|
2011
|
-
"X-Billing-Period-Quota-Limit"?: string;
|
|
2012
|
-
"X-Billing-Period-Quota-Remaining"?: string;
|
|
2013
|
-
"X-Billing-Period-Quota-Reset"?: string;
|
|
2014
|
-
[name: string]: unknown;
|
|
2015
|
-
};
|
|
2016
|
-
content: {
|
|
2017
|
-
/**
|
|
2018
|
-
* @example {
|
|
2019
|
-
* "filings": [
|
|
2020
|
-
* {
|
|
2021
|
-
* "accepted_at": "2025-08-01T10:00:42.000Z",
|
|
2022
|
-
* "accession_number": "0000320193-25-000073",
|
|
2023
|
-
* "content_url": "/v1/sec/company-reports/0000320193-25-000073/content.html",
|
|
2024
|
-
* "form": "10-Q",
|
|
2025
|
-
* "period_end_date": "2025-06-28",
|
|
2026
|
-
* "sec_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000073/0000320193-25-000073-index.htm"
|
|
2027
|
-
* }
|
|
2028
|
-
* ],
|
|
2029
|
-
* "fiscal_period": "Q3",
|
|
2030
|
-
* "fiscal_year": 2025,
|
|
2031
|
-
* "issuer": {
|
|
2032
|
-
* "cik": "0000320193",
|
|
2033
|
-
* "name": "Apple Inc.",
|
|
2034
|
-
* "ticker": "AAPL"
|
|
2035
|
-
* }
|
|
2036
|
-
* }
|
|
2037
|
-
*/
|
|
2038
|
-
"application/json": components["schemas"]["CompanyReportFamilyResponse"];
|
|
2039
|
-
};
|
|
2040
|
-
};
|
|
2041
|
-
/** @description The ticker, fiscal year, or fiscal period is invalid */
|
|
2042
|
-
400: {
|
|
2043
|
-
headers: {
|
|
2044
|
-
[name: string]: unknown;
|
|
2045
|
-
};
|
|
2046
|
-
content: {
|
|
2047
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2048
|
-
};
|
|
2049
|
-
};
|
|
2050
|
-
/** @description The request is missing a valid Chadwin API key. */
|
|
2051
|
-
401: {
|
|
2052
|
-
headers: {
|
|
2053
|
-
[name: string]: unknown;
|
|
2054
|
-
};
|
|
2055
|
-
content: {
|
|
2056
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2057
|
-
};
|
|
2058
|
-
};
|
|
2059
|
-
/** @description The subscription does not include this dataset. */
|
|
2060
|
-
403: {
|
|
2061
|
-
headers: {
|
|
2062
|
-
[name: string]: unknown;
|
|
2063
|
-
};
|
|
2064
|
-
content: {
|
|
2065
|
-
"application/json": components["schemas"]["DatasetNotEntitledErrorResponse"];
|
|
2066
|
-
};
|
|
2067
|
-
};
|
|
2068
|
-
/** @description The company or eligible quarterly report was not found */
|
|
2069
|
-
404: {
|
|
2070
|
-
headers: {
|
|
2071
|
-
[name: string]: unknown;
|
|
2072
|
-
};
|
|
2073
|
-
content: {
|
|
2074
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2075
|
-
};
|
|
2076
|
-
};
|
|
2077
|
-
/** @description More than one original quarterly report matches the fiscal period */
|
|
2078
|
-
409: {
|
|
2079
|
-
headers: {
|
|
2080
|
-
[name: string]: unknown;
|
|
2081
|
-
};
|
|
2082
|
-
content: {
|
|
2083
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2084
|
-
};
|
|
2085
|
-
};
|
|
2086
|
-
/** @description The request exceeded a rate limit. */
|
|
2087
|
-
429: {
|
|
2088
|
-
headers: {
|
|
2089
|
-
"RateLimit-Limit"?: string;
|
|
2090
|
-
"RateLimit-Reset"?: string;
|
|
2091
|
-
"Retry-After"?: string;
|
|
2092
|
-
"X-Billing-Period-Quota-Limit"?: string;
|
|
2093
|
-
"X-Billing-Period-Quota-Remaining"?: string;
|
|
2094
|
-
"X-Billing-Period-Quota-Reset"?: string;
|
|
2095
|
-
[name: string]: unknown;
|
|
2096
|
-
};
|
|
2097
|
-
content: {
|
|
2098
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2099
|
-
};
|
|
2100
|
-
};
|
|
2101
|
-
/** @description The filing catalog is unavailable */
|
|
2102
|
-
503: {
|
|
2103
|
-
headers: {
|
|
2104
|
-
[name: string]: unknown;
|
|
2105
|
-
};
|
|
2106
|
-
content: {
|
|
2107
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2108
|
-
};
|
|
2109
|
-
};
|
|
2110
|
-
};
|
|
2111
|
-
};
|
|
2112
|
-
getCompanyReportByCik: {
|
|
2113
|
-
parameters: {
|
|
2114
|
-
query?: never;
|
|
2115
|
-
header?: never;
|
|
2116
|
-
path: {
|
|
2117
|
-
fiscal_year: string;
|
|
2118
|
-
/** @description Positive SEC CIK as one to ten decimal digits; leading zeros are optional. */
|
|
2119
|
-
cik: string;
|
|
2120
|
-
};
|
|
2121
|
-
cookie?: never;
|
|
2122
|
-
};
|
|
2123
|
-
requestBody?: never;
|
|
2124
|
-
responses: {
|
|
2125
|
-
/** @description Annual report filing family */
|
|
2126
|
-
200: {
|
|
2127
|
-
headers: {
|
|
2128
|
-
"Cache-Control"?: string;
|
|
2129
|
-
ETag?: string;
|
|
2130
|
-
"X-Billing-Period-Quota-Limit"?: string;
|
|
2131
|
-
"X-Billing-Period-Quota-Remaining"?: string;
|
|
2132
|
-
"X-Billing-Period-Quota-Reset"?: string;
|
|
2133
|
-
[name: string]: unknown;
|
|
2134
|
-
};
|
|
2135
|
-
content: {
|
|
2136
|
-
/**
|
|
2137
|
-
* @example {
|
|
2138
|
-
* "filings": [
|
|
2139
|
-
* {
|
|
2140
|
-
* "accepted_at": "2024-11-01T10:00:00.000Z",
|
|
2141
|
-
* "accession_number": "0000320193-24-000123",
|
|
2142
|
-
* "content_url": "/v1/sec/company-reports/0000320193-24-000123/content.html",
|
|
2143
|
-
* "form": "10-K",
|
|
2144
|
-
* "period_end_date": "2024-09-28",
|
|
2145
|
-
* "sec_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/0000320193-24-000123-index.htm"
|
|
2146
|
-
* }
|
|
2147
|
-
* ],
|
|
2148
|
-
* "fiscal_period": "FY",
|
|
2149
|
-
* "fiscal_year": 2024,
|
|
2150
|
-
* "issuer": {
|
|
2151
|
-
* "cik": "0000320193",
|
|
2152
|
-
* "name": "Apple Inc.",
|
|
2153
|
-
* "ticker": "AAPL"
|
|
2154
|
-
* }
|
|
2155
|
-
* }
|
|
2156
|
-
*/
|
|
2157
|
-
"application/json": components["schemas"]["CompanyReportFamilyResponse"];
|
|
2158
|
-
};
|
|
2159
|
-
};
|
|
2160
|
-
/** @description The cik or fiscal year is invalid */
|
|
2161
|
-
400: {
|
|
2162
|
-
headers: {
|
|
2163
|
-
[name: string]: unknown;
|
|
2164
|
-
};
|
|
2165
|
-
content: {
|
|
2166
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2167
|
-
};
|
|
2168
|
-
};
|
|
2169
|
-
/** @description The request is missing a valid Chadwin API key. */
|
|
2170
|
-
401: {
|
|
2171
|
-
headers: {
|
|
2172
|
-
[name: string]: unknown;
|
|
2173
|
-
};
|
|
2174
|
-
content: {
|
|
2175
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2176
|
-
};
|
|
2177
|
-
};
|
|
2178
|
-
/** @description The subscription does not include this dataset. */
|
|
2179
|
-
403: {
|
|
2180
|
-
headers: {
|
|
2181
|
-
[name: string]: unknown;
|
|
2182
|
-
};
|
|
2183
|
-
content: {
|
|
2184
|
-
"application/json": components["schemas"]["DatasetNotEntitledErrorResponse"];
|
|
2185
|
-
};
|
|
2186
|
-
};
|
|
2187
|
-
/** @description The company or eligible annual report was not found */
|
|
2188
|
-
404: {
|
|
2189
|
-
headers: {
|
|
2190
|
-
[name: string]: unknown;
|
|
2191
|
-
};
|
|
2192
|
-
content: {
|
|
2193
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2194
|
-
};
|
|
2195
|
-
};
|
|
2196
|
-
/** @description More than one original annual report matches the fiscal year */
|
|
2197
|
-
409: {
|
|
2198
|
-
headers: {
|
|
2199
|
-
[name: string]: unknown;
|
|
2200
|
-
};
|
|
2201
|
-
content: {
|
|
2202
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2203
|
-
};
|
|
2204
|
-
};
|
|
2205
|
-
/** @description The request exceeded a rate limit. */
|
|
2206
|
-
429: {
|
|
2207
|
-
headers: {
|
|
2208
|
-
"RateLimit-Limit"?: string;
|
|
2209
|
-
"RateLimit-Reset"?: string;
|
|
2210
|
-
"Retry-After"?: string;
|
|
2211
|
-
"X-Billing-Period-Quota-Limit"?: string;
|
|
2212
|
-
"X-Billing-Period-Quota-Remaining"?: string;
|
|
2213
|
-
"X-Billing-Period-Quota-Reset"?: string;
|
|
2214
|
-
[name: string]: unknown;
|
|
2215
|
-
};
|
|
2216
|
-
content: {
|
|
2217
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2218
|
-
};
|
|
2219
|
-
};
|
|
2220
|
-
/** @description The filing catalog is unavailable */
|
|
2221
|
-
503: {
|
|
2222
|
-
headers: {
|
|
2223
|
-
[name: string]: unknown;
|
|
2224
|
-
};
|
|
2225
|
-
content: {
|
|
2226
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2227
|
-
};
|
|
2228
|
-
};
|
|
2229
|
-
};
|
|
2230
|
-
};
|
|
2231
|
-
getCompanyReportByCikForFiscalPeriod: {
|
|
2232
|
-
parameters: {
|
|
2233
|
-
query?: never;
|
|
2234
|
-
header?: never;
|
|
2235
|
-
path: {
|
|
2236
|
-
fiscal_year: string;
|
|
2237
|
-
/** @description Positive SEC CIK as one to ten decimal digits; leading zeros are optional. */
|
|
2238
|
-
cik: string;
|
|
2239
|
-
fiscal_period: "Q1" | "Q2" | "Q3";
|
|
2240
|
-
};
|
|
2241
|
-
cookie?: never;
|
|
2242
|
-
};
|
|
2243
|
-
requestBody?: never;
|
|
2244
|
-
responses: {
|
|
2245
|
-
/** @description Quarterly report filing family */
|
|
2246
|
-
200: {
|
|
2247
|
-
headers: {
|
|
2248
|
-
"Cache-Control"?: string;
|
|
2249
|
-
ETag?: string;
|
|
2250
|
-
"X-Billing-Period-Quota-Limit"?: string;
|
|
2251
|
-
"X-Billing-Period-Quota-Remaining"?: string;
|
|
2252
|
-
"X-Billing-Period-Quota-Reset"?: string;
|
|
2253
|
-
[name: string]: unknown;
|
|
2254
|
-
};
|
|
2255
|
-
content: {
|
|
2256
|
-
/**
|
|
2257
|
-
* @example {
|
|
2258
|
-
* "filings": [
|
|
2259
|
-
* {
|
|
2260
|
-
* "accepted_at": "2025-08-01T10:00:42.000Z",
|
|
2261
|
-
* "accession_number": "0000320193-25-000073",
|
|
2262
|
-
* "content_url": "/v1/sec/company-reports/0000320193-25-000073/content.html",
|
|
2263
|
-
* "form": "10-Q",
|
|
2264
|
-
* "period_end_date": "2025-06-28",
|
|
2265
|
-
* "sec_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000073/0000320193-25-000073-index.htm"
|
|
2266
|
-
* }
|
|
2267
|
-
* ],
|
|
2268
|
-
* "fiscal_period": "Q3",
|
|
2269
|
-
* "fiscal_year": 2025,
|
|
2270
|
-
* "issuer": {
|
|
2271
|
-
* "cik": "0000320193",
|
|
2272
|
-
* "name": "Apple Inc.",
|
|
2273
|
-
* "ticker": "AAPL"
|
|
2274
|
-
* }
|
|
2275
|
-
* }
|
|
2276
|
-
*/
|
|
2277
|
-
"application/json": components["schemas"]["CompanyReportFamilyResponse"];
|
|
2278
|
-
};
|
|
2279
|
-
};
|
|
2280
|
-
/** @description The cik, fiscal year, or fiscal period is invalid */
|
|
2281
|
-
400: {
|
|
2282
|
-
headers: {
|
|
2283
|
-
[name: string]: unknown;
|
|
2284
|
-
};
|
|
2285
|
-
content: {
|
|
2286
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2287
|
-
};
|
|
2288
|
-
};
|
|
2289
|
-
/** @description The request is missing a valid Chadwin API key. */
|
|
2290
|
-
401: {
|
|
2291
|
-
headers: {
|
|
2292
|
-
[name: string]: unknown;
|
|
2293
|
-
};
|
|
2294
|
-
content: {
|
|
2295
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2296
|
-
};
|
|
2297
|
-
};
|
|
2298
|
-
/** @description The subscription does not include this dataset. */
|
|
2299
|
-
403: {
|
|
2300
|
-
headers: {
|
|
2301
|
-
[name: string]: unknown;
|
|
2302
|
-
};
|
|
2303
|
-
content: {
|
|
2304
|
-
"application/json": components["schemas"]["DatasetNotEntitledErrorResponse"];
|
|
2305
|
-
};
|
|
2306
|
-
};
|
|
2307
|
-
/** @description The company or eligible quarterly report was not found */
|
|
2308
|
-
404: {
|
|
2309
|
-
headers: {
|
|
2310
|
-
[name: string]: unknown;
|
|
2311
|
-
};
|
|
2312
|
-
content: {
|
|
2313
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2314
|
-
};
|
|
2315
|
-
};
|
|
2316
|
-
/** @description More than one original quarterly report matches the fiscal period */
|
|
2317
|
-
409: {
|
|
2318
|
-
headers: {
|
|
2319
|
-
[name: string]: unknown;
|
|
2320
|
-
};
|
|
2321
|
-
content: {
|
|
2322
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2323
|
-
};
|
|
2324
|
-
};
|
|
2325
|
-
/** @description The request exceeded a rate limit. */
|
|
2326
|
-
429: {
|
|
2327
|
-
headers: {
|
|
2328
|
-
"RateLimit-Limit"?: string;
|
|
2329
|
-
"RateLimit-Reset"?: string;
|
|
2330
|
-
"Retry-After"?: string;
|
|
2331
|
-
"X-Billing-Period-Quota-Limit"?: string;
|
|
2332
|
-
"X-Billing-Period-Quota-Remaining"?: string;
|
|
2333
|
-
"X-Billing-Period-Quota-Reset"?: string;
|
|
2334
|
-
[name: string]: unknown;
|
|
2335
|
-
};
|
|
2336
|
-
content: {
|
|
2337
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2338
|
-
};
|
|
2339
|
-
};
|
|
2340
|
-
/** @description The filing catalog is unavailable */
|
|
2341
|
-
503: {
|
|
2342
|
-
headers: {
|
|
2343
|
-
[name: string]: unknown;
|
|
2344
|
-
};
|
|
2345
|
-
content: {
|
|
2346
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2347
|
-
};
|
|
2348
|
-
};
|
|
2349
|
-
};
|
|
2350
|
-
};
|
|
2351
1875
|
getCompanyFinancialStatements: {
|
|
2352
1876
|
parameters: {
|
|
2353
1877
|
query?: {
|
|
@@ -2541,6 +2065,139 @@ interface operations {
|
|
|
2541
2065
|
};
|
|
2542
2066
|
};
|
|
2543
2067
|
};
|
|
2068
|
+
getCompanyReportsForPeriod: {
|
|
2069
|
+
parameters: {
|
|
2070
|
+
query: {
|
|
2071
|
+
/** @description Ticker from the accepted SEC snapshot. Supply exactly one ticker or CIK; letters normalize to uppercase. */
|
|
2072
|
+
ticker?: string;
|
|
2073
|
+
/** @description Positive SEC CIK, one to ten decimal digits. Supply exactly one ticker or CIK; CIKs normalize to ten digits. */
|
|
2074
|
+
cik?: string;
|
|
2075
|
+
/** @description Required four-digit fiscal year, from 1900 through 9999. */
|
|
2076
|
+
fiscal_year: string;
|
|
2077
|
+
/** @description Required FY for annual reports, or Q1, Q2 or Q3 for quarterly reports. FY is not Q4. */
|
|
2078
|
+
fiscal_period: "FY" | "Q1" | "Q2" | "Q3";
|
|
2079
|
+
};
|
|
2080
|
+
header?: never;
|
|
2081
|
+
path?: never;
|
|
2082
|
+
cookie?: never;
|
|
2083
|
+
};
|
|
2084
|
+
requestBody?: never;
|
|
2085
|
+
responses: {
|
|
2086
|
+
/** @description Original report and subsequent amendments */
|
|
2087
|
+
200: {
|
|
2088
|
+
headers: {
|
|
2089
|
+
"Cache-Control"?: string;
|
|
2090
|
+
ETag?: string;
|
|
2091
|
+
"X-Billing-Period-Quota-Limit"?: string;
|
|
2092
|
+
"X-Billing-Period-Quota-Remaining"?: string;
|
|
2093
|
+
"X-Billing-Period-Quota-Reset"?: string;
|
|
2094
|
+
[name: string]: unknown;
|
|
2095
|
+
};
|
|
2096
|
+
content: {
|
|
2097
|
+
/**
|
|
2098
|
+
* @example {
|
|
2099
|
+
* "filings": [
|
|
2100
|
+
* {
|
|
2101
|
+
* "accepted_at": "2024-11-01T10:00:00.000Z",
|
|
2102
|
+
* "accession_number": "0000320193-24-000123",
|
|
2103
|
+
* "content_url": "/v1/sec/company-reports/0000320193-24-000123/content.html",
|
|
2104
|
+
* "form": "10-K",
|
|
2105
|
+
* "period_end_date": "2024-09-28",
|
|
2106
|
+
* "sec_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/0000320193-24-000123-index.htm"
|
|
2107
|
+
* }
|
|
2108
|
+
* ],
|
|
2109
|
+
* "fiscal_period": "FY",
|
|
2110
|
+
* "fiscal_year": 2024,
|
|
2111
|
+
* "issuer": {
|
|
2112
|
+
* "cik": "0000320193",
|
|
2113
|
+
* "name": "Apple Inc.",
|
|
2114
|
+
* "ticker": "AAPL"
|
|
2115
|
+
* }
|
|
2116
|
+
* }
|
|
2117
|
+
*/
|
|
2118
|
+
"application/json": components["schemas"]["CompanyReportFamilyResponse"];
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
2121
|
+
/** @description Supply one identifier, a valid fiscal year and FY, Q1, Q2 or Q3; no extra or repeated keys. */
|
|
2122
|
+
400: {
|
|
2123
|
+
headers: {
|
|
2124
|
+
[name: string]: unknown;
|
|
2125
|
+
};
|
|
2126
|
+
content: {
|
|
2127
|
+
"application/json": {
|
|
2128
|
+
/** @enum {string} */
|
|
2129
|
+
error: "invalid_query_parameters";
|
|
2130
|
+
};
|
|
2131
|
+
};
|
|
2132
|
+
};
|
|
2133
|
+
/** @description The request is missing a valid Chadwin API key. */
|
|
2134
|
+
401: {
|
|
2135
|
+
headers: {
|
|
2136
|
+
[name: string]: unknown;
|
|
2137
|
+
};
|
|
2138
|
+
content: {
|
|
2139
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2140
|
+
};
|
|
2141
|
+
};
|
|
2142
|
+
/** @description The subscription does not include this dataset. */
|
|
2143
|
+
403: {
|
|
2144
|
+
headers: {
|
|
2145
|
+
[name: string]: unknown;
|
|
2146
|
+
};
|
|
2147
|
+
content: {
|
|
2148
|
+
"application/json": components["schemas"]["DatasetNotEntitledErrorResponse"];
|
|
2149
|
+
};
|
|
2150
|
+
};
|
|
2151
|
+
/** @description The ticker is unresolved or no eligible report family exists. */
|
|
2152
|
+
404: {
|
|
2153
|
+
headers: {
|
|
2154
|
+
[name: string]: unknown;
|
|
2155
|
+
};
|
|
2156
|
+
content: {
|
|
2157
|
+
"application/json": {
|
|
2158
|
+
/** @enum {string} */
|
|
2159
|
+
error: "company_not_found" | "company_report_not_found";
|
|
2160
|
+
};
|
|
2161
|
+
};
|
|
2162
|
+
};
|
|
2163
|
+
/** @description The ticker matches multiple CIKs or multiple original reports match the selected period. */
|
|
2164
|
+
409: {
|
|
2165
|
+
headers: {
|
|
2166
|
+
[name: string]: unknown;
|
|
2167
|
+
};
|
|
2168
|
+
content: {
|
|
2169
|
+
"application/json": {
|
|
2170
|
+
/** @enum {string} */
|
|
2171
|
+
error: "company_ambiguous" | "company_report_ambiguous";
|
|
2172
|
+
};
|
|
2173
|
+
};
|
|
2174
|
+
};
|
|
2175
|
+
/** @description The request exceeded a rate limit. */
|
|
2176
|
+
429: {
|
|
2177
|
+
headers: {
|
|
2178
|
+
"RateLimit-Limit"?: string;
|
|
2179
|
+
"RateLimit-Reset"?: string;
|
|
2180
|
+
"Retry-After"?: string;
|
|
2181
|
+
"X-Billing-Period-Quota-Limit"?: string;
|
|
2182
|
+
"X-Billing-Period-Quota-Remaining"?: string;
|
|
2183
|
+
"X-Billing-Period-Quota-Reset"?: string;
|
|
2184
|
+
[name: string]: unknown;
|
|
2185
|
+
};
|
|
2186
|
+
content: {
|
|
2187
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2188
|
+
};
|
|
2189
|
+
};
|
|
2190
|
+
/** @description The filing catalog is unavailable */
|
|
2191
|
+
503: {
|
|
2192
|
+
headers: {
|
|
2193
|
+
[name: string]: unknown;
|
|
2194
|
+
};
|
|
2195
|
+
content: {
|
|
2196
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2197
|
+
};
|
|
2198
|
+
};
|
|
2199
|
+
};
|
|
2200
|
+
};
|
|
2544
2201
|
searchCompanies: {
|
|
2545
2202
|
parameters: {
|
|
2546
2203
|
query: {
|
|
@@ -4900,7 +4557,7 @@ interface operations {
|
|
|
4900
4557
|
}
|
|
4901
4558
|
|
|
4902
4559
|
type CompanyReportForm = "10-K" | "10-Q" | "20-F" | "40-F";
|
|
4903
|
-
type CompanyReportFiscalPeriod = "Q1" | "Q2" | "Q3";
|
|
4560
|
+
type CompanyReportFiscalPeriod = "FY" | "Q1" | "Q2" | "Q3";
|
|
4904
4561
|
type CompanySelector = {
|
|
4905
4562
|
ticker: string;
|
|
4906
4563
|
cik?: never;
|
|
@@ -5043,15 +4700,10 @@ declare class CompanyReports {
|
|
|
5043
4700
|
get({ accessionNumber, }: {
|
|
5044
4701
|
accessionNumber: string;
|
|
5045
4702
|
}): PromiseWithResponse<JsonResponse<"getSecCompanyReport">>;
|
|
5046
|
-
|
|
5047
|
-
ticker: string;
|
|
5048
|
-
fiscalYear: number;
|
|
5049
|
-
}): PromiseWithResponse<JsonResponse<"getCompanyReport">>;
|
|
5050
|
-
getByFiscalPeriod({ ticker, fiscalYear, fiscalPeriod, }: {
|
|
5051
|
-
ticker: string;
|
|
4703
|
+
getForPeriod({ ticker, cik, fiscalYear, fiscalPeriod }: CompanySelector & {
|
|
5052
4704
|
fiscalYear: number;
|
|
5053
4705
|
fiscalPeriod: CompanyReportFiscalPeriod;
|
|
5054
|
-
}): PromiseWithResponse<JsonResponse<"
|
|
4706
|
+
}): PromiseWithResponse<JsonResponse<"getCompanyReportsForPeriod">>;
|
|
5055
4707
|
getHtml({ accessionNumber, }: {
|
|
5056
4708
|
accessionNumber: string;
|
|
5057
4709
|
}): PromiseWithResponse<TextResponse<"getSecCompanyReportContent">>;
|