@kreiseck/kasseneck-api 1.26.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/client/aufrufe.d.ts +3 -3
  3. package/dist/cjs/client/aufrufe.js +3 -0
  4. package/dist/cjs/models/receipt-errors.d.ts +1 -1
  5. package/dist/cjs/models/receipt-errors.js +2 -0
  6. package/dist/cjs/models/receipt-item.d.ts +10 -0
  7. package/dist/cjs/models/receipt-item.js +8 -0
  8. package/dist/cjs/pos/artikel.d.ts +17 -0
  9. package/dist/cjs/pos/artikel.js +7 -0
  10. package/dist/cjs/pos/aufrunden.d.ts +6 -0
  11. package/dist/cjs/pos/aufrunden.js +59 -0
  12. package/dist/cjs/pos/client.js +12 -1
  13. package/dist/cjs/pos/index.d.ts +5 -3
  14. package/dist/cjs/pos/index.js +27 -4
  15. package/dist/cjs/pos/schicht-lesen.d.ts +2 -1
  16. package/dist/cjs/pos/schicht-lesen.js +48 -1
  17. package/dist/cjs/pos/schicht-typen.d.ts +106 -3
  18. package/dist/cjs/pos/schicht-typen.js +14 -4
  19. package/dist/cjs/pos/schicht.d.ts +28 -2
  20. package/dist/cjs/pos/schicht.js +19 -0
  21. package/dist/cjs/pos/settings.d.ts +39 -0
  22. package/dist/cjs/pos/settings.js +65 -4
  23. package/dist/cjs/pos/texte.d.ts +305 -0
  24. package/dist/cjs/pos/texte.js +113 -0
  25. package/dist/cjs/pos/zusaetze.d.ts +70 -0
  26. package/dist/cjs/pos/zusaetze.js +159 -0
  27. package/dist/cjs/receipt/grid.js +16 -3
  28. package/dist/cjs/receipt/layout.js +16 -9
  29. package/dist/cjs/receipt/shift-sheet.js +29 -0
  30. package/dist/cjs/stored/einstellungen.js +31 -4
  31. package/dist/cjs/stored/vokabular.d.ts +1 -1
  32. package/dist/cjs/stored/vokabular.js +35 -5
  33. package/dist/cjs/version.d.ts +1 -1
  34. package/dist/cjs/version.js +1 -1
  35. package/dist/esm/client/aufrufe.d.ts +3 -3
  36. package/dist/esm/client/aufrufe.js +3 -0
  37. package/dist/esm/models/receipt-errors.d.ts +1 -1
  38. package/dist/esm/models/receipt-errors.js +2 -0
  39. package/dist/esm/models/receipt-item.d.ts +10 -0
  40. package/dist/esm/models/receipt-item.js +8 -0
  41. package/dist/esm/pos/artikel.d.ts +17 -0
  42. package/dist/esm/pos/artikel.js +6 -0
  43. package/dist/esm/pos/aufrunden.d.ts +6 -0
  44. package/dist/esm/pos/aufrunden.js +56 -0
  45. package/dist/esm/pos/client.js +13 -2
  46. package/dist/esm/pos/index.d.ts +5 -3
  47. package/dist/esm/pos/index.js +6 -4
  48. package/dist/esm/pos/schicht-lesen.d.ts +2 -1
  49. package/dist/esm/pos/schicht-lesen.js +47 -1
  50. package/dist/esm/pos/schicht-typen.d.ts +106 -3
  51. package/dist/esm/pos/schicht-typen.js +13 -3
  52. package/dist/esm/pos/schicht.d.ts +28 -2
  53. package/dist/esm/pos/schicht.js +19 -1
  54. package/dist/esm/pos/settings.d.ts +39 -0
  55. package/dist/esm/pos/settings.js +60 -3
  56. package/dist/esm/pos/texte.d.ts +305 -0
  57. package/dist/esm/pos/texte.js +113 -0
  58. package/dist/esm/pos/zusaetze.d.ts +70 -0
  59. package/dist/esm/pos/zusaetze.js +148 -0
  60. package/dist/esm/receipt/grid.js +16 -3
  61. package/dist/esm/receipt/layout.js +16 -9
  62. package/dist/esm/receipt/shift-sheet.js +29 -0
  63. package/dist/esm/stored/einstellungen.js +32 -5
  64. package/dist/esm/stored/vokabular.d.ts +1 -1
  65. package/dist/esm/stored/vokabular.js +35 -5
  66. package/dist/esm/version.d.ts +1 -1
  67. package/dist/esm/version.js +1 -1
  68. package/fixtures/add-on-cases.json +103 -0
  69. package/fixtures/duplicate-cases.json +6 -0
  70. package/fixtures/expected/add-ons.grid32.txt +31 -0
  71. package/fixtures/expected/add-ons.grid48.txt +27 -0
  72. package/fixtures/expected/add-ons.lines.json +270 -0
  73. package/fixtures/expected/add-ons.sheet32.json +212 -0
  74. package/fixtures/expected/add-ons.sheet48.json +188 -0
  75. package/fixtures/expected/duplicate.shift-close.hex +28 -27
  76. package/fixtures/expected/shift-close-blind.grid32.txt +1 -0
  77. package/fixtures/expected/shift-close-blind.grid48.txt +1 -0
  78. package/fixtures/expected/shift-close-blind.lines.json +6 -0
  79. package/fixtures/expected/shift-close-put-in.grid32.txt +1 -0
  80. package/fixtures/expected/shift-close-put-in.grid48.txt +1 -0
  81. package/fixtures/expected/shift-close-put-in.lines.json +6 -0
  82. package/fixtures/expected/shift-close-take-out.grid32.txt +1 -0
  83. package/fixtures/expected/shift-close-take-out.grid48.txt +1 -0
  84. package/fixtures/expected/shift-close-take-out.lines.json +6 -0
  85. package/fixtures/expected/shift-close.grid32.txt +1 -0
  86. package/fixtures/expected/shift-close.grid48.txt +1 -0
  87. package/fixtures/expected/shift-close.lines.json +6 -0
  88. package/fixtures/expected/shift-interim.grid32.txt +1 -0
  89. package/fixtures/expected/shift-interim.grid48.txt +1 -0
  90. package/fixtures/expected/shift-interim.lines.json +6 -0
  91. package/fixtures/hobex-hps-codes.json +1 -1
  92. package/fixtures/invoice-api.schema.json +1 -1
  93. package/fixtures/invoice-texts.json +1 -1
  94. package/fixtures/manifest.json +8 -0
  95. package/fixtures/pos-texts.json +352 -1
  96. package/fixtures/receipts/add-ons.json +70 -0
  97. package/fixtures/renames-1.0.json +30 -0
  98. package/fixtures/shift-ablauf-cases.json +182 -0
  99. package/fixtures/shift-receipts.json +15 -15
  100. package/fixtures/surface.json +50 -2
  101. package/fixtures/tip-round-up-cases.json +27 -0
  102. package/fixtures/v3/antworten/belege.json +2 -2
  103. package/fixtures/v3/antworten/belegmail.json +2 -2
  104. package/fixtures/v3/antworten/berichte.json +2 -2
  105. package/fixtures/v3/antworten/kasse-belege.json +2 -2
  106. package/fixtures/v3/antworten/kasse.json +504 -4
  107. package/fixtures/v3/antworten/lager.json +1 -1
  108. package/fixtures/v3/antworten/rechnungen.json +2 -2
  109. package/fixtures/v3/antworten/storno.json +2 -2
  110. package/fixtures/v3/stored/belege.json +2 -2
  111. package/fixtures/v3/stored/kasse.json +520 -12
  112. package/fixtures/v3/stored/rechnungen.json +2 -2
  113. package/fixtures/v3/v3-vokabular.json +160 -19
  114. package/fixtures/v3/zahlbetrag-faelle.json +2 -2
  115. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,33 @@ Was vor 0.7.0 geschah, steht in der Commit-Historie (`git log`); ab hier wird
4
4
  es hier geführt. Ein Eintrag nennt die Änderung **und ihren Grund** —
5
5
  nur der Grund überlebt den nächsten Umbau.
6
6
 
