@kreiseck/kasseneck-api 1.35.1 → 1.37.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 (155) hide show
  1. package/CHANGELOG.md +45 -10
  2. package/dist/cjs/client/api.d.ts +15 -1
  3. package/dist/cjs/client/api.js +4 -0
  4. package/dist/cjs/client/aufrufe.d.ts +3 -3
  5. package/dist/cjs/client/aufrufe.js +15 -0
  6. package/dist/cjs/client/auth.d.ts +9 -3
  7. package/dist/cjs/client/auth.js +5 -4
  8. package/dist/cjs/client/ewp.d.ts +125 -0
  9. package/dist/cjs/client/ewp.js +95 -0
  10. package/dist/cjs/client/index.d.ts +1 -0
  11. package/dist/cjs/client/index.js +4 -1
  12. package/dist/cjs/client/list-deposit-types.d.ts +3 -0
  13. package/dist/cjs/client/list-deposit-types.js +3 -0
  14. package/dist/cjs/client/receipts.d.ts +4 -4
  15. package/dist/cjs/index.d.ts +1 -1
  16. package/dist/cjs/index.js +4 -2
  17. package/dist/cjs/invoice/index.d.ts +2 -2
  18. package/dist/cjs/invoice/index.js +2 -1
  19. package/dist/cjs/invoice/texte.d.ts +5 -0
  20. package/dist/cjs/invoice/texte.js +10 -0
  21. package/dist/cjs/invoice/typen.d.ts +34 -1
  22. package/dist/cjs/invoice/vertrag.d.ts +13 -4
  23. package/dist/cjs/invoice/vertrag.js +29 -6
  24. package/dist/cjs/payments/hobex-hps/index.d.ts +2 -1
  25. package/dist/cjs/payments/hobex-hps/index.js +3 -1
  26. package/dist/cjs/payments/hobex-hps/outcome.d.ts +10 -0
  27. package/dist/cjs/payments/hobex-hps/payments.d.ts +54 -0
  28. package/dist/cjs/payments/hobex-hps/payments.js +157 -1
  29. package/dist/cjs/payments/hobex-hps/support.d.ts +19 -0
  30. package/dist/cjs/payments/hobex-hps/support.js +22 -0
  31. package/dist/cjs/payments/hobex-hps/transaction-response.js +1 -1
  32. package/dist/cjs/payments/index.d.ts +1 -1
  33. package/dist/cjs/payments/index.js +2 -1
  34. package/dist/cjs/pos/errors.d.ts +1 -1
  35. package/dist/cjs/pos/errors.js +1 -0
  36. package/dist/cjs/pos/index.d.ts +4 -4
  37. package/dist/cjs/pos/index.js +13 -5
  38. package/dist/cjs/pos/schicht-lesen.d.ts +3 -1
  39. package/dist/cjs/pos/schicht-lesen.js +23 -1
  40. package/dist/cjs/pos/schicht-typen.d.ts +39 -4
  41. package/dist/cjs/pos/schicht-typen.js +7 -2
  42. package/dist/cjs/pos/schicht.d.ts +6 -4
  43. package/dist/cjs/pos/schicht.js +6 -3
  44. package/dist/cjs/pos/settings.d.ts +37 -8
  45. package/dist/cjs/pos/settings.js +34 -10
  46. package/dist/cjs/pos/texte.d.ts +249 -2
  47. package/dist/cjs/pos/texte.js +139 -4
  48. package/dist/cjs/pos/trinkgeld.d.ts +30 -0
  49. package/dist/cjs/pos/trinkgeld.js +30 -0
  50. package/dist/cjs/receipt/shift-sheet.js +6 -1
  51. package/dist/cjs/register/pairing.d.ts +4 -0
  52. package/dist/cjs/register/pairing.js +2 -0
  53. package/dist/cjs/stored/vokabular.d.ts +1 -1
  54. package/dist/cjs/stored/vokabular.js +12 -1
  55. package/dist/cjs/version.d.ts +1 -1
  56. package/dist/cjs/version.js +1 -1
  57. package/dist/esm/client/api.d.ts +15 -1
  58. package/dist/esm/client/api.js +4 -0
  59. package/dist/esm/client/aufrufe.d.ts +3 -3
  60. package/dist/esm/client/aufrufe.js +15 -0
  61. package/dist/esm/client/auth.d.ts +9 -3
  62. package/dist/esm/client/auth.js +5 -4
  63. package/dist/esm/client/ewp.d.ts +125 -0
  64. package/dist/esm/client/ewp.js +89 -0
  65. package/dist/esm/client/index.d.ts +1 -0
  66. package/dist/esm/client/index.js +1 -0
  67. package/dist/esm/client/list-deposit-types.d.ts +3 -0
  68. package/dist/esm/client/list-deposit-types.js +3 -0
  69. package/dist/esm/client/receipts.d.ts +4 -4
  70. package/dist/esm/index.d.ts +1 -1
  71. package/dist/esm/index.js +1 -1
  72. package/dist/esm/invoice/index.d.ts +2 -2
  73. package/dist/esm/invoice/index.js +1 -1
  74. package/dist/esm/invoice/texte.d.ts +5 -0
  75. package/dist/esm/invoice/texte.js +10 -0
  76. package/dist/esm/invoice/typen.d.ts +34 -1
  77. package/dist/esm/invoice/vertrag.d.ts +13 -4
  78. package/dist/esm/invoice/vertrag.js +28 -5
  79. package/dist/esm/payments/hobex-hps/index.d.ts +2 -1
  80. package/dist/esm/payments/hobex-hps/index.js +1 -0
  81. package/dist/esm/payments/hobex-hps/outcome.d.ts +10 -0
  82. package/dist/esm/payments/hobex-hps/payments.d.ts +54 -0
  83. package/dist/esm/payments/hobex-hps/payments.js +158 -2
  84. package/dist/esm/payments/hobex-hps/support.d.ts +19 -0
  85. package/dist/esm/payments/hobex-hps/support.js +19 -0
  86. package/dist/esm/payments/hobex-hps/transaction-response.js +1 -1
  87. package/dist/esm/payments/index.d.ts +1 -1
  88. package/dist/esm/payments/index.js +1 -1
  89. package/dist/esm/pos/errors.d.ts +1 -1
  90. package/dist/esm/pos/errors.js +1 -0
  91. package/dist/esm/pos/index.d.ts +4 -4
  92. package/dist/esm/pos/index.js +5 -5
  93. package/dist/esm/pos/schicht-lesen.d.ts +3 -1
  94. package/dist/esm/pos/schicht-lesen.js +22 -1
  95. package/dist/esm/pos/schicht-typen.d.ts +39 -4
  96. package/dist/esm/pos/schicht-typen.js +6 -1
  97. package/dist/esm/pos/schicht.d.ts +6 -4
  98. package/dist/esm/pos/schicht.js +6 -3
  99. package/dist/esm/pos/settings.d.ts +37 -8
  100. package/dist/esm/pos/settings.js +30 -9
  101. package/dist/esm/pos/texte.d.ts +249 -2
  102. package/dist/esm/pos/texte.js +138 -3
  103. package/dist/esm/pos/trinkgeld.d.ts +30 -0
  104. package/dist/esm/pos/trinkgeld.js +28 -0
  105. package/dist/esm/receipt/shift-sheet.js +6 -1
  106. package/dist/esm/register/pairing.d.ts +4 -0
  107. package/dist/esm/register/pairing.js +2 -0
  108. package/dist/esm/stored/vokabular.d.ts +1 -1
  109. package/dist/esm/stored/vokabular.js +12 -1
  110. package/dist/esm/version.d.ts +1 -1
  111. package/dist/esm/version.js +1 -1
  112. package/fixtures/duplicate-cases.json +1 -1
  113. package/fixtures/expected/duplicate.shift-close.hex +1 -1
  114. package/fixtures/expected/shift-close-card-tips.grid32.txt +44 -0
  115. package/fixtures/expected/shift-close-card-tips.grid48.txt +40 -0
  116. package/fixtures/expected/shift-close-card-tips.lines.json +479 -0
  117. package/fixtures/expected/shift-close-put-in.grid32.txt +1 -1
  118. package/fixtures/expected/shift-close-put-in.grid48.txt +1 -1
  119. package/fixtures/expected/shift-close-put-in.lines.json +1 -1
  120. package/fixtures/expected/shift-close-take-out.grid32.txt +1 -1
  121. package/fixtures/expected/shift-close-take-out.grid48.txt +1 -1
  122. package/fixtures/expected/shift-close-take-out.lines.json +1 -1
  123. package/fixtures/expected/shift-close.grid32.txt +1 -1
  124. package/fixtures/expected/shift-close.grid48.txt +1 -1
  125. package/fixtures/expected/shift-close.lines.json +1 -1
  126. package/fixtures/expected/shift-interim-card-tips.grid32.txt +34 -0
  127. package/fixtures/expected/shift-interim-card-tips.grid48.txt +31 -0
  128. package/fixtures/expected/shift-interim-card-tips.lines.json +344 -0
  129. package/fixtures/hobex-hps-codes.json +2 -2
  130. package/fixtures/invoice-api-examples/issue-error-deposit.json +39 -0
  131. package/fixtures/invoice-api-examples/issue-invoice-deposit.json +55 -0
  132. package/fixtures/invoice-api.schema.json +65 -2
  133. package/fixtures/invoice-texts.json +11 -1
  134. package/fixtures/pos-texts.json +300 -3
  135. package/fixtures/renames-1.0.json +10 -0
  136. package/fixtures/shift-ablauf-cases.json +4 -4
  137. package/fixtures/shift-cases.json +4 -2
  138. package/fixtures/shift-receipts-card-tips.json +73 -0
  139. package/fixtures/shift-receipts.json +9 -9
  140. package/fixtures/stored/card-tip-cases.json +132 -0
  141. package/fixtures/surface.json +33 -8
  142. package/fixtures/v3/antworten/belege.json +1 -1
  143. package/fixtures/v3/antworten/belegmail.json +1 -1
  144. package/fixtures/v3/antworten/berichte.json +1 -1
  145. package/fixtures/v3/antworten/kasse-belege.json +1 -1
  146. package/fixtures/v3/antworten/kasse.json +240 -3
  147. package/fixtures/v3/antworten/lager.json +1 -1
  148. package/fixtures/v3/antworten/rechnungen.json +1 -1
  149. package/fixtures/v3/antworten/storno.json +1 -1
  150. package/fixtures/v3/stored/belege.json +1 -1
  151. package/fixtures/v3/stored/kasse.json +2 -2
  152. package/fixtures/v3/stored/rechnungen.json +1 -1
  153. package/fixtures/v3/v3-vokabular.json +459 -17
  154. package/fixtures/v3/zahlbetrag-faelle.json +1 -1
  155. package/package.json +1 -1
