Skip to content

Commit

Permalink
fix(assetProfile): Add sectorKey and industryKey (#689)
Browse files Browse the repository at this point in the history
* Add `industryKey` to `assetProfile`
* Add `sectorKey` to `assetProfile`
* Generate new schema
* Add new fields to cached validation file
  • Loading branch information
martinnormark authored Oct 23, 2023
1 parent 63d14ef commit 3104739
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5583,6 +5583,9 @@
"industryDisp": {
"type": "string"
},
"industryKey": {
"type": "string"
},
"industrySymbol": {
"type": "string"
},
Expand All @@ -5592,6 +5595,9 @@
"sectorDisp": {
"type": "string"
},
"sectorKey": {
"type": "string"
},
"longBusinessSummary": {
"type": "string"
},
Expand Down
2 changes: 2 additions & 0 deletions src/modules/quoteSummary-iface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ export interface AssetProfile {
website?: string;
industry?: string;
industryDisp?: string;
industryKey?: string;
industrySymbol?: string;
sector?: string;
sectorDisp?: string;
sectorKey?: string;
longBusinessSummary?: string;
fullTimeEmployees?: number;
companyOfficers: CompanyOfficer[];
Expand Down
2 changes: 2 additions & 0 deletions tests/http/quoteSummary-assetProfile-AAPL.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@
"phone": "408-996-1010",
"website": "http://www.apple.com",
"industry": "Consumer Electronics",
"industryKey": "consumer-electronics",
"sector": "Technology",
"sectorKey": "technology",
"longBusinessSummary": "Apple Inc. designs, manufactures, and markets smartphones, personal computers, tablets, wearables, and accessories worldwide. It also sells various related services. The company offers iPhone, a line of smartphones; Mac, a line of personal computers; iPad, a line of multi-purpose tablets; and wearables, home, and accessories comprising AirPods, Apple TV, Apple Watch, Beats products, HomePod, iPod touch, and other Apple-branded and third-party accessories. It also provides AppleCare support services; cloud services store services; and operates various platforms, including the App Store, that allow customers to discover and download applications and digital content, such as books, music, video, games, and podcasts. In addition, the company offers various services, such as Apple Arcade, a game subscription service; Apple Music, which offers users a curated listening experience with on-demand radio stations; Apple News+, a subscription news and magazine service; Apple TV+, which offers exclusive original content; Apple Card, a co-branded credit card; and Apple Pay, a cashless payment service, as well as licenses its intellectual property. The company serves consumers, and small and mid-sized businesses; and the education, enterprise, and government markets. It sells and delivers third-party applications for its products through the App Store. The company also sells its products through its retail and online stores, and direct sales force; and third-party cellular network carriers, wholesalers, retailers, and resellers. Apple Inc. was founded in 1977 and is headquartered in Cupertino, California.",
"fullTimeEmployees": 147000,
"companyOfficers": [
Expand Down

0 comments on commit 3104739

Please sign in to comment.