u
This commit is contained in:
@@ -204,19 +204,40 @@ Lists customers for a POS terminal modified after the cursor, excluding 'Liefera
|
||||
|
||||
*Source: `src/store/posterminal/getDeletedEntityCount.js`*
|
||||
|
||||
Counts deleted entities after the given cursor (currently always 0).
|
||||
Counts deleted entities for a POS terminal after the given cursor ID.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `[input]` | `object` | |
|
||||
| `[input.posterminalId]` | `number` | The POS terminal id. |
|
||||
| `[input.cursor=0]` | `number` | Unix timestamp cursor. |
|
||||
| `input` | `object` | |
|
||||
| `input.posterminalId` | `number` | The POS terminal id. |
|
||||
| `[input.cursor=0]` | `number` | The highest synced tombstone ID. |
|
||||
| `[tx]` | `object` | Optional transaction. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<number>` — Always 0.
|
||||
`Promise<number>` — Count of deleted entities.
|
||||
|
||||
## `posterminal.getDeletedEntityList`
|
||||
|
||||
*Source: `src/store/posterminal/getDeletedEntityList.js`*
|
||||
|
||||
Lists deleted entities for a POS terminal after the given cursor ID.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `input` | `object` | |
|
||||
| `input.posterminalId` | `number` | The POS terminal id. |
|
||||
| `[input.cursor=0]` | `number` | The highest synced tombstone ID. |
|
||||
| `[input.limit=200]` | `number` | Max items to return. |
|
||||
| `[tx]` | `object` | Optional transaction. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<Array<{id: number, entityType: string, entityId: number}>>`
|
||||
|
||||
## `posterminal.getMaxOrderIdCount`
|
||||
|
||||
@@ -320,6 +341,26 @@ Completes POS device pairing for a terminal.
|
||||
|
||||
`Promise<{id: number, token: string, clientserial: string|null, pairedAt: string|null}>`
|
||||
|
||||
## `posterminal.recordTombstone`
|
||||
|
||||
*Source: `src/store/posterminal/recordTombstone.js`*
|
||||
|
||||
Records a tombstone for all active paired POS terminals of a company.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `input` | `object` | |
|
||||
| `input.companyId` | `number` | The company id. |
|
||||
| `input.entityType` | `string` | 'category' | 'article' | 'customer' | 'customergroup' |
|
||||
| `input.entityId` | `number` | The deleted entity's id. |
|
||||
| `[tx]` | `object` | Optional transaction/runner. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<void>`
|
||||
|
||||
## `posterminal.setMaxKnownTombstoneId`
|
||||
|
||||
*Source: `src/store/posterminal/setMaxKnownTombstoneId.js`*
|
||||
|
||||
Reference in New Issue
Block a user