@a-cube-io/ereceipts-js-sdk 2.0.1 → 2.0.3

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/README.md CHANGED
@@ -8,6 +8,8 @@ SDK ufficiale per l'integrazione con la piattaforma ACube eReceipt in applicazio
8
8
  - Autenticazione JWT e mTLS
9
9
  - Supporto offline con sincronizzazione automatica
10
10
  - Gestione stati app (NORMAL, WARNING, BLOCKED, OFFLINE)
11
+ - **Polling automatico** - Notifiche e telemetria con polling configurabile
12
+ - **Caching intelligente** - Cache per GET con TTL per risorsa e invalidazione automatica
11
13
  - TypeScript first con tipizzazione completa
12
14
  - Ottimizzato per Expo e React Native
13
15
 
@@ -32,6 +34,16 @@ yarn add @a-cube-io/ereceipts-js-sdk
32
34
  expo install expo-secure-store @react-native-async-storage/async-storage
33
35
  ```
34
36
 
37
+ ### Dipendenza mTLS (per operazioni fiscali)
38
+
39
+ Per utilizzare l'autenticazione mTLS (richiesta per creare scontrini, annulli, PEM, ecc.):
40
+
41
+ ```bash
42
+ npx expo install @a-cube-io/expo-mutual-tls
43
+ ```
44
+
45
+ > **Nota**: mTLS richiede un development build, non funziona con Expo Go.
46
+
35
47
  ### Utilizzo con SDKManager (Raccomandato)
36
48
 
37
49
  ```typescript
@@ -95,24 +107,28 @@ console.log('Scontrino creato:', receipt.documentNumber);
95
107
  ## Documentazione
96
108
 
97
109
  ### Getting Started
98
- - [Installazione](./getting-started/installation.md)
99
- - [Configurazione](./getting-started/configuration.md)
100
- - [Setup Expo](./getting-started/expo-setup.md)
101
- - [Autenticazione](./authentication/overview.md)
110
+ - [Installazione](./docs/getting-started/installation.md)
111
+ - [Configurazione](./docs/getting-started/configuration.md)
112
+ - [Setup Expo](./docs/getting-started/expo-setup.md)
113
+ - [Autenticazione](./docs/authentication/overview.md)
102
114
 
103
115
  ### API Reference
104
- - [SDKManager](./api-reference/sdk-manager.md) - API semplificata per produzione
105
- - [ACubeSDK](./api-reference/sdk-instance.md) - API completa
106
- - [AppStateService](./api-reference/app-state.md) - Gestione stati app
107
- - [Notifications](./api-reference/notifications.md) - Sistema notifiche
108
- - [Telemetry](./api-reference/telemetry.md) - Telemetria PEM
116
+ - [SDKManager](./docs/api-reference/sdk-manager.md) - API semplificata per produzione
117
+ - [ACubeSDK](./docs/api-reference/sdk-instance.md) - API completa
118
+ - [AppStateService](./docs/api-reference/app-state.md) - Gestione stati app
119
+ - [Notifications](./docs/api-reference/notifications.md) - Sistema notifiche
120
+ - [Telemetry](./docs/api-reference/telemetry.md) - Telemetria PEM
109
121
 
110
122
  ### Esempi
111
- - [Esempi Base](./examples/basic-usage.md)
112
- - [Notifiche e Telemetria](./examples/notifications-telemetry.md) - Esempio Expo completo
123
+ - [Esempi Base](./docs/examples/basic-usage.md)
124
+ - [Notifiche e Telemetria](./docs/examples/notifications-telemetry.md) - Esempio Expo completo
125
+
126
+ ### Advanced
127
+ - [Caching](./docs/advanced/caching.md) - Sistema di cache automatico
128
+ - [Offline Mode](./docs/advanced/offline-mode.md) - Supporto offline
113
129
 
114
130
  ### Troubleshooting
115
- - [Problemi Comuni](./troubleshooting/common-issues.md)
131
+ - [Problemi Comuni](./docs/troubleshooting/common-issues.md)
116
132
 
117
133
  ## Ambienti Disponibili
118
134