This commit is contained in:
seb
2026-10-27 06:48:30 +00:00
parent e490ad78b5
commit b3368a53f8
10 changed files with 28 additions and 26 deletions

View File

@@ -7,8 +7,9 @@ import * as db from '../../db/posterminal.js';
* tags: [POS]
* summary: POS sync initialization counts
* description: |
* Returns entity change counts since the provided `lastChanged*` unix timestamp cursors
* for the authenticated POS terminal (`Authorization: Bearer <authToken>`).
* Returns entity change counts since the provided `lastChanged*` sync queue ID cursors
* (`posterminalsyncqueue.id` / `posterminalobituary.id`) for the authenticated POS terminal
* (`Authorization: Bearer <authToken>`).
* x-markdown: pos/init.md
* parameters:
* - in: header
@@ -24,7 +25,7 @@ import * as db from '../../db/posterminal.js';
* schema:
* type: integer
* default: 0
* description: Unix timestamp of last synced product update
* description: Sequential ID cursor of last synced product entry (`posterminalsyncqueue.id`)
* example: 0
* - in: query
* name: lastChangedCategory
@@ -32,7 +33,7 @@ import * as db from '../../db/posterminal.js';
* schema:
* type: integer
* default: 0
* description: Unix timestamp of last synced category update
* description: Sequential ID cursor of last synced category entry (`posterminalsyncqueue.id`)
* example: 0
* - in: query
* name: lastChangedCustomer
@@ -40,7 +41,7 @@ import * as db from '../../db/posterminal.js';
* schema:
* type: integer
* default: 0
* description: Unix timestamp of last synced customer update
* description: Sequential ID cursor of last synced customer entry (`posterminalsyncqueue.id`)
* example: 0
* - in: query
* name: lastChangedCustomerGroup
@@ -48,7 +49,7 @@ import * as db from '../../db/posterminal.js';
* schema:
* type: integer
* default: 0
* description: Unix timestamp of last synced customer group update
* description: Sequential ID cursor of last synced customer group entry (`posterminalsyncqueue.id`)
* example: 0
* - in: query
* name: lastChangedCompositeProduct
@@ -56,7 +57,7 @@ import * as db from '../../db/posterminal.js';
* schema:
* type: integer
* default: 0
* description: Unix timestamp of last synced composite product update
* description: Sequential ID cursor of last synced composite product entry (`posterminalsyncqueue.id`)
* example: 0
* - in: query
* name: lastChangedDeletedEntity
@@ -64,7 +65,7 @@ import * as db from '../../db/posterminal.js';
* schema:
* type: integer
* default: 0
* description: Unix timestamp of last synced deleted entity
* description: Sequential ID cursor of last synced deleted entity (`posterminalobituary.id`)
* example: 0
* responses:
* 200: