u
This commit is contained in:
@@ -47,6 +47,154 @@ Finds a posterminal by its pairingpin.
|
||||
|
||||
`Promise<object|null>` — The posterminal row, or null if not found.
|
||||
|
||||
## `posterminal.findByToken`
|
||||
|
||||
*Source: `src/store/posterminal/findByToken.js`*
|
||||
|
||||
Finds a posterminal by its auth token.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `token` | `string` | The auth token to search for. |
|
||||
| `[tx]` | `object` | Optional transaction to run within. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<object|null>` — The posterminal row, or null if not found.
|
||||
|
||||
## `posterminal.getCategoryCount`
|
||||
|
||||
*Source: `src/store/posterminal/getCategoryCount.js`*
|
||||
|
||||
Counts categories assigned to the POS terminal updated after the given unix timestamp cursor.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `input` | `object` | |
|
||||
| `input.posterminalId` | `number` | The POS terminal id. |
|
||||
| `[input.cursor=0]` | `number` | Unix timestamp cursor of last update. |
|
||||
| `[tx]` | `object` | Optional transaction to run within. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<number>` — The count of changed records.
|
||||
|
||||
## `posterminal.getCompositeProductCount`
|
||||
|
||||
*Source: `src/store/posterminal/getCompositeProductCount.js`*
|
||||
|
||||
Counts composite products (Stücklisten) assigned to the POS terminal updated after the given unix timestamp cursor.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `input` | `object` | |
|
||||
| `input.posterminalId` | `number` | The POS terminal id. |
|
||||
| `[input.cursor=0]` | `number` | Unix timestamp cursor of last update. |
|
||||
| `[tx]` | `object` | Optional transaction to run within. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<number>` — The count of changed records.
|
||||
|
||||
## `posterminal.getCustomerCount`
|
||||
|
||||
*Source: `src/store/posterminal/getCustomerCount.js`*
|
||||
|
||||
Counts customers of the POS terminal company updated after the given unix timestamp cursor.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `input` | `object` | |
|
||||
| `input.posterminalId` | `number` | The POS terminal id. |
|
||||
| `[input.cursor=0]` | `number` | Unix timestamp cursor of last update. |
|
||||
| `[tx]` | `object` | Optional transaction to run within. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<number>` — The count of changed records.
|
||||
|
||||
## `posterminal.getCustomerGroupCount`
|
||||
|
||||
*Source: `src/store/posterminal/getCustomerGroupCount.js`*
|
||||
|
||||
Counts customer groups of the POS terminal company updated after the given unix timestamp cursor.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `input` | `object` | |
|
||||
| `input.posterminalId` | `number` | The POS terminal id. |
|
||||
| `[input.cursor=0]` | `number` | Unix timestamp cursor of last update. |
|
||||
| `[tx]` | `object` | Optional transaction to run within. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<number>` — The count of changed records.
|
||||
|
||||
## `posterminal.getDeletedEntityCount`
|
||||
|
||||
*Source: `src/store/posterminal/getDeletedEntityCount.js`*
|
||||
|
||||
Counts deleted entities after the given cursor (currently always 0).
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `[input]` | `object` | |
|
||||
| `[input.posterminalId]` | `number` | The POS terminal id. |
|
||||
| `[input.cursor=0]` | `number` | Unix timestamp cursor. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<number>` — Always 0.
|
||||
|
||||
## `posterminal.getMaxOrderIdCount`
|
||||
|
||||
*Source: `src/store/posterminal/getMaxOrderIdCount.js`*
|
||||
|
||||
Returns the maximum order manifest id for the POS terminal company.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `input` | `object` | |
|
||||
| `input.posterminalId` | `number` | The POS terminal id. |
|
||||
| `[tx]` | `object` | Optional transaction to run within. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<number>` — Maximum order id or 0.
|
||||
|
||||
## `posterminal.getProductCount`
|
||||
|
||||
*Source: `src/store/posterminal/getProductCount.js`*
|
||||
|
||||
Counts products assigned to the POS terminal updated after the given unix timestamp cursor.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `input` | `object` | |
|
||||
| `input.posterminalId` | `number` | The POS terminal id. |
|
||||
| `[input.cursor=0]` | `number` | Unix timestamp cursor of last update. |
|
||||
| `[tx]` | `object` | Optional transaction to run within. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<number>` — The count of changed records.
|
||||
|
||||
## `posterminal.list`
|
||||
|
||||
*Source: `src/store/posterminal/list.js`*
|
||||
|
||||
Reference in New Issue
Block a user