@@ -6,6 +6,32 @@ const transaction_id_js_1 = require("./transaction-id.js");
6
6
  const transaction_response_js_1 = require("./transaction-response.js");
7
7
  /** Teiler, mit dem das Abbruchbudget aus [HpsPaymentsOptions.resolveBudgetMs] entsteht. */
8
8
  const ABORT_BUDGET_DIVISOR = 6;
9
+ /** Teiler fuer das Budget von [HpsPayments.clarifyPayment]: bei der Vorgabe 15 s. */
10
+ const CLARIFY_BUDGET_DIVISOR = 6;
11
+ /**
12
+ * `true`, wenn die Klaerung von [HpsPayments.pay] bei diesem Grund sicher ein
13
+ * Storno versucht hat: der Grund kommt von der ersten Stoerung beim Host
14
+ * ([offenerGrund]), und JEDER Code mit diesem Grund verlangt ein Storno. Aus
15
+ * der Tabelle gerechnet, damit ein neuer Code ohne Storno die Regel nicht
16
+ * still bricht.
17
+ */
18
+ function stornoSicherVersucht(reason) {
19
+ const codes = transaction_response_js_1.HPS_CODES.filter((c) => c.reason === reason);
20
+ return codes.length > 0 && codes.every((c) => c.sendReversal);
21
+ }
22
+ /** Siehe Tabelle an [HpsPayments.clarifyPayment]. */
23
+ function nachfrageRegel(previous) {
24
+ if (previous === null || (previous !== 'beforeResolve' && previous.clarified === true)) {
25
+ return { genehmigt: false, aufgehoben: false, abgelehnt: false };
26
+ }
27
+ if (previous === 'beforeResolve')
28
+ return { genehmigt: true, aufgehoben: true, abgelehnt: true };
29
+ const reason = previous.reason;
30
+ if (reason !== undefined && (0, transaction_response_js_1.isHostUncertainReason)(reason)) {
31
+ return { genehmigt: false, aufgehoben: stornoSicherVersucht(reason), abgelehnt: false };
32
+ }
33
+ return { genehmigt: true, aufgehoben: true, abgelehnt: true };
34
+ }
9
35
  /**
10
36
  * Teiler fuer das Budget des nachgeschickten Stornos: ein Drittel, bei der
11
37
  * Vorgabe 30 s. Ein Storno geht ueber den Host und darf Sekunden brauchen.
@@ -53,6 +79,7 @@ function createHpsPayments(client, target, options = {}) {
53
79
  const observer = options.observer;
54
80
  const abortBudgetMs = Math.trunc(resolveBudgetMs / ABORT_BUDGET_DIVISOR);
55
81
  const reversalBudgetMs = Math.trunc(resolveBudgetMs / REVERSAL_BUDGET_DIVISOR);
82
+ const clarifyBudgetMs = Math.trunc(resolveBudgetMs / CLARIFY_BUDGET_DIVISOR);
56
83
  function emit(kind, message, transactionId) {
57
84
  if (!observer)
58
85
  return;
@@ -854,5 +881,134 @@ function createHpsPayments(client, target, options = {}) {
854
881
  }
855
882
  return resolveCancel(id, steps, res);
856
883
  }
857
- return { pay, refund, cancel };
884
+ /**
885
+ * Spaete Nachfrage zu einer Zahlung, siehe [HpsPayments.clarifyPayment].
886
+ * Liest nur den Status -- nie ein Abbruch, nie ein Storno. Wirft wie [pay]
887
+ * nur [HpsPreflightError]: Connect hat die Abfrage abgewiesen, bevor sie
888
+ * das Terminal erreichte (etwa `terminal_unreachable`).
889
+ */
890
+ async function clarifyPayment(clarifyOptions) {
891
+ const id = clarifyOptions.transactionId;
892
+ const previous = clarifyOptions.previous;
893
+ const regel = nachfrageRegel(previous);
894
+ // Ein Nachfrage-Ergebnis als Vorgeschichte zaehlt wie "nicht bekannt" --
895
+ // auch sein `reason` (siehe [HpsPaymentResult.clarified]).
896
+ const vorgeschichteBekannt = previous !== null && (previous === 'beforeResolve' || previous.clarified !== true);
897
+ const vorherGrund = vorgeschichteBekannt && typeof previous === 'object' ? previous.reason : undefined;
898
+ const vorherGestoert = vorherGrund !== undefined && (0, transaction_response_js_1.isHostUncertainReason)(vorherGrund);
899
+ const steps = [nachfrageAnfang(previous, regel)];
900
+ emit('resolving', steps[0], id);
901
+ const start = now();
902
+ const elapsedMs = () => now() - start;
903
+ let wait = 0;
904
+ let transportFailures = 0;
905
+ let ohneAussage = 0;
906
+ // Die erste Stoerung beim Host, die der Status in DIESER Nachfrage meldet.
907
+ let stoerung;
908
+ let letzteAntwort;
909
+ // Ein schluessiger Code, der hier nicht entscheiden durfte (`'0'`, `9011`, eine
910
+ // Ablehnung), erklaert den offenen Ausgang nicht -- sonst stuende etwa „genehmigt“
911
+ // als Grund an einem offenen Ergebnis (Geraetetest 11.11.2026, Vorgeschichte unbekannt).
912
+ const offen = () => {
913
+ const erklaerend = letzteAntwort && !(0, transaction_response_js_1.isConclusiveAsStatus)(letzteAntwort) ? letzteAntwort : undefined;
914
+ return {
915
+ ...open(id, steps, letzteAntwort, vorherGrund ?? offenerGrund(stoerung, erklaerend)),
916
+ clarified: true,
917
+ };
918
+ };
919
+ /** Warum eine Antwort, die sonst entschiede, hier nichts sagt. */
920
+ const vorbehalt = () => {
921
+ if (!vorgeschichteBekannt)
922
+ return 'der bisherige Klaerweg ist nicht bekannt, ein Storno kann nachgeschickt sein';
923
+ if (vorherGestoert)
924
+ return `nach der Stoerung beim hobex-Host (${vorherGrund}) kann ein Storno nachgeschickt sein`;
925
+ return 'das Terminal meldet eine Stoerung beim hobex-Host';
926
+ };
927
+ while (elapsedMs() < clarifyBudgetMs) {
928
+ if (wait > 0) {
929
+ await sleep(Math.min(wait, clarifyBudgetMs - elapsedMs()));
930
+ if (elapsedMs() >= clarifyBudgetMs)
931
+ break;
932
+ }
933
+ let status;
934
+ try {
935
+ status = await withinBudget(elapsedMs, () => client.status({ ...target, transactionId: id }), clarifyBudgetMs - elapsedMs());
936
+ transportFailures = 0;
937
+ letzteAntwort = status;
938
+ }
939
+ catch (e) {
940
+ if (e instanceof errors_js_1.HpsPreflightError)
941
+ throw e;
942
+ transportFailures += 1;
943
+ steps.push(`Statusabfrage gescheitert (${transportFailures}): ${describe(e)}`);
944
+ noteUnexpected(e, id);
945
+ if (transportFailures >= maxTransportFailures) {
946
+ steps.push('Terminal antwortet nicht -- Ausgang bleibt offen');
947
+ return offen();
948
+ }
949
+ wait = nextWait(wait);
950
+ continue;
951
+ }
952
+ if ((0, transaction_response_js_1.isHostUncertain)(status))
953
+ stoerung ??= status;
954
+ // Wie in [resolve]: nach einer Stoerung beim Host -- vorher oder jetzt
955
+ // gemeldet -- entscheidet hoechstens noch die Genehmigung.
956
+ const gestoert = vorherGestoert || stoerung !== undefined;
957
+ if ((0, transaction_response_js_1.isApproved)(status)) {
958
+ if (regel.genehmigt) {
959
+ const settled = fromResponse(status, id, steps);
960
+ if (settled)
961
+ return { ...settled, clarified: true };
962
+ }
963
+ steps.push(`Status: genehmigt (${transaction_response_js_1.APPROVED_CODE}) -- ${vorbehalt()}, keine Aussage`);
964
+ }
965
+ else if ((0, transaction_response_js_1.isCanceled)(status) && regel.aufgehoben && (vorherGestoert || stoerung === undefined)) {
966
+ steps.push(`Status: Zahlung aufgehoben (${transaction_response_js_1.TRANSACTION_CANCELED_CODE}) -- es ist nichts belastet`);
967
+ emit('resolved', steps[steps.length - 1], id);
968
+ return { outcome: 'declined', transactionId: id, response: status, reason: 'canceled', clarified: true, steps: [...steps] };
969
+ }
970
+ else if (regel.abgelehnt && !gestoert && (0, transaction_response_js_1.isConclusiveAsStatus)(status)) {
971
+ const settled = fromResponse(status, id, steps);
972
+ if (settled)
973
+ return { ...settled, clarified: true };
974
+ }
975
+ else if ((0, transaction_response_js_1.isConclusiveAsStatus)(status)) {
976
+ const info = (0, transaction_response_js_1.hpsCodeInfo)(status.responseCode);
977
+ const was = (0, transaction_response_js_1.isCanceled)(status) ? 'aufgehoben' : 'abgelehnt';
978
+ steps.push(`Status: ${was} (${info.code} "${info.title}") -- ${vorbehalt()}, keine Aussage`);
979
+ }
980
+ else {
981
+ steps.push(statusOhneErgebnis(status) ?? 'Status: noch kein Ergebniscode');
982
+ }
983
+ ohneAussage += 1;
984
+ if (ohneAussage >= 2) {
985
+ steps.push('Statusabfrage zweimal ohne Aussage -- das Terminal kann es nicht sagen, Ausgang bleibt offen');
986
+ return offen();
987
+ }
988
+ wait = nextWait(wait);
989
+ }
990
+ steps.push('Ausgang bleibt offen');
991
+ return offen();
992
+ }
993
+ return { pay, refund, cancel, clarifyPayment };
994
+ }
995
+ /** Erster Eintrag im Nachweis einer spaeten Nachfrage: was sie entscheiden darf. */
996
+ function nachfrageAnfang(previous, regel) {
997
+ const anfang = 'Spaete Nachfrage beim Terminal -- nur lesend, ohne Abbruch und ohne Storno';
998
+ if (previous === null)
999
+ return `${anfang}; der bisherige Klaerweg ist nicht bekannt, keine Antwort entscheidet`;
1000
+ if (previous !== 'beforeResolve' && previous.clarified === true) {
1001
+ return `${anfang}; als Vorgeschichte kam das Ergebnis einer frueheren Nachfrage, nicht das der Zahlung -- `
1002
+ + 'der Klaerweg der Zahlung bleibt unbekannt, keine Antwort entscheidet';
1003
+ }
1004
+ if (previous === 'beforeResolve') {
1005
+ return `${anfang}; die Klaerung der Zahlung hatte nicht begonnen, es wurde kein Storno nachgeschickt`;
1006
+ }
1007
+ if (previous.reason !== undefined && (0, transaction_response_js_1.isHostUncertainReason)(previous.reason)) {
1008
+ return regel.aufgehoben
1009
+ ? `${anfang}; nach der Stoerung beim hobex-Host (${previous.reason}) wurde ein Storno versucht, `
1010
+ + `entscheidet nur "aufgehoben" (${transaction_response_js_1.TRANSACTION_CANCELED_CODE})`
1011
+ : `${anfang}; nach der Stoerung beim hobex-Host (${previous.reason}) entscheidet keine Antwort`;
1012
+ }
1013
+ return `${anfang}; die Klaerung der Zahlung endete offen ohne Stoerung beim hobex-Host`;
858
1014
  }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Technik von hobex fuer Haendler mit hobex-Terminal, rund um die Uhr
