Files
dashlibstorage/API.brand.md
seb 70e0a9ddc4 Add entity customer numbers and scope APIs via selected company.
Entity gets an optional unique-per-company number with allocate/peek/isNumberFree helpers. Company-scoped store methods no longer take companyId and resolve google_auth.selected_company instead.
2026-08-07 04:29:35 +02:00

690 B

brand

This document is auto-generated from the JSDoc comments in src/store by running npm run api-doc.

brand.delete

Source: src/store/brand/delete.js

Deletes a brand for a company by its id.

const fn = del(pool);
await fn(42, 3);

brand.list

Source: src/store/brand/list.js

Lists the brands of a company.

const fn = list(pool);
const brands = await fn(42);
// => [{ id, name, gsprpinfo }]

brand.upsert

Source: src/store/brand/upsert.js

Creates or updates a brand for a company, keyed by name.

const fn = upsert(pool);
const brand = await fn(42, { name: 'Coca-Cola', gsprpinfo: 'x' });
// => { id, name, gsprpinfo }