@internetarchive/search-service
Advanced tools
Comparing version 0.0.1-alpha.18 to 0.0.1-alpha.19
@@ -42,4 +42,24 @@ import { BooleanField } from './metadata-fields/field-types/boolean'; | ||
audio_sample_rate?: NumberField; | ||
/** | ||
* All of the collections that an Item is in, including | ||
* all of the side-loaded collections from the ListAPI | ||
* and SimpleListsAPI like `fav-*` | ||
* | ||
* @type {StringField} | ||
* @memberof Metadata | ||
*/ | ||
collection?: StringField; | ||
/** | ||
* The "natural" collections for an item before augmentation | ||
* by side-loaded collections like ListsAPI and SimpleLists | ||
* | ||
* The `collection` field above includes things like all of | ||
* the `fav-*` collections, whereas this is only the collections | ||
* that have been directly added in the hierarchy. | ||
* | ||
* @type {StringField} | ||
* @memberof Metadata | ||
*/ | ||
collections_raw?: StringField; | ||
/** | ||
* The size of a collection in bytes | ||
@@ -46,0 +66,0 @@ * |
@@ -39,2 +39,5 @@ /* eslint-disable @typescript-eslint/camelcase */ | ||
: undefined; | ||
this.collections_raw = json.collections_raw | ||
? new StringField(json.collections_raw) | ||
: undefined; | ||
this.collection_size = json.collection_size | ||
@@ -41,0 +44,0 @@ ? new ByteField(json.collection_size) |
{ | ||
"name": "@internetarchive/search-service", | ||
"version": "0.0.1-alpha.18", | ||
"version": "0.0.1-alpha.19", | ||
"description": "A search service for the Internet Archive", | ||
@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only", |
@@ -50,5 +50,26 @@ /* eslint-disable @typescript-eslint/camelcase */ | ||
/** | ||
* All of the collections that an Item is in, including | ||
* all of the side-loaded collections from the ListAPI | ||
* and SimpleListsAPI like `fav-*` | ||
* | ||
* @type {StringField} | ||
* @memberof Metadata | ||
*/ | ||
collection?: StringField; | ||
/** | ||
* The "natural" collections for an item before augmentation | ||
* by side-loaded collections like ListsAPI and SimpleLists | ||
* | ||
* The `collection` field above includes things like all of | ||
* the `fav-*` collections, whereas this is only the collections | ||
* that have been directly added in the hierarchy. | ||
* | ||
* @type {StringField} | ||
* @memberof Metadata | ||
*/ | ||
collections_raw?: StringField; | ||
/** | ||
* The size of a collection in bytes | ||
@@ -198,2 +219,5 @@ * | ||
: undefined; | ||
this.collections_raw = json.collections_raw | ||
? new StringField(json.collections_raw) | ||
: undefined; | ||
this.collection_size = json.collection_size | ||
@@ -200,0 +224,0 @@ ? new ByteField(json.collection_size) |
@@ -95,5 +95,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
private getSuccessResult( | ||
json: any | ||
): Result<any, SearchServiceError> { | ||
private getSuccessResult(json: any): Result<any, SearchServiceError> { | ||
return new Result<any, SearchServiceError>(json, undefined); | ||
@@ -100,0 +98,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
346017
4566