Skip to content

Commit

Permalink
Merge pull request #400 from pudgereyem/fix/search-result
Browse files Browse the repository at this point in the history
fix: update SearchResult to include new properties
  • Loading branch information
gadicc authored Feb 17, 2022
2 parents 59d90ba + f64de37 commit 1a9b21f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7825,6 +7825,10 @@
"type": "array",
"items": {}
},
"culturalAssets": {
"type": "array",
"items": {}
},
"timeTakenForQuotes": {
"yahooFinanceType": "number"
},
Expand All @@ -7848,6 +7852,9 @@
},
"timeTakenForScreenerField": {
"yahooFinanceType": "number"
},
"timeTakenForCulturalAssets": {
"yahooFinanceType": "number"
}
},
"required": [
Expand Down
8 changes: 8 additions & 0 deletions src/modules/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ export interface SearchResult {
// Array<any> until we can find some examples of what it actually looks
// like (#255).
screenerFieldResults?: Array<any>;
// ALWAYS present, but TEMPORARILY marked optional ("?") since its
// sudden appearance, let's make sure it doesn't get suddenly removed.
// Array<any> until we can find some examples of what it actually looks
// like (#399).
culturalAssets?: Array<any>;
timeTakenForQuotes: number; // 26
timeTakenForNews: number; // 419
timeTakenForAlgowatchlist: number; // 700
Expand All @@ -102,6 +107,9 @@ export interface SearchResult {
// ALWAYS present, but TEMPORARILY marked optional ("?") since its
// sudden appearance, let's make sure it doesn't get suddenly removed.
timeTakenForScreenerField?: number;
// ALWAYS present, but TEMPORARILY marked optional ("?") since its
// sudden appearance, let's make sure it doesn't get suddenly removed.
timeTakenForCulturalAssets?: number;
}

export interface SearchOptions {
Expand Down

0 comments on commit 1a9b21f

Please sign in to comment.