Skip to content

Reference

tilttek/game-catalog

Every public type of the package, with its role. The types marked internal may change in any version.

The catalogue

TypeRole
CatalogThe service: entries by hand and from sources, identifiers, errata, links, barcodes, hiding, the page of a game and the history.
EntryA game of the catalogue: its details from its source, the corrected fields beside them, its identifiers, its errata, hidden or not, and its version.
DetailsWhat an entry says of a game as its publisher states it.
FieldA field of the details: what a correction changes and the history names.
EntryTypeWhat an entry is as a product.
GameKindHow a game is played.
LanguageDependenceHow much text a player reads while playing, at five levels.
RangeA range of whole numbers, both ends included.
OriginEntered by hand, or sent by a source under its key.
SourcedEntryAn entry as a source sends it.
ExternalIdThe identifier of a game in an open database, and the link to its page.
IdentifierSchemeBoardGameGeek, RPGGeek or Wikidata.
GtinThe barcode of a box, kept as 14 digits.
ErratumA correction of the game published by its author or publisher.
LinkOne entry related to another.
LinkTypeHow one entry relates to another.
SheetThe page of a game: the entry, its votes and its links.
ChangeA line of the history of an entry.
ChangeKindWhat changed an entry.

Corrections

TypeRole
CorrectionsThe service: proposes, accepts, refuses corrections and returns fields to their source.
CorrectionA correction a member proposes: the details read, the details proposed, the fields changed and the decision.
CorrectionStatusPending, accepted or refused.

Votes and reviews

TypeRole
PollsThe service: keeps one ballot per member and entry, and counts them.
BallotA member's votes on an entry.
PlayerCountChoiceBest, recommended or not recommended.
PollResultsThe ballots of an entry, counted.
PlayerCountResultThe votes on one number of players.
ReviewsThe service: the experience of the author of a review, frozen.
ExperienceThe games played and run by the author of a review when writing it.

Collection import

TypeRole
Import\CollectionReaderReads a collection file within its bounds.
Import\ColumnsWhich columns of the file are read, by their header.
Import\LimitsThe bounds of a collection file.
Import\CollectionFileA collection file, read: its rows and its row errors.
Import\CollectionRowA row read: the identifier, the statuses, the priority and the plays.
Import\RowErrorA row left out, with its line and why.
Import\CollectionImporterFinds the games of a file in the catalogue.
Import\CollectionImportWhat an import found.
Import\CollectionItemA game of a member's collection found in the catalogue.
CollectionStatusWhere a game stands in a member's collection.

Ports and store

TypeRole
Contract\CatalogStoreWhere the catalogue is kept.
Contract\EntrySourceA port that feeds the catalogue.
Contract\BarcodeResolverA port that identifies a barcode the catalogue does not know.
Contract\CatalogObserverTold of errata and corrections, by identifiers.
Contract\PlayHistoryA port to the plays the application records.
Contract\ReviewSystemA port to the reviews the application keeps.
Store\InMemoryCatalogStoreThe catalogue in memory, for tests.

Exceptions and internals

TypeRole
Exception\*The exceptions, listed in Exceptions.
Internal\IdentifierInternal: the shape of every identifier.
Internal\TextInternal: the text an entry keeps.
Internal\AverageInternal: averages in whole hundredths.