u
This commit is contained in:
40
API.optionslist.md
Normal file
40
API.optionslist.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# optionslist
|
||||
|
||||
This document is auto-generated from the JSDoc comments in `src/store` by running `npm run api-doc`.
|
||||
|
||||
## `optionslist.getOptionsByArticleSku`
|
||||
|
||||
*Source: `src/store/optionslist/getOptionsByArticleSku.js`*
|
||||
|
||||
Returns the options list for 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, sku: string, name: string|null, count: number, sort: number, mandated: boolean}>>`
|
||||
|
||||
## `optionslist.setOptionsByArticleSku`
|
||||
|
||||
*Source: `src/store/optionslist/setOptionsByArticleSku.js`*
|
||||
|
||||
Sets or clears the options list for an article.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `googleAuthId` | `number` | The id of the Google auth user. |
|
||||
| `sku` | `string` | The master article SKU. |
|
||||
| `[options=[]]` | `Array<{articleId?: number, sku?: string, count?: number, sort?: number, mandated?: boolean}>` | Array of options items. |
|
||||
| `[tx]` | `object` | Optional transaction. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<Array<{id: number, articleId: number, sku: string, name: string|null, count: number, sort: number, mandated: boolean}>>`
|
||||
Reference in New Issue
Block a user