7
+ ## 1.28.0 - 2026-11-06
8
+
9
+ Shift flow of the till: start a shift, count in between, close in steps, tip kinds, column width. Additive; every field below is sent by the server only when it applies, a reader without them behaves as before (all existing goldens unchanged).
10
+
11
+ - **`recordMyShiftCount`** (`/api/v3`, till path, in `POS_CALLS`): an interim count without closing the shift. Request `shiftId`, `countedCents`, optional `denominations`/`comment`, `idempotencyKey` (same key = same answer, no second entry); answer `count { expectedCents, countedCents, differenceCents }`. Listed among the calls with effect (`UNKNOWN_OUTCOME_CALLS`).
12
+ - **`CloseMyShiftOptions.countedBeforePayout`**: the count is the drawer **before** the tip payouts of the same request. The shift then carries `countedBeforePayoutCents`; `countedCents` stays the content after the payout. Reason: the cashier counts first and pays out afterwards; the raw count belongs on the Z receipt.
13
+ - **`DrawerState.lastShift`** (`{ number, closedAt, closedByName }`, `null` = none) for the card „Letzte Schicht“; **`Shift`**: `openingCounted`, `expectedParts` (`opening | cash_sales | cash_tips | cancellations | cash_in | cash_out | interim_difference`, sum = expected), `cashTipsInDrawerCents`, `interimCounts`, `interimDifferenceCents`, `differenceParts` (`interim | closing`, with time), `countedBeforePayoutCents`. Movement type `interim_difference` (set by the server) in `MOVEMENT_TYPES`.
14
+ - **Z receipt** (`shiftReceiptLayout`): new lines only when the data carries them — „Zwischenzählung“ in the cash block (difference of the interim counts ≠ 0), „Gezählt“ with its denominations before „Ist“ (count before payout), „davon Zwischenzählung HH:mm“ / „davon Abschluss“ after „Differenz“, and „Anfang übernommen, nicht gezählt“ when `openingCounted` is `false`. Receipts without these fields print byte for byte as before.
15
+ - **Settings:** `business.tipKinds` (`percent | round_up | total`, a non-empty subset, as stored) and `business.tipStart`, `device.cartWidth` (`narrow | medium | wide`). All three are optional like `tipKeptByDefault` (the server sends them only when stored); effective values through `posTipKinds`, `posTipStart`, `posCartWidth` (all three kinds, start `percent`, `narrow`). Lists `TIP_KINDS`, `TIP_START`, `CART_WIDTH`, `POS_BUSINESS_OPTIONAL_CHOICES`, `POS_DEVICE_OPTIONAL_CHOICES`.
16
+ - **Texts:** 61 new labels and 4 new messages for the flow (start, band, count, close steps, breakdown, tip payout, tip kinds, column width, Z receipt lines). `shift.close_title` and `shift.running_since` keep their wording; the numbered variants are `shift.close_title_numbered` and `shift.running_since_drawer`. `tip.remainder_is_tip` is „Rest ist Trinkgeld“.
17
+ - Z receipts with a start taken over without counting now carry `openingCounted: false` in the contract, so they print the line „Anfang übernommen, nicht gezählt“ (the other Z receipt lines are unchanged). Goldens of the shift receipts (`shift-close*`, `shift-interim`, duplicate `shift-close`, print digests, twin digests of the Z receipt with take-out) are drawn anew for that one line.
18
+ - **Texts, addendum:** 15 more labels for the flow (`shift.state_closing`, `shift.state_interim`, `shift.tips_paid_out`, `shift.difference_none`, `shift.start_new`, `shift.drawer_from_to`, `shift.running_since_by`, `shift.z_receipt_printed`, `shift.count_now`, `shift.interim_entry`, `drawer.open`, `time.today_at`, `tip.summary_percent`, `settings.tip_kinds`, `settings.tip_start`). The band titles carry no full stop, like `shift.state_closed`.
19
+ - **Texts, inspection page:** labels `zero_receipt.done_title` „Nullbeleg erstellt“, `zero_receipt.back` „Zurück zur Prüfung“, `dep.export` „DEP exportieren“, `dep.period_question` „Welcher Zeitraum?“, `common.close` „Schließen“, `shift.band_cash` „Zum Verkaufen auf die Kacheln tippen.“ (band over the greyed tiles while the cash state stands in the side column), message `shift.finish_step_first` „Erst den Schritt rechts abschließen oder abbrechen.“ (header ways locked during an interim count or a close), labels `tip.revenue_title` „Als Umsatz erfasst“, `tip.revenue_badge` „Umsatz“, `tip.unassigned` „Nicht zugeordnet“ and messages `tip.revenue_hint`, `tip.unassigned_hint` (same words as the customer area). The till shows a zero receipt like a sale receipt and prints it right away (no question about the register info any more); the DEP asks for the period only after „DEP exportieren“. `inspection.print_question`, `inspection.print_yes` and `inspection.print_no` stay for older apps.
20
+ - **`ShiftRunningTotals.ownerTips`** (`ShiftOwnerTip { registerUserId, name, cents }`) and **`unassignedTipCents`**: tips to register users with taxable tips (owner) and tips without a recipient, display only — they count as revenue, never as a claim, never in „offen“, the expected amount is unchanged. Read as sent: the server sends them only when there is something, absent means none.
21
+ - Contract `v3` re-fetched from the backend (`recordMyShiftCount`, catalogs `SCHICHT_SOLL_TEIL`, `KASSE_BETRIEB_WERTE.tipKinds[]`/`tipStart`, `KASSE_GERAET_WERTE.cartWidth`).
22
+
23
+ ## 1.27.0 - 2026-11-05
24
+
25
+ Add-on tiles: tapping a main service opens a sheet with its add-ons (nail art, repair per nail, hand massage …); each add-on becomes its own receipt line pointing at its main line. Additive; articles, groups and receipts without the new fields read, print and send exactly as before (all existing goldens unchanged).
26
+
27
+ - **`ArticleGroup.addOns`** and **`PosArticle.addOns`** (`string[] | null`, stored `zusaetze`): the group's list in sheet order; on the article `null` = as the group, `[]` = none, otherwise its own list. The reader always sets both. Reason: a nail studio sells many add-ons that otherwise sit in their own group and have to be searched for at the till.
28
+ - **`ReceiptItem.addOnOf`** (stored `zusatzZu`): index of the main line in the same receipt, read and written only as a whole number ≥ 0. The server checks it (`invalid_add_on_reference`, now in `RECEIPT_ERROR_CODES`); it never touches totals, counter or signature.
29
+ - **Helpers** `addOnsFor` (effective list: the article itself, unknown, inactive and non-selectable articles and duplicates drop out silently), `isSelectableAddOn` (reason `inactive|own_list|asks_price|reference|asks_quantity|no_price|service_voucher`: an add-on is booked without prompts and opens no sheet of its own), `addOnReferencesValid`, `addOnsOfItem` (cancellation pre-selects a main line's add-ons), `addOnRemap`, `addOnDisplayOrder`, `orderAddOnLines` (cart lines with the parent's line id -> receipt order and index), `ADD_ONS_MAX` (30). Contract cases `fixtures/add-on-cases.json`, the same as the backend (`zusatz-faelle.json`) and the Dart package.
30
+ - **Receipt layout:** add-ons stand directly under their main line (stable, also when the receipt lists them later), indented with „+ “; a wrapped name continues under the quantity. The grid applies the same hanging indent to a left column that starts with spaces (as it already did for text lines). New golden `add-ons`.
31
+ - **Texts:** labels `addons.title` „Zusätze zu {name}“, `addons.none` „Ohne Zusatz“, `addons.done` „Fertig“, `addons.open` „Zusätze“.
32
+ - Contract `v3` re-fetched from the backend (`addOns` on articles and groups, `addOnOf` on receipt items).
33
+
7
34
  ## 1.26.0 - 2026-11-04
8
35
 
9
36
  Tile with amount and reference: a tile can ask, when tapped, for the amount and/or a reference (fee note, order number). Additive; articles without the new fields read as before.
@@ -13,7 +13,7 @@
13
13
  * umhuellt, muss ihn weiterhin absetzen koennen.
14
14
  */
15
15
  import type { FileOrData, FileOrDataCallOptions, PdfOrData, TransportBodyFields, TransportCallOptions } from './transport.js';
16
- export declare const ALL_CALLS: readonly ["activateCashregister", "cancelInvoice", "cancelReceipt", "createCreditNote", "createCustomer", "createCustomerCashregister", "createDepExport", "createDepHandoverLink", "createPartnerCustomer", "checkPartnerCustomerEmail", "createPartnerWebhook", "createPaymentLinkStripe", "createPrintJob", "createReceipt", "deletePartnerWebhook", "downloadDailyReport", "downloadReport", "endRegisterSession", "financeWebService", "generateFullReceiptId", "getCashregisterReport", "getCustomer", "getCustomerCredentials", "getCustomerSignatureStatus", "getDepExport", "getDepExportFile", "getFirstReceiptDate", "getInvoice", "getInvoicePdf", "getInvoiceSetupStatus", "getInvoiceXml", "getKasseSettings", "getPartnerCustomer", "getPartnerInfo", "getPrintJob", "getReceipt", "getReportV2", "hobexPayApi", "hobexRefundApi", "issueInvoice", "listCustomerCashregisters", "listInvoices", "listBrands", "listMyArticleGroups", "listMyArticles", "listMyCashregisters", "listMyPrinters", "listMyReceipts", "listMyStock", "listMyStockLocations", "listMyTipRecipients", "listPartnerCustomers", "listPartnerWebhookDeliveries", "listPartnerWebhooks", "listReceipts", "listRegisterUsersForDevice", "listRegisterSessionsForDevice", "pairRegisterDevice", "recordInvoicePayment", "registerPinLogin", "registerUserLogin", "renewRegisterSession", "reportCustomerContract", "requestCustomerSignature", "revokeDepHandoverLink", "searchCustomers", "sendPartnerCustomerFonLink", "sendPartnerWebhookTest", "sendReceiptEmail", "setMyCashregisterStockLocation", "setMyKasseLogo", "setMyKasseSettings", "setMyRegisterDeviceSettings", "stripeCaptureIntent", "unpairRegisterDevice", "rotatePartnerWebhookSecret", "updateCustomer", "updatePartnerWebhook", "getArticle", "listArticles", "lookupArticleByCode", "listLocations", "getStock", "listStock", "listStockMovements", "createWebhook", "updateWebhook", "deleteWebhook", "listWebhooks", "sendWebhookTest", "rotateWebhookSecret", "listWebhookDeliveries", "createArticle", "updateArticle", "deactivateArticle", "receiveGoods", "transferStock", "recordStockLoss", "changeStockCondition", "reverseStockMovement", "createReservation", "extendReservation", "releaseReservation", "getReservation", "listReservations", "createVariantGroup", "updateVariantGroup", "getVariantGroup", "listVariantGroups", "addVariant", "createStocktake", "listStocktakes", "getStocktake", "listStocktakeItems", "recordStocktakeCount", "voidStocktakeCount", "listStocktakeCounts", "reviewStocktake", "recountStocktake", "closeStocktake", "cancelStocktake", "getStocktakePdf", "orderSignatureCard", "getSignatureCardOrder", "listMyStocktakes", "listMyStocktakeItems", "listMyStocktakeCounts", "recordMyStocktakeCount", "voidMyStocktakeCount", "checkVoucher", "reprintVoucherLabel", "getMyDrawerState", "openMyShift", "recordMyCashMovement", "logMyDrawerOpenings", "getMyShiftReport", "closeMyShift", "logReceiptOutputs", "getRegisterInspectionInfo", "reportConnectState"];
16
+ export declare const ALL_CALLS: readonly ["activateCashregister", "cancelInvoice", "cancelReceipt", "createCreditNote", "createCustomer", "createCustomerCashregister", "createDepExport", "createDepHandoverLink", "createPartnerCustomer", "checkPartnerCustomerEmail", "createPartnerWebhook", "createPaymentLinkStripe", "createPrintJob", "createReceipt", "deletePartnerWebhook", "downloadDailyReport", "downloadReport", "endRegisterSession", "financeWebService", "generateFullReceiptId", "getCashregisterReport", "getCustomer", "getCustomerCredentials", "getCustomerSignatureStatus", "getDepExport", "getDepExportFile", "getFirstReceiptDate", "getInvoice", "getInvoicePdf", "getInvoiceSetupStatus", "getInvoiceXml", "getKasseSettings", "getPartnerCustomer", "getPartnerInfo", "getPrintJob", "getReceipt", "getReportV2", "hobexPayApi", "hobexRefundApi", "issueInvoice", "listCustomerCashregisters", "listInvoices", "listBrands", "listMyArticleGroups", "listMyArticles", "listMyCashregisters", "listMyPrinters", "listMyReceipts", "listMyStock", "listMyStockLocations", "listMyTipRecipients", "listPartnerCustomers", "listPartnerWebhookDeliveries", "listPartnerWebhooks", "listReceipts", "listRegisterUsersForDevice", "listRegisterSessionsForDevice", "pairRegisterDevice", "recordInvoicePayment", "registerPinLogin", "registerUserLogin", "renewRegisterSession", "reportCustomerContract", "requestCustomerSignature", "revokeDepHandoverLink", "searchCustomers", "sendPartnerCustomerFonLink", "sendPartnerWebhookTest", "sendReceiptEmail", "setMyCashregisterStockLocation", "setMyKasseLogo", "setMyKasseSettings", "setMyRegisterDeviceSettings", "stripeCaptureIntent", "unpairRegisterDevice", "rotatePartnerWebhookSecret", "updateCustomer", "updatePartnerWebhook", "getArticle", "listArticles", "lookupArticleByCode", "listLocations", "getStock", "listStock", "listStockMovements", "createWebhook", "updateWebhook", "deleteWebhook", "listWebhooks", "sendWebhookTest", "rotateWebhookSecret", "listWebhookDeliveries", "createArticle", "updateArticle", "deactivateArticle", "receiveGoods", "transferStock", "recordStockLoss", "changeStockCondition", "reverseStockMovement", "createReservation", "extendReservation", "releaseReservation", "getReservation", "listReservations", "createVariantGroup", "updateVariantGroup", "getVariantGroup", "listVariantGroups", "addVariant", "createStocktake", "listStocktakes", "getStocktake", "listStocktakeItems", "recordStocktakeCount", "voidStocktakeCount", "listStocktakeCounts", "reviewStocktake", "recountStocktake", "closeStocktake", "cancelStocktake", "getStocktakePdf", "orderSignatureCard", "getSignatureCardOrder", "listMyStocktakes", "listMyStocktakeItems", "listMyStocktakeCounts", "recordMyStocktakeCount", "voidMyStocktakeCount", "checkVoucher", "reprintVoucherLabel", "getMyDrawerState", "openMyShift", "recordMyCashMovement", "logMyDrawerOpenings", "getMyShiftReport", "closeMyShift", "recordMyShiftCount", "logReceiptOutputs", "getRegisterInspectionInfo", "reportConnectState"];
17
17
  export type ApiCall = typeof ALL_CALLS[number];
