@stacksjs/commerce 0.75.529 → 0.75.535
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/dist/auctions/engine/winners.d.ts +1 -1
- package/dist/imports/text.d.ts +2 -2
- package/dist/imports/text.js +1 -1
- package/dist/inventory.d.ts +1 -1
- package/dist/kassensichv.d.ts +26 -26
- package/package.json +14 -14
|
@@ -19,4 +19,4 @@ export declare function determineWinner(item: Pick<AuctionItemRow, 'id' | 'lot_n
|
|
|
19
19
|
* conversation to have. Lots with no stated value are excluded rather than
|
|
20
20
|
* counted as zero, which would make every catalogue look like a loss.
|
|
21
21
|
*/
|
|
22
|
-
export declare function settle(items: Pick<AuctionItemRow, 'id' | 'fair_market_value'>[], outcomes: ItemOutcome[], pledges: PledgeRow[], opts: { auctionId: number, currency: string, goalAmount?: number | null }): AuctionSettlement;
|
|
22
|
+
export declare function settle(items: Pick<AuctionItemRow, 'id' | 'fair_market_value'>[], outcomes: ItemOutcome[], pledges: PledgeRow[], opts: { auctionId: number, currency: string, goalAmount?: number | null } ): AuctionSettlement;
|
package/dist/imports/text.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function decodeHtmlEntities(input: string): string;
|
|
1
|
+
import { decodeHtmlEntities } from '@stacksjs/strings';
|
|
3
2
|
/** A name for storage: entities decoded, whitespace collapsed, trimmed. */
|
|
4
3
|
export declare function cleanName(input: unknown): string;
|
|
5
4
|
/** A non-empty string, or null. */
|
|
6
5
|
export declare function optionalString(input: unknown): string | null;
|
|
6
|
+
export { decodeHtmlEntities };
|
package/dist/imports/text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{decodeHtmlEntities}from"@stacksjs/strings";export{decodeHtmlEntities};export function cleanName(input){if(typeof input!=="string")return"";return decodeHtmlEntities(input).replace(/\s+/g," ").trim()}export function optionalString(input){if(typeof input!=="string")return null;const trimmed=input.trim();return trimmed===""?null:trimmed}
|
package/dist/inventory.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Add delivered whole units without converting untracked stock into counted stock. */
|
|
2
|
-
export declare function restockedQuantity(stock: unknown, units: unknown, maximum?:
|
|
2
|
+
export declare function restockedQuantity(stock: unknown, units: unknown, maximum?: number): number;
|
package/dist/kassensichv.d.ts
CHANGED
|
@@ -42,40 +42,40 @@ export declare function receiptVatLines(vat: readonly TseVatAmount[]): Array<{ k
|
|
|
42
42
|
*/
|
|
43
43
|
export declare const DE_VAT_KEYS: {
|
|
44
44
|
readonly 1: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
45
|
+
readonly rate: 19;
|
|
46
|
+
readonly bucket: 0;
|
|
47
|
+
readonly fiskaly: 'NORMAL';
|
|
48
|
+
readonly description: 'Regelsteuersatz'
|
|
49
|
+
};
|
|
50
50
|
readonly 2: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
};
|
|
51
|
+
readonly rate: 7;
|
|
52
|
+
readonly bucket: 1;
|
|
53
|
+
readonly fiskaly: 'REDUCED_1';
|
|
54
|
+
readonly description: 'Ermäßigter Steuersatz'
|
|
55
|
+
};
|
|
56
56
|
readonly 5: {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
};
|
|
57
|
+
readonly rate: 0;
|
|
58
|
+
readonly bucket: 4;
|
|
59
|
+
readonly fiskaly: 'NULL';
|
|
60
|
+
readonly description: 'Nicht Steuerbar'
|
|
61
|
+
};
|
|
62
62
|
readonly 6: {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
};
|
|
63
|
+
readonly rate: 0;
|
|
64
|
+
readonly bucket: 4;
|
|
65
|
+
readonly fiskaly: 'NULL';
|
|
66
|
+
readonly description: 'Umsatzsteuerfrei'
|
|
67
|
+
};
|
|
68
68
|
readonly 7: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
69
|
+
readonly rate: 0;
|
|
70
|
+
readonly bucket: 4;
|
|
71
|
+
readonly fiskaly: 'NULL';
|
|
72
|
+
readonly description: 'UmsatzsteuerNichtErmittelbar'
|
|
73
|
+
}
|
|
74
74
|
};
|
|
75
75
|
/** What a receipt must say when the TSE failed (AEAO zu § 146a, Nr. 1.14.2): the failure, unmistakably. */
|
|
76
76
|
export declare const TSE_FAILURE_NOTICE: 'TSE ausgefallen';
|
|
77
77
|
export declare interface TseVatAmount { key: DeVatKey, grossCents: number }
|
|
78
|
-
export declare interface TsePayment { kind: TsePaymentKind, cents: number,
|
|
78
|
+
export declare interface TsePayment { kind: TsePaymentKind, cents: number, /** ISO 4217; EUR when left out. */ currency?: string }
|
|
79
79
|
/** fiskaly's receipt schema (`schema.standard_v1.receipt`), as `fiskalyReceiptFor` writes it. */
|
|
80
80
|
export declare interface FiskalyReceiptSchema {
|
|
81
81
|
receipt_type: 'RECEIPT' | 'TRAINING' | 'TRANSFER' | 'ORDER' | 'CANCELLATION' | 'ABORT' | 'BENEFIT_IN_KIND' | 'INVOICE' | 'OTHER'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/commerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.75.
|
|
4
|
+
"version": "0.75.535",
|
|
5
5
|
"description": "Stacks commerce utilities.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -57,19 +57,19 @@
|
|
|
57
57
|
"prepublishOnly": "bun run build"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@stacksjs/cache": "0.75.
|
|
61
|
-
"@stacksjs/config": "0.75.
|
|
62
|
-
"@stacksjs/database": "0.75.
|
|
63
|
-
"@stacksjs/env": "0.75.
|
|
64
|
-
"@stacksjs/error-handling": "0.75.
|
|
65
|
-
"@stacksjs/events": "0.75.
|
|
66
|
-
"@stacksjs/logging": "0.75.
|
|
67
|
-
"@stacksjs/orm": "0.75.
|
|
68
|
-
"@stacksjs/payments": "0.75.
|
|
69
|
-
"@stacksjs/realtime": "0.75.
|
|
70
|
-
"@stacksjs/slug": "0.75.
|
|
71
|
-
"@stacksjs/strings": "0.75.
|
|
72
|
-
"@stacksjs/validation": "0.75.
|
|
60
|
+
"@stacksjs/cache": "0.75.535",
|
|
61
|
+
"@stacksjs/config": "0.75.535",
|
|
62
|
+
"@stacksjs/database": "0.75.535",
|
|
63
|
+
"@stacksjs/env": "0.75.535",
|
|
64
|
+
"@stacksjs/error-handling": "0.75.535",
|
|
65
|
+
"@stacksjs/events": "0.75.535",
|
|
66
|
+
"@stacksjs/logging": "0.75.535",
|
|
67
|
+
"@stacksjs/orm": "0.75.535",
|
|
68
|
+
"@stacksjs/payments": "0.75.535",
|
|
69
|
+
"@stacksjs/realtime": "0.75.535",
|
|
70
|
+
"@stacksjs/slug": "0.75.535",
|
|
71
|
+
"@stacksjs/strings": "0.75.535",
|
|
72
|
+
"@stacksjs/validation": "0.75.535",
|
|
73
73
|
"ts-spreadsheets": "^0.2.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|