qrdnicapacitor 1.0.6 → 1.0.7

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
@@ -78,29 +78,29 @@ abrirEscaner() => Promise<any>
78
78
 
79
79
  #### MiDNIData
80
80
 
81
- | Prop | Type |
82
- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
83
- | **`dni`** | <code>string</code> |
84
- | **`name`** | <code>string</code> |
85
- | **`surnames`** | <code>string</code> |
86
- | **`birthDate`** | <code>string</code> |
87
- | **`expiryDate`** | <code>string</code> |
88
- | **`gender`** | <code>string</code> |
89
- | **`address`** | <code>string</code> |
90
- | **`nationality`** | <code>string</code> |
91
- | **`parents`** | <code>string</code> |
92
- | **`supportNumber`** | <code>string</code> |
93
- | **`birthPlace1`** | <code>string</code> |
94
- | **`birthPlace2`** | <code>string</code> |
95
- | **`birthPlace3`** | <code>string</code> |
96
- | **`photoData`** | <code>string</code> |
97
- | **`isAdult`** | <code>boolean</code> |
98
- | **`rawSignature`** | <code>string</code> |
99
- | **`signedData`** | <code>string</code> |
100
- | **`certificateRef`** | <code>string</code> |
101
- | **`type`** | <code>string</code> |
102
- | **`verificationResult`** | <code>{ status: 'VALID' \| 'INVALID' \| 'NO_CERTIFICATES' \| 'INVALID_QR' \| 'EXPIRED_QR' \| 'UNKNOWN'; certificate?: string; }</code> |
103
- | **`qrDataExpiry`** | <code>string</code> |
104
- | **`fullBirthPlace`** | <code>string</code> |
81
+ | Prop | Type |
82
+ | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
83
+ | **`dni`** | <code>string</code> |
84
+ | **`name`** | <code>string</code> |
85
+ | **`surnames`** | <code>string</code> |
86
+ | **`birthDate`** | <code>string</code> |
87
+ | **`expiryDate`** | <code>string</code> |
88
+ | **`gender`** | <code>string</code> |
89
+ | **`address`** | <code>string</code> |
90
+ | **`nationality`** | <code>string</code> |
91
+ | **`parents`** | <code>string</code> |
92
+ | **`supportNumber`** | <code>string</code> |
93
+ | **`birthPlace1`** | <code>string</code> |
94
+ | **`birthPlace2`** | <code>string</code> |
95
+ | **`birthPlace3`** | <code>string</code> |
96
+ | **`photoData`** | <code>string</code> |
97
+ | **`isAdult`** | <code>boolean</code> |
98
+ | **`rawSignature`** | <code>string</code> |
99
+ | **`signedData`** | <code>string</code> |
100
+ | **`certificateRef`** | <code>string</code> |
101
+ | **`type`** | <code>string</code> |
102
+ | **`verificationResult`** | <code>{ status: 'VALID' \| 'INVALID' \| 'NO_CERTIFICATES' \| 'INVALID_QR' \| 'EXPIRATED_QR' \| 'UNKNOWN'; certificate?: string; }</code> |
103
+ | **`qrDataExpiry`** | <code>string</code> |
104
+ | **`fullBirthPlace`** | <code>string</code> |
105
105
 
106
106
  </docgen-api>
