@easyflow/javascript-sdk 2.1.25 → 2.1.26

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/INDEX.md CHANGED
@@ -121,3 +121,44 @@ npm install @easyflow/javascript-sdk
121
121
  **Built with ❤️ by the Easyflow Team**
122
122
 
123
123
  _For questions and support, contact [contato@easyflow.digital](mailto:contato@easyflow.digital)_
124
+
125
+ ## 🚀 **Quick Start**
126
+
127
+ ### **Via NPM (Recomendado para TypeScript)**
128
+
129
+ ```bash
130
+ npm install @easyflow/javascript-sdk
131
+ ```
132
+
133
+ ### **Via CDN (Para projetos simples)**
134
+
135
+ ```html
136
+ <script src="https://easyflow-sdk.pages.dev/easyflow-sdk.min.js"></script>
137
+ ```
138
+
139
+ ## 📚 **TypeScript Integration**
140
+
141
+ Para projetos TypeScript, o SDK é exposto globalmente quando carregado via CDN. Adicione as seguintes declarações ao seu projeto:
142
+
143
+ ```typescript
144
+ // O SDK está sendo carregado via CDN e exposto globalmente como window.easyflowSDK
145
+ declare global {
146
+ interface Window {
147
+ easyflowSDK: any
148
+ EasyflowSDK: any
149
+ }
150
+ }
151
+ ```
152
+
153
+ ### **Exemplo de Uso com TypeScript**
154
+
155
+ ```typescript
156
+ // Configurar o SDK
157
+ window.easyflowSDK.configure({ businessId: 'your-business-id' })
158
+
159
+ // Usar métodos do SDK
160
+ const customer = await window.easyflowSDK.createCustomer(customerData)
161
+ const payment = await window.easyflowSDK.charge(paymentData)
162
+ ```
163
+
164
+ ## 🔧 **Usage Examples**