@velocitycareerlabs/vcl-react-native 1.0.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 +21 -0
- package/README.md +126 -0
- 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/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +134 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradle.properties +4 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +320 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativePackage.kt +19 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/ArrayExtensions.kt +88 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/JSONExtensions.kt +66 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/MapExtensions.kt +89 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/RNCollectionExtensions.kt +62 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +514 -0
- package/ios/Extensions/StringExtensions.swift +21 -0
- package/ios/Utils/Converter.swift +507 -0
- package/ios/VclReactNative-Bridging-Header.h +2 -0
- package/ios/VclReactNative.m +70 -0
- package/ios/VclReactNative.swift +249 -0
- package/ios/VclReactNative.xcodeproj/project.pbxproj +303 -0
- package/lib/commonjs/api/Dictionary.js +2 -0
- package/lib/commonjs/api/Dictionary.js.map +1 -0
- package/lib/commonjs/api/VCLApi.js +6 -0
- package/lib/commonjs/api/VCLApi.js.map +1 -0
- package/lib/commonjs/api/VCLEnvironment.js +15 -0
- package/lib/commonjs/api/VCLEnvironment.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCountries.js +263 -0
- package/lib/commonjs/api/entities/VCLCountries.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCountry.js +6 -0
- package/lib/commonjs/api/entities/VCLCountry.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialManifest.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialManifest.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptor.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByDeepLink.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByDeepLink.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByService.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByService.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorRefresh.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorRefresh.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialType.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialType.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialTypeSchema.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialTypeSchema.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialTypeSchemas.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialTypeSchemas.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialTypes.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialTypes.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchema.js +6 -0
- package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchema.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js +2 -0
- package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLDeepLink.js +2 -0
- package/lib/commonjs/api/entities/VCLDeepLink.js.map +1 -0
- package/lib/commonjs/api/entities/VCLError.js +2 -0
- package/lib/commonjs/api/entities/VCLError.js.map +1 -0
- package/lib/commonjs/api/entities/VCLExchange.js +2 -0
- package/lib/commonjs/api/entities/VCLExchange.js.map +1 -0
- package/lib/commonjs/api/entities/VCLExchangeDescriptor.js +6 -0
- package/lib/commonjs/api/entities/VCLExchangeDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLFilter.js +6 -0
- package/lib/commonjs/api/entities/VCLFilter.js.map +1 -0
- package/lib/commonjs/api/entities/VCLFinalizeOffersDescriptor.js +6 -0
- package/lib/commonjs/api/entities/VCLFinalizeOffersDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLGenerateOffersDescriptor.js +6 -0
- package/lib/commonjs/api/entities/VCLGenerateOffersDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLJWT.js +2 -0
- package/lib/commonjs/api/entities/VCLJWT.js.map +1 -0
- package/lib/commonjs/api/entities/VCLJwtVerifiableCredentials.js +6 -0
- package/lib/commonjs/api/entities/VCLJwtVerifiableCredentials.js.map +1 -0
- package/lib/commonjs/api/entities/VCLOffers.js +6 -0
- package/lib/commonjs/api/entities/VCLOffers.js.map +1 -0
- package/lib/commonjs/api/entities/VCLOrganization.js +6 -0
- package/lib/commonjs/api/entities/VCLOrganization.js.map +1 -0
- package/lib/commonjs/api/entities/VCLOrganizations.js +6 -0
- package/lib/commonjs/api/entities/VCLOrganizations.js.map +1 -0
- package/lib/commonjs/api/entities/VCLOrganizationsSearchDescriptor.js +6 -0
- package/lib/commonjs/api/entities/VCLOrganizationsSearchDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/VCLPage.js +2 -0
- package/lib/commonjs/api/entities/VCLPage.js.map +1 -0
- package/lib/commonjs/api/entities/VCLPresentationRequest.js +6 -0
- package/lib/commonjs/api/entities/VCLPresentationRequest.js.map +1 -0
- package/lib/commonjs/api/entities/VCLPresentationSubmission.js +6 -0
- package/lib/commonjs/api/entities/VCLPresentationSubmission.js.map +1 -0
- package/lib/commonjs/api/entities/VCLPresentationSubmissionResult.js +6 -0
- package/lib/commonjs/api/entities/VCLPresentationSubmissionResult.js.map +1 -0
- package/lib/commonjs/api/entities/VCLPublicKey.js +2 -0
- package/lib/commonjs/api/entities/VCLPublicKey.js.map +1 -0
- package/lib/commonjs/api/entities/VCLPushDelegate.js +2 -0
- package/lib/commonjs/api/entities/VCLPushDelegate.js.map +1 -0
- package/lib/commonjs/api/entities/VCLRegion.js +6 -0
- package/lib/commonjs/api/entities/VCLRegion.js.map +1 -0
- package/lib/commonjs/api/entities/VCLRegions.js +6 -0
- package/lib/commonjs/api/entities/VCLRegions.js.map +1 -0
- package/lib/commonjs/api/entities/VCLService.js +6 -0
- package/lib/commonjs/api/entities/VCLService.js.map +1 -0
- package/lib/commonjs/api/entities/VCLServiceCredentialAgentIssuer.js +6 -0
- package/lib/commonjs/api/entities/VCLServiceCredentialAgentIssuer.js.map +1 -0
- package/lib/commonjs/api/entities/VCLServiceType.js +20 -0
- package/lib/commonjs/api/entities/VCLServiceType.js.map +1 -0
- package/lib/commonjs/api/entities/VCLSubmissionResult.js +6 -0
- package/lib/commonjs/api/entities/VCLSubmissionResult.js.map +1 -0
- package/lib/commonjs/api/entities/VCLToken.js +2 -0
- package/lib/commonjs/api/entities/VCLToken.js.map +1 -0
- package/lib/commonjs/api/entities/VCLVerifiableCredential.js +2 -0
- package/lib/commonjs/api/entities/VCLVerifiableCredential.js.map +1 -0
- package/lib/commonjs/api/entities/VCLVerifiedProfile.js +6 -0
- package/lib/commonjs/api/entities/VCLVerifiedProfile.js.map +1 -0
- package/lib/commonjs/api/entities/VCLVerifiedProfileDescriptor.js +2 -0
- package/lib/commonjs/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -0
- package/lib/commonjs/index.js +39 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/api/Dictionary.js +2 -0
- package/lib/module/api/Dictionary.js.map +1 -0
- package/lib/module/api/VCLApi.js +2 -0
- package/lib/module/api/VCLApi.js.map +1 -0
- package/lib/module/api/VCLEnvironment.js +8 -0
- package/lib/module/api/VCLEnvironment.js.map +1 -0
- package/lib/module/api/entities/VCLCountries.js +256 -0
- package/lib/module/api/entities/VCLCountries.js.map +1 -0
- package/lib/module/api/entities/VCLCountry.js +2 -0
- package/lib/module/api/entities/VCLCountry.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialManifest.js +2 -0
- package/lib/module/api/entities/VCLCredentialManifest.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptor.js +2 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptorByDeepLink.js +2 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptorByDeepLink.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptorByService.js +2 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptorByService.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptorRefresh.js +2 -0
- package/lib/module/api/entities/VCLCredentialManifestDescriptorRefresh.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialType.js +2 -0
- package/lib/module/api/entities/VCLCredentialType.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialTypeSchema.js +2 -0
- package/lib/module/api/entities/VCLCredentialTypeSchema.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialTypeSchemas.js +2 -0
- package/lib/module/api/entities/VCLCredentialTypeSchemas.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialTypes.js +2 -0
- package/lib/module/api/entities/VCLCredentialTypes.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialTypesUIFormSchema.js +2 -0
- package/lib/module/api/entities/VCLCredentialTypesUIFormSchema.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js +2 -0
- package/lib/module/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLDeepLink.js +2 -0
- package/lib/module/api/entities/VCLDeepLink.js.map +1 -0
- package/lib/module/api/entities/VCLError.js +2 -0
- package/lib/module/api/entities/VCLError.js.map +1 -0
- package/lib/module/api/entities/VCLExchange.js +2 -0
- package/lib/module/api/entities/VCLExchange.js.map +1 -0
- package/lib/module/api/entities/VCLExchangeDescriptor.js +2 -0
- package/lib/module/api/entities/VCLExchangeDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLFilter.js +2 -0
- package/lib/module/api/entities/VCLFilter.js.map +1 -0
- package/lib/module/api/entities/VCLFinalizeOffersDescriptor.js +2 -0
- package/lib/module/api/entities/VCLFinalizeOffersDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLGenerateOffersDescriptor.js +2 -0
- package/lib/module/api/entities/VCLGenerateOffersDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLJWT.js +2 -0
- package/lib/module/api/entities/VCLJWT.js.map +1 -0
- package/lib/module/api/entities/VCLJwtVerifiableCredentials.js +2 -0
- package/lib/module/api/entities/VCLJwtVerifiableCredentials.js.map +1 -0
- package/lib/module/api/entities/VCLOffers.js +2 -0
- package/lib/module/api/entities/VCLOffers.js.map +1 -0
- package/lib/module/api/entities/VCLOrganization.js +2 -0
- package/lib/module/api/entities/VCLOrganization.js.map +1 -0
- package/lib/module/api/entities/VCLOrganizations.js +2 -0
- package/lib/module/api/entities/VCLOrganizations.js.map +1 -0
- package/lib/module/api/entities/VCLOrganizationsSearchDescriptor.js +2 -0
- package/lib/module/api/entities/VCLOrganizationsSearchDescriptor.js.map +1 -0
- package/lib/module/api/entities/VCLPage.js +2 -0
- package/lib/module/api/entities/VCLPage.js.map +1 -0
- package/lib/module/api/entities/VCLPresentationRequest.js +2 -0
- package/lib/module/api/entities/VCLPresentationRequest.js.map +1 -0
- package/lib/module/api/entities/VCLPresentationSubmission.js +2 -0
- package/lib/module/api/entities/VCLPresentationSubmission.js.map +1 -0
- package/lib/module/api/entities/VCLPresentationSubmissionResult.js +2 -0
- package/lib/module/api/entities/VCLPresentationSubmissionResult.js.map +1 -0
- package/lib/module/api/entities/VCLPublicKey.js +2 -0
- package/lib/module/api/entities/VCLPublicKey.js.map +1 -0
- package/lib/module/api/entities/VCLPushDelegate.js +2 -0
- package/lib/module/api/entities/VCLPushDelegate.js.map +1 -0
- package/lib/module/api/entities/VCLRegion.js +2 -0
- package/lib/module/api/entities/VCLRegion.js.map +1 -0
- package/lib/module/api/entities/VCLRegions.js +2 -0
- package/lib/module/api/entities/VCLRegions.js.map +1 -0
- package/lib/module/api/entities/VCLService.js +2 -0
- package/lib/module/api/entities/VCLService.js.map +1 -0
- package/lib/module/api/entities/VCLServiceCredentialAgentIssuer.js +2 -0
- package/lib/module/api/entities/VCLServiceCredentialAgentIssuer.js.map +1 -0
- package/lib/module/api/entities/VCLServiceType.js +13 -0
- package/lib/module/api/entities/VCLServiceType.js.map +1 -0
- package/lib/module/api/entities/VCLSubmissionResult.js +2 -0
- package/lib/module/api/entities/VCLSubmissionResult.js.map +1 -0
- package/lib/module/api/entities/VCLToken.js +2 -0
- package/lib/module/api/entities/VCLToken.js.map +1 -0
- package/lib/module/api/entities/VCLVerifiableCredential.js +2 -0
- package/lib/module/api/entities/VCLVerifiableCredential.js.map +1 -0
- package/lib/module/api/entities/VCLVerifiedProfile.js +2 -0
- package/lib/module/api/entities/VCLVerifiedProfile.js.map +1 -0
- package/lib/module/api/entities/VCLVerifiedProfileDescriptor.js +2 -0
- package/lib/module/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -0
- package/lib/module/index.js +10 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/api/Dictionary.d.ts +3 -0
- package/lib/typescript/api/VCLApi.d.ts +44 -0
- package/lib/typescript/api/VCLEnvironment.d.ts +8 -0
- package/lib/typescript/api/entities/VCLCountries.d.ts +257 -0
- package/lib/typescript/api/entities/VCLCountry.d.ts +8 -0
- package/lib/typescript/api/entities/VCLCredentialManifest.d.ts +8 -0
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptor.d.ts +5 -0
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptorByDeepLink.d.ts +5 -0
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptorByService.d.ts +5 -0
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptorRefresh.d.ts +6 -0
- package/lib/typescript/api/entities/VCLCredentialType.d.ts +10 -0
- package/lib/typescript/api/entities/VCLCredentialTypeSchema.d.ts +4 -0
- package/lib/typescript/api/entities/VCLCredentialTypeSchemas.d.ts +5 -0
- package/lib/typescript/api/entities/VCLCredentialTypes.d.ts +5 -0
- package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchema.d.ts +4 -0
- package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.d.ts +4 -0
- package/lib/typescript/api/entities/VCLDeepLink.d.ts +3 -0
- package/lib/typescript/api/entities/VCLError.d.ts +4 -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 +8 -0
- package/lib/typescript/api/entities/VCLJWT.d.ts +3 -0
- package/lib/typescript/api/entities/VCLJwtVerifiableCredentials.d.ts +4 -0
- package/lib/typescript/api/entities/VCLOffers.d.ts +7 -0
- package/lib/typescript/api/entities/VCLOrganization.d.ts +6 -0
- package/lib/typescript/api/entities/VCLOrganizations.d.ts +4 -0
- package/lib/typescript/api/entities/VCLOrganizationsSearchDescriptor.d.ts +8 -0
- package/lib/typescript/api/entities/VCLPage.d.ts +4 -0
- package/lib/typescript/api/entities/VCLPresentationRequest.d.ts +10 -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 +3 -0
- package/lib/typescript/api/entities/VCLPushDelegate.d.ts +4 -0
- package/lib/typescript/api/entities/VCLRegion.d.ts +6 -0
- package/lib/typescript/api/entities/VCLRegions.d.ts +5 -0
- package/lib/typescript/api/entities/VCLService.d.ts +4 -0
- package/lib/typescript/api/entities/VCLServiceCredentialAgentIssuer.d.ts +3 -0
- package/lib/typescript/api/entities/VCLServiceType.d.ts +10 -0
- package/lib/typescript/api/entities/VCLSubmissionResult.d.ts +6 -0
- package/lib/typescript/api/entities/VCLToken.d.ts +3 -0
- package/lib/typescript/api/entities/VCLVerifiableCredential.d.ts +4 -0
- package/lib/typescript/api/entities/VCLVerifiedProfile.d.ts +8 -0
- package/lib/typescript/api/entities/VCLVerifiedProfileDescriptor.d.ts +3 -0
- package/lib/typescript/index.d.ts +49 -0
- package/package.json +154 -0
- package/src/api/Dictionary.tsx +3 -0
- package/src/api/VCLApi.tsx +80 -0
- package/src/api/VCLEnvironment.tsx +9 -0
- package/src/api/entities/VCLCountries.tsx +259 -0
- package/src/api/entities/VCLCountry.tsx +9 -0
- package/src/api/entities/VCLCredentialManifest.tsx +9 -0
- package/src/api/entities/VCLCredentialManifestDescriptor.tsx +6 -0
- package/src/api/entities/VCLCredentialManifestDescriptorByDeepLink.tsx +7 -0
- package/src/api/entities/VCLCredentialManifestDescriptorByService.tsx +7 -0
- package/src/api/entities/VCLCredentialManifestDescriptorRefresh.tsx +8 -0
- package/src/api/entities/VCLCredentialType.tsx +11 -0
- package/src/api/entities/VCLCredentialTypeSchema.tsx +5 -0
- package/src/api/entities/VCLCredentialTypeSchemas.tsx +6 -0
- package/src/api/entities/VCLCredentialTypes.tsx +6 -0
- package/src/api/entities/VCLCredentialTypesUIFormSchema.tsx +5 -0
- package/src/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.tsx +4 -0
- package/src/api/entities/VCLDeepLink.tsx +3 -0
- package/src/api/entities/VCLError.tsx +4 -0
- package/src/api/entities/VCLExchange.tsx +6 -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 +9 -0
- package/src/api/entities/VCLJWT.tsx +3 -0
- package/src/api/entities/VCLJwtVerifiableCredentials.tsx +5 -0
- package/src/api/entities/VCLOffers.tsx +8 -0
- package/src/api/entities/VCLOrganization.tsx +7 -0
- package/src/api/entities/VCLOrganizations.tsx +5 -0
- package/src/api/entities/VCLOrganizationsSearchDescriptor.tsx +9 -0
- package/src/api/entities/VCLPage.tsx +4 -0
- package/src/api/entities/VCLPresentationRequest.tsx +11 -0
- package/src/api/entities/VCLPresentationSubmission.tsx +7 -0
- package/src/api/entities/VCLPresentationSubmissionResult.tsx +7 -0
- package/src/api/entities/VCLPublicKey.tsx +3 -0
- package/src/api/entities/VCLPushDelegate.tsx +4 -0
- package/src/api/entities/VCLRegion.tsx +7 -0
- package/src/api/entities/VCLRegions.tsx +6 -0
- package/src/api/entities/VCLService.tsx +5 -0
- package/src/api/entities/VCLServiceCredentialAgentIssuer.tsx +3 -0
- package/src/api/entities/VCLServiceType.tsx +10 -0
- package/src/api/entities/VCLSubmissionResult.tsx +7 -0
- package/src/api/entities/VCLToken.tsx +3 -0
- package/src/api/entities/VCLVerifiableCredential.tsx +4 -0
- package/src/api/entities/VCLVerifiedProfile.tsx +9 -0
- package/src/api/entities/VCLVerifiedProfileDescriptor.tsx +3 -0
- package/src/index.tsx +98 -0
- package/vcl-react-native.podspec +22 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VCLCredentialManifest } from './VCLCredentialManifest';
|
|
2
|
+
import type { VCLVerifiableCredential } from './VCLVerifiableCredential';
|
|
3
|
+
export interface VCLGenerateOffersDescriptor {
|
|
4
|
+
credentialManifest: VCLCredentialManifest;
|
|
5
|
+
types?: string[];
|
|
6
|
+
offerHashes?: string[];
|
|
7
|
+
identificationVerifiableCredentials: VCLVerifiableCredential[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Dictionary } from '../Dictionary';
|
|
2
|
+
import type { VCLServiceCredentialAgentIssuer } from './VCLServiceCredentialAgentIssuer';
|
|
3
|
+
export interface VCLOrganization {
|
|
4
|
+
payload: Dictionary<string>;
|
|
5
|
+
serviceCredentialAgentIssuers: VCLServiceCredentialAgentIssuer[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VCLJWT } from './VCLJWT';
|
|
2
|
+
import type { VCLPublicKey } from './VCLPublicKey';
|
|
3
|
+
export interface VCLPresentationRequest {
|
|
4
|
+
exchangeId: string;
|
|
5
|
+
jwt: VCLJWT;
|
|
6
|
+
publicKey: VCLPublicKey;
|
|
7
|
+
keyID: string;
|
|
8
|
+
presentationDefinitionId: string;
|
|
9
|
+
iss: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { VCLPresentationRequest } from './VCLPresentationRequest';
|
|
2
|
+
import type { VCLVerifiableCredential } from './VCLVerifiableCredential';
|
|
3
|
+
export interface VCLPresentationSubmission {
|
|
4
|
+
presentationRequest: VCLPresentationRequest;
|
|
5
|
+
verifiableCredentials: VCLVerifiableCredential[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum VCLServiceType {
|
|
2
|
+
Issuer = "Issuer",
|
|
3
|
+
Inspector = "Inspector",
|
|
4
|
+
CredentialAgentOperator = "CredentialAgentOperator",
|
|
5
|
+
NodeOperator = "NodeOperator",
|
|
6
|
+
TrustRoot = "TrustRoot",
|
|
7
|
+
NotaryIssuer = "NotaryIssuer",
|
|
8
|
+
IdentityIssuer = "IdentityIssuer",
|
|
9
|
+
HolderAppProvider = "HolderAppProvider"
|
|
10
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { VclApi } from './api/VCLApi';
|
|
2
|
+
import type { VCLEnvironment } from './api/VCLEnvironment';
|
|
3
|
+
import { VCLEnvTypes } from './api/VCLEnvironment';
|
|
4
|
+
import type { VCLCountry } from './api/entities/VCLCountry';
|
|
5
|
+
import type { VCLCountries } from './api/entities/VCLCountries';
|
|
6
|
+
import { VCLCountryCodes } from './api/entities/VCLCountries';
|
|
7
|
+
import type { VCLRegion } from './api/entities/VCLRegion';
|
|
8
|
+
import type { VCLRegions } from './api/entities/VCLRegions';
|
|
9
|
+
import type { VCLCredentialManifest } from './api/entities/VCLCredentialManifest';
|
|
10
|
+
import type { VCLCredentialManifestDescriptor } from './api/entities/VCLCredentialManifestDescriptor';
|
|
11
|
+
import type { VCLCredentialManifestDescriptorByDeepLink } from './api/entities/VCLCredentialManifestDescriptorByDeepLink';
|
|
12
|
+
import type { VCLCredentialManifestDescriptorByService } from './api/entities/VCLCredentialManifestDescriptorByService';
|
|
13
|
+
import type { VCLCredentialManifestDescriptorRefresh } from './api/entities/VCLCredentialManifestDescriptorRefresh';
|
|
14
|
+
import type { VCLCredentialType } from './api/entities/VCLCredentialType';
|
|
15
|
+
import type { VCLCredentialTypeSchema } from './api/entities/VCLCredentialTypeSchema';
|
|
16
|
+
import type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeSchemas';
|
|
17
|
+
import type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';
|
|
18
|
+
import type { VCLCredentialTypesUIFormSchema } from './api/entities/VCLCredentialTypesUIFormSchema';
|
|
19
|
+
import type { VCLDeepLink } from './api/entities/VCLDeepLink';
|
|
20
|
+
import type { VCLError } from './api/entities/VCLError';
|
|
21
|
+
import type { VCLExchange } from './api/entities/VCLExchange';
|
|
22
|
+
import type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor';
|
|
23
|
+
import type { VCLFilter } from './api/entities/VCLFilter';
|
|
24
|
+
import type { VCLFinalizeOffersDescriptor } from './api/entities/VCLFinalizeOffersDescriptor';
|
|
25
|
+
import type { VCLGenerateOffersDescriptor } from './api/entities/VCLGenerateOffersDescriptor';
|
|
26
|
+
import type { VCLJWT } from './api/entities/VCLJWT';
|
|
27
|
+
import type { VCLJwtVerifiableCredentials } from './api/entities/VCLJwtVerifiableCredentials';
|
|
28
|
+
import type { VCLOffers } from './api/entities/VCLOffers';
|
|
29
|
+
import type { VCLOrganization } from './api/entities/VCLOrganization';
|
|
30
|
+
import type { VCLOrganizations } from './api/entities/VCLOrganizations';
|
|
31
|
+
import type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganizationsSearchDescriptor';
|
|
32
|
+
import type { VCLPage } from './api/entities/VCLPage';
|
|
33
|
+
import type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';
|
|
34
|
+
import type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';
|
|
35
|
+
import type { VCLPresentationSubmissionResult } from './api/entities/VCLPresentationSubmissionResult';
|
|
36
|
+
import type { VCLPublicKey } from './api/entities/VCLPublicKey';
|
|
37
|
+
import type { VCLPushDelegate } from './api/entities/VCLPushDelegate';
|
|
38
|
+
import type { VCLService } from './api/entities/VCLService';
|
|
39
|
+
import type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';
|
|
40
|
+
import { VCLServiceType } from './api/entities/VCLServiceType';
|
|
41
|
+
import type { VCLSubmissionResult } from './api/entities/VCLSubmissionResult';
|
|
42
|
+
import type { VCLToken } from './api/entities/VCLToken';
|
|
43
|
+
import type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCredential';
|
|
44
|
+
import type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';
|
|
45
|
+
import type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';
|
|
46
|
+
import type { Dictionary } from './api/Dictionary';
|
|
47
|
+
declare const _default: VclApi;
|
|
48
|
+
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, };
|
package/package.json
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@velocitycareerlabs/vcl-react-native",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Velocity Career Labs React Native SDK",
|
|
5
|
+
"main": "lib/commonjs/index",
|
|
6
|
+
"module": "lib/module/index",
|
|
7
|
+
"types": "lib/typescript/index.d.ts",
|
|
8
|
+
"react-native": "src/index",
|
|
9
|
+
"source": "src/index",
|
|
10
|
+
"files": [
|
|
11
|
+
"src",
|
|
12
|
+
"lib",
|
|
13
|
+
"android",
|
|
14
|
+
"ios",
|
|
15
|
+
"cpp",
|
|
16
|
+
"vcl-react-native.podspec",
|
|
17
|
+
"!lib/typescript/example",
|
|
18
|
+
"!android/build",
|
|
19
|
+
"!ios/build",
|
|
20
|
+
"!**/__tests__",
|
|
21
|
+
"!**/__fixtures__",
|
|
22
|
+
"!**/__mocks__"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"test": "jest",
|
|
26
|
+
"typescript": "tsc --noEmit",
|
|
27
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
28
|
+
"prepare": "bob build",
|
|
29
|
+
"release": "release-it",
|
|
30
|
+
"example": "yarn --cwd example",
|
|
31
|
+
"pods": "cd example && cd ios && pod cache clean --all && pod install --repo-update",
|
|
32
|
+
"bootstrap": "yarn example && yarn"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"react-native",
|
|
36
|
+
"ios",
|
|
37
|
+
"android"
|
|
38
|
+
],
|
|
39
|
+
"repository": "https://github.com/velocitycareerlabs/vcl-react-native",
|
|
40
|
+
"author": "Michael Avoyan <michael.avoyan@velocitycareerlabs.com> (https://github.com/velocitycareerlabs)",
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/velocitycareerlabs/vcl-react-native/issues"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://github.com/velocitycareerlabs/vcl-react-native#readme",
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"registry": "https://registry.npmjs.org/"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@commitlint/config-conventional": "^11.0.0",
|
|
51
|
+
"@react-native-community/eslint-config": "^2.0.0",
|
|
52
|
+
"@release-it/conventional-changelog": "^2.0.0",
|
|
53
|
+
"@types/jest": "^26.0.0",
|
|
54
|
+
"@types/react": "^16.9.19",
|
|
55
|
+
"@types/react-native": "0.62.13",
|
|
56
|
+
"commitlint": "^11.0.0",
|
|
57
|
+
"eslint": "^7.2.0",
|
|
58
|
+
"eslint-config-prettier": "^7.0.0",
|
|
59
|
+
"eslint-plugin-prettier": "^3.1.3",
|
|
60
|
+
"husky": "^4.2.5",
|
|
61
|
+
"jest": "^26.0.1",
|
|
62
|
+
"pod-install": "^0.1.0",
|
|
63
|
+
"prettier": "^2.0.5",
|
|
64
|
+
"react": "16.13.1",
|
|
65
|
+
"react-native": "0.63.4",
|
|
66
|
+
"react-native-builder-bob": "^0.18.0",
|
|
67
|
+
"release-it": "^14.2.2",
|
|
68
|
+
"typescript": "^4.1.3"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"react": "*",
|
|
72
|
+
"react-native": "*"
|
|
73
|
+
},
|
|
74
|
+
"jest": {
|
|
75
|
+
"preset": "react-native",
|
|
76
|
+
"modulePathIgnorePatterns": [
|
|
77
|
+
"<rootDir>/example/node_modules",
|
|
78
|
+
"<rootDir>/lib/"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"husky": {
|
|
82
|
+
"hooks": {
|
|
83
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
84
|
+
"pre-commit": "yarn lint && yarn typescript"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"commitlint": {
|
|
88
|
+
"extends": [
|
|
89
|
+
"@commitlint/config-conventional"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"release-it": {
|
|
93
|
+
"git": {
|
|
94
|
+
"commitMessage": "chore: release ${version}",
|
|
95
|
+
"tagName": "v${version}"
|
|
96
|
+
},
|
|
97
|
+
"npm": {
|
|
98
|
+
"publish": true
|
|
99
|
+
},
|
|
100
|
+
"github": {
|
|
101
|
+
"release": true
|
|
102
|
+
},
|
|
103
|
+
"plugins": {
|
|
104
|
+
"@release-it/conventional-changelog": {
|
|
105
|
+
"preset": "angular"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"eslintConfig": {
|
|
110
|
+
"root": true,
|
|
111
|
+
"extends": [
|
|
112
|
+
"@react-native-community",
|
|
113
|
+
"prettier"
|
|
114
|
+
],
|
|
115
|
+
"rules": {
|
|
116
|
+
"no-unused-vars": "off",
|
|
117
|
+
"prettier/prettier": [
|
|
118
|
+
"error",
|
|
119
|
+
{
|
|
120
|
+
"quoteProps": "consistent",
|
|
121
|
+
"singleQuote": true,
|
|
122
|
+
"tabWidth": 2,
|
|
123
|
+
"trailingComma": "es5",
|
|
124
|
+
"useTabs": false
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"eslintIgnore": [
|
|
130
|
+
"node_modules/",
|
|
131
|
+
"lib/"
|
|
132
|
+
],
|
|
133
|
+
"prettier": {
|
|
134
|
+
"quoteProps": "consistent",
|
|
135
|
+
"singleQuote": true,
|
|
136
|
+
"tabWidth": 2,
|
|
137
|
+
"trailingComma": "es5",
|
|
138
|
+
"useTabs": false
|
|
139
|
+
},
|
|
140
|
+
"react-native-builder-bob": {
|
|
141
|
+
"source": "src",
|
|
142
|
+
"output": "lib",
|
|
143
|
+
"targets": [
|
|
144
|
+
"commonjs",
|
|
145
|
+
"module",
|
|
146
|
+
[
|
|
147
|
+
"typescript",
|
|
148
|
+
{
|
|
149
|
+
"project": "tsconfig.build.json"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { VCLCredentialManifest } from './entities/VCLCredentialManifest';
|
|
2
|
+
import type { VCLCredentialManifestDescriptor } from './entities/VCLCredentialManifestDescriptor';
|
|
3
|
+
import type { VCLCredentialType } from './entities/VCLCredentialType';
|
|
4
|
+
import type { VCLCredentialTypeSchemas } from './entities/VCLCredentialTypeSchemas';
|
|
5
|
+
import type { VCLCredentialTypesUIFormSchema } from './entities/VCLCredentialTypesUIFormSchema';
|
|
6
|
+
import type { VCLCredentialTypesUIFormSchemaDescriptor } from './entities/VCLCredentialTypesUIFormSchemaDescriptor';
|
|
7
|
+
import type { VCLDeepLink } from './entities/VCLDeepLink';
|
|
8
|
+
import type { VCLEnvironment } from './VCLEnvironment';
|
|
9
|
+
import type { VCLExchange } from './entities/VCLExchange';
|
|
10
|
+
import type { VCLExchangeDescriptor } from './entities/VCLExchangeDescriptor';
|
|
11
|
+
import type { VCLFinalizeOffersDescriptor } from './entities/VCLFinalizeOffersDescriptor';
|
|
12
|
+
import type { VCLGenerateOffersDescriptor } from './entities/VCLGenerateOffersDescriptor';
|
|
13
|
+
import type { VCLJWT } from './entities/VCLJWT';
|
|
14
|
+
import type { VCLJwtVerifiableCredentials } from './entities/VCLJwtVerifiableCredentials';
|
|
15
|
+
import type { VCLOffers } from './entities/VCLOffers';
|
|
16
|
+
import type { VCLOrganizations } from './entities/VCLOrganizations';
|
|
17
|
+
import type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';
|
|
18
|
+
import type { VCLPresentationRequest } from './entities/VCLPresentationRequest';
|
|
19
|
+
import type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';
|
|
20
|
+
import type { VCLPresentationSubmissionResult } from './entities/VCLPresentationSubmissionResult';
|
|
21
|
+
import type { VCLPublicKey } from './entities/VCLPublicKey';
|
|
22
|
+
import type { VCLToken } from './entities/VCLToken';
|
|
23
|
+
import type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';
|
|
24
|
+
import type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';
|
|
25
|
+
import type { VCLCountries } from './entities/VCLCountries';
|
|
26
|
+
import type { Dictionary } from './Dictionary';
|
|
27
|
+
|
|
28
|
+
export type VclApi = {
|
|
29
|
+
initialize(environment: VCLEnvironment): Promise<void>;
|
|
30
|
+
|
|
31
|
+
getCountries(): Promise<VCLCountries>;
|
|
32
|
+
getCredentialTypeSchemas(): Promise<VCLCredentialTypeSchemas>;
|
|
33
|
+
getCredentialTypes(): Promise<Array<VCLCredentialType>>;
|
|
34
|
+
|
|
35
|
+
getPresentationRequest(
|
|
36
|
+
deepLink: VCLDeepLink
|
|
37
|
+
): Promise<VCLPresentationRequest>;
|
|
38
|
+
|
|
39
|
+
submitPresentation(
|
|
40
|
+
presentationSubmission: VCLPresentationSubmission
|
|
41
|
+
): Promise<VCLPresentationSubmissionResult>;
|
|
42
|
+
|
|
43
|
+
getExchangeProgress(
|
|
44
|
+
exchangeDescriptor: VCLExchangeDescriptor
|
|
45
|
+
): Promise<VCLExchange>;
|
|
46
|
+
|
|
47
|
+
searchForOrganizations(
|
|
48
|
+
organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor
|
|
49
|
+
): Promise<VCLOrganizations>;
|
|
50
|
+
|
|
51
|
+
getCredentialManifest(
|
|
52
|
+
credentialManifestDescriptor: VCLCredentialManifestDescriptor
|
|
53
|
+
): Promise<VCLCredentialManifest>;
|
|
54
|
+
|
|
55
|
+
generateOffers(
|
|
56
|
+
generateOffersDescriptor: VCLGenerateOffersDescriptor
|
|
57
|
+
): Promise<VCLOffers>;
|
|
58
|
+
|
|
59
|
+
checkForOffers(
|
|
60
|
+
generateOffersDescriptor: VCLGenerateOffersDescriptor,
|
|
61
|
+
token: VCLToken
|
|
62
|
+
): Promise<VCLOffers>;
|
|
63
|
+
|
|
64
|
+
finalizeOffers(
|
|
65
|
+
finalizeOffersDescriptor: VCLFinalizeOffersDescriptor,
|
|
66
|
+
token: VCLToken
|
|
67
|
+
): Promise<VCLJwtVerifiableCredentials>;
|
|
68
|
+
|
|
69
|
+
getCredentialTypesUIFormSchema(
|
|
70
|
+
credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor
|
|
71
|
+
): Promise<VCLCredentialTypesUIFormSchema>;
|
|
72
|
+
|
|
73
|
+
getVerifiedProfile(
|
|
74
|
+
verifiedProfileDescriptor: VCLVerifiedProfileDescriptor
|
|
75
|
+
): Promise<VCLVerifiedProfile>;
|
|
76
|
+
|
|
77
|
+
verifyJwt(jwt: VCLJWT, publicKey: VCLPublicKey): Promise<boolean>;
|
|
78
|
+
|
|
79
|
+
generateSignedJwt(payload: Dictionary<any>, iss: string): Promise<VCLJWT>;
|
|
80
|
+
};
|