@internetarchive/search-service
Advanced tools
Comparing version 0.0.1-alpha.9 to 0.0.1-alpha.10
@@ -7,2 +7,3 @@ export { Metadata } from './src/models/metadata'; | ||
export { MetadataField } from './src/models/metadata-fields/metadata-field'; | ||
export { SpeechMusicASREntry } from './src/models/speech-music-asr-entry'; | ||
export { MetadataResponse } from './src/responses/metadata/metadata-response'; | ||
@@ -9,0 +10,0 @@ export { SearchResponse } from './src/responses/search/search-response'; |
@@ -7,2 +7,3 @@ export { Metadata } from './src/models/metadata'; | ||
export { MetadataField } from './src/models/metadata-fields/metadata-field'; | ||
export { SpeechMusicASREntry } from './src/models/speech-music-asr-entry'; | ||
export { MetadataResponse } from './src/responses/metadata/metadata-response'; | ||
@@ -9,0 +10,0 @@ export { SearchResponse } from './src/responses/search/search-response'; |
import { File } from '../../models/file'; | ||
import { Metadata } from '../../models/metadata'; | ||
import { SpeechMusicASREntry } from '../../models/speech-music-asr-entry'; | ||
/** | ||
@@ -23,3 +24,4 @@ * The main top-level reponse when fetching Metadata | ||
workable_servers: string[]; | ||
speech_vs_music_asr?: SpeechMusicASREntry[]; | ||
constructor(json: any); | ||
} |
@@ -6,2 +6,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import { Metadata } from '../../models/metadata'; | ||
import { SpeechMusicASREntry } from '../../models/speech-music-asr-entry'; | ||
/** | ||
@@ -15,3 +16,3 @@ * The main top-level reponse when fetching Metadata | ||
constructor(json) { | ||
var _a; | ||
var _a, _b; | ||
this.rawResponse = json; | ||
@@ -30,4 +31,5 @@ this.created = json.created; | ||
this.workable_servers = json.workable_servers; | ||
this.speech_vs_music_asr = (_b = json.speech_vs_music_asr) === null || _b === void 0 ? void 0 : _b.map((entry) => new SpeechMusicASREntry(entry)); | ||
} | ||
} | ||
//# sourceMappingURL=metadata-response.js.map |
@@ -21,2 +21,4 @@ export { Metadata } from './src/models/metadata'; | ||
export { SpeechMusicASREntry } from './src/models/speech-music-asr-entry'; | ||
export { MetadataResponse } from './src/responses/metadata/metadata-response'; | ||
@@ -23,0 +25,0 @@ export { SearchResponse } from './src/responses/search/search-response'; |
{ | ||
"name": "@internetarchive/search-service", | ||
"version": "0.0.1-alpha.9", | ||
"version": "0.0.1-alpha.10", | ||
"description": "A search service for the Internet Archive", | ||
@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only", |
@@ -6,2 +6,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import { Metadata } from '../../models/metadata'; | ||
import { SpeechMusicASREntry } from '../../models/speech-music-asr-entry'; | ||
@@ -41,2 +42,4 @@ /** | ||
speech_vs_music_asr?: SpeechMusicASREntry[]; | ||
constructor(json: any) { | ||
@@ -56,3 +59,6 @@ this.rawResponse = json; | ||
this.workable_servers = json.workable_servers; | ||
this.speech_vs_music_asr = json.speech_vs_music_asr?.map( | ||
(entry: any) => new SpeechMusicASREntry(entry) | ||
); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
267997
124
3205