@gatekeeperx/cordova-plugin-devicex 1.2.10 → 1.2.12

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.

Potentially problematic release.


This version of @gatekeeperx/cordova-plugin-devicex might be problematic. Click here for more details.

package/README.md CHANGED
@@ -100,9 +100,6 @@ Obtiene la versión del SDK nativo subyacente.
100
100
 
101
101
  **Retorna:** `Promise<string>`
102
102
 
103
- ### 5. `Devicex.evaluateRisk(options)` (Beta)
104
- Realiza una evaluación de riesgo específica enviando un payload al motor de decisión.
105
-
106
103
  ---
107
104
 
108
105
  ## 🚀 Uso Rápido (Ionic/Angular)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gatekeeperx/cordova-plugin-devicex",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "GatekeeperX Device Intelligence Cordova plugin (Android)",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -205,35 +205,36 @@ public class DevicexPlugin extends CordovaPlugin {
205
205
  return list;
206
206
  }
207
207
 
208
- private void evaluateRisk(JSONArray args, final CallbackContext cb) {
209
- try {
210
- JSONObject obj = args.optJSONObject(0);
211
- if (obj == null)
212
- obj = new JSONObject();
213
-
214
- String apiUrl = obj.optString("apiUrl", "");
215
- String orgId = obj.optString("organizationId", "");
216
- String apiKey = obj.optString("apiKey", "");
217
- JSONObject payload = obj.optJSONObject("payload");
218
-
219
- if (apiUrl.isEmpty() || orgId.isEmpty() || payload == null) {
220
- cb.error("apiUrl, organizationId and payload are required");
221
- return;
222
- }
223
-
224
- GatekeeperXClient.evaluateRisk(apiUrl, orgId, apiKey, payload, new GatekeeperXClient.Callback() {
225
- @Override
226
- public void onSuccess(JSONObject response) {
227
- cb.success(response);
228
- }
229
-
230
- @Override
231
- public void onError(String error) {
232
- cb.error(error);
233
- }
234
- });
235
- } catch (Exception e) {
236
- cb.error(e.getMessage());
237
- }
238
- }
208
+ // private void evaluateRisk(JSONArray args, final CallbackContext cb) {
209
+ // try {
210
+ // JSONObject obj = args.optJSONObject(0);
211
+ // if (obj == null)
212
+ // obj = new JSONObject();
213
+
214
+ // String apiUrl = obj.optString("apiUrl", "");
215
+ // String orgId = obj.optString("organizationId", "");
216
+ // String apiKey = obj.optString("apiKey", "");
217
+ // JSONObject payload = obj.optJSONObject("payload");
218
+
219
+ // if (apiUrl.isEmpty() || orgId.isEmpty() || payload == null) {
220
+ // cb.error("apiUrl, organizationId and payload are required");
221
+ // return;
222
+ // }
223
+
224
+ // GatekeeperXClient.evaluateRisk(apiUrl, orgId, apiKey, payload, new
225
+ // GatekeeperXClient.Callback() {
226
+ // @Override
227
+ // public void onSuccess(JSONObject response) {
228
+ // cb.success(response);
229
+ // }
230
+
231
+ // @Override
232
+ // public void onError(String error) {
233
+ // cb.error(error);
234
+ // }
235
+ // });
236
+ // } catch (Exception e) {
237
+ // cb.error(e.getMessage());
238
+ // }
239
+ // }
239
240
  }