SPB Git forge

spb/rareindex

Public
54commits 1branches 0releases
7.1 MBsize
maindefault branch
10 days agolast push
TypeScript 61.9% HTML 37.2% SQL 0.7%
2.2 KB · 19 lines markdown
Rendered Raw Blame History
1# Total Cards connector (`totalcards`)23- Source: https://www.totalcards.net · Large UK trading-card retailer (Newton Aycliffe, since 2012): Pokémon (English + Japanese) and Magic singles, sealed TCG products, Funko, figures and comics.4- Country/currency: GB / GBP · type: dealer · engine: api (Shopify storefront products.json (public JSON))5- Records: `listing` only (dealer asking prices; never sales — SPEC §111). One listing per variant (condition / size / finish), out-of-stock variants kept as `ended`.6- Refresh: every 12 h (NORMAL class) · historical depth: none (no sold archive).78## How it works9Metadata-only connector: `index.ts` instantiates the shared `ShopifyStoreConnector` adapter; everything source-specific lives in `meta.json` `config`:10collections → taxonomy slug (with brand/franchise/series), title/tag `rules` (first match wins), an `exclude` regex for accessories/apparel/events, a `titlePattern` that extracts name/set/number, and the shop currency. Anything unmapped is skipped, never guessed.1112Collections read (14): `pokemon-single-cards` → pokemon, `pokemon-japanese-single-cards` → pokemon, `pokemon-sealed-products` → pokemon, `magic-the-gathering-single-cards` → magic_the_gathering, `lorcana-single-cards` → disney_lorcana, `one-piece-single-cards` → one_piece_card_game, `digimon-single-cards` → digimon_tcg, `dragon-ball-super-single-cards` → dragon_ball_tcg, `final-fantasy-single-cards` → final_fantasy_tcg, `star-wars-unlimited` → star_wars_tcg, `cardfight-vanguard-single-cards` → other_tcg, `funko-pop` → funko, `figures` → action_figures, `comic-books` → comics.1314## Access & compliance15See `accessNotes` in meta.json (robots findings, endpoints, rate limit, what is not fetched). Host policy: `connectors/domains.d/g4-shops-intl.json`.1617## Fixtures & tests18`data/fixtures/totalcards/*.json` are live captures made with `connectors/api/_g4-shops-intl-lib/capture.ts` (trimmed payloads, expectations derived from the live record). `index.test.ts` runs the framework fixture suite, the g4 store invariants and a mapping unit test on titles observed live. Live probe: `pnpm tsx connectors/api/_g4-shops-intl-lib/smoke.ts totalcards`.19