sinfactura-types 1.7.12 → 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/store.d.ts +16 -51
- package/package.json +1 -1
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;
|