This commit is contained in:
seb
2026-10-18 03:15:20 +02:00
parent fda895f75a
commit c687553eea
6 changed files with 402 additions and 0 deletions

View File

@@ -320,6 +320,29 @@ const articles = await store.article.listExport(42, null);
// => [{ id, sku, name, slug, unitSi, net, taxRate, eans, categoryBreadcrumbs, fullHashes, ... }]
```
## `article.listHistory`
*Source: `src/store/article/listHistory.js`*
Lists article history entries for the user's selected company, supporting pagination, date cutoff via seekMonths, and search.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `provider` | `import('../../providers/provider.js').Provider` | |
**Returns**
`(googleAuthId: number, opts?: {offset?: number, limit?: number, search?: string, seekMonths?: number}, tx?: object) => Promise<{history: Array<{id: number, date: string, sku: string, name: string|null, historytext: string}>, total: number, unfilteredTotal: number, offset: number, limit: number}>`
**Example**
```js
const res = await store.article.listHistory(googleAuthId, { offset: 0, limit: 50, search: 'hjg', seekMonths: -13 });
// => { history: [...], total, unfilteredTotal, offset, limit }
```
## `article.listSearchIndex`
*Source: `src/store/article/listSearchIndex.js`*