@kreiseck/kasseneck-api 1.30.0 → 1.32.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.
- package/CHANGELOG.md +33 -0
- package/dist/cjs/client/aufrufe.d.ts +3 -3
- package/dist/cjs/client/aufrufe.js +8 -0
- package/dist/cjs/client/receipts.d.ts +11 -0
- package/dist/cjs/client/receipts.js +14 -0
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +10 -5
- package/dist/cjs/models/index.d.ts +2 -2
- package/dist/cjs/models/index.js +7 -2
- package/dist/cjs/models/receipt-errors.d.ts +1 -1
- package/dist/cjs/models/receipt-errors.js +9 -0
- package/dist/cjs/models/receipt-item.d.ts +44 -2
- package/dist/cjs/models/receipt-item.js +56 -1
- package/dist/cjs/models/receipt.d.ts +17 -0
- package/dist/cjs/models/receipt.js +9 -0
- package/dist/cjs/models/voucher.d.ts +18 -0
- package/dist/cjs/models/voucher.js +32 -1
- package/dist/cjs/pos/artikel.d.ts +26 -0
- package/dist/cjs/pos/artikel.js +5 -0
- package/dist/cjs/pos/client.d.ts +1 -0
- package/dist/cjs/pos/client.js +14 -0
- package/dist/cjs/pos/errors.d.ts +1 -1
- package/dist/cjs/pos/errors.js +13 -0
- package/dist/cjs/pos/fremdgutschein-artikel.d.ts +66 -0
- package/dist/cjs/pos/fremdgutschein-artikel.js +74 -0
- package/dist/cjs/pos/index.d.ts +9 -4
- package/dist/cjs/pos/index.js +62 -4
- package/dist/cjs/pos/leergut.d.ts +60 -0
- package/dist/cjs/pos/leergut.js +82 -0
- package/dist/cjs/pos/pfand.d.ts +144 -0
- package/dist/cjs/pos/pfand.js +382 -0
- package/dist/cjs/pos/rabatt-vorlagen.d.ts +79 -0
- package/dist/cjs/pos/rabatt-vorlagen.js +156 -0
- package/dist/cjs/pos/schicht-lesen.js +8 -0
- package/dist/cjs/pos/schicht-typen.d.ts +15 -0
- package/dist/cjs/pos/settings.d.ts +72 -10
- package/dist/cjs/pos/settings.js +79 -5
- package/dist/cjs/pos/texte.d.ts +283 -0
- package/dist/cjs/pos/texte.js +163 -1
- package/dist/cjs/pos/zusaetze.d.ts +3 -3
- package/dist/cjs/pos/zusaetze.js +4 -2
- package/dist/cjs/receipt/discount.js +3 -0
- package/dist/cjs/receipt/due.d.ts +6 -0
- package/dist/cjs/receipt/due.js +16 -5
- package/dist/cjs/receipt/gutschein-plan.d.ts +7 -1
- package/dist/cjs/receipt/gutschein-plan.js +16 -2
- package/dist/cjs/receipt/layout.js +108 -2
- package/dist/cjs/receipt/shift-sheet.js +8 -0
- package/dist/cjs/register/pairing.d.ts +15 -1
- package/dist/cjs/register/pairing.js +14 -1
- package/dist/cjs/stored/draht.js +1 -0
- package/dist/cjs/stored/einstellungen.js +50 -2
- package/dist/cjs/stored/vokabular.d.ts +1 -1
- package/dist/cjs/stored/vokabular.js +107 -5
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/client/aufrufe.d.ts +3 -3
- package/dist/esm/client/aufrufe.js +8 -0
- package/dist/esm/client/receipts.d.ts +11 -0
- package/dist/esm/client/receipts.js +14 -0
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/models/index.d.ts +2 -2
- package/dist/esm/models/index.js +2 -2
- package/dist/esm/models/receipt-errors.d.ts +1 -1
- package/dist/esm/models/receipt-errors.js +9 -0
- package/dist/esm/models/receipt-item.d.ts +44 -2
- package/dist/esm/models/receipt-item.js +54 -1
- package/dist/esm/models/receipt.d.ts +17 -0
- package/dist/esm/models/receipt.js +9 -0
- package/dist/esm/models/voucher.d.ts +18 -0
- package/dist/esm/models/voucher.js +30 -0
- package/dist/esm/pos/artikel.d.ts +26 -0
- package/dist/esm/pos/artikel.js +5 -0
- package/dist/esm/pos/client.d.ts +1 -0
- package/dist/esm/pos/client.js +15 -1
- package/dist/esm/pos/errors.d.ts +1 -1
- package/dist/esm/pos/errors.js +13 -0
- package/dist/esm/pos/fremdgutschein-artikel.d.ts +66 -0
- package/dist/esm/pos/fremdgutschein-artikel.js +67 -0
- package/dist/esm/pos/index.d.ts +9 -4
- package/dist/esm/pos/index.js +10 -4
- package/dist/esm/pos/leergut.d.ts +60 -0
- package/dist/esm/pos/leergut.js +77 -0
- package/dist/esm/pos/pfand.d.ts +144 -0
- package/dist/esm/pos/pfand.js +371 -0
- package/dist/esm/pos/rabatt-vorlagen.d.ts +79 -0
- package/dist/esm/pos/rabatt-vorlagen.js +148 -0
- package/dist/esm/pos/schicht-lesen.js +8 -0
- package/dist/esm/pos/schicht-typen.d.ts +15 -0
- package/dist/esm/pos/settings.d.ts +72 -10
- package/dist/esm/pos/settings.js +74 -4
- package/dist/esm/pos/texte.d.ts +283 -0
- package/dist/esm/pos/texte.js +160 -0
- package/dist/esm/pos/zusaetze.d.ts +3 -3
- package/dist/esm/pos/zusaetze.js +4 -2
- package/dist/esm/receipt/discount.js +4 -1
- package/dist/esm/receipt/due.d.ts +6 -0
- package/dist/esm/receipt/due.js +17 -6
- package/dist/esm/receipt/gutschein-plan.d.ts +7 -1
- package/dist/esm/receipt/gutschein-plan.js +14 -2
- package/dist/esm/receipt/layout.js +109 -3
- package/dist/esm/receipt/shift-sheet.js +8 -0
- package/dist/esm/register/pairing.d.ts +15 -1
- package/dist/esm/register/pairing.js +13 -1
- package/dist/esm/stored/draht.js +1 -0
- package/dist/esm/stored/einstellungen.js +52 -4
- package/dist/esm/stored/vokabular.d.ts +1 -1
- package/dist/esm/stored/vokabular.js +107 -5
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/fixtures/add-on-cases.json +6 -4
- package/fixtures/deposit-cases.json +4758 -0
- package/fixtures/discount-preset-cases.json +1074 -0
- package/fixtures/expected/deposit-return.grid32.txt +28 -0
- package/fixtures/expected/deposit-return.grid48.txt +28 -0
- package/fixtures/expected/deposit-return.lines.json +275 -0
- package/fixtures/expected/deposit-return.sheet32.json +194 -0
- package/fixtures/expected/deposit-return.sheet48.json +194 -0
- package/fixtures/expected/deposit.grid32.txt +34 -0
- package/fixtures/expected/deposit.grid48.txt +32 -0
- package/fixtures/expected/deposit.lines.json +316 -0
- package/fixtures/expected/deposit.sheet32.json +230 -0
- package/fixtures/expected/deposit.sheet48.json +218 -0
- package/fixtures/external-voucher-article-cases.json +311 -0
- package/fixtures/hobex-hps-codes.json +1 -1
- package/fixtures/invoice-api.schema.json +1 -1
- package/fixtures/invoice-texts.json +1 -1
- package/fixtures/manifest.json +16 -0
- package/fixtures/pos-texts.json +266 -1
- package/fixtures/receipt-due-voucher-generated.json +1 -1
- package/fixtures/receipts/deposit-return.json +63 -0
- package/fixtures/receipts/deposit.json +83 -0
- package/fixtures/renames-1.0.json +18 -0
- package/fixtures/return-code-cases.json +1338 -0
- package/fixtures/surface.json +92 -7
- package/fixtures/v3/antworten/belege.json +2 -2
- package/fixtures/v3/antworten/belegmail.json +2 -2
- package/fixtures/v3/antworten/berichte.json +2 -2
- package/fixtures/v3/antworten/kasse-belege.json +2 -2
- package/fixtures/v3/antworten/kasse.json +428 -13
- package/fixtures/v3/antworten/lager.json +1 -1
- package/fixtures/v3/antworten/rechnungen.json +2 -2
- package/fixtures/v3/antworten/storno.json +2 -2
- package/fixtures/v3/stored/belege.json +2 -2
- package/fixtures/v3/stored/kasse.json +42 -4
- package/fixtures/v3/stored/rechnungen.json +2 -2
- package/fixtures/v3/v3-vokabular.json +898 -31
- package/fixtures/v3/zahlbetrag-faelle.json +187 -3
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type TransportOptions } from '../client/transport.js';
|
|
2
2
|
import { type ReceiptCompany } from '../models/receipt-company.js';
|
|
3
3
|
import type { PosSettings } from '../pos/settings.js';
|
|
4
|
+
import { type CashRegisterDeposit } from '../pos/pfand.js';
|
|
4
5
|
/**
|
|
5
6
|
* Verbindungsangaben ohne Anmeldung — alles, was [TransportOptions] ausser der
|
|
6
7
|
* Anmeldung fuehrt. Alle Felder sind wahlfrei: ohne Angabe gelten der Kassenweg
|
|
@@ -142,11 +143,13 @@ export interface RegisterDeviceUsers {
|
|
|
142
143
|
* Startbeleg fehlt): die Kasse sperrt das Kassieren VOR dem ersten Beleg
|
|
143
144
|
* statt an createReceipt zu scheitern. Fehlt das Feld, gilt bereit.
|
|
144
145
|
* `stockLocationId`: Lager-Standort der Kasse, fehlt = Standard-Standort.
|
|
146
|
+
* `deposit`: Pfand & Leergut der Kasse (Ruecknahme, Vorgaben); fehlt, solange der Betrieb kein Pfand eingeschaltet hat.
|
|
145
147
|
*/
|
|
146
148
|
cashregister?: {
|
|
147
149
|
ready: boolean;
|
|
148
150
|
reason?: string | null;
|
|
149
151
|
stockLocationId?: string;
|
|
152
|
+
deposit?: CashRegisterDeposit;
|
|
150
153
|
};
|
|
151
154
|
/** Das Geraet haengt an der Test-Umgebung des Betriebs. */
|
|
152
155
|
testEnvironment: boolean;
|
|
@@ -209,6 +212,11 @@ export interface RegisterUserPerms {
|
|
|
209
212
|
voucherRedeem?: boolean;
|
|
210
213
|
/** Gutscheine verwalten, z. B. Etikett nachdrucken (fehlt: verweigert). */
|
|
211
214
|
voucherManage?: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* Leergut annehmen (Pfand & Leergut). Fehlt das Recht, gilt es als erteilt (Rollenvorgabe: Kassier und Chef) --
|
|
217
|
+
* siehe [depositReturnOf]; ein ausdrueckliches `false` sperrt. Unter /v3 loest der Server es bei der Anmeldung auf.
|
|
218
|
+
*/
|
|
219
|
+
depositReturn?: boolean;
|
|
212
220
|
[weiteresRecht: string]: boolean | RegisterScope | undefined;
|
|
213
221
|
}
|
|
214
222
|
/**
|
|
@@ -219,7 +227,7 @@ export interface RegisterUserPerms {
|
|
|
219
227
|
* nicht fuehrt (Tippfehler, umbenanntes Recht), kommt hier nicht durch.
|
|
220
228
|
* Die Gegenrichtung schliesst [_RechteVollstaendig] direkt darunter.
|
|
221
229
|
*/
|
|
222
|
-
export declare const REGISTER_PERMS: readonly ["sell", "cancel", "articles", "layout", "reports", "takeover", "cancelScope", "receiptsScope", "drawer", "discount", "tipAssign", "stockView", "stockCosts", "stockMove", "stockLoss", "stocktakeCount", "stocktakeClose", "stockLocation", "voucherSell", "voucherRedeem", "voucherManage"];
|
|
230
|
+
export declare const REGISTER_PERMS: readonly ["sell", "cancel", "articles", "layout", "reports", "takeover", "cancelScope", "receiptsScope", "drawer", "discount", "tipAssign", "stockView", "stockCosts", "stockMove", "stockLoss", "stocktakeCount", "stocktakeClose", "stockLocation", "voucherSell", "voucherRedeem", "voucherManage", "depositReturn"];
|
|
223
231
|
/** Reichweite lesen, mit der Migration des Backends (register-auth.js). */
|
|
224
232
|
export declare function cancelScopeOf(perms: RegisterUserPerms | null | undefined): RegisterScope;
|
|
225
233
|
export declare function receiptsScopeOf(perms: RegisterUserPerms | null | undefined): RegisterScope;
|
|
@@ -229,6 +237,12 @@ export declare function receiptsScopeOf(perms: RegisterUserPerms | null | undefi
|
|
|
229
237
|
* sperrt; alle anderen Lager-Rechte gelten ohne Schluessel als verweigert.
|
|
230
238
|
*/
|
|
231
239
|
export declare function stockViewOf(perms: RegisterUserPerms | null | undefined): boolean;
|
|
240
|
+
/**
|
|
241
|
+
* Darf der Benutzer Leergut annehmen? Ohne Schluessel gilt das Recht als erteilt (Rollenvorgabe `Leergut annehmen`
|
|
242
|
+
* ist fuer Kassier und Chef an, ein alter Server und `/api`-Antworten kennen es nicht); nur ein ausdrueckliches
|
|
243
|
+
* `false` sperrt. Ohne Rechte-Objekt: nein.
|
|
244
|
+
*/
|
|
245
|
+
export declare function depositReturnOf(perms: Partial<RegisterUserPerms> | null | undefined): boolean;
|
|
232
246
|
/** Die drei Gutschein-Rechte, aufgeloest (kein Schluessel fehlt mehr). */
|
|
233
247
|
export interface VoucherPerms {
|
|
234
248
|
voucherSell: boolean;
|
|
@@ -4,6 +4,7 @@ exports.REGISTER_PERMS = void 0;
|
|
|
4
4
|
exports.cancelScopeOf = cancelScopeOf;
|
|
5
5
|
exports.receiptsScopeOf = receiptsScopeOf;
|
|
6
6
|
exports.stockViewOf = stockViewOf;
|
|
7
|
+
exports.depositReturnOf = depositReturnOf;
|
|
7
8
|
exports.voucherPermsOf = voucherPermsOf;
|
|
8
9
|
exports.pairRegisterDevice = pairRegisterDevice;
|
|
9
10
|
exports.unpairRegisterDevice = unpairRegisterDevice;
|
|
@@ -15,6 +16,7 @@ const errors_js_1 = require("../client/errors.js");
|
|
|
15
16
|
const transport_js_1 = require("../client/transport.js");
|
|
16
17
|
const receipt_company_js_1 = require("../models/receipt-company.js");
|
|
17
18
|
const client_js_1 = require("../pos/client.js");
|
|
19
|
+
const pfand_js_1 = require("../pos/pfand.js");
|
|
18
20
|
/**
|
|
19
21
|
* Die drei Aufrufe, die **ohne jede Identitaet** laufen: Kopplung eines
|
|
20
22
|
* Geraets, Benutzerliste dieses Geraets, PIN-Anmeldung. Sie sind der Weg, auf
|
|
@@ -63,7 +65,7 @@ exports.REGISTER_PERMS = [
|
|
|
63
65
|
'sell', 'cancel', 'articles', 'layout', 'reports', 'takeover',
|
|
64
66
|
'cancelScope', 'receiptsScope', 'drawer', 'discount', 'tipAssign',
|
|
65
67
|
'stockView', 'stockCosts', 'stockMove', 'stockLoss', 'stocktakeCount', 'stocktakeClose', 'stockLocation',
|
|
66
|
-
'voucherSell', 'voucherRedeem', 'voucherManage',
|
|
68
|
+
'voucherSell', 'voucherRedeem', 'voucherManage', 'depositReturn',
|
|
67
69
|
];
|
|
68
70
|
/** Reichweite lesen, mit der Migration des Backends (register-auth.js). */
|
|
69
71
|
function cancelScopeOf(perms) {
|
|
@@ -90,6 +92,16 @@ function stockViewOf(perms) {
|
|
|
90
92
|
return false;
|
|
91
93
|
return perms.stockView === undefined ? true : perms.stockView === true;
|
|
92
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Darf der Benutzer Leergut annehmen? Ohne Schluessel gilt das Recht als erteilt (Rollenvorgabe `Leergut annehmen`
|
|
97
|
+
* ist fuer Kassier und Chef an, ein alter Server und `/api`-Antworten kennen es nicht); nur ein ausdrueckliches
|
|
98
|
+
* `false` sperrt. Ohne Rechte-Objekt: nein.
|
|
99
|
+
*/
|
|
100
|
+
function depositReturnOf(perms) {
|
|
101
|
+
if (!perms)
|
|
102
|
+
return false;
|
|
103
|
+
return perms.depositReturn === undefined ? true : perms.depositReturn === true;
|
|
104
|
+
}
|
|
93
105
|
/**
|
|
94
106
|
* Gutschein-Rechte lesen. Das Backend loest sie bei der Anmeldung auf; ein
|
|
95
107
|
* alter Server (und `/api`-Antworten) kennt sie nicht. Dann gilt je fehlendem
|
|
@@ -244,6 +256,7 @@ function kasseBereit(wert) {
|
|
|
244
256
|
ready: roh['ready'],
|
|
245
257
|
reason: typeof roh['reason'] === 'string' ? roh['reason'] : null,
|
|
246
258
|
...(typeof standort === 'string' && standort !== '' ? { stockLocationId: standort } : {}),
|
|
259
|
+
...((0, pfand_js_1.cashRegisterDepositFromWire)(roh['deposit']) ? { deposit: (0, pfand_js_1.cashRegisterDepositFromWire)(roh['deposit']) } : {}),
|
|
247
260
|
};
|
|
248
261
|
}
|
|
249
262
|
/** Die Regel aus der Antwort — oder `null`, wenn keine brauchbare kommt. */
|
package/dist/cjs/stored/draht.js
CHANGED
|
@@ -313,6 +313,7 @@ function _storedArticleToWire(id, doc, functionName = 'fromStoredArticle') {
|
|
|
313
313
|
const katalog = (pfad) => aeussereWerte(schema.werte[pfad]);
|
|
314
314
|
const raus = nurBekannte(artikel, new Set(vokabular_js_1.ARTIKEL_FELDER), {
|
|
315
315
|
quantityRule: katalog('articles[].quantityRule'), e1aGroup: katalog('articles[].e1aGroup'),
|
|
316
|
+
externalVoucher: katalog('articles[].externalVoucher'),
|
|
316
317
|
});
|
|
317
318
|
if ((0, exports.istObjekt)(raus.tile)) {
|
|
318
319
|
const kachel = regel(regel(schema.data.articles).unter.tile).unter;
|
|
@@ -5,6 +5,7 @@ exports._storedPosSettingsToWire = _storedPosSettingsToWire;
|
|
|
5
5
|
const settings_js_1 = require("../pos/settings.js");
|
|
6
6
|
const draht_js_1 = require("./draht.js");
|
|
7
7
|
const draht_js_2 = require("./draht.js");
|
|
8
|
+
const rabatt_vorlagen_js_1 = require("../pos/rabatt-vorlagen.js");
|
|
8
9
|
const vokabular_js_1 = require("./vokabular.js");
|
|
9
10
|
const bool = (v) => typeof v === 'boolean';
|
|
10
11
|
const hex = (v) => typeof v === 'string' && /^#[0-9a-fA-F]{6}$/.test(v);
|
|
@@ -138,6 +139,38 @@ function aufzaehlung(liste, katalog, w) {
|
|
|
138
139
|
return 'ungueltig';
|
|
139
140
|
return 'unbekannt';
|
|
140
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Rabatt-Vorlagen (Zwilling von `rabatt-vorlagen-core.liste` und dem Schema `discountPresets`): die gespeicherte Liste
|
|
144
|
+
* `[{ name, art, prozentBp | betragCents }]` geht nur hinaus, wenn die Pruefung sie annimmt (sonst faellt sie ganz);
|
|
145
|
+
* ausgegeben wird sie wie gespeichert (nicht getrimmt), eine ungueltige fehlt still, uebersetzt in `kind`/`percentBp`/`amountCents`. Ein englischer
|
|
146
|
+
* Wert in `art` oder ein englischer Feldname ist innen unbekannt und macht die Liste ungueltig.
|
|
147
|
+
*/
|
|
148
|
+
function vorlagenNachAussen(w) {
|
|
149
|
+
const schema = teilSchema('business').discountPresets;
|
|
150
|
+
const aussenName = (0, draht_js_1.innereNamen)((0, draht_js_1.regel)(schema).unter); // innen -> aussen
|
|
151
|
+
const art = vokabular_js_1.KATALOGE['KASSE_BETRIEB_WERTE.discountPresets[].kind'] ?? {};
|
|
152
|
+
if (!Array.isArray(w))
|
|
153
|
+
return undefined;
|
|
154
|
+
const draht = w.map((e) => {
|
|
155
|
+
if (!(0, draht_js_1.istObjekt)(e))
|
|
156
|
+
return e;
|
|
157
|
+
const raus = {};
|
|
158
|
+
for (const [k, v] of Object.entries(e)) {
|
|
159
|
+
if (k === 'art')
|
|
160
|
+
raus[aussenName.get('art') ?? 'kind'] = typeof v === 'string' && (0, draht_js_1.hat)(art, v) ? art[v] : undefined;
|
|
161
|
+
else if (k === 'name')
|
|
162
|
+
raus[k] = v;
|
|
163
|
+
else if (k === 'prozentBp' || k === 'betragCents')
|
|
164
|
+
raus[aussenName.get(k) ?? k] = v;
|
|
165
|
+
// Jeder andere Schluessel (auch ein englischer wie `percentBp`) ist innen unbekannt.
|
|
166
|
+
else
|
|
167
|
+
raus[`innen_${k}`] = v;
|
|
168
|
+
}
|
|
169
|
+
return raus;
|
|
170
|
+
});
|
|
171
|
+
const geprueft = (0, rabatt_vorlagen_js_1.checkDiscountPresets)(draht);
|
|
172
|
+
return geprueft.ok ? draht : undefined;
|
|
173
|
+
}
|
|
141
174
|
function teilNachAussen(teil, gespeichert, weg) {
|
|
142
175
|
if (!(0, draht_js_1.istObjekt)(gespeichert))
|
|
143
176
|
return {};
|
|
@@ -150,6 +183,13 @@ function teilNachAussen(teil, gespeichert, weg) {
|
|
|
150
183
|
if (aussen === undefined || w === undefined)
|
|
151
184
|
continue;
|
|
152
185
|
const pfad = `${teil}.${aussen}`;
|
|
186
|
+
if (teil === 'business' && aussen === 'discountPresets') {
|
|
187
|
+
const liste = vorlagenNachAussen(w);
|
|
188
|
+
// Wie jede optionale Einstellung: ungueltig fehlt still (mischeBetrieb nimmt sie gar nicht erst), ohne Eintrag in `weg`.
|
|
189
|
+
if (liste !== undefined)
|
|
190
|
+
raus[aussen] = liste;
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
153
193
|
if ((0, draht_js_1.hat)(WAHLFELDER, teil) && WAHLFELDER[teil].includes(aussen)) {
|
|
154
194
|
const katalog = katalogFuer(teil, aussen);
|
|
155
195
|
const einzeln = (e) => (typeof e === 'string' && katalog !== null && (0, draht_js_1.hat)(katalog, e) ? katalog[e] : undefined);
|
|
@@ -226,6 +266,14 @@ function teilNachAussen(teil, gespeichert, weg) {
|
|
|
226
266
|
else
|
|
227
267
|
weg.push(pfad);
|
|
228
268
|
}
|
|
269
|
+
// Mit gueltigen Vorlagen folgen die Chips immer den Vorlagen (mischeBetrieb), auch ein ungueltiges gespeichertes
|
|
270
|
+
// `rabattChips` faellt dann nicht erst am Validator.
|
|
271
|
+
if (teil === 'business' && (0, draht_js_1.hat)(raus, 'discountPresets')) {
|
|
272
|
+
raus.discountChips = (0, rabatt_vorlagen_js_1.discountChipsFromPresets)(raus.discountPresets);
|
|
273
|
+
const i = weg.indexOf('business.discountChips');
|
|
274
|
+
if (i >= 0)
|
|
275
|
+
weg.splice(i, 1);
|
|
276
|
+
}
|
|
229
277
|
return raus;
|
|
230
278
|
}
|
|
231
279
|
/**
|
|
@@ -242,10 +290,10 @@ function _storedPosSettingsToWire(stored) {
|
|
|
242
290
|
}
|
|
243
291
|
/** Nur fuer den Test: die Feldliste der Pruefer (muss mit der Vorgabe deckungsgleich sein). */
|
|
244
292
|
exports._PRUEFER_FELDER = Object.freeze({
|
|
245
|
-
business: [...new Set([...Object.keys(PRUEFER.business), ...Object.keys(settings_js_1.POS_BUSINESS_VALUES), ...Object.keys(BETRIEB_OPTIONAL), ...Object.keys(KARTEN)])],
|
|
293
|
+
business: [...new Set([...Object.keys(PRUEFER.business), ...Object.keys(settings_js_1.POS_BUSINESS_VALUES), ...Object.keys(BETRIEB_OPTIONAL), ...Object.keys(KARTEN), ...settings_js_1.POS_BUSINESS_OPTIONAL_LISTS])],
|
|
246
294
|
device: [...new Set([...Object.keys(PRUEFER.device), ...Object.keys(settings_js_1.POS_DEVICE_VALUES), ...Object.keys(GERAET_OPTIONAL), 'shortcuts'])],
|
|
247
295
|
standard: {
|
|
248
|
-
business: [...Object.keys(settings_js_1.POS_BUSINESS_DEFAULTS), ...settings_js_1.POS_BUSINESS_OPTIONAL_FIELDS, ...settings_js_1.POS_BUSINESS_OPTIONAL_CHOICES],
|
|
296
|
+
business: [...Object.keys(settings_js_1.POS_BUSINESS_DEFAULTS), ...settings_js_1.POS_BUSINESS_OPTIONAL_FIELDS, ...settings_js_1.POS_BUSINESS_OPTIONAL_CHOICES, ...settings_js_1.POS_BUSINESS_OPTIONAL_LISTS],
|
|
249
297
|
device: [...Object.keys(settings_js_1.POS_DEVICE_DEFAULTS), ...settings_js_1.POS_DEVICE_OPTIONAL_FIELDS, ...settings_js_1.POS_DEVICE_OPTIONAL_CHOICES],
|
|
250
298
|
},
|
|
251
299
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Fingerabdruck des Vertrags-Exports, aus dem diese Datei stammt (`_quelle.sha256`). */
|
|
2
|
-
export declare const VOKABULAR_QUELLE = "
|
|
2
|
+
export declare const VOKABULAR_QUELLE = "168261a0b5130d454fc3b5d51e8ee567d6a3e9a5d2d8e172829e9ccb17c47f31";
|
|
3
3
|
/** Schema-Notation des Vertrags: Blatt 'aussen': 'innen', Objekt { __: 'innen', ... }, Liste [ { __: 'innen', ... } ]. */
|
|
4
4
|
export type SchemaEintrag = string | SchemaObjekt | readonly [SchemaObjekt];
|
|
5
5
|
export interface SchemaObjekt {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.ZUSATZ_KATALOGE = exports.KATALOGE = exports.ARTIKEL_FELDER = exports.SCHEMAS = exports.VOKABULAR_QUELLE = void 0;
|
|
6
6
|
/** Fingerabdruck des Vertrags-Exports, aus dem diese Datei stammt (`_quelle.sha256`). */
|
|
7
|
-
exports.VOKABULAR_QUELLE = "
|
|
7
|
+
exports.VOKABULAR_QUELLE = "168261a0b5130d454fc3b5d51e8ee567d6a3e9a5d2d8e172829e9ccb17c47f31";
|
|
8
8
|
/** Schema je Endpunkt (aussen -> innen) und Wertverweise auf die Kataloge. */
|
|
9
9
|
exports.SCHEMAS = {
|
|
10
10
|
"getReceipt": {
|
|
@@ -23,7 +23,12 @@ exports.SCHEMAS = {
|
|
|
23
23
|
"__": "items",
|
|
24
24
|
"receivedImmediately": "sofortErhalten",
|
|
25
25
|
"keptByEmployee": "direkt",
|
|
26
|
-
"addOnOf": "zusatzZu"
|
|
26
|
+
"addOnOf": "zusatzZu",
|
|
27
|
+
"depositTypeId": "pfandartId",
|
|
28
|
+
"depositFor": "pfandZu",
|
|
29
|
+
"depositKind": "pfandArt",
|
|
30
|
+
"perUnit": "jeStueck",
|
|
31
|
+
"ownFilling": "eigen"
|
|
27
32
|
}
|
|
28
33
|
],
|
|
29
34
|
"manualReceipt": {
|
|
@@ -35,6 +40,11 @@ exports.SCHEMAS = {
|
|
|
35
40
|
"time": "uhrzeit",
|
|
36
41
|
"reason": "grund",
|
|
37
42
|
"note": "grundText"
|
|
43
|
+
},
|
|
44
|
+
"onPremises": "vorOrt",
|
|
45
|
+
"sharedReturnPoint": {
|
|
46
|
+
"__": "pfandStelle",
|
|
47
|
+
"address": "adresse"
|
|
38
48
|
}
|
|
39
49
|
},
|
|
40
50
|
"taxNumber": "taxnr",
|
|
@@ -99,6 +109,12 @@ exports.SCHEMAS = {
|
|
|
99
109
|
"layout.lines[].tone": {
|
|
100
110
|
"$catalog": "LAYOUT_TON"
|
|
101
111
|
},
|
|
112
|
+
"receipt.items[].kind": {
|
|
113
|
+
"$catalog": "PFAND_KIND"
|
|
114
|
+
},
|
|
115
|
+
"receipt.items[].depositKind": {
|
|
116
|
+
"$catalog": "PFAND_ART"
|
|
117
|
+
},
|
|
102
118
|
"issuedVouchers[].type": {
|
|
103
119
|
"$catalog": "GUTSCHEIN_ART"
|
|
104
120
|
},
|
|
@@ -154,6 +170,7 @@ exports.SCHEMAS = {
|
|
|
154
170
|
"tipChips": "tgChips",
|
|
155
171
|
"exactCash": "schnellbar",
|
|
156
172
|
"tipKeptByDefault": "tgDirekt",
|
|
173
|
+
"tipKeptMode": "tgDirektModus",
|
|
157
174
|
"tipKinds": "tgArten",
|
|
158
175
|
"tipStart": "tgStart",
|
|
159
176
|
"checkoutMode": "kassierenModus",
|
|
@@ -168,7 +185,16 @@ exports.SCHEMAS = {
|
|
|
168
185
|
"watermarkScale": "wzSkala",
|
|
169
186
|
"glass": "glas",
|
|
170
187
|
"hints": "hinweise",
|
|
171
|
-
"discountChips": "rabattChips"
|
|
188
|
+
"discountChips": "rabattChips",
|
|
189
|
+
"discountPresets": [
|
|
190
|
+
{
|
|
191
|
+
"__": "rabattVorlagen",
|
|
192
|
+
"kind": "art",
|
|
193
|
+
"percentBp": "prozentBp",
|
|
194
|
+
"amountCents": "betragCents"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"customDiscountAllowed": "rabattFrei"
|
|
172
198
|
},
|
|
173
199
|
"device": {
|
|
174
200
|
"__": "geraet",
|
|
@@ -303,9 +329,36 @@ exports.SCHEMAS = {
|
|
|
303
329
|
"__": "connect",
|
|
304
330
|
"minimumVersion": "mindestversion",
|
|
305
331
|
"deadline": "frist"
|
|
332
|
+
},
|
|
333
|
+
"deposit": {
|
|
334
|
+
"__": "pfand",
|
|
335
|
+
"singleUse": "einweg",
|
|
336
|
+
"reusable": "mehrweg",
|
|
337
|
+
"depositTypes": [
|
|
338
|
+
{
|
|
339
|
+
"__": "pfandarten",
|
|
340
|
+
"kind": "art",
|
|
341
|
+
"type": "typ",
|
|
342
|
+
"amounts": [
|
|
343
|
+
{
|
|
344
|
+
"__": "betraege",
|
|
345
|
+
"from": "ab"
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"returnRate": "rueckgabeSatz",
|
|
349
|
+
"used": "verwendet",
|
|
350
|
+
"active": "aktiv"
|
|
351
|
+
}
|
|
352
|
+
]
|
|
306
353
|
}
|
|
307
354
|
},
|
|
308
355
|
"werte": {
|
|
356
|
+
"deposit.depositTypes[].kind": {
|
|
357
|
+
"$catalog": "PFAND_ART"
|
|
358
|
+
},
|
|
359
|
+
"deposit.depositTypes[].type": {
|
|
360
|
+
"$catalog": "PFAND_TYP"
|
|
361
|
+
},
|
|
309
362
|
"business.watermark": {
|
|
310
363
|
"$catalog": "KASSE_BETRIEB_WERTE.watermark"
|
|
311
364
|
},
|
|
@@ -333,6 +386,12 @@ exports.SCHEMAS = {
|
|
|
333
386
|
"business.tipStart": {
|
|
334
387
|
"$catalog": "KASSE_BETRIEB_WERTE.tipStart"
|
|
335
388
|
},
|
|
389
|
+
"business.tipKeptMode": {
|
|
390
|
+
"$catalog": "KASSE_BETRIEB_WERTE.tipKeptMode"
|
|
391
|
+
},
|
|
392
|
+
"business.discountPresets[].kind": {
|
|
393
|
+
"$catalog": "KASSE_BETRIEB_WERTE.discountPresets[].kind"
|
|
394
|
+
},
|
|
336
395
|
"business.checkoutMode": {
|
|
337
396
|
"$catalog": "KASSE_BETRIEB_WERTE.checkoutMode"
|
|
338
397
|
},
|
|
@@ -411,7 +470,16 @@ exports.SCHEMAS = {
|
|
|
411
470
|
"pattern": "muster",
|
|
412
471
|
"patternStrict": "musterStreng"
|
|
413
472
|
},
|
|
414
|
-
"addOns": "zusaetze"
|
|
473
|
+
"addOns": "zusaetze",
|
|
474
|
+
"externalVoucher": "fremdgutschein",
|
|
475
|
+
"deposits": [
|
|
476
|
+
{
|
|
477
|
+
"__": "pfand",
|
|
478
|
+
"depositTypeId": "pfandartId",
|
|
479
|
+
"quantity": "menge",
|
|
480
|
+
"ownFilling": "eigen"
|
|
481
|
+
}
|
|
482
|
+
]
|
|
415
483
|
}
|
|
416
484
|
]
|
|
417
485
|
},
|
|
@@ -424,6 +492,9 @@ exports.SCHEMAS = {
|
|
|
424
492
|
},
|
|
425
493
|
"articles[].reference.mode": {
|
|
426
494
|
"$catalog": "REFERENZ_STUFE"
|
|
495
|
+
},
|
|
496
|
+
"articles[].externalVoucher": {
|
|
497
|
+
"$catalog": "ARTIKEL_FREMDGUTSCHEIN"
|
|
427
498
|
}
|
|
428
499
|
}
|
|
429
500
|
}
|
|
@@ -457,10 +528,16 @@ exports.ARTIKEL_FELDER = [
|
|
|
457
528
|
"minStockByLocation",
|
|
458
529
|
"askPrice",
|
|
459
530
|
"reference",
|
|
460
|
-
"addOns"
|
|
531
|
+
"addOns",
|
|
532
|
+
"externalVoucher",
|
|
533
|
+
"deposits"
|
|
461
534
|
];
|
|
462
535
|
/** Wertkataloge innen (deutsch) -> aussen (englisch). */
|
|
463
536
|
exports.KATALOGE = {
|
|
537
|
+
"ARTIKEL_FREMDGUTSCHEIN": {
|
|
538
|
+
"mehrzweck": "multi_purpose",
|
|
539
|
+
"einzweck": "single_purpose"
|
|
540
|
+
},
|
|
464
541
|
"AUSGABE_ART": {
|
|
465
542
|
"erstdruck": "print",
|
|
466
543
|
"duplikat": "reprint",
|
|
@@ -654,6 +731,10 @@ exports.KATALOGE = {
|
|
|
654
731
|
"aus": "off",
|
|
655
732
|
"an": "on"
|
|
656
733
|
},
|
|
734
|
+
"KASSE_BETRIEB_WERTE.discountPresets[].kind": {
|
|
735
|
+
"prozent": "percent",
|
|
736
|
+
"betrag": "amount"
|
|
737
|
+
},
|
|
657
738
|
"KASSE_BETRIEB_WERTE.quantity": {
|
|
658
739
|
"aus": "off",
|
|
659
740
|
"x": "x",
|
|
@@ -676,6 +757,11 @@ exports.KATALOGE = {
|
|
|
676
757
|
"streifen": "stripe",
|
|
677
758
|
"voll": "full"
|
|
678
759
|
},
|
|
760
|
+
"KASSE_BETRIEB_WERTE.tipKeptMode": {
|
|
761
|
+
"fragen": "ask",
|
|
762
|
+
"immer": "always",
|
|
763
|
+
"nie": "never"
|
|
764
|
+
},
|
|
679
765
|
"KASSE_BETRIEB_WERTE.tipKinds[]": {
|
|
680
766
|
"prozent": "percent",
|
|
681
767
|
"aufrunden": "round_up",
|
|
@@ -743,6 +829,22 @@ exports.KATALOGE = {
|
|
|
743
829
|
"stueck": "piece",
|
|
744
830
|
"dezimal": "decimal"
|
|
745
831
|
},
|
|
832
|
+
"PFAND_ART": {
|
|
833
|
+
"einweg": "single_use",
|
|
834
|
+
"mehrweg": "reusable"
|
|
835
|
+
},
|
|
836
|
+
"PFAND_KIND": {
|
|
837
|
+
"pfand": "deposit",
|
|
838
|
+
"pfand_rueckgabe": "deposit_return"
|
|
839
|
+
},
|
|
840
|
+
"PFAND_TYP": {
|
|
841
|
+
"flasche": "bottle",
|
|
842
|
+
"kiste": "crate",
|
|
843
|
+
"fass": "keg",
|
|
844
|
+
"becher": "cup",
|
|
845
|
+
"glas": "glass",
|
|
846
|
+
"sonstiges": "other"
|
|
847
|
+
},
|
|
746
848
|
"REFERENZ_STUFE": {
|
|
747
849
|
"fragen": "optional",
|
|
748
850
|
"pflicht": "required"
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -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", "recordMyShiftCount", "logReceiptOutputs", "getRegisterInspectionInfo", "reportConnectState", "registerTerminalDevice", "getTerminalAccess", "claimTerminal", "requestTerminalCode", "getTerminalCode", "reportTerminalLogin", "reportTerminalReady"];
|
|
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", "learnMyLeergutCode", "listMyLeergutCodes", "registerTerminalDevice", "getTerminalAccess", "claimTerminal", "requestTerminalCode", "getTerminalCode", "reportTerminalLogin", "reportTerminalReady"];
|
|
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", "recordMyShiftCount", "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", "learnMyLeergutCode", "listMyLeergutCodes"];
|
|
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", "getTerminalCode", "hobexPayApi", "hobexRefundApi", "issueInvoice", "logMyDrawerOpenings", "logReceiptOutputs", "openMyShift", "orderSignatureCard", "pairRegisterDevice", "receiveGoods", "recordInvoicePayment", "recordMyCashMovement", "recordMyShiftCount", "recordMyStocktakeCount", "recordStockLoss", "recordStocktakeCount", "recountStocktake", "registerTerminalDevice", "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", "getTerminalCode", "hobexPayApi", "hobexRefundApi", "issueInvoice", "learnMyLeergutCode", "logMyDrawerOpenings", "logReceiptOutputs", "openMyShift", "orderSignatureCard", "pairRegisterDevice", "receiveGoods", "recordInvoicePayment", "recordMyCashMovement", "recordMyShiftCount", "recordMyStocktakeCount", "recordStockLoss", "recordStocktakeCount", "recountStocktake", "registerTerminalDevice", "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
|
/**
|
|
@@ -151,6 +151,9 @@ export const ALL_CALLS = [
|
|
|
151
151
|
'getRegisterInspectionInfo',
|
|
152
152
|
// Connect-Bestand (./pos): welche Connect-Version an welchem Kassengeraet laeuft; nur ueber den Kassenweg.
|
|
153
153
|
'reportConnectState',
|
|
154
|
+
// Leergut-Codes (Pfand, ./pos): Codes lernen und lesen; nur ueber den Kassenweg.
|
|
155
|
+
'learnMyLeergutCode',
|
|
156
|
+
'listMyLeergutCodes',
|
|
154
157
|
// Kartenterminal am Handy: Geraet, Zugang, TID und Code (nur /v3).
|
|
155
158
|
'registerTerminalDevice',
|
|
156
159
|
'getTerminalAccess',
|
|
@@ -364,6 +367,9 @@ export const POS_CALLS = [
|
|
|
364
367
|
'getRegisterInspectionInfo',
|
|
365
368
|
// Connect-Bestand: nur ueber den Kassenweg, jeder Kassen-Benutzer.
|
|
366
369
|
'reportConnectState',
|
|
370
|
+
// Leergut-Codes lernen und lesen: Kassen-Benutzer mit dem Recht depositReturn.
|
|
371
|
+
'learnMyLeergutCode',
|
|
372
|
+
'listMyLeergutCodes',
|
|
367
373
|
];
|
|
368
374
|
/**
|
|
369
375
|
* Die Aufrufe **mit Wirkung**, alphabetisch: sie legen etwas an, aendern oder
|
|
@@ -415,6 +421,7 @@ export const UNKNOWN_OUTCOME_CALLS = [
|
|
|
415
421
|
'hobexPayApi',
|
|
416
422
|
'hobexRefundApi',
|
|
417
423
|
'issueInvoice',
|
|
424
|
+
'learnMyLeergutCode',
|
|
418
425
|
'logMyDrawerOpenings',
|
|
419
426
|
'logReceiptOutputs',
|
|
420
427
|
'openMyShift',
|
|
@@ -497,6 +504,7 @@ export const CALLS_WITHOUT_EFFECT = Object.freeze({
|
|
|
497
504
|
generateFullReceiptId: 'read',
|
|
498
505
|
getCashregisterReport: 'read',
|
|
499
506
|
getArticle: 'read',
|
|
507
|
+
listMyLeergutCodes: 'read',
|
|
500
508
|
getCustomer: 'read',
|
|
501
509
|
getCustomerCredentials: 'read',
|
|
502
510
|
getCustomerSignatureStatus: 'read',
|
|
@@ -66,6 +66,17 @@ export interface ReceiptCommonOptions {
|
|
|
66
66
|
* Hauptlade der Kasse. Leer oder kein Text: wirft vor dem Senden.
|
|
67
67
|
*/
|
|
68
68
|
drawerId?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Pfand & Leergut: der Server setzt die Pfandzeilen aus den Artikeln (`deposits`) selbst und rechnet den Betrag.
|
|
71
|
+
* Ohne Angabe gilt die Vorgabe des Servers (an, solange der Betrieb Pfand eingeschaltet hat). Mit `false` setzt er
|
|
72
|
+
* keine; ausdrueckliche Zeilen `deposit` ohne `articleId` und `deposit_return` bleiben erlaubt.
|
|
73
|
+
*/
|
|
74
|
+
autoDeposits?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Pfand & Leergut: der Verkauf wird vor Ort verzehrt (`true`) oder mitgenommen (`false`). Ohne Angabe gilt die
|
|
77
|
+
* Vorgabe der Kasse (`CashRegisterDeposit.onPremisesDefault`). Nur ein Wahrheitswert; anderes wirft vor dem Senden.
|
|
78
|
+
*/
|
|
79
|
+
onPremises?: boolean;
|
|
69
80
|
/**
|
|
70
81
|
* Schutz vor einem zweiten Beleg, wenn die Antwort verloren geht (Netzabbruch,
|
|
71
82
|
* Zeitablauf, `outcome: 'unknown'`). Gilt je Kasse: dieselbe Anfrage mit
|
|
@@ -99,6 +99,16 @@ export function createReceiptParams(options) {
|
|
|
99
99
|
if (items?.some((item) => item.kind === 'voucher' || item.kind === 'voucher_float') ?? false) {
|
|
100
100
|
throw eingabefehler('voucher_invalid: Gutschein-Positionen (kind voucher, voucher_float) setzt nur der Server.');
|
|
101
101
|
}
|
|
102
|
+
// Pfandzeilen setzt der Server aus den Artikeln: eine Zeile `deposit` mit `articleId` waere doppelt gemeint.
|
|
103
|
+
if (items?.some((item) => item.kind === 'deposit' && item.articleId != null && item.articleId !== '') ?? false) {
|
|
104
|
+
throw eingabefehler('invalid_deposit: Eine Pfandzeile (kind deposit) traegt keine articleId; der Server setzt sie aus dem Artikel (autoDeposits).');
|
|
105
|
+
}
|
|
106
|
+
for (const feld of ['autoDeposits', 'onPremises']) {
|
|
107
|
+
const wert = options[feld];
|
|
108
|
+
if (wert !== undefined && typeof wert !== 'boolean') {
|
|
109
|
+
throw eingabefehler(`${feld} muss true oder false sein (oder weglassen).`);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
102
112
|
if (typ.needsItems) {
|
|
103
113
|
// Ein reiner Gutscheinverkauf ist ein Umsatz ohne Positionen, deshalb
|
|
104
114
|
// zaehlt er hier wie eine Position (wie im Flutter-Vorbild).
|
|
@@ -191,6 +201,10 @@ export function createReceiptParams(options) {
|
|
|
191
201
|
if (options.idempotencyKey != null) {
|
|
192
202
|
params['idempotencyKey'] = belegSchluessel(options.idempotencyKey);
|
|
193
203
|
}
|
|
204
|
+
if (options.autoDeposits !== undefined)
|
|
205
|
+
params['autoDeposits'] = options.autoDeposits;
|
|
206
|
+
if (options.onPremises !== undefined)
|
|
207
|
+
params['onPremises'] = options.onPremises;
|
|
194
208
|
return params;
|
|
195
209
|
}
|
|
196
210
|
/** Hoechstlaenge des `idempotencyKey` am Beleg, wie am Server (beleg-idempotenz-core `SCHLUESSEL_MAX`). */
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ReceiptType, type ReceiptTypeKey, VatRate, type VatRateKey, KeckPaymentMethod, type KeckPaymentMethodKey, CreditCardProvider, type CreditCardProviderKey, VoucherType, type VoucherTypeKey, VoucherAction, type VoucherActionKey, StripeLinkMode, type StripeLinkModeKey, } from './enums/index.js';
|
|
2
|
-
export { type ReceiptItem, type ReceiptItemPayload, type ReceiptItemPayloadRead, toReceiptItemPayload, fromReceiptItemPayload, receiptItemTotalCents, receiptItemIsValid, negateReceiptItem, type TipRecipient, isTipItem, isVoucherItem, isVoucherFloatItem, type Voucher, type VoucherArticle, type IssuedVoucher, type ReturnIssuedVoucher, type VoucherPayload, toVoucherPayload, fromVoucherPayload, voucherIsValid, type VoucherSource, type LegacyValueVoucherWish, VOUCHER_SOURCES, isExternalVoucher, externalVoucherIsValid, normalizeExternalVoucherNumber, checkExternalVoucherNumber, type ExternalVoucherNumberCheck, EXTERNAL_VOUCHER_NUMBER_MAX, EXTERNAL_VOUCHER_TAXED_WITH_MAX, EXTERNAL_VOUCHER_VAT_RATES_BP, type Receipt, type RegistrationInfo, type ReceiptPayload, type ReceiptPayloadRead, toReceiptPayload, fromReceiptPayload, receiptSubSumCents, receiptSumCents, receiptValueVoucherSign, type CancellationOf, type CancellationItem, type Cancellation, type CancellationReason, type CancellationErrorCode, type CancellationStatus, type ReturnDisposition, RETURN_DISPOSITIONS, CANCELLATION_REASONS, CANCELLATION_STATUSES, CANCELLATION_ERROR_CODES, CANCELLATION_RESERVATION_MS, isCancellationReason, isReturnDisposition, isCancellationErrorCode, cancellationErrorCode, isCancellationError, cancellationFieldErrors, type CancellationFieldError, type ReceiptPayment, type ReceiptPaymentPayload, type ReceiptPaymentInput, fromReceiptPaymentPayload, toReceiptPaymentPayload, type PaymentErrorCode, PAYMENT_ERROR_CODES, isPaymentErrorCode, paymentErrorCode, isPaymentError, paymentFieldErrors, type PaymentFieldError, type ReceiptEmailErrorCode, type ReceiptEmailVia, RECEIPT_EMAIL_ERROR_CODES, RECEIPT_EMAIL_SEND_ERROR_CODES, type ReceiptEmailSendErrorCode, RECEIPT_EMAIL_VIAS, isReceiptEmailErrorCode, receiptEmailErrorCode, isReceiptEmailError, receiptEmailFieldErrors, type ReceiptEmailFieldError, RECEIPT_OUTPUT_KINDS, type ReceiptOutputKind, RECEIPT_OUTPUT_LOG_KINDS, type ReceiptOutputLogKind, RECEIPT_OUTPUT_RESULTS, type ReceiptOutputResult, RECEIPT_OUTPUT_ENTRIES_MAX, type ReceiptOutput, type ReceiptOutputActor, RECEIPT_OUTPUT_ENTRY_ERROR_CODES, type ReceiptOutputEntryErrorCode, RECEIPT_OUTPUT_ERROR_CODES, type ReceiptOutputErrorCode, isReceiptOutputErrorCode, receiptOutputErrorCode, isReceiptOutputError, receiptOutputFieldErrors, type ReceiptOutputFieldError, type ReceiptErrorCode, type ReceiptFieldError, RECEIPT_ERROR_CODES, isReceiptErrorCode, receiptErrorCode, isReceiptError, receiptFieldErrors, remainingQuantities, TIP_REFUND_SOURCES, type TipRefundSource, isTipRefundSource, openStaffTipCents, cancellationItemsForTip, cancellationCashRefundCents, asksTipRefundSource, asksRefundTip, type ReceiptCompany, type ReceiptCompanyPayload, fromReceiptCompanyPayload, receiptCompanyTaxInfo, type Cashregister, type CashregisterOnboarding, type CashregisterPayload, type CashregisterOnboardingPayload, type CashregisterAutoLogout, type CashregisterAutoLogoutPayload, fromCashregisterPayload, type ReceiptSummary, type ReceiptSummaryPayload, fromReceiptSummaryPayload, type ZeroKind, ZERO_KINDS, isZeroKind, type ReportMonth, reportMonthFromDate, previousReportMonth, nextReportMonth, reportMonthKey, reportMonthReadable, type StripeUrlSession, type StripeUrlSessionPayload, toStripeUrlSessionPayload, fromStripeUrlSessionPayload, type HobexReceipt, type HobexReceiptPayload, toHobexReceiptPayload, fromHobexReceiptPayload, hobexReceiptToCardPaymentData, hobexReceiptNeedsSignature, } from './models/index.js';
|
|
2
|
+
export { type ReceiptItem, type ReceiptItemPayload, type ReceiptItemPayloadRead, toReceiptItemPayload, fromReceiptItemPayload, receiptItemTotalCents, receiptItemIsValid, negateReceiptItem, type TipRecipient, isTipItem, isVoucherItem, isVoucherFloatItem, isDepositItem, isDepositReturnItem, type Voucher, type VoucherArticle, type IssuedVoucher, type ReturnIssuedVoucher, type VoucherPayload, toVoucherPayload, fromVoucherPayload, voucherIsValid, type VoucherSource, type LegacyValueVoucherWish, VOUCHER_SOURCES, isExternalVoucher, externalVoucherIsValid, normalizeExternalVoucherNumber, checkExternalVoucherNumber, ownVoucherCodeShape, OWN_VOUCHER_CODE_SHAPES, type OwnVoucherCodeShape, type ExternalVoucherNumberCheck, EXTERNAL_VOUCHER_NUMBER_MAX, EXTERNAL_VOUCHER_TAXED_WITH_MAX, EXTERNAL_VOUCHER_VAT_RATES_BP, type Receipt, type RegistrationInfo, type ReceiptPayload, type ReceiptPayloadRead, toReceiptPayload, fromReceiptPayload, receiptSubSumCents, receiptSumCents, receiptValueVoucherSign, type CancellationOf, type CancellationItem, type Cancellation, type CancellationReason, type CancellationErrorCode, type CancellationStatus, type ReturnDisposition, RETURN_DISPOSITIONS, CANCELLATION_REASONS, CANCELLATION_STATUSES, CANCELLATION_ERROR_CODES, CANCELLATION_RESERVATION_MS, isCancellationReason, isReturnDisposition, isCancellationErrorCode, cancellationErrorCode, isCancellationError, cancellationFieldErrors, type CancellationFieldError, type ReceiptPayment, type ReceiptPaymentPayload, type ReceiptPaymentInput, fromReceiptPaymentPayload, toReceiptPaymentPayload, type PaymentErrorCode, PAYMENT_ERROR_CODES, isPaymentErrorCode, paymentErrorCode, isPaymentError, paymentFieldErrors, type PaymentFieldError, type ReceiptEmailErrorCode, type ReceiptEmailVia, RECEIPT_EMAIL_ERROR_CODES, RECEIPT_EMAIL_SEND_ERROR_CODES, type ReceiptEmailSendErrorCode, RECEIPT_EMAIL_VIAS, isReceiptEmailErrorCode, receiptEmailErrorCode, isReceiptEmailError, receiptEmailFieldErrors, type ReceiptEmailFieldError, RECEIPT_OUTPUT_KINDS, type ReceiptOutputKind, RECEIPT_OUTPUT_LOG_KINDS, type ReceiptOutputLogKind, RECEIPT_OUTPUT_RESULTS, type ReceiptOutputResult, RECEIPT_OUTPUT_ENTRIES_MAX, type ReceiptOutput, type ReceiptOutputActor, RECEIPT_OUTPUT_ENTRY_ERROR_CODES, type ReceiptOutputEntryErrorCode, RECEIPT_OUTPUT_ERROR_CODES, type ReceiptOutputErrorCode, isReceiptOutputErrorCode, receiptOutputErrorCode, isReceiptOutputError, receiptOutputFieldErrors, type ReceiptOutputFieldError, type ReceiptErrorCode, type ReceiptFieldError, RECEIPT_ERROR_CODES, isReceiptErrorCode, receiptErrorCode, isReceiptError, receiptFieldErrors, remainingQuantities, TIP_REFUND_SOURCES, type TipRefundSource, isTipRefundSource, openStaffTipCents, cancellationItemsForTip, cancellationCashRefundCents, asksTipRefundSource, asksRefundTip, type ReceiptCompany, type ReceiptCompanyPayload, fromReceiptCompanyPayload, receiptCompanyTaxInfo, type Cashregister, type CashregisterOnboarding, type CashregisterPayload, type CashregisterOnboardingPayload, type CashregisterAutoLogout, type CashregisterAutoLogoutPayload, fromCashregisterPayload, type ReceiptSummary, type ReceiptSummaryPayload, fromReceiptSummaryPayload, type ZeroKind, ZERO_KINDS, isZeroKind, type ReportMonth, reportMonthFromDate, previousReportMonth, nextReportMonth, reportMonthKey, reportMonthReadable, type StripeUrlSession, type StripeUrlSessionPayload, toStripeUrlSessionPayload, fromStripeUrlSessionPayload, type HobexReceipt, type HobexReceiptPayload, toHobexReceiptPayload, fromHobexReceiptPayload, hobexReceiptToCardPaymentData, hobexReceiptNeedsSignature, } from './models/index.js';
|
|
3
3
|
export { type AuthCredentials, type KasseneckAuth, type ApiKeyAuthOptions, type RegisterUserAuthOptions, apiKeyAuth, registerUserAuth, DEFAULT_BASE_URL, POS_BASE_URL, DEFAULT_TIMEOUT_MS, type HttpResponseLike, type HttpRequestInit, type FetchLike, type TransportOptions, type TransportBodyFields, type TransportCallOptions, type KasseneckTransport, type KasseneckBinaryTransport, type KasseneckPdfOrDataTransport, type PdfOrData, ALL_CALLS, type ApiCall, PUBLIC_CALLS, POS_CALLS, UNKNOWN_OUTCOME_CALLS, type PublicCall, type PosCall, createTransport, createBinaryTransport, createPdfOrDataTransport, createFileOrDataTransport, type FileOrData, type FileOrDataCallOptions, type KasseneckFileOrDataTransport, KasseneckApiError, KasseneckAuthError, KasseneckHttpError, KasseneckNetworkError, KasseneckValidationError, type ValidationScope, type KasseneckError, type HttpFailureReason, type CauseDigest, type ErrorOutcome, CLIENT_ERROR_CODES, type ClientErrorCode, isKasseneckApiError, isKasseneckAuthError, isKasseneckHttpError, isKasseneckNetworkError, isKasseneckValidationError, isOutcomeUnknown, type ReceiptCommonOptions, type SellReceiptOptions, type TipOptions, type TipRecipientShare, type CancelReceiptOptions, type CancelReceiptResult, type ReceiptWithCompany, sellReceipt, sellReceiptWithCompany, paymentsExpectedCents, cardRefundReference, receiptLayoutFromResult, cancelReceipt, zeroReceipt, getReceipt, getReceiptWithCompany, generateFullReceiptId, getFirstReceiptDate, listMyReceipts, type ListMyReceiptsOptions, type ReceiptList, type ReceiptListStats, listMyCashregisters, checkVoucherCombinationError, type SendReceiptEmailOptions, type SendReceiptEmailResult, sendReceiptEmail, type ReceiptOutputEntry, type LogReceiptOutputsOptions, type LogReceiptOutputsResult, type RejectedReceiptOutput, logReceiptOutputs, downloadDailyReport, downloadMonthlyReport, getCashregisterReport, type CashregisterReportPeriod, getReportV2, type ReportV2, type ReportV2Metadata, type ReportV2Options, listReceipts, listAllReceipts, fromListReceiptsSummaryPayload, listedReceiptWithCompany, LIST_RECEIPTS_VIEWS, LIST_RECEIPTS_ORDERS, LIST_RECEIPTS_LIMIT_MAX, LIST_RECEIPTS_DAYS_MAX, LIST_ALL_RECEIPTS_MAX_PAGES, LIST_RECEIPTS_ERROR_CODES, type ListReceiptsErrorCode, type ListReceiptsView, type ListReceiptsOrder, type ListReceiptsOptions, type ListReceiptsWindow, type ListReceiptsGrossByRate, type ListReceiptsSummary, type ListReceiptsDaySummary, type ListReceiptsPage, type ListedReceipt, createDepExport, getDepExport, waitForDepExport, getDepExportFile, createDepHandoverLink, revokeDepHandoverLink, DepExportTimeoutError, DepExportChecksumError, DEP_EXPORT_STATUSES, DEP_EXPORT_FILES, DEP_EXPORT_ERROR_CODES, DEP_EXPORT_FAILURES, DEP_EXPORT_POLL_START_MS, DEP_EXPORT_POLL_FACTOR, DEP_EXPORT_POLL_MAX_MS, DEP_EXPORT_WAIT_TIMEOUT_MS, DEP_EXPORT_DOWNLOAD_TIMEOUT_MS, type DepExportStatus, type DepExportFileKind, type DepExportErrorCode, type DepExportFailure, type CreateDepExportOptions, type CreateDepExportResult, type DepExportGap, type DepExportChainBreak, type DepExportFindings, type DepExportItems, type DepHandoverLinkInfo, type DepExport, type WaitForDepExportOptions, type GetDepExportFileOptions, type DepExportFile, type DepHandoverLink, type RevokedDepHandoverLink, registerTerminalDevice, getTerminalAccess, claimTerminal, requestTerminalCode, getTerminalCode, reportTerminalLogin, reportTerminalReady, TERMINAL_PLATFORMS, TERMINAL_SETUP_STATES, TERMINAL_CODE_STATUSES, TERMINAL_CODE_SOURCES, TERMINAL_ERROR_CODES, TERMINAL_LABEL_MAX, TERMINAL_APP_MAX, TERMINAL_REQUESTED_BY_MAX, type TerminalPlatform, type TerminalSetupState, type TerminalCodeStatus, type TerminalCodeSource, type TerminalErrorCode, type TerminalDeviceCredentials, type RegisterTerminalDeviceOptions, type RegisteredTerminalDevice, type GetTerminalAccessOptions, type ClaimTerminalOptions, type RequestTerminalCodeOptions, type ReportTerminalLoginOptions, type TerminalSetup, type TerminalCodeFormat, type TerminalAccess, type TerminalListEntry, type TerminalAccessUnavailable, type TerminalAccessResult, type TerminalCodeRequest, type TerminalCode, type ListedFullReceipt, type ListReceiptsHeader, type CashboxStatus, type SignatureStatus, getCashboxStatus, getSignatureStatus, type KasseneckApi, createKasseneckApi, } from './client/index.js';
|
|
4
4
|
export { type ReceiptDueTip, type ReceiptDueTipRecipient, type ReceiptDueOptions, type ReceiptDueBuckets, type ReceiptDueBreakdown, type ReceiptDueErrorReason, receiptDueCents, receiptDueBreakdown, ReceiptDueError, RECEIPT_DUE_ERROR_REASONS, isReceiptDueError, type VoucherDueInfo, type VoucherDueArticle, type VoucherDueType, type VoucherRedeemContext, voucherRedeemMaxCents, VOUCHER_ZERO_RATE_BUCKET_FROM, } from './receipt/due.js';
|
|
5
5
|
export { parseServerTimeStamp, toViennaWallClock, type ViennaWallClock } from './vienna-time.js';
|
|
6
|
-
export { type PosBusinessSettings, type PosDeviceSettings, type PosSettings, type ArticleGroup, type PosArticle, POS_BUSINESS_DEFAULTS, POS_DEVICE_DEFAULTS, mergePosSettings, fromArticleGroupPayload, fromPosArticlePayload, listMyArticleGroups, listMyArticles, getPosSettings, setMyPosSettings, setMyRegisterDeviceSettings, distributeDiscount, cancelScopeOf, receiptsScopeOf, stockViewOf, voucherPermsOf, } from './pos/index.js';
|
|
6
|
+
export { type PosBusinessSettings, type PosDeviceSettings, type PosSettings, type ArticleGroup, type PosArticle, POS_BUSINESS_DEFAULTS, POS_DEVICE_DEFAULTS, mergePosSettings, fromArticleGroupPayload, fromPosArticlePayload, listMyArticleGroups, listMyArticles, getPosSettings, setMyPosSettings, setMyRegisterDeviceSettings, distributeDiscount, cancelScopeOf, receiptsScopeOf, stockViewOf, voucherPermsOf, depositReturnOf, } from './pos/index.js';
|