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

59
API.articleproperty.md Normal file
View File

@@ -0,0 +1,59 @@
# articleproperty
This document is auto-generated from the JSDoc comments in `src/store` by running `npm run api-doc`.
## `articleproperty.delete`
*Source: `src/store/articleproperty/delete.js`*
Deletes a property from an article by SKU and propertyId.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `sku` | `string` | The article SKU. |
| `propertyId` | `number` | The property id. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
`Promise<void>`
## `articleproperty.listByArticleSku`
*Source: `src/store/articleproperty/listByArticleSku.js`*
Lists the properties of 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, propertyId: number, name: string, value: string, sort: number}>>`
## `articleproperty.setByArticleSku`
*Source: `src/store/articleproperty/setByArticleSku.js`*
Replaces all properties for an article by its SKU.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `sku` | `string` | The article SKU. |
| `properties` | `Array<{propertyId: number, value: string, sort?: number}>` | The properties to set. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
`Promise<Array<{id: number, articleId: number, propertyId: number, name: string, value: string, sort: number}>>`