sinfactura-types 1.7.11 → 1.8.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/dist/invoice.d.ts +12 -0
- package/dist/store.d.ts +16 -51
- package/package.json +1 -1
package/dist/invoice.d.ts
CHANGED
|
@@ -51,6 +51,18 @@ declare global {
|
|
|
51
51
|
attemptedCbteNro?: number;
|
|
52
52
|
attemptedCbteFch?: string;
|
|
53
53
|
invoicePrinted?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* DynamoDB TTL, Unix SECONDS (api#1559).
|
|
56
|
+
*
|
|
57
|
+
* ⚠️ A COST BOUNDARY on the hot tier — it carries no legal meaning and is NOT
|
|
58
|
+
* the fiscal retention term. **Never surface this to a user as a retention or
|
|
59
|
+
* expiry date.** The no-expiry S3 cold archive is the record of retention
|
|
60
|
+
* (api#1949): the duty runs to ~12 years from the operation and is not even a
|
|
61
|
+
* fixed term, since Ley 11.683 arts. 65/67 suspend and interrupt the
|
|
62
|
+
* prescription it derives from.
|
|
63
|
+
*
|
|
64
|
+
* Optional: forward-only, so rows written before api#1559 carry no ttl.
|
|
65
|
+
*/
|
|
54
66
|
ttl?: number;
|
|
55
67
|
}
|
|
56
68
|
interface InvoiceItem {
|
package/dist/store.d.ts
CHANGED
|
@@ -48,55 +48,21 @@ declare global {
|
|
|
48
48
|
appVersion?: number;
|
|
49
49
|
stats?: Record<string, string>;
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
showHome?: boolean;
|
|
67
|
-
showCash?: boolean;
|
|
68
|
-
showOrders?: boolean;
|
|
69
|
-
showInvoices?: boolean;
|
|
70
|
-
showBaskets?: boolean;
|
|
71
|
-
showCustomers?: boolean;
|
|
72
|
-
showProducts?: boolean;
|
|
73
|
-
showReports?: boolean;
|
|
74
|
-
store?: {
|
|
75
|
-
show?: boolean;
|
|
76
|
-
showConfig?: boolean;
|
|
77
|
-
showCategories?: boolean;
|
|
78
|
-
showBrands?: boolean;
|
|
79
|
-
showProviders?: boolean;
|
|
80
|
-
showUsers?: boolean;
|
|
81
|
-
showIntegrations?: boolean;
|
|
82
|
-
};
|
|
83
|
-
showBalance?: boolean;
|
|
84
|
-
};
|
|
85
|
-
footer?: {
|
|
86
|
-
desktopNavigation?: {
|
|
87
|
-
show?: boolean;
|
|
88
|
-
showCopyright?: boolean;
|
|
89
|
-
showPrivacy?: boolean;
|
|
90
|
-
showAppVersion?: boolean;
|
|
91
|
-
};
|
|
92
|
-
mobileNavigation?: {
|
|
93
|
-
show?: boolean;
|
|
94
|
-
showOrders?: boolean;
|
|
95
|
-
showInvoices?: boolean;
|
|
96
|
-
showBasket?: boolean;
|
|
97
|
-
showFavorites?: boolean;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
51
|
+
/**
|
|
52
|
+
* Platform globals forwarded to a tenant session on `GET /store` (api#1955).
|
|
53
|
+
*
|
|
54
|
+
* A read-time projection of the `GLOBALS`/`PLATFORM` row, never a stored
|
|
55
|
+
* attribute of the STORE row: the api decides per registered key whether it
|
|
56
|
+
* crosses this boundary (`forwardToTenants` in `globalsDefaults.ts`), so
|
|
57
|
+
* operator-only keys — the AI spend ceilings — are absent by construction.
|
|
58
|
+
* Every member is optional: a key the api has not registered, or has not
|
|
59
|
+
* marked forwardable, simply will not be here.
|
|
60
|
+
*/
|
|
61
|
+
interface StoreGlobals {
|
|
62
|
+
/** ARCA/AFIP "Consumidor Final" DNI threshold, in pesos. */
|
|
63
|
+
minWithDni?: number;
|
|
64
|
+
/** Cmd-K usage telemetry collection (api#1007). */
|
|
65
|
+
commandPaletteTelemetry?: boolean;
|
|
100
66
|
}
|
|
101
67
|
interface Store {
|
|
102
68
|
storeId: string;
|
|
@@ -167,7 +133,6 @@ declare global {
|
|
|
167
133
|
skipped: boolean;
|
|
168
134
|
};
|
|
169
135
|
};
|
|
170
|
-
features: FeatureFlags;
|
|
171
136
|
ecommerce?: Ecommerce;
|
|
172
137
|
photoURL: string;
|
|
173
138
|
photoData?: string;
|
|
@@ -201,7 +166,7 @@ declare global {
|
|
|
201
166
|
appVersion: number;
|
|
202
167
|
fiscalConditions: FiscalCondition[];
|
|
203
168
|
ivaTypes: Method[];
|
|
204
|
-
|
|
169
|
+
globals?: StoreGlobals;
|
|
205
170
|
maintenance?: MaintenanceInfo;
|
|
206
171
|
afipCertAlert?: {
|
|
207
172
|
expiry: number;
|