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 +24 -24
- package/android/build.gradle +0 -3
- package/android/src/main/java/com/cqesolutions/qrdnicapacitor/qrdni.java +5 -2
- package/dist/docs.json +1 -1
- package/dist/esm/definitions.d.ts +1 -1
- package/dist/esm/definitions.js.map +1 -1
- package/ios/Sources/qrdniPlugin/qrdni.swift +5 -1
- package/package.json +1 -1
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' \| '
|
|
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>
|
package/android/build.gradle
CHANGED
|
@@ -110,8 +110,11 @@ public class qrdni {
|
|
|
110
110
|
case "NO_CERTIFICATES":
|
|
111
111
|
verificationJson.put("status", "NO_CERTIFICATES");
|
|
112
112
|
break;
|
|
113
|
-
case "
|
|
114
|
-
verificationJson.put("status", "
|
|
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' | '
|
|
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' | '
|
|
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' | '
|
|
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"] = "
|
|
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 ?? ""
|