3
+ * erreichbar. Quelle: Angabe des Inhabers am 11.11.2026 („hobex Technik
4
+ * 0662 225588“); es ist die Durchwahl 88 der Zentrale +43 662 2255-0 (hobex,
5
+ * „Zahlen & Fakten“).
6
+ *
7
+ * `phone` international (fuer einen `tel:`-Link nur Ziffern und `+` daraus
8
+ * nehmen), `display` so, wie man sie in Oesterreich liest und waehlt.
9
+ * Gedacht fuer die Stellen, an denen hobex helfen kann: Stoerung beim
10
+ * hobex-Host, Terminal nicht betriebsbereit, TID passt nicht, das Terminal hat
11
+ * geantwortet und kennt den Ausgang nicht -- nie fuer Fehler im eigenen Netz
12
+ * oder an Kasseneck Connect. Die Kasse zeigt sie in einem eigenen Fenster mit
13
+ * den Angaben, die hobex fragt (Beschriftungen `hobex_help.*` im Katalog).
14
+ */
15
+ export declare const HOBEX_SUPPORT: Readonly<{
16
+ readonly phone: "+43 662 2255-88";
17
+ readonly display: "0662 2255-88";
18
+ readonly availability: "24/7";
19
+ }>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HOBEX_SUPPORT = void 0;
4
+ /**
5
+ * Technik von hobex fuer Haendler mit hobex-Terminal, rund um die Uhr
6
+ * erreichbar. Quelle: Angabe des Inhabers am 11.11.2026 („hobex Technik
7
+ * 0662 225588“); es ist die Durchwahl 88 der Zentrale +43 662 2255-0 (hobex,
8
+ * „Zahlen & Fakten“).
9
+ *
10
+ * `phone` international (fuer einen `tel:`-Link nur Ziffern und `+` daraus
11
+ * nehmen), `display` so, wie man sie in Oesterreich liest und waehlt.
12
+ * Gedacht fuer die Stellen, an denen hobex helfen kann: Stoerung beim
13
+ * hobex-Host, Terminal nicht betriebsbereit, TID passt nicht, das Terminal hat
14
+ * geantwortet und kennt den Ausgang nicht -- nie fuer Fehler im eigenen Netz
15
+ * oder an Kasseneck Connect. Die Kasse zeigt sie in einem eigenen Fenster mit
16
+ * den Angaben, die hobex fragt (Beschriftungen `hobex_help.*` im Katalog).
17
+ */
18
+ exports.HOBEX_SUPPORT = Object.freeze({
19
+ phone: '+43 662 2255-88',
20
+ display: '0662 2255-88',
21
+ availability: '24/7',
22
+ });
@@ -59,7 +59,7 @@ const tecs_codes_js_1 = require("./tecs-codes.js");
59
59
  /** Der Satz fuer den Bediener je Grund, deutsch. */
