@a-cube-io/ereceipts-js-sdk 2.0.9 → 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
  }
@@ -1244,7 +1024,6 @@ declare class AppStateService {
1244
1024
 
1245
1025
  interface TelemetryState {
1246
1026
  data: Telemetry | null;
1247
- isCached: boolean;
1248
1027
  isLoading: boolean;
1249
1028
  lastFetchedAt: number | null;
1250
1029
  error?: string;
@@ -1451,7 +1230,7 @@ declare class SDKManager {
1451
1230
  */
1452
1231
  get certificateMissing$(): Observable<boolean>;
1453
1232
  /**
1454
- * Observable stream of telemetry state (data, isLoading, isCached, error)
1233
+ * Observable stream of telemetry state (data, isLoading, error)
1455
1234
  */
1456
1235
  get telemetryState$(): Observable<TelemetryState>;
1457
1236
  /**
@@ -2089,28 +1868,6 @@ declare class AxiosHttpAdapter implements IHttpPort {
2089
1868
  getAxiosInstance(): AxiosInstance;
2090
1869
  }
2091
1870
 
2092
- interface CacheConfig {
2093
- useCache?: boolean;
2094
- }
2095
- declare class CacheHandler {
2096
- private cache?;
2097
- private networkMonitor?;
2098
- private currentOnlineState;
2099
- private networkSubscription?;
2100
- constructor(cache?: ICachePort | undefined, networkMonitor?: INetworkPort | undefined);
2101
- private setupNetworkMonitoring;
2102
- isOnline(): boolean;
2103
- handleCachedRequest<T>(url: string, requestFn: () => Promise<AxiosResponse<T>>, config?: CacheConfig): Promise<T>;
2104
- private generateCacheKey;
2105
- invalidateCache(pattern: string): Promise<void>;
2106
- getCacheStatus(): {
2107
- available: boolean;
2108
- networkMonitorAvailable: boolean;
2109
- isOnline: boolean;
2110
- };
2111
- destroy(): void;
2112
- }
2113
-
2114
1871
  declare function transformError(error: unknown): ACubeSDKError;
2115
1872
 
2116
1873
  declare enum ErrorCategory {
@@ -2561,11 +2318,11 @@ declare const AddressSchema: z.ZodObject<{
2561
2318
  province: z.ZodString;
2562
2319
  }, z.core.$strip>;
2563
2320
  declare const PEMStatusSchema: z.ZodEnum<{
2564
- ONLINE: "ONLINE";
2565
- OFFLINE: "OFFLINE";
2566
2321
  NEW: "NEW";
2567
2322
  REGISTERED: "REGISTERED";
2568
2323
  ACTIVATED: "ACTIVATED";
2324
+ ONLINE: "ONLINE";
2325
+ OFFLINE: "OFFLINE";
2569
2326
  DISCARDED: "DISCARDED";
2570
2327
  }>;
2571
2328
  declare const ActivationRequestSchema: z.ZodObject<{
@@ -2672,8 +2429,8 @@ type JournalCloseInputType = z.infer<typeof JournalCloseInputSchema>;
2672
2429
 
2673
2430
  declare const DAILY_REPORT_STATUS_OPTIONS: readonly ["pending", "sent", "error"];
2674
2431
  declare const DailyReportStatusSchema: z.ZodEnum<{
2675
- error: "error";
2676
2432
  sent: "sent";
2433
+ error: "error";
2677
2434
  pending: "pending";
2678
2435
  }>;
2679
2436
  declare const DailyReportsParamsSchema: z.ZodObject<{
@@ -2681,8 +2438,8 @@ declare const DailyReportsParamsSchema: z.ZodObject<{
2681
2438
  date_from: z.ZodOptional<z.ZodString>;
2682
2439
  date_to: z.ZodOptional<z.ZodString>;
2683
2440
  status: z.ZodOptional<z.ZodEnum<{
2684
- error: "error";
2685
2441
  sent: "sent";
2442
+ error: "error";
2686
2443
  pending: "pending";
2687
2444
  }>>;
2688
2445
  page: z.ZodOptional<z.ZodNumber>;
@@ -3229,5 +2986,5 @@ declare class CertificateValidator {
3229
2986
  static getDaysUntilExpiry(validTo: Date): number;
3230
2987
  }
3231
2988
 
3232
- 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 };
3233
- 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 };