@internetarchive/search-service
Advanced tools
Comparing version 0.0.1-alpha.2 to 0.0.1-alpha.3
@@ -0,1 +1,2 @@ | ||
import { DurationField, NumberField } from './metadata-fields/field-types'; | ||
/** | ||
@@ -16,5 +17,13 @@ * This represents an Internet Archive File | ||
sha1: string; | ||
original: string; | ||
size: string; | ||
original?: string; | ||
size?: NumberField; | ||
title?: string; | ||
length?: DurationField; | ||
height?: NumberField; | ||
width?: NumberField; | ||
track?: NumberField; | ||
externalIdentifier?: string; | ||
creator?: string; | ||
album?: string; | ||
constructor(json: any); | ||
} |
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import { DurationField, NumberField } from './metadata-fields/field-types'; | ||
/** | ||
@@ -19,5 +20,13 @@ * This represents an Internet Archive File | ||
this.original = json.original; | ||
this.size = json.size; | ||
this.size = json.size ? new NumberField(json.size) : undefined; | ||
this.title = json.title; | ||
this.length = json.length ? new DurationField(json.length) : undefined; | ||
this.height = json.height ? new NumberField(json.height) : undefined; | ||
this.width = json.width ? new NumberField(json.width) : undefined; | ||
this.track = json.track ? new NumberField(json.track) : undefined; | ||
this.externalIdentifier = json['external-identifier']; | ||
this.creator = json.creator; | ||
this.album = json.album; | ||
} | ||
} | ||
//# sourceMappingURL=file.js.map |
{ | ||
"name": "@internetarchive/search-service", | ||
"version": "0.0.1-alpha.2", | ||
"version": "0.0.1-alpha.3", | ||
"description": "A search service for the Internet Archive", | ||
@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only", |
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import { DurationField, NumberField } from './metadata-fields/field-types'; | ||
/** | ||
@@ -26,6 +28,22 @@ * This represents an Internet Archive File | ||
original: string; | ||
original?: string; | ||
size: string; | ||
size?: NumberField; | ||
title?: string; | ||
length?: DurationField; | ||
height?: NumberField; | ||
width?: NumberField; | ||
track?: NumberField; | ||
externalIdentifier?: string; | ||
creator?: string; | ||
album?: string; | ||
constructor(json: any) { | ||
@@ -41,4 +59,12 @@ this.name = json.name; | ||
this.original = json.original; | ||
this.size = json.size; | ||
this.size = json.size ? new NumberField(json.size) : undefined; | ||
this.title = json.title; | ||
this.length = json.length ? new DurationField(json.length) : undefined; | ||
this.height = json.height ? new NumberField(json.height) : undefined; | ||
this.width = json.width ? new NumberField(json.width) : undefined; | ||
this.track = json.track ? new NumberField(json.track) : undefined; | ||
this.externalIdentifier = json['external-identifier']; | ||
this.creator = json.creator; | ||
this.album = json.album; | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
217392
2556