18
18
  /**
19
19
  * Die oeffentlichen Endpunkte unter `/v3` (`https://api.kasseneck.at/v3/<name>`),
@@ -29,7 +29,7 @@ export declare const PUBLIC_CALLS: readonly ["createReceipt", "getReceipt", "can
29
29
  * die fuenf DEP-Aufrufe); die Kasse ruft sie trotzdem ueber diesen Weg (ein Dialekt
30
30
  * je Client, Nachtrag §5.2).
31
31
  */
32
- export declare const POS_CALLS: readonly ["pairRegisterDevice", "listRegisterUsersForDevice", "listRegisterSessionsForDevice", "registerUserLogin", "registerPinLogin", "renewRegisterSession", "endRegisterSession", "unpairRegisterDevice", "listMyCashregisters", "listMyReceipts", "getReceipt", "createReceipt", "generateFullReceiptId", "cancelReceipt", "sendReceiptEmail", "listMyArticleGroups", "listMyArticles", "getKasseSettings", "setMyKasseSettings", "setMyKasseLogo", "setMyRegisterDeviceSettings", "listMyPrinters", "createPrintJob", "getPrintJob", "listMyTipRecipients", "listMyStockLocations", "listMyStock", "setMyCashregisterStockLocation", "listMyStocktakes", "listMyStocktakeItems", "listMyStocktakeCounts", "recordMyStocktakeCount", "voidMyStocktakeCount", "checkVoucher", "reprintVoucherLabel", "getMyDrawerState", "openMyShift", "recordMyCashMovement", "logMyDrawerOpenings", "getMyShiftReport", "closeMyShift", "logReceiptOutputs", "createDepExport", "getDepExport", "getDepExportFile", "createDepHandoverLink", "revokeDepHandoverLink", "getRegisterInspectionInfo", "reportConnectState"];
32
+ export declare const POS_CALLS: readonly ["pairRegisterDevice", "listRegisterUsersForDevice", "listRegisterSessionsForDevice", "registerUserLogin", "registerPinLogin", "renewRegisterSession", "endRegisterSession", "unpairRegisterDevice", "listMyCashregisters", "listMyReceipts", "getReceipt", "createReceipt", "generateFullReceiptId", "cancelReceipt", "sendReceiptEmail", "listMyArticleGroups", "listMyArticles", "getKasseSettings", "setMyKasseSettings", "setMyKasseLogo", "setMyRegisterDeviceSettings", "listMyPrinters", "createPrintJob", "getPrintJob", "listMyTipRecipients", "listMyStockLocations", "listMyStock", "setMyCashregisterStockLocation", "listMyStocktakes", "listMyStocktakeItems", "listMyStocktakeCounts", "recordMyStocktakeCount", "voidMyStocktakeCount", "checkVoucher", "reprintVoucherLabel", "getMyDrawerState", "openMyShift", "recordMyCashMovement", "logMyDrawerOpenings", "getMyShiftReport", "closeMyShift", "recordMyShiftCount", "logReceiptOutputs", "createDepExport", "getDepExport", "getDepExportFile", "createDepHandoverLink", "revokeDepHandoverLink", "getRegisterInspectionInfo", "reportConnectState"];
33
33
  export type PublicCall = typeof PUBLIC_CALLS[number];
34
34
  export type PosCall = typeof POS_CALLS[number];
35
35
  /**
@@ -50,7 +50,7 @@ export type PosCall = typeof POS_CALLS[number];
50
50
  * [ALL_CALLS], [PUBLIC_CALLS] und [POS_CALLS] steht entweder hier oder in
51
51
  * [CALLS_WITHOUT_EFFECT] (Waechter `test/ausgang-einordnung.test.ts`).
52
52
  */
53
- export declare const UNKNOWN_OUTCOME_CALLS: readonly ["activateCashregister", "addVariant", "cancelInvoice", "cancelReceipt", "cancelStocktake", "changeStockCondition", "closeMyShift", "closeStocktake", "createArticle", "createCreditNote", "createCustomer", "createCustomerCashregister", "createInvoiceItem", "createPartnerCustomer", "createPartnerWebhook", "createPrintJob", "createReceipt", "createReservation", "createStocktake", "createVariantGroup", "createWebhook", "deactivateArticle", "deletePartnerWebhook", "deleteWebhook", "extendReservation", "financeWebService", "hobexPayApi", "hobexRefundApi", "issueInvoice", "logMyDrawerOpenings", "logReceiptOutputs", "openMyShift", "orderSignatureCard", "pairRegisterDevice", "receiveGoods", "recordInvoicePayment", "recordMyCashMovement", "recordMyStocktakeCount", "recordStockLoss", "recordStocktakeCount", "recountStocktake", "releaseReservation", "reportConnectState", "reportCustomerContract", "requestCustomerSignature", "reverseStockMovement", "reviewStocktake", "revokeCustomerMandate", "rotatePartnerWebhookSecret", "rotateWebhookSecret", "sendPartnerCustomerFonLink", "sendPartnerWebhookTest", "sendReceiptEmail", "sendWebhookTest", "setCustomerMandate", "setMyCashregisterStockLocation", "setMyKasseLogo", "setMyKasseSettings", "setMyRegisterDeviceSettings", "stripeCaptureIntent", "transferStock", "unpairRegisterDevice", "updateArticle", "updateCustomer", "updateInvoiceItem", "updatePartnerWebhook", "updateVariantGroup", "updateWebhook", "voidMyStocktakeCount", "voidStocktakeCount", "withdrawInvoiceItem"];
53
+ export declare const UNKNOWN_OUTCOME_CALLS: readonly ["activateCashregister", "addVariant", "cancelInvoice", "cancelReceipt", "cancelStocktake", "changeStockCondition", "closeMyShift", "closeStocktake", "createArticle", "createCreditNote", "createCustomer", "createCustomerCashregister", "createInvoiceItem", "createPartnerCustomer", "createPartnerWebhook", "createPrintJob", "createReceipt", "createReservation", "createStocktake", "createVariantGroup", "createWebhook", "deactivateArticle", "deletePartnerWebhook", "deleteWebhook", "extendReservation", "financeWebService", "hobexPayApi", "hobexRefundApi", "issueInvoice", "logMyDrawerOpenings", "logReceiptOutputs", "openMyShift", "orderSignatureCard", "pairRegisterDevice", "receiveGoods", "recordInvoicePayment", "recordMyCashMovement", "recordMyShiftCount", "recordMyStocktakeCount", "recordStockLoss", "recordStocktakeCount", "recountStocktake", "releaseReservation", "reportConnectState", "reportCustomerContract", "requestCustomerSignature", "reverseStockMovement", "reviewStocktake", "revokeCustomerMandate", "rotatePartnerWebhookSecret", "rotateWebhookSecret", "sendPartnerCustomerFonLink", "sendPartnerWebhookTest", "sendReceiptEmail", "sendWebhookTest", "setCustomerMandate", "setMyCashregisterStockLocation", "setMyKasseLogo", "setMyKasseSettings", "setMyRegisterDeviceSettings", "stripeCaptureIntent", "transferStock", "unpairRegisterDevice", "updateArticle", "updateCustomer", "updateInvoiceItem", "updatePartnerWebhook", "updateVariantGroup", "updateWebhook", "voidMyStocktakeCount", "voidStocktakeCount", "withdrawInvoiceItem"];
54
54
  /** Warum ein Aufruf keine Wirkung hat, die ein Zeitlimit offen lassen koennte. */
55
55
  export type CallWithoutEffectReason = 'read' | 'repeatable';
56
56
  /**
@@ -150,6 +150,7 @@ exports.ALL_CALLS = [
150
150
  'logMyDrawerOpenings',
151
151
  'getMyShiftReport',
152
152
  'closeMyShift',
153
+ 'recordMyShiftCount',
153
154
  // Ausgaben eines Belegs (Drucke, Teilen) melden: nur ueber den Kassenweg.
154
155
  'logReceiptOutputs',
155
156
  // Kasseninfo fuer die Pruefung (Kassennachschau, Stufe 2b, ./pos): nur ueber den Kassenweg.
@@ -340,6 +341,7 @@ exports.POS_CALLS = [
340
341
  'logMyDrawerOpenings',
341
342
  'getMyShiftReport',
342
343
  'closeMyShift',
344
+ 'recordMyShiftCount',
343
345
  // Ausgaben eines Belegs melden: nur ueber den Kassenweg.
344
346
  'logReceiptOutputs',
345
347
  // DEP fuer die Kassennachschau (Stufe 2): zugleich oeffentlich; an der Kasse nur fuer den Chef (manager_only).
@@ -409,6 +411,7 @@ exports.UNKNOWN_OUTCOME_CALLS = [
409
411
  'receiveGoods',
410
412
  'recordInvoicePayment',
411
413
  'recordMyCashMovement',
414
+ 'recordMyShiftCount',
412
415
  'recordMyStocktakeCount',
413
416
  'recordStockLoss',
414
417
  'recordStocktakeCount',
@@ -18,7 +18,7 @@ import { KasseneckApiError } from '../client/errors.js';
18
18
  * ...) stehen in [PAYMENT_ERROR_CODES]. Ein Code ausserhalb bleibt ueber
19
19
  * `KasseneckApiError.code` lesbar.
20
20
  */