60
60
  exports.HPS_REASON_HINTS = {
61
61
  approved: 'Vom Terminal genehmigt.',
62
- approvedWithCondition: 'Das Terminal meldet eine Genehmigung mit Vorbehalt (etwa nur über einen Teilbetrag). Ob und in welcher Höhe belastet wurde, bitte am Terminalbeleg prüfen – nicht erneut kassieren, bevor es geklärt ist.',
62
+ approvedWithCondition: 'Das Terminal meldet eine Genehmigung mit Vorbehalt (etwa nur über einen Teilbetrag). Ob und in welcher Höhe belastet wurde, weiß hobex – nicht erneut kassieren, bevor es geklärt ist.',
63
63
  aborted: 'Der Vorgang wurde abgebrochen. Es wurde kein Geld bewegt.',
64
64
  noCard: 'Es wurde keine Karte vorgehalten. Es wurde kein Geld bewegt – bitte erneut versuchen.',
65
65
  cardReadFailed: 'Die Karte konnte nicht gelesen werden. Es wurde kein Geld bewegt – bitte erneut versuchen, notfalls die Karte stecken statt auflegen.',
@@ -43,4 +43,4 @@
43
43
  export { StripeLinkMode, type StripeLinkModeKey } from '../enums/index.js';
44
44
  export { type CreateStripeLinkOptions, type StripeCaptureResult, createStripeLink, stripeCaptureIntent, } from './stripe.js';
45
45
  export { type HobexPayOptions, type HobexRefundOptions, type HobexTransactionIdOptions, hobexPay, hobexRefund, newHobexTransactionId, } from './hobex.js';
46
- export { type CardPaymentOutcome, type HpsConnectClient, type HpsConnectCancelOptions, type HpsConnectClientOptions, type HpsConnectFetch, type HpsConnectFetchResponse, type HpsConnectPaymentOptions, type HpsConnectRefundOptions, type HpsConnectTarget, type HpsConnectTransactionOptions, type HpsCancelOptions, type HpsCode, type HpsCodeEffect, type HpsCodeReason, type HpsCodeSource, type HpsMeasuredCode, type HpsPaymentEvent, type HpsPaymentEventKind, type HpsPaymentObserver, type HpsPaymentOptions, type HpsPayments, type HpsPaymentResult, type HpsPaymentsOptions, type HpsRefundOptions, type HpsTransactionIdGeneratorOptions, type HpsTransactionResponse, ABORTED_CODE, APPROVED_CODE, CARD_NOT_PRESENT_CODE, createHpsConnectClient, createHpsPayments, createHpsTransactionIdGenerator, HPS_CODES, HPS_MEASURED_CODES, HPS_REASON_HINTS, hpsCodeInfo, hpsCodeReason, hobexReceiptFromHps, HpsClarifyTimeoutError, HpsConnectException, HpsConnectTerminalError, HpsConnectTransportError, HpsPreflightError, HpsTransactionIdError, INVALID_TRANSACTION_CODE, isApproved, isConclusive, isConclusiveAsStatus, isHostUncertain, isHostUncertainResult, isInProgress, isNoStatement, isNotAbortable, isTechnicalError, isUnknownCode, isValidHpsTransactionId, mayRetrySafely, MAX_TRANSACTION_ID_LENGTH, newHpsTransactionId, NOT_ABORTABLE_CODE, NO_STATEMENT_CODE, parseHpsTransactionResponse, PREFLIGHT_CONNECT_CODES, TERMINAL_UNREACHABLE_CONNECT_CODES, TECHNICAL_ERROR_CODE, NOT_FOUND_HTTP_STATUS, TERMINAL_BUSY_HTTP_STATUS, TRANSACTION_CANCELED_CODE, } from './hobex-hps/index.js';
46
+ export { type CardPaymentOutcome, type HpsConnectClient, type HpsConnectCancelOptions, type HpsConnectClientOptions, type HpsConnectFetch, type HpsConnectFetchResponse, type HpsConnectPaymentOptions, type HpsConnectRefundOptions, type HpsConnectTarget, type HpsConnectTransactionOptions, type HpsCancelOptions, type HpsClarifyOptions, type HpsCode, type HpsCodeEffect, type HpsCodeReason, type HpsCodeSource, type HpsMeasuredCode, type HpsPaymentEvent, type HpsPaymentEventKind, type HpsPaymentObserver, type HpsPaymentOptions, type HpsPayments, type HpsPaymentResult, type HpsPaymentsOptions, type HpsRefundOptions, type HpsTransactionIdGeneratorOptions, type HpsTransactionResponse, ABORTED_CODE, APPROVED_CODE, CARD_NOT_PRESENT_CODE, createHpsConnectClient, createHpsPayments, createHpsTransactionIdGenerator, HOBEX_SUPPORT, HPS_CODES, HPS_MEASURED_CODES, HPS_REASON_HINTS, hpsCodeInfo, hpsCodeReason, hobexReceiptFromHps, HpsClarifyTimeoutError, HpsConnectException, HpsConnectTerminalError, HpsConnectTransportError, HpsPreflightError, HpsTransactionIdError, INVALID_TRANSACTION_CODE, isApproved, isConclusive, isConclusiveAsStatus, isHostUncertain, isHostUncertainResult, isInProgress, isNoStatement, isNotAbortable, isTechnicalError, isUnknownCode, isValidHpsTransactionId, mayRetrySafely, MAX_TRANSACTION_ID_LENGTH, newHpsTransactionId, NOT_ABORTABLE_CODE, NO_STATEMENT_CODE, parseHpsTransactionResponse, PREFLIGHT_CONNECT_CODES, TERMINAL_UNREACHABLE_CONNECT_CODES, TECHNICAL_ERROR_CODE, NOT_FOUND_HTTP_STATUS, TERMINAL_BUSY_HTTP_STATUS, TRANSACTION_CANCELED_CODE, } from './hobex-hps/index.js';
@@ -42,7 +42,7 @@
42
42
  * nichts zu entscheiden.
43
43
  */
44
44
  Object.defineProperty(exports, "__esModule", { value: true });
45
- exports.TRANSACTION_CANCELED_CODE = exports.TERMINAL_BUSY_HTTP_STATUS = exports.NOT_FOUND_HTTP_STATUS = exports.TECHNICAL_ERROR_CODE = exports.TERMINAL_UNREACHABLE_CONNECT_CODES = exports.PREFLIGHT_CONNECT_CODES = exports.parseHpsTransactionResponse = exports.NO_STATEMENT_CODE = exports.NOT_ABORTABLE_CODE = exports.newHpsTransactionId = exports.MAX_TRANSACTION_ID_LENGTH = exports.mayRetrySafely = exports.isValidHpsTransactionId = exports.isUnknownCode = exports.isTechnicalError = exports.isNotAbortable = exports.isNoStatement = exports.isInProgress = exports.isHostUncertainResult = exports.isHostUncertain = exports.isConclusiveAsStatus = exports.isConclusive = exports.isApproved = exports.INVALID_TRANSACTION_CODE = exports.HpsTransactionIdError = exports.HpsPreflightError = exports.HpsConnectTransportError = exports.HpsConnectTerminalError = exports.HpsConnectException = exports.HpsClarifyTimeoutError = exports.hobexReceiptFromHps = exports.hpsCodeReason = exports.hpsCodeInfo = exports.HPS_REASON_HINTS = exports.HPS_MEASURED_CODES = exports.HPS_CODES = exports.createHpsTransactionIdGenerator = exports.createHpsPayments = exports.createHpsConnectClient = exports.CARD_NOT_PRESENT_CODE = exports.APPROVED_CODE = exports.ABORTED_CODE = exports.newHobexTransactionId = exports.hobexRefund = exports.hobexPay = exports.stripeCaptureIntent = exports.createStripeLink = exports.StripeLinkMode = void 0;
45
+ exports.TRANSACTION_CANCELED_CODE = exports.TERMINAL_BUSY_HTTP_STATUS = exports.NOT_FOUND_HTTP_STATUS = exports.TECHNICAL_ERROR_CODE = exports.TERMINAL_UNREACHABLE_CONNECT_CODES = exports.PREFLIGHT_CONNECT_CODES = exports.parseHpsTransactionResponse = exports.NO_STATEMENT_CODE = exports.NOT_ABORTABLE_CODE = exports.newHpsTransactionId = exports.MAX_TRANSACTION_ID_LENGTH = exports.mayRetrySafely = exports.isValidHpsTransactionId = exports.isUnknownCode = exports.isTechnicalError = exports.isNotAbortable = exports.isNoStatement = exports.isInProgress = exports.isHostUncertainResult = exports.isHostUncertain = exports.isConclusiveAsStatus = exports.isConclusive = exports.isApproved = exports.INVALID_TRANSACTION_CODE = exports.HpsTransactionIdError = exports.HpsPreflightError = exports.HpsConnectTransportError = exports.HpsConnectTerminalError = exports.HpsConnectException = exports.HpsClarifyTimeoutError = exports.hobexReceiptFromHps = exports.hpsCodeReason = exports.hpsCodeInfo = exports.HPS_REASON_HINTS = exports.HPS_MEASURED_CODES = exports.HPS_CODES = exports.HOBEX_SUPPORT = exports.createHpsTransactionIdGenerator = exports.createHpsPayments = exports.createHpsConnectClient = exports.CARD_NOT_PRESENT_CODE = exports.APPROVED_CODE = exports.ABORTED_CODE = exports.newHobexTransactionId = exports.hobexRefund = exports.hobexPay = exports.stripeCaptureIntent = exports.createStripeLink = exports.StripeLinkMode = void 0;
46
46
  var index_js_1 = require("../enums/index.js");
47
47
  Object.defineProperty(exports, "StripeLinkMode", { enumerable: true, get: function () { return index_js_1.StripeLinkMode; } });
48
48
  var stripe_js_1 = require("./stripe.js");
@@ -59,6 +59,7 @@ Object.defineProperty(exports, "CARD_NOT_PRESENT_CODE", { enumerable: true, get:
59
59
  Object.defineProperty(exports, "createHpsConnectClient", { enumerable: true, get: function () { return index_js_2.createHpsConnectClient; } });
60
60
  Object.defineProperty(exports, "createHpsPayments", { enumerable: true, get: function () { return index_js_2.createHpsPayments; } });
61
61
  Object.defineProperty(exports, "createHpsTransactionIdGenerator", { enumerable: true, get: function () { return index_js_2.createHpsTransactionIdGenerator; } });
62
+ Object.defineProperty(exports, "HOBEX_SUPPORT", { enumerable: true, get: function () { return index_js_2.HOBEX_SUPPORT; } });
62
63
  Object.defineProperty(exports, "HPS_CODES", { enumerable: true, get: function () { return index_js_2.HPS_CODES; } });
63
64
  Object.defineProperty(exports, "HPS_MEASURED_CODES", { enumerable: true, get: function () { return index_js_2.HPS_MEASURED_CODES; } });
64
65
  Object.defineProperty(exports, "HPS_REASON_HINTS", { enumerable: true, get: function () { return index_js_2.HPS_REASON_HINTS; } });
@@ -21,7 +21,7 @@ import { KasseneckApiError } from '../client/errors.js';
21
21
  * ueber `KasseneckApiError.code` lesbar; die Kasse braucht dafuer einen
22
22
  * Rueckfallzweig.
23
23
  */
24
- export declare const POS_ERROR_CODES: readonly ["account_not_found", "action_confirmation_required", "admin_required", "after_count_not_permitted", "api_not_approved", "app_check_invalid", "app_check_missing", "article_not_found", "article_not_in_scope", "article_not_tracked", "cash_movement_exceeds_balance", "cashregister_not_assigned", "cashregister_not_found", "cashregister_token_invalid", "cashregister_token_missing", "comment_required", "count_already_voided", "count_not_found", "deposit_follows_item", "deposit_not_enabled", "deposit_return_not_offered", "deposit_set_by_server", "deposit_type_in_use", "deposit_type_not_found", "deposit_type_not_issued", "device_not_found", "dialect_mismatch", "drawer_inactive", "drawer_not_found", "filler_role_required", "idempotency_conflict", "idempotency_key_required", "internal_translation_error", "invalid_amount", "invalid_cursor", "invalid_denominations", "invalid_deposit", "invalid_deposit_quantity", "invalid_discount_preset", "invalid_item_kind", "invalid_movement_type", "invalid_quantity", "invalid_serial", "live_not_enabled", "location_inactive", "location_not_found", "logo_invalid", "logo_invalid_type", "logo_too_large", "method_not_allowed", "mfa_required", "module_inactive", "not_found", "not_permitted", "note_required", "password_change_required", "print_job_not_found", "print_layout_failed", "printer_not_found", "recount_exhausted", "register_user_no_business", "register_user_not_allowed", "register_user_not_found", "response_translation_failed", "second_factor_required", "serial_already_counted", "serial_not_allowed", "serial_required", "server_error", "session_expired", "session_other_cashregister", "shift_already_open", "shift_closed", "shift_mode_off", "shift_not_open", "stocktake_closed", "stocktake_closing", "stocktake_not_found", "stocktake_not_open", "tip_payout_exceeds_claim", "too_many_counts", "too_many_deposit_types", "transfer_same_drawer", "unauthorized", "user_disabled", "user_verification_failed", "validation", "route_missing"];
24
+ export declare const POS_ERROR_CODES: readonly ["account_not_found", "action_confirmation_required", "admin_required", "after_count_not_permitted", "api_not_approved", "app_check_invalid", "app_check_missing", "article_not_found", "article_not_in_scope", "article_not_tracked", "cash_movement_exceeds_balance", "cashregister_not_assigned", "cashregister_not_found", "cashregister_token_invalid", "cashregister_token_missing", "comment_required", "count_already_voided", "count_not_found", "deposit_follows_item", "deposit_not_enabled", "deposit_return_not_offered", "deposit_set_by_server", "deposit_type_in_use", "deposit_type_not_found", "deposit_type_not_issued", "device_not_found", "dialect_mismatch", "drawer_inactive", "drawer_not_found", "filler_role_required", "idempotency_conflict", "idempotency_key_required", "internal_translation_error", "invalid_amount", "invalid_cursor", "invalid_denominations", "invalid_deposit", "invalid_deposit_quantity", "invalid_discount_preset", "invalid_item_kind", "invalid_movement_type", "invalid_quantity", "invalid_serial", "live_not_enabled", "location_inactive", "location_not_found", "logo_invalid", "logo_invalid_type", "logo_too_large", "method_not_allowed", "mfa_required", "module_inactive", "not_a_person_login", "not_found", "not_permitted", "note_required", "password_change_required", "print_job_not_found", "print_layout_failed", "printer_not_found", "recount_exhausted", "register_user_no_business", "register_user_not_allowed", "register_user_not_found", "response_translation_failed", "second_factor_required", "serial_already_counted", "serial_not_allowed", "serial_required", "server_error", "session_expired", "session_other_cashregister", "shift_already_open", "shift_closed", "shift_mode_off", "shift_not_open", "stocktake_closed", "stocktake_closing", "stocktake_not_found", "stocktake_not_open", "tip_payout_exceeds_claim", "too_many_counts", "too_many_deposit_types", "transfer_same_drawer", "unauthorized", "user_disabled", "user_verification_failed", "validation", "route_missing"];
25
25
  export type PosErrorCode = typeof POS_ERROR_CODES[number];
26
26
  export declare function isPosErrorCode(value: unknown): value is PosErrorCode;
27
27
  /** Der Code eines geworfenen Fehlers, wenn er in [POS_ERROR_CODES] steht; sonst `undefined`. */
@@ -81,6 +81,7 @@ exports.POS_ERROR_CODES = Object.freeze([
81
81
  'method_not_allowed',
82
82
  'mfa_required',
83
83
  'module_inactive',
84
+ 'not_a_person_login',
84
85
  'not_found',
85
86
  'not_permitted',
86
87
  'note_required',
@@ -6,7 +6,7 @@
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, POS_BUSINESS_OPTIONAL_CHOICES, POS_DEVICE_OPTIONAL_CHOICES, posTipKeptByDefault, posCustomDiscountAllowed, posTipKeptMode, tipKeptFor, type TipKeptDecision, DISCOUNT_PRESET_KIND, type PosDiscountPreset, type PosDiscountPresetKind, POS_BUSINESS_OPTIONAL_LISTS, 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, TIP_KEPT_MODE, type PosTipKeptMode, 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';
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, posCustomDiscountAllowed, posTipKeptMode, posTipCardKeptByDefault, posTipCardKeptMode, posTipSelfPayout, tipKeptFor, type TipKeptDecision, type TipPaymentKind, DISCOUNT_PRESET_KIND, type PosDiscountPreset, type PosDiscountPresetKind, POS_BUSINESS_OPTIONAL_LISTS, 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, TIP_KEPT_MODE, TIP_CARD_KEPT_MODE, type PosTipKeptMode, 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
12
  export { ADD_ONS_MAX, ADD_ON_BLOCK_REASONS, type AddOnBlockReason, isSelectableAddOn, addOnsFor, addOnReferencesValid, addOnsOfItem, addOnRemap, addOnDisplayOrder, orderAddOnLines, } from './zusaetze.js';
@@ -19,7 +19,7 @@ export { distributeDiscount } from '../receipt/discount.js';
19
19
  export { cancelScopeOf, receiptsScopeOf, stockViewOf, voucherPermsOf, depositReturnOf, type VoucherPerms, type RegisterScope, type RegisterUserPerms } from '../register/pairing.js';
20
20
  export { type NetworkPrinter, type PrintJob, type PrintJobStatus, PRINT_JOB_STATUSES, type PrintJobSource, PRINT_JOB_SOURCES, isPrintJobFinished, type CreatePrintJobOptions, listMyPrinters, createPrintJob, getPrintJob, } from './drucker.js';
21
21
  export { type PrinterCatalogEntry, type PrinterCatalogValues, type PrinterCatalogValueField, type PrinterCatalogApproval, type PrinterDeviceTest, type PrinterCatalogSettings, type PrinterCatalogDeviceSettings, type PrinterCatalogCut, type PrinterCatalogQrMode, printerCatalogEntry, printerCatalogSettings, } from './drucker-katalog.js';
22
- export { listMyTipRecipients } from './trinkgeld.js';
22
+ export { listMyTipRecipients, getMyTipBalance, tipStatus, type GetMyTipBalanceOptions, type TipStatus, type TipStatusKind } from './trinkgeld.js';
23
23
  export { posDiscountPresets, discountPresetChipText, discountChipsFromPresets, checkDiscountPresets, discountBlockLines, INVALID_DISCOUNT_PRESET, DISCOUNT_PRESETS_MAX, DISCOUNT_PRESET_NAME_MAX, DISCOUNT_PRESET_PERCENT_BP, DISCOUNT_PRESET_AMOUNT_CENTS, DISCOUNT_PRESET_MESSAGES, type DiscountPresetReason, type DiscountPresetError, type DiscountPresetsCheck, type DiscountBlockLine, type DiscountTotal, } from './rabatt-vorlagen.js';
24
24
  export { depFolderName } from './dep.js';
25
25
  export { type RegisterInspectionInfo, type RegisterInspectionSignature, type InspectionSignatureStatus, type InspectionInfoRow, type InspectionInfoRowKey, type InspectionInfoSection, type InspectionInfoLinesOptions, getRegisterInspectionInfo, inspectionInfoRows, inspectionInfoLines, } from './kasseninfo.js';
@@ -31,9 +31,9 @@ export type { Stocktake, StocktakeItem, StocktakeCount, StocktakeCountResult, St
31
31
  export type { StocktakeStatus } from '../inventory/vertrag.js';
32
32
  export { VOUCHER_KINDS, VOUCHER_STATUSES, checkVoucher, reprintVoucherLabel, VOUCHER_SETTINGS_DEFAULTS, posVoucherSettingsFromWire, VOUCHER_PAYOUTS, VOUCHER_TYPE_KINDS, VOUCHER_AMOUNT_MODES, VOUCHER_TYPE_VALIDITY_PATTERNS, EXTERNAL_VOUCHERS, type PosExternalVouchers, 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';
33
33
  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';
34
- 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 ShiftDiscount, 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';
34
+ 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 ShiftDiscount, type ShiftRunningTotals, type ShiftReconciliation, type Shift, type TipClaim, type DrawerOpening, type DrawerState, type CashMovement, type ShiftReceiptHeader, type ShiftReceiptMovement, type ShiftReceiptTip, TIP_CLAIM_SCOPES, type TipClaimScope, type TipBalance, type TipBalanceOtherDrawer, type ShiftSummaryReceipt, type CashMovementReceipt, type ShiftReceipt, type OpenShiftResult, type CashMovementResult, type DrawerOpeningsResult, type ShiftReport, type CloseShiftResult, } from './schicht-typen.js';
35
35
  export { type ShiftReceiptLayoutOptions, shiftReceiptLayout, cashMovementLayout } from '../receipt/shift-sheet.js';
36
36
  export { RECEIPT_OUTPUT_KINDS, RECEIPT_OUTPUT_RESULTS, type ReceiptOutputKind, type ReceiptOutputResult } from '../models/receipt-output.js';
37
37
  export { RETURN_DISPOSITIONS, isReturnDisposition, type ReturnDisposition } from '../models/cancellation.js';
38
- 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, DEPOSIT_ERROR_MESSAGES, depositErrorMessage, EXTERNAL_VOUCHER_TILE_MESSAGES, EXTERNAL_VOUCHER_ARTICLE_MESSAGES, externalVoucherArticleErrorMessage, EXTERNAL_VOUCHERS_LABELS, EXTERNAL_VOUCHER_KIND_LABELS, TIP_KEPT_MODE_LABELS, 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';
38
+ 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, DEPOSIT_ERROR_MESSAGES, depositErrorMessage, EXTERNAL_VOUCHER_TILE_MESSAGES, EXTERNAL_VOUCHER_ARTICLE_MESSAGES, externalVoucherArticleErrorMessage, EXTERNAL_VOUCHERS_LABELS, EXTERNAL_VOUCHER_KIND_LABELS, TIP_KEPT_MODE_LABELS, TIP_CLAIM_SCOPE_LABELS, 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';
39
39
  export { roundUpSuggestions } from './aufrunden.js';
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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_KEPT_MODE = 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.POS_BUSINESS_OPTIONAL_LISTS = exports.DISCOUNT_PRESET_KIND = exports.tipKeptFor = exports.posTipKeptMode = exports.posCustomDiscountAllowed = 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.withDepositLines = exports.viennaDay = exports.depositAmountOn = exports.depositsFor = exports.cashRegisterDepositFromWire = exports.depositEntriesFromWire = exports.posDepositSettingsFromWire = exports.DEPOSIT_ON_PREMISES_DEFAULTS = exports.DEPOSIT_RETURN_MODES = exports.DEPOSIT_TYPES = exports.DEPOSIT_KINDS = 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 = exports.LOGO_SCALE = exports.WATERMARK_STRENGTH = exports.WATERMARK_SIDE = exports.DISCOUNT = exports.AUTO_LOGOUT_MINUTES = exports.TILE_STYLE = void 0;
5
- exports.inspectionInfoRows = exports.getRegisterInspectionInfo = exports.depFolderName = exports.DISCOUNT_PRESET_MESSAGES = exports.DISCOUNT_PRESET_AMOUNT_CENTS = exports.DISCOUNT_PRESET_PERCENT_BP = exports.DISCOUNT_PRESET_NAME_MAX = exports.DISCOUNT_PRESETS_MAX = exports.INVALID_DISCOUNT_PRESET = exports.discountBlockLines = exports.checkDiscountPresets = exports.discountChipsFromPresets = exports.discountPresetChipText = exports.posDiscountPresets = exports.listMyTipRecipients = exports.printerCatalogSettings = exports.printerCatalogEntry = exports.getPrintJob = exports.createPrintJob = exports.listMyPrinters = exports.isPrintJobFinished = exports.PRINT_JOB_SOURCES = exports.PRINT_JOB_STATUSES = exports.depositReturnOf = 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.OWN_VOUCHER_CODE_SHAPES = exports.ownVoucherCodeShape = exports.externalVoucherTileBlock = exports.checkExternalVoucherArticle = exports.checkExternalVoucherValue = exports.isArticleExternalVoucher = exports.EXTERNAL_VOUCHER_ARTICLE_REASONS = exports.ARTICLE_EXTERNAL_VOUCHER_VAT_RATES = exports.ARTICLE_EXTERNAL_VOUCHER_INVALID = exports.ARTICLE_EXTERNAL_VOUCHER_TYPES = exports.depositReturnLine = void 0;
6
- exports.cashMovementLayout = exports.shiftReceiptLayout = exports.DIFFERENCE_PART_TYPES = exports.EXPECTED_PART_KEYS = 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.EXTERNAL_VOUCHERS = 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.matchReturnCode = exports.listReturnCodes = exports.learnReturnCode = exports.reportConnectState = exports.inspectionInfoLines = void 0;
7
- exports.roundUpSuggestions = exports.receiptOutputLabel = exports.RETURN_DISPOSITION_LABELS = exports.labelText = exports.LABELS = exports.TIP_KEPT_MODE_LABELS = exports.EXTERNAL_VOUCHER_KIND_LABELS = exports.EXTERNAL_VOUCHERS_LABELS = exports.externalVoucherArticleErrorMessage = exports.EXTERNAL_VOUCHER_ARTICLE_MESSAGES = exports.EXTERNAL_VOUCHER_TILE_MESSAGES = exports.depositErrorMessage = exports.DEPOSIT_ERROR_MESSAGES = 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 = void 0;
3
+ 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_CARD_KEPT_MODE = exports.TIP_KEPT_MODE = 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.POS_BUSINESS_OPTIONAL_LISTS = exports.DISCOUNT_PRESET_KIND = exports.tipKeptFor = exports.posTipSelfPayout = exports.posTipCardKeptMode = exports.posTipCardKeptByDefault = exports.posTipKeptMode = exports.posCustomDiscountAllowed = 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.cashRegisterDepositFromWire = exports.depositEntriesFromWire = exports.posDepositSettingsFromWire = exports.DEPOSIT_ON_PREMISES_DEFAULTS = exports.DEPOSIT_RETURN_MODES = exports.DEPOSIT_TYPES = exports.DEPOSIT_KINDS = 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 = 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 = void 0;
5
+ exports.DISCOUNT_PRESET_NAME_MAX = exports.DISCOUNT_PRESETS_MAX = exports.INVALID_DISCOUNT_PRESET = exports.discountBlockLines = exports.checkDiscountPresets = exports.discountChipsFromPresets = exports.discountPresetChipText = exports.posDiscountPresets = exports.tipStatus = exports.getMyTipBalance = exports.listMyTipRecipients = exports.printerCatalogSettings = exports.printerCatalogEntry = exports.getPrintJob = exports.createPrintJob = exports.listMyPrinters = exports.isPrintJobFinished = exports.PRINT_JOB_SOURCES = exports.PRINT_JOB_STATUSES = exports.depositReturnOf = 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.OWN_VOUCHER_CODE_SHAPES = exports.ownVoucherCodeShape = exports.externalVoucherTileBlock = exports.checkExternalVoucherArticle = exports.checkExternalVoucherValue = exports.isArticleExternalVoucher = exports.EXTERNAL_VOUCHER_ARTICLE_REASONS = exports.ARTICLE_EXTERNAL_VOUCHER_VAT_RATES = exports.ARTICLE_EXTERNAL_VOUCHER_INVALID = exports.ARTICLE_EXTERNAL_VOUCHER_TYPES = exports.depositReturnLine = exports.withDepositLines = exports.viennaDay = exports.depositAmountOn = exports.depositsFor = void 0;
6
+ 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.EXTERNAL_VOUCHERS = 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.matchReturnCode = exports.listReturnCodes = exports.learnReturnCode = exports.reportConnectState = exports.inspectionInfoLines = exports.inspectionInfoRows = exports.getRegisterInspectionInfo = exports.depFolderName = exports.DISCOUNT_PRESET_MESSAGES = exports.DISCOUNT_PRESET_AMOUNT_CENTS = exports.DISCOUNT_PRESET_PERCENT_BP = void 0;
7
+ exports.roundUpSuggestions = exports.receiptOutputLabel = exports.RETURN_DISPOSITION_LABELS = exports.labelText = exports.LABELS = exports.TIP_CLAIM_SCOPE_LABELS = exports.TIP_KEPT_MODE_LABELS = exports.EXTERNAL_VOUCHER_KIND_LABELS = exports.EXTERNAL_VOUCHERS_LABELS = exports.externalVoucherArticleErrorMessage = exports.EXTERNAL_VOUCHER_ARTICLE_MESSAGES = exports.EXTERNAL_VOUCHER_TILE_MESSAGES = exports.depositErrorMessage = exports.DEPOSIT_ERROR_MESSAGES = 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.TIP_CLAIM_SCOPES = exports.DIFFERENCE_PART_TYPES = exports.EXPECTED_PART_KEYS = exports.AFTER_COUNT_TYPES = exports.SHIFT_RECEIPT_KINDS = void 0;
8
8
  /**
9
9
  * Kachel-Kasse: Einstellungen, Artikelgruppen/Artikel fuer Kacheln,
10
10
  * Rabattverteilung, Drucker, Trinkgeld-Empfaenger, Lager (Standorte, Bestand,
@@ -25,6 +25,9 @@ Object.defineProperty(exports, "POS_DEVICE_OPTIONAL_CHOICES", { enumerable: true
25
25
  Object.defineProperty(exports, "posTipKeptByDefault", { enumerable: true, get: function () { return settings_js_1.posTipKeptByDefault; } });
26
26
  Object.defineProperty(exports, "posCustomDiscountAllowed", { enumerable: true, get: function () { return settings_js_1.posCustomDiscountAllowed; } });
27
27
  Object.defineProperty(exports, "posTipKeptMode", { enumerable: true, get: function () { return settings_js_1.posTipKeptMode; } });
28
+ Object.defineProperty(exports, "posTipCardKeptByDefault", { enumerable: true, get: function () { return settings_js_1.posTipCardKeptByDefault; } });
29
+ Object.defineProperty(exports, "posTipCardKeptMode", { enumerable: true, get: function () { return settings_js_1.posTipCardKeptMode; } });
30
+ Object.defineProperty(exports, "posTipSelfPayout", { enumerable: true, get: function () { return settings_js_1.posTipSelfPayout; } });
28
31
  Object.defineProperty(exports, "tipKeptFor", { enumerable: true, get: function () { return settings_js_1.tipKeptFor; } });
29
32
  Object.defineProperty(exports, "DISCOUNT_PRESET_KIND", { enumerable: true, get: function () { return settings_js_1.DISCOUNT_PRESET_KIND; } });
30
33
  Object.defineProperty(exports, "POS_BUSINESS_OPTIONAL_LISTS", { enumerable: true, get: function () { return settings_js_1.POS_BUSINESS_OPTIONAL_LISTS; } });
@@ -48,6 +51,7 @@ Object.defineProperty(exports, "TIP_MODE", { enumerable: true, get: function ()
48
51
  Object.defineProperty(exports, "TIP_KINDS", { enumerable: true, get: function () { return settings_js_1.TIP_KINDS; } });
49
52
  Object.defineProperty(exports, "TIP_START", { enumerable: true, get: function () { return settings_js_1.TIP_START; } });
50
53
  Object.defineProperty(exports, "TIP_KEPT_MODE", { enumerable: true, get: function () { return settings_js_1.TIP_KEPT_MODE; } });
54
+ Object.defineProperty(exports, "TIP_CARD_KEPT_MODE", { enumerable: true, get: function () { return settings_js_1.TIP_CARD_KEPT_MODE; } });
51
55
  Object.defineProperty(exports, "CART_WIDTH", { enumerable: true, get: function () { return settings_js_1.CART_WIDTH; } });
52
56
  Object.defineProperty(exports, "CHECKOUT_MODE", { enumerable: true, get: function () { return settings_js_1.CHECKOUT_MODE; } });
53
57
  Object.defineProperty(exports, "CARD_PROVIDER", { enumerable: true, get: function () { return settings_js_1.CARD_PROVIDER; } });
@@ -169,6 +173,8 @@ Object.defineProperty(exports, "printerCatalogEntry", { enumerable: true, get: f
169
173
  Object.defineProperty(exports, "printerCatalogSettings", { enumerable: true, get: function () { return drucker_katalog_js_1.printerCatalogSettings; } });
170
174
  var trinkgeld_js_1 = require("./trinkgeld.js");
171
175
  Object.defineProperty(exports, "listMyTipRecipients", { enumerable: true, get: function () { return trinkgeld_js_1.listMyTipRecipients; } });
176
+ Object.defineProperty(exports, "getMyTipBalance", { enumerable: true, get: function () { return trinkgeld_js_1.getMyTipBalance; } });
177
+ Object.defineProperty(exports, "tipStatus", { enumerable: true, get: function () { return trinkgeld_js_1.tipStatus; } });
172
178
  var rabatt_vorlagen_js_1 = require("./rabatt-vorlagen.js");
173
179
  Object.defineProperty(exports, "posDiscountPresets", { enumerable: true, get: function () { return rabatt_vorlagen_js_1.posDiscountPresets; } });
174
180
  Object.defineProperty(exports, "discountPresetChipText", { enumerable: true, get: function () { return rabatt_vorlagen_js_1.discountPresetChipText; } });
@@ -246,6 +252,7 @@ Object.defineProperty(exports, "SHIFT_RECEIPT_KINDS", { enumerable: true, get: f
246
252
  Object.defineProperty(exports, "AFTER_COUNT_TYPES", { enumerable: true, get: function () { return schicht_typen_js_1.AFTER_COUNT_TYPES; } });
247
253
  Object.defineProperty(exports, "EXPECTED_PART_KEYS", { enumerable: true, get: function () { return schicht_typen_js_1.EXPECTED_PART_KEYS; } });
248
254
  Object.defineProperty(exports, "DIFFERENCE_PART_TYPES", { enumerable: true, get: function () { return schicht_typen_js_1.DIFFERENCE_PART_TYPES; } });
255
+ Object.defineProperty(exports, "TIP_CLAIM_SCOPES", { enumerable: true, get: function () { return schicht_typen_js_1.TIP_CLAIM_SCOPES; } });
249
256
  var shift_sheet_js_1 = require("../receipt/shift-sheet.js");
250
257
  Object.defineProperty(exports, "shiftReceiptLayout", { enumerable: true, get: function () { return shift_sheet_js_1.shiftReceiptLayout; } });
251
258
  Object.defineProperty(exports, "cashMovementLayout", { enumerable: true, get: function () { return shift_sheet_js_1.cashMovementLayout; } });
@@ -284,6 +291,7 @@ Object.defineProperty(exports, "externalVoucherArticleErrorMessage", { enumerabl
284
291
  Object.defineProperty(exports, "EXTERNAL_VOUCHERS_LABELS", { enumerable: true, get: function () { return texte_js_1.EXTERNAL_VOUCHERS_LABELS; } });
285
292
  Object.defineProperty(exports, "EXTERNAL_VOUCHER_KIND_LABELS", { enumerable: true, get: function () { return texte_js_1.EXTERNAL_VOUCHER_KIND_LABELS; } });
286
293
  Object.defineProperty(exports, "TIP_KEPT_MODE_LABELS", { enumerable: true, get: function () { return texte_js_1.TIP_KEPT_MODE_LABELS; } });
294
+ Object.defineProperty(exports, "TIP_CLAIM_SCOPE_LABELS", { enumerable: true, get: function () { return texte_js_1.TIP_CLAIM_SCOPE_LABELS; } });
287
295
  Object.defineProperty(exports, "LABELS", { enumerable: true, get: function () { return texte_js_1.LABELS; } });
288
296
  Object.defineProperty(exports, "labelText", { enumerable: true, get: function () { return texte_js_1.labelText; } });
289
297
  Object.defineProperty(exports, "RETURN_DISPOSITION_LABELS", { enumerable: true, get: function () { return texte_js_1.RETURN_DISPOSITION_LABELS; } });
@@ -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, ShiftCountResult, DrawerState, Shift, ShiftSummaryReceipt } from './schicht-typen.js';
15
+ import type { CashMovement, CashMovementReceipt, CashMovementResult, DrawerOpeningsResult, OpenShiftResult, ShiftReport, CloseShiftResult, ShiftCountResult, DrawerState, Shift, ShiftSummaryReceipt, TipBalance } 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 {
@@ -26,6 +26,8 @@ export declare function pflichtObjekt(ort: Ort, w: unknown): Roh;
26
26
  /** Eine Schicht; was nur mit `cashView` kommt, steht nur, wenn gesendet. */
27
27
  export declare function schicht(ort: Ort, w: unknown): Shift;
28
28
  export declare function ladeStand(ort: Ort, w: unknown): DrawerState;
29
+ /** „Mein Trinkgeld“ (getMyTipBalance): Stand der angemeldeten Person, Drahtform Feld fuer Feld. */
30
+ export declare function tipStand(ort: Ort, w: unknown): TipBalance;
29
31
  export declare function bewegung(ort: Ort, w: unknown): CashMovement;
30
32
  /** Bon-Daten eines Z- oder X-Bons; eine andere Art ist ein Fehler. */
31
33
  export declare function schichtBon(ort: Ort, w: unknown): ShiftSummaryReceipt;
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.pflichtObjekt = pflichtObjekt;
17
17
  exports.schicht = schicht;
18
18
  exports.ladeStand = ladeStand;
19
+ exports.tipStand = tipStand;
19
20
  exports.bewegung = bewegung;
20
21
  exports.schichtBon = schichtBon;
21
22
  exports.bewegungsBon = bewegungsBon;
@@ -109,7 +110,7 @@ function unbar(ort, w) {
109
110
  }
110
111
  function trinkgeld(ort, w) {
111
112
  const o = pflichtObjekt(ort, w);
112
- return {
113
+ const raus = {
113
114
  registerUserId: kennung(ort, o, 'registerUserId'),
114
115
  name: text(o.name),
115
116
  receivedImmediatelyCents: ganzzahl(ort, o, 'receivedImmediatelyCents'),
@@ -118,6 +119,10 @@ function trinkgeld(ort, w) {
118
119
  // Fehlt bei einem Backend vor der Regel R62: dann 0, statt die ganze Antwort zu verwerfen.
119
120
  refundedByEmployeeCents: o.refundedByEmployeeCents === undefined || o.refundedByEmployeeCents === null ? 0 : ganzzahl(ort, o, 'refundedByEmployeeCents'),
120
121
  };
122
+ // Kartentrinkgeld bar genommen: der Server sendet es nur, wenn es eines gibt -- gelesen wie gesendet.
123
+ if (o.cardTipsTakenCents !== undefined && o.cardTipsTakenCents !== null)
124
+ raus.cardTipsTakenCents = ganzzahl(ort, o, 'cardTipsTakenCents');
125
+ return raus;
121
126
  }
122
127
  /** Trinkgeld mit offenem Anspruch (Kassenstand, Bon). */
123
128
  function trinkgeldMitOffen(ort, w) {
@@ -294,6 +299,21 @@ function ladeStand(ort, w) {
294
299
  wennWert(raus.drawer, lade, 'changeFloatCents', () => ganzzahl(ladeOrt, lade, 'changeFloatCents'));
295
300
  return raus;
296
301
  }
302
+ /** „Mein Trinkgeld“ (getMyTipBalance): Stand der angemeldeten Person, Drahtform Feld fuer Feld. */
303
+ function tipStand(ort, w) {
304
+ const o = pflichtObjekt(ort, w);
305
+ return {
306
+ drawerId: kennung(ort, o, 'drawerId'),
307
+ claimScope: kennung(ort, o, 'claimScope'),
308
+ openCents: ganzzahl(ort, o, 'openCents'),
309
+ keptTodayCents: ganzzahl(ort, o, 'keptTodayCents'),
310
+ currency: kennung(ort, o, 'currency'),
311
+ otherDrawers: liste(ort, o, 'otherDrawers', (lOrt, lw) => {
312
+ const l = pflichtObjekt(lOrt, lw);
313
+ return { drawerId: kennung(lOrt, l, 'drawerId'), name: text(l.name), openCents: ganzzahl(lOrt, l, 'openCents') };
314
+ }),
315
+ };
316
+ }
297
317
  function bewegung(ort, w) {
298
318
  const o = pflichtObjekt(ort, w);
299
319
  const empfaenger = objekt(o.recipient);
@@ -381,6 +401,8 @@ function schichtBon(ort, w) {
381
401
  wennWert(r, o, 'interimDifferenceCents', () => ganzzahl(ort, o, 'interimDifferenceCents'));
382
402
  // Nur Anzeige: gewaehrte Rabatte je Name; der Server sendet sie erst ab dem ersten Rabatt.
383
403
  wennWert(r, o, 'discounts', () => liste(ort, o, 'discounts', rabatt));
404
+ // Kartentrinkgeld bar aus der Lade genommen (Summe); nur mit Karten-direkt.
405
+ wennWert(r, o, 'cardTipsTakenCents', () => ganzzahl(ort, o, 'cardTipsTakenCents'));
384
406
  wennWert(r, o, 'differenceParts', () => liste(ort, o, 'differenceParts', differenzTeil));
385
407
  wennDa(r, o, 'countedBeforePayoutCents', () => ganzzahlOderNull(ort, o, 'countedBeforePayoutCents'));
386
408
  wennDa(r, o, 'countedBeforePayoutDenominations', () => stueckelung(ort, o, 'countedBeforePayoutDenominations'));
@@ -111,14 +111,20 @@ export interface ShiftTipTotals {
111
111
  receivedImmediatelyCents: number;
112
112
  /** Behaelt der Betrieb und zahlt es ueber den Lohn („über Lohn“). */
113
113
  retainedCents: number;
114
- /** In dieser Schicht aus der Lade ausgezahlt („schon genommen“). */
114
+ /** In dieser Schicht aus der Lade ausgezahlt („genommen“). */
115
115
  paidOutCents: number;
116
116
  /**
117
117
  * Beim Storno selbst zurueckgegeben („Gibt die Mitarbeiterin direkt“, „selbst zurückgegeben“).
118
- * Eigene Zahl, damit „schon genommen“ nie negativ wird: offen = verdient − genommen + selbst
118
+ * Eigene Zahl, damit „genommen“ nie negativ wird: offen = verdient − genommen + selbst
119
119
  * zurueckgegeben. Fehlt es in der Antwort (Backend vor dieser Regel), gilt 0.
120
120
  */
121
121
  refundedByEmployeeCents: number;
122
+ /**
123
+ * Kartentrinkgeld, das die Mitarbeiterin beim Verkauf bar aus der Lade genommen hat (Spec
124
+ * 2026-11-11-kartentrinkgeld, § 4.3; Teil von `paidOutCents`). Der Server sendet es nur, wenn es eines gibt;
125
+ * fehlt = 0. Auf Bon und Kassenstand die Zeile „davon Kartentrinkgeld“ ([shiftTipLines]).
126
+ */
127
+ cardTipsTakenCents?: number;
122
128
  }
123
129
  /**
124
130
  * Trinkgeld eines Mitarbeiters mit seinem offenen Anspruch an die Lade
@@ -129,7 +135,7 @@ export interface ShiftTip extends ShiftTipTotals {
129
135
  /**
130
136
  * Offene Forderung an die Lade beim Oeffnen der Schicht („aus früheren Schichten“, Fix-Runde 2,
131
137
  * R64); ohne offene Schicht der ganze Anspruch. Fehlt es (Backend bzw. Schicht vor dieser Regel), 0.
132
- * Fuer den Leser geht auf: offen = aus früheren Schichten + verdient − über Lohn − schon genommen
138
+ * Fuer den Leser geht auf: offen = aus früheren Schichten + verdient − über Lohn − genommen
133
139
  * + selbst zurückgegeben.
134
140
  */
135
141
  carriedOverCents: number;
@@ -192,7 +198,7 @@ export interface ShiftReconciliation {
192
198
  * Anfang, Barverkaeufe, Trinkgeld bar, Storno bar, Einzahlungen, Ausgaben aus der Lade und die
193
199
  * Summe der Zwischenzaehlungs-Differenzen. Die Summe der Teile ist das Soll.
194
200
  */
195
- export declare const EXPECTED_PART_KEYS: readonly ["opening", "cash_sales", "cash_tips", "cancellations", "cash_in", "cash_out", "interim_difference"];
201
+ export declare const EXPECTED_PART_KEYS: readonly ["opening", "cash_sales", "cash_tips", "card_tips_taken", "cancellations", "cash_in", "cash_out", "interim_difference"];
196
202
  export type ExpectedPartKey = (typeof EXPECTED_PART_KEYS)[number];
197
203
  /** Ein Teil des Solls in Cent (Vorzeichen wie gebucht, Ausgaben negativ). */
198
204
  export interface ShiftExpectedPart {
@@ -272,6 +278,33 @@ export interface TipClaim {
272
278
  name: string | null;
273
279
  cents: number;
274
280
  }
281
+ /**
282
+ * Wo der offene Trinkgeld-Anspruch gefuehrt wird (Spec 2026-11-11-kartentrinkgeld, F2; Katalog
283
+ * `TRINKGELD_ANSPRUCH`): `per_drawer` = je Lade (Vorgabe), `per_person` = ein Stand je Person ueber alle Laden.
284
+ */
285
+ export declare const TIP_CLAIM_SCOPES: readonly ["per_drawer", "per_person"];
286
+ export type TipClaimScope = (typeof TIP_CLAIM_SCOPES)[number];
287
+ /** Eine andere Lade des Kontos mit offenem Betrag der Person (nur bei `per_drawer`). */
288
+ export interface TipBalanceOtherDrawer {
289
+ drawerId: string;
290
+ name: string | null;
291
+ openCents: number;
292
+ }
293
+ /**
294
+ * „Mein Trinkgeld“ ([getMyTipBalance]): der Stand der angemeldeten Person. `openCents` kann negativ sein (zu viel
295
+ * ausgezahlt, wird mit dem naechsten Trinkgeld verrechnet); `keptTodayCents` = heute genommen (ausgezahlt,
296
+ * bar gleich behalten, Kartentrinkgeld bar). Bei `per_person` die Summe ueber alle Laden, `otherDrawers` leer.
297
+ * Ohne Schichtbetrieb der Lade immer 0 (kein Anspruch).
298
+ */
299
+ export interface TipBalance {
300
+ drawerId: string;
301
+ /** Ein Wert aus [TIP_CLAIM_SCOPES] oder ein kuenftiger. */
302
+ claimScope: TipClaimScope | (string & {});
303
+ openCents: number;
304
+ keptTodayCents: number;
305
+ currency: string;
306
+ otherDrawers: TipBalanceOtherDrawer[];
307
+ }
275
308
  /** Eine gemeldete Oeffnung der Lade (nur mit `cashView`). */
276
309
  export interface DrawerOpening {
277
310
  /** Serverzeit des Eingangs. */
@@ -405,6 +438,8 @@ export interface ShiftSummaryReceipt extends ShiftReceiptHeader {
405
438
  openingsWithoutSale: number;
406
439
  /** Gewaehrte Rabatte je Name; fehlt, wenn es keine gab (der Bon bleibt dann wie bisher). */
407
440
  discounts?: ShiftDiscount[];
441
+ /** Kartentrinkgeld bar aus der Lade genommen, Summe (Soll − Betrag); fehlt ohne Karten-direkt. */
442
+ cardTipsTakenCents?: number;
408
443
  /** Entnommen bzw. eingelegt nach dem Zaehlen; fehlt, wenn kein Geld bewegt wurde. */
409
444
  afterCount?: AfterCount;
410
445
  /**
@@ -15,7 +15,7 @@
15
15
  * (`{ "2000": 1, "500": 3 }`).
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.DIFFERENCE_PART_TYPES = exports.EXPECTED_PART_KEYS = exports.SHIFT_RECEIPT_KINDS = exports.AFTER_COUNT_TYPES = exports.MANUAL_OPENING_REASONS = exports.OPENING_REASONS = exports.CASH_LOCATIONS = exports.MANUAL_MOVEMENT_TYPES = exports.MOVEMENT_TYPES = exports.EUR_DENOMINATIONS = void 0;
18
+ exports.TIP_CLAIM_SCOPES = exports.DIFFERENCE_PART_TYPES = exports.EXPECTED_PART_KEYS = exports.SHIFT_RECEIPT_KINDS = exports.AFTER_COUNT_TYPES = exports.MANUAL_OPENING_REASONS = exports.OPENING_REASONS = exports.CASH_LOCATIONS = exports.MANUAL_MOVEMENT_TYPES = exports.MOVEMENT_TYPES = exports.EUR_DENOMINATIONS = void 0;
19
19
  /** Scheine und Muenzen in Euro-Cent, vom groessten Schein abwaerts (Backend `EUR_STUECKELUNG`). */
20
20
  exports.EUR_DENOMINATIONS = Object.freeze([50000, 20000, 10000, 5000, 2000, 1000, 500, 200, 100, 50, 20, 10, 5, 2, 1]);
21
21
  /**
@@ -63,7 +63,12 @@ exports.SHIFT_RECEIPT_KINDS = Object.freeze(['shift_close', 'shift_interim', 'ca
63
63
  * Summe der Zwischenzaehlungs-Differenzen. Die Summe der Teile ist das Soll.
64
64
  */
65
65
  exports.EXPECTED_PART_KEYS = Object.freeze([
66
- 'opening', 'cash_sales', 'cash_tips', 'cancellations', 'cash_in', 'cash_out', 'interim_difference',
66
+ 'opening', 'cash_sales', 'cash_tips', 'card_tips_taken', 'cancellations', 'cash_in', 'cash_out', 'interim_difference',
67
67
  ]);
68
68
  /** Teile der Gesamtdifferenz einer geschlossenen Schicht mit Zwischenzaehlung: `interim` je Zaehlung, `closing` der Abschluss. */
69
69
  exports.DIFFERENCE_PART_TYPES = Object.freeze(['interim', 'closing']);
70
+ /**
71
+ * Wo der offene Trinkgeld-Anspruch gefuehrt wird (Spec 2026-11-11-kartentrinkgeld, F2; Katalog
72
+ * `TRINKGELD_ANSPRUCH`): `per_drawer` = je Lade (Vorgabe), `per_person` = ein Stand je Person ueber alle Laden.
73
+ */
74
+ exports.TIP_CLAIM_SCOPES = Object.freeze(['per_drawer', 'per_person']);