@internetarchive/search-service
Advanced tools
Comparing version 1.3.1 to 1.3.2-alpha.0
@@ -17,2 +17,3 @@ export { Metadata } from './src/models/metadata'; | ||
export { SearchResponseHeader } from './src/responses/search-response-header'; | ||
export { SearchResponseSessionContext } from './src/responses/search-response-session-context'; | ||
export { SearchResponseParams } from './src/responses/search-response-params'; | ||
@@ -19,0 +20,0 @@ export { CollectionExtraInfo, RelatedCollection, UserDetails, } from './src/responses/collection-extra-info'; |
import { SearchResponseHeader } from './search-response-header'; | ||
import { SearchResponseDetailsInterface } from './search-response-details'; | ||
import { SearchRequest } from './search-request'; | ||
import { SearchResponseSessionContext } from './search-response-session-context'; | ||
/** | ||
@@ -31,2 +32,6 @@ * The top-level response model when retrieving a response from the page production service endpoint. | ||
/** | ||
* The session context from the PPS | ||
*/ | ||
sessionContext: SearchResponseSessionContext; | ||
/** | ||
* The response containing the search results | ||
@@ -33,0 +38,0 @@ * |
@@ -15,2 +15,3 @@ import { SearchResponseDetails, } from './search-response-details'; | ||
this.responseHeader = (_a = json.response) === null || _a === void 0 ? void 0 : _a.header; | ||
this.sessionContext = json.session_context; | ||
this.response = new SearchResponseDetails((_b = json.response) === null || _b === void 0 ? void 0 : _b.body, (_c = json.response) === null || _c === void 0 ? void 0 : _c.hit_schema); | ||
@@ -17,0 +18,0 @@ } |
@@ -34,2 +34,3 @@ export { Metadata } from './src/models/metadata'; | ||
export { SearchResponseHeader } from './src/responses/search-response-header'; | ||
export { SearchResponseSessionContext } from './src/responses/search-response-session-context'; | ||
export { SearchResponseParams } from './src/responses/search-response-params'; | ||
@@ -36,0 +37,0 @@ export { |
{ | ||
"name": "@internetarchive/search-service", | ||
"version": "1.3.1", | ||
"version": "1.3.2-alpha.0", | ||
"description": "A search service for the Internet Archive", | ||
@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only", |
@@ -8,2 +8,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import { SearchRequest } from './search-request'; | ||
import { SearchResponseSessionContext } from './search-response-session-context'; | ||
@@ -40,2 +41,7 @@ /** | ||
/** | ||
* The session context from the PPS | ||
*/ | ||
sessionContext: SearchResponseSessionContext; | ||
/** | ||
* The response containing the search results | ||
@@ -52,2 +58,3 @@ * | ||
this.responseHeader = json.response?.header; | ||
this.sessionContext = json.session_context; | ||
this.response = new SearchResponseDetails( | ||
@@ -54,0 +61,0 @@ json.response?.body, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
997839
262
14148
2