@autobusal/providers 1.47.0 → 1.48.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/package.json +1 -1
- package/types/fiscal.ts +7 -1
- package/types/users.ts +5 -0
package/package.json
CHANGED
package/types/fiscal.ts
CHANGED
|
@@ -21,7 +21,13 @@ export interface FiscalStatus {
|
|
|
21
21
|
fiscalization_number: boolean
|
|
22
22
|
reason: string | null
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
/* the brand's own switch on the Fiscalisation page (Claude - 2026-11-05) */
|
|
25
|
+
switched_on?: boolean
|
|
26
|
+
/* the owner account's provider (config/fiscal.php id), null = none chosen */
|
|
27
|
+
provider?: string | null
|
|
28
|
+
/* paid sales passed over while the switch was off, waiting for a catch-up */
|
|
29
|
+
not_fiscalised?: number
|
|
30
|
+
blocker: 'switched_off' | 'other_provider' | 'label_unconfigured' | 'no_owner' | 'no_account' | 'account_incomplete' | 'disabled' | 'no_token' | 'token_expired' | 'no_cash_register' | null
|
|
25
31
|
orders: { sold: number, late: number, sent_7d: number }
|
|
26
32
|
last_error: { order_id: number, status: number, message: string, at: string | null } | null
|
|
27
33
|
last_success: string | null
|
package/types/users.ts
CHANGED
|
@@ -19,6 +19,9 @@ export interface UserData {
|
|
|
19
19
|
// operator/employee accounts - whether the company's Shipments module is
|
|
20
20
|
// on, so menus can hide the link instead of advertising a 403.
|
|
21
21
|
shipping_enabled?: boolean | null
|
|
22
|
+
// Claude - 2026-11-04: an employee's permission to print or download
|
|
23
|
+
// passenger lists, set by their company; null for every other type
|
|
24
|
+
can_print?: boolean | null
|
|
22
25
|
// Claude - 2026-08-31: whether this admin belongs to the MAIN label. Same
|
|
23
26
|
// job as shipping_enabled above - the platform-wide screens (database
|
|
24
27
|
// backups) answer a 404 to a whitelabel admin, and a menu should hide the
|
|
@@ -65,6 +68,8 @@ export interface ApiData {
|
|
|
65
68
|
has_token?: boolean
|
|
66
69
|
bkt: number
|
|
67
70
|
devpos: number
|
|
71
|
+
// Claude - 2026-11-05: the account's one fiscalisation provider, null = none
|
|
72
|
+
fiscal_provider?: string | null
|
|
68
73
|
stripe: number
|
|
69
74
|
mollie: number
|
|
70
75
|
raiffeisen: number
|