@velocitycareerlabs/vcl-react-native 2.4.6 → 2.5.5
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/android/build.gradle +5 -3
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +1 -1
- package/ios/Utils/Converter.swift +1 -1
- package/lib/commonjs/api/entities/error/VCLError.js +1 -0
- package/lib/commonjs/api/entities/error/VCLError.js.map +1 -1
- package/lib/module/api/entities/error/VCLError.js +1 -0
- package/lib/module/api/entities/error/VCLError.js.map +1 -1
- package/lib/typescript/src/api/entities/VCLFinalizeOffersDescriptor.d.ts +1 -2
- package/lib/typescript/src/api/entities/VCLFinalizeOffersDescriptor.d.ts.map +1 -1
- package/lib/typescript/src/api/entities/VCLOffers.d.ts +1 -1
- package/lib/typescript/src/api/entities/VCLOffers.d.ts.map +1 -1
- package/lib/typescript/src/api/entities/error/VCLError.d.ts +1 -0
- package/lib/typescript/src/api/entities/error/VCLError.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/entities/VCLFinalizeOffersDescriptor.ts +1 -2
- package/src/api/entities/VCLOffers.ts +1 -1
- package/src/api/entities/error/VCLError.ts +2 -0
- package/velocitycareerlabs-vcl-react-native.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -91,8 +91,10 @@ dependencies {
|
|
|
91
91
|
implementation "com.facebook.react:react-native:+"
|
|
92
92
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
implementation "
|
|
96
|
-
implementation
|
|
94
|
+
//--------- Must: be added:
|
|
95
|
+
implementation "io.velocitycareerlabs:vcl:2.5.5"
|
|
96
|
+
implementation 'com.nimbusds:nimbus-jose-jwt:9.40'
|
|
97
|
+
implementation "androidx.security:security-crypto:1.1.0-alpha06"
|
|
98
|
+
//-------------------------
|
|
97
99
|
}
|
|
98
100
|
|
|
@@ -647,7 +647,7 @@ object Converter {
|
|
|
647
647
|
finalizedOffersDescriptorMap: ReadableMap
|
|
648
648
|
) = VCLFinalizeOffersDescriptor(
|
|
649
649
|
credentialManifest = mapToCredentialManifest(finalizedOffersDescriptorMap.getMapOpt("credentialManifest")),
|
|
650
|
-
|
|
650
|
+
challenge = finalizedOffersDescriptorMap.getString("challenge"),
|
|
651
651
|
approvedOfferIds = (finalizedOffersDescriptorMap.getArrayOpt("approvedOfferIds")?.toArrayList()
|
|
652
652
|
?.toList() as? List<String>) ?: listOf(),
|
|
653
653
|
rejectedOfferIds = (finalizedOffersDescriptorMap.getArrayOpt("rejectedOfferIds")?.toArrayList()
|
|
@@ -592,7 +592,7 @@ func dictionaryToFinalizedOffersDescriptor(
|
|
|
592
592
|
) -> VCLFinalizeOffersDescriptor {
|
|
593
593
|
return VCLFinalizeOffersDescriptor(
|
|
594
594
|
credentialManifest: dictionaryToCredentialManifest(finalizedOffersDescriptorDictionary["credentialManifest"] as? [String : Any]),
|
|
595
|
-
|
|
595
|
+
challenge: finalizedOffersDescriptorDictionary["challenge"] as? String,
|
|
596
596
|
approvedOfferIds: finalizedOffersDescriptorDictionary["approvedOfferIds"] as? [String] ?? [String](),
|
|
597
597
|
rejectedOfferIds: finalizedOffersDescriptorDictionary["rejectedOfferIds"] as? [String] ?? [String]()
|
|
598
598
|
)
|
|
@@ -19,6 +19,7 @@ class VCLError extends Error {
|
|
|
19
19
|
this.payload = errorJson.payload;
|
|
20
20
|
this.error = errorJson.error;
|
|
21
21
|
this.errorCode = errorJson.errorCode;
|
|
22
|
+
this.requestId = errorJson.requestId;
|
|
22
23
|
this.message = errorJson.message;
|
|
23
24
|
this.statusCode = parseInt(errorJson.statusCode, 10);
|
|
24
25
|
} catch (e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["VCLError","Error","constructor","error","errorJson","JSON","parse","message","payload","errorCode","statusCode","parseInt","e","stringify","exports"],"sourceRoot":"../../../../../src","sources":["api/entities/error/VCLError.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,QAAQ,SAASC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"names":["VCLError","Error","constructor","error","errorJson","JSON","parse","message","payload","errorCode","requestId","statusCode","parseInt","e","stringify","exports"],"sourceRoot":"../../../../../src","sources":["api/entities/error/VCLError.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,QAAQ,SAASC,KAAK,CAAC;EAOlCC,WAAWA,CAACC,KAAU,EAAE;IACtB,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI;MACF,MAAMC,SAAS,GAAGC,IAAI,CAACC,KAAK,CAACH,KAAK,CAACI,OAAO,CAAC;MAC3C,IAAI,CAACC,OAAO,GAAGJ,SAAS,CAACI,OAAO;MAChC,IAAI,CAACL,KAAK,GAAGC,SAAS,CAACD,KAAK;MAC5B,IAAI,CAACM,SAAS,GAAGL,SAAS,CAACK,SAAS;MACpC,IAAI,CAACC,SAAS,GAAGN,SAAS,CAACM,SAAS;MACpC,IAAI,CAACH,OAAO,GAAGH,SAAS,CAACG,OAAO;MAChC,IAAI,CAACI,UAAU,GAAGC,QAAQ,CAACR,SAAS,CAACO,UAAU,EAAE,EAAE,CAAC;IACtD,CAAC,CAAC,OAAOE,CAAC,EAAE;MACV,IAAI,CAACN,OAAO,GAAGF,IAAI,CAACS,SAAS,CAACX,KAAK,CAAC;IACtC;EACF;AACF;AAACY,OAAA,CAAAf,QAAA,GAAAA,QAAA","ignoreList":[]}
|
|
@@ -13,6 +13,7 @@ export class VCLError extends Error {
|
|
|
13
13
|
this.payload = errorJson.payload;
|
|
14
14
|
this.error = errorJson.error;
|
|
15
15
|
this.errorCode = errorJson.errorCode;
|
|
16
|
+
this.requestId = errorJson.requestId;
|
|
16
17
|
this.message = errorJson.message;
|
|
17
18
|
this.statusCode = parseInt(errorJson.statusCode, 10);
|
|
18
19
|
} catch (e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["VCLError","Error","constructor","error","errorJson","JSON","parse","message","payload","errorCode","statusCode","parseInt","e","stringify"],"sourceRoot":"../../../../../src","sources":["api/entities/error/VCLError.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,QAAQ,SAASC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"names":["VCLError","Error","constructor","error","errorJson","JSON","parse","message","payload","errorCode","requestId","statusCode","parseInt","e","stringify"],"sourceRoot":"../../../../../src","sources":["api/entities/error/VCLError.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,QAAQ,SAASC,KAAK,CAAC;EAOlCC,WAAWA,CAACC,KAAU,EAAE;IACtB,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI;MACF,MAAMC,SAAS,GAAGC,IAAI,CAACC,KAAK,CAACH,KAAK,CAACI,OAAO,CAAC;MAC3C,IAAI,CAACC,OAAO,GAAGJ,SAAS,CAACI,OAAO;MAChC,IAAI,CAACL,KAAK,GAAGC,SAAS,CAACD,KAAK;MAC5B,IAAI,CAACM,SAAS,GAAGL,SAAS,CAACK,SAAS;MACpC,IAAI,CAACC,SAAS,GAAGN,SAAS,CAACM,SAAS;MACpC,IAAI,CAACH,OAAO,GAAGH,SAAS,CAACG,OAAO;MAChC,IAAI,CAACI,UAAU,GAAGC,QAAQ,CAACR,SAAS,CAACO,UAAU,EAAE,EAAE,CAAC;IACtD,CAAC,CAAC,OAAOE,CAAC,EAAE;MACV,IAAI,CAACN,OAAO,GAAGF,IAAI,CAACS,SAAS,CAACX,KAAK,CAAC;IACtC;EACF;AACF","ignoreList":[]}
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
import type { VCLCredentialManifest } from './VCLCredentialManifest';
|
|
8
|
-
import type { VCLOffers } from './VCLOffers';
|
|
9
8
|
export interface VCLFinalizeOffersDescriptor {
|
|
10
9
|
credentialManifest: VCLCredentialManifest;
|
|
11
|
-
|
|
10
|
+
challenge?: string;
|
|
12
11
|
rejectedOfferIds: string[];
|
|
13
12
|
approvedOfferIds: string[];
|
|
14
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VCLFinalizeOffersDescriptor.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLFinalizeOffersDescriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"VCLFinalizeOffersDescriptor.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLFinalizeOffersDescriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,WAAW,2BAA2B;IAC1C,kBAAkB,EAAE,qBAAqB,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VCLOffers.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLOffers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;IACzB,GAAG,EAAE,QAAQ,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,QAAQ,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"VCLOffers.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLOffers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;IACzB,GAAG,EAAE,QAAQ,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,QAAQ,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VCLError.d.ts","sourceRoot":"","sources":["../../../../../../src/api/entities/error/VCLError.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,qBAAa,QAAS,SAAQ,KAAK;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;gBAER,KAAK,EAAE,GAAG;
|
|
1
|
+
{"version":3,"file":"VCLError.d.ts","sourceRoot":"","sources":["../../../../../../src/api/entities/error/VCLError.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,qBAAa,QAAS,SAAQ,KAAK;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;gBAER,KAAK,EAAE,GAAG;CAcvB"}
|
package/package.json
CHANGED
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import type { VCLCredentialManifest } from './VCLCredentialManifest';
|
|
9
|
-
import type { VCLOffers } from './VCLOffers';
|
|
10
9
|
|
|
11
10
|
export interface VCLFinalizeOffersDescriptor {
|
|
12
11
|
credentialManifest: VCLCredentialManifest;
|
|
13
|
-
|
|
12
|
+
challenge?: string;
|
|
14
13
|
rejectedOfferIds: string[];
|
|
15
14
|
approvedOfferIds: string[];
|
|
16
15
|
}
|
|
@@ -9,6 +9,7 @@ export class VCLError extends Error {
|
|
|
9
9
|
payload?: string;
|
|
10
10
|
error?: string;
|
|
11
11
|
errorCode?: string;
|
|
12
|
+
requestId?: string;
|
|
12
13
|
statusCode?: number;
|
|
13
14
|
|
|
14
15
|
constructor(error: any) {
|
|
@@ -18,6 +19,7 @@ export class VCLError extends Error {
|
|
|
18
19
|
this.payload = errorJson.payload;
|
|
19
20
|
this.error = errorJson.error;
|
|
20
21
|
this.errorCode = errorJson.errorCode;
|
|
22
|
+
this.requestId = errorJson.requestId;
|
|
21
23
|
this.message = errorJson.message;
|
|
22
24
|
this.statusCode = parseInt(errorJson.statusCode, 10);
|
|
23
25
|
} catch (e) {
|
|
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
|
|
|
19
19
|
# https://github.com/CocoaPods/CocoaPods/issues/7234#issuecomment-346136322
|
|
20
20
|
# s.static_framework = true
|
|
21
21
|
|
|
22
|
-
s.dependency "VCL", "2.
|
|
22
|
+
s.dependency "VCL", "2.5.5"
|
|
23
23
|
|
|
24
24
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
25
25
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|