21
- export declare const RECEIPT_ERROR_CODES: readonly ["cancellation_reference_unavailable", "cashregister_closed", "cashregister_decommissioned", "final_receipt_expired", "final_receipt_not_allowed", "idempotency_conflict", "module_inactive", "not_permitted", "receipt_limit_exceeded", "receipt_not_found", "receipt_outcome_unknown", "receipt_type_invalid", "server_error", "signature_incomplete", "signature_missing", "signing_failed", "small_business_vat_not_allowed", "tip_invalid", "tip_not_allowed", "tip_recipient_unknown", "validation", "voucher_balance_changed", "account_not_found", "action_confirmation_required", "admin_required", "api_not_approved", "app_check_invalid", "app_check_missing", "cashregister_not_assigned", "cashregister_not_found", "cashregister_token_invalid", "cashregister_token_missing", "dialect_mismatch", "internal_translation_error", "live_not_enabled", "method_not_allowed", "mfa_required", "not_found", "password_change_required", "register_user_no_business", "register_user_not_allowed", "register_user_not_found", "response_translation_failed", "second_factor_required", "session_expired", "session_other_cashregister", "unauthorized", "user_disabled", "user_verification_failed", "route_missing", "response_unreadable"];
21
+ export declare const RECEIPT_ERROR_CODES: readonly ["cancellation_reference_unavailable", "cashregister_closed", "cashregister_decommissioned", "final_receipt_expired", "final_receipt_not_allowed", "idempotency_conflict", "invalid_add_on_reference", "module_inactive", "not_permitted", "receipt_limit_exceeded", "receipt_not_found", "receipt_outcome_unknown", "receipt_type_invalid", "server_error", "signature_incomplete", "signature_missing", "signing_failed", "small_business_vat_not_allowed", "tip_invalid", "tip_not_allowed", "tip_recipient_unknown", "validation", "voucher_balance_changed", "account_not_found", "action_confirmation_required", "admin_required", "api_not_approved", "app_check_invalid", "app_check_missing", "cashregister_not_assigned", "cashregister_not_found", "cashregister_token_invalid", "cashregister_token_missing", "dialect_mismatch", "internal_translation_error", "live_not_enabled", "method_not_allowed", "mfa_required", "not_found", "password_change_required", "register_user_no_business", "register_user_not_allowed", "register_user_not_found", "response_translation_failed", "second_factor_required", "session_expired", "session_other_cashregister", "unauthorized", "user_disabled", "user_verification_failed", "route_missing", "response_unreadable"];
22
22
  export type ReceiptErrorCode = (typeof RECEIPT_ERROR_CODES)[number];
23
23
  export declare function isReceiptErrorCode(value: unknown): value is ReceiptErrorCode;
24
24
  /** Der Code eines geworfenen Fehlers, wenn er in [RECEIPT_ERROR_CODES] steht; sonst `undefined`. */
