WorkRecord
Import from: @xbbg/xnews
Defined in: src/types.ts (declaration: types.d.ts:495)
One bibliographic record, normalized across catalogs. Numeric fields are absent rather than zero when the provider stated an uncoercible value, and the reason lands in warnings so a layout change surfaces instead of silently degrading every row.
Properties
addedAt?
readonlyoptionaladdedAt?:string
Defined in: src/types.ts (declaration: types.d.ts:517)
ISO instant the catalog first listed the record, when stated.
authors
readonlyauthors: readonlystring[]
Defined in: src/types.ts (declaration: types.d.ts:502)
availability
readonlyavailability:WorkAvailability
Defined in: src/types.ts (declaration: types.d.ts:513)
edition?
readonlyoptionaledition?:string
Defined in: src/types.ts (declaration: types.d.ts:505)
format?
readonlyoptionalformat?:string
Defined in: src/types.ts (declaration: types.d.ts:509)
Lowercase file extension, when the record describes a file.
identity
readonlyidentity:WorkIdentity
Defined in: src/types.ts (declaration: types.d.ts:512)
language?
readonlyoptionallanguage?:string
Defined in: src/types.ts (declaration: types.d.ts:507)
modifiedAt?
readonlyoptionalmodifiedAt?:string
Defined in: src/types.ts (declaration: types.d.ts:519)
ISO instant the catalog last revised the record, when stated.
pageCount?
readonlyoptionalpageCount?:number
Defined in: src/types.ts (declaration: types.d.ts:510)
provenance
readonlyprovenance: readonlyWorkRecordProvenance[]
Defined in: src/types.ts (declaration: types.d.ts:521)
provider
readonlyprovider:string
Defined in: src/types.ts (declaration: types.d.ts:497)
Built-in providers use their WorksProvider name (e.g. "libgen").
publishedYear?
readonlyoptionalpublishedYear?:number
Defined in: src/types.ts (declaration: types.d.ts:504)
publisher?
readonlyoptionalpublisher?:string
Defined in: src/types.ts (declaration: types.d.ts:503)
series?
readonlyoptionalseries?:string
Defined in: src/types.ts (declaration: types.d.ts:506)
sizeBytes?
readonlyoptionalsizeBytes?:number
Defined in: src/types.ts (declaration: types.d.ts:511)
sourceId
readonlysourceId:string
Defined in: src/types.ts (declaration: types.d.ts:499)
Provider-native record id, stable within provider.
subtitle?
readonlyoptionalsubtitle?:string
Defined in: src/types.ts (declaration: types.d.ts:501)
title
readonlytitle:string
Defined in: src/types.ts (declaration: types.d.ts:500)
url
readonlyurl:string
Defined in: src/types.ts (declaration: types.d.ts:515)
Canonical absolute human-facing URL for the record.
warnings
readonlywarnings: readonlystring[]
Defined in: src/types.ts (declaration: types.d.ts:520)
