sinfactura-types 1.10.415 → 1.10.416
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/cash.d.ts +1 -1
- package/dist/currency.d.ts +22 -0
- package/dist/invoice.d.ts +1 -1
- package/dist/order.d.ts +1 -1
- package/dist/pricing.d.ts +1 -1
- package/dist/product.d.ts +1 -1
- package/package.json +1 -1
package/dist/cash.d.ts
CHANGED
package/dist/currency.d.ts
CHANGED
|
@@ -56,6 +56,28 @@ declare global {
|
|
|
56
56
|
afipCode?: 'PES' | 'DOL' | null;
|
|
57
57
|
decimals?: number;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Where a money row's `currencyValue` came from, stamped BESIDE the
|
|
61
|
+
* `{ currency, currencyValue, currencyValueAt }` triple by the shared stamp
|
|
62
|
+
* seam (`stacks/helpers/rateStamp.ts`, `stampRate`).
|
|
63
|
+
*
|
|
64
|
+
* - `currencyValueSourceId` — the rate record's `sourceId`: a
|
|
65
|
+
* `PlatformFxSource.id`, or `'manual'` for an operator-typed subscription.
|
|
66
|
+
* - `currencyValueObservedAt` — the day that rate was true UPSTREAM, in
|
|
67
|
+
* `YYYYMMDD` America/Argentina/Buenos_Aires. ⚠️ NOT the Unix ms of
|
|
68
|
+
* `currencyValueAt`, which keeps its own meaning (write instant, or the
|
|
69
|
+
* document's date — the writer's choice).
|
|
70
|
+
*
|
|
71
|
+
* Both ABSENT means the provenance is UNKNOWN — a row written before this
|
|
72
|
+
* existed, a rate whose subscription carried none, a peso row (rate 1 by
|
|
73
|
+
* definition, nothing observed), or a rate the operator typed onto the
|
|
74
|
+
* document itself. Forward-only; no writer invents a placeholder. Server-set
|
|
75
|
+
* only: a client-supplied value is never persisted.
|
|
76
|
+
*/
|
|
77
|
+
interface CurrencyRateProvenance {
|
|
78
|
+
currencyValueSourceId?: string;
|
|
79
|
+
currencyValueObservedAt?: number;
|
|
80
|
+
}
|
|
59
81
|
interface Currency {
|
|
60
82
|
createdAt: number;
|
|
61
83
|
dated: number;
|
package/dist/invoice.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ declare global {
|
|
|
54
54
|
/** The AUTHORITATIVE amount, as declared — never re-derived from `baseImp × alic`. */
|
|
55
55
|
importe: number;
|
|
56
56
|
}
|
|
57
|
-
interface Invoice {
|
|
57
|
+
interface Invoice extends CurrencyRateProvenance {
|
|
58
58
|
storeId: string;
|
|
59
59
|
invoiceId: string;
|
|
60
60
|
customerId: string;
|
package/dist/order.d.ts
CHANGED
package/dist/pricing.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare global {
|
|
|
6
6
|
* while entity stamps stay `string`; do NOT retrofit onto SupplierInvoice /
|
|
7
7
|
* SupplierAccount (optional-currency by design).
|
|
8
8
|
*/
|
|
9
|
-
interface CurrencyStamp {
|
|
9
|
+
interface CurrencyStamp extends CurrencyRateProvenance {
|
|
10
10
|
currency: string;
|
|
11
11
|
currencyValue: number;
|
|
12
12
|
currencyValueAt: number;
|
package/dist/product.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ declare global {
|
|
|
40
40
|
* pricing decisions on it; it is a counting-frequency and attention signal.
|
|
41
41
|
*/
|
|
42
42
|
type ABCClassification = 'A' | 'B' | 'C';
|
|
43
|
-
interface Product {
|
|
43
|
+
interface Product extends CurrencyRateProvenance {
|
|
44
44
|
storeId: string;
|
|
45
45
|
productId: string;
|
|
46
46
|
createdAt: number;
|