@@ -34,6 +34,8 @@ exports.RECEIPT_ERROR_CODES = Object.freeze([
34
34
  // Seit 1.15.0 (Vertrag): derselbe idempotencyKey mit anderem Inhalt, nichts geschrieben. Seit 1.22.0 sendet
35
35
  // dieses Paket den Schluessel, wenn der Aufrufer ihn angibt (`idempotencyKey` an sellReceipt/createReceipt).
36
36
  'idempotency_conflict',
37
+ // Seit 1.27.0 (Zusatz-Kacheln): addOnOf zeigt nicht nach vorne auf eine Warenposition, die selbst kein Zusatz ist.
38
+ 'invalid_add_on_reference',
37
39
  'module_inactive',
38
40
  'not_permitted',
39
41
  'receipt_limit_exceeded',
@@ -61,6 +61,12 @@ export interface ReceiptItem {
61
61
  originalIndex?: number;
62
62
  /** Nur an Storno-Zeilen mit `articleId`: wohin die Ware ging (Lager-Kern Stufe 2). */
63
63
  returnDisposition?: ReturnDisposition;
64
+ /**
65
+ * Zusatz-Kacheln (1.27.0): Index der Hauptposition im selben Beleg; nur an
66
+ * Zusatzpositionen. Der Server prueft: ganze Zahl, zeigt nach vorne auf eine
67
+ * Warenposition, die selbst kein Zusatz ist (`invalid_add_on_reference`).
68
+ */
69
+ addOnOf?: number;
64
70
  }
65
71
  /** Empfaenger einer Trinkgeld-Position (Kassen-Benutzer, Snapshot des Namens). */
66
72
  export interface TipRecipient {
@@ -99,6 +105,8 @@ export interface ReceiptItemPayload {
99
105
  keptByEmployee?: boolean;
100
106
  /** Artikel-Verweis, siehe [ReceiptItem.articleId]. */
101
107
  articleId?: string;
108
+ /** Hauptposition eines Zusatzes, siehe [ReceiptItem.addOnOf]. */
109
+ addOnOf?: number;
102
110
  }
103
111
  /**
104
112
  * Nutzlast-Form, die dieses Paket **liest** — v2 und v1 nebeneinander, alles
@@ -144,6 +152,8 @@ export interface ReceiptItemPayloadRead {
144
152
  originalIndex?: number | null;
145
153
  /** Storno-Zeile mit `articleId`: Rueckgabe-Wahl, siehe [ReceiptItem.returnDisposition]. */
146
154
  returnDisposition?: string | null;
155
+ /** Hauptposition eines Zusatzes, siehe [ReceiptItem.addOnOf]. */
156
+ addOnOf?: number | null;
147
157
  }
148
158
  export declare function toReceiptItemPayload(item: ReceiptItem): ReceiptItemPayload;
149
159
  /**
@@ -68,6 +68,9 @@ function toReceiptItemPayload(item) {
68
68
  // Artikel-Verweis reist mit (Erloesgruppen im Bericht); leere Werte nicht.
69
69
  if (item.articleId != null && item.articleId !== '')
70
70
  nutzlast.articleId = item.articleId;
71
+ // Zusatz-Kacheln: Verweis auf die Hauptposition nur, wenn gesetzt.
72
+ if (istIndex(item.addOnOf))
73
+ nutzlast.addOnOf = item.addOnOf;
71
74
  return nutzlast;
72
75
  }
73
76
  /**
@@ -118,8 +121,13 @@ function fromReceiptItemPayload(payload) {
118
121
  // unbekannter Wert faellt weg wie am Rand des Servers).
119
122
  ...(Number.isInteger(payload.originalIndex) && payload.originalIndex >= 0 ? { originalIndex: payload.originalIndex } : {}),
120
123
  ...((0, cancellation_js_1.isReturnDisposition)(payload.returnDisposition) ? { returnDisposition: payload.returnDisposition } : {}),
124
+ // Zusatz-Kacheln: Verweis auf die Hauptposition (nur eine ganze Zahl >= 0).
125
+ ...(istIndex(payload.addOnOf) ? { addOnOf: payload.addOnOf } : {}),
121
126
  };
122
127
  }
128
+ function istIndex(wert) {
129
+ return Number.isInteger(wert) && wert >= 0;
130
+ }
123
131
  /** Erster brauchbarer Zahlenwert der Reihe; `null`/`undefined`/NaN zaehlen nicht. */
124
132
  function ersteZahl(...werte) {
125
133
  for (const wert of werte) {
@@ -14,6 +14,13 @@ export interface ArticleGroup {
14
14
  symbol: string | null;
15
15
  sort: number;
16
16
  vatRate: number | null;
17
+ /**
18
+ * Zusaetze der Gruppe (Zusatz-Kacheln, 1.27.0): Artikel-Kennungen in der
19
+ * Reihenfolge des Fensters; null = keine. Optional, damit bestehende Literale
20
+ * weiter uebersetzen; der Leser setzt das Feld immer. Wirksam wird die Liste
21
+ * erst ueber [addOnsFor].
22
+ */
23
+ addOns?: string[] | null;
17
24
  }
18
25
  export interface ArticleGroupPayload {
19
26
  id?: string | null;
@@ -22,7 +29,10 @@ export interface ArticleGroupPayload {
22
29
  symbol?: string | null;
23
30
  sort?: number | null;
24
31
  vatRate?: number | null;
32
+ addOns?: unknown;
25
33
  }
34
+ /** Zusatzliste am Draht: nur eine Liste von Texten zaehlt, sonst null. Paketintern. */
35
+ export declare function addOnListe(wert: unknown): string[] | null;
26
36
  export declare function fromArticleGroupPayload(p: ArticleGroupPayload): ArticleGroup;
27
37
  /**
28
38
  * Mengenregel eines Artikels (Draht `quantityRule`): `piece` = ganze Stueck
@@ -105,6 +115,12 @@ export interface PosArticle {
105
115
  askPrice?: boolean;
106
116
  /** Kasse fragt beim Antippen eine Referenz ab; null = aus. Der Leser setzt es immer. */
107
117
  reference?: PosReference | null;
118
+ /**
119
+ * Eigene Zusatzliste (Zusatz-Kacheln, 1.27.0): null = wie die Gruppe, [] =
120
+ * keine, sonst die Liste in der Reihenfolge des Fensters. Der Leser setzt es
121
+ * immer; wirksam wird es ueber [addOnsFor].
122
+ */
123
+ addOns?: string[] | null;
108
124
  }
109
125
  /**
110
126
  * Kann die Kachel gebucht werden? Mit festem Preis immer, ohne Preis nur mit
@@ -144,6 +160,7 @@ export interface PosArticlePayload {
144
160
  serviceVoucher?: boolean | null;
145
161
  askPrice?: boolean | null;
146
162
  reference?: unknown;
163
+ addOns?: unknown;
147
164
  }
148
165
  export declare function fromPosArticlePayload(p: PosArticlePayload): PosArticle;
149
166
  /**
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.QUANTITY_RULES = void 0;
4
+ exports.addOnListe = addOnListe;
4
5
  exports.fromArticleGroupPayload = fromArticleGroupPayload;
5
6
  exports.quantityRuleForUnit = quantityRuleForUnit;
6
7
  exports.quantityDefaults = quantityDefaults;
@@ -13,6 +14,10 @@ exports.listMyArticleGroups = listMyArticleGroups;
13
14
  exports.listMyArticles = listMyArticles;
14
15
  const errors_js_1 = require("../client/errors.js");
15
16
  const kachel_referenz_js_1 = require("./kachel-referenz.js");
17
+ /** Zusatzliste am Draht: nur eine Liste von Texten zaehlt, sonst null. Paketintern. */
18
+ function addOnListe(wert) {
19
+ return Array.isArray(wert) ? wert.filter((s) => typeof s === 'string' && s !== '') : null;
20
+ }
16
21
  function fromArticleGroupPayload(p) {
17
22
  return {
18
23
  id: p.id ?? '',
@@ -21,6 +26,7 @@ function fromArticleGroupPayload(p) {
21
26
  symbol: p.symbol ?? null,
22
27
  sort: typeof p.sort === 'number' ? p.sort : 0,
23
28
  vatRate: typeof p.vatRate === 'number' ? p.vatRate : null,
29
+ addOns: addOnListe(p.addOns),
24
30
  };
25
31
  }
26
32
  /**
@@ -99,6 +105,7 @@ function fromPosArticlePayload(p) {
99
105
  serviceVoucher: p.serviceVoucher === true,
100
106
  askPrice: p.askPrice === true,
101
107
  reference: (0, kachel_referenz_js_1.fromReferencePayload)(p.reference),
108
+ addOns: addOnListe(p.addOns),
102
109
  };
103
110
  }
104
111
  /**
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Aufrunden-Vorschlaege fuer Trinkgeld: genau drei aufsteigende Gesamtbetraege
3
+ * in Cent ueber dem Bezugsbetrag. Nur Ganzzahlen; die Pruefaelle stehen in
4
+ * `fixtures/tip-round-up-cases.json` (gleich im Dart-Zwilling).
5
+ */
6
+ export declare function roundUpSuggestions(amountCents: number): number[];
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * Aufrunden-Vorschlaege fuer Trinkgeld: genau drei aufsteigende Gesamtbetraege
4
+ * in Cent ueber dem Bezugsbetrag. Nur Ganzzahlen; die Pruefaelle stehen in
5
+ * `fixtures/tip-round-up-cases.json` (gleich im Dart-Zwilling).
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.roundUpSuggestions = roundUpSuggestions;
9
+ function steps(t) {
10
+ if (t < 1500)
11
+ return [50, 100];
12
+ if (t < 5000)
13
+ return [100, 500];
14
+ if (t < 20000)
15
+ return [500, 1000];
16
+ return [1000, 5000];
17
+ }
18
+ const ceilDiv = (a, b) => Math.floor((a + b - 1) / b);
19
+ function roundUpSuggestions(amountCents) {
20
+ if (!Number.isInteger(amountCents) || amountCents <= 0)
21
+ return [];
22
+ const t = amountCents;
23
+ const [small, large] = steps(t);
24
+ const lo = Math.max(ceilDiv(t * 102, 100), t + 20);
25
+ const hi = Math.floor((t * (t < 1000 ? 125 : 120)) / 100);
26
+ const set = new Set();
27
+ for (const s of [small, large])
28
+ for (let m = ceilDiv(lo, s) * s; m <= hi; m += s)
29
+ set.add(m);
30
+ const candidates = [...set].sort((a, b) => a - b);
31
+ const chosen = new Set();
32
+ if (candidates.length > 0) {
33
+ const firstRound = candidates.find((k) => k % large === 0);
34
+ chosen.add(firstRound !== undefined && (firstRound - t) * 100 <= t * 10 ? firstRound : candidates[0]);
35
+ }
36
+ for (const target of [110, 115]) {
37
+ const free = candidates.filter((k) => !chosen.has(k));
38
+ if (free.length === 0)
39
+ break;
40
+ const dist = (k) => Math.abs(k * 100 - t * target);
41
+ const round = free.find((k) => k % large === 0 && dist(k) <= t * 3);
42
+ if (round !== undefined) {
43
+ chosen.add(round);
44
+ continue;
45
+ }
46
+ let best = free[0];
47
+ for (const k of free)
48
+ if (dist(k) < dist(best))
49
+ best = k;
50
+ chosen.add(best);
51
+ }
52
+ let next = chosen.size > 0 ? Math.max(...chosen) : ceilDiv(lo, small) * small - small;
53
+ while (chosen.size < 3) {
54
+ next = (Math.floor(next / small) + 1) * small;
55
+ if (next >= lo)
56
+ chosen.add(next);
57
+ }
58
+ return [...chosen].sort((a, b) => a - b);
59
+ }
@@ -151,10 +151,21 @@ function pruefeTeil(name, teil, block, standard, werte) {
151
151
  throw new errors_js_1.KasseneckValidationError(name, `${teil}.${schluessel}: true oder false erwartet`, 'request');
152
152
  continue;
153
153
  }
154
- if (!Object.prototype.hasOwnProperty.call(standard, schluessel)) {
154
+ const wahl = teil === 'business' ? settings_js_1.POS_BUSINESS_OPTIONAL_CHOICES : settings_js_1.POS_DEVICE_OPTIONAL_CHOICES;
155
+ if (!Object.prototype.hasOwnProperty.call(standard, schluessel) && !wahl.includes(schluessel)) {
155
156
  throw new errors_js_1.KasseneckValidationError(name, `${teil}.${schluessel}: unbekanntes Feld`, 'request');
156
157
  }
157
158
  const erlaubt = Object.prototype.hasOwnProperty.call(werte, schluessel) ? werte[schluessel] : undefined;
159
+ if (schluessel === 'tipKinds' && !Array.isArray(wert)) {
160
+ throw new errors_js_1.KasseneckValidationError(name, `${teil}.${schluessel}: eine Liste von Trinkgeld-Arten erwartet`, 'request');
161
+ }
162
+ // Eine Liste (tipKinds): nichtleer, jeder Eintrag aus der Wertemenge, ohne Dubletten.
163
+ if (erlaubt && Array.isArray(wert)) {
164
+ if (wert.length === 0 || new Set(wert).size !== wert.length || !wert.every((e) => erlaubt.includes(e))) {
165
+ throw new errors_js_1.KasseneckValidationError(name, `${teil}.${schluessel}: ungueltiger Wert (erlaubt: ${erlaubt.join(', ')}, jede Art hoechstens einmal)`, 'request');
166
+ }
167
+ continue;
168
+ }
158
169
  if (erlaubt && !erlaubt.includes(wert)) {
159
170
  // Kein Altwert: dann ein Wert, den der Server kennt und dieses Paket
160
171
  // nicht. Er kam beim Lesen herein; wer den ganzen Block zurueckschickt,
@@ -6,9 +6,10 @@
6
6
  * die Backend-Functions (die Rewrites-Waechter der Web-App leiten daraus ab)
7
7
  * und sprechen den Kassenweg `/api/v3` (Schluessel und Werte englisch).
8
8
  */
9
- export { type PosTheme, type PosFontSize, type PosWatermark, type PosQuantity, type PosTipMode, type PosCheckoutMode, type PosCardProvider, type PosReceiptOutput, type PosShortcutAction, type PosShortcutMap, POS_SHORTCUT_ACTIONS, POS_SHORTCUT_DEFAULTS, type PosLayout, type PosCategoryPosition, type PosTileHeight, type PosPrinterType, type PosTerminalVia, type PosTerminalType, type PosPaperSize, type PosCodePage, type PosCut, type PosDrawerAutoOpen, type PosQrMode, type PosLogoSize, type PosSettingsFontSize, type PosTileStyle, type PosAutoLogoutMinutes, type PosDiscount, type PosWatermarkSide, type PosWatermarkStrength, type PosLogoScale, type PosWatermarkScale, type PosDoneScreenSeconds, type PosToggleMap, type PosBusinessSettings, type PosDeviceSettings, type PosSettings, POS_BUSINESS_DEFAULTS, POS_DEVICE_DEFAULTS, POS_DEVICE_OPTIONAL_FIELDS, POS_BUSINESS_OPTIONAL_FIELDS, posTipKeptByDefault, POS_BUSINESS_VALUES, POS_DEVICE_VALUES, mergePosSettings, sanitizePosSettings, unknownPosSettingValues, posSettingsChanges, type PosOpen, POS_SHORTCUT_SHARED_PAIRS, posShortcutConflict, THEME, FONT_SIZE, WATERMARK, QUANTITY, TIP_MODE, CHECKOUT_MODE, CARD_PROVIDER, RECEIPT_OUTPUT, LAYOUT, CATEGORY_POSITION, TILE_HEIGHT, PRINTER_TYPE, TERMINAL_VIA, TERMINAL_TYPE, PAPER_SIZE, CODE_PAGE, CUT, DRAWER_AUTO_OPEN, QR_MODE, LOGO_SIZE, SETTINGS_FONT_SIZE, TILE_STYLE, AUTO_LOGOUT_MINUTES, DISCOUNT, WATERMARK_SIDE, WATERMARK_STRENGTH, LOGO_SCALE, WATERMARK_SCALE, DONE_SCREEN_SECONDS, } from './settings.js';
9
+ export { type PosTheme, type PosFontSize, type PosWatermark, type PosQuantity, type PosTipMode, type PosCheckoutMode, type PosCardProvider, type PosReceiptOutput, type PosShortcutAction, type PosShortcutMap, POS_SHORTCUT_ACTIONS, POS_SHORTCUT_DEFAULTS, type PosLayout, type PosCategoryPosition, type PosTileHeight, type PosPrinterType, type PosTerminalVia, type PosTerminalType, type PosPaperSize, type PosCodePage, type PosCut, type PosDrawerAutoOpen, type PosQrMode, type PosLogoSize, type PosSettingsFontSize, type PosTileStyle, type PosAutoLogoutMinutes, type PosDiscount, type PosWatermarkSide, type PosWatermarkStrength, type PosLogoScale, type PosWatermarkScale, type PosDoneScreenSeconds, type PosToggleMap, type PosBusinessSettings, type PosDeviceSettings, type PosSettings, POS_BUSINESS_DEFAULTS, POS_DEVICE_DEFAULTS, POS_DEVICE_OPTIONAL_FIELDS, POS_BUSINESS_OPTIONAL_FIELDS, POS_BUSINESS_OPTIONAL_CHOICES, POS_DEVICE_OPTIONAL_CHOICES, posTipKeptByDefault, posTipKinds, posTipStart, posCartWidth, POS_BUSINESS_VALUES, POS_DEVICE_VALUES, mergePosSettings, sanitizePosSettings, unknownPosSettingValues, posSettingsChanges, type PosOpen, POS_SHORTCUT_SHARED_PAIRS, posShortcutConflict, THEME, FONT_SIZE, WATERMARK, QUANTITY, TIP_MODE, TIP_KINDS, TIP_START, CART_WIDTH, type PosTipKind, type PosCartWidth, CHECKOUT_MODE, CARD_PROVIDER, RECEIPT_OUTPUT, LAYOUT, CATEGORY_POSITION, TILE_HEIGHT, PRINTER_TYPE, TERMINAL_VIA, TERMINAL_TYPE, PAPER_SIZE, CODE_PAGE, CUT, DRAWER_AUTO_OPEN, QR_MODE, LOGO_SIZE, SETTINGS_FONT_SIZE, TILE_STYLE, AUTO_LOGOUT_MINUTES, DISCOUNT, WATERMARK_SIDE, WATERMARK_STRENGTH, LOGO_SCALE, WATERMARK_SCALE, DONE_SCREEN_SECONDS, } from './settings.js';
10
10
  export { type ArticleGroup, type ArticleGroupPayload, fromArticleGroupPayload, type PosArticle, type PosArticlePayload, fromPosArticlePayload, listMyArticleGroups, listMyArticles, QUANTITY_RULES, type QuantityRule, type QuantityDefaults, quantityRuleForUnit, quantityDefaults, allowedQuantity, isBookableArticle, tilePrompts, } from './artikel.js';
11
11
  export { REFERENCE_MODES, type ReferenceMode, type PosReference, REFERENCE_INPUT_MAX, REFERENCE_LABEL_MAX, REFERENCE_HINT_MAX, REFERENCE_PATTERN_MAX, REFERENCE_PATTERN_TEMPLATES, cleanReferenceText, isValidReferencePattern, isDigitsOnlyPattern, type ReferenceCheckResult, checkReference, referenceLineName, fromReferencePayload, } from './kachel-referenz.js';
12
+ export { ADD_ONS_MAX, ADD_ON_BLOCK_REASONS, type AddOnBlockReason, isSelectableAddOn, addOnsFor, addOnReferencesValid, addOnsOfItem, addOnRemap, addOnDisplayOrder, orderAddOnLines, } from './zusaetze.js';
12
13
  export { getPosSettings, setMyPosSettings, setMyRegisterDeviceSettings, setMyPosLogo, posSettingsFromWire, type SetMyPosLogoOptions, } from './client.js';
13
14
  export { POS_ERROR_CODES, type PosErrorCode, isPosErrorCode, posErrorCode, isPosError, type PosFieldError, posFieldErrors, } from './errors.js';
14
15
  export { distributeDiscount } from '../receipt/discount.js';
@@ -23,9 +24,10 @@ export { type ListMyStocktakesOptions, type ListMyStocktakeItemsOptions, type Li
23
24
  export type { Stocktake, StocktakeItem, StocktakeCount, StocktakeCountResult, StocktakeItemPage, StocktakeCountPage, StocktakeActor, StocktakeProgress, StocktakeReview, StocktakeRecount, StocktakeScope, } from '../inventory/typen.js';
24
25
  export type { StocktakeStatus } from '../inventory/vertrag.js';
25
26
  export { VOUCHER_KINDS, VOUCHER_STATUSES, checkVoucher, reprintVoucherLabel, VOUCHER_SETTINGS_DEFAULTS, posVoucherSettingsFromWire, VOUCHER_PAYOUTS, VOUCHER_TYPE_KINDS, VOUCHER_AMOUNT_MODES, VOUCHER_TYPE_VALIDITY_PATTERNS, type VoucherKind, type VoucherStatus, type VoucherValidity, type VoucherArticle, type VoucherCheck, type PosVoucherSettings, type PosVoucherReturnType, type VoucherPayout, type VoucherTypeKind, type PosVoucherType, type VoucherLabelTemplate, } from './gutschein.js';
26
- export { type GetMyDrawerStateOptions, type OpenMyShiftOptions, type RecordMyCashMovementOptions, type DrawerOpeningEntry, type LogMyDrawerOpeningsOptions, type GetMyShiftReportOptions, type TipPayout, type CloseMyShiftOptions, type AfterCountOption, getMyDrawerState, openMyShift, recordMyCashMovement, logMyDrawerOpenings, getMyShiftReport, closeMyShift, sumDenominations, parseCentsAllowZero, newIdempotencyKey, shiftTipLines, durationText, type ShiftTipLine, type ShiftTipLineKey, } from './schicht.js';
27
- export { EUR_DENOMINATIONS, MOVEMENT_TYPES, MANUAL_MOVEMENT_TYPES, CASH_LOCATIONS, OPENING_REASONS, MANUAL_OPENING_REASONS, SHIFT_RECEIPT_KINDS, AFTER_COUNT_TYPES, type AfterCountType, type AfterCount, type EurDenomination, type MovementType, type ManualMovementType, type CashLocation, type OpeningReason, type ManualOpeningReason, type ShiftReceiptKind, type ShiftStatus, type ShiftActorRole, type Denominations, type ShiftActor, type DrawerInfo, type DrawerRights, type NonCashAmount, type ShiftTipTotals, type ShiftTip, type ShiftRunningTotals, type ShiftReconciliation, type Shift, type TipClaim, type DrawerOpening, type DrawerState, type CashMovement, type ShiftReceiptHeader, type ShiftReceiptMovement, type ShiftReceiptTip, type ShiftSummaryReceipt, type CashMovementReceipt, type ShiftReceipt, type OpenShiftResult, type CashMovementResult, type DrawerOpeningsResult, type ShiftReport, type CloseShiftResult, } from './schicht-typen.js';
27
+ export { type GetMyDrawerStateOptions, type OpenMyShiftOptions, type RecordMyCashMovementOptions, type DrawerOpeningEntry, type LogMyDrawerOpeningsOptions, type GetMyShiftReportOptions, type TipPayout, type CloseMyShiftOptions, type AfterCountOption, type RecordMyShiftCountOptions, getMyDrawerState, openMyShift, recordMyCashMovement, logMyDrawerOpenings, getMyShiftReport, closeMyShift, recordMyShiftCount, sumDenominations, parseCentsAllowZero, newIdempotencyKey, shiftTipLines, durationText, type ShiftTipLine, type ShiftTipLineKey, } from './schicht.js';
28
+ export { EUR_DENOMINATIONS, MOVEMENT_TYPES, MANUAL_MOVEMENT_TYPES, CASH_LOCATIONS, OPENING_REASONS, MANUAL_OPENING_REASONS, SHIFT_RECEIPT_KINDS, AFTER_COUNT_TYPES, type AfterCountType, type AfterCount, EXPECTED_PART_KEYS, DIFFERENCE_PART_TYPES, type ExpectedPartKey, type ShiftExpectedPart, type DifferencePartType, type ShiftDifferencePart, type LastShift, type ShiftCountResult, type EurDenomination, type MovementType, type ManualMovementType, type CashLocation, type OpeningReason, type ManualOpeningReason, type ShiftReceiptKind, type ShiftStatus, type ShiftActorRole, type Denominations, type ShiftActor, type DrawerInfo, type DrawerRights, type NonCashAmount, type ShiftTipTotals, type ShiftTip, type ShiftOwnerTip, type ShiftRunningTotals, type ShiftReconciliation, type Shift, type TipClaim, type DrawerOpening, type DrawerState, type CashMovement, type ShiftReceiptHeader, type ShiftReceiptMovement, type ShiftReceiptTip, type ShiftSummaryReceipt, type CashMovementReceipt, type ShiftReceipt, type OpenShiftResult, type CashMovementResult, type DrawerOpeningsResult, type ShiftReport, type CloseShiftResult, } from './schicht-typen.js';
28
29
  export { type ShiftReceiptLayoutOptions, shiftReceiptLayout, cashMovementLayout } from '../receipt/shift-sheet.js';
29
30
  export { RECEIPT_OUTPUT_KINDS, RECEIPT_OUTPUT_RESULTS, type ReceiptOutputKind, type ReceiptOutputResult } from '../models/receipt-output.js';
30
31
  export { RETURN_DISPOSITIONS, isReturnDisposition, type ReturnDisposition } from '../models/cancellation.js';
31
32
  export { MESSAGES, ERROR_RULES, ERROR_CODE_RULES, ERROR_OUTCOME_RULES, CALLS_WITH_EFFECT, findErrorRule, messageOutcome, messageText, messageAppliesTo, RECEIPT_EMAIL_ERROR_MESSAGES, receiptEmailErrorMessage, CANCELLATION_PAYMENT_ERROR_MESSAGES, cancellationPaymentErrorMessage, CANCELLATION_VOUCHER_ERROR_MESSAGES, cancellationErrorMessage, VOUCHER_ERROR_MESSAGES, voucherErrorMessage, LABELS, labelText, RETURN_DISPOSITION_LABELS, receiptOutputLabel, type TextEntry, type MessageKey, type ErrorKind, type ErrorRule, type ErrorRuleDetail, type Surface, type ReceiptEmailMessageCode, type CancellationPaymentMessageCode, type LabelKey, } from './texte.js';
33
+ export { roundUpSuggestions } from './aufrunden.js';
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.quantityRuleForUnit = exports.QUANTITY_RULES = exports.listMyArticles = exports.listMyArticleGroups = exports.fromPosArticlePayload = exports.fromArticleGroupPayload = exports.DONE_SCREEN_SECONDS = exports.WATERMARK_SCALE = exports.LOGO_SCALE = exports.WATERMARK_STRENGTH = exports.WATERMARK_SIDE = exports.DISCOUNT = exports.AUTO_LOGOUT_MINUTES = exports.TILE_STYLE = exports.SETTINGS_FONT_SIZE = exports.LOGO_SIZE = exports.QR_MODE = exports.DRAWER_AUTO_OPEN = exports.CUT = exports.CODE_PAGE = exports.PAPER_SIZE = exports.TERMINAL_TYPE = exports.TERMINAL_VIA = exports.PRINTER_TYPE = exports.TILE_HEIGHT = exports.CATEGORY_POSITION = exports.LAYOUT = exports.RECEIPT_OUTPUT = exports.CARD_PROVIDER = exports.CHECKOUT_MODE = exports.TIP_MODE = exports.QUANTITY = exports.WATERMARK = exports.FONT_SIZE = exports.THEME = exports.posShortcutConflict = exports.POS_SHORTCUT_SHARED_PAIRS = exports.posSettingsChanges = exports.unknownPosSettingValues = exports.sanitizePosSettings = exports.mergePosSettings = exports.POS_DEVICE_VALUES = exports.POS_BUSINESS_VALUES = exports.posTipKeptByDefault = exports.POS_BUSINESS_OPTIONAL_FIELDS = exports.POS_DEVICE_OPTIONAL_FIELDS = exports.POS_DEVICE_DEFAULTS = exports.POS_BUSINESS_DEFAULTS = exports.POS_SHORTCUT_DEFAULTS = exports.POS_SHORTCUT_ACTIONS = void 0;
4
- exports.listMyStocktakeCounts = exports.listMyStocktakeItems = exports.listMyStocktakes = exports.setMyCashregisterStockLocation = exports.listMyStock = exports.listMyStockLocations = exports.STOCK_LOCATION_TYPES = exports.reportConnectState = exports.inspectionInfoLines = exports.inspectionInfoRows = exports.getRegisterInspectionInfo = exports.depFolderName = exports.listMyTipRecipients = exports.getPrintJob = exports.createPrintJob = exports.listMyPrinters = exports.isPrintJobFinished = exports.PRINT_JOB_SOURCES = exports.PRINT_JOB_STATUSES = exports.voucherPermsOf = exports.stockViewOf = exports.receiptsScopeOf = exports.cancelScopeOf = exports.distributeDiscount = exports.posFieldErrors = exports.isPosError = exports.posErrorCode = exports.isPosErrorCode = exports.POS_ERROR_CODES = exports.posSettingsFromWire = exports.setMyPosLogo = exports.setMyRegisterDeviceSettings = exports.setMyPosSettings = exports.getPosSettings = exports.fromReferencePayload = exports.referenceLineName = exports.checkReference = exports.isDigitsOnlyPattern = exports.isValidReferencePattern = exports.cleanReferenceText = exports.REFERENCE_PATTERN_TEMPLATES = exports.REFERENCE_PATTERN_MAX = exports.REFERENCE_HINT_MAX = exports.REFERENCE_LABEL_MAX = exports.REFERENCE_INPUT_MAX = exports.REFERENCE_MODES = exports.tilePrompts = exports.isBookableArticle = exports.allowedQuantity = exports.quantityDefaults = void 0;
5
- exports.CANCELLATION_PAYMENT_ERROR_MESSAGES = exports.receiptEmailErrorMessage = exports.RECEIPT_EMAIL_ERROR_MESSAGES = exports.messageAppliesTo = exports.messageText = exports.messageOutcome = exports.findErrorRule = exports.CALLS_WITH_EFFECT = exports.ERROR_OUTCOME_RULES = exports.ERROR_CODE_RULES = exports.ERROR_RULES = exports.MESSAGES = exports.isReturnDisposition = exports.RETURN_DISPOSITIONS = exports.RECEIPT_OUTPUT_RESULTS = exports.RECEIPT_OUTPUT_KINDS = exports.cashMovementLayout = exports.shiftReceiptLayout = exports.AFTER_COUNT_TYPES = exports.SHIFT_RECEIPT_KINDS = exports.MANUAL_OPENING_REASONS = exports.OPENING_REASONS = exports.CASH_LOCATIONS = exports.MANUAL_MOVEMENT_TYPES = exports.MOVEMENT_TYPES = exports.EUR_DENOMINATIONS = exports.durationText = exports.shiftTipLines = exports.newIdempotencyKey = exports.parseCentsAllowZero = exports.sumDenominations = exports.closeMyShift = exports.getMyShiftReport = exports.logMyDrawerOpenings = exports.recordMyCashMovement = exports.openMyShift = exports.getMyDrawerState = exports.VOUCHER_TYPE_VALIDITY_PATTERNS = exports.VOUCHER_AMOUNT_MODES = exports.VOUCHER_TYPE_KINDS = exports.VOUCHER_PAYOUTS = exports.posVoucherSettingsFromWire = exports.VOUCHER_SETTINGS_DEFAULTS = exports.reprintVoucherLabel = exports.checkVoucher = exports.VOUCHER_STATUSES = exports.VOUCHER_KINDS = exports.parseQuantityMilli = exports.voidMyStocktakeCount = exports.recordMyStocktakeCount = void 0;
6
- exports.receiptOutputLabel = exports.RETURN_DISPOSITION_LABELS = exports.labelText = exports.LABELS = exports.voucherErrorMessage = exports.VOUCHER_ERROR_MESSAGES = exports.cancellationErrorMessage = exports.CANCELLATION_VOUCHER_ERROR_MESSAGES = exports.cancellationPaymentErrorMessage = void 0;
3
+ exports.LOGO_SCALE = exports.WATERMARK_STRENGTH = exports.WATERMARK_SIDE = exports.DISCOUNT = exports.AUTO_LOGOUT_MINUTES = exports.TILE_STYLE = exports.SETTINGS_FONT_SIZE = exports.LOGO_SIZE = exports.QR_MODE = exports.DRAWER_AUTO_OPEN = exports.CUT = exports.CODE_PAGE = exports.PAPER_SIZE = exports.TERMINAL_TYPE = exports.TERMINAL_VIA = exports.PRINTER_TYPE = exports.TILE_HEIGHT = exports.CATEGORY_POSITION = exports.LAYOUT = exports.RECEIPT_OUTPUT = exports.CARD_PROVIDER = exports.CHECKOUT_MODE = exports.CART_WIDTH = exports.TIP_START = exports.TIP_KINDS = exports.TIP_MODE = exports.QUANTITY = exports.WATERMARK = exports.FONT_SIZE = exports.THEME = exports.posShortcutConflict = exports.POS_SHORTCUT_SHARED_PAIRS = exports.posSettingsChanges = exports.unknownPosSettingValues = exports.sanitizePosSettings = exports.mergePosSettings = exports.POS_DEVICE_VALUES = exports.POS_BUSINESS_VALUES = exports.posCartWidth = exports.posTipStart = exports.posTipKinds = exports.posTipKeptByDefault = exports.POS_DEVICE_OPTIONAL_CHOICES = exports.POS_BUSINESS_OPTIONAL_CHOICES = exports.POS_BUSINESS_OPTIONAL_FIELDS = exports.POS_DEVICE_OPTIONAL_FIELDS = exports.POS_DEVICE_DEFAULTS = exports.POS_BUSINESS_DEFAULTS = exports.POS_SHORTCUT_DEFAULTS = exports.POS_SHORTCUT_ACTIONS = void 0;
4
+ exports.PRINT_JOB_SOURCES = exports.PRINT_JOB_STATUSES = exports.voucherPermsOf = exports.stockViewOf = exports.receiptsScopeOf = exports.cancelScopeOf = exports.distributeDiscount = exports.posFieldErrors = exports.isPosError = exports.posErrorCode = exports.isPosErrorCode = exports.POS_ERROR_CODES = exports.posSettingsFromWire = exports.setMyPosLogo = exports.setMyRegisterDeviceSettings = exports.setMyPosSettings = exports.getPosSettings = exports.orderAddOnLines = exports.addOnDisplayOrder = exports.addOnRemap = exports.addOnsOfItem = exports.addOnReferencesValid = exports.addOnsFor = exports.isSelectableAddOn = exports.ADD_ON_BLOCK_REASONS = exports.ADD_ONS_MAX = exports.fromReferencePayload = exports.referenceLineName = exports.checkReference = exports.isDigitsOnlyPattern = exports.isValidReferencePattern = exports.cleanReferenceText = exports.REFERENCE_PATTERN_TEMPLATES = exports.REFERENCE_PATTERN_MAX = exports.REFERENCE_HINT_MAX = exports.REFERENCE_LABEL_MAX = exports.REFERENCE_INPUT_MAX = exports.REFERENCE_MODES = exports.tilePrompts = exports.isBookableArticle = exports.allowedQuantity = exports.quantityDefaults = exports.quantityRuleForUnit = exports.QUANTITY_RULES = exports.listMyArticles = exports.listMyArticleGroups = exports.fromPosArticlePayload = exports.fromArticleGroupPayload = exports.DONE_SCREEN_SECONDS = exports.WATERMARK_SCALE = void 0;
5
+ exports.AFTER_COUNT_TYPES = exports.SHIFT_RECEIPT_KINDS = exports.MANUAL_OPENING_REASONS = exports.OPENING_REASONS = exports.CASH_LOCATIONS = exports.MANUAL_MOVEMENT_TYPES = exports.MOVEMENT_TYPES = exports.EUR_DENOMINATIONS = exports.durationText = exports.shiftTipLines = exports.newIdempotencyKey = exports.parseCentsAllowZero = exports.sumDenominations = exports.recordMyShiftCount = exports.closeMyShift = exports.getMyShiftReport = exports.logMyDrawerOpenings = exports.recordMyCashMovement = exports.openMyShift = exports.getMyDrawerState = exports.VOUCHER_TYPE_VALIDITY_PATTERNS = exports.VOUCHER_AMOUNT_MODES = exports.VOUCHER_TYPE_KINDS = exports.VOUCHER_PAYOUTS = exports.posVoucherSettingsFromWire = exports.VOUCHER_SETTINGS_DEFAULTS = exports.reprintVoucherLabel = exports.checkVoucher = exports.VOUCHER_STATUSES = exports.VOUCHER_KINDS = exports.parseQuantityMilli = exports.voidMyStocktakeCount = exports.recordMyStocktakeCount = exports.listMyStocktakeCounts = exports.listMyStocktakeItems = exports.listMyStocktakes = exports.setMyCashregisterStockLocation = exports.listMyStock = exports.listMyStockLocations = exports.STOCK_LOCATION_TYPES = exports.reportConnectState = exports.inspectionInfoLines = exports.inspectionInfoRows = exports.getRegisterInspectionInfo = exports.depFolderName = exports.listMyTipRecipients = exports.getPrintJob = exports.createPrintJob = exports.listMyPrinters = exports.isPrintJobFinished = void 0;
6
+ exports.roundUpSuggestions = exports.receiptOutputLabel = exports.RETURN_DISPOSITION_LABELS = exports.labelText = exports.LABELS = exports.voucherErrorMessage = exports.VOUCHER_ERROR_MESSAGES = exports.cancellationErrorMessage = exports.CANCELLATION_VOUCHER_ERROR_MESSAGES = exports.cancellationPaymentErrorMessage = exports.CANCELLATION_PAYMENT_ERROR_MESSAGES = exports.receiptEmailErrorMessage = exports.RECEIPT_EMAIL_ERROR_MESSAGES = exports.messageAppliesTo = exports.messageText = exports.messageOutcome = exports.findErrorRule = exports.CALLS_WITH_EFFECT = exports.ERROR_OUTCOME_RULES = exports.ERROR_CODE_RULES = exports.ERROR_RULES = exports.MESSAGES = exports.isReturnDisposition = exports.RETURN_DISPOSITIONS = exports.RECEIPT_OUTPUT_RESULTS = exports.RECEIPT_OUTPUT_KINDS = exports.cashMovementLayout = exports.shiftReceiptLayout = exports.DIFFERENCE_PART_TYPES = exports.EXPECTED_PART_KEYS = void 0;
7
7
  /**
8
8
  * Kachel-Kasse: Einstellungen, Artikelgruppen/Artikel fuer Kacheln,
9
9
  * Rabattverteilung, Drucker, Trinkgeld-Empfaenger, Lager (Standorte, Bestand,
@@ -19,7 +19,12 @@ Object.defineProperty(exports, "POS_BUSINESS_DEFAULTS", { enumerable: true, get:
19
19
  Object.defineProperty(exports, "POS_DEVICE_DEFAULTS", { enumerable: true, get: function () { return settings_js_1.POS_DEVICE_DEFAULTS; } });
20
20
  Object.defineProperty(exports, "POS_DEVICE_OPTIONAL_FIELDS", { enumerable: true, get: function () { return settings_js_1.POS_DEVICE_OPTIONAL_FIELDS; } });
21
21
  Object.defineProperty(exports, "POS_BUSINESS_OPTIONAL_FIELDS", { enumerable: true, get: function () { return settings_js_1.POS_BUSINESS_OPTIONAL_FIELDS; } });
22
+ Object.defineProperty(exports, "POS_BUSINESS_OPTIONAL_CHOICES", { enumerable: true, get: function () { return settings_js_1.POS_BUSINESS_OPTIONAL_CHOICES; } });
23
+ Object.defineProperty(exports, "POS_DEVICE_OPTIONAL_CHOICES", { enumerable: true, get: function () { return settings_js_1.POS_DEVICE_OPTIONAL_CHOICES; } });
22
24
  Object.defineProperty(exports, "posTipKeptByDefault", { enumerable: true, get: function () { return settings_js_1.posTipKeptByDefault; } });
25
+ Object.defineProperty(exports, "posTipKinds", { enumerable: true, get: function () { return settings_js_1.posTipKinds; } });
26
+ Object.defineProperty(exports, "posTipStart", { enumerable: true, get: function () { return settings_js_1.posTipStart; } });
27
+ Object.defineProperty(exports, "posCartWidth", { enumerable: true, get: function () { return settings_js_1.posCartWidth; } });
23
28
  Object.defineProperty(exports, "POS_BUSINESS_VALUES", { enumerable: true, get: function () { return settings_js_1.POS_BUSINESS_VALUES; } });
24
29
  Object.defineProperty(exports, "POS_DEVICE_VALUES", { enumerable: true, get: function () { return settings_js_1.POS_DEVICE_VALUES; } });
25
30
  Object.defineProperty(exports, "mergePosSettings", { enumerable: true, get: function () { return settings_js_1.mergePosSettings; } });
@@ -34,6 +39,9 @@ Object.defineProperty(exports, "FONT_SIZE", { enumerable: true, get: function ()
34
39
  Object.defineProperty(exports, "WATERMARK", { enumerable: true, get: function () { return settings_js_1.WATERMARK; } });
35
40
  Object.defineProperty(exports, "QUANTITY", { enumerable: true, get: function () { return settings_js_1.QUANTITY; } });
36
41
  Object.defineProperty(exports, "TIP_MODE", { enumerable: true, get: function () { return settings_js_1.TIP_MODE; } });
42
+ Object.defineProperty(exports, "TIP_KINDS", { enumerable: true, get: function () { return settings_js_1.TIP_KINDS; } });
43
+ Object.defineProperty(exports, "TIP_START", { enumerable: true, get: function () { return settings_js_1.TIP_START; } });
44
+ Object.defineProperty(exports, "CART_WIDTH", { enumerable: true, get: function () { return settings_js_1.CART_WIDTH; } });
37
45
  Object.defineProperty(exports, "CHECKOUT_MODE", { enumerable: true, get: function () { return settings_js_1.CHECKOUT_MODE; } });
38
46
  Object.defineProperty(exports, "CARD_PROVIDER", { enumerable: true, get: function () { return settings_js_1.CARD_PROVIDER; } });
39
47
  Object.defineProperty(exports, "RECEIPT_OUTPUT", { enumerable: true, get: function () { return settings_js_1.RECEIPT_OUTPUT; } });
@@ -82,6 +90,16 @@ Object.defineProperty(exports, "isDigitsOnlyPattern", { enumerable: true, get: f
82
90
  Object.defineProperty(exports, "checkReference", { enumerable: true, get: function () { return kachel_referenz_js_1.checkReference; } });
83
91
  Object.defineProperty(exports, "referenceLineName", { enumerable: true, get: function () { return kachel_referenz_js_1.referenceLineName; } });
84
92
  Object.defineProperty(exports, "fromReferencePayload", { enumerable: true, get: function () { return kachel_referenz_js_1.fromReferencePayload; } });
93
+ var zusaetze_js_1 = require("./zusaetze.js");
94
+ Object.defineProperty(exports, "ADD_ONS_MAX", { enumerable: true, get: function () { return zusaetze_js_1.ADD_ONS_MAX; } });
95
+ Object.defineProperty(exports, "ADD_ON_BLOCK_REASONS", { enumerable: true, get: function () { return zusaetze_js_1.ADD_ON_BLOCK_REASONS; } });
96
+ Object.defineProperty(exports, "isSelectableAddOn", { enumerable: true, get: function () { return zusaetze_js_1.isSelectableAddOn; } });
97
+ Object.defineProperty(exports, "addOnsFor", { enumerable: true, get: function () { return zusaetze_js_1.addOnsFor; } });
98
+ Object.defineProperty(exports, "addOnReferencesValid", { enumerable: true, get: function () { return zusaetze_js_1.addOnReferencesValid; } });
99
+ Object.defineProperty(exports, "addOnsOfItem", { enumerable: true, get: function () { return zusaetze_js_1.addOnsOfItem; } });
100
+ Object.defineProperty(exports, "addOnRemap", { enumerable: true, get: function () { return zusaetze_js_1.addOnRemap; } });
101
+ Object.defineProperty(exports, "addOnDisplayOrder", { enumerable: true, get: function () { return zusaetze_js_1.addOnDisplayOrder; } });
102
+ Object.defineProperty(exports, "orderAddOnLines", { enumerable: true, get: function () { return zusaetze_js_1.orderAddOnLines; } });
85
103
  var client_js_1 = require("./client.js");
86
104
  Object.defineProperty(exports, "getPosSettings", { enumerable: true, get: function () { return client_js_1.getPosSettings; } });
87
105
  Object.defineProperty(exports, "setMyPosSettings", { enumerable: true, get: function () { return client_js_1.setMyPosSettings; } });
@@ -155,6 +173,7 @@ Object.defineProperty(exports, "recordMyCashMovement", { enumerable: true, get:
155
173
  Object.defineProperty(exports, "logMyDrawerOpenings", { enumerable: true, get: function () { return schicht_js_1.logMyDrawerOpenings; } });
156
174
  Object.defineProperty(exports, "getMyShiftReport", { enumerable: true, get: function () { return schicht_js_1.getMyShiftReport; } });
157
175
  Object.defineProperty(exports, "closeMyShift", { enumerable: true, get: function () { return schicht_js_1.closeMyShift; } });
176
+ Object.defineProperty(exports, "recordMyShiftCount", { enumerable: true, get: function () { return schicht_js_1.recordMyShiftCount; } });
158
177
  Object.defineProperty(exports, "sumDenominations", { enumerable: true, get: function () { return schicht_js_1.sumDenominations; } });
159
178
  Object.defineProperty(exports, "parseCentsAllowZero", { enumerable: true, get: function () { return schicht_js_1.parseCentsAllowZero; } });
160
179
  Object.defineProperty(exports, "newIdempotencyKey", { enumerable: true, get: function () { return schicht_js_1.newIdempotencyKey; } });
@@ -169,6 +188,8 @@ Object.defineProperty(exports, "OPENING_REASONS", { enumerable: true, get: funct
169
188
  Object.defineProperty(exports, "MANUAL_OPENING_REASONS", { enumerable: true, get: function () { return schicht_typen_js_1.MANUAL_OPENING_REASONS; } });
170
189
  Object.defineProperty(exports, "SHIFT_RECEIPT_KINDS", { enumerable: true, get: function () { return schicht_typen_js_1.SHIFT_RECEIPT_KINDS; } });
171
190
  Object.defineProperty(exports, "AFTER_COUNT_TYPES", { enumerable: true, get: function () { return schicht_typen_js_1.AFTER_COUNT_TYPES; } });
191
+ Object.defineProperty(exports, "EXPECTED_PART_KEYS", { enumerable: true, get: function () { return schicht_typen_js_1.EXPECTED_PART_KEYS; } });
192
+ Object.defineProperty(exports, "DIFFERENCE_PART_TYPES", { enumerable: true, get: function () { return schicht_typen_js_1.DIFFERENCE_PART_TYPES; } });
172
193
  var shift_sheet_js_1 = require("../receipt/shift-sheet.js");
173
194
  Object.defineProperty(exports, "shiftReceiptLayout", { enumerable: true, get: function () { return shift_sheet_js_1.shiftReceiptLayout; } });
174
195
  Object.defineProperty(exports, "cashMovementLayout", { enumerable: true, get: function () { return shift_sheet_js_1.cashMovementLayout; } });
@@ -203,3 +224,5 @@ Object.defineProperty(exports, "LABELS", { enumerable: true, get: function () {
203
224
  Object.defineProperty(exports, "labelText", { enumerable: true, get: function () { return texte_js_1.labelText; } });
204
225
  Object.defineProperty(exports, "RETURN_DISPOSITION_LABELS", { enumerable: true, get: function () { return texte_js_1.RETURN_DISPOSITION_LABELS; } });
205
226
  Object.defineProperty(exports, "receiptOutputLabel", { enumerable: true, get: function () { return texte_js_1.receiptOutputLabel; } });
227
+ var aufrunden_js_1 = require("./aufrunden.js");
228
+ Object.defineProperty(exports, "roundUpSuggestions", { enumerable: true, get: function () { return aufrunden_js_1.roundUpSuggestions; } });
@@ -12,7 +12,7 @@
12
12
  * stehen im Modell genau dann, wenn der Server sie sendet.
13
13
  */
14
14
  import { type ValidationScope } from '../client/errors.js';
15
- import type { CashMovement, CashMovementReceipt, CashMovementResult, DrawerOpeningsResult, OpenShiftResult, ShiftReport, CloseShiftResult, DrawerState, Shift, ShiftSummaryReceipt } from './schicht-typen.js';
15
+ import type { CashMovement, CashMovementReceipt, CashMovementResult, DrawerOpeningsResult, OpenShiftResult, ShiftReport, CloseShiftResult, ShiftCountResult, DrawerState, Shift, ShiftSummaryReceipt } from './schicht-typen.js';
16
16
  type Roh = Record<string, unknown>;
17
17
  /** Wer liest (fuer die Meldung) und wo im Rumpf. */
18
18
  export interface Ort {
@@ -33,6 +33,7 @@ export declare function schichtBon(ort: Ort, w: unknown): ShiftSummaryReceipt;
33
33
  export declare function bewegungsBon(ort: Ort, w: unknown): CashMovementReceipt;
34
34
  export declare function abschluss(ort: Ort, w: unknown): CloseShiftResult;
35
35
  export declare function geoeffnet(ort: Ort, w: unknown): OpenShiftResult;
36
+ export declare function gezaehlt(ort: Ort, w: unknown): ShiftCountResult;
36
37
  export declare function gebucht(ort: Ort, w: unknown): CashMovementResult;
37
38
  export declare function gemeldet(ort: Ort, w: unknown): DrawerOpeningsResult;
38
39
  export declare function bericht(ort: Ort, w: unknown): ShiftReport;