Každý produkt má tato pole. Volitelná se vynechávají, když jsou prázdná.
id · string- Stálé id, zároveň konec adresy stránky produktu.
name · string- Název produktu.
description · string- Popis v jedné větě.
audience · string[]- Pro koho je: b2b, individual nebo obojí.
country · string- Země původu.
website · uri- Web produktu.
longDescription · string- Pár odstavců o produktu.
features · string[]- Hlavní funkce.
useCases · string[]- Jedno až čtyři id případů použití.
category · string- Id kategorie, jako v /categories/{id}.
verified · boolean- volitelné · true, když tvůrce ověřil vlastnictví; jinak chybí.
logoUrl · uri- volitelné · Logo (PNG, JPEG nebo WebP); chybí, pokud žádné není.
Totéž jako typy TypeScriptu:
export interface Software {
/** Stable id, also the end of the product’s page address. */
id: string;
/** Product name. */
name: string;
/** One-sentence description. */
description: string;
/** Who it’s for: b2b, individual or both. */
audience: ("b2b" | "individual")[];
/** Country of origin. */
country: string;
/** The product’s website. */
website: string;
/** A few paragraphs about the product. */
longDescription: string;
/** Main features. */
features: string[];
/** One to four use-case ids. */
useCases: string[];
/** Category id, as in /categories/{id}. */
category: string;
/** true when the maker verified ownership; absent otherwise. */
verified?: true;
/** Logo (PNG, JPEG or WebP); absent when there is none. */
logoUrl?: string;
}
/** countries.json, GET /api/software/countries */
export type Countries = string[];
/** categories.json, GET /api/categories/counts */
export type CategoryCounts = Record<string, number>;
/** One entry of alternatives.json */
export interface Alternative {
tool: string;
name: string;
page: string;
ids: string[];
}