This commit is contained in:
seb
2026-09-29 16:16:05 +02:00
parent 26d2f83d64
commit ae5d5cc6f8
40 changed files with 2139 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
# articleattributevalue
This document is auto-generated from the JSDoc comments in `src/store` by running `npm run api-doc`.
## `articleattributevalue.listByArticleSku`
*Source: `src/store/articleattributevalue/listByArticleSku.js`*
Lists the attribute values assigned to an article by its SKU.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `sku` | `string` | The article SKU. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
`Promise<Array<{id: number, articleId: number, attributeId: number, attributeName: string, exclusive: boolean, attributeValueId: number, value: string, sort: number}>>`
## `articleattributevalue.setByArticleSku`
*Source: `src/store/articleattributevalue/setByArticleSku.js`*
Replaces all attribute values for an article by its SKU. Validates company ownership and enforces the `exclusive` flag on attributes.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `sku` | `string` | The article SKU. |
| `values` | `Array<number|{attributeValueId: number, sort?: number}>` | Attribute value IDs or items. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
`Promise<Array<{id: number, articleId: number, attributeId: number, attributeName: string, exclusive: boolean, attributeValueId: number, value: string, sort: number}>>`