@a-cube-io/ereceipts-js-sdk 2.0.8 → 2.1.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,5 @@
1
1
  import { Observable } from 'rxjs';
2
- import { AxiosInstance, AxiosResponse } from 'axios';
2
+ import { AxiosInstance } from 'axios';
3
3
  import * as z from 'zod';
4
4
 
5
5
  interface IStoragePort {
@@ -37,50 +37,6 @@ interface INetworkPort {
37
37
  }
38
38
  type INetworkMonitor = INetworkPort;
39
39
 
40
- interface ICachePort {
41
- get<T>(key: string): Promise<CachedItem<T> | null>;
42
- set<T>(key: string, data: T): Promise<void>;
43
- setItem<T>(key: string, item: CachedItem<T>): Promise<void>;
44
- setBatch<T>(items: Array<[string, CachedItem<T>]>): Promise<void>;
45
- invalidate(pattern: string): Promise<void>;
46
- clear(): Promise<void>;
47
- getSize(): Promise<CacheSize>;
48
- cleanup(): Promise<number>;
49
- getKeys(pattern?: string): Promise<string[]>;
50
- }
51
- interface CachedItem<T> {
52
- data: T;
53
- timestamp: number;
54
- compressed?: boolean;
55
- }
56
- interface CacheSize {
57
- entries: number;
58
- bytes: number;
59
- lastCleanup: number;
60
- }
61
- interface CacheOptions {
62
- maxSize?: number;
63
- maxEntries?: number;
64
- compression?: boolean;
65
- compressionThreshold?: number;
66
- debugEnabled?: boolean;
67
- }
68
- type ICacheAdapter = ICachePort;
69
-
70
- type CacheResource = 'receipt' | 'merchant' | 'cashier' | 'cash-register' | 'point-of-sale' | 'supplier' | 'daily-report' | 'journal' | 'pem' | 'notification' | 'telemetry';
71
- interface CacheResourceConfig {
72
- ttlMs: number;
73
- cacheList: boolean;
74
- cacheItem: boolean;
75
- }
76
- interface ICacheKeyGenerator {
77
- generate(url: string, params?: Record<string, unknown>): string;
78
- parseResource(url: string): CacheResource | undefined;
79
- getInvalidationPatterns(url: string, method: string): string[];
80
- getTTL(url: string): number;
81
- shouldCache(url: string): boolean;
82
- }
83
-
84
40
  interface CertificateData {
85
41
  certificate: string;
86
42
  privateKey: string;
@@ -155,22 +111,6 @@ declare class PlatformDetector {
155
111
  };
156
112
  }
157
113
 
158
- interface CompressionResult {
159
- data: string;
160
- compressed: boolean;
161
- originalSize: number;
162
- compressedSize: number;
163
- }
164
- interface DecompressionResult {
165
- data: string;
166
- wasCompressed: boolean;
167
- }
168
- interface ICompressionPort {
169
- compress(data: string, threshold?: number): CompressionResult;
170
- decompress(data: string, compressed: boolean): DecompressionResult;
171
- estimateSavings(data: string): number;
172
- }
173
-
174
114
  interface HttpRequestConfig {
175
115
  headers?: Record<string, string>;
176
116
  params?: Record<string, string | number | boolean | undefined | null>;
@@ -235,7 +175,6 @@ interface PlatformAdapters {
235
175
  storage: IStoragePort;
236
176
  secureStorage: ISecureStoragePort;
237
177
  networkMonitor: INetworkPort;
238
- cache?: ICachePort;
239
178
  mtls?: IMTLSPort;
240
179
  }
241
180
 
@@ -819,155 +758,6 @@ interface ITelemetryRepository {
819
758
  getTelemetry(pemId: string): Promise<Telemetry>;
820
759
  }
821
760
 
822
- type OperationType = 'CREATE' | 'UPDATE' | 'DELETE';
823
- type ResourceType = 'receipt' | 'cashier' | 'point-of-sale' | 'cash-register' | 'merchant' | 'pem';
824
- type OperationStatus = 'pending' | 'processing' | 'completed' | 'failed';
825
- type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
826
- interface QueuedOperation {
827
- id: string;
828
- type: OperationType;
829
- resource: ResourceType;
830
- endpoint: string;
831
- method: HttpMethod;
832
- data?: unknown;
833
- headers?: Record<string, string>;
834
- status: OperationStatus;
835
- createdAt: number;
836
- updatedAt: number;
837
- retryCount: number;
838
- maxRetries: number;
839
- error?: string;
840
- priority: number;
841
- }
842
- interface SyncResult {
843
- operation: QueuedOperation;
844
- success: boolean;
845
- error?: string;
846
- response?: unknown;
847
- }
848
- interface BatchSyncResult {
849
- totalOperations: number;
850
- successCount: number;
851
- failureCount: number;
852
- results: SyncResult[];
853
- }
854
- interface QueueConfig {
855
- maxRetries: number;
856
- retryDelay: number;
857
- maxRetryDelay: number;
858
- backoffMultiplier: number;
859
- maxQueueSize: number;
860
- batchSize: number;
861
- syncInterval: number;
862
- }
863
- interface QueueEvents {
864
- onOperationAdded?: (operation: QueuedOperation) => void;
865
- onOperationCompleted?: (result: SyncResult) => void;
866
- onOperationFailed?: (result: SyncResult) => void;
867
- onBatchSyncCompleted?: (result: BatchSyncResult) => void;
868
- onQueueEmpty?: () => void;
869
- onError?: (error: Error) => void;
870
- }
871
- interface QueueStats {
872
- total: number;
873
- pending: number;
874
- processing: number;
875
- completed: number;
876
- failed: number;
877
- }
878
- interface SyncStatus {
879
- isOnline: boolean;
880
- isProcessing: boolean;
881
- queueStats: QueueStats;
882
- }
883
- declare const DEFAULT_QUEUE_CONFIG: QueueConfig;
884
-
885
- declare class OfflineManager {
886
- private queue;
887
- private syncManager;
888
- private readonly queueSubject;
889
- private readonly syncStatusSubject;
890
- private readonly destroy$;
891
- get queue$(): Observable<QueuedOperation[]>;
892
- get syncStatus$(): Observable<SyncStatus>;
893
- constructor(storage: IStoragePort, httpPort: IHttpPort, networkMonitor: INetworkPort, config?: Partial<QueueConfig>, events?: QueueEvents, _cache?: ICachePort);
894
- private updateQueueState;
895
- queueOperation(type: OperationType, resource: ResourceType, endpoint: string, method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE', data?: unknown, priority?: number): Promise<string>;
896
- queueReceiptCreation(receiptData: unknown, priority?: number): Promise<string>;
897
- queueReceiptVoid(voidData: unknown, priority?: number): Promise<string>;
898
- queueReceiptReturn(returnData: unknown, priority?: number): Promise<string>;
899
- queueCashierCreation(cashierData: unknown, priority?: number): Promise<string>;
900
- isOnline(): boolean;
901
- getStatus(): SyncStatus;
902
- getPendingCount(): number;
903
- isEmpty(): boolean;
904
- sync(): Promise<BatchSyncResult | null>;
905
- retryFailed(): Promise<void>;
906
- clearCompleted(): Promise<void>;
907
- clearFailed(): Promise<void>;
908
- clearAll(): Promise<void>;
909
- getOperation(id: string): QueuedOperation | undefined;
910
- removeOperation(id: string): Promise<boolean>;
911
- getQueueStats(): QueueStats;
912
- startAutoSync(): void;
913
- stopAutoSync(): void;
914
- destroy(): void;
915
- }
916
-
917
- declare class OperationQueue {
918
- private storage;
919
- private config;
920
- private events;
921
- private static readonly QUEUE_KEY;
922
- private queue;
923
- private processing;
924
- private syncIntervalId?;
925
- constructor(storage: IStoragePort, config?: QueueConfig, events?: QueueEvents);
926
- addOperation(type: OperationType, resource: ResourceType, endpoint: string, method: HttpMethod, data?: unknown, priority?: number): Promise<string>;
927
- getPendingOperations(): QueuedOperation[];
928
- getOperation(id: string): QueuedOperation | undefined;
929
- removeOperation(id: string): Promise<boolean>;
930
- updateOperation(id: string, updates: Partial<QueuedOperation>): Promise<boolean>;
931
- getStats(): QueueStats;
932
- clearQueue(): Promise<void>;
933
- clearCompleted(): Promise<void>;
934
- clearFailed(): Promise<void>;
935
- retryFailed(): Promise<void>;
936
- getNextBatch(): QueuedOperation[];
937
- isEmpty(): boolean;
938
- startAutoSync(): void;
939
- stopAutoSync(): void;
940
- setProcessing(value: boolean): void;
941
- isCurrentlyProcessing(): boolean;
942
- private loadQueue;
943
- private saveQueue;
944
- private generateId;
945
- destroy(): void;
946
- }
947
-
948
- declare class SyncManager {
949
- private queue;
950
- private httpPort;
951
- private networkMonitor;
952
- private config;
953
- private events;
954
- private isOnline;
955
- private readonly destroy$;
956
- private networkSubscription?;
957
- constructor(queue: OperationQueue, httpPort: IHttpPort, networkMonitor: INetworkPort, config: QueueConfig, events?: QueueEvents);
958
- private setupNetworkMonitoring;
959
- syncPendingOperations(): Promise<BatchSyncResult>;
960
- private processOperation;
961
- private executeOperation;
962
- private isRetryableError;
963
- private calculateRetryDelay;
964
- private delay;
965
- isCurrentlyOnline(): boolean;
966
- triggerSync(): Promise<BatchSyncResult | null>;
967
- getSyncStatus(): SyncStatus;
968
- destroy(): void;
969
- }
970
-
971
761
  type Domain = 'ereceipts-it.acubeapi.com';
972
762
  type UserRole = 'ROLE_SUPPLIER' | 'ROLE_CASHIER' | 'ROLE_MERCHANT';
973
763
  type UserRoles = Record<Domain, UserRole[]>;
@@ -1018,15 +808,12 @@ interface SDKEvents {
1018
808
  onUserChanged?: (user: User$1 | null) => void;
1019
809
  onAuthError?: (error: ACubeSDKError) => void;
1020
810
  onNetworkStatusChanged?: (online: boolean) => void;
1021
- onOfflineOperationAdded?: (operationId: string) => void;
1022
- onOfflineOperationCompleted?: (operationId: string, success: boolean) => void;
1023
811
  }
1024
812
  declare class ACubeSDK {
1025
813
  private events;
1026
814
  private config;
1027
815
  private adapters?;
1028
816
  private authService?;
1029
- private offlineManager?;
1030
817
  private certificateService?;
1031
818
  private container?;
1032
819
  private isInitialized;
@@ -1050,7 +837,6 @@ declare class ACubeSDK {
1050
837
  logout(): Promise<void>;
1051
838
  getCurrentUser(): Promise<User$1 | null>;
1052
839
  isAuthenticated(): Promise<boolean>;
1053
- getOfflineManager(): OfflineManager;
1054
840
  isOnline(): boolean;
1055
841
  getConfig(): SDKConfig;
1056
842
  updateConfig(updates: Partial<SDKConfig>): void;
@@ -1096,12 +882,9 @@ declare function createACubeSDK(config: SDKConfig, customAdapters?: PlatformAdap
1096
882
 
1097
883
  declare const DI_TOKENS: {
1098
884
  readonly HTTP_PORT: symbol;
1099
- readonly BASE_HTTP_PORT: symbol;
1100
885
  readonly STORAGE_PORT: symbol;
1101
886
  readonly SECURE_STORAGE_PORT: symbol;
1102
887
  readonly NETWORK_PORT: symbol;
1103
- readonly CACHE_PORT: symbol;
1104
- readonly CACHE_KEY_GENERATOR: symbol;
1105
888
  readonly MTLS_PORT: symbol;
1106
889
  readonly TOKEN_STORAGE_PORT: symbol;
1107
890
  readonly RECEIPT_REPOSITORY: symbol;
@@ -1119,7 +902,6 @@ declare const DI_TOKENS: {
1119
902
  readonly AUTH_SERVICE: symbol;
1120
903
  readonly AUTHENTICATION_SERVICE: symbol;
1121
904
  readonly CERTIFICATE_SERVICE: symbol;
1122
- readonly OFFLINE_SERVICE: symbol;
1123
905
  readonly NOTIFICATION_SERVICE: symbol;
1124
906
  readonly TELEMETRY_SERVICE: symbol;
1125
907
  };
@@ -1200,8 +982,6 @@ interface SDKServices {
1200
982
  }
1201
983
  declare class SDKFactory {
1202
984
  static createContainer(config: SDKFactoryConfig): DIContainer;
1203
- static registerCacheServices(container: DIContainer, cache: ICachePort, network?: INetworkPort): void;
1204
- static getCacheKeyGenerator(container: DIContainer): ICacheKeyGenerator | undefined;
1205
985
  static registerAuthServices(container: DIContainer, secureStorage: ISecureStoragePort, config: SDKFactoryConfig): void;
1206
986
  static getServices(container: DIContainer): SDKServices;
1207
987
  }
@@ -1217,10 +997,12 @@ interface AppState {
1217
997
  isOnline: boolean;
1218
998
  warning: WarningState;
1219
999
  lastNotification: Notification | null;
1000
+ certificateMissing: boolean;
1220
1001
  }
1221
1002
  declare class AppStateService {
1222
1003
  private readonly notifications$;
1223
1004
  private readonly networkPort;
1005
+ private readonly certificateMissingInput$;
1224
1006
  private readonly stateSubject;
1225
1007
  private readonly destroy$;
1226
1008
  private warningTimerId;
@@ -1228,7 +1010,8 @@ declare class AppStateService {
1228
1010
  get mode$(): Observable<AppMode>;
1229
1011
  get isBlocked$(): Observable<boolean>;
1230
1012
  get warning$(): Observable<WarningState>;
1231
- constructor(notifications$: Observable<Notification[]>, networkPort: INetworkPort);
1013
+ get certificateMissing$(): Observable<boolean>;
1014
+ constructor(notifications$: Observable<Notification[]>, networkPort: INetworkPort, certificateMissingInput$?: Observable<boolean>);
1232
1015
  private setupSubscriptions;
1233
1016
  private processState;
1234
1017
  private getLatestNotificationByCode;
@@ -1241,7 +1024,6 @@ declare class AppStateService {
1241
1024
 
1242
1025
  interface TelemetryState {
1243
1026
  data: Telemetry | null;
1244
- isCached: boolean;
1245
1027
  isLoading: boolean;
1246
1028
  lastFetchedAt: number | null;
1247
1029
  error?: string;
@@ -1332,6 +1114,9 @@ interface ManagedServices {
1332
1114
  }) => Promise<void>;
1333
1115
  hasCertificate: () => Promise<boolean>;
1334
1116
  clearCertificate: () => Promise<void>;
1117
+ getCertificate: () => Promise<StoredCertificate | null>;
1118
+ getCertificatesInfo: () => Promise<CertificateInfo | null>;
1119
+ notifications: INotificationRepository;
1335
1120
  isOnline: () => boolean;
1336
1121
  }
1337
1122
  /**
@@ -1391,6 +1176,7 @@ declare class SDKManager {
1391
1176
  private appStateService;
1392
1177
  private isInitialized;
1393
1178
  private isPollingActive;
1179
+ private readonly certificateMissingSubject;
1394
1180
  private constructor();
1395
1181
  /**
1396
1182
  * Handle user state changes (login/logout/token expiration)
@@ -1439,7 +1225,12 @@ declare class SDKManager {
1439
1225
  */
1440
1226
  get warning$(): Observable<WarningState>;
1441
1227
  /**
1442
- * Observable stream of telemetry state (data, isLoading, isCached, error)
1228
+ * Observable stream indicating if certificate is missing
1229
+ * When true, polling is blocked and the user should install a certificate
1230
+ */
1231
+ get certificateMissing$(): Observable<boolean>;
1232
+ /**
1233
+ * Observable stream of telemetry state (data, isLoading, error)
1443
1234
  */
1444
1235
  get telemetryState$(): Observable<TelemetryState>;
1445
1236
  /**
@@ -1479,6 +1270,11 @@ declare class SDKManager {
1479
1270
  * Get the underlying SDK instance (for advanced use cases)
1480
1271
  */
1481
1272
  getSDK(): ACubeSDK;
1273
+ /**
1274
+ * Check certificate availability and update certificateMissing state.
1275
+ * Returns true if certificate is available, false otherwise.
1276
+ */
1277
+ private checkCertificate;
1482
1278
  private cleanup;
1483
1279
  private ensureInitialized;
1484
1280
  }
@@ -2072,28 +1868,6 @@ declare class AxiosHttpAdapter implements IHttpPort {
2072
1868
  getAxiosInstance(): AxiosInstance;
2073
1869
  }
2074
1870
 
2075
- interface CacheConfig {
2076
- useCache?: boolean;
2077
- }
2078
- declare class CacheHandler {
2079
- private cache?;
2080
- private networkMonitor?;
2081
- private currentOnlineState;
2082
- private networkSubscription?;
2083
- constructor(cache?: ICachePort | undefined, networkMonitor?: INetworkPort | undefined);
2084
- private setupNetworkMonitoring;
2085
- isOnline(): boolean;
2086
- handleCachedRequest<T>(url: string, requestFn: () => Promise<AxiosResponse<T>>, config?: CacheConfig): Promise<T>;
2087
- private generateCacheKey;
2088
- invalidateCache(pattern: string): Promise<void>;
2089
- getCacheStatus(): {
2090
- available: boolean;
2091
- networkMonitorAvailable: boolean;
2092
- isOnline: boolean;
2093
- };
2094
- destroy(): void;
2095
- }
2096
-
2097
1871
  declare function transformError(error: unknown): ACubeSDKError;
2098
1872
 
2099
1873
  declare enum ErrorCategory {
@@ -2655,8 +2429,8 @@ type JournalCloseInputType = z.infer<typeof JournalCloseInputSchema>;
2655
2429
 
2656
2430
  declare const DAILY_REPORT_STATUS_OPTIONS: readonly ["pending", "sent", "error"];
2657
2431
  declare const DailyReportStatusSchema: z.ZodEnum<{
2658
- error: "error";
2659
2432
  sent: "sent";
2433
+ error: "error";
2660
2434
  pending: "pending";
2661
2435
  }>;
2662
2436
  declare const DailyReportsParamsSchema: z.ZodObject<{
@@ -2664,8 +2438,8 @@ declare const DailyReportsParamsSchema: z.ZodObject<{
2664
2438
  date_from: z.ZodOptional<z.ZodString>;
2665
2439
  date_to: z.ZodOptional<z.ZodString>;
2666
2440
  status: z.ZodOptional<z.ZodEnum<{
2667
- error: "error";
2668
2441
  sent: "sent";
2442
+ error: "error";
2669
2443
  pending: "pending";
2670
2444
  }>>;
2671
2445
  page: z.ZodOptional<z.ZodNumber>;
@@ -3212,5 +2986,5 @@ declare class CertificateValidator {
3212
2986
  static getDaysUntilExpiry(validTo: Date): number;
3213
2987
  }
3214
2988
 
3215
- export { ACubeSDK, ACubeSDKError, ActivationRequestSchema, AddressMapper, AddressSchema, AppStateService, AuthStrategy, AuthenticationService, AxiosHttpAdapter, CacheHandler, CashRegisterCreateSchema, CashRegisterMapper, CashRegisterRepositoryImpl, CashierCreateInputSchema, CashierMapper, CashierRepositoryImpl, CertificateService, CertificateValidator, ConfigManager, DAILY_REPORT_STATUS_OPTIONS, DEFAULT_QUEUE_CONFIG, 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, OfflineManager, OperationQueue, 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, SyncManager, 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 };
3216
- export type { ActivationRequest, ActivationRequestApiInput, ActivationRequestType, Address, AddressApiOutput, AddressType, AppMode, AppState, AuthConfig, AuthCredentials$1 as AuthCredentials, AuthMode, AxiosHttpAdapterConfig, BatchSyncResult, CacheConfig, CacheOptions, CacheResource, CacheResourceConfig, CacheSize, CachedItem, CashRegister, CashRegisterApiOutput, CashRegisterCreateApiInput, CashRegisterCreateInput, CashRegisterCreateType, CashRegisterDetailed, CashRegisterDetailedApiOutput, CashRegisterListParams, CashRegisterUpdateApiInput, CashRegisterUpdateInput, Cashier, CashierApiOutput, CashierCreateApiInput, CashierCreateInput, CashierCreateInputType, CashierListParams, CashierStatus, CertificateData, CertificateInfo, Cleaned, CleanedShallow, CompressionResult, DailyReport, DailyReportApiOutput, DailyReportStatus, DailyReportStatusType, DailyReportsParams, DailyReportsParamsType, DecompressionResult, Domain, Environment, ErrorClassification, GoodOrService, GoodOrServiceType, HttpMethod, HttpRequestConfig, HttpResponse, IAuthHandler, ICacheAdapter, ICacheKeyGenerator, ICachePort, ICashRegisterRepository, ICashierRepository, ICertificatePort, ICompressionPort, 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, OperationStatus, OperationType, 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, QueueConfig, QueueEvents, QueueStats, QueuedOperation, Receipt, ReceiptApiInput, ReceiptApiOutput, ReceiptDetails, ReceiptDetailsApiOutput, ReceiptInput, ReceiptInputType, ReceiptItem, ReceiptItemApiInput, ReceiptItemType, ReceiptListParams, ReceiptProofType, ReceiptProofTypeType, ReceiptReturnApiInput, ReceiptReturnInput, ReceiptReturnItem, ReceiptReturnItemType, ReceiptReturnOrVoidViaPEMInputType, ReceiptReturnOrVoidWithProofInputType, ReceiptReturnType, ReceiptSortOrder, ReceiptStatus, ReceiptType, ResourceType, ReturnViaDifferentDeviceApiInput, ReturnViaDifferentDeviceInput, ReturnWithProofApiInput, ReturnWithProofInput, ReturnableReceiptItem, ReturnableReceiptItemApiOutput, SDKConfig, SDKEvents, SDKFactoryConfig, SDKManagerConfig, SDKManagerEvents, SDKServices, SoftwareVersionStatus, StoredCertificate, Supplier, SupplierApiOutput, SupplierCreateApiInput, SupplierCreateInput, SupplierCreateInputType, SupplierUpdateApiInput, SupplierUpdateInput, SupplierUpdateInputType, SuppliersParams, SyncResult, SyncStatus, 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 };
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 };