@@ -46,9 +46,6 @@ android {
46
46
  repositories {
47
47
  google()
48
48
  mavenCentral()
49
- flatDir {
50
- dirs 'libs' // Esto le dice a Gradle que busque librerías en la carpeta libs
51
- }
52
49
  }
53
50
 
54
51
  dependencies {
@@ -110,8 +110,11 @@ public class qrdni {
110
110
  case "NO_CERTIFICATES":
111
111
  verificationJson.put("status", "NO_CERTIFICATES");
112
112
  break;
113
- case "EXPIRED_QR":
114
- verificationJson.put("status", "EXPIRED_QR");
113
+ case "INVALID_QR":
114
+ verificationJson.put("status", "INVALID_QR");
115
+ break;
116
+ case "EXPIRATED_QR":
117
+ verificationJson.put("status", "EXPIRATED_QR");
115
118
  break;
116
119
  default:
117
120
  verificationJson.put("status", "INVALID");
package/dist/docs.json CHANGED
@@ -230,7 +230,7 @@
230
230
  "tags": [],
231
231
  "docs": "",
232
232
  "complexTypes": [],
233
- "type": "{ status: 'VALID' | 'INVALID' | 'NO_CERTIFICATES' | 'INVALID_QR' | 'EXPIRED_QR' | 'UNKNOWN'; certificate?: string | undefined; }"
233
+ "type": "{ status: 'VALID' | 'INVALID' | 'NO_CERTIFICATES' | 'INVALID_QR' | 'EXPIRATED_QR' | 'UNKNOWN'; certificate?: string | undefined; }"
234
234
  },
235
235
  {
236
236
  "name": "qrDataExpiry",
@@ -36,7 +36,7 @@ export interface MiDNIData {
36
36
  certificateRef: string;
37
37
  type?: string;
38
38
  verificationResult: {
39
- status: 'VALID' | 'INVALID' | 'NO_CERTIFICATES' | 'INVALID_QR' | 'EXPIRED_QR' | 'UNKNOWN';
39
+ status: 'VALID' | 'INVALID' | 'NO_CERTIFICATES' | 'INVALID_QR' | 'EXPIRATED_QR' | 'UNKNOWN';
40
40
  certificate?: string;
41
41
  };
42
42
  qrDataExpiry: string;
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface qrdniPlugin {\n configure(options: { license: string, certs?: { [key: string]: string } }): Promise<EstadoLicencia>;\n validaMiDNIQR(options: { data: string }): Promise<MiDNIData>;\n abrirEscaner(): Promise<any>;\n}\n\nexport interface EstadoLicencia {\n descripcion: string;\n APIKeyValida: boolean;\n lecturaQRHabilitada: boolean;\n}\n\nexport interface MiDNIData {\n dni: string;\n name: string;\n surnames: string;\n birthDate: string;\n expiryDate: string;\n gender: string;\n\n address: string;\n nationality: string;\n parents: string;\n supportNumber: string;\n \n birthPlace1: string;\n birthPlace2: string;\n birthPlace3: string;\n \n photoData: string; // Base64\n isAdult?: boolean;\n \n rawSignature: string;\n signedData: string;\n certificateRef: string;\n type?: string;\n verificationResult: {\n status: 'VALID' | 'INVALID' | 'NO_CERTIFICATES' | 'INVALID_QR' | 'EXPIRED_QR' | 'UNKNOWN';\n certificate?: string; // Solo presente si el status es VALID\n }; \n qrDataExpiry: string;\n\n fullBirthPlace: string;\n}"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface qrdniPlugin {\n configure(options: { license: string, certs?: { [key: string]: string } }): Promise<EstadoLicencia>;\n validaMiDNIQR(options: { data: string }): Promise<MiDNIData>;\n abrirEscaner(): Promise<any>;\n}\n\nexport interface EstadoLicencia {\n descripcion: string;\n APIKeyValida: boolean;\n lecturaQRHabilitada: boolean;\n}\n\nexport interface MiDNIData {\n dni: string;\n name: string;\n surnames: string;\n birthDate: string;\n expiryDate: string;\n gender: string;\n\n address: string;\n nationality: string;\n parents: string;\n supportNumber: string;\n \n birthPlace1: string;\n birthPlace2: string;\n birthPlace3: string;\n \n photoData: string; // Base64\n isAdult?: boolean;\n \n rawSignature: string;\n signedData: string;\n certificateRef: string;\n type?: string;\n verificationResult: {\n status: 'VALID' | 'INVALID' | 'NO_CERTIFICATES' | 'INVALID_QR' | 'EXPIRATED_QR' | 'UNKNOWN';\n certificate?: string; // Solo presente si el status es VALID\n }; \n qrDataExpiry: string;\n\n fullBirthPlace: string;\n}"]}
@@ -88,7 +88,7 @@ import UIKit
88
88
  case .invalidQR:
89
89
  verificationJson["status"] = "INVALID_QR"
90
90
  case .expiratedQR:
91
- verificationJson["status"] = "EXPIRED_QR"
91
+ verificationJson["status"] = "EXPIRATED_QR"
92
92
  }
93
93
 
94
94
  json["verificationResult"] = verificationJson
@@ -96,6 +96,10 @@ import UIKit
96
96
  json["verificationResult"] = ["status": "UNKNOWN"]
97
97
  }
98
98
 
99
+
100
+
101
+
102
+
99
103
  json["qrDataExpiry"] = miDNIData.qrDataExpiry ?? ""
100
104
 
101
105
  json["fullBirthPlace"] = miDNIData.fullBirthPlace ?? ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qrdnicapacitor",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Lectura y validación de códigos QR generados por la app MiDNI",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",