@velocitycareerlabs/vcl-react-native 1.1.4 → 1.1.6
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/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +0 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +12 -7
- package/ios/Utils/Converter.swift +4 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/api/VCLApi.d.ts +2 -2
- package/lib/typescript/api/entities/VCLInitializationDescriptor.d.ts +1 -1
- package/lib/typescript/api/entities/VCLSubmissionResult.d.ts +1 -0
- package/lib/typescript/index.d.ts +1 -2
- package/package.json +5 -5
- package/src/api/VCLApi.tsx +2 -3
- package/src/api/entities/VCLInitializationDescriptor.tsx +1 -1
- package/src/api/entities/VCLSubmissionResult.tsx +1 -0
- package/src/index.tsx +0 -2
- package/vcl-react-native.podspec +1 -1
- package/lib/commonjs/api/entities/VCLPresentationSubmissionResult.js +0 -6
- package/lib/commonjs/api/entities/VCLPresentationSubmissionResult.js.map +0 -1
- package/lib/module/api/entities/VCLPresentationSubmissionResult.js +0 -2
- package/lib/module/api/entities/VCLPresentationSubmissionResult.js.map +0 -1
- package/lib/typescript/api/entities/VCLPresentationSubmissionResult.d.ts +0 -12
- package/src/api/entities/VCLPresentationSubmissionResult.tsx +0 -14
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Wed Nov 09 13:41:30 IST 2022
|
|
2
2
|
gradle.version=7.4.2
|
package/android/build.gradle
CHANGED
|
@@ -24,7 +24,6 @@ import io.velocitycareerlabs.reactnative.utlis.Converter.presentationRequestToMa
|
|
|
24
24
|
import io.velocitycareerlabs.reactnative.utlis.Converter.presentationSubmissionResultToMap
|
|
25
25
|
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToCredentialTypesUIFormSchemaDescriptor
|
|
26
26
|
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToDeepLink
|
|
27
|
-
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToEnvironment
|
|
28
27
|
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToExchangeDescriptor
|
|
29
28
|
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToFinalizedOffersDescriptor
|
|
30
29
|
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToGenerateOffersDescriptor
|
|
@@ -29,7 +29,7 @@ object Converter {
|
|
|
29
29
|
initializationDescriptorMap.getMapOpt("environment")
|
|
30
30
|
?: mapOf(Pair("value", VCLEnvironment.PROD.value)).toReadableMap()
|
|
31
31
|
),
|
|
32
|
-
|
|
32
|
+
cacheSequence = initializationDescriptorMap.getIntOpt("cacheSequence") ?: 0
|
|
33
33
|
)
|
|
34
34
|
|
|
35
35
|
fun mapToEnvironment(environmentMap: ReadableMap) =
|
|
@@ -202,13 +202,17 @@ object Converter {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
fun presentationSubmissionResultToMap(
|
|
205
|
-
presentationSubmissionResult:
|
|
205
|
+
presentationSubmissionResult: VCLPresentationSubmissionResult
|
|
206
206
|
): ReadableMap {
|
|
207
207
|
val presentationSubmissionResultMap = Arguments.createMap()
|
|
208
|
-
presentationSubmissionResultMap.putMap("token", tokenToMap(presentationSubmissionResult.token))
|
|
209
208
|
presentationSubmissionResultMap.putMap(
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
VCLIdentificationSubmissionResult.KeyToken, tokenToMap(presentationSubmissionResult.token)
|
|
210
|
+
)
|
|
211
|
+
presentationSubmissionResultMap.putMap(
|
|
212
|
+
VCLIdentificationSubmissionResult.KeyExchange, exchangeToMap(presentationSubmissionResult.exchange)
|
|
213
|
+
)
|
|
214
|
+
presentationSubmissionResultMap.putString(
|
|
215
|
+
VCLIdentificationSubmissionResult.KeyId, presentationSubmissionResult.id
|
|
212
216
|
)
|
|
213
217
|
return presentationSubmissionResultMap
|
|
214
218
|
}
|
|
@@ -227,8 +231,9 @@ object Converter {
|
|
|
227
231
|
fun mapToSubmissionResult(
|
|
228
232
|
submissionResultMap: ReadableMap?
|
|
229
233
|
) = VCLSubmissionResult(
|
|
230
|
-
token = mapToToken(submissionResultMap?.getMapOpt(
|
|
231
|
-
exchange = mapToExchange(submissionResultMap?.getMapOpt(
|
|
234
|
+
token = mapToToken(submissionResultMap?.getMapOpt(VCLSubmissionResult.KeyToken)),
|
|
235
|
+
exchange = mapToExchange(submissionResultMap?.getMapOpt(VCLSubmissionResult.KeyExchange)),
|
|
236
|
+
id = submissionResultMap?.getStringOpt(VCLSubmissionResult.KeyId) ?: ""
|
|
232
237
|
)
|
|
233
238
|
|
|
234
239
|
fun mapToExchange(
|
|
@@ -18,7 +18,7 @@ func dictionaryToInitializationDescriptor(
|
|
|
18
18
|
environment: dictionaryToEnvironment(
|
|
19
19
|
initializationDescriptorDictionary["environment"] as? [String: String] ?? ["value": VCLEnvironment.PROD.rawValue]
|
|
20
20
|
),
|
|
21
|
-
|
|
21
|
+
cacheSequence: initializationDescriptorDictionary["cacheSequence"] as? Int ?? 0
|
|
22
22
|
)
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -195,6 +195,7 @@ func presentationSubmissionResultToDictionary(
|
|
|
195
195
|
var presentationSubmissionResulDictionary = [String: Any]()
|
|
196
196
|
presentationSubmissionResulDictionary["token"] = tokenToDictionary(presentationSubmissionResult.token)
|
|
197
197
|
presentationSubmissionResulDictionary["exchange"] = exchangeToDictionary(presentationSubmissionResult.exchange)
|
|
198
|
+
presentationSubmissionResulDictionary["id"] = presentationSubmissionResult.id
|
|
198
199
|
return presentationSubmissionResulDictionary
|
|
199
200
|
}
|
|
200
201
|
|
|
@@ -212,7 +213,8 @@ func exchangeToDictionary(
|
|
|
212
213
|
func dictionaryToSubmissionResult(_ submissionResultDictionary: [String: Any]?) -> VCLSubmissionResult {
|
|
213
214
|
return VCLSubmissionResult(
|
|
214
215
|
token: dictionaryToToken(submissionResultDictionary?["token"] as? [String: Any]),
|
|
215
|
-
exchange: dictionaryToExchange(submissionResultDictionary?["exchange"] as? [String: Any])
|
|
216
|
+
exchange: dictionaryToExchange(submissionResultDictionary?["exchange"] as? [String: Any]),
|
|
217
|
+
id: submissionResultDictionary?["id"] as? String ?? ""
|
|
216
218
|
)
|
|
217
219
|
}
|
|
218
220
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.tsx"],"names":["VclReactNative","NativeModules"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;AAGA;;AAGA;;
|
|
1
|
+
{"version":3,"sources":["index.tsx"],"names":["VclReactNative","NativeModules"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;AAGA;;AAGA;;AAiCA;;AA9CA;AACA;AACA;AACA;AACA;AACA;AAkDA,MAAM;AAAEA,EAAAA;AAAF,IAAqBC,0BAA3B;eAEeD,c","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { NativeModules } from 'react-native';\nimport type { VclApi } from './api/VCLApi';\nimport type { VCLEnvironment } from './api/VCLEnvironment';\nimport { VCLEnvTypes } from './api/VCLEnvironment';\nimport type { VCLCountry } from './api/entities/VCLCountry';\nimport type { VCLCountries } from './api/entities/VCLCountries';\nimport { VCLCountryCodes } from './api/entities/VCLCountries';\nimport type { VCLRegion } from './api/entities/VCLRegion';\nimport type { VCLRegions } from './api/entities/VCLRegions';\nimport type { VCLCredentialManifest } from './api/entities/VCLCredentialManifest';\nimport type { VCLCredentialManifestDescriptor } from './api/entities/VCLCredentialManifestDescriptor';\nimport type { VCLCredentialManifestDescriptorByDeepLink } from './api/entities/VCLCredentialManifestDescriptorByDeepLink';\nimport type { VCLCredentialManifestDescriptorByService } from './api/entities/VCLCredentialManifestDescriptorByService';\nimport type { VCLCredentialManifestDescriptorRefresh } from './api/entities/VCLCredentialManifestDescriptorRefresh';\nimport type { VCLCredentialType } from './api/entities/VCLCredentialType';\nimport type { VCLCredentialTypeSchema } from './api/entities/VCLCredentialTypeSchema';\nimport type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeSchemas';\nimport type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';\nimport type { VCLCredentialTypesUIFormSchema } from './api/entities/VCLCredentialTypesUIFormSchema';\nimport type { VCLDeepLink } from './api/entities/VCLDeepLink';\nimport type { VCLError } from './api/entities/VCLError';\nimport type { VCLExchange } from './api/entities/VCLExchange';\nimport type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor';\nimport type { VCLFilter } from './api/entities/VCLFilter';\nimport type { VCLFinalizeOffersDescriptor } from './api/entities/VCLFinalizeOffersDescriptor';\nimport type { VCLGenerateOffersDescriptor } from './api/entities/VCLGenerateOffersDescriptor';\nimport type { VCLJWT } from './api/entities/VCLJWT';\nimport type { VCLJwtVerifiableCredentials } from './api/entities/VCLJwtVerifiableCredentials';\nimport type { VCLOffers } from './api/entities/VCLOffers';\nimport type { VCLOrganization } from './api/entities/VCLOrganization';\nimport type { VCLOrganizations } from './api/entities/VCLOrganizations';\nimport type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganizationsSearchDescriptor';\nimport type { VCLPage } from './api/entities/VCLPage';\nimport type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';\nimport type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';\nimport type { VCLPublicKey } from './api/entities/VCLPublicKey';\nimport type { VCLPushDelegate } from './api/entities/VCLPushDelegate';\nimport type { VCLService } from './api/entities/VCLService';\nimport type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';\nimport { VCLServiceType } from './api/entities/VCLServiceType';\nimport type { VCLSubmissionResult } from './api/entities/VCLSubmissionResult';\nimport type { VCLToken } from './api/entities/VCLToken';\nimport type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCredential';\nimport type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';\nimport type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';\nimport type { Dictionary } from './api/Dictionary';\nimport type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';\n\nconst { VclReactNative } = NativeModules;\n\nexport default VclReactNative as VclApi;\nexport {\n Dictionary,\n VCLEnvironment,\n VCLEnvTypes,\n VCLCountry,\n VCLCountries,\n VCLCountryCodes,\n VCLRegion,\n VCLRegions,\n VCLCredentialManifest,\n VCLCredentialManifestDescriptor,\n VCLCredentialManifestDescriptorByDeepLink,\n VCLCredentialManifestDescriptorByService,\n VCLCredentialType,\n VCLCredentialTypeSchema,\n VCLCredentialTypeSchemas,\n VCLCredentialTypesUIFormSchema,\n VCLCredentialTypesUIFormSchemaDescriptor,\n VCLCredentialManifestDescriptorRefresh,\n VCLDeepLink,\n VCLError,\n VCLExchange,\n VCLExchangeDescriptor,\n VCLFilter,\n VCLFinalizeOffersDescriptor,\n VCLGenerateOffersDescriptor,\n VCLJWT,\n VCLJwtVerifiableCredentials,\n VCLOffers,\n VCLOrganization,\n VCLOrganizations,\n VCLOrganizationsSearchDescriptor,\n VCLPage,\n VCLPresentationRequest,\n VCLPresentationSubmission,\n VCLPublicKey,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n};\n"]}
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.tsx"],"names":["NativeModules","VCLEnvTypes","VCLCountryCodes","VCLServiceType","VclReactNative"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,aAAT,QAA8B,cAA9B;AAGA,SAASC,WAAT,QAA4B,sBAA5B;AAGA,SAASC,eAAT,QAAgC,6BAAhC;
|
|
1
|
+
{"version":3,"sources":["index.tsx"],"names":["NativeModules","VCLEnvTypes","VCLCountryCodes","VCLServiceType","VclReactNative"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,aAAT,QAA8B,cAA9B;AAGA,SAASC,WAAT,QAA4B,sBAA5B;AAGA,SAASC,eAAT,QAAgC,6BAAhC;AAiCA,SAASC,cAAT,QAA+B,+BAA/B;AASA,MAAM;AAAEC,EAAAA;AAAF,IAAqBJ,aAA3B;AAEA,eAAeI,cAAf;AACA,SAGEH,WAHF,EAMEC,eANF,EAuCEC,cAvCF","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { NativeModules } from 'react-native';\nimport type { VclApi } from './api/VCLApi';\nimport type { VCLEnvironment } from './api/VCLEnvironment';\nimport { VCLEnvTypes } from './api/VCLEnvironment';\nimport type { VCLCountry } from './api/entities/VCLCountry';\nimport type { VCLCountries } from './api/entities/VCLCountries';\nimport { VCLCountryCodes } from './api/entities/VCLCountries';\nimport type { VCLRegion } from './api/entities/VCLRegion';\nimport type { VCLRegions } from './api/entities/VCLRegions';\nimport type { VCLCredentialManifest } from './api/entities/VCLCredentialManifest';\nimport type { VCLCredentialManifestDescriptor } from './api/entities/VCLCredentialManifestDescriptor';\nimport type { VCLCredentialManifestDescriptorByDeepLink } from './api/entities/VCLCredentialManifestDescriptorByDeepLink';\nimport type { VCLCredentialManifestDescriptorByService } from './api/entities/VCLCredentialManifestDescriptorByService';\nimport type { VCLCredentialManifestDescriptorRefresh } from './api/entities/VCLCredentialManifestDescriptorRefresh';\nimport type { VCLCredentialType } from './api/entities/VCLCredentialType';\nimport type { VCLCredentialTypeSchema } from './api/entities/VCLCredentialTypeSchema';\nimport type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeSchemas';\nimport type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';\nimport type { VCLCredentialTypesUIFormSchema } from './api/entities/VCLCredentialTypesUIFormSchema';\nimport type { VCLDeepLink } from './api/entities/VCLDeepLink';\nimport type { VCLError } from './api/entities/VCLError';\nimport type { VCLExchange } from './api/entities/VCLExchange';\nimport type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor';\nimport type { VCLFilter } from './api/entities/VCLFilter';\nimport type { VCLFinalizeOffersDescriptor } from './api/entities/VCLFinalizeOffersDescriptor';\nimport type { VCLGenerateOffersDescriptor } from './api/entities/VCLGenerateOffersDescriptor';\nimport type { VCLJWT } from './api/entities/VCLJWT';\nimport type { VCLJwtVerifiableCredentials } from './api/entities/VCLJwtVerifiableCredentials';\nimport type { VCLOffers } from './api/entities/VCLOffers';\nimport type { VCLOrganization } from './api/entities/VCLOrganization';\nimport type { VCLOrganizations } from './api/entities/VCLOrganizations';\nimport type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganizationsSearchDescriptor';\nimport type { VCLPage } from './api/entities/VCLPage';\nimport type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';\nimport type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';\nimport type { VCLPublicKey } from './api/entities/VCLPublicKey';\nimport type { VCLPushDelegate } from './api/entities/VCLPushDelegate';\nimport type { VCLService } from './api/entities/VCLService';\nimport type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';\nimport { VCLServiceType } from './api/entities/VCLServiceType';\nimport type { VCLSubmissionResult } from './api/entities/VCLSubmissionResult';\nimport type { VCLToken } from './api/entities/VCLToken';\nimport type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCredential';\nimport type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';\nimport type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';\nimport type { Dictionary } from './api/Dictionary';\nimport type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';\n\nconst { VclReactNative } = NativeModules;\n\nexport default VclReactNative as VclApi;\nexport {\n Dictionary,\n VCLEnvironment,\n VCLEnvTypes,\n VCLCountry,\n VCLCountries,\n VCLCountryCodes,\n VCLRegion,\n VCLRegions,\n VCLCredentialManifest,\n VCLCredentialManifestDescriptor,\n VCLCredentialManifestDescriptorByDeepLink,\n VCLCredentialManifestDescriptorByService,\n VCLCredentialType,\n VCLCredentialTypeSchema,\n VCLCredentialTypeSchemas,\n VCLCredentialTypesUIFormSchema,\n VCLCredentialTypesUIFormSchemaDescriptor,\n VCLCredentialManifestDescriptorRefresh,\n VCLDeepLink,\n VCLError,\n VCLExchange,\n VCLExchangeDescriptor,\n VCLFilter,\n VCLFinalizeOffersDescriptor,\n VCLGenerateOffersDescriptor,\n VCLJWT,\n VCLJwtVerifiableCredentials,\n VCLOffers,\n VCLOrganization,\n VCLOrganizations,\n VCLOrganizationsSearchDescriptor,\n VCLPage,\n VCLPresentationRequest,\n VCLPresentationSubmission,\n VCLPublicKey,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n};\n"]}
|
|
@@ -22,7 +22,6 @@ import type { VCLOrganizations } from './entities/VCLOrganizations';
|
|
|
22
22
|
import type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';
|
|
23
23
|
import type { VCLPresentationRequest } from './entities/VCLPresentationRequest';
|
|
24
24
|
import type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';
|
|
25
|
-
import type { VCLPresentationSubmissionResult } from './entities/VCLPresentationSubmissionResult';
|
|
26
25
|
import type { VCLPublicKey } from './entities/VCLPublicKey';
|
|
27
26
|
import type { VCLToken } from './entities/VCLToken';
|
|
28
27
|
import type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';
|
|
@@ -30,13 +29,14 @@ import type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfile
|
|
|
30
29
|
import type { VCLCountries } from './entities/VCLCountries';
|
|
31
30
|
import type { Dictionary } from './Dictionary';
|
|
32
31
|
import type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';
|
|
32
|
+
import type { VCLSubmissionResult } from './entities/VCLSubmissionResult';
|
|
33
33
|
export declare type VclApi = {
|
|
34
34
|
initialize(initializationDescriptor: VCLInitializationDescriptor): Promise<void>;
|
|
35
35
|
getCountries(): Promise<VCLCountries>;
|
|
36
36
|
getCredentialTypeSchemas(): Promise<VCLCredentialTypeSchemas>;
|
|
37
37
|
getCredentialTypes(): Promise<Array<VCLCredentialType>>;
|
|
38
38
|
getPresentationRequest(deepLink: VCLDeepLink): Promise<VCLPresentationRequest>;
|
|
39
|
-
submitPresentation(presentationSubmission: VCLPresentationSubmission): Promise<
|
|
39
|
+
submitPresentation(presentationSubmission: VCLPresentationSubmission): Promise<VCLSubmissionResult>;
|
|
40
40
|
getExchangeProgress(exchangeDescriptor: VCLExchangeDescriptor): Promise<VCLExchange>;
|
|
41
41
|
searchForOrganizations(organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor): Promise<VCLOrganizations>;
|
|
42
42
|
getCredentialManifest(credentialManifestDescriptor: VCLCredentialManifestDescriptor): Promise<VCLCredentialManifest>;
|
|
@@ -38,7 +38,6 @@ import type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganiz
|
|
|
38
38
|
import type { VCLPage } from './api/entities/VCLPage';
|
|
39
39
|
import type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';
|
|
40
40
|
import type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';
|
|
41
|
-
import type { VCLPresentationSubmissionResult } from './api/entities/VCLPresentationSubmissionResult';
|
|
42
41
|
import type { VCLPublicKey } from './api/entities/VCLPublicKey';
|
|
43
42
|
import type { VCLPushDelegate } from './api/entities/VCLPushDelegate';
|
|
44
43
|
import type { VCLService } from './api/entities/VCLService';
|
|
@@ -53,4 +52,4 @@ import type { Dictionary } from './api/Dictionary';
|
|
|
53
52
|
import type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';
|
|
54
53
|
declare const _default: VclApi;
|
|
55
54
|
export default _default;
|
|
56
|
-
export { Dictionary, VCLEnvironment, VCLEnvTypes, VCLCountry, VCLCountries, VCLCountryCodes, VCLRegion, VCLRegions, VCLCredentialManifest, VCLCredentialManifestDescriptor, VCLCredentialManifestDescriptorByDeepLink, VCLCredentialManifestDescriptorByService, VCLCredentialType, VCLCredentialTypeSchema, VCLCredentialTypeSchemas, VCLCredentialTypesUIFormSchema, VCLCredentialTypesUIFormSchemaDescriptor, VCLCredentialManifestDescriptorRefresh, VCLDeepLink, VCLError, VCLExchange, VCLExchangeDescriptor, VCLFilter, VCLFinalizeOffersDescriptor, VCLGenerateOffersDescriptor, VCLJWT, VCLJwtVerifiableCredentials, VCLOffers, VCLOrganization, VCLOrganizations, VCLOrganizationsSearchDescriptor, VCLPage, VCLPresentationRequest, VCLPresentationSubmission,
|
|
55
|
+
export { Dictionary, VCLEnvironment, VCLEnvTypes, VCLCountry, VCLCountries, VCLCountryCodes, VCLRegion, VCLRegions, VCLCredentialManifest, VCLCredentialManifestDescriptor, VCLCredentialManifestDescriptorByDeepLink, VCLCredentialManifestDescriptorByService, VCLCredentialType, VCLCredentialTypeSchema, VCLCredentialTypeSchemas, VCLCredentialTypesUIFormSchema, VCLCredentialTypesUIFormSchemaDescriptor, VCLCredentialManifestDescriptorRefresh, VCLDeepLink, VCLError, VCLExchange, VCLExchangeDescriptor, VCLFilter, VCLFinalizeOffersDescriptor, VCLGenerateOffersDescriptor, VCLJWT, VCLJwtVerifiableCredentials, VCLOffers, VCLOrganization, VCLOrganizations, VCLOrganizationsSearchDescriptor, VCLPage, VCLPresentationRequest, VCLPresentationSubmission, VCLPublicKey, VCLPushDelegate, VCLService, VCLServiceCredentialAgentIssuer, VCLServiceType, VCLSubmissionResult, VCLToken, VCLVerifiableCredential, VCLVerifiedProfile, VCLVerifiedProfileDescriptor, VCLInitializationDescriptor, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velocitycareerlabs/vcl-react-native",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Velocity Career Labs React Native SDK",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@react-native-community/eslint-config": "^2.0.0",
|
|
52
52
|
"@release-it/conventional-changelog": "^2.0.0",
|
|
53
53
|
"@types/jest": "^26.0.0",
|
|
54
|
-
"@types/react": "^
|
|
55
|
-
"@types/react-native": "0.
|
|
54
|
+
"@types/react": "^17.0.39",
|
|
55
|
+
"@types/react-native": "0.66.15",
|
|
56
56
|
"commitlint": "^11.0.0",
|
|
57
57
|
"eslint": "^7.2.0",
|
|
58
58
|
"eslint-config-prettier": "^7.0.0",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"jest": "^26.0.1",
|
|
62
62
|
"pod-install": "^0.1.0",
|
|
63
63
|
"prettier": "^2.0.5",
|
|
64
|
-
"react": "
|
|
65
|
-
"react-native": "0.
|
|
64
|
+
"react": "17.0.2",
|
|
65
|
+
"react-native": "0.67.5",
|
|
66
66
|
"react-native-builder-bob": "^0.18.0",
|
|
67
67
|
"release-it": "^14.2.2",
|
|
68
68
|
"typescript": "^4.1.3"
|
package/src/api/VCLApi.tsx
CHANGED
|
@@ -12,7 +12,6 @@ import type { VCLCredentialTypeSchemas } from './entities/VCLCredentialTypeSchem
|
|
|
12
12
|
import type { VCLCredentialTypesUIFormSchema } from './entities/VCLCredentialTypesUIFormSchema';
|
|
13
13
|
import type { VCLCredentialTypesUIFormSchemaDescriptor } from './entities/VCLCredentialTypesUIFormSchemaDescriptor';
|
|
14
14
|
import type { VCLDeepLink } from './entities/VCLDeepLink';
|
|
15
|
-
import type { VCLEnvironment } from './VCLEnvironment';
|
|
16
15
|
import type { VCLExchange } from './entities/VCLExchange';
|
|
17
16
|
import type { VCLExchangeDescriptor } from './entities/VCLExchangeDescriptor';
|
|
18
17
|
import type { VCLFinalizeOffersDescriptor } from './entities/VCLFinalizeOffersDescriptor';
|
|
@@ -24,7 +23,6 @@ import type { VCLOrganizations } from './entities/VCLOrganizations';
|
|
|
24
23
|
import type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';
|
|
25
24
|
import type { VCLPresentationRequest } from './entities/VCLPresentationRequest';
|
|
26
25
|
import type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';
|
|
27
|
-
import type { VCLPresentationSubmissionResult } from './entities/VCLPresentationSubmissionResult';
|
|
28
26
|
import type { VCLPublicKey } from './entities/VCLPublicKey';
|
|
29
27
|
import type { VCLToken } from './entities/VCLToken';
|
|
30
28
|
import type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';
|
|
@@ -32,6 +30,7 @@ import type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfile
|
|
|
32
30
|
import type { VCLCountries } from './entities/VCLCountries';
|
|
33
31
|
import type { Dictionary } from './Dictionary';
|
|
34
32
|
import type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';
|
|
33
|
+
import type { VCLSubmissionResult } from './entities/VCLSubmissionResult';
|
|
35
34
|
|
|
36
35
|
export type VclApi = {
|
|
37
36
|
initialize(
|
|
@@ -48,7 +47,7 @@ export type VclApi = {
|
|
|
48
47
|
|
|
49
48
|
submitPresentation(
|
|
50
49
|
presentationSubmission: VCLPresentationSubmission
|
|
51
|
-
): Promise<
|
|
50
|
+
): Promise<VCLSubmissionResult>;
|
|
52
51
|
|
|
53
52
|
getExchangeProgress(
|
|
54
53
|
exchangeDescriptor: VCLExchangeDescriptor
|
package/src/index.tsx
CHANGED
|
@@ -40,7 +40,6 @@ import type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganiz
|
|
|
40
40
|
import type { VCLPage } from './api/entities/VCLPage';
|
|
41
41
|
import type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';
|
|
42
42
|
import type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';
|
|
43
|
-
import type { VCLPresentationSubmissionResult } from './api/entities/VCLPresentationSubmissionResult';
|
|
44
43
|
import type { VCLPublicKey } from './api/entities/VCLPublicKey';
|
|
45
44
|
import type { VCLPushDelegate } from './api/entities/VCLPushDelegate';
|
|
46
45
|
import type { VCLService } from './api/entities/VCLService';
|
|
@@ -92,7 +91,6 @@ export {
|
|
|
92
91
|
VCLPage,
|
|
93
92
|
VCLPresentationRequest,
|
|
94
93
|
VCLPresentationSubmission,
|
|
95
|
-
VCLPresentationSubmissionResult,
|
|
96
94
|
VCLPublicKey,
|
|
97
95
|
VCLPushDelegate,
|
|
98
96
|
VCLService,
|
package/vcl-react-native.podspec
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Michael Avoyan.
|
|
3
|
-
*
|
|
4
|
-
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
-
*/
|
|
7
|
-
import type { VCLExchange } from './VCLExchange';
|
|
8
|
-
import type { VCLToken } from './VCLToken';
|
|
9
|
-
export interface VCLPresentationSubmissionResult {
|
|
10
|
-
token: VCLToken;
|
|
11
|
-
exchange: VCLExchange;
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Michael Avoyan.
|
|
3
|
-
*
|
|
4
|
-
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type { VCLExchange } from './VCLExchange';
|
|
9
|
-
import type { VCLToken } from './VCLToken';
|
|
10
|
-
|
|
11
|
-
export interface VCLPresentationSubmissionResult {
|
|
12
|
-
token: VCLToken;
|
|
13
|
-
exchange: VCLExchange;
|
|
14
|
-
}
|