@velocitycareerlabs/vcl-react-native 1.0.1 → 1.1.1
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/LICENSE +177 -21
- package/android/LICENSE +177 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +17 -4
- package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativePackage.kt +8 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/ArrayExtensions.kt +7 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/JSONExtensions.kt +8 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/MapExtensions.kt +8 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/RNCollectionExtensions.kt +8 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +72 -41
- package/ios/Extensions/StringExtensions.swift +3 -1
- package/ios/LICENSE +177 -0
- package/ios/Utils/Converter.swift +14 -0
- package/ios/VclReactNative.m +6 -0
- package/ios/VclReactNative.swift +11 -2
- package/lib/commonjs/api/VCLEnvironment.js +7 -0
- package/lib/commonjs/api/VCLEnvironment.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCountries.js +7 -0
- package/lib/commonjs/api/entities/VCLCountries.js.map +1 -1
- package/lib/commonjs/api/entities/VCLInitializationDescriptor.js +6 -0
- package/lib/commonjs/api/entities/VCLInitializationDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLServiceType.js +7 -0
- package/lib/commonjs/api/entities/VCLServiceType.js.map +1 -1
- package/lib/commonjs/index.js +6 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/api/VCLEnvironment.js +6 -0
- package/lib/module/api/VCLEnvironment.js.map +1 -1
- package/lib/module/api/entities/VCLCountries.js +6 -0
- package/lib/module/api/entities/VCLCountries.js.map +1 -1
- package/lib/module/api/entities/VCLInitializationDescriptor.js +2 -0
- package/lib/module/api/entities/VCLInitializationDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLServiceType.js +6 -0
- package/lib/module/api/entities/VCLServiceType.js.map +1 -1
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/api/Dictionary.d.ts +6 -0
- package/lib/typescript/api/VCLApi.d.ts +8 -2
- package/lib/typescript/api/VCLEnvironment.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCountries.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCountry.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialManifest.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptor.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptorByDeepLink.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptorByService.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptorRefresh.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialType.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialTypeSchema.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialTypeSchemas.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialTypes.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchema.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.d.ts +6 -0
- package/lib/typescript/api/entities/VCLDeepLink.d.ts +6 -0
- package/lib/typescript/api/entities/VCLError.d.ts +6 -0
- package/lib/typescript/api/entities/VCLExchange.d.ts +6 -0
- package/lib/typescript/api/entities/VCLExchangeDescriptor.d.ts +6 -0
- package/lib/typescript/api/entities/VCLFilter.d.ts +6 -0
- package/lib/typescript/api/entities/VCLFinalizeOffersDescriptor.d.ts +6 -0
- package/lib/typescript/api/entities/VCLGenerateOffersDescriptor.d.ts +6 -0
- package/lib/typescript/api/entities/VCLInitializationDescriptor.d.ts +11 -0
- package/lib/typescript/api/entities/VCLJWT.d.ts +6 -0
- package/lib/typescript/api/entities/VCLJwtVerifiableCredentials.d.ts +6 -0
- package/lib/typescript/api/entities/VCLOffers.d.ts +6 -0
- package/lib/typescript/api/entities/VCLOrganization.d.ts +6 -0
- package/lib/typescript/api/entities/VCLOrganizations.d.ts +6 -0
- package/lib/typescript/api/entities/VCLOrganizationsSearchDescriptor.d.ts +6 -0
- package/lib/typescript/api/entities/VCLPage.d.ts +6 -0
- package/lib/typescript/api/entities/VCLPresentationRequest.d.ts +6 -0
- package/lib/typescript/api/entities/VCLPresentationSubmission.d.ts +6 -0
- package/lib/typescript/api/entities/VCLPresentationSubmissionResult.d.ts +6 -0
- package/lib/typescript/api/entities/VCLPublicKey.d.ts +6 -0
- package/lib/typescript/api/entities/VCLPushDelegate.d.ts +6 -0
- package/lib/typescript/api/entities/VCLRegion.d.ts +6 -0
- package/lib/typescript/api/entities/VCLRegions.d.ts +6 -0
- package/lib/typescript/api/entities/VCLService.d.ts +6 -0
- package/lib/typescript/api/entities/VCLServiceCredentialAgentIssuer.d.ts +6 -0
- package/lib/typescript/api/entities/VCLServiceType.d.ts +6 -0
- package/lib/typescript/api/entities/VCLSubmissionResult.d.ts +6 -0
- package/lib/typescript/api/entities/VCLToken.d.ts +6 -0
- package/lib/typescript/api/entities/VCLVerifiableCredential.d.ts +6 -0
- package/lib/typescript/api/entities/VCLVerifiedProfile.d.ts +6 -0
- package/lib/typescript/api/entities/VCLVerifiedProfileDescriptor.d.ts +6 -0
- package/lib/typescript/index.d.ts +8 -1
- package/package.json +1 -1
- package/src/api/Dictionary.tsx +7 -0
- package/src/api/VCLApi.tsx +11 -1
- package/src/api/VCLEnvironment.tsx +7 -0
- package/src/api/entities/VCLCountries.tsx +7 -0
- package/src/api/entities/VCLCountry.tsx +7 -0
- package/src/api/entities/VCLCredentialManifest.tsx +7 -0
- package/src/api/entities/VCLCredentialManifestDescriptor.tsx +7 -0
- package/src/api/entities/VCLCredentialManifestDescriptorByDeepLink.tsx +7 -0
- package/src/api/entities/VCLCredentialManifestDescriptorByService.tsx +7 -0
- package/src/api/entities/VCLCredentialManifestDescriptorRefresh.tsx +7 -0
- package/src/api/entities/VCLCredentialType.tsx +7 -0
- package/src/api/entities/VCLCredentialTypeSchema.tsx +7 -0
- package/src/api/entities/VCLCredentialTypeSchemas.tsx +7 -0
- package/src/api/entities/VCLCredentialTypes.tsx +7 -0
- package/src/api/entities/VCLCredentialTypesUIFormSchema.tsx +7 -0
- package/src/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.tsx +7 -0
- package/src/api/entities/VCLDeepLink.tsx +7 -0
- package/src/api/entities/VCLError.tsx +7 -0
- package/src/api/entities/VCLExchange.tsx +7 -0
- package/src/api/entities/VCLExchangeDescriptor.tsx +7 -0
- package/src/api/entities/VCLFilter.tsx +7 -0
- package/src/api/entities/VCLFinalizeOffersDescriptor.tsx +7 -0
- package/src/api/entities/VCLGenerateOffersDescriptor.tsx +7 -0
- package/src/api/entities/VCLInitializationDescriptor.tsx +13 -0
- package/src/api/entities/VCLJWT.tsx +7 -0
- package/src/api/entities/VCLJwtVerifiableCredentials.tsx +7 -0
- package/src/api/entities/VCLOffers.tsx +7 -0
- package/src/api/entities/VCLOrganization.tsx +7 -0
- package/src/api/entities/VCLOrganizations.tsx +7 -0
- package/src/api/entities/VCLOrganizationsSearchDescriptor.tsx +7 -0
- package/src/api/entities/VCLPage.tsx +7 -0
- package/src/api/entities/VCLPresentationRequest.tsx +7 -0
- package/src/api/entities/VCLPresentationSubmission.tsx +7 -0
- package/src/api/entities/VCLPresentationSubmissionResult.tsx +7 -0
- package/src/api/entities/VCLPublicKey.tsx +7 -0
- package/src/api/entities/VCLPushDelegate.tsx +7 -0
- package/src/api/entities/VCLRegion.tsx +7 -0
- package/src/api/entities/VCLRegions.tsx +7 -0
- package/src/api/entities/VCLService.tsx +7 -0
- package/src/api/entities/VCLServiceCredentialAgentIssuer.tsx +7 -0
- package/src/api/entities/VCLServiceType.tsx +7 -0
- package/src/api/entities/VCLSubmissionResult.tsx +7 -0
- package/src/api/entities/VCLToken.tsx +7 -0
- package/src/api/entities/VCLVerifiableCredential.tsx +7 -0
- package/src/api/entities/VCLVerifiedProfile.tsx +7 -0
- package/src/api/entities/VCLVerifiedProfileDescriptor.tsx +7 -0
- package/src/index.tsx +9 -0
- package/vcl-react-native.podspec +1 -1
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
1
7
|
import type { VclApi } from './api/VCLApi';
|
|
2
8
|
import type { VCLEnvironment } from './api/VCLEnvironment';
|
|
3
9
|
import { VCLEnvTypes } from './api/VCLEnvironment';
|
|
@@ -44,6 +50,7 @@ import type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCreden
|
|
|
44
50
|
import type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';
|
|
45
51
|
import type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';
|
|
46
52
|
import type { Dictionary } from './api/Dictionary';
|
|
53
|
+
import type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';
|
|
47
54
|
declare const _default: VclApi;
|
|
48
55
|
export default _default;
|
|
49
|
-
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, VCLPresentationSubmissionResult, VCLPublicKey, VCLPushDelegate, VCLService, VCLServiceCredentialAgentIssuer, VCLServiceType, VCLSubmissionResult, VCLToken, VCLVerifiableCredential, VCLVerifiedProfile, VCLVerifiedProfileDescriptor, };
|
|
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, VCLPresentationSubmissionResult, VCLPublicKey, VCLPushDelegate, VCLService, VCLServiceCredentialAgentIssuer, VCLServiceType, VCLSubmissionResult, VCLToken, VCLVerifiableCredential, VCLVerifiedProfile, VCLVerifiedProfileDescriptor, VCLInitializationDescriptor, };
|
package/package.json
CHANGED
package/src/api/Dictionary.tsx
CHANGED
package/src/api/VCLApi.tsx
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
1
8
|
import type { VCLCredentialManifest } from './entities/VCLCredentialManifest';
|
|
2
9
|
import type { VCLCredentialManifestDescriptor } from './entities/VCLCredentialManifestDescriptor';
|
|
3
10
|
import type { VCLCredentialType } from './entities/VCLCredentialType';
|
|
@@ -24,9 +31,12 @@ import type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';
|
|
|
24
31
|
import type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';
|
|
25
32
|
import type { VCLCountries } from './entities/VCLCountries';
|
|
26
33
|
import type { Dictionary } from './Dictionary';
|
|
34
|
+
import type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';
|
|
27
35
|
|
|
28
36
|
export type VclApi = {
|
|
29
|
-
initialize(
|
|
37
|
+
initialize(
|
|
38
|
+
initializationDescriptor: VCLInitializationDescriptor
|
|
39
|
+
): Promise<void>;
|
|
30
40
|
|
|
31
41
|
getCountries(): Promise<VCLCountries>;
|
|
32
42
|
getCredentialTypeSchemas(): Promise<VCLCredentialTypeSchemas>;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
1
8
|
import type { VCLCredentialManifestDescriptor } from './VCLCredentialManifestDescriptor';
|
|
2
9
|
import type { VCLDeepLink } from './VCLDeepLink';
|
|
3
10
|
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
1
8
|
import type { VCLCredentialManifestDescriptor } from './VCLCredentialManifestDescriptor';
|
|
2
9
|
import type { VCLService } from './VCLService';
|
|
3
10
|
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
1
8
|
import type { VCLCredentialManifestDescriptor } from './VCLCredentialManifestDescriptor';
|
|
2
9
|
import type { VCLService } from './VCLService';
|
|
3
10
|
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
1
8
|
import type { VCLPresentationSubmission } from './VCLPresentationSubmission';
|
|
2
9
|
import type { VCLSubmissionResult } from './VCLSubmissionResult';
|
|
3
10
|
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
1
8
|
import type { VCLCredentialManifest } from './VCLCredentialManifest';
|
|
2
9
|
import type { VCLVerifiableCredential } from './VCLVerifiableCredential';
|
|
3
10
|
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { VCLEnvironment } from '../VCLEnvironment';
|
|
9
|
+
|
|
10
|
+
export interface VCLInitializationDescriptor {
|
|
11
|
+
environment?: VCLEnvironment;
|
|
12
|
+
resetCache?: Boolean;
|
|
13
|
+
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
1
8
|
import type { Dictionary } from '../Dictionary';
|
|
2
9
|
import type { VCLServiceCredentialAgentIssuer } from './VCLServiceCredentialAgentIssuer';
|
|
3
10
|
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
1
8
|
import type { VCLPresentationRequest } from './VCLPresentationRequest';
|
|
2
9
|
import type { VCLVerifiableCredential } from './VCLVerifiableCredential';
|
|
3
10
|
|
package/src/index.tsx
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
1
8
|
import { NativeModules } from 'react-native';
|
|
2
9
|
import type { VclApi } from './api/VCLApi';
|
|
3
10
|
import type { VCLEnvironment } from './api/VCLEnvironment';
|
|
@@ -45,6 +52,7 @@ import type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCreden
|
|
|
45
52
|
import type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';
|
|
46
53
|
import type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';
|
|
47
54
|
import type { Dictionary } from './api/Dictionary';
|
|
55
|
+
import type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';
|
|
48
56
|
|
|
49
57
|
const { VclReactNative } = NativeModules;
|
|
50
58
|
|
|
@@ -95,4 +103,5 @@ export {
|
|
|
95
103
|
VCLVerifiableCredential,
|
|
96
104
|
VCLVerifiedProfile,
|
|
97
105
|
VCLVerifiedProfileDescriptor,
|
|
106
|
+
VCLInitializationDescriptor,
|
|
98
107
|
};
|