@a-cube-io/ereceipts-js-sdk 2.1.0 → 2.2.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/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Observable } from 'rxjs';
2
- import { AxiosInstance } from 'axios';
3
2
  import * as z from 'zod';
4
3
 
5
4
  interface IStoragePort {
@@ -16,8 +15,6 @@ interface ISecureStoragePort extends IStoragePort {
16
15
  isAvailable(): Promise<boolean>;
17
16
  getSecurityLevel(): Promise<string>;
18
17
  }
19
- type IStorage = IStoragePort;
20
- type ISecureStorage = ISecureStoragePort;
21
18
 
22
19
  interface NetworkStatus {
23
20
  online: boolean;
@@ -35,7 +32,6 @@ interface INetworkPort {
35
32
  getNetworkInfo(): Promise<NetworkInfo | null>;
36
33
  destroy(): void;
37
34
  }
38
- type INetworkMonitor = INetworkPort;
39
35
 
40
36
  interface CertificateData {
41
37
  certificate: string;
@@ -95,21 +91,6 @@ interface IMTLSAdapterFactory {
95
91
  getPlatform(): string;
96
92
  }
97
93
  type IMTLSAdapter = IMTLSPort;
98
- declare class PlatformDetector {
99
- static detectPlatform(): 'react-native' | 'node' | 'web';
100
- static isReactNative(): boolean;
101
- static isNode(): boolean;
102
- static isWeb(): boolean;
103
- static getPlatformDetails(): {
104
- platform: "react-native" | "node" | "web";
105
- userAgent: string;
106
- nodeVersion: string | undefined;
107
- isExpo: boolean;
108
- hasWindow: boolean;
109
- hasDocument: boolean;
110
- hasProcess: boolean;
111
- };
112
- }
113
94
 
114
95
  interface HttpRequestConfig {
115
96
  headers?: Record<string, string>;
@@ -495,6 +476,7 @@ interface IPemRepository {
495
476
  findBySerialNumber(serialNumber: string): Promise<PointOfSaleMf2>;
496
477
  findAllByMerchant(merchantUuid: string, page?: number): Promise<PointOfSaleMf2[]>;
497
478
  getCertificates(serialNumber: string): Promise<PemCertificates>;
479
+ downloadData(serialNumber: string): Promise<ArrayBuffer>;
498
480
  }
499
481
 
500
482
  interface IPointOfSaleRepository {
@@ -880,112 +862,6 @@ declare class ACubeSDK {
880
862
  }
881
863
  declare function createACubeSDK(config: SDKConfig, customAdapters?: PlatformAdapters, events?: SDKEvents): Promise<ACubeSDK>;
882
864
 
883
- declare const DI_TOKENS: {
884
- readonly HTTP_PORT: symbol;
885
- readonly STORAGE_PORT: symbol;
886
- readonly SECURE_STORAGE_PORT: symbol;
887
- readonly NETWORK_PORT: symbol;
888
- readonly MTLS_PORT: symbol;
889
- readonly TOKEN_STORAGE_PORT: symbol;
890
- readonly RECEIPT_REPOSITORY: symbol;
891
- readonly MERCHANT_REPOSITORY: symbol;
892
- readonly CASHIER_REPOSITORY: symbol;
893
- readonly CASH_REGISTER_REPOSITORY: symbol;
894
- readonly POINT_OF_SALE_REPOSITORY: symbol;
895
- readonly SUPPLIER_REPOSITORY: symbol;
896
- readonly PEM_REPOSITORY: symbol;
897
- readonly DAILY_REPORT_REPOSITORY: symbol;
898
- readonly JOURNAL_REPOSITORY: symbol;
899
- readonly NOTIFICATION_REPOSITORY: symbol;
900
- readonly TELEMETRY_REPOSITORY: symbol;
901
- readonly RECEIPT_SERVICE: symbol;
902
- readonly AUTH_SERVICE: symbol;
903
- readonly AUTHENTICATION_SERVICE: symbol;
904
- readonly CERTIFICATE_SERVICE: symbol;
905
- readonly NOTIFICATION_SERVICE: symbol;
906
- readonly TELEMETRY_SERVICE: symbol;
907
- };
908
- declare class DIContainer {
909
- private services;
910
- private factories;
911
- register<T>(token: symbol, instance: T): void;
912
- registerFactory<T>(token: symbol, factory: () => T): void;
913
- get<T>(token: symbol): T;
914
- has(token: symbol): boolean;
915
- clear(): void;
916
- }
917
-
918
- interface User {
919
- id: string;
920
- email: string;
921
- username: string;
922
- roles: UserRoles;
923
- fid: string;
924
- pid: string | null;
925
- expiresAt: number;
926
- }
927
- interface AuthCredentials {
928
- email: string;
929
- password: string;
930
- }
931
- interface AuthEvents {
932
- onAuthError?: (error: Error) => void;
933
- onUserChanged?: (user: User | null) => void;
934
- }
935
- interface AuthServiceConfig {
936
- authUrl: string;
937
- timeout?: number;
938
- }
939
- type AuthState = 'idle' | 'authenticating' | 'authenticated' | 'error';
940
- declare class AuthenticationService {
941
- private readonly httpPort;
942
- private readonly tokenStorage;
943
- private readonly config;
944
- private readonly events;
945
- private readonly userSubject;
946
- private readonly authStateSubject;
947
- private readonly destroy$;
948
- get user$(): Observable<User | null>;
949
- get isAuthenticated$(): Observable<boolean>;
950
- get authState$(): Observable<AuthState>;
951
- constructor(httpPort: IHttpPort, tokenStorage: ITokenStoragePort, config: AuthServiceConfig, events?: AuthEvents);
952
- login(credentials: AuthCredentials): Promise<User>;
953
- logout(): Promise<void>;
954
- getCurrentUser(): Promise<User | null>;
955
- isAuthenticated(): Promise<boolean>;
956
- getAccessToken(): Promise<string | null>;
957
- private createUserFromPayload;
958
- destroy(): void;
959
- }
960
-
961
- interface SDKFactoryConfig {
962
- baseUrl: string;
963
- authUrl?: string;
964
- timeout?: number;
965
- debugEnabled?: boolean;
966
- }
967
- interface SDKServices {
968
- http: IHttpPort;
969
- tokenStorage?: ITokenStoragePort;
970
- authService?: AuthenticationService;
971
- receipts: IReceiptRepository;
972
- merchants: IMerchantRepository;
973
- cashiers: ICashierRepository;
974
- cashRegisters: ICashRegisterRepository;
975
- pointOfSales: IPointOfSaleRepository;
976
- suppliers: ISupplierRepository;
977
- pems: IPemRepository;
978
- dailyReports: IDailyReportRepository;
979
- journals: IJournalRepository;
980
- notifications: INotificationRepository;
981
- telemetry: ITelemetryRepository;
982
- }
983
- declare class SDKFactory {
984
- static createContainer(config: SDKFactoryConfig): DIContainer;
985
- static registerAuthServices(container: DIContainer, secureStorage: ISecureStoragePort, config: SDKFactoryConfig): void;
986
- static getServices(container: DIContainer): SDKServices;
987
- }
988
-
989
865
  type AppMode = 'NORMAL' | 'WARNING' | 'BLOCKED' | 'OFFLINE';
990
866
  interface WarningState {
991
867
  active: boolean;
@@ -1314,6 +1190,84 @@ declare class NotificationService {
1314
1190
  destroy(): void;
1315
1191
  }
1316
1192
 
1193
+ interface User {
1194
+ id: string;
1195
+ email: string;
1196
+ username: string;
1197
+ roles: UserRoles;
1198
+ fid: string;
1199
+ pid: string | null;
1200
+ expiresAt: number;
1201
+ }
1202
+ interface AuthCredentials {
1203
+ email: string;
1204
+ password: string;
1205
+ }
1206
+ interface AuthEvents {
1207
+ onAuthError?: (error: Error) => void;
1208
+ onUserChanged?: (user: User | null) => void;
1209
+ }
1210
+ interface AuthServiceConfig {
1211
+ authUrl: string;
1212
+ timeout?: number;
1213
+ }
1214
+ type AuthState = 'idle' | 'authenticating' | 'authenticated' | 'error';
1215
+ declare class AuthenticationService {
1216
+ private readonly httpPort;
1217
+ private readonly tokenStorage;
1218
+ private readonly config;
1219
+ private readonly events;
1220
+ private readonly userSubject;
1221
+ private readonly authStateSubject;
1222
+ private readonly destroy$;
1223
+ get user$(): Observable<User | null>;
1224
+ get isAuthenticated$(): Observable<boolean>;
1225
+ get authState$(): Observable<AuthState>;
1226
+ constructor(httpPort: IHttpPort, tokenStorage: ITokenStoragePort, config: AuthServiceConfig, events?: AuthEvents);
1227
+ login(credentials: AuthCredentials): Promise<User>;
1228
+ logout(): Promise<void>;
1229
+ getCurrentUser(): Promise<User | null>;
1230
+ isAuthenticated(): Promise<boolean>;
1231
+ getAccessToken(): Promise<string | null>;
1232
+ private createUserFromPayload;
1233
+ destroy(): void;
1234
+ }
1235
+
1236
+ declare enum MTLSErrorType {
1237
+ NOT_SUPPORTED = "MTLS_NOT_SUPPORTED",
1238
+ CERTIFICATE_NOT_FOUND = "MTLS_CERTIFICATE_NOT_FOUND",
1239
+ CERTIFICATE_EXPIRED = "MTLS_CERTIFICATE_EXPIRED",
1240
+ CERTIFICATE_INVALID = "MTLS_CERTIFICATE_INVALID",
1241
+ CONNECTION_FAILED = "MTLS_CONNECTION_FAILED",
1242
+ AUTHENTICATION_FAILED = "MTLS_AUTHENTICATION_FAILED",
1243
+ CONFIGURATION_ERROR = "MTLS_CONFIGURATION_ERROR"
1244
+ }
1245
+ declare class MTLSError extends Error {
1246
+ type: MTLSErrorType;
1247
+ originalError?: Error | undefined;
1248
+ statusCode?: number | undefined;
1249
+ constructor(type: MTLSErrorType, message: string, originalError?: Error | undefined, statusCode?: number | undefined);
1250
+ }
1251
+
1252
+ interface JwtPayload {
1253
+ uid: number;
1254
+ username: string;
1255
+ roles: Record<string, string[]>;
1256
+ fid: string;
1257
+ pid: string | null;
1258
+ exp: number;
1259
+ iat: number;
1260
+ }
1261
+ declare function parseJwt(token: string): JwtPayload;
1262
+ declare function isTokenExpired(payload: JwtPayload): boolean;
1263
+ declare function extractRoles(jwtRoles: Record<string, string[]>): UserRole[];
1264
+
1265
+ declare class CertificateValidator {
1266
+ static validatePEMFormat(certificate: string, privateKey: string): boolean;
1267
+ static isCertificateExpired(validTo: Date): boolean;
1268
+ static getDaysUntilExpiry(validTo: Date): number;
1269
+ }
1270
+
1317
1271
  interface ReceiptItemApiInput {
1318
1272
  type?: GoodOrService;
1319
1273
  quantity: string;
@@ -1761,237 +1715,6 @@ declare class TelemetryMapper {
1761
1715
  private static lotteryFromApi;
1762
1716
  }
1763
1717
 
1764
- declare class JwtAuthHandler implements IAuthHandler {
1765
- private readonly tokenStorage;
1766
- constructor(tokenStorage: ITokenStoragePort);
1767
- getAuthConfig(_url: string, _method: string): Promise<AuthConfig>;
1768
- getAuthHeaders(): Promise<Record<string, string>>;
1769
- }
1770
-
1771
- declare class MtlsAuthHandler implements IAuthHandler {
1772
- private readonly mtlsAdapter;
1773
- private readonly certificatePort;
1774
- private pendingRequests;
1775
- constructor(mtlsAdapter: IMTLSPort | null, certificatePort: ICertificatePort | null);
1776
- getAuthConfig(_url: string, _method: string): Promise<AuthConfig>;
1777
- getAuthHeaders(): Promise<Record<string, string>>;
1778
- isMtlsReady(): Promise<boolean>;
1779
- getCertificate(): Promise<StoredCertificate | null>;
1780
- private generateRequestKey;
1781
- private constructMtlsUrl;
1782
- makeRequest<T>(url: string, config: {
1783
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
1784
- data?: unknown;
1785
- headers?: Record<string, string>;
1786
- timeout?: number;
1787
- responseType?: 'json' | 'blob' | 'arraybuffer' | 'text';
1788
- }, jwtToken?: string): Promise<T>;
1789
- private executeRequest;
1790
- private shouldRetryRequest;
1791
- configureCertificate(certificate: StoredCertificate): Promise<void>;
1792
- storeCertificate(certificate: string, privateKey: string, options?: {
1793
- format?: 'pem' | 'p12' | 'pkcs12';
1794
- }): Promise<void>;
1795
- clearCertificate(): Promise<void>;
1796
- testConnection(): Promise<boolean>;
1797
- getBaseUrl(): string | null;
1798
- getStatus(): Promise<{
1799
- adapterAvailable: boolean;
1800
- certificatePortAvailable: boolean;
1801
- isReady: boolean;
1802
- hasCertificate: boolean;
1803
- certificateInfo: {
1804
- format: string;
1805
- } | null;
1806
- platformInfo: {
1807
- platform: "react-native" | "node" | "web" | "expo";
1808
- mtlsSupported: boolean;
1809
- certificateStorage: "keychain" | "keystore" | "filesystem" | "browser-managed" | "memory";
1810
- fallbackToJWT: boolean;
1811
- } | null;
1812
- pendingRequestsCount: number;
1813
- }>;
1814
- clearPendingRequests(): void;
1815
- }
1816
-
1817
- interface IUserProvider {
1818
- getCurrentUser(): Promise<{
1819
- roles: UserRoles;
1820
- } | null>;
1821
- getAccessToken(): Promise<string | null>;
1822
- }
1823
- declare class AuthStrategy {
1824
- private readonly jwtHandler;
1825
- private readonly mtlsHandler;
1826
- private readonly userProvider;
1827
- private readonly mtlsAdapter;
1828
- constructor(jwtHandler: JwtAuthHandler, mtlsHandler: MtlsAuthHandler, userProvider: IUserProvider | null, mtlsAdapter: IMTLSPort | null);
1829
- determineAuthConfig(url: string, method: string, explicitMode?: AuthMode): Promise<AuthConfig>;
1830
- getAuthHeaders(): Promise<Record<string, string>>;
1831
- getMtlsHandler(): MtlsAuthHandler;
1832
- getJwtHandler(): JwtAuthHandler;
1833
- private detectPlatform;
1834
- private getUserRole;
1835
- private isReceiptEndpoint;
1836
- private isReturnableItemsEndpoint;
1837
- private isDetailedReceiptEndpoint;
1838
- private isNotificationEndpoint;
1839
- private isTelemetryEndpoint;
1840
- }
1841
-
1842
- interface AxiosHttpAdapterConfig {
1843
- baseUrl: string;
1844
- timeout?: number;
1845
- }
1846
- declare class AxiosHttpAdapter implements IHttpPort {
1847
- private client;
1848
- private authToken;
1849
- private mtlsAdapter;
1850
- private authStrategy;
1851
- private baseUrl;
1852
- constructor(config: AxiosHttpAdapterConfig);
1853
- setMTLSAdapter(adapter: IMTLSPort | null): void;
1854
- setAuthStrategy(strategy: AuthStrategy | null): void;
1855
- private shouldUseMTLS;
1856
- private makeMTLSRequest;
1857
- private constructMtlsUrl;
1858
- private setupInterceptors;
1859
- private mapConfig;
1860
- private mapResponse;
1861
- get<T>(url: string, config?: HttpRequestConfig): Promise<HttpResponse<T>>;
1862
- post<T>(url: string, data?: unknown, config?: HttpRequestConfig): Promise<HttpResponse<T>>;
1863
- put<T>(url: string, data?: unknown, config?: HttpRequestConfig): Promise<HttpResponse<T>>;
1864
- patch<T>(url: string, data?: unknown, config?: HttpRequestConfig): Promise<HttpResponse<T>>;
1865
- delete<T>(url: string, config?: HttpRequestConfig): Promise<HttpResponse<T>>;
1866
- setAuthToken(token: string | null): void;
1867
- getAuthToken(): string | null;
1868
- getAxiosInstance(): AxiosInstance;
1869
- }
1870
-
1871
- declare function transformError(error: unknown): ACubeSDKError;
1872
-
1873
- declare enum ErrorCategory {
1874
- SERVER_ERROR = "SERVER_ERROR",
1875
- CLIENT_ERROR = "CLIENT_ERROR",
1876
- AUTH_ERROR = "AUTH_ERROR",
1877
- CERTIFICATE_ERROR = "CERTIFICATE_ERROR",
1878
- NETWORK_ERROR = "NETWORK_ERROR",
1879
- UNKNOWN_ERROR = "UNKNOWN_ERROR"
1880
- }
1881
- interface ErrorClassification {
1882
- category: ErrorCategory;
1883
- statusCode?: number;
1884
- message: string;
1885
- shouldRetry: boolean;
1886
- userMessage: string;
1887
- }
1888
- declare function classifyError(error: unknown): ErrorClassification;
1889
- declare function shouldReconfigureCertificate(error: unknown): boolean;
1890
- declare function shouldRetryRequest(error: unknown, isRetryAttempt: boolean): boolean;
1891
- declare function getUserFriendlyMessage(error: unknown): string;
1892
-
1893
- declare class ReceiptRepositoryImpl implements IReceiptRepository {
1894
- private readonly http;
1895
- constructor(http: IHttpPort);
1896
- create(input: ReceiptInput): Promise<Receipt>;
1897
- findById(receiptUuid: string): Promise<Receipt>;
1898
- findAll(params: ReceiptListParams): Promise<Page<Receipt>>;
1899
- getDetails(receiptUuid: string, format: 'json'): Promise<ReceiptDetails>;
1900
- getDetails(receiptUuid: string, format: 'pdf'): Promise<string>;
1901
- getReturnableItems(receiptUuid: string): Promise<ReturnableReceiptItem[]>;
1902
- voidReceipt(input: VoidReceiptInput): Promise<void>;
1903
- voidViaDifferentDevice(input: VoidViaDifferentDeviceInput): Promise<void>;
1904
- voidWithProof(input: VoidWithProofInput): Promise<void>;
1905
- returnItems(input: ReceiptReturnInput): Promise<Receipt>;
1906
- returnViaDifferentDevice(input: ReturnViaDifferentDeviceInput): Promise<Receipt>;
1907
- returnWithProof(input: ReturnWithProofInput): Promise<Receipt>;
1908
- }
1909
-
1910
- declare class MerchantRepositoryImpl implements IMerchantRepository {
1911
- private readonly http;
1912
- constructor(http: IHttpPort);
1913
- create(input: MerchantCreateInput): Promise<Merchant>;
1914
- findById(uuid: string): Promise<Merchant>;
1915
- findAll(params?: MerchantsParams): Promise<Merchant[]>;
1916
- update(uuid: string, input: MerchantUpdateInput): Promise<Merchant>;
1917
- }
1918
-
1919
- declare class CashierRepositoryImpl implements ICashierRepository {
1920
- private readonly http;
1921
- constructor(http: IHttpPort);
1922
- create(input: CashierCreateInput): Promise<Cashier>;
1923
- findMe(): Promise<Cashier>;
1924
- findById(uuid: string): Promise<Cashier>;
1925
- findAll(params?: CashierListParams): Promise<Page<Cashier>>;
1926
- delete(uuid: string): Promise<void>;
1927
- }
1928
-
1929
- declare class CashRegisterRepositoryImpl implements ICashRegisterRepository {
1930
- private readonly http;
1931
- constructor(http: IHttpPort);
1932
- create(input: CashRegisterCreateInput): Promise<CashRegisterDetailed>;
1933
- findById(uuid: string): Promise<CashRegister>;
1934
- findAll(params?: CashRegisterListParams): Promise<Page<CashRegister>>;
1935
- update(uuid: string, input: CashRegisterUpdateInput): Promise<CashRegister>;
1936
- }
1937
-
1938
- declare class PointOfSaleRepositoryImpl implements IPointOfSaleRepository {
1939
- private readonly http;
1940
- constructor(http: IHttpPort);
1941
- findById(serialNumber: string): Promise<PointOfSaleDetailed>;
1942
- findAll(params?: PointOfSaleListParams): Promise<Page<PointOfSale>>;
1943
- activate(serialNumber: string, input: ActivationRequest): Promise<void>;
1944
- closeJournal(serialNumber: string): Promise<void>;
1945
- createInactivity(serialNumber: string): Promise<void>;
1946
- communicateOffline(serialNumber: string, input: PEMStatusOfflineRequest): Promise<void>;
1947
- }
1948
-
1949
- declare class SupplierRepositoryImpl implements ISupplierRepository {
1950
- private readonly http;
1951
- constructor(http: IHttpPort);
1952
- create(merchantUuid: string, input: SupplierCreateInput): Promise<Supplier>;
1953
- findById(merchantUuid: string, supplierUuid: string): Promise<Supplier>;
1954
- findAll(merchantUuid: string, params?: SuppliersParams): Promise<Page<Supplier>>;
1955
- update(merchantUuid: string, supplierUuid: string, input: SupplierUpdateInput): Promise<Supplier>;
1956
- delete(merchantUuid: string, supplierUuid: string): Promise<void>;
1957
- }
1958
-
1959
- declare class PemRepositoryImpl implements IPemRepository {
1960
- private readonly http;
1961
- constructor(http: IHttpPort);
1962
- create(input: PemCreateInput): Promise<PemCreateOutput>;
1963
- findBySerialNumber(serialNumber: string): Promise<PointOfSaleMf2>;
1964
- findAllByMerchant(merchantUuid: string, page?: number): Promise<PointOfSaleMf2[]>;
1965
- getCertificates(serialNumber: string): Promise<PemCertificates>;
1966
- }
1967
-
1968
- declare class DailyReportRepositoryImpl implements IDailyReportRepository {
1969
- private readonly http;
1970
- constructor(http: IHttpPort);
1971
- findById(merchantUuid: string, reportUuid: string): Promise<DailyReport>;
1972
- findAll(merchantUuid: string, params?: DailyReportsParams): Promise<Page<DailyReport>>;
1973
- }
1974
-
1975
- declare class JournalRepositoryImpl implements IJournalRepository {
1976
- private readonly http;
1977
- constructor(http: IHttpPort);
1978
- findById(merchantUuid: string, journalUuid: string): Promise<Journal>;
1979
- findAll(merchantUuid: string, params?: JournalsParams): Promise<Page<Journal>>;
1980
- close(merchantUuid: string, input: JournalCloseInput): Promise<Journal>;
1981
- }
1982
-
1983
- declare class NotificationRepositoryImpl implements INotificationRepository {
1984
- private readonly http;
1985
- constructor(http: IHttpPort);
1986
- fetchNotifications(_params?: NotificationListParams): Promise<Page<Notification>>;
1987
- }
1988
-
1989
- declare class TelemetryRepositoryImpl implements ITelemetryRepository {
1990
- private readonly http;
1991
- constructor(http: IHttpPort);
1992
- getTelemetry(pemId: string): Promise<Telemetry>;
1993
- }
1994
-
1995
1718
  declare class ConfigManager {
1996
1719
  private config;
1997
1720
  constructor(userConfig: SDKConfig);
@@ -2009,33 +1732,6 @@ declare class ConfigManager {
2009
1732
  updateConfig(updates: Partial<SDKConfig>): void;
2010
1733
  }
2011
1734
 
2012
- type Cleaned<T> = T extends (infer U)[] ? Cleaned<U>[] : T extends object ? {
2013
- [K in keyof T as T[K] extends null | undefined | '' ? never : K]: Cleaned<T[K]>;
2014
- } : T;
2015
- declare function clearObject<T>(input: T): Cleaned<T>;
2016
- type CleanedShallow<T> = {
2017
- [K in keyof T as T[K] extends null | undefined | '' ? never : K]: T[K];
2018
- };
2019
- declare function clearObjectShallow<T extends Record<string, unknown>>(obj: T): CleanedShallow<T>;
2020
- declare function isEmpty(value: unknown): boolean;
2021
- declare function hasNonEmptyValues<T extends Record<string, unknown>>(obj: T): boolean;
2022
-
2023
- /**
2024
- * Platform detection utilities
2025
- */
2026
- type Platform = 'web' | 'react-native' | 'node' | 'unknown';
2027
- interface PlatformInfo {
2028
- platform: Platform;
2029
- isReactNative: boolean;
2030
- isWeb: boolean;
2031
- isNode: boolean;
2032
- isExpo: boolean;
2033
- }
2034
- /**
2035
- * Detect the current platform
2036
- */
2037
- declare function detectPlatform(): PlatformInfo;
2038
-
2039
1735
  declare class Logger {
2040
1736
  private enabled;
2041
1737
  setEnabled(enabled: boolean): void;
@@ -2054,17 +1750,6 @@ declare function createPrefixedLogger(prefix: string): {
2054
1750
  error: (message: string, data?: unknown) => void;
2055
1751
  };
2056
1752
 
2057
- /**
2058
- * Formats a numeric string value to have exactly the specified number of decimal places.
2059
- * E.g., "1" → "1.00", "10" → "10.00", "1.5" → "1.50"
2060
- * Returns undefined for undefined input (preserves optional fields).
2061
- *
2062
- * @param value - The string value to format
2063
- * @param decimals - Number of decimal places (default: 2)
2064
- * @returns Formatted string or undefined if input is undefined
2065
- */
2066
- declare function formatDecimal(value: string | undefined, decimals?: number): string | undefined;
2067
-
2068
1753
  declare const VAT_RATE_CODE_OPTIONS: readonly ["4.00", "5.00", "10.00", "22.00", "2.00", "6.40", "7.00", "7.30", "7.50", "7.65", "7.95", "8.30", "8.50", "8.80", "9.50", "12.30", "N1", "N2", "N3", "N4", "N5", "N6"];
2069
1754
  declare const GOOD_OR_SERVICE_OPTIONS: readonly ["goods", "service"];
2070
1755
  declare const RECEIPT_PROOF_TYPE_OPTIONS: readonly ["POS", "VR", "ND"];
@@ -2101,842 +1786,15 @@ declare const ReceiptProofTypeSchema: z.ZodEnum<{
2101
1786
  VR: "VR";
2102
1787
  ND: "ND";
2103
1788
  }>;
2104
- declare const ReceiptItemSchema: z.ZodObject<{
2105
- type: z.ZodOptional<z.ZodEnum<{
2106
- goods: "goods";
2107
- service: "service";
2108
- }>>;
2109
- quantity: z.ZodString;
2110
- description: z.ZodString;
2111
- unit_price: z.ZodString;
2112
- vat_rate_code: z.ZodOptional<z.ZodEnum<{
2113
- "4.00": "4.00";
2114
- "5.00": "5.00";
2115
- "10.00": "10.00";
2116
- "22.00": "22.00";
2117
- "2.00": "2.00";
2118
- "6.40": "6.40";
2119
- "7.00": "7.00";
2120
- "7.30": "7.30";
2121
- "7.50": "7.50";
2122
- 7.65: "7.65";
2123
- 7.95: "7.95";
2124
- "8.30": "8.30";
2125
- "8.50": "8.50";
2126
- "8.80": "8.80";
2127
- "9.50": "9.50";
2128
- "12.30": "12.30";
2129
- N1: "N1";
2130
- N2: "N2";
2131
- N3: "N3";
2132
- N4: "N4";
2133
- N5: "N5";
2134
- N6: "N6";
2135
- }>>;
2136
- simplified_vat_allocation: z.ZodOptional<z.ZodBoolean>;
2137
- discount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2138
- is_down_payment_or_voucher_redemption: z.ZodOptional<z.ZodBoolean>;
2139
- complimentary: z.ZodOptional<z.ZodBoolean>;
2140
- }, z.core.$strip>;
2141
- declare const ReceiptInputSchema: z.ZodObject<{
2142
- items: z.ZodArray<z.ZodObject<{
2143
- type: z.ZodOptional<z.ZodEnum<{
2144
- goods: "goods";
2145
- service: "service";
2146
- }>>;
2147
- quantity: z.ZodString;
2148
- description: z.ZodString;
2149
- unit_price: z.ZodString;
2150
- vat_rate_code: z.ZodOptional<z.ZodEnum<{
2151
- "4.00": "4.00";
2152
- "5.00": "5.00";
2153
- "10.00": "10.00";
2154
- "22.00": "22.00";
2155
- "2.00": "2.00";
2156
- "6.40": "6.40";
2157
- "7.00": "7.00";
2158
- "7.30": "7.30";
2159
- "7.50": "7.50";
2160
- 7.65: "7.65";
2161
- 7.95: "7.95";
2162
- "8.30": "8.30";
2163
- "8.50": "8.50";
2164
- "8.80": "8.80";
2165
- "9.50": "9.50";
2166
- "12.30": "12.30";
2167
- N1: "N1";
2168
- N2: "N2";
2169
- N3: "N3";
2170
- N4: "N4";
2171
- N5: "N5";
2172
- N6: "N6";
2173
- }>>;
2174
- simplified_vat_allocation: z.ZodOptional<z.ZodBoolean>;
2175
- discount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2176
- is_down_payment_or_voucher_redemption: z.ZodOptional<z.ZodBoolean>;
2177
- complimentary: z.ZodOptional<z.ZodBoolean>;
2178
- }, z.core.$strip>>;
2179
- customer_tax_code: z.ZodOptional<z.ZodString>;
2180
- customer_lottery_code: z.ZodOptional<z.ZodString>;
2181
- discount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2182
- invoice_issuing: z.ZodOptional<z.ZodBoolean>;
2183
- uncollected_dcr_to_ssn: z.ZodOptional<z.ZodBoolean>;
2184
- services_uncollected_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2185
- goods_uncollected_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2186
- cash_payment_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2187
- electronic_payment_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2188
- ticket_restaurant_payment_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2189
- ticket_restaurant_quantity: z.ZodOptional<z.ZodNumber>;
2190
- }, z.core.$strip>;
2191
- declare const ReceiptReturnOrVoidViaPEMInputSchema: z.ZodObject<{
2192
- device_id: z.ZodOptional<z.ZodString>;
2193
- items: z.ZodArray<z.ZodObject<{
2194
- type: z.ZodOptional<z.ZodEnum<{
2195
- goods: "goods";
2196
- service: "service";
2197
- }>>;
2198
- quantity: z.ZodString;
2199
- description: z.ZodString;
2200
- unit_price: z.ZodString;
2201
- vat_rate_code: z.ZodOptional<z.ZodEnum<{
2202
- "4.00": "4.00";
2203
- "5.00": "5.00";
2204
- "10.00": "10.00";
2205
- "22.00": "22.00";
2206
- "2.00": "2.00";
2207
- "6.40": "6.40";
2208
- "7.00": "7.00";
2209
- "7.30": "7.30";
2210
- "7.50": "7.50";
2211
- 7.65: "7.65";
2212
- 7.95: "7.95";
2213
- "8.30": "8.30";
2214
- "8.50": "8.50";
2215
- "8.80": "8.80";
2216
- "9.50": "9.50";
2217
- "12.30": "12.30";
2218
- N1: "N1";
2219
- N2: "N2";
2220
- N3: "N3";
2221
- N4: "N4";
2222
- N5: "N5";
2223
- N6: "N6";
2224
- }>>;
2225
- simplified_vat_allocation: z.ZodOptional<z.ZodBoolean>;
2226
- discount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2227
- is_down_payment_or_voucher_redemption: z.ZodOptional<z.ZodBoolean>;
2228
- complimentary: z.ZodOptional<z.ZodBoolean>;
2229
- }, z.core.$strip>>;
2230
- document_number: z.ZodString;
2231
- document_datetime: z.ZodOptional<z.ZodString>;
2232
- lottery_code: z.ZodOptional<z.ZodString>;
2233
- }, z.core.$strip>;
2234
- declare const ReceiptReturnOrVoidWithProofInputSchema: z.ZodObject<{
2235
- items: z.ZodArray<z.ZodObject<{
2236
- type: z.ZodOptional<z.ZodEnum<{
2237
- goods: "goods";
2238
- service: "service";
2239
- }>>;
2240
- quantity: z.ZodString;
2241
- description: z.ZodString;
2242
- unit_price: z.ZodString;
2243
- vat_rate_code: z.ZodOptional<z.ZodEnum<{
2244
- "4.00": "4.00";
2245
- "5.00": "5.00";
2246
- "10.00": "10.00";
2247
- "22.00": "22.00";
2248
- "2.00": "2.00";
2249
- "6.40": "6.40";
2250
- "7.00": "7.00";
2251
- "7.30": "7.30";
2252
- "7.50": "7.50";
2253
- 7.65: "7.65";
2254
- 7.95: "7.95";
2255
- "8.30": "8.30";
2256
- "8.50": "8.50";
2257
- "8.80": "8.80";
2258
- "9.50": "9.50";
2259
- "12.30": "12.30";
2260
- N1: "N1";
2261
- N2: "N2";
2262
- N3: "N3";
2263
- N4: "N4";
2264
- N5: "N5";
2265
- N6: "N6";
2266
- }>>;
2267
- simplified_vat_allocation: z.ZodOptional<z.ZodBoolean>;
2268
- discount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2269
- is_down_payment_or_voucher_redemption: z.ZodOptional<z.ZodBoolean>;
2270
- complimentary: z.ZodOptional<z.ZodBoolean>;
2271
- }, z.core.$strip>>;
2272
- proof: z.ZodEnum<{
2273
- POS: "POS";
2274
- VR: "VR";
2275
- ND: "ND";
2276
- }>;
2277
- document_datetime: z.ZodString;
2278
- }, z.core.$strip>;
2279
- declare const VoidReceiptInputSchema: z.ZodObject<{
2280
- document_number: z.ZodString;
2281
- }, z.core.$strip>;
2282
- declare const ReceiptReturnItemSchema: z.ZodArray<z.ZodObject<{
2283
- id: z.ZodNumber;
2284
- quantity: z.ZodString;
2285
- }, z.core.$strip>>;
2286
- declare const ReceiptReturnInputSchema: z.ZodObject<{
2287
- items: z.ZodArray<z.ZodArray<z.ZodObject<{
2288
- id: z.ZodNumber;
2289
- quantity: z.ZodString;
2290
- }, z.core.$strip>>>;
2291
- document_number: z.ZodString;
2292
- }, z.core.$strip>;
2293
- type ReceiptItemType = z.infer<typeof ReceiptItemSchema>;
2294
- type ReceiptInputType = z.infer<typeof ReceiptInputSchema>;
2295
- type ReceiptReturnOrVoidViaPEMInputType = z.infer<typeof ReceiptReturnOrVoidViaPEMInputSchema>;
2296
- type ReceiptReturnOrVoidWithProofInputType = z.infer<typeof ReceiptReturnOrVoidWithProofInputSchema>;
2297
1789
  type VatRateCodeType = z.infer<typeof VatRateCodeSchema>;
2298
1790
  type GoodOrServiceType = z.infer<typeof GoodOrServiceSchema>;
2299
1791
  type ReceiptProofTypeType = z.infer<typeof ReceiptProofTypeSchema>;
2300
- type ReceiptReturnType = z.infer<typeof ReceiptReturnInputSchema>;
2301
- type ReceiptReturnItemType = z.infer<typeof ReceiptReturnItemSchema>;
2302
- type VoidReceiptInputType = z.infer<typeof VoidReceiptInputSchema>;
2303
-
2304
- declare const CashierCreateInputSchema: z.ZodObject<{
2305
- email: z.ZodString;
2306
- password: z.ZodString;
2307
- name: z.ZodString;
2308
- display_name: z.ZodString;
2309
- }, z.core.$strip>;
2310
- type CashierCreateInputType = z.infer<typeof CashierCreateInputSchema>;
2311
1792
 
2312
1793
  declare const PEM_STATUS_OPTIONS: readonly ["NEW", "REGISTERED", "ACTIVATED", "ONLINE", "OFFLINE", "DISCARDED"];
2313
- declare const AddressSchema: z.ZodObject<{
2314
- street_address: z.ZodString;
2315
- street_number: z.ZodString;
2316
- zip_code: z.ZodString;
2317
- city: z.ZodString;
2318
- province: z.ZodString;
2319
- }, z.core.$strip>;
2320
- declare const PEMStatusSchema: z.ZodEnum<{
2321
- NEW: "NEW";
2322
- REGISTERED: "REGISTERED";
2323
- ACTIVATED: "ACTIVATED";
2324
- ONLINE: "ONLINE";
2325
- OFFLINE: "OFFLINE";
2326
- DISCARDED: "DISCARDED";
2327
- }>;
2328
- declare const ActivationRequestSchema: z.ZodObject<{
2329
- registration_key: z.ZodString;
2330
- }, z.core.$strip>;
2331
- declare const PEMStatusOfflineRequestSchema: z.ZodObject<{
2332
- timestamp: z.ZodString;
2333
- reason: z.ZodString;
2334
- }, z.core.$strip>;
2335
- type AddressType = z.infer<typeof AddressSchema>;
2336
- type PEMStatusType = z.infer<typeof PEMStatusSchema>;
2337
- type ActivationRequestType = z.infer<typeof ActivationRequestSchema>;
2338
- type PEMStatusOfflineRequestType = z.infer<typeof PEMStatusOfflineRequestSchema>;
2339
-
2340
- declare const CashRegisterCreateSchema: z.ZodObject<{
2341
- pem_serial_number: z.ZodString;
2342
- name: z.ZodString;
2343
- }, z.core.$strip>;
2344
- type CashRegisterCreateType = z.infer<typeof CashRegisterCreateSchema>;
2345
-
2346
- declare const MerchantCreateInputSchema: z.ZodObject<{
2347
- vat_number: z.ZodString;
2348
- fiscal_code: z.ZodOptional<z.ZodString>;
2349
- business_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2350
- first_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2351
- last_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2352
- email: z.ZodString;
2353
- password: z.ZodString;
2354
- address: z.ZodOptional<z.ZodObject<{
2355
- street_address: z.ZodString;
2356
- street_number: z.ZodString;
2357
- zip_code: z.ZodString;
2358
- city: z.ZodString;
2359
- province: z.ZodString;
2360
- }, z.core.$strip>>;
2361
- }, z.core.$strip>;
2362
- declare const MerchantUpdateInputSchema: z.ZodObject<{
2363
- business_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2364
- first_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2365
- last_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2366
- address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2367
- street_address: z.ZodString;
2368
- street_number: z.ZodString;
2369
- zip_code: z.ZodString;
2370
- city: z.ZodString;
2371
- province: z.ZodString;
2372
- }, z.core.$strip>>>;
2373
- }, z.core.$strip>;
2374
- type MerchantCreateInputType = z.infer<typeof MerchantCreateInputSchema>;
2375
- type MerchantUpdateInputType = z.infer<typeof MerchantUpdateInputSchema>;
2376
1794
 
2377
1795
  declare const PEM_TYPE_OPTIONS: readonly ["AP", "SP", "TM", "PV"];
2378
- declare const PemDataSchema: z.ZodObject<{
2379
- version: z.ZodString;
2380
- type: z.ZodEnum<{
2381
- AP: "AP";
2382
- SP: "SP";
2383
- TM: "TM";
2384
- PV: "PV";
2385
- }>;
2386
- }, z.core.$strip>;
2387
- declare const PemCreateInputSchema: z.ZodObject<{
2388
- merchant_uuid: z.ZodString;
2389
- address: z.ZodOptional<z.ZodObject<{
2390
- street_address: z.ZodString;
2391
- street_number: z.ZodString;
2392
- zip_code: z.ZodString;
2393
- city: z.ZodString;
2394
- province: z.ZodString;
2395
- }, z.core.$strip>>;
2396
- }, z.core.$strip>;
2397
- type PemDataType = z.infer<typeof PemDataSchema>;
2398
- type PemCreateInputType = z.infer<typeof PemCreateInputSchema>;
2399
-
2400
- declare const SupplierCreateInputSchema: z.ZodObject<{
2401
- fiscal_id: z.ZodString;
2402
- name: z.ZodString;
2403
- address: z.ZodOptional<z.ZodObject<{
2404
- street_address: z.ZodString;
2405
- street_number: z.ZodString;
2406
- zip_code: z.ZodString;
2407
- city: z.ZodString;
2408
- province: z.ZodString;
2409
- }, z.core.$strip>>;
2410
- }, z.core.$strip>;
2411
- declare const SupplierUpdateInputSchema: z.ZodObject<{
2412
- name: z.ZodString;
2413
- address: z.ZodOptional<z.ZodObject<{
2414
- street_address: z.ZodString;
2415
- street_number: z.ZodString;
2416
- zip_code: z.ZodString;
2417
- city: z.ZodString;
2418
- province: z.ZodString;
2419
- }, z.core.$strip>>;
2420
- }, z.core.$strip>;
2421
- type SupplierCreateInputType = z.infer<typeof SupplierCreateInputSchema>;
2422
- type SupplierUpdateInputType = z.infer<typeof SupplierUpdateInputSchema>;
2423
-
2424
- declare const JournalCloseInputSchema: z.ZodObject<{
2425
- closing_timestamp: z.ZodString;
2426
- reason: z.ZodOptional<z.ZodString>;
2427
- }, z.core.$strip>;
2428
- type JournalCloseInputType = z.infer<typeof JournalCloseInputSchema>;
2429
1796
 
2430
1797
  declare const DAILY_REPORT_STATUS_OPTIONS: readonly ["pending", "sent", "error"];
2431
- declare const DailyReportStatusSchema: z.ZodEnum<{
2432
- sent: "sent";
2433
- error: "error";
2434
- pending: "pending";
2435
- }>;
2436
- declare const DailyReportsParamsSchema: z.ZodObject<{
2437
- pem_serial_number: z.ZodOptional<z.ZodString>;
2438
- date_from: z.ZodOptional<z.ZodString>;
2439
- date_to: z.ZodOptional<z.ZodString>;
2440
- status: z.ZodOptional<z.ZodEnum<{
2441
- sent: "sent";
2442
- error: "error";
2443
- pending: "pending";
2444
- }>>;
2445
- page: z.ZodOptional<z.ZodNumber>;
2446
- }, z.core.$strip>;
2447
- type DailyReportStatusType = z.infer<typeof DailyReportStatusSchema>;
2448
- type DailyReportsParamsType = z.infer<typeof DailyReportsParamsSchema>;
2449
-
2450
- declare const NotificationScopeSchema: z.ZodObject<{
2451
- type: z.ZodLiteral<"global">;
2452
- }, z.core.$strip>;
2453
- declare const PemStatusSchema: z.ZodEnum<{
2454
- ONLINE: "ONLINE";
2455
- OFFLINE: "OFFLINE";
2456
- }>;
2457
- declare const NotificationDataBlockAtSchema: z.ZodObject<{
2458
- block_at: z.ZodString;
2459
- }, z.core.$strip>;
2460
- declare const NotificationDataPemStatusSchema: z.ZodObject<{
2461
- from: z.ZodEnum<{
2462
- ONLINE: "ONLINE";
2463
- OFFLINE: "OFFLINE";
2464
- }>;
2465
- to: z.ZodEnum<{
2466
- ONLINE: "ONLINE";
2467
- OFFLINE: "OFFLINE";
2468
- }>;
2469
- }, z.core.$strip>;
2470
- declare const NotificationMf2UnreachableSchema: z.ZodObject<{
2471
- uuid: z.ZodString;
2472
- scope: z.ZodObject<{
2473
- type: z.ZodLiteral<"global">;
2474
- }, z.core.$strip>;
2475
- source: z.ZodEnum<{
2476
- system: "system";
2477
- "Italian Tax Authority": "Italian Tax Authority";
2478
- }>;
2479
- level: z.ZodEnum<{
2480
- info: "info";
2481
- warning: "warning";
2482
- error: "error";
2483
- critical: "critical";
2484
- }>;
2485
- created_at: z.ZodString;
2486
- type: z.ZodLiteral<"INTERNAL_COMMUNICATION_FAILURE">;
2487
- code: z.ZodLiteral<"SYS-W-01">;
2488
- data: z.ZodObject<{
2489
- block_at: z.ZodString;
2490
- }, z.core.$strip>;
2491
- }, z.core.$strip>;
2492
- declare const NotificationPemsBlockedSchema: z.ZodObject<{
2493
- uuid: z.ZodString;
2494
- scope: z.ZodObject<{
2495
- type: z.ZodLiteral<"global">;
2496
- }, z.core.$strip>;
2497
- source: z.ZodEnum<{
2498
- system: "system";
2499
- "Italian Tax Authority": "Italian Tax Authority";
2500
- }>;
2501
- level: z.ZodEnum<{
2502
- info: "info";
2503
- warning: "warning";
2504
- error: "error";
2505
- critical: "critical";
2506
- }>;
2507
- created_at: z.ZodString;
2508
- type: z.ZodLiteral<"PEM_STATUS_CHANGED">;
2509
- code: z.ZodLiteral<"SYS-C-01">;
2510
- data: z.ZodObject<{
2511
- from: z.ZodEnum<{
2512
- ONLINE: "ONLINE";
2513
- OFFLINE: "OFFLINE";
2514
- }>;
2515
- to: z.ZodEnum<{
2516
- ONLINE: "ONLINE";
2517
- OFFLINE: "OFFLINE";
2518
- }>;
2519
- }, z.core.$strip>;
2520
- }, z.core.$strip>;
2521
- declare const NotificationPemBackOnlineSchema: z.ZodObject<{
2522
- uuid: z.ZodString;
2523
- scope: z.ZodObject<{
2524
- type: z.ZodLiteral<"global">;
2525
- }, z.core.$strip>;
2526
- source: z.ZodEnum<{
2527
- system: "system";
2528
- "Italian Tax Authority": "Italian Tax Authority";
2529
- }>;
2530
- level: z.ZodEnum<{
2531
- info: "info";
2532
- warning: "warning";
2533
- error: "error";
2534
- critical: "critical";
2535
- }>;
2536
- created_at: z.ZodString;
2537
- type: z.ZodLiteral<"PEM_STATUS_CHANGED">;
2538
- code: z.ZodLiteral<"SYS-I-01">;
2539
- data: z.ZodObject<{
2540
- from: z.ZodEnum<{
2541
- ONLINE: "ONLINE";
2542
- OFFLINE: "OFFLINE";
2543
- }>;
2544
- to: z.ZodEnum<{
2545
- ONLINE: "ONLINE";
2546
- OFFLINE: "OFFLINE";
2547
- }>;
2548
- }, z.core.$strip>;
2549
- }, z.core.$strip>;
2550
- declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2551
- uuid: z.ZodString;
2552
- scope: z.ZodObject<{
2553
- type: z.ZodLiteral<"global">;
2554
- }, z.core.$strip>;
2555
- source: z.ZodEnum<{
2556
- system: "system";
2557
- "Italian Tax Authority": "Italian Tax Authority";
2558
- }>;
2559
- level: z.ZodEnum<{
2560
- info: "info";
2561
- warning: "warning";
2562
- error: "error";
2563
- critical: "critical";
2564
- }>;
2565
- created_at: z.ZodString;
2566
- type: z.ZodLiteral<"INTERNAL_COMMUNICATION_FAILURE">;
2567
- code: z.ZodLiteral<"SYS-W-01">;
2568
- data: z.ZodObject<{
2569
- block_at: z.ZodString;
2570
- }, z.core.$strip>;
2571
- }, z.core.$strip>, z.ZodObject<{
2572
- uuid: z.ZodString;
2573
- scope: z.ZodObject<{
2574
- type: z.ZodLiteral<"global">;
2575
- }, z.core.$strip>;
2576
- source: z.ZodEnum<{
2577
- system: "system";
2578
- "Italian Tax Authority": "Italian Tax Authority";
2579
- }>;
2580
- level: z.ZodEnum<{
2581
- info: "info";
2582
- warning: "warning";
2583
- error: "error";
2584
- critical: "critical";
2585
- }>;
2586
- created_at: z.ZodString;
2587
- type: z.ZodLiteral<"PEM_STATUS_CHANGED">;
2588
- code: z.ZodLiteral<"SYS-C-01">;
2589
- data: z.ZodObject<{
2590
- from: z.ZodEnum<{
2591
- ONLINE: "ONLINE";
2592
- OFFLINE: "OFFLINE";
2593
- }>;
2594
- to: z.ZodEnum<{
2595
- ONLINE: "ONLINE";
2596
- OFFLINE: "OFFLINE";
2597
- }>;
2598
- }, z.core.$strip>;
2599
- }, z.core.$strip>, z.ZodObject<{
2600
- uuid: z.ZodString;
2601
- scope: z.ZodObject<{
2602
- type: z.ZodLiteral<"global">;
2603
- }, z.core.$strip>;
2604
- source: z.ZodEnum<{
2605
- system: "system";
2606
- "Italian Tax Authority": "Italian Tax Authority";
2607
- }>;
2608
- level: z.ZodEnum<{
2609
- info: "info";
2610
- warning: "warning";
2611
- error: "error";
2612
- critical: "critical";
2613
- }>;
2614
- created_at: z.ZodString;
2615
- type: z.ZodLiteral<"PEM_STATUS_CHANGED">;
2616
- code: z.ZodLiteral<"SYS-I-01">;
2617
- data: z.ZodObject<{
2618
- from: z.ZodEnum<{
2619
- ONLINE: "ONLINE";
2620
- OFFLINE: "OFFLINE";
2621
- }>;
2622
- to: z.ZodEnum<{
2623
- ONLINE: "ONLINE";
2624
- OFFLINE: "OFFLINE";
2625
- }>;
2626
- }, z.core.$strip>;
2627
- }, z.core.$strip>], "code">;
2628
- declare const NotificationListResponseSchema: z.ZodObject<{
2629
- members: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2630
- uuid: z.ZodString;
2631
- scope: z.ZodObject<{
2632
- type: z.ZodLiteral<"global">;
2633
- }, z.core.$strip>;
2634
- source: z.ZodEnum<{
2635
- system: "system";
2636
- "Italian Tax Authority": "Italian Tax Authority";
2637
- }>;
2638
- level: z.ZodEnum<{
2639
- info: "info";
2640
- warning: "warning";
2641
- error: "error";
2642
- critical: "critical";
2643
- }>;
2644
- created_at: z.ZodString;
2645
- type: z.ZodLiteral<"INTERNAL_COMMUNICATION_FAILURE">;
2646
- code: z.ZodLiteral<"SYS-W-01">;
2647
- data: z.ZodObject<{
2648
- block_at: z.ZodString;
2649
- }, z.core.$strip>;
2650
- }, z.core.$strip>, z.ZodObject<{
2651
- uuid: z.ZodString;
2652
- scope: z.ZodObject<{
2653
- type: z.ZodLiteral<"global">;
2654
- }, z.core.$strip>;
2655
- source: z.ZodEnum<{
2656
- system: "system";
2657
- "Italian Tax Authority": "Italian Tax Authority";
2658
- }>;
2659
- level: z.ZodEnum<{
2660
- info: "info";
2661
- warning: "warning";
2662
- error: "error";
2663
- critical: "critical";
2664
- }>;
2665
- created_at: z.ZodString;
2666
- type: z.ZodLiteral<"PEM_STATUS_CHANGED">;
2667
- code: z.ZodLiteral<"SYS-C-01">;
2668
- data: z.ZodObject<{
2669
- from: z.ZodEnum<{
2670
- ONLINE: "ONLINE";
2671
- OFFLINE: "OFFLINE";
2672
- }>;
2673
- to: z.ZodEnum<{
2674
- ONLINE: "ONLINE";
2675
- OFFLINE: "OFFLINE";
2676
- }>;
2677
- }, z.core.$strip>;
2678
- }, z.core.$strip>, z.ZodObject<{
2679
- uuid: z.ZodString;
2680
- scope: z.ZodObject<{
2681
- type: z.ZodLiteral<"global">;
2682
- }, z.core.$strip>;
2683
- source: z.ZodEnum<{
2684
- system: "system";
2685
- "Italian Tax Authority": "Italian Tax Authority";
2686
- }>;
2687
- level: z.ZodEnum<{
2688
- info: "info";
2689
- warning: "warning";
2690
- error: "error";
2691
- critical: "critical";
2692
- }>;
2693
- created_at: z.ZodString;
2694
- type: z.ZodLiteral<"PEM_STATUS_CHANGED">;
2695
- code: z.ZodLiteral<"SYS-I-01">;
2696
- data: z.ZodObject<{
2697
- from: z.ZodEnum<{
2698
- ONLINE: "ONLINE";
2699
- OFFLINE: "OFFLINE";
2700
- }>;
2701
- to: z.ZodEnum<{
2702
- ONLINE: "ONLINE";
2703
- OFFLINE: "OFFLINE";
2704
- }>;
2705
- }, z.core.$strip>;
2706
- }, z.core.$strip>], "code">>;
2707
- }, z.core.$strip>;
2708
- type NotificationSchemaType = z.infer<typeof NotificationSchema>;
2709
- type NotificationListResponseSchemaType = z.infer<typeof NotificationListResponseSchema>;
2710
-
2711
- declare const TelemetryMerchantSchema: z.ZodObject<{
2712
- vat_number: z.ZodString;
2713
- fiscal_code: z.ZodNullable<z.ZodString>;
2714
- business_name: z.ZodString;
2715
- }, z.core.$strip>;
2716
- declare const TelemetrySupplierSchema: z.ZodObject<{
2717
- vat_number: z.ZodString;
2718
- fiscal_code: z.ZodNullable<z.ZodString>;
2719
- business_name: z.ZodString;
2720
- }, z.core.$strip>;
2721
- declare const TelemetrySoftwareVersionSchema: z.ZodObject<{
2722
- version: z.ZodString;
2723
- swid: z.ZodString;
2724
- installed_at: z.ZodString;
2725
- status: z.ZodEnum<{
2726
- active: "active";
2727
- inactive: "inactive";
2728
- archived: "archived";
2729
- }>;
2730
- }, z.core.$strip>;
2731
- declare const TelemetrySoftwareSchema: z.ZodObject<{
2732
- code: z.ZodString;
2733
- name: z.ZodString;
2734
- approval_reference: z.ZodString;
2735
- version_info: z.ZodObject<{
2736
- version: z.ZodString;
2737
- swid: z.ZodString;
2738
- installed_at: z.ZodString;
2739
- status: z.ZodEnum<{
2740
- active: "active";
2741
- inactive: "inactive";
2742
- archived: "archived";
2743
- }>;
2744
- }, z.core.$strip>;
2745
- }, z.core.$strip>;
2746
- declare const PendingReceiptsSchema: z.ZodObject<{
2747
- count: z.ZodNumber;
2748
- total_amount: z.ZodString;
2749
- }, z.core.$strip>;
2750
- declare const TransmissionSchema: z.ZodObject<{
2751
- attempted_at: z.ZodString;
2752
- outcome: z.ZodEnum<{
2753
- success: "success";
2754
- pending: "pending";
2755
- failed: "failed";
2756
- }>;
2757
- }, z.core.$strip>;
2758
- declare const MessageSchema: z.ZodObject<{
2759
- received_at: z.ZodString;
2760
- content: z.ZodString;
2761
- }, z.core.$strip>;
2762
- declare const LotterySecretRequestSchema: z.ZodObject<{
2763
- requested_at: z.ZodString;
2764
- outcome: z.ZodEnum<{
2765
- success: "success";
2766
- pending: "pending";
2767
- failed: "failed";
2768
- }>;
2769
- }, z.core.$strip>;
2770
- declare const LotterySchema: z.ZodObject<{
2771
- last_transmission: z.ZodObject<{
2772
- attempted_at: z.ZodString;
2773
- outcome: z.ZodEnum<{
2774
- success: "success";
2775
- pending: "pending";
2776
- failed: "failed";
2777
- }>;
2778
- }, z.core.$strip>;
2779
- secret_request: z.ZodObject<{
2780
- requested_at: z.ZodString;
2781
- outcome: z.ZodEnum<{
2782
- success: "success";
2783
- pending: "pending";
2784
- failed: "failed";
2785
- }>;
2786
- }, z.core.$strip>;
2787
- }, z.core.$strip>;
2788
- declare const TelemetrySchema: z.ZodObject<{
2789
- pem_id: z.ZodString;
2790
- pem_status: z.ZodEnum<{
2791
- ONLINE: "ONLINE";
2792
- OFFLINE: "OFFLINE";
2793
- ERROR: "ERROR";
2794
- }>;
2795
- pem_status_changed_at: z.ZodString;
2796
- merchant: z.ZodObject<{
2797
- vat_number: z.ZodString;
2798
- fiscal_code: z.ZodNullable<z.ZodString>;
2799
- business_name: z.ZodString;
2800
- }, z.core.$strip>;
2801
- supplier: z.ZodObject<{
2802
- vat_number: z.ZodString;
2803
- fiscal_code: z.ZodNullable<z.ZodString>;
2804
- business_name: z.ZodString;
2805
- }, z.core.$strip>;
2806
- software: z.ZodObject<{
2807
- code: z.ZodString;
2808
- name: z.ZodString;
2809
- approval_reference: z.ZodString;
2810
- version_info: z.ZodObject<{
2811
- version: z.ZodString;
2812
- swid: z.ZodString;
2813
- installed_at: z.ZodString;
2814
- status: z.ZodEnum<{
2815
- active: "active";
2816
- inactive: "inactive";
2817
- archived: "archived";
2818
- }>;
2819
- }, z.core.$strip>;
2820
- }, z.core.$strip>;
2821
- last_communication_at: z.ZodString;
2822
- pending_receipts: z.ZodObject<{
2823
- count: z.ZodNumber;
2824
- total_amount: z.ZodString;
2825
- }, z.core.$strip>;
2826
- last_receipt_transmission: z.ZodObject<{
2827
- attempted_at: z.ZodString;
2828
- outcome: z.ZodEnum<{
2829
- success: "success";
2830
- pending: "pending";
2831
- failed: "failed";
2832
- }>;
2833
- }, z.core.$strip>;
2834
- last_message_from_mf2: z.ZodObject<{
2835
- received_at: z.ZodString;
2836
- content: z.ZodString;
2837
- }, z.core.$strip>;
2838
- ade_corrispettivi_transmission: z.ZodObject<{
2839
- attempted_at: z.ZodString;
2840
- outcome: z.ZodEnum<{
2841
- success: "success";
2842
- pending: "pending";
2843
- failed: "failed";
2844
- }>;
2845
- }, z.core.$strip>;
2846
- last_message_from_ade: z.ZodObject<{
2847
- received_at: z.ZodString;
2848
- content: z.ZodString;
2849
- }, z.core.$strip>;
2850
- lottery: z.ZodObject<{
2851
- last_transmission: z.ZodObject<{
2852
- attempted_at: z.ZodString;
2853
- outcome: z.ZodEnum<{
2854
- success: "success";
2855
- pending: "pending";
2856
- failed: "failed";
2857
- }>;
2858
- }, z.core.$strip>;
2859
- secret_request: z.ZodObject<{
2860
- requested_at: z.ZodString;
2861
- outcome: z.ZodEnum<{
2862
- success: "success";
2863
- pending: "pending";
2864
- failed: "failed";
2865
- }>;
2866
- }, z.core.$strip>;
2867
- }, z.core.$strip>;
2868
- }, z.core.$strip>;
2869
- type TelemetrySchemaType = z.infer<typeof TelemetrySchema>;
2870
-
2871
- /**
2872
- * Zod validation schemas for ACube E-Receipt API
2873
- *
2874
- * This module exports all validation schemas and types for API input DTOs.
2875
- * Use these schemas to validate user input before sending requests to the API.
2876
- *
2877
- * @example
2878
- * ```typescript
2879
- * import { ReceiptInputSchema, ReceiptInputType } from '@/validations/api';
2880
- *
2881
- * // Validate input data
2882
- * const result = ReceiptInputSchema.safeParse(userInput);
2883
- * if (!result.success) {
2884
- * console.error('Validation errors:', result.error.errors);
2885
- * } else {
2886
- * // Use validated data
2887
- * const validatedData: ReceiptInputType = result.data;
2888
- * }
2889
- * ```
2890
- */
2891
-
2892
- declare const ValidationMessages: {
2893
- readonly fieldIsRequired: "This field is required";
2894
- readonly arrayMin1: "At least one item is required";
2895
- readonly paymentMethodRequired: "At least one payment method is required";
2896
- readonly invalidEmail: "Please enter a valid email address";
2897
- readonly passwordMinLength: "Password must be at least 8 characters long";
2898
- readonly passwordComplexity: "Password must contain at least one uppercase letter, one lowercase letter, one number, and one special character";
2899
- readonly invalidZipCode: "Please enter a valid 5-digit zip code";
2900
- readonly provinceMinLength: "Province code must be 2 characters";
2901
- readonly provinceMaxLength: "Province code must be 2 characters";
2902
- readonly invalidDateFormat: "Please enter a valid date";
2903
- readonly nameMaxLength: "Name is too long";
2904
- readonly invalidFiscalId: "Please enter a valid Italian fiscal ID (Codice Fiscale or Partita IVA)";
2905
- readonly invalidVatNumber: "Please enter a valid VAT number (11 digits)";
2906
- readonly invalidFiscalCode: "Please enter a valid fiscal code (11 digits)";
2907
- readonly businessNameMaxLength: "Business name is too long (max 200 characters)";
2908
- readonly businessNameOrPersonalNamesRequired: "Please provide either a business name or first/last name, but not both";
2909
- readonly firstNameMaxLength: "First name is too long (max 100 characters)";
2910
- readonly lastNameMaxLength: "Last name is too long (max 100 characters)";
2911
- readonly invalidUuid: "Please enter a valid UUID";
2912
- readonly invalidPemType: "PEM type must be one of: AP, SP, TM, PV";
2913
- readonly reasonMaxLength: "Reason is too long (max 255 characters)";
2914
- readonly pageMinValue: "Page number must be at least 1";
2915
- readonly invalidDailyReportStatus: "Daily report status must be one of: pending, sent, error";
2916
- readonly displayNameMaxLength: "Display name is too long (max 255 characters)";
2917
- };
2918
- declare const validateInput: <T>(schema: z.ZodSchema<T>, data: unknown) => {
2919
- success: boolean;
2920
- errors: {
2921
- field: string;
2922
- message: string;
2923
- code: "invalid_type" | "too_big" | "too_small" | "invalid_format" | "not_multiple_of" | "unrecognized_keys" | "invalid_union" | "invalid_key" | "invalid_element" | "invalid_value" | "custom";
2924
- }[];
2925
- data: null;
2926
- } | {
2927
- success: boolean;
2928
- errors: never[];
2929
- data: T;
2930
- };
2931
- interface ValidationResult<T> {
2932
- success: boolean;
2933
- errors: Array<{
2934
- field: string;
2935
- message: string;
2936
- code: string;
2937
- }>;
2938
- data: T | null;
2939
- }
2940
1798
 
2941
1799
  interface MTLSAdapterConfig {
2942
1800
  baseUrl?: string;
@@ -2951,40 +1809,5 @@ interface PlatformAdapterOptions {
2951
1809
  declare function loadPlatformAdapters(options?: PlatformAdapterOptions): PlatformAdapters;
2952
1810
  declare function createACubeMTLSConfig(baseUrl: string, timeout?: number, autoInitialize?: boolean, forcePort444?: boolean): MTLSAdapterConfig;
2953
1811
 
2954
- declare enum MTLSErrorType {
2955
- NOT_SUPPORTED = "MTLS_NOT_SUPPORTED",
2956
- CERTIFICATE_NOT_FOUND = "MTLS_CERTIFICATE_NOT_FOUND",
2957
- CERTIFICATE_EXPIRED = "MTLS_CERTIFICATE_EXPIRED",
2958
- CERTIFICATE_INVALID = "MTLS_CERTIFICATE_INVALID",
2959
- CONNECTION_FAILED = "MTLS_CONNECTION_FAILED",
2960
- AUTHENTICATION_FAILED = "MTLS_AUTHENTICATION_FAILED",
2961
- CONFIGURATION_ERROR = "MTLS_CONFIGURATION_ERROR"
2962
- }
2963
- declare class MTLSError extends Error {
2964
- type: MTLSErrorType;
2965
- originalError?: Error | undefined;
2966
- statusCode?: number | undefined;
2967
- constructor(type: MTLSErrorType, message: string, originalError?: Error | undefined, statusCode?: number | undefined);
2968
- }
2969
-
2970
- interface JwtPayload {
2971
- uid: number;
2972
- username: string;
2973
- roles: Record<string, string[]>;
2974
- fid: string;
2975
- pid: string | null;
2976
- exp: number;
2977
- iat: number;
2978
- }
2979
- declare function parseJwt(token: string): JwtPayload;
2980
- declare function isTokenExpired(payload: JwtPayload): boolean;
2981
- declare function extractRoles(jwtRoles: Record<string, string[]>): UserRole[];
2982
-
2983
- declare class CertificateValidator {
2984
- static validatePEMFormat(certificate: string, privateKey: string): boolean;
2985
- static isCertificateExpired(validTo: Date): boolean;
2986
- static getDaysUntilExpiry(validTo: Date): number;
2987
- }
2988
-
2989
- export { ACubeSDK, ACubeSDKError, ActivationRequestSchema, AddressMapper, AddressSchema, AppStateService, AuthStrategy, AuthenticationService, AxiosHttpAdapter, CashRegisterCreateSchema, CashRegisterMapper, CashRegisterRepositoryImpl, CashierCreateInputSchema, CashierMapper, CashierRepositoryImpl, CertificateService, CertificateValidator, ConfigManager, DAILY_REPORT_STATUS_OPTIONS, DIContainer, DI_TOKENS, DailyReportMapper, DailyReportRepositoryImpl, DailyReportStatusSchema, DailyReportsParamsSchema, EXEMPT_VAT_CODES, ErrorCategory, GOOD_OR_SERVICE_OPTIONS, GoodOrServiceSchema, JournalCloseInputSchema, JournalMapper, JournalRepositoryImpl, JwtAuthHandler, LotterySchema, LotterySecretRequestSchema, MTLSError, MTLSErrorType, MerchantCreateInputSchema, MerchantMapper, MerchantRepositoryImpl, MerchantUpdateInputSchema, MessageSchema, MtlsAuthHandler, NOTIFICATION_CODES, NOTIFICATION_LEVELS, NOTIFICATION_SCOPES, NOTIFICATION_SOURCES, NOTIFICATION_TYPES, NotificationDataBlockAtSchema, NotificationDataPemStatusSchema, NotificationListResponseSchema, NotificationMapper, NotificationMf2UnreachableSchema, NotificationPemBackOnlineSchema, NotificationPemsBlockedSchema, NotificationRepositoryImpl, NotificationSchema, NotificationScopeSchema, NotificationService, PEMStatusOfflineRequestSchema, PEMStatusSchema, PEM_STATUS_OPTIONS, PEM_TYPE_OPTIONS, PemCreateInputSchema, PemDataSchema, PemMapper, PemRepositoryImpl, PemStatusSchema, PendingReceiptsSchema, PlatformDetector, PointOfSaleMapper, PointOfSaleRepositoryImpl, RECEIPT_PROOF_TYPE_OPTIONS, RECEIPT_READY, RECEIPT_SENT, RECEIPT_SORT_ASCENDING, RECEIPT_SORT_DESCENDING, ReceiptInputSchema, ReceiptItemSchema, ReceiptMapper, ReceiptProofTypeSchema, ReceiptRepositoryImpl, ReceiptReturnInputSchema, ReceiptReturnItemSchema, ReceiptReturnOrVoidViaPEMInputSchema, ReceiptReturnOrVoidWithProofInputSchema, SDKFactory, SDKManager, STANDARD_VAT_RATES, SupplierCreateInputSchema, SupplierMapper, SupplierRepositoryImpl, SupplierUpdateInputSchema, TelemetryMapper, TelemetryMerchantSchema, TelemetryRepositoryImpl, TelemetrySchema, TelemetryService, TelemetrySoftwareSchema, TelemetrySoftwareVersionSchema, TelemetrySupplierSchema, TransmissionSchema, VAT_RATE_CODES, VAT_RATE_CODE_OPTIONS, ValidationMessages, VatRateCodeSchema, VoidReceiptInputSchema, classifyError, clearObject, clearObjectShallow, createACubeMTLSConfig, createACubeSDK, createPrefixedLogger, createACubeSDK as default, detectPlatform, extractRoles, formatDecimal, getUserFriendlyMessage, hasAnyRole, hasNonEmptyValues, hasRole, isEmpty, isTokenExpired, loadPlatformAdapters, logger, parseJwt, shouldReconfigureCertificate, shouldRetryRequest, transformError, validateInput };
2990
- export type { ActivationRequest, ActivationRequestApiInput, ActivationRequestType, Address, AddressApiOutput, AddressType, AppMode, AppState, AuthConfig, AuthCredentials$1 as AuthCredentials, AuthMode, AxiosHttpAdapterConfig, CashRegister, CashRegisterApiOutput, CashRegisterCreateApiInput, CashRegisterCreateInput, CashRegisterCreateType, CashRegisterDetailed, CashRegisterDetailedApiOutput, CashRegisterListParams, CashRegisterUpdateApiInput, CashRegisterUpdateInput, Cashier, CashierApiOutput, CashierCreateApiInput, CashierCreateInput, CashierCreateInputType, CashierListParams, CashierStatus, CertificateData, CertificateInfo, Cleaned, CleanedShallow, DailyReport, DailyReportApiOutput, DailyReportStatus, DailyReportStatusType, DailyReportsParams, DailyReportsParamsType, Domain, Environment, ErrorClassification, GoodOrService, GoodOrServiceType, HttpRequestConfig, HttpResponse, IAuthHandler, ICashRegisterRepository, ICashierRepository, ICertificatePort, IDailyReportRepository, IHttpPort, IJournalRepository, IMTLSAdapter, IMTLSAdapterFactory, IMTLSPort, IMerchantRepository, INetworkMonitor, INetworkPort, INotificationRepository, IPemRepository, IPointOfSaleRepository, IReceiptRepository, ISecureStorage, ISecureStoragePort, IStorage, IStoragePort, ISupplierRepository, ITelemetryRepository, ITokenStoragePort, IUserProvider, JWTPayload, Journal, JournalApiOutput, JournalCloseInput, JournalCloseInputType, JournalStatus, JournalsParams, LdJsonPage, LotteryApiOutput, LotterySecretRequestApiOutput, LotterySecretRequestInfo, LotteryTelemetry, MTLSConnectionConfig, MTLSRequestConfig, MTLSResponse, ManagedServices, Merchant, MerchantApiOutput, MerchantCreateApiInput, MerchantCreateInput, MerchantCreateInputType, MerchantUpdateApiInput, MerchantUpdateInput, MerchantUpdateInputType, MerchantsParams, MessageApiOutput, MessageInfo, NetworkInfo, NetworkStatus, Notification, NotificationApiOutput, NotificationCode, NotificationCommunicationRestored, NotificationCommunicationRestoredApiOutput, NotificationEvents, NotificationLevel, NotificationListParams, NotificationListResponseSchemaType, NotificationMf2Unreachable, NotificationMf2UnreachableApiOutput, NotificationPageApiOutput, NotificationPayloadBlockAt, NotificationSchemaType, NotificationScope, NotificationServiceConfig, NotificationSource, NotificationStatusOffline, NotificationStatusOfflineApiOutput, NotificationStatusOnline, NotificationStatusOnlineApiOutput, NotificationSyncState, NotificationType, PEMStatus, PEMStatusOfflineRequest, PEMStatusOfflineRequestApiInput, PEMStatusOfflineRequestType, PEMStatusType, Page, PemCertificates, PemCertificatesApiOutput, PemCreateApiInput, PemCreateApiOutput, PemCreateInput, PemCreateInputType, PemCreateOutput, PemData, PemDataType, PendingReceipts, PendingReceiptsApiOutput, Platform, PlatformAdapters, PlatformInfo, PointOfSale, PointOfSaleApiOutput, PointOfSaleDetailed, PointOfSaleDetailedApiOutput, PointOfSaleListParams, PointOfSaleMf2, PointOfSaleMf2ApiOutput, PointOfSaleType, Receipt, ReceiptApiInput, ReceiptApiOutput, ReceiptDetails, ReceiptDetailsApiOutput, ReceiptInput, ReceiptInputType, ReceiptItem, ReceiptItemApiInput, ReceiptItemType, ReceiptListParams, ReceiptProofType, ReceiptProofTypeType, ReceiptReturnApiInput, ReceiptReturnInput, ReceiptReturnItem, ReceiptReturnItemType, ReceiptReturnOrVoidViaPEMInputType, ReceiptReturnOrVoidWithProofInputType, ReceiptReturnType, ReceiptSortOrder, ReceiptStatus, ReceiptType, ReturnViaDifferentDeviceApiInput, ReturnViaDifferentDeviceInput, ReturnWithProofApiInput, ReturnWithProofInput, ReturnableReceiptItem, ReturnableReceiptItemApiOutput, SDKConfig, SDKEvents, SDKFactoryConfig, SDKManagerConfig, SDKManagerEvents, SDKServices, SoftwareVersionStatus, StoredCertificate, Supplier, SupplierApiOutput, SupplierCreateApiInput, SupplierCreateInput, SupplierCreateInputType, SupplierUpdateApiInput, SupplierUpdateInput, SupplierUpdateInputType, SuppliersParams, Telemetry, TelemetryApiOutput, TelemetryMerchant, TelemetryMerchantApiOutput, TelemetryOperations, TelemetrySchemaType, TelemetryServiceConfig, TelemetrySoftware, TelemetrySoftwareApiOutput, TelemetrySoftwareVersion, TelemetrySoftwareVersionApiOutput, TelemetryState, TelemetrySupplier, TelemetrySupplierApiOutput, TransmissionAttemptApiOutput, TransmissionAttemptInfo, User$1 as User, UserRole, UserRoles, ValidationResult, VatRateCode, VatRateCodeType, VoidReceiptApiInput, VoidReceiptInput, VoidReceiptInputType, VoidViaDifferentDeviceApiInput, VoidViaDifferentDeviceInput, VoidWithProofApiInput, VoidWithProofInput, WarningState };
1812
+ export { ACubeSDK, ACubeSDKError, AddressMapper, AppStateService, AuthenticationService, CashRegisterMapper, CashierMapper, CertificateService, CertificateValidator, ConfigManager, DAILY_REPORT_STATUS_OPTIONS, DailyReportMapper, EXEMPT_VAT_CODES, GOOD_OR_SERVICE_OPTIONS, GoodOrServiceSchema, JournalMapper, MTLSError, MTLSErrorType, MerchantMapper, NOTIFICATION_CODES, NOTIFICATION_LEVELS, NOTIFICATION_SCOPES, NOTIFICATION_SOURCES, NOTIFICATION_TYPES, NotificationMapper, NotificationService, PEM_STATUS_OPTIONS, PEM_TYPE_OPTIONS, PemMapper, PointOfSaleMapper, RECEIPT_PROOF_TYPE_OPTIONS, RECEIPT_READY, RECEIPT_SENT, RECEIPT_SORT_ASCENDING, RECEIPT_SORT_DESCENDING, ReceiptMapper, ReceiptProofTypeSchema, SDKManager, STANDARD_VAT_RATES, SupplierMapper, TelemetryMapper, TelemetryService, VAT_RATE_CODES, VAT_RATE_CODE_OPTIONS, VatRateCodeSchema, createACubeMTLSConfig, createACubeSDK, createPrefixedLogger, createACubeSDK as default, extractRoles, hasAnyRole, hasRole, isTokenExpired, loadPlatformAdapters, logger, parseJwt };
1813
+ export type { ActivationRequest, ActivationRequestApiInput, Address, AddressApiOutput, AppMode, AppState, AuthConfig, AuthCredentials$1 as AuthCredentials, CashRegister, CashRegisterApiOutput, CashRegisterCreateApiInput, CashRegisterCreateInput, CashRegisterDetailed, CashRegisterDetailedApiOutput, CashRegisterListParams, CashRegisterUpdateApiInput, CashRegisterUpdateInput, Cashier, CashierApiOutput, CashierCreateApiInput, CashierCreateInput, CashierListParams, CashierStatus, CertificateData, CertificateInfo, DailyReport, DailyReportApiOutput, DailyReportStatus, DailyReportsParams, Domain, Environment, GoodOrService, GoodOrServiceType, HttpRequestConfig, HttpResponse, IAuthHandler, ICashRegisterRepository, ICashierRepository, ICertificatePort, IDailyReportRepository, IHttpPort, IJournalRepository, IMTLSAdapter, IMTLSAdapterFactory, IMTLSPort, IMerchantRepository, INetworkPort, INotificationRepository, IPemRepository, IPointOfSaleRepository, IReceiptRepository, ISecureStoragePort, IStoragePort, ISupplierRepository, ITelemetryRepository, ITokenStoragePort, JWTPayload, Journal, JournalApiOutput, JournalCloseInput, JournalStatus, JournalsParams, LdJsonPage, LotteryApiOutput, LotterySecretRequestApiOutput, LotterySecretRequestInfo, LotteryTelemetry, MTLSConnectionConfig, MTLSRequestConfig, MTLSResponse, ManagedServices, Merchant, MerchantApiOutput, MerchantCreateApiInput, MerchantCreateInput, MerchantUpdateApiInput, MerchantUpdateInput, MerchantsParams, MessageApiOutput, MessageInfo, Notification, NotificationApiOutput, NotificationCode, NotificationCommunicationRestored, NotificationCommunicationRestoredApiOutput, NotificationEvents, NotificationLevel, NotificationListParams, NotificationMf2Unreachable, NotificationMf2UnreachableApiOutput, NotificationPageApiOutput, NotificationPayloadBlockAt, NotificationScope, NotificationServiceConfig, NotificationSource, NotificationStatusOffline, NotificationStatusOfflineApiOutput, NotificationStatusOnline, NotificationStatusOnlineApiOutput, NotificationSyncState, NotificationType, PEMStatus, PEMStatusOfflineRequest, PEMStatusOfflineRequestApiInput, Page, PemCertificates, PemCertificatesApiOutput, PemCreateApiInput, PemCreateApiOutput, PemCreateInput, PemCreateOutput, PemData, PendingReceipts, PendingReceiptsApiOutput, PlatformAdapters, PointOfSale, PointOfSaleApiOutput, PointOfSaleDetailed, PointOfSaleDetailedApiOutput, PointOfSaleListParams, PointOfSaleMf2, PointOfSaleMf2ApiOutput, PointOfSaleType, Receipt, ReceiptApiInput, ReceiptApiOutput, ReceiptDetails, ReceiptDetailsApiOutput, ReceiptInput, ReceiptItem, ReceiptItemApiInput, ReceiptListParams, ReceiptProofType, ReceiptProofTypeType, ReceiptReturnApiInput, ReceiptReturnInput, ReceiptReturnItem, ReceiptSortOrder, ReceiptStatus, ReceiptType, ReturnViaDifferentDeviceApiInput, ReturnViaDifferentDeviceInput, ReturnWithProofApiInput, ReturnWithProofInput, ReturnableReceiptItem, ReturnableReceiptItemApiOutput, SDKConfig, SDKEvents, SDKManagerConfig, SDKManagerEvents, SoftwareVersionStatus, StoredCertificate, Supplier, SupplierApiOutput, SupplierCreateApiInput, SupplierCreateInput, SupplierUpdateApiInput, SupplierUpdateInput, SuppliersParams, Telemetry, TelemetryApiOutput, TelemetryMerchant, TelemetryMerchantApiOutput, TelemetryOperations, TelemetryServiceConfig, TelemetrySoftware, TelemetrySoftwareApiOutput, TelemetrySoftwareVersion, TelemetrySoftwareVersionApiOutput, TelemetryState, TelemetrySupplier, TelemetrySupplierApiOutput, TransmissionAttemptApiOutput, TransmissionAttemptInfo, User$1 as User, UserRole, UserRoles, VatRateCode, VatRateCodeType, VoidReceiptApiInput, VoidReceiptInput, VoidViaDifferentDeviceApiInput, VoidViaDifferentDeviceInput, VoidWithProofApiInput, VoidWithProofInput, WarningState };