Tá na réimsí seo ag gach táirge. Fágtar na cinn roghnacha amach nuair atá siad folamh.
id · string- Id seasmhach, agus deireadh sheoladh leathanach an táirge freisin.
name · string- Ainm an táirge.
description · string- Cur síos in aon abairt amháin.
audience · string[]- Cé dó é: b2b, individual nó an dá cheann.
country · string- Tír thionscnaimh.
website · uri- Suíomh gréasáin an táirge.
longDescription · string- Cúpla alt faoin táirge.
features · string[]- Príomhghnéithe.
useCases · string[]- Idir id amháin agus ceithre id úsáide.
category · string- Id na catagóire, mar atá in /categories/{id}.
verified · boolean- roghnach · true nuair a dhearbhaigh an déantóir úinéireacht; as láthair murach sin.
logoUrl · uri- roghnach · Lógó (PNG, JPEG nó WebP); as láthair nuair nach bhfuil ceann ann.
An rud céanna mar chineálacha TypeScript:
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[];
}